+118
−41
Loading
Merge Pull Request from: @zwx1160575 1、Event aliasing for events whose name in the form foo-bar-baz is not supported, while foo-bar, foo_bar_baz, and other combinations are, i.e. two hyphens are not supported. 2、Add a test for aliases with hyphens in the name to ensure that the pmu-events tables are as expects. There should be no reason why these sort of aliases would be treated differently, but no harm in checking. 3、Add a test which allows us to test parsing an event alias with hyphens. Since these events typically do not exist on most host systems, add the alias to the fake pmu. Function perf_pmu__test_parse_init() has terms added to match known test aliases. https://gitee.com/openeuler/kernel/issues/IAMH2B Link:https://gitee.com/openeuler/kernel/pulls/11276 Signed-off-by:Yang Yingliang <yangyingliang@huawei.com>