aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2015-09-16 21:52:42 +0900
committerArnaldo Carvalho de Melo <[email protected]>2015-09-21 18:01:17 -0300
commit0fb18553478dee5b3d8dc0af4f99a5288e81142f (patch)
tree20bf723452b413dc73eaefc932b7fbb67aeca20d /tools/perf/scripts/python/syscall-counts.py
parent96f3eda67fcf2598e9d2794398e0e7ab35138ea6 (diff)
perf probe: Fix a segfault when removing uprobe events
Fix a segfault bug and a small mistake in perf probe -d. Since the "ulist" in perf_del_probe_events is never initialized, strlist__add(ulist, *) always causes a segfault when removing uprobe events by perf probe -d. Also, the "str" local variable is never released if fail to allocate the "klist". This fixes it too. This has been introduced by the commit e607f1426b58 ("perf probe: Print deleted events in cmd_probe()"). Reported-by: Milian Wolff <[email protected]> Signed-off-by: Masami Hiramatsu <[email protected]> Cc: Namhyung Kim <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions