summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2024-09-10 09:50:29 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2024-09-10 09:51:51 -0300
commitd92f490cba69fbab495ac21eefff01130be3ec31 (patch)
tree47d84afee6f3bc2ac5f60bca6b32ff146d12cfd0
parentc790f2bafb7a17d97c49c17607fa2ff919891f51 (diff)
downloadlwn-d92f490cba69fbab495ac21eefff01130be3ec31.tar.gz
lwn-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>
-rw-r--r--tools/perf/builtin-trace.c3
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",