perf_counter: Make callchain samples extensible
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 18 Jun 2009 20:20:52 +0000 (22:20 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Jun 2009 11:42:34 +0000 (13:42 +0200)
commitf9188e023c248d73f5b4a589b480e065c1864068
tree86efe8c89c318fdf9b9db8471680ba225ec8f4e2
parentb8e6d829729d1a5991a9f628205b671cac2ec06f
perf_counter: Make callchain samples extensible

Before exposing upstream tools to a callchain-samples ABI, tidy it
up to make it more extensible in the future:

Use markers in the IP chain to denote context, use (u64)-1..-4095 range
for these context markers because we use them for ERR_PTR(), so these
addresses are unlikely to be mapped.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c
include/linux/perf_counter.h