OSDN Git Service

perf test: Workload test of all PMUs
authorIan Rogers <irogers@google.com>
Fri, 17 Sep 2021 18:42:40 +0000 (11:42 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 Sep 2021 18:54:42 +0000 (15:54 -0300)
commit3d5ac9effcc640d5d66bc6d833e1dcc9faa279aa
tree0f29eb8bac0dad54a9995627d4774ad07b21c4d5
parent4a87dea9e60fe10079f01e06a58c4f9dfb667940
perf test: Workload test of all PMUs

Iterate over the list of PMUs and run the 'true' workload on them. If
the event isn't printed then run the large 'perf bench internals
synthesize' workload and check the event is counted.

On a Skylake this test takes 1m15s mainly running the 'true' workload.

Suggested-by: John Garry <john.garry@huawei.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Clarke <pc@us.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20210917184240.2181186-2-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/stat_all_pmu.sh [new file with mode: 0755]