diff options
author | Amery Hung <ameryhung@gmail.com> | 2025-04-10 00:45:57 +0300 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2025-04-17 20:50:55 +0300 |
commit | a1b669ea16c4d7c1a1a8fc7e25aaf651ea0078c3 (patch) | |
tree | 1fe60f0ebca185b8aa1abf07970efc6a0c7f9574 /include/linux/btf.h | |
parent | ab734b43c81f8696bf89ff11b6c29a3dd884030a (diff) | |
download | linux-a1b669ea16c4d7c1a1a8fc7e25aaf651ea0078c3.tar.xz |
bpf: Prepare to reuse get_ctx_arg_idx
Rename get_ctx_arg_idx to bpf_ctx_arg_idx, and allow others to call it.
No functional change.
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://patch.msgid.link/20250409214606.2000194-2-ameryhung@gmail.com
Diffstat (limited to 'include/linux/btf.h')
-rw-r--r-- | include/linux/btf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/btf.h b/include/linux/btf.h index ebc0c0c9b944..b2983706292f 100644 --- a/include/linux/btf.h +++ b/include/linux/btf.h @@ -522,6 +522,7 @@ bool btf_param_match_suffix(const struct btf *btf, const char *suffix); int btf_ctx_arg_offset(const struct btf *btf, const struct btf_type *func_proto, u32 arg_no); +u32 btf_ctx_arg_idx(struct btf *btf, const struct btf_type *func_proto, int off); struct bpf_verifier_log; |