diff options
| author | Stephane Eranian <[email protected]> | 2011-03-23 15:03:06 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2011-03-23 15:07:22 +0000 |
| commit | 68cacd29167b1926d237bd1b153aa2a990201729 (patch) | |
| tree | d4359e9e0a1fa88b569e0c8a20aede435d916fee /tools/perf/util/trace-event-scripting.c | |
| parent | perf top: Fix uninitialized 'counter' variable (diff) | |
| download | kernel-68cacd29167b1926d237bd1b153aa2a990201729.tar.gz kernel-68cacd29167b1926d237bd1b153aa2a990201729.zip | |
perf_events: Fix stale ->cgrp pointer in update_cgrp_time_from_cpuctx()
This patch solves a stale pointer problem in
update_cgrp_time_from_cpuctx(). The cpuctx->cgrp
was not cleared on all possible event exit paths,
including:
close()
perf_release()
perf_release_kernel()
list_del_event()
This patch fixes list_del_event() to clear cpuctx->cgrp
when there are no cgroup events left in the context.
[ This second version makes the code compile when
CONFIG_CGROUP_PERF is not enabled. We unconditionally define
perf_cpu_context->cgrp. ]
Signed-off-by: Stephane Eranian <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <20110323150306.GA1580@quad>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
