diff options
author | 2020-09-25 23:25:01 +0200 | |
---|---|---|
committer | 2020-09-28 17:09:59 -0700 | |
commit | efc68158c429f37d87fd02ee9a26913c78546fc9 (patch) | |
tree | dbff90d25f49eb38e278dc0edc000c6e0a72d43a /scripts/bpf_helpers_doc.py | |
parent | bpf: disallow attaching modify_return tracing functions to other BPF programs (diff) | |
download | linux-dev-efc68158c429f37d87fd02ee9a26913c78546fc9.tar.xz linux-dev-efc68158c429f37d87fd02ee9a26913c78546fc9.zip |
bpf: change logging calls from verbose() to bpf_log() and use log pointer
In preparation for moving code around, change a bunch of references to
env->log (and the verbose() logging helper) to use bpf_log() and a direct
pointer to struct bpf_verifier_log. While we're touching the function
signature, mark the 'prog' argument to bpf_check_type_match() as const.
Also enhance the bpf_verifier_log_needed() check to handle NULL pointers
for the log struct so we can re-use the code with logging disabled.
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions