Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965129AbbENVKI (ORCPT ); Thu, 14 May 2015 17:10:08 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:35094 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964785AbbENVKF (ORCPT ); Thu, 14 May 2015 17:10:05 -0400 From: Stephane Eranian To: linux-kernel@vger.kernel.org Cc: acme@redhat.com, peterz@infradead.org, mingo@elte.hu, ak@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, kan.liang@intel.com, dsahern@gmail.com Subject: [PATCH v1 0/3] perf: add indirect jump filtering support Date: Thu, 14 May 2015 23:09:57 +0200 Message-Id: <1431637800-31061-1-git-send-email-eranian@google.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1139 Lines: 33 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/