tracing, mm: Record pfn instead of pointer to struct page
authorNamhyung Kim <namhyung@kernel.org>
Mon, 6 Apr 2015 05:36:09 +0000 (14:36 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 13 Apr 2015 14:44:52 +0000 (11:44 -0300)
commit9fdd8a875c6f3b02af48d5fa426206ca009b2b06
tree9a37cc4e8fc35c333bdfe35075bb3ba1b82bbf18
parent066450be419fa48007a9f29e19828f2a86198754
tracing, mm: Record pfn instead of pointer to struct page

The struct page is opaque for userspace tools, so it'd be better to save
pfn in order to identify page frames.

The textual output of $debugfs/tracing/trace file remains unchanged and
only raw (binary) data format is changed - but thanks to libtraceevent,
userspace tools which deal with the raw data (like perf and trace-cmd)
can parse the format easily.  So impact on the userspace will also be
minimal.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Based-on-patch-by: Joonsoo Kim <js1304@gmail.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/1428298576-9785-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
include/trace/events/filemap.h
include/trace/events/kmem.h
include/trace/events/vmscan.h