aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2019-11-09 07:58:40 +0000
committerArnaldo Carvalho de Melo <[email protected]>2019-11-12 11:34:16 +0000
commite1e9b78d3957a267346a86c8f2c433f6a332af65 (patch)
treeffdb9cc83a2c261da115d1f63dd3e67a7d08860d /tools/perf/scripts/python
parentperf tool: Provide an option to print perf_event_open args and return value (diff)
downloadkernel-e1e9b78d3957a267346a86c8f2c433f6a332af65.tar.gz
kernel-e1e9b78d3957a267346a86c8f2c433f6a332af65.zip
perf parse: Use YYABORT to clear stack after failure, plugging leaks
Using return rather than YYABORT means that the stack isn't cleared up following a failure. The change to YYABORT means the return value is 1 rather than -1, but the callers just check for a result of 0 (success). Add missing free of a list when an error occurs in event_pmu. Signed-off-by: Ian Rogers <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions