diff options
author | Namhyung Kim <[email protected]> | 2024-12-05 15:15:29 -0800 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2024-12-05 15:15:29 -0800 |
commit | c33aea446bf555ab2b4e06deb914ba8f87cdb068 (patch) | |
tree | 33d6b550af3b955a10a37a3e54a3c425afffa59b /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 968121f0a649ee2ff5ac7b29aa4d4f6b0798ea9e (diff) |
perf tools: Fix precise_ip fallback logic
Sometimes it returns other than EOPNOTSUPP for invalid precise_ip so
it cannot check the error code. Let's move the fallback after the
missing feature checks so that it can handle EINVAL as well. This also
aligns well with the existing behavior which blindly turns off the
precise_ip but we check the missing features correctly now.
Fixes: af954f76eea56453 ("perf tools: Check fallback error and order")
Reported-by: kernel test robot <[email protected]>
Reported-by: Arnaldo Carvalho de Melo <[email protected]>
Closes: https://lore.kernel.org/oe-lkp/[email protected]
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions