summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2021-12-13 18:26:50 +0100
committerAlexei Starovoitov <ast@kernel.org>2021-12-13 18:41:36 +0100
commite94fac3829ddd3d9f21efa27d1512215b630782c (patch)
tree7ade7429fb7c8cbbc59ee6a8b5b347e8bd099e95 /net
parentlibbpf: Don't validate TYPE_ID relo's original imm value (diff)
parentselftests/bpf: Add tests for get_func_[arg|ret|arg_cnt] helpers (diff)
downloadlinux-e94fac3829ddd3d9f21efa27d1512215b630782c.tar.xz
linux-e94fac3829ddd3d9f21efa27d1512215b630782c.zip
Merge branch 'bpf: Add helpers to access traced function arguments'
Jiri Olsa says: ==================== Add new helpers to access traced function arguments that came out of the trampoline batch changes [1]. Get n-th argument of the traced function: long bpf_get_func_arg(void *ctx, u32 n, u64 *value) Get return value of the traced function: long bpf_get_func_ret(void *ctx, u64 *value) Get arguments count of the traced funtion: long bpf_get_func_arg_cnt(void *ctx) v2 changes: - added acks - updated stack diagram - return -EOPNOTSUPP instead of -EINVAL in bpf_get_func_ret - removed gpl_only for all helpers - added verifier fix to allow proper arguments checks, Andrii asked for checking also 'int *b' argument in bpf_modify_return_test programs and it turned out that it's currently not supported by verifier - we can't read argument that is int pointer, so I had to add verifier change to allow that + adding verifier selftest - checking all arguments in bpf_modify_return_test test programs - moved helpers proto gets in tracing_prog_func_proto with attach type check thanks, jirka [1] https://lore.kernel.org/bpf/20211118112455.475349-1-jolsa@kernel.org/ ==================== Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions