]> git.baikalelectronics.ru Git - kernel.git/commit
tools/vm/page-types: remove dependency on opt_file for idle page tracking
authorChangbin Du <changbin.du@gmail.com>
Fri, 24 Sep 2021 22:43:41 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Sep 2021 23:13:35 +0000 (16:13 -0700)
commitcc29e3abb72e7ecd69b3823eb582f16adfa25658
tree0c34660f43f0b06d9f39bc1137c2471ddd66247b
parent2569390552c29a8c7576081437914459d59c746e
tools/vm/page-types: remove dependency on opt_file for idle page tracking

Idle page tracking can also be used for process address space, not only
file mappings.

Without this change, using with '-i' option for process address space
encounters below errors reported.

  $ sudo ./page-types -p $(pidof bash) -i
  mark page idle: Bad file descriptor
  mark page idle: Bad file descriptor
  mark page idle: Bad file descriptor
  mark page idle: Bad file descriptor
  ...

Link: https://lkml.kernel.org/r/20210917032826.10669-1-changbin.du@gmail.com
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/vm/page-types.c