Created
July 20, 2023 03:35
-
-
Save zhuizhuhaomeng/96354064e377f0db2b3da1a689e523e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1]+ Running ./xdp_drop_ipv6_count_user /var/run/netns/orbpf1 veth1 & | |
[1]+ Running ./xdp_drop_ipv6_count_user /var/run/netns/orbpf1 veth1 & | |
libbpf: elf: skipping unrecognized data section(7) xdp_metadata | |
libbpf: Error loading BTF: Invalid argument(22) | |
libbpf: magic: 0xeb9f | |
version: 1 | |
flags: 0x0 | |
hdr_len: 24 | |
type_off: 0 | |
type_len: 892 | |
str_off: 892 | |
str_len: 2284 | |
btf_total_size: 3200 | |
[1] PTR (anon) type_id=2 | |
[2] STRUCT xdp_md size=24 vlen=6 | |
data type_id=3 bits_offset=0 | |
data_end type_id=3 bits_offset=32 | |
data_meta type_id=3 bits_offset=64 | |
ingress_ifindex type_id=3 bits_offset=96 | |
rx_queue_index type_id=3 bits_offset=128 | |
egress_ifindex type_id=3 bits_offset=160 | |
[3] TYPEDEF __u32 type_id=4 | |
[4] INT unsigned int size=4 bits_offset=0 nr_bits=32 encoding=(none) | |
[5] FUNC_PROTO (anon) return=6 args=(1 ctx) | |
[6] INT int size=4 bits_offset=0 nr_bits=32 encoding=SIGNED | |
[7] FUNC prog0 type_id=5 Invalid func linkage | |
libbpf: Error loading .BTF into kernel: -22. BTF is optional, ignoring. | |
[1]+ Running ./xdp_drop_ipv6_count_user /var/run/netns/orbpf1 veth1 & | |
libbpf: elf: skipping unrecognized data section(7) xdp_metadata | |
libbpf: The target program doesn't have BTF | |
libxdp: Compatibility check for dispatcher program failed: Invalid argument | |
libxdp: Falling back to loading single prog without dispatcher | |
libbpf: Error loading BTF: Invalid argument(22) | |
libbpf: magic: 0xeb9f | |
version: 1 | |
flags: 0x0 | |
hdr_len: 24 | |
type_off: 0 | |
type_len: 492 | |
str_off: 492 | |
str_len: 652 | |
btf_total_size: 1168 | |
[1] PTR (anon) type_id=3 | |
[2] INT int size=4 bits_offset=0 nr_bits=32 encoding=SIGNED | |
[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] TYPEDEF __u32 type_id=7 | |
[7] INT unsigned int size=4 bits_offset=0 nr_bits=32 encoding=(none) | |
[8] PTR (anon) type_id=9 | |
[9] TYPEDEF __u64 type_id=10 | |
[10] INT unsigned long long size=8 bits_offset=0 nr_bits=64 encoding=(none) | |
[11] PTR (anon) type_id=12 | |
[12] ARRAY (anon) type_id=2 index_type_id=4 nr_elems=1 | |
[13] STRUCT (anon) size=32 vlen=4 | |
type type_id=1 bits_offset=0 | |
key type_id=5 bits_offset=64 | |
value type_id=8 bits_offset=128 | |
max_entries type_id=11 bits_offset=192 | |
[14] VAR rxcnt type_id=13 linkage=1 | |
[15] PTR (anon) type_id=16 | |
[16] STRUCT xdp_md size=24 vlen=6 | |
data type_id=6 bits_offset=0 | |
data_end type_id=6 bits_offset=32 | |
data_meta type_id=6 bits_offset=64 | |
ingress_ifindex type_id=6 bits_offset=96 | |
rx_queue_index type_id=6 bits_offset=128 | |
egress_ifindex type_id=6 bits_offset=160 | |
[17] FUNC_PROTO (anon) return=2 args=(15 ctx) | |
[18] FUNC xdp_drop_ipv6_prog type_id=17 Invalid func linkage | |
libbpf: Error loading .BTF into kernel: -22. BTF is optional, ignoring. | |
libbpf: load bpf program failed: Invalid argument | |
libbpf: -- BEGIN DUMP LOG --- | |
libbpf: | |
0: (b7) r2 = 0 | |
1: (63) *(u32 *)(r10 -20) = r2 | |
last_idx 1 first_idx 0 | |
regs=4 stack=0 before 0: (b7) r2 = 0 | |
2: (bf) r2 = r10 | |
3: (07) r2 += -16 | |
4: (bf) r3 = r10 | |
5: (07) r3 += -8 | |
6: (85) call unknown#65613 | |
invalid func unknown#65613 | |
processed 7 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 | |
libbpf: -- END LOG -- | |
libbpf: failed to load program 'xdp_drop_ipv6_prog' | |
libbpf: failed to load object 'xdp_drop_ipv6_count.o' | |
[1]+ Running ./xdp_drop_ipv6_count_user /var/run/netns/orbpf1 veth1 & | |
Error, Set xdp fd on 2 failed | |
[1]+ Exit 89 ./xdp_drop_ipv6_count_user /var/run/netns/orbpf1 veth1 | |
task4_xdp-custom-ipv6-drop FAILED! | |
make: *** [Makefile:35: test] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment