Commit 4bceaad9 authored by Anshuman Khandual's avatar Anshuman Khandual Committed by Junhao He
Browse files

perf record: Add remaining branch filters: "no_cycles", "no_flags" & "hw_index"

mainline inclusion
from mainline-v6.2-rc1
commit 955f6def
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8EC9K
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=955f6def5590ce6ca11a1c1ced0d2d1c95421059



--------------------------------

This adds all remaining branch filters i.e "no_cycles", "no_flags" and
"hw_index". While here, also updates the documentation.

Signed-off-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
Cc: James Clark <james.clark@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20221205064443.533587-1-anshuman.khandual@arm.com


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarJunhao He <hejunhao3@huawei.com>
parent d09d31d3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -30,8 +30,11 @@ static const struct branch_mode branch_modes[] = {
	BRANCH_OPT("cond", PERF_SAMPLE_BRANCH_COND),
	BRANCH_OPT("ind_jmp", PERF_SAMPLE_BRANCH_IND_JUMP),
	BRANCH_OPT("call", PERF_SAMPLE_BRANCH_CALL),
	BRANCH_OPT("no_flags", PERF_SAMPLE_BRANCH_NO_FLAGS),
	BRANCH_OPT("no_cycles", PERF_SAMPLE_BRANCH_NO_CYCLES),
	BRANCH_OPT("save_type", PERF_SAMPLE_BRANCH_TYPE_SAVE),
	BRANCH_OPT("stack", PERF_SAMPLE_BRANCH_CALL_STACK),
	BRANCH_OPT("hw_index", PERF_SAMPLE_BRANCH_HW_INDEX),
	BRANCH_OPT("priv", PERF_SAMPLE_BRANCH_PRIV_SAVE),
	BRANCH_END
};