Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\arraymap.c Create Date:2022-07-28 13:11:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:prog_array_map_poke_run

Proto:static void prog_array_map_poke_run(struct bpf_map *map, u32 key, struct bpf_prog *old, struct bpf_prog *new)

Type:void

Parameter:

TypeParameterName
struct bpf_map *map
u32key
struct bpf_prog *old
struct bpf_prog *new
752  aux = ({
752  __mptr = map
752  Do
752  When 0 cycle
752  __mptr - __builtin_offsetof(structbpf_array, map)
752  })->aux
753  WARN_ON_ONCE(!mutex_is_locked( & poke_mutex))
759  When i < size_poke_tab cycle
760  poke = poke_tab[i]
791  If Not READ_ONCE(ip_stable) Then Continue
793  If reason != BPF_POKE_REASON_TAIL_CALL Then Continue
795  If map != map || key != key Then Continue
799  ret = bpf_arch_text_poke(ip, BPF_MOD_JUMP, old ? (u8 * )bpf_func + adj_off : NULL, new ? (u8 * )bpf_func + adj_off : NULL)
804  BUG_ON(ret < 0 && ret != - EINVAL)