perf core: Add perf_callchain_store_context() helper
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 12 May 2016 16:01:50 +0000 (13:01 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 17 May 2016 02:11:52 +0000 (23:11 -0300)
commit3e4de4ec4cfea40994b47a79767610153edbf45b
treea255becfd76282a397dd5eab974f08cf234b1b62
parent3b1fff08038bd0792b1aa1e9703b2dd0512a3fd0
perf core: Add perf_callchain_store_context() helper

We need have different helpers to account how many contexts we have in
the sample and for real addresses, so do it now as a prep patch, to
ease review.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-q964tnyuqrxw5gld18vizs3c@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
arch/powerpc/perf/callchain.c
include/linux/perf_event.h
kernel/events/callchain.c