Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933799Ab1CXLcP (ORCPT ); Thu, 24 Mar 2011 07:32:15 -0400 Received: from mail4.hitachi.co.jp ([133.145.228.5]:49853 "EHLO mail4.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933711Ab1CXLcJ (ORCPT ); Thu, 24 Mar 2011 07:32:09 -0400 X-AuditID: b753bd60-a1d49ba0000001d0-c7-4d8b2bb68224 X-AuditID: b753bd60-a1d49ba0000001d0-c7-4d8b2bb68224 From: Akihiro Nagai Subject: [PATCH -tip v3 6/6] perf branch trace: add print all option To: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Frederic Weisbecker Cc: linux-kernel@vger.kernel.org, Masami Hiramatsu , 2nddept-manager@sdl.hitachi.co.jp, Akihiro Nagai , Peter Zijlstra , Frederic Weisbecker , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo Date: Thu, 24 Mar 2011 20:32:38 +0900 Message-ID: <20110324113238.20235.85860.stgit@localhost6.localdomain6> In-Reply-To: <20110324113137.20235.42265.stgit@localhost6.localdomain6> References: <20110324113137.20235.42265.stgit@localhost6.localdomain6> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2089 Lines: 65 For ease of use, add option printing all information '-A' or '--all'. This option can print following information. - pid - command name - address - function+offset - elf file path Signed-off-by: Akihiro Nagai Reviewed-by: Masami Hiramatsu Cc: Peter Zijlstra Cc: Frederic Weisbecker Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo --- tools/perf/Documentation/perf-branch.txt | 3 +++ tools/perf/builtin-branch.c | 6 ++++++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/tools/perf/Documentation/perf-branch.txt b/tools/perf/Documentation/perf-branch.txt index 9c7e100..dd06090 100644 --- a/tools/perf/Documentation/perf-branch.txt +++ b/tools/perf/Documentation/perf-branch.txt @@ -45,6 +45,9 @@ OPTIONS -s:: --symbol:: Print function name and offset. (default) +-A:: +--all:: + Print all information. SEE ALSO -------- diff --git a/tools/perf/builtin-branch.c b/tools/perf/builtin-branch.c index 819443e..efbd8d8 100644 --- a/tools/perf/builtin-branch.c +++ b/tools/perf/builtin-branch.c @@ -36,6 +36,9 @@ struct exec_info { #define EI_FLAG_PRINT_ELFPATH (1 << 3) #define EI_FLAG_PRINT_SYMBOL (1 << 4) +/* all print flags are enabled */ +#define EI_FLAG_PRINT_ALL -1UL + /* it's used when no print item specified */ #define EI_FLAG_PRINT_DEFAULT EI_FLAG_PRINT_SYMBOL @@ -94,6 +97,9 @@ static const struct option branch_options[] = { "print function+offset (default)", set_print_flags, (void *)EI_FLAG_PRINT_SYMBOL), + OPT_CALLBACK_DEFAULT_NOOPT('A', "all", NULL, NULL, + "print all items", set_print_flags, + (void *)EI_FLAG_PRINT_ALL), OPT_END() }; -- 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/