Skip to content

Commit 9d1be94

Browse files
Alexey Dobriyanakpm00
authored andcommitted
selftests/proc: fixup proc-empty-vm test after KSM changes
/proc/${pid}/smaps_rollup is not empty file even if process's address space is empty, update the test. Link: https://lkml.kernel.org/r/725e041f-e9df-4f3d-b267-d4cd2774a78d@p183 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: David Hildenbrand <david@redhat.com> Cc: Stefan Roesch <shr@devkernel.io> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 493d4ee commit 9d1be94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/proc/proc-empty-vm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ static const char g_smaps_rollup[] =
267267
"Private_Dirty: 0 kB\n"
268268
"Referenced: 0 kB\n"
269269
"Anonymous: 0 kB\n"
270+
"KSM: 0 kB\n"
270271
"LazyFree: 0 kB\n"
271272
"AnonHugePages: 0 kB\n"
272273
"ShmemPmdMapped: 0 kB\n"

0 commit comments

Comments
 (0)