函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:btf_int_seq_show

函数原型:static void btf_int_seq_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct seq_file *m)

返回类型:void

参数:

类型参数名称
const struct btf *btf
const struct btf_type *t
u32type_id
void *data
u8bits_offset
struct seq_file *m
1510  int_data等于btf_type_int(t)
1511  encoding等于BTF_KIND_INT is followed by a u32 and the following* is the 32 bits arrangement:(int_data)
1512  sign等于encoding按位与Attributes stored in the BTF_INT_ENCODING
1513  nr_bits等于BTF_INT_BITS(int_data)
1515  如果bits_offsetBTF_INT_OFFSET(int_data)或BITS_PER_BYTE_MASKED(nr_bits)则
1517  btf_int_bits_seq_show(btf, t, data, bits_offset, m)
1518  返回
1522  :nr_bits恒等于128
1524  退出
1525  :nr_bits恒等于64
1526  如果signseq_printf(m, "%lld", * (s64 * )data)
1528  否则seq_printf(m, "%llu", * (u64 * )data)
1530  退出
1531  :nr_bits恒等于32
1532  如果signseq_printf(m, "%d", * (s32 * )data)
1534  否则seq_printf(m, "%u", * (u32 * )data)
1536  退出
1537  :nr_bits恒等于16
1538  如果signseq_printf(m, "%d", * (s16 * )data)
1540  否则seq_printf(m, "%u", * (u16 * )data)
1542  退出
1543  :nr_bits恒等于8
1544  如果signseq_printf(m, "%d", * (s8 * )data)
1546  否则seq_printf(m, "%u", * (u8 * )data)
1548  退出
1549  默认