From 1cc0405c754029bd967994ee9fc57e1596c28e64 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Wed, 6 Feb 2013 17:20:02 -0300 Subject: [PATCH] --- yaml --- r: 350069 b: refs/heads/master c: e35ef355ad3dd26bff79c8711f070ac69501dfa3 h: refs/heads/master i: 350067: db81ef3bdf7bd6caceed141a881d7a9af36e5089 v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-evlist.c | 4 ++-- trunk/tools/perf/util/evsel.c | 2 +- trunk/tools/perf/util/evsel.h | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 578904d54579..025a1b5fa6e1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 91b988048bea24eae386da3141d247ccea795a81 +refs/heads/master: e35ef355ad3dd26bff79c8711f070ac69501dfa3 diff --git a/trunk/tools/perf/builtin-evlist.c b/trunk/tools/perf/builtin-evlist.c index 85a5e35dd147..05bd9dfe875c 100644 --- a/trunk/tools/perf/builtin-evlist.c +++ b/trunk/tools/perf/builtin-evlist.c @@ -39,7 +39,7 @@ int cmd_evlist(int argc, const char **argv, const char *prefix __maybe_unused) OPT_BOOLEAN('F', "freq", &details.freq, "Show the sample frequency"), OPT_BOOLEAN('v', "verbose", &details.verbose, "Show all event attr details"), - OPT_BOOLEAN('g', "group", &symbol_conf.event_group, + OPT_BOOLEAN('g', "group", &details.event_group, "Show event group information"), OPT_END() }; @@ -52,7 +52,7 @@ int cmd_evlist(int argc, const char **argv, const char *prefix __maybe_unused) if (argc) usage_with_options(evlist_usage, options); - if (symbol_conf.event_group && (details.verbose || details.freq)) { + if (details.event_group && (details.verbose || details.freq)) { pr_err("--group option is not compatible with other options\n"); usage_with_options(evlist_usage, options); } diff --git a/trunk/tools/perf/util/evsel.c b/trunk/tools/perf/util/evsel.c index a54701504606..9c82f98f26de 100644 --- a/trunk/tools/perf/util/evsel.c +++ b/trunk/tools/perf/util/evsel.c @@ -1391,7 +1391,7 @@ int perf_evsel__fprintf(struct perf_evsel *evsel, bool first = true; int printed = 0; - if (symbol_conf.event_group) { + if (details->event_group) { struct perf_evsel *pos; if (!perf_evsel__is_group_leader(evsel)) diff --git a/trunk/tools/perf/util/evsel.h b/trunk/tools/perf/util/evsel.h index 8512f6a8a6ea..52021c3087df 100644 --- a/trunk/tools/perf/util/evsel.h +++ b/trunk/tools/perf/util/evsel.h @@ -254,6 +254,7 @@ static inline bool perf_evsel__is_group_leader(const struct perf_evsel *evsel) struct perf_attr_details { bool freq; bool verbose; + bool event_group; }; int perf_evsel__fprintf(struct perf_evsel *evsel,