perf test: Fix test case 87 ("perf record tests") for hybrid systems
authorZhengjun Xing <zhengjun.xing@linux.intel.com>
Tue, 27 Sep 2022 05:15:13 +0000 (13:15 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Sep 2022 12:52:56 +0000 (09:52 -0300)
commit457c8b60267054869513ab1fb5513abb0a566dd0
treed1328677ac0357b65af9b11cf851371b3a6915fd
parent74a61d53a6d1ca1172d85964d15c83c2cc3670b3
perf test: Fix test case 87 ("perf record tests") for hybrid systems

The test case 87 ("perf record tests") failed on hybrid systems,the event
"cpu/br_inst_retired.near_call/p" is only for non-hybrid system. Correct
the test event to support both non-hybrid and hybrid systems.

Before:

  # ./perf test 87
  87: perf record tests                                   : FAILED!

After:

  # ./perf test 87
  87: perf record tests                                   : Ok

Fixes: 24f378e66021f559 ("perf test: Add basic perf record tests")
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220927051513.3768717-1-zhengjun.xing@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/record.sh