line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Inventory::DMIDecode::CPU; |
6
|
|
|
|
|
|
|
|
7
|
39
|
|
|
39
|
|
517
|
use v5.12.5; |
|
39
|
|
|
|
|
154
|
|
8
|
39
|
|
|
39
|
|
221
|
use warnings; |
|
39
|
|
|
|
|
98
|
|
|
39
|
|
|
|
|
1656
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.2.2'; # TRIAL VERSION |
11
|
|
|
|
|
|
|
|
12
|
39
|
|
|
39
|
|
234
|
use Rex::Inventory::DMIDecode::Section; |
|
39
|
|
|
|
|
99
|
|
|
39
|
|
|
|
|
2095
|
|
13
|
39
|
|
|
39
|
|
273
|
use base qw(Rex::Inventory::DMIDecode::Section); |
|
39
|
|
|
|
|
87
|
|
|
39
|
|
|
|
|
9756
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__PACKAGE__->section("Processor Information"); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__PACKAGE__->has( |
18
|
|
|
|
|
|
|
[ |
19
|
|
|
|
|
|
|
'Max Speed', 'Serial Number', 'Family', 'Core Enabled', |
20
|
|
|
|
|
|
|
'Version', 'Status', 'Upgrade', 'Thread Count', |
21
|
|
|
|
|
|
|
], |
22
|
|
|
|
|
|
|
1 |
23
|
|
|
|
|
|
|
); # is_array 1 |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub new { |
26
|
3
|
|
|
3
|
0
|
7
|
my $that = shift; |
27
|
3
|
|
33
|
|
|
13
|
my $proto = ref($that) || $that; |
28
|
3
|
|
|
|
|
13
|
my $self = $that->SUPER::new(@_); |
29
|
|
|
|
|
|
|
|
30
|
3
|
|
|
|
|
6
|
bless( $self, $proto ); |
31
|
|
|
|
|
|
|
|
32
|
3
|
|
|
|
|
8
|
return $self; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub num_cores { |
36
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
37
|
0
|
|
|
|
|
|
return $self->get_core_enabled; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub get_socket_type { |
41
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
42
|
0
|
|
|
|
|
|
return $self->get_upgrade; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |