Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349887
b: refs/heads/master
c: 2cfda56
h: refs/heads/master
i:
  349885: 81169a1
  349883: f82c24a
  349879: 08da13c
  349871: 3f801a7
  349855: da5fd17
  349823: 74afec1
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Dec 9, 2012
1 parent 868530d commit a564cca
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 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: 5fa9041bbaa7a79a67d568b9c9f947db2f23d091
refs/heads/master: 2cfda562da7b0b1e0575507ef3efe782d4e218e4
1 change: 0 additions & 1 deletion trunk/tools/perf/util/evlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ void __perf_evlist__set_leader(struct list_head *list)
struct perf_evsel *evsel, *leader;

leader = list_entry(list->next, struct perf_evsel, node);
leader->leader = NULL;

list_for_each_entry(evsel, list, node) {
if (evsel != leader)
Expand Down
1 change: 1 addition & 0 deletions trunk/tools/perf/util/evsel.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void perf_evsel__init(struct perf_evsel *evsel,
{
evsel->idx = idx;
evsel->attr = *attr;
evsel->leader = evsel;
INIT_LIST_HEAD(&evsel->node);
hists__init(&evsel->hists);
evsel->sample_size = __perf_evsel__sample_size(attr->sample_type);
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/evsel.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,6 @@ static inline struct perf_evsel *perf_evsel__next(struct perf_evsel *evsel)

static inline bool perf_evsel__is_group_member(const struct perf_evsel *evsel)
{
return evsel->leader != NULL;
return evsel->leader != evsel;
}
#endif /* __PERF_EVSEL_H */

0 comments on commit a564cca

Please sign in to comment.