提交 11130895 编写于 作者: N Namhyung Kim 提交者: Xie XiuQi

perf test: Use generic event for expand_libpfm_events()

stable inclusion
from stable-5.10.4
commit 3647b89442e52d689b7053f4c25c335c026854e7
bugzilla: 46903

--------------------------------

[ Upstream commit 9b0a7836 ]

I found that the UNHALTED_CORE_CYCLES event is only available in the
Intel machines and it makes other vendors/archs fail on the test.  As
libpfm4 can parse the generic events like cycles, let's use them.

Fixes: 40b74c30 ("perf test: Add expand cgroup event test")
Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
Acked-by: NIan Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20201027072855.655449-1-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 219cd424
...@@ -145,7 +145,7 @@ static int expand_libpfm_events(void) ...@@ -145,7 +145,7 @@ static int expand_libpfm_events(void)
int ret; int ret;
struct evlist *evlist; struct evlist *evlist;
struct rblist metric_events; struct rblist metric_events;
const char event_str[] = "UNHALTED_CORE_CYCLES"; const char event_str[] = "CYCLES";
struct option opt = { struct option opt = {
.value = &evlist, .value = &evlist,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册