perf probe: Split del_perf_probe_events()
authorNamhyung Kim <namhyung@kernel.org>
Fri, 4 Sep 2015 12:16:02 +0000 (21:16 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 4 Sep 2015 15:43:19 +0000 (12:43 -0300)
commite7895e422e4da63daedacad0a2ed1a5a6b502d66
tree3198684eedba8f26caf509e2f0aac4e3c1d442b8
parentb02137cc6550c1fa28e9a7c943a79fe6e4c4378d
perf probe: Split del_perf_probe_events()

The del_perf_probe_events() does 2 things:

1. find existing events which match to filter
2. delete such trace events from kernel

But sometimes we need to do something with the trace events.  So split
the funtion into two, so that it can access intermediate trace events
name using strlist if needed.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1441368963-11565-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-file.c