System::Info::Linux(3pm)

System::Info::Linux3pm

Object for specific linux info.

Overview

$si->prepare_sysinfo

Use os-specific tools to find out more about the system.

$si->prepare_os

Use os-specific tools to find out more about the operating system.

$si->linux_generic

Check "/proc/cpuinfo" for these keys:

"processor" (count occurrence for __cpu_count)
"model name" (part of __cpu)
"vendor_id" (part of __cpu)
"cpu mhz" (part of __cpu)
"cpu cores" (add values to add to __cpu_count)

$si->linux_arm

Check "/proc/cpuinfo" for these keys:

"processor" (count occurrence for __cpu_count)
"Processor" (part of __cpu)
"BogoMIPS" (part of __cpu)

$si->linux_ppc

Check "/proc/cpuinfo" for these keys:

"processor" (count occurrence for __cpu_count)
"cpu" (part of __cpu)
"machine" (part of __cpu)
"clock" (part of __cpu)
"detected" (alters machine if present)

$si->linux_sparc

Check "/proc/cpuinfo" for these keys:

"processor" (count occurrence for __cpu_count)
"cpu" (part of __cpu)
"Cpu0ClkTck" (part of __cpu)

$si->linux_s390x

Check "/proc/cpuinfo" for these keys:

"processor" (count occurrence for __cpu_count)
"Processor" (part of __cpu)
"BogoMIPS" (part of __cpu)

$si->prepare_proc_cpuinfo

Read the complete "/proc/cpuinfo".

$si->count_in_cpuinfo ($regex)

Returns the number of lines $regex matches for.

$si->count_unique_in_cpuinfo ($regex)

Returns the number of lines $regex matches for.

$si->from_cpuinfo ($key)

Returns the first value of that key in "/proc/cpuinfo".

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From libsystem-info-perl 0.066-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.