Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965248AbbENVKW (ORCPT ); Thu, 14 May 2015 17:10:22 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:36697 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965132AbbENVKN (ORCPT ); Thu, 14 May 2015 17:10:13 -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 3/3] perf record: add support for sampling indirect jumps Date: Thu, 14 May 2015 23:10:00 +0200 Message-Id: <1431637800-31061-4-git-send-email-eranian@google.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431637800-31061-1-git-send-email-eranian@google.com> References: <1431637800-31061-1-git-send-email-eranian@google.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1062 Lines: 32 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 --- tools/perf/builtin-record.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 5dfe913..860c133 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -773,6 +773,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 }; -- 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/