Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Regular int is not a bit field and it must be either* u8/u16/u32/u64 or __int128.

Proto:static bool btf_type_int_is_regular(const struct btf_type *t)

Type:bool

Parameter:

TypeParameterName
const struct btf_type *t
594  int_data = btf_type_int(t)
595  nr_bits = BTF_INT_BITS(int_data)
596  nr_bytes = BITS_ROUNDUP_BYTES(nr_bits)
597  If BITS_PER_BYTE_MASKED(nr_bits) || BTF_INT_OFFSET(int_data) || nr_bytes != sizeof(u8) && nr_bytes != sizeof(u16) && nr_bytes != sizeof(u32) && nr_bytes != sizeof(u64) && nr_bytes != 2 * sizeof(u64) Then
602  Return false
605  Return true
Caller
NameDescribe
btf_int_check_kflag_member
btf_array_resolve