Files
kernel_arpi/include/uapi/linux
Arnaldo Carvalho de Melo c85b033496 perf core: Separate accounting of contexts and real addresses in a stack trace
The perf_sample->ip_callchain->nr value includes all the entries in the
ip_callchain->ip[] array, real addresses and PERF_CONTEXT_{KERNEL,USER,etc},
while what the user expects is that what is in the kernel.perf_event_max_stack
sysctl or in the upcoming per event perf_event_attr.sample_max_stack knob be
honoured in terms of IP addresses in the stack trace.

So allocate a bunch of extra entries for contexts, and do the accounting
via perf_callchain_entry_ctx struct members.

A new sysctl, kernel.perf_event_max_contexts_per_stack is also
introduced for investigating possible bugs in the callchain
implementation by some arch.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: Zefan Li <lizefan@huawei.com>
Link: http://lkml.kernel.org/n/tip-3b4wnqk340c4sg4gwkfdi9yk@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-05-16 23:11:53 -03:00
..
2015-10-13 17:42:34 +02:00
2016-01-30 16:27:17 +00:00
2016-03-01 17:15:22 -05:00
2015-10-05 03:16:46 -07:00
2016-03-15 16:55:16 -07:00
2016-03-01 16:07:29 -05:00
2015-08-25 14:41:50 -05:00
2016-03-22 15:45:44 -04:00
2016-01-20 17:09:18 -08:00
2015-12-14 12:19:37 -06:00
2016-03-10 16:02:52 +07:00
2016-03-13 22:40:24 -04:00
2016-03-18 19:40:27 -04:00
2015-05-25 13:25:35 -04:00
2016-04-11 21:33:44 -04:00
2016-03-22 15:36:02 -07:00
2016-01-12 08:21:18 -07:00
2015-08-03 17:30:00 -07:00
2015-07-21 10:39:05 -07:00
2015-11-23 15:06:38 -05:00
2015-08-27 19:44:53 -04:00
2015-07-20 14:58:46 -04:00
2016-02-24 09:04:41 +01:00
2016-03-14 23:47:29 +01:00
2016-01-10 22:13:15 -05:00
2015-09-04 16:54:41 -07:00
2016-02-08 11:22:21 +11:00
2015-05-24 12:49:16 -07:00
2015-06-11 23:37:37 +02:00
2015-12-18 17:48:51 -08:00
2015-10-27 18:55:31 -07:00
2016-03-11 02:18:53 +02:00