Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350069
b: refs/heads/master
c: e35ef35
h: refs/heads/master
i:
  350067: db81ef3
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Feb 6, 2013
1 parent aefac93 commit 1cc0405
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91b988048bea24eae386da3141d247ccea795a81
refs/heads/master: e35ef355ad3dd26bff79c8711f070ac69501dfa3
4 changes: 2 additions & 2 deletions trunk/tools/perf/builtin-evlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/evsel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions trunk/tools/perf/util/evsel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1cc0405

Please sign in to comment.