[libvirt] [PATCH] test: Add fake cpu id file

Eli Qiao posted 1 patch 125 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1490781005-39662-1-git-send-email-liyong.qiao@intel.com
tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index0/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index1/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index2/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index3/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index0/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index1/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index2/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index3/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index0/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index1/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index2/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index3/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index0/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index1/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index2/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index3/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index0/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index1/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index2/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index3/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index0/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index1/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index2/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index3/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index0/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index1/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index2/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index3/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index0/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index1/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index2/id | 1 +
tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index3/id | 1 +
tests/vircaps2xmldata/linux-resctrl/cpus                    | 1 +
tests/vircaps2xmldata/linux-resctrl/info/L3/cbm_mask        | 1 +
tests/vircaps2xmldata/linux-resctrl/info/L3/min_cbm_bits    | 1 +
tests/vircaps2xmldata/linux-resctrl/info/L3/num_closids     | 1 +
tests/vircaps2xmldata/linux-resctrl/schemata                | 1 +
tests/vircaps2xmldata/linux-resctrl/tasks                   | 2 ++
38 files changed, 39 insertions(+)
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index0/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index1/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index2/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index3/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index0/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index1/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index2/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index3/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index0/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index1/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index2/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index3/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index0/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index1/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index2/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index3/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index0/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index1/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index2/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index3/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index0/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index1/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index2/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index3/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index0/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index1/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index2/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index3/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index0/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index1/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index2/id
create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index3/id
create mode 100644 tests/vircaps2xmldata/linux-resctrl/cpus
create mode 100644 tests/vircaps2xmldata/linux-resctrl/info/L3/cbm_mask
create mode 100644 tests/vircaps2xmldata/linux-resctrl/info/L3/min_cbm_bits
create mode 100644 tests/vircaps2xmldata/linux-resctrl/info/L3/num_closids
create mode 100644 tests/vircaps2xmldata/linux-resctrl/schemata
create mode 100644 tests/vircaps2xmldata/linux-resctrl/tasks

[libvirt] [PATCH] test: Add fake cpu id file

Posted by Eli Qiao 125 weeks ago
Added fake cpu cache id and resctrl file

Signed-off-by: Eli Qiao <liyong.qiao@intel.com>
---
 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index0/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index1/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index2/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index3/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index0/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index1/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index2/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index3/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index0/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index1/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index2/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index3/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index0/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index1/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index2/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index3/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index0/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index1/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index2/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index3/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index0/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index1/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index2/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index3/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index0/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index1/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index2/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index3/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index0/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index1/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index2/id | 1 +
 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index3/id | 1 +
 tests/vircaps2xmldata/linux-resctrl/cpus                    | 1 +
 tests/vircaps2xmldata/linux-resctrl/info/L3/cbm_mask        | 1 +
 tests/vircaps2xmldata/linux-resctrl/info/L3/min_cbm_bits    | 1 +
 tests/vircaps2xmldata/linux-resctrl/info/L3/num_closids     | 1 +
 tests/vircaps2xmldata/linux-resctrl/schemata                | 1 +
 tests/vircaps2xmldata/linux-resctrl/tasks                   | 2 ++
 38 files changed, 39 insertions(+)
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index0/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index1/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index2/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index3/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index0/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index1/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index2/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index3/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index0/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index1/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index2/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index3/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index0/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index1/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index2/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index3/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index0/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index1/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index2/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index3/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index0/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index1/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index2/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index3/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index0/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index1/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index2/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index3/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index0/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index1/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index2/id
 create mode 100644 tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index3/id
 create mode 100644 tests/vircaps2xmldata/linux-resctrl/cpus
 create mode 100644 tests/vircaps2xmldata/linux-resctrl/info/L3/cbm_mask
 create mode 100644 tests/vircaps2xmldata/linux-resctrl/info/L3/min_cbm_bits
 create mode 100644 tests/vircaps2xmldata/linux-resctrl/info/L3/num_closids
 create mode 100644 tests/vircaps2xmldata/linux-resctrl/schemata
 create mode 100644 tests/vircaps2xmldata/linux-resctrl/tasks

diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index0/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index0/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index0/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index1/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index1/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index1/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index2/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index2/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index2/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index3/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index3/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu0/cache/index3/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index0/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index0/id
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index0/id
@@ -0,0 +1 @@
+1
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index1/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index1/id
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index1/id
@@ -0,0 +1 @@
+1
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index2/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index2/id
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index2/id
@@ -0,0 +1 @@
+1
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index3/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index3/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu1/cache/index3/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index0/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index0/id
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index0/id
@@ -0,0 +1 @@
+2
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index1/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index1/id
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index1/id
@@ -0,0 +1 @@
+2
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index2/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index2/id
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index2/id
@@ -0,0 +1 @@
+2
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index3/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index3/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu2/cache/index3/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index0/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index0/id
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index0/id
@@ -0,0 +1 @@
+3
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index1/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index1/id
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index1/id
@@ -0,0 +1 @@
+3
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index2/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index2/id
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index2/id
@@ -0,0 +1 @@
+3
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index3/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index3/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu3/cache/index3/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index0/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index0/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index0/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index1/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index1/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index1/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index2/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index2/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index2/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index3/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index3/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu4/cache/index3/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index0/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index0/id
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index0/id
@@ -0,0 +1 @@
+1
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index1/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index1/id
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index1/id
@@ -0,0 +1 @@
+1
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index2/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index2/id
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index2/id
@@ -0,0 +1 @@
+1
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index3/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index3/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu5/cache/index3/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index0/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index0/id
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index0/id
@@ -0,0 +1 @@
+2
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index1/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index1/id
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index1/id
@@ -0,0 +1 @@
+2
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index2/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index2/id
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index2/id
@@ -0,0 +1 @@
+2
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index3/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index3/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu6/cache/index3/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index0/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index0/id
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index0/id
@@ -0,0 +1 @@
+3
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index1/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index1/id
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index1/id
@@ -0,0 +1 @@
+3
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index2/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index2/id
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index2/id
@@ -0,0 +1 @@
+3
diff --git a/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index3/id b/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index3/id
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-caches/cpu/cpu7/cache/index3/id
@@ -0,0 +1 @@
+0
diff --git a/tests/vircaps2xmldata/linux-resctrl/cpus b/tests/vircaps2xmldata/linux-resctrl/cpus
new file mode 100644
index 0000000..b3a79aa
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-resctrl/cpus
@@ -0,0 +1 @@
+ffffff,ffffffff,ffffffff
diff --git a/tests/vircaps2xmldata/linux-resctrl/info/L3/cbm_mask b/tests/vircaps2xmldata/linux-resctrl/info/L3/cbm_mask
new file mode 100644
index 0000000..78031da
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-resctrl/info/L3/cbm_mask
@@ -0,0 +1 @@
+fffff
diff --git a/tests/vircaps2xmldata/linux-resctrl/info/L3/min_cbm_bits b/tests/vircaps2xmldata/linux-resctrl/info/L3/min_cbm_bits
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-resctrl/info/L3/min_cbm_bits
@@ -0,0 +1 @@
+1
diff --git a/tests/vircaps2xmldata/linux-resctrl/info/L3/num_closids b/tests/vircaps2xmldata/linux-resctrl/info/L3/num_closids
new file mode 100644
index 0000000..b6a7d89
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-resctrl/info/L3/num_closids
@@ -0,0 +1 @@
+16
diff --git a/tests/vircaps2xmldata/linux-resctrl/schemata b/tests/vircaps2xmldata/linux-resctrl/schemata
new file mode 100644
index 0000000..95bf1be
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-resctrl/schemata
@@ -0,0 +1 @@
+L3:0=fffff;1=fffff
diff --git a/tests/vircaps2xmldata/linux-resctrl/tasks b/tests/vircaps2xmldata/linux-resctrl/tasks
new file mode 100644
index 0000000..1191247
--- /dev/null
+++ b/tests/vircaps2xmldata/linux-resctrl/tasks
@@ -0,0 +1,2 @@
+1
+2
-- 
1.9.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] test: Add fake cpu id file

Posted by Martin Kletzander 125 weeks ago
On Wed, Mar 29, 2017 at 05:50:05PM +0800, Eli Qiao wrote:
>Added fake cpu cache id and resctrl file
>

Thanks for that, however I would rather see you adding new directory to
tests/vircaps2xmldata which describes yet another machine, so that we
have different inputs to the tests.

I have the ID files ready to be added in my series and the tests are now
passing fine (I'll send it upstream after release, it's pointless now
since it won't go it before the release anyway).

I'll push it to the cat branch on github today after I clean up the commits.
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list