Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__func_get_name

Proto:static const char *__func_get_name(const struct bpf_insn_cbs *cbs, const struct bpf_insn *insn, char *buff, size_t len)

Type:char

Parameter:

TypeParameterName
const struct bpf_insn_cbs *cbs
const struct bpf_insn *insn
char *buff
size_tlen
20  BUILD_BUG_ON - break compile if a condition is true(ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(func_id_str) != __BPF_FUNC_MAX_ID)
22  If source register != when bpf_call->src_reg == BPF_PSEUDO_CALL, bpf_call->imm == pc-relative* offset to another bpf function && signed immediate constant >= 0 && signed immediate constant < __BPF_FUNC_MAX_ID && func_id_str[ signed immediate constant ] Then Return func_id_str[ signed immediate constant ]
27  If cbs && cb_call Then Return cb_call(private_data, insn)
30  If source register == when bpf_call->src_reg == BPF_PSEUDO_CALL, bpf_call->imm == pc-relative* offset to another bpf function Then snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
33  Return buff
Caller
NameDescribe
print_bpf_insn