]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
perf trace: Mark bpf's attr as from_user
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 Sep 2024 12:50:29 +0000 (09:50 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 Sep 2024 12:51:51 +0000 (09:51 -0300)
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>
tools/perf/builtin-trace.c

index 2bdbb6813512d615e4c204b971a487083835c6c0..72f61e928e2ff76b4c2a13195d9f238da1560227 100644 (file)
@@ -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",