aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2024-11-29 09:59:34 +0100
committerAlexei Starovoitov <ast@kernel.org>2024-12-02 08:42:02 -0800
commit3bfb49d73fc281f06c0d976db898debebc8223e3 (patch)
treeebe7871415c2999f5e51f7cad9a2141d4fe0d391 /tools/perf/scripts/python/export-to-postgresql.py
parentbpf: Remove bpf_probe_write_user() warning message (diff)
downloadwireguard-linux-3bfb49d73fc281f06c0d976db898debebc8223e3.tar.xz
wireguard-linux-3bfb49d73fc281f06c0d976db898debebc8223e3.zip
bpf: Refactor bpf_tracing_func_proto() and remove bpf_get_probe_write_proto()
With bpf_get_probe_write_proto() no longer printing a message, we can avoid it being a special case with its own permission check. Refactor bpf_tracing_func_proto() similar to bpf_base_func_proto() to have a section conditional on bpf_token_capable(CAP_SYS_ADMIN), where the proto for bpf_probe_write_user() is returned. Finally, remove the unnecessary bpf_get_probe_write_proto(). This simplifies the code, and adding additional CAP_SYS_ADMIN-only helpers in future avoids duplicating the same CAP_SYS_ADMIN check. Suggested-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Marco Elver <elver@google.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/r/20241129090040.2690691-2-elver@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions