line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Inventory::SMBios::Memory; |
6
|
|
|
|
|
|
|
|
7
|
38
|
|
|
38
|
|
571
|
use v5.12.5; |
|
38
|
|
|
|
|
143
|
|
8
|
38
|
|
|
38
|
|
198
|
use warnings; |
|
38
|
|
|
|
|
75
|
|
|
38
|
|
|
|
|
1829
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.2.3'; # TRIAL VERSION |
11
|
|
|
|
|
|
|
|
12
|
38
|
|
|
38
|
|
275
|
use Rex::Inventory::SMBios::Section; |
|
38
|
|
|
|
|
195
|
|
|
38
|
|
|
|
|
2134
|
|
13
|
38
|
|
|
38
|
|
347
|
use base qw(Rex::Inventory::SMBios::Section); |
|
38
|
|
|
|
|
104
|
|
|
38
|
|
|
|
|
7298
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__PACKAGE__->section("memory device"); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__PACKAGE__->has( |
18
|
|
|
|
|
|
|
[ |
19
|
|
|
|
|
|
|
{ key => 'Type', from => "Memory Type" }, |
20
|
|
|
|
|
|
|
'Speed', 'Size', 'Bank Locator', 'Form Factor', |
21
|
|
|
|
|
|
|
{ key => 'Locator', from => "Device Locator" }, |
22
|
|
|
|
|
|
|
], |
23
|
|
|
|
|
|
|
1 |
24
|
|
|
|
|
|
|
); # is_array 1 |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub new { |
27
|
0
|
|
|
0
|
0
|
|
my $that = shift; |
28
|
0
|
|
0
|
|
|
|
my $proto = ref($that) || $that; |
29
|
0
|
|
|
|
|
|
my $self = $that->SUPER::new(@_); |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
bless( $self, $proto ); |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
return $self; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |