Skip to content

perf: add indirect jump filtering support

Stephane Eranian lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf: add new PERF_SAMPLE_BRANCH_IND_JUMP branch sample typeinclude/uapi/linux/perf_event.h+2 -00 replies
2/3perf/x86: add support for PERF_SAMPLE_BRANCH_IND_JUMParch/x86/kernel/cpu/perf_event_intel_lbr.c+9 -10 replies
3/3perf record: add support for sampling indirect jumpstools/perf/builtin-record.c+1 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndi Kleen
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
1.9.1