mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-18 07:44:20 +00:00
perf script: Fix typo in branch event mask
BRACH -> BRANCH
Fixes: 88b1473135 ("perf script: Separate events from branch types")
Signed-off-by: Yujie Liu <yujie.liu@intel.com>
Reviewed-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250312075636.429127-1-yujie.liu@intel.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
@@ -347,7 +347,7 @@ static int sample_flags_to_name(u32 flags, char *str, size_t size)
|
||||
|
||||
flags &= ~(PERF_IP_FLAG_TRACE_BEGIN | PERF_IP_FLAG_TRACE_END);
|
||||
|
||||
types = flags & ~PERF_IP_FLAG_BRACH_EVENT_MASK;
|
||||
types = flags & ~PERF_IP_FLAG_BRANCH_EVENT_MASK;
|
||||
for (i = 0; sample_flags[i].name; i++) {
|
||||
if (sample_flags[i].flags != types)
|
||||
continue;
|
||||
@@ -359,7 +359,7 @@ static int sample_flags_to_name(u32 flags, char *str, size_t size)
|
||||
break;
|
||||
}
|
||||
|
||||
events = flags & PERF_IP_FLAG_BRACH_EVENT_MASK;
|
||||
events = flags & PERF_IP_FLAG_BRANCH_EVENT_MASK;
|
||||
for (i = 0; branch_events[i].name; i++) {
|
||||
if (!(branch_events[i].flags & events))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user