diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2024-09-10 14:50:29 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2024-09-10 14:51:51 +0200 |
commit | d92f490cba69fbab495ac21eefff01130be3ec31 (patch) | |
tree | 47d84afee6f3bc2ac5f60bca6b32ff146d12cfd0 /tools/perf | |
parent | perf trace: Introduce SCA_TIMESPEC_FROM_USER() to set .from_user = true (diff) | |
download | linux-d92f490cba69fbab495ac21eefff01130be3ec31.tar.xz linux-d92f490cba69fbab495ac21eefff01130be3ec31.zip |
perf trace: Mark bpf's attr as from_user
This one has no specific pretty printer right now, so will be handled by
the generic BTF based one later in this patch series.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/builtin-trace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 2bdbb6813512..72f61e928e2f 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -1078,7 +1078,8 @@ static const struct syscall_fmt syscall_fmts[] = { [1] = SCA_SOCKADDR_FROM_USER(umyaddr), [2] = { .scnprintf = SCA_INT, /* addrlen */ }, }, }, { .name = "bpf", - .arg = { [0] = STRARRAY(cmd, bpf_cmd), }, }, + .arg = { [0] = STRARRAY(cmd, bpf_cmd), + [1] = { .from_user = true /* attr */, }, } }, { .name = "brk", .hexret = true, .arg = { [0] = { .scnprintf = SCA_PTR, /* brk */ }, }, }, { .name = "clock_gettime", |