Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_parse_str_sec

Proto:static int btf_parse_str_sec(struct btf_verifier_env *env)

Type:int

Parameter:

TypeParameterName
struct btf_verifier_env *env
3202  btf = btf
3205  hdr = hdr
3206  start = nohdr_data + offset of string section
3207  end = start + length of string section
3209  If end != data + data_size Then
3210  btf_verifier_log(env, "String section is not at the end")
3211  Return -EINVAL
3214  If Not length of string section || length of string section - 1 > Max offset into the string section || start[0] || end[ - 1] Then
3216  btf_verifier_log(env, "Invalid string section")
3217  Return -EINVAL
3220  strings = start
3222  Return 0
Caller
NameDescribe
btf_parse
btf_parse_vmlinux