mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 08:17:46 +00:00
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>
This commit is contained in:
parent
9e926acda0
commit
7c81c2490c
1 changed files with 1 additions and 0 deletions
|
@ -6322,6 +6322,7 @@ bool btf_ctx_access(int off, int size, enum bpf_access_type type,
|
|||
__btf_name_by_offset(btf, t->name_off));
|
||||
return true;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(btf_ctx_access);
|
||||
|
||||
enum bpf_struct_walk_result {
|
||||
/* < 0 error */
|
||||
|
|
Loading…
Add table
Reference in a new issue