函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\core.c Create Date:2022-07-27 13:59:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_opcode_in_insntable

函数原型:bool bpf_opcode_in_insntable(u8 code)

返回类型:bool

参数:

类型参数名称
u8code
1329  static const bool public_insntable[256] = {[0...255] = TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., All UAPI available opcodes. (BPF_INSN_2_TBL, BPF_INSN_3_TBL), [BPF_LD | BPF_ABS | 8-bit ] = true, [BPF_LD | BPF_ABS | 16-bit ] = true, [BPF_LD | BPF_ABS | 32-bit ] = true, [BPF_LD | BPF_IND | 8-bit ] = true, [BPF_LD | BPF_IND | 16-bit ] = true, [BPF_LD | BPF_IND | 32-bit ] = true, }
1343  返回:public_insntable[code]
调用者
名称描述
replace_map_fd_with_map_ptrlook for pseudo eBPF instructions that access map FDs and* replace them with actual map pointers