DOKK / manpages / debian 12 / libsystem-info-perl / System::Info::Linux.3pm.en
System::Info::Linux(3pm) User Contributed Perl Documentation System::Info::Linux(3pm)

System::Info::Linux - Object for specific Linux info.

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

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

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)

Check "/proc/cpuinfo" for these keys:

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

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)

Check "/proc/cpuinfo" for these keys:

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

Check "/proc/cpuinfo" for these keys:

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

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".

(c) 2016-2023, Abe Timmerman & H.Merijn Brand, All rights reserved.

With contributions from Jarkko Hietaniemi, Campo Weijerman, Alan Burlison, Allen Smith, Alain Barbet, Dominic Dunlop, Rich Rauenzahn, David Cantrell.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See:

  • <http://www.perl.com/perl/misc/Artistic.html>
  • <http://www.gnu.org/copyleft/gpl.html>

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

2023-01-07 perl v5.36.0