]> git.baikalelectronics.ru Git - kernel.git/commit
mm, tracing: unify PFN format strings
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Tue, 29 Jun 2021 02:40:08 +0000 (19:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Jun 2021 17:53:52 +0000 (10:53 -0700)
commit785f33f3b930db68d0ed9ab142a9fbd8bbc11b4e
treea9577ddb9be2b573aaa3e717bd3d2f9172d7b2e0
parentc20e1802b7101b2b478137e57389cf0316010ae7
mm, tracing: unify PFN format strings

Some trace event formats print PFNs as hex while others print them as
decimal.  This is rather annoying when attempting to grep through traces
to understand what's going on with a particular page.

 $ git grep -ho 'pfn=[0x%lu]\+' include/trace/events/ | sort | uniq -c
      11 pfn=0x%lx
      12 pfn=%lu
       2 pfn=%lx

Printing as hex is in the majority in the trace events, and all the normal
printks in mm/ also print PFNs as hex, so change all the PFN formats in
the trace events to use 0x%lx.

Link: https://lkml.kernel.org/r/20210602092608.1493-1-vincent.whitchurch@axis.com
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jesper Dangaard Brouer <hawk@kernel.org>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/trace/events/cma.h
include/trace/events/filemap.h
include/trace/events/kmem.h
include/trace/events/page_pool.h
include/trace/events/pagemap.h
include/trace/events/vmscan.h