aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorGravatar Kumar Kartikeya Dwivedi <memxor@gmail.com> 2022-11-04 00:39:57 +0530
committerGravatar Alexei Starovoitov <ast@kernel.org> 2022-11-03 23:09:40 -0700
commitf71b2f64177a199d5b1d2047e155d45fd98f564a (patch)
treefe7cc4acbb4c5430be7b0dd16f129a2714be36a2 /arch/x86
parentbpf: Consolidate spin_lock, timer management into btf_record (diff)
downloadlinux-f71b2f64177a.tar.gz
linux-f71b2f64177a.tar.bz2
linux-f71b2f64177a.zip
bpf: Refactor map->off_arr handling
Refactor map->off_arr handling into generic functions that can work on their own without hardcoding map specific code. The btf_fields_offs structure is now returned from btf_parse_field_offs, which can be reused later for types in program BTF. All functions like copy_map_value, zero_map_value call generic underlying functions so that they can also be reused later for copying to values allocated in programs which encode specific fields. Later, some helper functions will also require access to this btf_field_offs structure to be able to skip over special fields at runtime. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20221103191013.1236066-9-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions