Re: [PATCH 01/19] perf ftrace: trace system wide if no target is given

From: Arnaldo Carvalho de Melo
Date: Wed May 20 2020 - 16:47:09 EST


Em Sun, May 10, 2020 at 11:06:10PM +0800, Changbin Du escreveu:
> This align ftrace to other perf sub-commands that if no target specified
> then we trace all functions.


Thanks, applied,

- Arnaldo

> Signed-off-by: Changbin Du <changbin.du@xxxxxxxxx>
> ---
> tools/perf/builtin-ftrace.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c
> index d5adc417a4ca..11fc02037899 100644
> --- a/tools/perf/builtin-ftrace.c
> +++ b/tools/perf/builtin-ftrace.c
> @@ -493,7 +493,7 @@ int cmd_ftrace(int argc, const char **argv)
> argc = parse_options(argc, argv, ftrace_options, ftrace_usage,
> PARSE_OPT_STOP_AT_NON_OPTION);
> if (!argc && target__none(&ftrace.target))
> - usage_with_options(ftrace_usage, ftrace_options);
> + ftrace.target.system_wide = true;
>
> ret = target__validate(&ftrace.target);
> if (ret) {
> --
> 2.25.1
>

--

- Arnaldo