aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorTzvetomir Stoyanov <[email protected]>2019-04-01 16:43:15 +0000
committerArnaldo Carvalho de Melo <[email protected]>2019-04-01 18:18:09 +0000
commitfea6b632235b9bedc58c72cd24f1865bb0c365db (patch)
treee532b15c2b2e5a85436ac36c4138d9a93e9d6428 /tools/perf/util/scripting-engines/trace-event-perl.c
parenttools lib traceevent: Remove tep filter trivial APIs (diff)
downloadkernel-fea6b632235b9bedc58c72cd24f1865bb0c365db.tar.gz
kernel-fea6b632235b9bedc58c72cd24f1865bb0c365db.zip
tools lib traceevent: Remove call to exit() from tep_filter_add_filter_str()
This patch removes call to exit() from tep_filter_add_filter_str(). A library function should not force the application to exit. In the current implementation tep_filter_add_filter_str() calls exit() when a special "test_filters" mode is set, used only for debugging purposes. When this mode is set and a filter is added - its string is printed to the console and exit() is called. This patch changes the logic - when in "test_filters" mode, the filter string is still printed, but the exit() is not called. It is up to the application to track when "test_filters" mode is set and to call exit, if needed. Signed-off-by: Tzvetomir Stoyanov <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions