perf core: Pass max stack as a perf_callchain_entry context
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 28 Apr 2016 15:30:53 +0000 (12:30 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 17 May 2016 02:11:50 +0000 (23:11 -0300)
commitcfbcf468454ab4b20f0b4b62da51920b99fdb19e
tree08b7caa605bd1ef1babb8f58cb0771bc20e518c4
parenta831100aeefbe6d9f3e47a3e2712f82c042f1f5c
perf core: Pass max stack as a perf_callchain_entry context

This makes perf_callchain_{user,kernel}() receive the max stack
as context for the perf_callchain_entry, instead of accessing
the global sysctl_perf_event_max_stack.

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: Linus Torvalds <torvalds@linux-foundation.org>
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-kolmn1yo40p7jhswxwrc7rrd@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
15 files changed:
arch/arc/kernel/perf_event.c
arch/arm/kernel/perf_callchain.c
arch/arm64/kernel/perf_callchain.c
arch/metag/kernel/perf_callchain.c
arch/mips/kernel/perf_event.c
arch/powerpc/perf/callchain.c
arch/s390/kernel/perf_event.c
arch/sh/kernel/perf_callchain.c
arch/sparc/kernel/perf_event.c
arch/tile/kernel/perf_event.c
arch/x86/events/core.c
arch/xtensa/kernel/perf_event.c
include/linux/perf_event.h
kernel/bpf/stackmap.c
kernel/events/callchain.c