[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAP-5=fVmB=E-MMyhA2WBQV8OLcPH20tw+11XjCeecMU6hce5jQ@mail.gmail.com>
Date: Wed, 20 Mar 2024 18:50:27 -0700
From: Ian Rogers <irogers@...gle.com>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Jiri Olsa <jolsa@...nel.org>, Namhyung Kim <namhyung@...nel.org>,
Adrian Hunter <adrian.hunter@...el.com>, linux-kernel@...r.kernel.org,
linux-perf-users@...r.kernel.org, Arnaldo Carvalho de Melo <acme@...hat.com>
Subject: Re: [PATCH 4/5] perf trace: Beautify the 'flags' arg of unlinkat
On Wed, Mar 20, 2024 at 12:31 PM Arnaldo Carvalho de Melo
<acme@...nel.org> wrote:
>
> From: Arnaldo Carvalho de Melo <acme@...hat.com>
>
> Reusing the fs_at_flags array done for the 'stat' syscall.
>
> Cc: Adrian Hunter <adrian.hunter@...el.com>
> Cc: Ian Rogers <irogers@...gle.com>
> Cc: Jiri Olsa <jolsa@...nel.org>
> Cc: Namhyung Kim <namhyung@...nel.org>
> Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
Reviewed-by: Ian Rogers <irogers@...gle.com>
Thanks,
Ian
> ---
> tools/perf/builtin-trace.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
> index 58546e8af9fcf481..ef0dfffd99fdf3cc 100644
> --- a/tools/perf/builtin-trace.c
> +++ b/tools/perf/builtin-trace.c
> @@ -1171,7 +1171,9 @@ static const struct syscall_fmt syscall_fmts[] = {
> .arg = { [0] = { .scnprintf = SCA_FILENAME, /* name */ }, }, },
> { .name = "uname", .alias = "newuname", },
> { .name = "unlinkat",
> - .arg = { [0] = { .scnprintf = SCA_FDAT, /* dfd */ }, }, },
> + .arg = { [0] = { .scnprintf = SCA_FDAT, /* dfd */ },
> + [1] = { .scnprintf = SCA_FILENAME, /* pathname */ },
> + [2] = { .scnprintf = SCA_FS_AT_FLAGS, /* flags */ }, }, },
> { .name = "utimensat",
> .arg = { [0] = { .scnprintf = SCA_FDAT, /* dirfd */ }, }, },
> { .name = "wait4", .errpid = true,
> --
> 2.44.0
>
Powered by blists - more mailing lists