]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf test: Add a perf event fallback test
authorZide Chen <zide.chen@intel.com>
Wed, 12 Nov 2025 16:48:23 +0000 (08:48 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 12 Nov 2025 18:41:54 +0000 (10:41 -0800)
commitfc9c17b2235256445b28b06b6dba1709f870b3c4
tree4f1984225c53b0d525b879e0d8249b029ccc45e7
parentda8fcfba0854dbe0b0eca465d35620c9cf4c89c1
perf test: Add a perf event fallback test

This adds test cases to verify the precise ip fallback logic:

- If the system supports precise ip, for an event given with the maximum
  precision level, it should be able to decrease precise_ip to find a
  supported level.
- The same fallback behavior should also work in more complex scenarios,
  such as event groups or when PEBS is involved

Additional fallback tests, such as those covering missing feature cases,
can be added in the future.

Suggested-by: Ian Rogers <irogers@google.com>
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Signed-off-by: Zide Chen <zide.chen@intel.com>
Reviewed-by: Ian Rogers <irogers!@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/test_event_open_fallback.sh [new file with mode: 0755]