diff options
author | Riccardo Mancini <[email protected]> | 2021-08-21 11:19:22 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-08-31 16:29:12 -0300 |
commit | 46def08f5db0d84275bd0a3ba4a279a2197aa3a6 (patch) | |
tree | 3042bbe4bb3d0ff5c4e41e49d0c9ca4c69a138b0 /tools/perf/scripts/python/powerpc-hcalls.py | |
parent | d45ce03434fd0f9177a0d3a7237fce4263eed24b (diff) |
perf evsel: Save open flags in evsel in prepare_open()
This patch caches the flags used in perf_event_open() inside evsel, so
that they can be set in __evsel__prepare_open() (this will be useful in
patches in the workqueue series, when the fallback mechanisms will be
handled outside the open itself).
This also optimizes the code, by not having to recompute them everytime.
Since flags are now saved in evsel, the flags argument in
perf_event_open() is removed.
Signed-off-by: Riccardo Mancini <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/d9f63159098e56fa518eecf25171d72e6f74df37.1629490974.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions