diff options
author | Jin Yao <[email protected]> | 2021-09-02 14:59:55 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-09-03 08:38:49 -0300 |
commit | c7a3828d98db2730079265b5f51933dfcef8bb5f (patch) | |
tree | ce29f3a6095cef38ae18dff52e7c3c2662fc2b58 /scripts/gdb/linux/timerlist.py | |
parent | 13d60ba0738b0532edab3e1492b2005d36ba0802 (diff) |
perf tests: Add test for PMU aliases
A perf uncore PMU may have two PMU names, a real name and an alias.
Add one test case to verify that the real and alias names have the same
effect.
Iterate sysfs to get one event which has an alias and create an evlist
by adding two evsels. Evsel1 is created by event and evsel2 is created
by alias.
Test asserts:
evsel1->core.attr.type == evsel2->core.attr.type
evsel1->core.attr.config == evsel2->core.attr.config
Signed-off-by: Jin Yao <[email protected]>
Reviewed-by: Andi Kleen <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: John Garry <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Riccardo Mancini <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions