Skip to contentSkip to conversation

proc: fix smaps_rollup test after KSM changes

PATCH Applied Alexey Dobriyan 2 participants 2 messages Sep 7, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc: fix smaps_rollup test after KSM changes

/proc/${pid}/smaps_rollup is not empty file even if process's address space is empty, update the test.

---

 tools/testing/selftests/proc/proc-empty-vm.c |    1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/proc/proc-empty-vm.c +1 -0
@@ -267,6 +267,7 @@ static const char g_smaps_rollup[] =
 "Private_Dirty:         0 kB\n"
 "Referenced:            0 kB\n"
 "Anonymous:             0 kB\n"
+"KSM:                   0 kB\n"
 "LazyFree:              0 kB\n"
 "AnonHugePages:         0 kB\n"
 "ShmemPmdMapped:        0 kB\n"
Reviewed-by on v1 1/1
#1 lore raw

On 07.09.23 13:10, Alexey Dobriyan wrote:

Can you clarify in the patch description that we are fixing up a selftest?

"selftests/proc: fixup proc-empty-vm test"

or similar?

Quoted 13 lines

/proc/${pid}/smaps_rollup is not empty file even if process's address space is empty, update the test.

---

  tools/testing/selftests/proc/proc-empty-vm.c |    1 +
  1 file changed, 1 insertion(+)

tools/testing/selftests/proc/proc-empty-vm.c static const char g_smaps_rollup[] = · line 273

Quoted 7 lines
tools/testing/selftests/proc/proc-empty-vm.c +1 -0
@@ -267,6 +267,7 @@ static const char g_smaps_rollup[] =
  "Private_Dirty:         0 kB\n"
  "Referenced:            0 kB\n"
  "Anonymous:             0 kB\n"
+"KSM:                   0 kB\n"
  "LazyFree:              0 kB\n"
  "AnonHugePages:         0 kB\n"
  "ShmemPmdMapped:        0 kB\n"
Signature · 3 lines
Cheers,

David / dhildenb