diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2018-06-07 17:42:27 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-06-07 17:42:27 +0000 |
| commit | c9d366287042489090da0391318df528bdce9941 (patch) | |
| tree | 72435b9d9fbeac8db97b8e007cf5d08c9035b3c3 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | perf hists browser gtk: Use hist_entry__has_callchains() (diff) | |
| download | kernel-c9d366287042489090da0391318df528bdce9941.tar.gz kernel-c9d366287042489090da0391318df528bdce9941.zip | |
perf hists: Reimplement hists__has_callchains()
There are places where we have only access to struct hists and need to
know if any of its hist_entries has callchains, like when drawing
headers for the various output modes (stdio, TUI, etc), so, when adding
a new hist_entry, check if it has callchains, storing this info for
later use by hists__has_callchains().
This reimplementation is necessary because not always a 'struct hists'
is allocated together with a 'struct perf evsel', so we can't go from
'hists' to 'perf_event_attr.sample_type & PERF_SAMPLE_CALLCHAIN'.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
