diff options
author | Namhyung Kim <[email protected]> | 2024-10-15 23:23:57 -0700 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2024-10-22 09:55:08 -0700 |
commit | af954f76eea56453713ae657f6812d4063f9bc57 (patch) | |
tree | ae663c09737af464e88efa2e3095eedb3da380e3 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 28398ce1726e5dfa74f6305dd842e0fb7e332ef1 (diff) |
perf tools: Check fallback error and order
The perf_event_open might fail due to various reasons, so blindly
reducing precise_ip level might not be the best way to deal with it.
It seems the kernel return -EOPNOTSUPP when PMU doesn't support the
given precise level. Let's try again with the correct error code.
This caused a problem on AMD, as it stops on precise_ip of 2 for IBS but
user events with exclude_kernel=1 cannot make progress. Let's add the
evsel__handle_error_quirks() to this case specially. I plan to work on
the kernel side to improve this situation but it'd still need some
special handling for IBS.
Reviewed-by: James Clark <[email protected]>
Reviewed-by: Ravi Bangoria <[email protected]>
Acked-by: Kan Liang <[email protected]>
Cc: James Clark <[email protected]>
Cc: Atish Patra <[email protected]>
Cc: Mingwei Zhang <[email protected]>
Cc: Kajol Jain <[email protected]>
Cc: Thomas Richter <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions