diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2016-06-20 10:47:18 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-06-21 13:18:35 -0300 |
commit | 7da36e94e7fad768ca8640b61ed1f49b284e1dc5 (patch) | |
tree | bb469c4e412e72259e460da85533b7595f9ca5d4 /tools/perf/scripts/python/bin/stackcollapse-report | |
parent | 0aab21363ffa66d6e7340bc50cc5bfae865fd1a6 (diff) |
perf evsel: Fix write_backwards fallback
Commit b90dc17a5d14 "perf evsel: Add overwrite attribute and check
write_backward" misunderstood the 'order' should be obeyed in
__perf_evsel__open.
But the way this was done for attr.write_backwards was buggy, as we need
to check features in the inverse order of their introduction to the
kernel, so that a newer tool checks first the newest perf_event_attr
fields, detecting that the older kernel doesn't have support for them.
Also, we can avoid calling sys_perf_event_open() if we have already
detected the missing of write_backward.
Cc: He Kuang <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Fixes: b90dc17a5d14 ("perf evsel: Add overwrite attribute and check write_backward")
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Wang Nan <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions