Re: A question about BTF naming convention

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Are there other issues you see aside from the presence of a '.' in a BTF struct/fwd name?

Thanks Alan. There still some problems left I'm afraid, let me list one by one:

case 1:

[1] INT bool size=1 bits_offset=0 nr_bits=8 encoding=BOOL
[2] FUNC_PROTO (anon) return=3 args=(1 ctx)
[3] INT c_long size=8 bits_offset=0 nr_bits=64 encoding=SIGNED
[4] FUNC test_panic type_id=2
[5] STRUCT []u8 size=16 vlen=2 Invalid name

case 2:

[1] PTR (anon) type_id=3
[2] INT u8 size=1 bits_offset=0 nr_bits=8 encoding=(none)
[3] ARRAY (anon) type_id=2 index_type_id=4 nr_elems=2
[4] INT __ARRAY_SIZE_TYPE__ size=4 bits_offset=0 nr_bits=32 encoding=(none)
[5] PTR (anon) type_id=6
[6] INT u32 size=4 bits_offset=0 nr_bits=32 encoding=(none)
[7] PTR (anon) type_id=8
[8] INT u64 size=8 bits_offset=0 nr_bits=64 encoding=(none)
[9] PTR (anon) type_id=10
[10] ARRAY (anon) type_id=2 index_type_id=4 nr_elems=1
[11] STRUCT map.Map.Def size=32 vlen=4
type type_id=1 bits_offset=0
key type_id=5 bits_offset=64
value type_id=7 bits_offset=128
max_entries type_id=9 bits_offset=192
[12] VAR entry type_id=11 linkage=1
[13] PTR (anon) type_id=14
[14] INT i64 size=8 bits_offset=0 nr_bits=64 encoding=SIGNED
[15] STRUCT map.Map.Def size=32 vlen=4
type type_id=1 bits_offset=0
key type_id=5 bits_offset=64
value type_id=13 bits_offset=128
max_entries type_id=9 bits_offset=192
[16] VAR exit type_id=15 linkage=1
[17] PTR (anon) type_id=18
[18] STRUCT args.Ctx("path_listxattr"[0..14]) size=40 vlen=5 Invalid name

case 3:

[1] PTR (anon) type_id=3
[2] INT u8 size=1 bits_offset=0 nr_bits=8 encoding=(none)
[3] ARRAY (anon) type_id=2 index_type_id=4 nr_elems=2
[4] INT __ARRAY_SIZE_TYPE__ size=4 bits_offset=0 nr_bits=32 encoding=(none)
[5] PTR (anon) type_id=6
[6] INT u32 size=4 bits_offset=0 nr_bits=32 encoding=(none)
[7] PTR (anon) type_id=8
[8] INT u64 size=8 bits_offset=0 nr_bits=64 encoding=(none)
[9] PTR (anon) type_id=10
[10] ARRAY (anon) type_id=2 index_type_id=4 nr_elems=1
[11] STRUCT map.Map.Def size=32 vlen=4
type type_id=1 bits_offset=0
key type_id=5 bits_offset=64
value type_id=7 bits_offset=128
max_entries type_id=9 bits_offset=192
[12] VAR entry type_id=11 linkage=1
[13] PTR (anon) type_id=14
[14] INT i64 size=8 bits_offset=0 nr_bits=64 encoding=SIGNED
[15] STRUCT map.Map.Def size=32 vlen=4
type type_id=1 bits_offset=0
key type_id=5 bits_offset=64
value type_id=13 bits_offset=128
max_entries type_id=9 bits_offset=192
[16] VAR exit type_id=15 linkage=1
[17] PTR (anon) type_id=18
[18] STRUCT args.PT_REGS("_zig_path_listxattr"[0..19],false) size=0
vlen=0 Invalid name




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux