Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf script: Fix typo in branch event mask

BRACH -> BRANCH

Fixes: 88b1473135e4 ("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>

authored by

Yujie Liu and committed by
Namhyung Kim
2f39edec 2333cfa9

+3 -3
+1 -1
tools/perf/util/event.h
··· 91 91 PERF_IP_FLAG_VMENTRY |\ 92 92 PERF_IP_FLAG_VMEXIT) 93 93 94 - #define PERF_IP_FLAG_BRACH_EVENT_MASK \ 94 + #define PERF_IP_FLAG_BRANCH_EVENT_MASK \ 95 95 (PERF_IP_FLAG_BRANCH_MISS | \ 96 96 PERF_IP_FLAG_NOT_TAKEN) 97 97
+2 -2
tools/perf/util/trace-event-scripting.c
··· 347 347 348 348 flags &= ~(PERF_IP_FLAG_TRACE_BEGIN | PERF_IP_FLAG_TRACE_END); 349 349 350 - types = flags & ~PERF_IP_FLAG_BRACH_EVENT_MASK; 350 + types = flags & ~PERF_IP_FLAG_BRANCH_EVENT_MASK; 351 351 for (i = 0; sample_flags[i].name; i++) { 352 352 if (sample_flags[i].flags != types) 353 353 continue; ··· 359 359 break; 360 360 } 361 361 362 - events = flags & PERF_IP_FLAG_BRACH_EVENT_MASK; 362 + events = flags & PERF_IP_FLAG_BRANCH_EVENT_MASK; 363 363 for (i = 0; branch_events[i].name; i++) { 364 364 if (!(branch_events[i].flags & events)) 365 365 continue;