diff options
author | Peter Zijlstra <[email protected]> | 2015-09-03 20:07:49 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-09-13 11:27:27 +0200 |
commit | fa8c269353d560b7c28119ad7617029f92e40b15 (patch) | |
tree | 763677029c81e8c1e512627477b68cab02ddbe1a /tools/perf/util/trace-event-scripting.c | |
parent | 0492d4c5b8c4dc3a7591bf6fa0e35d117812cc85 (diff) |
perf/core: Invert perf_read_group() loops
In order to enable the use of perf_event_read(.group = true), we need
to invert the sibling-child loop nesting of perf_read_group().
Currently we iterate the child list for each sibling, this precludes
using group reads. Flip things around so we iterate each group for
each child.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
[ Made the patch compile and things. ]
Signed-off-by: Sukadev Bhattiprolu <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions