aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/parse-branch-options.c
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2015-05-14 23:10:00 +0200
committerIngo Molnar <mingo@kernel.org>2015-06-07 16:08:31 +0200
commit5b68164d6a1fdbe02b30bd777d1f686c6d901f28 (patch)
treec478f71bfb2e0dbdce6523dea40c948eb38b22d4 /tools/perf/util/parse-branch-options.c
parentperf/x86/intel: add support for PERF_SAMPLE_BRANCH_IND_JUMP (diff)
downloadwireguard-linux-5b68164d6a1fdbe02b30bd777d1f686c6d901f28.tar.xz
wireguard-linux-5b68164d6a1fdbe02b30bd777d1f686c6d901f28.zip
perf record: Add support for sampling indirect jumps
This patch adds a new branch sampling type support for indirect jumps: perf record -j ind_jmp ....... It enables analysis of indirect jumps targets. It requires kernel and possibly hardware support to operate correctly. Signed-off-by: Stephane Eranian <eranian@google.com> [ Fixup against: f00898f4e20b (perf tools: Move branch option parsing to own file) ] Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Andi Kleen <ak@linux.intel.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: acme@redhat.com Cc: dsahern@gmail.com Cc: jolsa@redhat.com Cc: kan.liang@intel.com Cc: namhyung@kernel.org Link: http://lkml.kernel.org/r/1431637800-31061-4-git-send-email-eranian@google.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/util/parse-branch-options.c')
-rw-r--r--tools/perf/util/parse-branch-options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/parse-branch-options.c b/tools/perf/util/parse-branch-options.c
index 9d999436658f..a3b1e13a05c0 100644
--- a/tools/perf/util/parse-branch-options.c
+++ b/tools/perf/util/parse-branch-options.c
@@ -26,6 +26,7 @@ static const struct branch_mode branch_modes[] = {
BRANCH_OPT("in_tx", PERF_SAMPLE_BRANCH_IN_TX),
BRANCH_OPT("no_tx", PERF_SAMPLE_BRANCH_NO_TX),
BRANCH_OPT("cond", PERF_SAMPLE_BRANCH_COND),
+ BRANCH_OPT("ind_jmp", PERF_SAMPLE_BRANCH_IND_JUMP),
BRANCH_END
};