[PATCH v1 0/3] perf: add indirect jump filtering support

From: Stephane Eranian
Date: Thu May 14 2015 - 17:10:11 EST


This short patch series adds a new filter to the branch stack
sampling feature. The new filter enables sampling only indirect
jumps. For each the source and target are captured.

The new branch_sample_type flag is: PERF_SAMPLE_BRANCH_IND_JUMP

The series provides full support in the perf record tool:

$ perf record -j ind_jmp ...

On Intel x86 processors, the filter is implemented using the
LBR hw filter.

This filter is useful to study targets of indirect jumps.

Stephane Eranian (3):
perf: add new PERF_SAMPLE_BRANCH_IND_JUMP branch sample type
perf/x86: add support for PERF_SAMPLE_BRANCH_IND_JUMP
perf record: add support for sampling indirect jumps

arch/x86/kernel/cpu/perf_event_intel_lbr.c | 10 +++++++++-
include/uapi/linux/perf_event.h | 2 ++
tools/perf/builtin-record.c | 1 +
3 files changed, 12 insertions(+), 1 deletion(-)

--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/