diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2016-05-10 18:08:32 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-05-16 23:11:51 -0300 |
commit | 3b1fff08038bd0792b1aa1e9703b2dd0512a3fd0 (patch) | |
tree | 894e513ec904c0b4249917b64adac9d5bda162b5 /tools/perf/scripts | |
parent | cfbcf468454ab4b20f0b4b62da51920b99fdb19e (diff) |
perf core: Add a 'nr' field to perf_event_callchain_context
We will use it to count how many addresses are in the entry->ip[] array,
excluding PERF_CONTEXT_{KERNEL,USER,etc} entries, so that we can really
return the number of entries specified by the user via the relevant
sysctl, kernel.perf_event_max_contexts, or via the per event
perf_event_attr.sample_max_stack knob.
This way we keep the perf_sample->ip_callchain->nr meaning, that is the
number of entries, be it real addresses or PERF_CONTEXT_ entries, while
honouring the max_stack knobs, i.e. the end result will be max_stack
entries if we have at least that many entries in a given stack trace.
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions