Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:18:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_int_seq_show
Proto: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)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
const struct btf * | btf | |
const struct btf_type * | t | |
u32 | type_id | |
void * | data | |
u8 | bits_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) |
1513 | nr_bits = BTF_INT_BITS(int_data) |
1515 | If bits_offset || BTF_INT_OFFSET(int_data) || BITS_PER_BYTE_MASKED(nr_bits) Then |
1517 | btf_int_bits_seq_show(btf, t, data, bits_offset, m) |
1518 | Return |
1522 | Case nr_bits == 128 |
1523 | btf_int128_print(m, data) |
1524 | Break |
1525 | Case nr_bits == 64 |
1526 | If sign Then seq_printf(m, "%lld", * (s64 * )data) |
1528 | Else seq_printf(m, "%llu", * (u64 * )data) |
1530 | Break |
1531 | Case nr_bits == 32 |
1532 | If sign Then seq_printf(m, "%d", * (s32 * )data) |
1534 | Else seq_printf(m, "%u", * (u32 * )data) |
1536 | Break |
1537 | Case nr_bits == 16 |
1538 | If sign Then seq_printf(m, "%d", * (s16 * )data) |
1540 | Else seq_printf(m, "%u", * (u16 * )data) |
1542 | Break |
1543 | Case nr_bits == 8 |
1544 | If sign Then seq_printf(m, "%d", * (s8 * )data) |
1546 | Else seq_printf(m, "%u", * (u8 * )data) |
1548 | Break |
1549 | Default |
1550 | btf_int_bits_seq_show(btf, t, data, bits_offset, m) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |