+62
−30
Loading
driver inclusion category: driver bugzilla: https://gitee.com/openeuler/kernel/issues/IAMH2B CVE: NA ---------------------------------------------------------------------- Mainstream version before @9bce13ea may have issue parsing perf events aliased with dashes (e.g. 'foo-bar-baz'). Fix patches of community has been merged to mainstream but not openeuler. This commit fixes some conflicts produced during applying above patches to openeuler. The original commit is @fb081153, commit message is as follows. > perf parse-events: Allow config on kernel PMU events > > An event like inst_retired.any on an Intel skylake is found in the > pmu-events code created from the pipeline event JSON. > > The event is an alias for cpu/event=0xc0,period00003/ and > parse-events recognizes the event with the token PE_KERNEL_PMU_EVENT. > > The parser doesn't currently allow extra configuration on such events, > except for modifiers, so: > > $ perf stat -e inst_retired.any// /bin/true > event syntax error: 'inst_retired.any//' > \___ parser error > Run 'perf list' for a list of valid events > > Usage: perf stat [<options>] [<command>] > > -e, --event <event> event selector. use 'perf list' to > list available events > > This patch adds configuration to these events which can be useful for a > number of parameters like name and call-graph: > > $ sudo perf record -e inst_retired.any/call-graph=lbr/ -a sleep 1 > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 1.856 MB perf.data (44 samples) ] > > It is necessary for the metric code so that we may add metric-id values > to these events before they are parsed. Fixes: 231bb2aa ("perf pmu: Support event aliases for non cpu//pmus") Signed-off-by:Yushan Wang <wangyushan12@huawei.com> Signed-off-by:
zhangqz <14294317+zwx1160575@user.noreply.gitee.com>