mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/3] perf: add indirect jump filtering support
@ 2015-05-14 21:09 Stephane Eranian
  2015-05-14 21:09 ` [PATCH v1 1/3] perf: add new PERF_SAMPLE_BRANCH_IND_JUMP branch sample type Stephane Eranian
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Stephane Eranian @ 2015-05-14 21:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: acme, peterz, mingo, ak, jolsa, namhyung, kan.liang, dsahern

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-07 17:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-14 21:09 [PATCH v1 0/3] perf: add indirect jump filtering support Stephane Eranian
2015-05-14 21:09 ` [PATCH v1 1/3] perf: add new PERF_SAMPLE_BRANCH_IND_JUMP branch sample type Stephane Eranian
2015-06-07 17:48   ` [tip:perf/core] " tip-bot for Stephane Eranian
2015-05-14 21:09 ` [PATCH v1 2/3] perf/x86: add support for PERF_SAMPLE_BRANCH_IND_JUMP Stephane Eranian
2015-06-07 17:48   ` [tip:perf/core] perf/x86/intel: " tip-bot for Stephane Eranian
2015-05-14 21:10 ` [PATCH v1 3/3] perf record: add support for sampling indirect jumps Stephane Eranian
2015-06-07 17:48   ` [tip:perf/core] perf record: Add " tip-bot for Stephane Eranian
2015-05-14 23:04 ` [PATCH v1 0/3] perf: add indirect jump filtering support Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®