proc: fix smaps_rollup test after KSM changes
Subsystems (2)
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.
Signed-off-by Alexey Dobriyan <[email protected]>
---
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"
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_rollupis not empty file even if process's address space is empty, update the test.Signed-off-by Alexey Dobriyan <[email protected]>---
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"
Reviewed-by David Hildenbrand <[email protected]>
Signature · 3 lines
Cheers, David / dhildenb