]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30a0c233bd774b3b4e1afd8606718e10a034e21d
tree9a37cc4e8fc35c333bdfe35075bb3ba1b82bbf18
parent87806e5cbcc72bd23823c54fda31722d97632a63
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