函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__func_get_name

函数原型:static const char *__func_get_name(const struct bpf_insn_cbs *cbs, const struct bpf_insn *insn, char *buff, size_t len)

返回类型:char

参数:

类型参数名称
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  如果 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_IDfunc_id_str[ signed immediate constant ]则返回:func_id_str[ signed immediate constant ]
27  如果cbscb_call则返回:cb_call(private_data, insn)
30  如果 source register 恒等于when bpf_call->src_reg == BPF_PSEUDO_CALL, bpf_call->imm == pc-relative* offset to another bpf functionsnprintf - 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  返回:buff
调用者
名称描述
print_bpf_insn