]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7cc9877487370abadc2d0f4435e630d4193c2f77
treed1328677ac0357b65af9b11cf851371b3a6915fd
parent23138e5ea5e77198c97f4af6a3f3521cbe910472
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: 2aa69197861cce25 ("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