@@ -4,8 +4,340 @@
|
||||
// file that was distributed with this source code.
|
||||
|
||||
use crate::common::util::TestScenario;
|
||||
use std::path::Path;
|
||||
|
||||
fn write_file_content(dir: &Path, name: &str, content: &str) {
|
||||
std::fs::create_dir_all(dir).unwrap();
|
||||
std::fs::write(dir.join(name), content).unwrap();
|
||||
}
|
||||
|
||||
const MEMORY_BLOCK_IDS: [usize; 125] = [
|
||||
0, 1, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117,
|
||||
118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
|
||||
137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 2, 3, 32, 33, 34, 35, 36, 37,
|
||||
38, 39, 4, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 5, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
|
||||
6, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
|
||||
83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
|
||||
];
|
||||
|
||||
struct TestSysMemory {
|
||||
sysroot: String,
|
||||
}
|
||||
|
||||
/// Builds up a fake /sys/devices/system/memory filesystem.
|
||||
///
|
||||
/// /sys/devices/system/memory/block_size_bytes
|
||||
/// /sys/devices/system/memory/memoryXX/removable
|
||||
/// /sys/devices/system/memory/memoryXX/state
|
||||
/// /sys/devices/system/memory/memoryXX/valid_zones
|
||||
/// /sys/devices/system/memory/memoryXX/node0/ (folder)
|
||||
///
|
||||
/// And removes it automatically after the reference is dropped.
|
||||
impl TestSysMemory {
|
||||
fn new() -> Self {
|
||||
let random = rand::random::<u32>();
|
||||
let sysroot = Path::new(&env!("CARGO_MANIFEST_DIR"))
|
||||
.join("target")
|
||||
.join(format!("testsysmem-{random}"));
|
||||
let sysmem = sysroot
|
||||
.join("sys")
|
||||
.join("devices")
|
||||
.join("system")
|
||||
.join("memory");
|
||||
write_file_content(&sysmem, "block_size_bytes", "8000000\n");
|
||||
|
||||
for i in MEMORY_BLOCK_IDS {
|
||||
let block_dir = sysmem.join(format!("memory{}", i));
|
||||
write_file_content(&block_dir, "removable", "1\n");
|
||||
write_file_content(&block_dir, "state", "online\n");
|
||||
let valid_zone = match i {
|
||||
0 => "none\n",
|
||||
1..=6 => "DMA32\n",
|
||||
_ => "Normal\n",
|
||||
};
|
||||
write_file_content(&block_dir, "valid_zones", valid_zone);
|
||||
let node_dir = block_dir.join("node0");
|
||||
write_file_content(&node_dir, ".gitkeep", "");
|
||||
}
|
||||
|
||||
TestSysMemory {
|
||||
sysroot: sysroot.display().to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for TestSysMemory {
|
||||
fn drop(&mut self) {
|
||||
std::fs::remove_dir_all(&self.sysroot).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
fn sysroot_test_with_args(test_root: &TestSysMemory, expected_output: &str, args: &[&str]) {
|
||||
let mut cmd = new_ucmd!();
|
||||
cmd.arg("-s").arg(&test_root.sysroot);
|
||||
for arg in args {
|
||||
cmd.arg(arg);
|
||||
}
|
||||
cmd.succeeds()
|
||||
.no_stderr()
|
||||
.stdout_is_templated_fixture(expected_output, &[("\r\n", "\n")]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_invalid_arg() {
|
||||
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_columns_json() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_columns_json.expected",
|
||||
&["-o", "block,size", "-J"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_columns_pairs() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_columns_pairs.expected",
|
||||
&["-o", "block,size", "-P"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_columns_raw() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_columns_raw.expected",
|
||||
&["-o", "block,size", "-r"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_columns_table() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_columns_table.expected",
|
||||
&["-o", "block,size"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_json() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_json.expected", &["-J"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_json_all() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_json_all.expected", &["-J", "-a"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_json_bytes() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_json_bytes.expected", &["-J", "-b"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_json_noheadings() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_json_noheadings.expected",
|
||||
&["-J", "-n"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_pairs() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_pairs.expected", &["-P"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_pairs_all() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_pairs_all.expected", &["-P", "-a"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_pairs_bytes() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_pairs_bytes.expected", &["-P", "-b"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_pairs_noheadings() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_pairs_noheadings.expected",
|
||||
&["-P", "-n"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_raw() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_raw.expected", &["-r"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_raw_all() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_raw_all.expected", &["-r", "-a"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_raw_bytes() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_raw_bytes.expected", &["-r", "-b"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_raw_noheadings() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_raw_noheadings.expected",
|
||||
&["-r", "-n"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_split_node() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_split_node.expected",
|
||||
&["-S", "node"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_split_output_default() {
|
||||
// If split is not provided, then it defaults to splitting on the provided(or default) columns
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_split_output_default.expected",
|
||||
&["-o", "block,size,zones,node"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_split_removable() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_split_removable.expected",
|
||||
&["-S", "removable"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_split_state() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_split_state.expected",
|
||||
&["-S", "state"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_split_zones() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_split_zones.expected",
|
||||
&["-S", "zones"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_summary_always() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_summary_always.expected",
|
||||
&["--summary=always"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_summary_empty() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_summary_empty.expected",
|
||||
&["--summary"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_summary_never() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_summary_never.expected",
|
||||
&["--summary=never"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_summary_only() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(
|
||||
&test_root,
|
||||
"test_lsmem_summary_only.expected",
|
||||
&["--summary=only"],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_summary_conflict_json() {
|
||||
new_ucmd!().arg("--summary").arg("-J").fails().code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_summary_conflict_pairs() {
|
||||
new_ucmd!().arg("--summary").arg("-P").fails().code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_summary_conflict_raw() {
|
||||
new_ucmd!().arg("--summary").arg("-r").fails().code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_table() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_table.expected", &[]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_table_all() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_table_all.expected", &["-a"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_table_bytes() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_table_bytes.expected", &["-b"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_table_noheadings() {
|
||||
let test_root = TestSysMemory::new();
|
||||
sysroot_test_with_args(&test_root, "test_lsmem_table_noheadings.expected", &["-n"]);
|
||||
}
|
||||
|
11
tests/fixtures/lsmem/test_lsmem_columns_json.expected
vendored
Normal file
11
tests/fixtures/lsmem/test_lsmem_columns_json.expected
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"memory": [
|
||||
{
|
||||
"block": "0-6",
|
||||
"size": "896M"
|
||||
},{
|
||||
"block": "32-149",
|
||||
"size": "14.8G"
|
||||
}
|
||||
]
|
||||
}
|
2
tests/fixtures/lsmem/test_lsmem_columns_pairs.expected
vendored
Normal file
2
tests/fixtures/lsmem/test_lsmem_columns_pairs.expected
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
BLOCK="0-6" SIZE="896M"
|
||||
BLOCK="32-149" SIZE="14.8G"
|
3
tests/fixtures/lsmem/test_lsmem_columns_raw.expected
vendored
Normal file
3
tests/fixtures/lsmem/test_lsmem_columns_raw.expected
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
BLOCK SIZE
|
||||
0-6 896M
|
||||
32-149 14.8G
|
7
tests/fixtures/lsmem/test_lsmem_columns_table.expected
vendored
Normal file
7
tests/fixtures/lsmem/test_lsmem_columns_table.expected
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
BLOCK SIZE
|
||||
0-6 896M
|
||||
32-149 14.8G
|
||||
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
17
tests/fixtures/lsmem/test_lsmem_json.expected
vendored
Normal file
17
tests/fixtures/lsmem/test_lsmem_json.expected
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"memory": [
|
||||
{
|
||||
"range": "0x0000000000000000-0x0000000037ffffff",
|
||||
"size": "896M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "0-6"
|
||||
},{
|
||||
"range": "0x0000000100000000-0x00000004afffffff",
|
||||
"size": "14.8G",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "32-149"
|
||||
}
|
||||
]
|
||||
}
|
755
tests/fixtures/lsmem/test_lsmem_json_all.expected
vendored
Normal file
755
tests/fixtures/lsmem/test_lsmem_json_all.expected
vendored
Normal file
@@ -0,0 +1,755 @@
|
||||
{
|
||||
"memory": [
|
||||
{
|
||||
"range": "0x0000000000000000-0x0000000007ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "0"
|
||||
},{
|
||||
"range": "0x0000000008000000-0x000000000fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "1"
|
||||
},{
|
||||
"range": "0x0000000010000000-0x0000000017ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "2"
|
||||
},{
|
||||
"range": "0x0000000018000000-0x000000001fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "3"
|
||||
},{
|
||||
"range": "0x0000000020000000-0x0000000027ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "4"
|
||||
},{
|
||||
"range": "0x0000000028000000-0x000000002fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "5"
|
||||
},{
|
||||
"range": "0x0000000030000000-0x0000000037ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "6"
|
||||
},{
|
||||
"range": "0x0000000100000000-0x0000000107ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "32"
|
||||
},{
|
||||
"range": "0x0000000108000000-0x000000010fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "33"
|
||||
},{
|
||||
"range": "0x0000000110000000-0x0000000117ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "34"
|
||||
},{
|
||||
"range": "0x0000000118000000-0x000000011fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "35"
|
||||
},{
|
||||
"range": "0x0000000120000000-0x0000000127ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "36"
|
||||
},{
|
||||
"range": "0x0000000128000000-0x000000012fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "37"
|
||||
},{
|
||||
"range": "0x0000000130000000-0x0000000137ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "38"
|
||||
},{
|
||||
"range": "0x0000000138000000-0x000000013fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "39"
|
||||
},{
|
||||
"range": "0x0000000140000000-0x0000000147ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "40"
|
||||
},{
|
||||
"range": "0x0000000148000000-0x000000014fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "41"
|
||||
},{
|
||||
"range": "0x0000000150000000-0x0000000157ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "42"
|
||||
},{
|
||||
"range": "0x0000000158000000-0x000000015fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "43"
|
||||
},{
|
||||
"range": "0x0000000160000000-0x0000000167ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "44"
|
||||
},{
|
||||
"range": "0x0000000168000000-0x000000016fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "45"
|
||||
},{
|
||||
"range": "0x0000000170000000-0x0000000177ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "46"
|
||||
},{
|
||||
"range": "0x0000000178000000-0x000000017fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "47"
|
||||
},{
|
||||
"range": "0x0000000180000000-0x0000000187ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "48"
|
||||
},{
|
||||
"range": "0x0000000188000000-0x000000018fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "49"
|
||||
},{
|
||||
"range": "0x0000000190000000-0x0000000197ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "50"
|
||||
},{
|
||||
"range": "0x0000000198000000-0x000000019fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "51"
|
||||
},{
|
||||
"range": "0x00000001a0000000-0x00000001a7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "52"
|
||||
},{
|
||||
"range": "0x00000001a8000000-0x00000001afffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "53"
|
||||
},{
|
||||
"range": "0x00000001b0000000-0x00000001b7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "54"
|
||||
},{
|
||||
"range": "0x00000001b8000000-0x00000001bfffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "55"
|
||||
},{
|
||||
"range": "0x00000001c0000000-0x00000001c7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "56"
|
||||
},{
|
||||
"range": "0x00000001c8000000-0x00000001cfffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "57"
|
||||
},{
|
||||
"range": "0x00000001d0000000-0x00000001d7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "58"
|
||||
},{
|
||||
"range": "0x00000001d8000000-0x00000001dfffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "59"
|
||||
},{
|
||||
"range": "0x00000001e0000000-0x00000001e7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "60"
|
||||
},{
|
||||
"range": "0x00000001e8000000-0x00000001efffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "61"
|
||||
},{
|
||||
"range": "0x00000001f0000000-0x00000001f7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "62"
|
||||
},{
|
||||
"range": "0x00000001f8000000-0x00000001ffffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "63"
|
||||
},{
|
||||
"range": "0x0000000200000000-0x0000000207ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "64"
|
||||
},{
|
||||
"range": "0x0000000208000000-0x000000020fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "65"
|
||||
},{
|
||||
"range": "0x0000000210000000-0x0000000217ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "66"
|
||||
},{
|
||||
"range": "0x0000000218000000-0x000000021fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "67"
|
||||
},{
|
||||
"range": "0x0000000220000000-0x0000000227ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "68"
|
||||
},{
|
||||
"range": "0x0000000228000000-0x000000022fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "69"
|
||||
},{
|
||||
"range": "0x0000000230000000-0x0000000237ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "70"
|
||||
},{
|
||||
"range": "0x0000000238000000-0x000000023fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "71"
|
||||
},{
|
||||
"range": "0x0000000240000000-0x0000000247ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "72"
|
||||
},{
|
||||
"range": "0x0000000248000000-0x000000024fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "73"
|
||||
},{
|
||||
"range": "0x0000000250000000-0x0000000257ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "74"
|
||||
},{
|
||||
"range": "0x0000000258000000-0x000000025fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "75"
|
||||
},{
|
||||
"range": "0x0000000260000000-0x0000000267ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "76"
|
||||
},{
|
||||
"range": "0x0000000268000000-0x000000026fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "77"
|
||||
},{
|
||||
"range": "0x0000000270000000-0x0000000277ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "78"
|
||||
},{
|
||||
"range": "0x0000000278000000-0x000000027fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "79"
|
||||
},{
|
||||
"range": "0x0000000280000000-0x0000000287ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "80"
|
||||
},{
|
||||
"range": "0x0000000288000000-0x000000028fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "81"
|
||||
},{
|
||||
"range": "0x0000000290000000-0x0000000297ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "82"
|
||||
},{
|
||||
"range": "0x0000000298000000-0x000000029fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "83"
|
||||
},{
|
||||
"range": "0x00000002a0000000-0x00000002a7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "84"
|
||||
},{
|
||||
"range": "0x00000002a8000000-0x00000002afffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "85"
|
||||
},{
|
||||
"range": "0x00000002b0000000-0x00000002b7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "86"
|
||||
},{
|
||||
"range": "0x00000002b8000000-0x00000002bfffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "87"
|
||||
},{
|
||||
"range": "0x00000002c0000000-0x00000002c7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "88"
|
||||
},{
|
||||
"range": "0x00000002c8000000-0x00000002cfffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "89"
|
||||
},{
|
||||
"range": "0x00000002d0000000-0x00000002d7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "90"
|
||||
},{
|
||||
"range": "0x00000002d8000000-0x00000002dfffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "91"
|
||||
},{
|
||||
"range": "0x00000002e0000000-0x00000002e7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "92"
|
||||
},{
|
||||
"range": "0x00000002e8000000-0x00000002efffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "93"
|
||||
},{
|
||||
"range": "0x00000002f0000000-0x00000002f7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "94"
|
||||
},{
|
||||
"range": "0x00000002f8000000-0x00000002ffffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "95"
|
||||
},{
|
||||
"range": "0x0000000300000000-0x0000000307ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "96"
|
||||
},{
|
||||
"range": "0x0000000308000000-0x000000030fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "97"
|
||||
},{
|
||||
"range": "0x0000000310000000-0x0000000317ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "98"
|
||||
},{
|
||||
"range": "0x0000000318000000-0x000000031fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "99"
|
||||
},{
|
||||
"range": "0x0000000320000000-0x0000000327ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "100"
|
||||
},{
|
||||
"range": "0x0000000328000000-0x000000032fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "101"
|
||||
},{
|
||||
"range": "0x0000000330000000-0x0000000337ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "102"
|
||||
},{
|
||||
"range": "0x0000000338000000-0x000000033fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "103"
|
||||
},{
|
||||
"range": "0x0000000340000000-0x0000000347ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "104"
|
||||
},{
|
||||
"range": "0x0000000348000000-0x000000034fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "105"
|
||||
},{
|
||||
"range": "0x0000000350000000-0x0000000357ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "106"
|
||||
},{
|
||||
"range": "0x0000000358000000-0x000000035fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "107"
|
||||
},{
|
||||
"range": "0x0000000360000000-0x0000000367ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "108"
|
||||
},{
|
||||
"range": "0x0000000368000000-0x000000036fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "109"
|
||||
},{
|
||||
"range": "0x0000000370000000-0x0000000377ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "110"
|
||||
},{
|
||||
"range": "0x0000000378000000-0x000000037fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "111"
|
||||
},{
|
||||
"range": "0x0000000380000000-0x0000000387ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "112"
|
||||
},{
|
||||
"range": "0x0000000388000000-0x000000038fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "113"
|
||||
},{
|
||||
"range": "0x0000000390000000-0x0000000397ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "114"
|
||||
},{
|
||||
"range": "0x0000000398000000-0x000000039fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "115"
|
||||
},{
|
||||
"range": "0x00000003a0000000-0x00000003a7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "116"
|
||||
},{
|
||||
"range": "0x00000003a8000000-0x00000003afffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "117"
|
||||
},{
|
||||
"range": "0x00000003b0000000-0x00000003b7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "118"
|
||||
},{
|
||||
"range": "0x00000003b8000000-0x00000003bfffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "119"
|
||||
},{
|
||||
"range": "0x00000003c0000000-0x00000003c7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "120"
|
||||
},{
|
||||
"range": "0x00000003c8000000-0x00000003cfffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "121"
|
||||
},{
|
||||
"range": "0x00000003d0000000-0x00000003d7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "122"
|
||||
},{
|
||||
"range": "0x00000003d8000000-0x00000003dfffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "123"
|
||||
},{
|
||||
"range": "0x00000003e0000000-0x00000003e7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "124"
|
||||
},{
|
||||
"range": "0x00000003e8000000-0x00000003efffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "125"
|
||||
},{
|
||||
"range": "0x00000003f0000000-0x00000003f7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "126"
|
||||
},{
|
||||
"range": "0x00000003f8000000-0x00000003ffffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "127"
|
||||
},{
|
||||
"range": "0x0000000400000000-0x0000000407ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "128"
|
||||
},{
|
||||
"range": "0x0000000408000000-0x000000040fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "129"
|
||||
},{
|
||||
"range": "0x0000000410000000-0x0000000417ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "130"
|
||||
},{
|
||||
"range": "0x0000000418000000-0x000000041fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "131"
|
||||
},{
|
||||
"range": "0x0000000420000000-0x0000000427ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "132"
|
||||
},{
|
||||
"range": "0x0000000428000000-0x000000042fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "133"
|
||||
},{
|
||||
"range": "0x0000000430000000-0x0000000437ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "134"
|
||||
},{
|
||||
"range": "0x0000000438000000-0x000000043fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "135"
|
||||
},{
|
||||
"range": "0x0000000440000000-0x0000000447ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "136"
|
||||
},{
|
||||
"range": "0x0000000448000000-0x000000044fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "137"
|
||||
},{
|
||||
"range": "0x0000000450000000-0x0000000457ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "138"
|
||||
},{
|
||||
"range": "0x0000000458000000-0x000000045fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "139"
|
||||
},{
|
||||
"range": "0x0000000460000000-0x0000000467ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "140"
|
||||
},{
|
||||
"range": "0x0000000468000000-0x000000046fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "141"
|
||||
},{
|
||||
"range": "0x0000000470000000-0x0000000477ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "142"
|
||||
},{
|
||||
"range": "0x0000000478000000-0x000000047fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "143"
|
||||
},{
|
||||
"range": "0x0000000480000000-0x0000000487ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "144"
|
||||
},{
|
||||
"range": "0x0000000488000000-0x000000048fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "145"
|
||||
},{
|
||||
"range": "0x0000000490000000-0x0000000497ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "146"
|
||||
},{
|
||||
"range": "0x0000000498000000-0x000000049fffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "147"
|
||||
},{
|
||||
"range": "0x00000004a0000000-0x00000004a7ffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "148"
|
||||
},{
|
||||
"range": "0x00000004a8000000-0x00000004afffffff",
|
||||
"size": "128M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "149"
|
||||
}
|
||||
]
|
||||
}
|
17
tests/fixtures/lsmem/test_lsmem_json_bytes.expected
vendored
Normal file
17
tests/fixtures/lsmem/test_lsmem_json_bytes.expected
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"memory": [
|
||||
{
|
||||
"range": "0x0000000000000000-0x0000000037ffffff",
|
||||
"size": 939524096,
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "0-6"
|
||||
},{
|
||||
"range": "0x0000000100000000-0x00000004afffffff",
|
||||
"size": 15837691904,
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "32-149"
|
||||
}
|
||||
]
|
||||
}
|
17
tests/fixtures/lsmem/test_lsmem_json_noheadings.expected
vendored
Normal file
17
tests/fixtures/lsmem/test_lsmem_json_noheadings.expected
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"memory": [
|
||||
{
|
||||
"range": "0x0000000000000000-0x0000000037ffffff",
|
||||
"size": "896M",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "0-6"
|
||||
},{
|
||||
"range": "0x0000000100000000-0x00000004afffffff",
|
||||
"size": "14.8G",
|
||||
"state": "online",
|
||||
"removable": true,
|
||||
"block": "32-149"
|
||||
}
|
||||
]
|
||||
}
|
2
tests/fixtures/lsmem/test_lsmem_pairs.expected
vendored
Normal file
2
tests/fixtures/lsmem/test_lsmem_pairs.expected
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
RANGE="0x0000000000000000-0x0000000037ffffff" SIZE="896M" STATE="online" REMOVABLE="yes" BLOCK="0-6"
|
||||
RANGE="0x0000000100000000-0x00000004afffffff" SIZE="14.8G" STATE="online" REMOVABLE="yes" BLOCK="32-149"
|
125
tests/fixtures/lsmem/test_lsmem_pairs_all.expected
vendored
Normal file
125
tests/fixtures/lsmem/test_lsmem_pairs_all.expected
vendored
Normal file
@@ -0,0 +1,125 @@
|
||||
RANGE="0x0000000000000000-0x0000000007ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="0"
|
||||
RANGE="0x0000000008000000-0x000000000fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="1"
|
||||
RANGE="0x0000000010000000-0x0000000017ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="2"
|
||||
RANGE="0x0000000018000000-0x000000001fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="3"
|
||||
RANGE="0x0000000020000000-0x0000000027ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="4"
|
||||
RANGE="0x0000000028000000-0x000000002fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="5"
|
||||
RANGE="0x0000000030000000-0x0000000037ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="6"
|
||||
RANGE="0x0000000100000000-0x0000000107ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="32"
|
||||
RANGE="0x0000000108000000-0x000000010fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="33"
|
||||
RANGE="0x0000000110000000-0x0000000117ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="34"
|
||||
RANGE="0x0000000118000000-0x000000011fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="35"
|
||||
RANGE="0x0000000120000000-0x0000000127ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="36"
|
||||
RANGE="0x0000000128000000-0x000000012fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="37"
|
||||
RANGE="0x0000000130000000-0x0000000137ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="38"
|
||||
RANGE="0x0000000138000000-0x000000013fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="39"
|
||||
RANGE="0x0000000140000000-0x0000000147ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="40"
|
||||
RANGE="0x0000000148000000-0x000000014fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="41"
|
||||
RANGE="0x0000000150000000-0x0000000157ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="42"
|
||||
RANGE="0x0000000158000000-0x000000015fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="43"
|
||||
RANGE="0x0000000160000000-0x0000000167ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="44"
|
||||
RANGE="0x0000000168000000-0x000000016fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="45"
|
||||
RANGE="0x0000000170000000-0x0000000177ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="46"
|
||||
RANGE="0x0000000178000000-0x000000017fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="47"
|
||||
RANGE="0x0000000180000000-0x0000000187ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="48"
|
||||
RANGE="0x0000000188000000-0x000000018fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="49"
|
||||
RANGE="0x0000000190000000-0x0000000197ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="50"
|
||||
RANGE="0x0000000198000000-0x000000019fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="51"
|
||||
RANGE="0x00000001a0000000-0x00000001a7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="52"
|
||||
RANGE="0x00000001a8000000-0x00000001afffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="53"
|
||||
RANGE="0x00000001b0000000-0x00000001b7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="54"
|
||||
RANGE="0x00000001b8000000-0x00000001bfffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="55"
|
||||
RANGE="0x00000001c0000000-0x00000001c7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="56"
|
||||
RANGE="0x00000001c8000000-0x00000001cfffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="57"
|
||||
RANGE="0x00000001d0000000-0x00000001d7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="58"
|
||||
RANGE="0x00000001d8000000-0x00000001dfffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="59"
|
||||
RANGE="0x00000001e0000000-0x00000001e7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="60"
|
||||
RANGE="0x00000001e8000000-0x00000001efffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="61"
|
||||
RANGE="0x00000001f0000000-0x00000001f7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="62"
|
||||
RANGE="0x00000001f8000000-0x00000001ffffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="63"
|
||||
RANGE="0x0000000200000000-0x0000000207ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="64"
|
||||
RANGE="0x0000000208000000-0x000000020fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="65"
|
||||
RANGE="0x0000000210000000-0x0000000217ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="66"
|
||||
RANGE="0x0000000218000000-0x000000021fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="67"
|
||||
RANGE="0x0000000220000000-0x0000000227ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="68"
|
||||
RANGE="0x0000000228000000-0x000000022fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="69"
|
||||
RANGE="0x0000000230000000-0x0000000237ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="70"
|
||||
RANGE="0x0000000238000000-0x000000023fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="71"
|
||||
RANGE="0x0000000240000000-0x0000000247ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="72"
|
||||
RANGE="0x0000000248000000-0x000000024fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="73"
|
||||
RANGE="0x0000000250000000-0x0000000257ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="74"
|
||||
RANGE="0x0000000258000000-0x000000025fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="75"
|
||||
RANGE="0x0000000260000000-0x0000000267ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="76"
|
||||
RANGE="0x0000000268000000-0x000000026fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="77"
|
||||
RANGE="0x0000000270000000-0x0000000277ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="78"
|
||||
RANGE="0x0000000278000000-0x000000027fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="79"
|
||||
RANGE="0x0000000280000000-0x0000000287ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="80"
|
||||
RANGE="0x0000000288000000-0x000000028fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="81"
|
||||
RANGE="0x0000000290000000-0x0000000297ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="82"
|
||||
RANGE="0x0000000298000000-0x000000029fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="83"
|
||||
RANGE="0x00000002a0000000-0x00000002a7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="84"
|
||||
RANGE="0x00000002a8000000-0x00000002afffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="85"
|
||||
RANGE="0x00000002b0000000-0x00000002b7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="86"
|
||||
RANGE="0x00000002b8000000-0x00000002bfffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="87"
|
||||
RANGE="0x00000002c0000000-0x00000002c7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="88"
|
||||
RANGE="0x00000002c8000000-0x00000002cfffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="89"
|
||||
RANGE="0x00000002d0000000-0x00000002d7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="90"
|
||||
RANGE="0x00000002d8000000-0x00000002dfffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="91"
|
||||
RANGE="0x00000002e0000000-0x00000002e7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="92"
|
||||
RANGE="0x00000002e8000000-0x00000002efffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="93"
|
||||
RANGE="0x00000002f0000000-0x00000002f7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="94"
|
||||
RANGE="0x00000002f8000000-0x00000002ffffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="95"
|
||||
RANGE="0x0000000300000000-0x0000000307ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="96"
|
||||
RANGE="0x0000000308000000-0x000000030fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="97"
|
||||
RANGE="0x0000000310000000-0x0000000317ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="98"
|
||||
RANGE="0x0000000318000000-0x000000031fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="99"
|
||||
RANGE="0x0000000320000000-0x0000000327ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="100"
|
||||
RANGE="0x0000000328000000-0x000000032fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="101"
|
||||
RANGE="0x0000000330000000-0x0000000337ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="102"
|
||||
RANGE="0x0000000338000000-0x000000033fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="103"
|
||||
RANGE="0x0000000340000000-0x0000000347ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="104"
|
||||
RANGE="0x0000000348000000-0x000000034fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="105"
|
||||
RANGE="0x0000000350000000-0x0000000357ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="106"
|
||||
RANGE="0x0000000358000000-0x000000035fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="107"
|
||||
RANGE="0x0000000360000000-0x0000000367ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="108"
|
||||
RANGE="0x0000000368000000-0x000000036fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="109"
|
||||
RANGE="0x0000000370000000-0x0000000377ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="110"
|
||||
RANGE="0x0000000378000000-0x000000037fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="111"
|
||||
RANGE="0x0000000380000000-0x0000000387ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="112"
|
||||
RANGE="0x0000000388000000-0x000000038fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="113"
|
||||
RANGE="0x0000000390000000-0x0000000397ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="114"
|
||||
RANGE="0x0000000398000000-0x000000039fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="115"
|
||||
RANGE="0x00000003a0000000-0x00000003a7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="116"
|
||||
RANGE="0x00000003a8000000-0x00000003afffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="117"
|
||||
RANGE="0x00000003b0000000-0x00000003b7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="118"
|
||||
RANGE="0x00000003b8000000-0x00000003bfffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="119"
|
||||
RANGE="0x00000003c0000000-0x00000003c7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="120"
|
||||
RANGE="0x00000003c8000000-0x00000003cfffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="121"
|
||||
RANGE="0x00000003d0000000-0x00000003d7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="122"
|
||||
RANGE="0x00000003d8000000-0x00000003dfffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="123"
|
||||
RANGE="0x00000003e0000000-0x00000003e7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="124"
|
||||
RANGE="0x00000003e8000000-0x00000003efffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="125"
|
||||
RANGE="0x00000003f0000000-0x00000003f7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="126"
|
||||
RANGE="0x00000003f8000000-0x00000003ffffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="127"
|
||||
RANGE="0x0000000400000000-0x0000000407ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="128"
|
||||
RANGE="0x0000000408000000-0x000000040fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="129"
|
||||
RANGE="0x0000000410000000-0x0000000417ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="130"
|
||||
RANGE="0x0000000418000000-0x000000041fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="131"
|
||||
RANGE="0x0000000420000000-0x0000000427ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="132"
|
||||
RANGE="0x0000000428000000-0x000000042fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="133"
|
||||
RANGE="0x0000000430000000-0x0000000437ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="134"
|
||||
RANGE="0x0000000438000000-0x000000043fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="135"
|
||||
RANGE="0x0000000440000000-0x0000000447ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="136"
|
||||
RANGE="0x0000000448000000-0x000000044fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="137"
|
||||
RANGE="0x0000000450000000-0x0000000457ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="138"
|
||||
RANGE="0x0000000458000000-0x000000045fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="139"
|
||||
RANGE="0x0000000460000000-0x0000000467ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="140"
|
||||
RANGE="0x0000000468000000-0x000000046fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="141"
|
||||
RANGE="0x0000000470000000-0x0000000477ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="142"
|
||||
RANGE="0x0000000478000000-0x000000047fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="143"
|
||||
RANGE="0x0000000480000000-0x0000000487ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="144"
|
||||
RANGE="0x0000000488000000-0x000000048fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="145"
|
||||
RANGE="0x0000000490000000-0x0000000497ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="146"
|
||||
RANGE="0x0000000498000000-0x000000049fffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="147"
|
||||
RANGE="0x00000004a0000000-0x00000004a7ffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="148"
|
||||
RANGE="0x00000004a8000000-0x00000004afffffff" SIZE="128M" STATE="online" REMOVABLE="yes" BLOCK="149"
|
2
tests/fixtures/lsmem/test_lsmem_pairs_bytes.expected
vendored
Normal file
2
tests/fixtures/lsmem/test_lsmem_pairs_bytes.expected
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
RANGE="0x0000000000000000-0x0000000037ffffff" SIZE="939524096" STATE="online" REMOVABLE="yes" BLOCK="0-6"
|
||||
RANGE="0x0000000100000000-0x00000004afffffff" SIZE="15837691904" STATE="online" REMOVABLE="yes" BLOCK="32-149"
|
2
tests/fixtures/lsmem/test_lsmem_pairs_noheadings.expected
vendored
Normal file
2
tests/fixtures/lsmem/test_lsmem_pairs_noheadings.expected
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
RANGE="0x0000000000000000-0x0000000037ffffff" SIZE="896M" STATE="online" REMOVABLE="yes" BLOCK="0-6"
|
||||
RANGE="0x0000000100000000-0x00000004afffffff" SIZE="14.8G" STATE="online" REMOVABLE="yes" BLOCK="32-149"
|
3
tests/fixtures/lsmem/test_lsmem_raw.expected
vendored
Normal file
3
tests/fixtures/lsmem/test_lsmem_raw.expected
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000037ffffff 896M online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 14.8G online yes 32-149
|
126
tests/fixtures/lsmem/test_lsmem_raw_all.expected
vendored
Normal file
126
tests/fixtures/lsmem/test_lsmem_raw_all.expected
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000007ffffff 128M online yes 0
|
||||
0x0000000008000000-0x000000000fffffff 128M online yes 1
|
||||
0x0000000010000000-0x0000000017ffffff 128M online yes 2
|
||||
0x0000000018000000-0x000000001fffffff 128M online yes 3
|
||||
0x0000000020000000-0x0000000027ffffff 128M online yes 4
|
||||
0x0000000028000000-0x000000002fffffff 128M online yes 5
|
||||
0x0000000030000000-0x0000000037ffffff 128M online yes 6
|
||||
0x0000000100000000-0x0000000107ffffff 128M online yes 32
|
||||
0x0000000108000000-0x000000010fffffff 128M online yes 33
|
||||
0x0000000110000000-0x0000000117ffffff 128M online yes 34
|
||||
0x0000000118000000-0x000000011fffffff 128M online yes 35
|
||||
0x0000000120000000-0x0000000127ffffff 128M online yes 36
|
||||
0x0000000128000000-0x000000012fffffff 128M online yes 37
|
||||
0x0000000130000000-0x0000000137ffffff 128M online yes 38
|
||||
0x0000000138000000-0x000000013fffffff 128M online yes 39
|
||||
0x0000000140000000-0x0000000147ffffff 128M online yes 40
|
||||
0x0000000148000000-0x000000014fffffff 128M online yes 41
|
||||
0x0000000150000000-0x0000000157ffffff 128M online yes 42
|
||||
0x0000000158000000-0x000000015fffffff 128M online yes 43
|
||||
0x0000000160000000-0x0000000167ffffff 128M online yes 44
|
||||
0x0000000168000000-0x000000016fffffff 128M online yes 45
|
||||
0x0000000170000000-0x0000000177ffffff 128M online yes 46
|
||||
0x0000000178000000-0x000000017fffffff 128M online yes 47
|
||||
0x0000000180000000-0x0000000187ffffff 128M online yes 48
|
||||
0x0000000188000000-0x000000018fffffff 128M online yes 49
|
||||
0x0000000190000000-0x0000000197ffffff 128M online yes 50
|
||||
0x0000000198000000-0x000000019fffffff 128M online yes 51
|
||||
0x00000001a0000000-0x00000001a7ffffff 128M online yes 52
|
||||
0x00000001a8000000-0x00000001afffffff 128M online yes 53
|
||||
0x00000001b0000000-0x00000001b7ffffff 128M online yes 54
|
||||
0x00000001b8000000-0x00000001bfffffff 128M online yes 55
|
||||
0x00000001c0000000-0x00000001c7ffffff 128M online yes 56
|
||||
0x00000001c8000000-0x00000001cfffffff 128M online yes 57
|
||||
0x00000001d0000000-0x00000001d7ffffff 128M online yes 58
|
||||
0x00000001d8000000-0x00000001dfffffff 128M online yes 59
|
||||
0x00000001e0000000-0x00000001e7ffffff 128M online yes 60
|
||||
0x00000001e8000000-0x00000001efffffff 128M online yes 61
|
||||
0x00000001f0000000-0x00000001f7ffffff 128M online yes 62
|
||||
0x00000001f8000000-0x00000001ffffffff 128M online yes 63
|
||||
0x0000000200000000-0x0000000207ffffff 128M online yes 64
|
||||
0x0000000208000000-0x000000020fffffff 128M online yes 65
|
||||
0x0000000210000000-0x0000000217ffffff 128M online yes 66
|
||||
0x0000000218000000-0x000000021fffffff 128M online yes 67
|
||||
0x0000000220000000-0x0000000227ffffff 128M online yes 68
|
||||
0x0000000228000000-0x000000022fffffff 128M online yes 69
|
||||
0x0000000230000000-0x0000000237ffffff 128M online yes 70
|
||||
0x0000000238000000-0x000000023fffffff 128M online yes 71
|
||||
0x0000000240000000-0x0000000247ffffff 128M online yes 72
|
||||
0x0000000248000000-0x000000024fffffff 128M online yes 73
|
||||
0x0000000250000000-0x0000000257ffffff 128M online yes 74
|
||||
0x0000000258000000-0x000000025fffffff 128M online yes 75
|
||||
0x0000000260000000-0x0000000267ffffff 128M online yes 76
|
||||
0x0000000268000000-0x000000026fffffff 128M online yes 77
|
||||
0x0000000270000000-0x0000000277ffffff 128M online yes 78
|
||||
0x0000000278000000-0x000000027fffffff 128M online yes 79
|
||||
0x0000000280000000-0x0000000287ffffff 128M online yes 80
|
||||
0x0000000288000000-0x000000028fffffff 128M online yes 81
|
||||
0x0000000290000000-0x0000000297ffffff 128M online yes 82
|
||||
0x0000000298000000-0x000000029fffffff 128M online yes 83
|
||||
0x00000002a0000000-0x00000002a7ffffff 128M online yes 84
|
||||
0x00000002a8000000-0x00000002afffffff 128M online yes 85
|
||||
0x00000002b0000000-0x00000002b7ffffff 128M online yes 86
|
||||
0x00000002b8000000-0x00000002bfffffff 128M online yes 87
|
||||
0x00000002c0000000-0x00000002c7ffffff 128M online yes 88
|
||||
0x00000002c8000000-0x00000002cfffffff 128M online yes 89
|
||||
0x00000002d0000000-0x00000002d7ffffff 128M online yes 90
|
||||
0x00000002d8000000-0x00000002dfffffff 128M online yes 91
|
||||
0x00000002e0000000-0x00000002e7ffffff 128M online yes 92
|
||||
0x00000002e8000000-0x00000002efffffff 128M online yes 93
|
||||
0x00000002f0000000-0x00000002f7ffffff 128M online yes 94
|
||||
0x00000002f8000000-0x00000002ffffffff 128M online yes 95
|
||||
0x0000000300000000-0x0000000307ffffff 128M online yes 96
|
||||
0x0000000308000000-0x000000030fffffff 128M online yes 97
|
||||
0x0000000310000000-0x0000000317ffffff 128M online yes 98
|
||||
0x0000000318000000-0x000000031fffffff 128M online yes 99
|
||||
0x0000000320000000-0x0000000327ffffff 128M online yes 100
|
||||
0x0000000328000000-0x000000032fffffff 128M online yes 101
|
||||
0x0000000330000000-0x0000000337ffffff 128M online yes 102
|
||||
0x0000000338000000-0x000000033fffffff 128M online yes 103
|
||||
0x0000000340000000-0x0000000347ffffff 128M online yes 104
|
||||
0x0000000348000000-0x000000034fffffff 128M online yes 105
|
||||
0x0000000350000000-0x0000000357ffffff 128M online yes 106
|
||||
0x0000000358000000-0x000000035fffffff 128M online yes 107
|
||||
0x0000000360000000-0x0000000367ffffff 128M online yes 108
|
||||
0x0000000368000000-0x000000036fffffff 128M online yes 109
|
||||
0x0000000370000000-0x0000000377ffffff 128M online yes 110
|
||||
0x0000000378000000-0x000000037fffffff 128M online yes 111
|
||||
0x0000000380000000-0x0000000387ffffff 128M online yes 112
|
||||
0x0000000388000000-0x000000038fffffff 128M online yes 113
|
||||
0x0000000390000000-0x0000000397ffffff 128M online yes 114
|
||||
0x0000000398000000-0x000000039fffffff 128M online yes 115
|
||||
0x00000003a0000000-0x00000003a7ffffff 128M online yes 116
|
||||
0x00000003a8000000-0x00000003afffffff 128M online yes 117
|
||||
0x00000003b0000000-0x00000003b7ffffff 128M online yes 118
|
||||
0x00000003b8000000-0x00000003bfffffff 128M online yes 119
|
||||
0x00000003c0000000-0x00000003c7ffffff 128M online yes 120
|
||||
0x00000003c8000000-0x00000003cfffffff 128M online yes 121
|
||||
0x00000003d0000000-0x00000003d7ffffff 128M online yes 122
|
||||
0x00000003d8000000-0x00000003dfffffff 128M online yes 123
|
||||
0x00000003e0000000-0x00000003e7ffffff 128M online yes 124
|
||||
0x00000003e8000000-0x00000003efffffff 128M online yes 125
|
||||
0x00000003f0000000-0x00000003f7ffffff 128M online yes 126
|
||||
0x00000003f8000000-0x00000003ffffffff 128M online yes 127
|
||||
0x0000000400000000-0x0000000407ffffff 128M online yes 128
|
||||
0x0000000408000000-0x000000040fffffff 128M online yes 129
|
||||
0x0000000410000000-0x0000000417ffffff 128M online yes 130
|
||||
0x0000000418000000-0x000000041fffffff 128M online yes 131
|
||||
0x0000000420000000-0x0000000427ffffff 128M online yes 132
|
||||
0x0000000428000000-0x000000042fffffff 128M online yes 133
|
||||
0x0000000430000000-0x0000000437ffffff 128M online yes 134
|
||||
0x0000000438000000-0x000000043fffffff 128M online yes 135
|
||||
0x0000000440000000-0x0000000447ffffff 128M online yes 136
|
||||
0x0000000448000000-0x000000044fffffff 128M online yes 137
|
||||
0x0000000450000000-0x0000000457ffffff 128M online yes 138
|
||||
0x0000000458000000-0x000000045fffffff 128M online yes 139
|
||||
0x0000000460000000-0x0000000467ffffff 128M online yes 140
|
||||
0x0000000468000000-0x000000046fffffff 128M online yes 141
|
||||
0x0000000470000000-0x0000000477ffffff 128M online yes 142
|
||||
0x0000000478000000-0x000000047fffffff 128M online yes 143
|
||||
0x0000000480000000-0x0000000487ffffff 128M online yes 144
|
||||
0x0000000488000000-0x000000048fffffff 128M online yes 145
|
||||
0x0000000490000000-0x0000000497ffffff 128M online yes 146
|
||||
0x0000000498000000-0x000000049fffffff 128M online yes 147
|
||||
0x00000004a0000000-0x00000004a7ffffff 128M online yes 148
|
||||
0x00000004a8000000-0x00000004afffffff 128M online yes 149
|
3
tests/fixtures/lsmem/test_lsmem_raw_bytes.expected
vendored
Normal file
3
tests/fixtures/lsmem/test_lsmem_raw_bytes.expected
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000037ffffff 939524096 online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 15837691904 online yes 32-149
|
2
tests/fixtures/lsmem/test_lsmem_raw_noheadings.expected
vendored
Normal file
2
tests/fixtures/lsmem/test_lsmem_raw_noheadings.expected
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
0x0000000000000000-0x0000000037ffffff 896M online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 14.8G online yes 32-149
|
7
tests/fixtures/lsmem/test_lsmem_split_node.expected
vendored
Normal file
7
tests/fixtures/lsmem/test_lsmem_split_node.expected
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000037ffffff 896M online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 14.8G online yes 32-149
|
||||
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
8
tests/fixtures/lsmem/test_lsmem_split_output_default.expected
vendored
Normal file
8
tests/fixtures/lsmem/test_lsmem_split_output_default.expected
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
BLOCK SIZE ZONES NODE
|
||||
0 128M None 0
|
||||
1-6 768M DMA32 0
|
||||
32-149 14.8G Normal 0
|
||||
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
7
tests/fixtures/lsmem/test_lsmem_split_removable.expected
vendored
Normal file
7
tests/fixtures/lsmem/test_lsmem_split_removable.expected
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000037ffffff 896M online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 14.8G online yes 32-149
|
||||
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
7
tests/fixtures/lsmem/test_lsmem_split_state.expected
vendored
Normal file
7
tests/fixtures/lsmem/test_lsmem_split_state.expected
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000037ffffff 896M online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 14.8G online yes 32-149
|
||||
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
8
tests/fixtures/lsmem/test_lsmem_split_zones.expected
vendored
Normal file
8
tests/fixtures/lsmem/test_lsmem_split_zones.expected
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000007ffffff 128M online yes 0
|
||||
0x0000000008000000-0x0000000037ffffff 768M online yes 1-6
|
||||
0x0000000100000000-0x00000004afffffff 14.8G online yes 32-149
|
||||
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
7
tests/fixtures/lsmem/test_lsmem_summary_always.expected
vendored
Normal file
7
tests/fixtures/lsmem/test_lsmem_summary_always.expected
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000037ffffff 896M online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 14.8G online yes 32-149
|
||||
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
3
tests/fixtures/lsmem/test_lsmem_summary_empty.expected
vendored
Normal file
3
tests/fixtures/lsmem/test_lsmem_summary_empty.expected
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
3
tests/fixtures/lsmem/test_lsmem_summary_never.expected
vendored
Normal file
3
tests/fixtures/lsmem/test_lsmem_summary_never.expected
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000037ffffff 896M online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 14.8G online yes 32-149
|
3
tests/fixtures/lsmem/test_lsmem_summary_only.expected
vendored
Normal file
3
tests/fixtures/lsmem/test_lsmem_summary_only.expected
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
7
tests/fixtures/lsmem/test_lsmem_table.expected
vendored
Normal file
7
tests/fixtures/lsmem/test_lsmem_table.expected
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000037ffffff 896M online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 14.8G online yes 32-149
|
||||
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
130
tests/fixtures/lsmem/test_lsmem_table_all.expected
vendored
Normal file
130
tests/fixtures/lsmem/test_lsmem_table_all.expected
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000007ffffff 128M online yes 0
|
||||
0x0000000008000000-0x000000000fffffff 128M online yes 1
|
||||
0x0000000010000000-0x0000000017ffffff 128M online yes 2
|
||||
0x0000000018000000-0x000000001fffffff 128M online yes 3
|
||||
0x0000000020000000-0x0000000027ffffff 128M online yes 4
|
||||
0x0000000028000000-0x000000002fffffff 128M online yes 5
|
||||
0x0000000030000000-0x0000000037ffffff 128M online yes 6
|
||||
0x0000000100000000-0x0000000107ffffff 128M online yes 32
|
||||
0x0000000108000000-0x000000010fffffff 128M online yes 33
|
||||
0x0000000110000000-0x0000000117ffffff 128M online yes 34
|
||||
0x0000000118000000-0x000000011fffffff 128M online yes 35
|
||||
0x0000000120000000-0x0000000127ffffff 128M online yes 36
|
||||
0x0000000128000000-0x000000012fffffff 128M online yes 37
|
||||
0x0000000130000000-0x0000000137ffffff 128M online yes 38
|
||||
0x0000000138000000-0x000000013fffffff 128M online yes 39
|
||||
0x0000000140000000-0x0000000147ffffff 128M online yes 40
|
||||
0x0000000148000000-0x000000014fffffff 128M online yes 41
|
||||
0x0000000150000000-0x0000000157ffffff 128M online yes 42
|
||||
0x0000000158000000-0x000000015fffffff 128M online yes 43
|
||||
0x0000000160000000-0x0000000167ffffff 128M online yes 44
|
||||
0x0000000168000000-0x000000016fffffff 128M online yes 45
|
||||
0x0000000170000000-0x0000000177ffffff 128M online yes 46
|
||||
0x0000000178000000-0x000000017fffffff 128M online yes 47
|
||||
0x0000000180000000-0x0000000187ffffff 128M online yes 48
|
||||
0x0000000188000000-0x000000018fffffff 128M online yes 49
|
||||
0x0000000190000000-0x0000000197ffffff 128M online yes 50
|
||||
0x0000000198000000-0x000000019fffffff 128M online yes 51
|
||||
0x00000001a0000000-0x00000001a7ffffff 128M online yes 52
|
||||
0x00000001a8000000-0x00000001afffffff 128M online yes 53
|
||||
0x00000001b0000000-0x00000001b7ffffff 128M online yes 54
|
||||
0x00000001b8000000-0x00000001bfffffff 128M online yes 55
|
||||
0x00000001c0000000-0x00000001c7ffffff 128M online yes 56
|
||||
0x00000001c8000000-0x00000001cfffffff 128M online yes 57
|
||||
0x00000001d0000000-0x00000001d7ffffff 128M online yes 58
|
||||
0x00000001d8000000-0x00000001dfffffff 128M online yes 59
|
||||
0x00000001e0000000-0x00000001e7ffffff 128M online yes 60
|
||||
0x00000001e8000000-0x00000001efffffff 128M online yes 61
|
||||
0x00000001f0000000-0x00000001f7ffffff 128M online yes 62
|
||||
0x00000001f8000000-0x00000001ffffffff 128M online yes 63
|
||||
0x0000000200000000-0x0000000207ffffff 128M online yes 64
|
||||
0x0000000208000000-0x000000020fffffff 128M online yes 65
|
||||
0x0000000210000000-0x0000000217ffffff 128M online yes 66
|
||||
0x0000000218000000-0x000000021fffffff 128M online yes 67
|
||||
0x0000000220000000-0x0000000227ffffff 128M online yes 68
|
||||
0x0000000228000000-0x000000022fffffff 128M online yes 69
|
||||
0x0000000230000000-0x0000000237ffffff 128M online yes 70
|
||||
0x0000000238000000-0x000000023fffffff 128M online yes 71
|
||||
0x0000000240000000-0x0000000247ffffff 128M online yes 72
|
||||
0x0000000248000000-0x000000024fffffff 128M online yes 73
|
||||
0x0000000250000000-0x0000000257ffffff 128M online yes 74
|
||||
0x0000000258000000-0x000000025fffffff 128M online yes 75
|
||||
0x0000000260000000-0x0000000267ffffff 128M online yes 76
|
||||
0x0000000268000000-0x000000026fffffff 128M online yes 77
|
||||
0x0000000270000000-0x0000000277ffffff 128M online yes 78
|
||||
0x0000000278000000-0x000000027fffffff 128M online yes 79
|
||||
0x0000000280000000-0x0000000287ffffff 128M online yes 80
|
||||
0x0000000288000000-0x000000028fffffff 128M online yes 81
|
||||
0x0000000290000000-0x0000000297ffffff 128M online yes 82
|
||||
0x0000000298000000-0x000000029fffffff 128M online yes 83
|
||||
0x00000002a0000000-0x00000002a7ffffff 128M online yes 84
|
||||
0x00000002a8000000-0x00000002afffffff 128M online yes 85
|
||||
0x00000002b0000000-0x00000002b7ffffff 128M online yes 86
|
||||
0x00000002b8000000-0x00000002bfffffff 128M online yes 87
|
||||
0x00000002c0000000-0x00000002c7ffffff 128M online yes 88
|
||||
0x00000002c8000000-0x00000002cfffffff 128M online yes 89
|
||||
0x00000002d0000000-0x00000002d7ffffff 128M online yes 90
|
||||
0x00000002d8000000-0x00000002dfffffff 128M online yes 91
|
||||
0x00000002e0000000-0x00000002e7ffffff 128M online yes 92
|
||||
0x00000002e8000000-0x00000002efffffff 128M online yes 93
|
||||
0x00000002f0000000-0x00000002f7ffffff 128M online yes 94
|
||||
0x00000002f8000000-0x00000002ffffffff 128M online yes 95
|
||||
0x0000000300000000-0x0000000307ffffff 128M online yes 96
|
||||
0x0000000308000000-0x000000030fffffff 128M online yes 97
|
||||
0x0000000310000000-0x0000000317ffffff 128M online yes 98
|
||||
0x0000000318000000-0x000000031fffffff 128M online yes 99
|
||||
0x0000000320000000-0x0000000327ffffff 128M online yes 100
|
||||
0x0000000328000000-0x000000032fffffff 128M online yes 101
|
||||
0x0000000330000000-0x0000000337ffffff 128M online yes 102
|
||||
0x0000000338000000-0x000000033fffffff 128M online yes 103
|
||||
0x0000000340000000-0x0000000347ffffff 128M online yes 104
|
||||
0x0000000348000000-0x000000034fffffff 128M online yes 105
|
||||
0x0000000350000000-0x0000000357ffffff 128M online yes 106
|
||||
0x0000000358000000-0x000000035fffffff 128M online yes 107
|
||||
0x0000000360000000-0x0000000367ffffff 128M online yes 108
|
||||
0x0000000368000000-0x000000036fffffff 128M online yes 109
|
||||
0x0000000370000000-0x0000000377ffffff 128M online yes 110
|
||||
0x0000000378000000-0x000000037fffffff 128M online yes 111
|
||||
0x0000000380000000-0x0000000387ffffff 128M online yes 112
|
||||
0x0000000388000000-0x000000038fffffff 128M online yes 113
|
||||
0x0000000390000000-0x0000000397ffffff 128M online yes 114
|
||||
0x0000000398000000-0x000000039fffffff 128M online yes 115
|
||||
0x00000003a0000000-0x00000003a7ffffff 128M online yes 116
|
||||
0x00000003a8000000-0x00000003afffffff 128M online yes 117
|
||||
0x00000003b0000000-0x00000003b7ffffff 128M online yes 118
|
||||
0x00000003b8000000-0x00000003bfffffff 128M online yes 119
|
||||
0x00000003c0000000-0x00000003c7ffffff 128M online yes 120
|
||||
0x00000003c8000000-0x00000003cfffffff 128M online yes 121
|
||||
0x00000003d0000000-0x00000003d7ffffff 128M online yes 122
|
||||
0x00000003d8000000-0x00000003dfffffff 128M online yes 123
|
||||
0x00000003e0000000-0x00000003e7ffffff 128M online yes 124
|
||||
0x00000003e8000000-0x00000003efffffff 128M online yes 125
|
||||
0x00000003f0000000-0x00000003f7ffffff 128M online yes 126
|
||||
0x00000003f8000000-0x00000003ffffffff 128M online yes 127
|
||||
0x0000000400000000-0x0000000407ffffff 128M online yes 128
|
||||
0x0000000408000000-0x000000040fffffff 128M online yes 129
|
||||
0x0000000410000000-0x0000000417ffffff 128M online yes 130
|
||||
0x0000000418000000-0x000000041fffffff 128M online yes 131
|
||||
0x0000000420000000-0x0000000427ffffff 128M online yes 132
|
||||
0x0000000428000000-0x000000042fffffff 128M online yes 133
|
||||
0x0000000430000000-0x0000000437ffffff 128M online yes 134
|
||||
0x0000000438000000-0x000000043fffffff 128M online yes 135
|
||||
0x0000000440000000-0x0000000447ffffff 128M online yes 136
|
||||
0x0000000448000000-0x000000044fffffff 128M online yes 137
|
||||
0x0000000450000000-0x0000000457ffffff 128M online yes 138
|
||||
0x0000000458000000-0x000000045fffffff 128M online yes 139
|
||||
0x0000000460000000-0x0000000467ffffff 128M online yes 140
|
||||
0x0000000468000000-0x000000046fffffff 128M online yes 141
|
||||
0x0000000470000000-0x0000000477ffffff 128M online yes 142
|
||||
0x0000000478000000-0x000000047fffffff 128M online yes 143
|
||||
0x0000000480000000-0x0000000487ffffff 128M online yes 144
|
||||
0x0000000488000000-0x000000048fffffff 128M online yes 145
|
||||
0x0000000490000000-0x0000000497ffffff 128M online yes 146
|
||||
0x0000000498000000-0x000000049fffffff 128M online yes 147
|
||||
0x00000004a0000000-0x00000004a7ffffff 128M online yes 148
|
||||
0x00000004a8000000-0x00000004afffffff 128M online yes 149
|
||||
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
7
tests/fixtures/lsmem/test_lsmem_table_bytes.expected
vendored
Normal file
7
tests/fixtures/lsmem/test_lsmem_table_bytes.expected
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
RANGE SIZE STATE REMOVABLE BLOCK
|
||||
0x0000000000000000-0x0000000037ffffff 939524096 online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 15837691904 online yes 32-149
|
||||
|
||||
Memory block size: 134217728
|
||||
Total online memory: 16777216000
|
||||
Total offline memory: 0
|
6
tests/fixtures/lsmem/test_lsmem_table_noheadings.expected
vendored
Normal file
6
tests/fixtures/lsmem/test_lsmem_table_noheadings.expected
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
0x0000000000000000-0x0000000037ffffff 896M online yes 0-6
|
||||
0x0000000100000000-0x00000004afffffff 14.8G online yes 32-149
|
||||
|
||||
Memory block size: 128M
|
||||
Total online memory: 15.6G
|
||||
Total offline memory: 0B
|
Reference in New Issue
Block a user