perf trace: Add "_from_option" suffix to trace__set_filter()
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 6a0b3abad9decb3c20e19baa3c442e1e5518546e Gitweb: https://git.kernel.org/tip/6a0b3abad9decb3c20e19baa3c442e1e5518546e Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 7 Nov 2018 09:38:49 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 21 Nov 2018 12:00:31 -0300
perf trace: Add "_from_option" suffix to trace__set_filter()
As we'll need that name for a new function to set filters for both tracepoints and BPF maps for filtering pids.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/builtin-trace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
tools/perf/builtin-trace.c +3 -3
@@ -3104,8 +3104,8 @@ static int trace__set_duration(const struct option *opt, const char *str,return 0 ; } -static int trace__set_filter_pids (const struct option *opt,const char *str, -int unset__maybe_unused ) +static int trace__set_filter_pids_from_option (const struct option *opt,const char *str, +int unset__maybe_unused ) {int ret =-1 ;size_t i;
@@ -3363,7 +3363,7 @@ int cmd_trace(int argc, const char **argv)OPT_STRING ('t' ,"tid" , &trace.opts.target.tid,"tid" ,"trace events on existing thread id" ),OPT_CALLBACK (0 ,"filter-pids" , &trace,"CSV list of pids" , -"pids to filter (by the kernel)" , trace__set_filter_pids), +"pids to filter (by the kernel)" , trace__set_filter_pids_from_option),OPT_BOOLEAN ('a' ,"all-cpus" , &trace.opts.target.system_wide,"system-wide collection from all CPUs" ), OPT_STRING('C', "cpu", &trace.opts.target.cpu_list, "cpu",