aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2015-11-25 19:34:32 +0900
committerArnaldo Carvalho de Melo <[email protected]>2015-11-25 16:36:35 -0300
commit4d3b16269059eee12dc572848191c8e4e7bd24b3 (patch)
tree9eca24ef311d1ba2d8cc4167f281879f02dbe50f /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parent32abc2ede536aae52978d6c0a8944eb1df14f460 (diff)
perf probe: Fix to free temporal Dwarf_Frame correctly
The commit 05c8d802fa52 ("perf probe: Fix to free temporal Dwarf_Frame") tried to fix the memory leak of Dwarf_Frame, but it released the frame at wrong point. Since the dwarf_frame_cfa(frame, &pf->fb_ops, &nops) can return an address inside the frame data structure to pf->fb_ops, we can not release the frame before using pf->fb_ops. This reverts the commit and releases the frame afterwards (right before returning from call_probe_finder) correctly. Reported-and-Tested-by: Arnaldo Carvalho de Melo <[email protected]> Reported-by: Michael Petlan <[email protected]> Signed-off-by: Masami Hiramatsu <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Wang Nan <[email protected]> Fixes: 05c8d802fa52 ("perf probe: Fix to free temporal Dwarf_Frame") LPU-Reference: [email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions