bpf: export btf_ctx_access to modules.
authorKui-Feng Lee <thinker.li@gmail.com>
Fri, 19 Jan 2024 22:50:04 +0000 (14:50 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 24 Jan 2024 01:12:52 +0000 (17:12 -0800)
commit7c81c2490c73e614c6d48e4f339f4f224140b565
treee4818b6ed76d5c6cb7148ac56db2a826c36272e5
parent9e926acda0c2e21bca431a1818665ddcd6939755
bpf: export btf_ctx_access to modules.

The module requires the use of btf_ctx_access() to invoke
bpf_tracing_btf_ctx_access() from a module. This function is valuable for
implementing validation functions that ensure proper access to ctx.

Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Link: https://lore.kernel.org/r/20240119225005.668602-14-thinker.li@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
kernel/bpf/btf.c