Comments (4)
from xdp-tools.
from xdp-tools.
prog0() func#1... btf_vmlinux is malformed
Hmm, this looks like the kernel was compiled without BTF information?
Kernel config
grep 'BTF' /boot/config-5.10.2-1.el8.elrepo.x86_64
# CONFIG_DEBUG_INFO_BTF is not set
Arg#0 type PTR in prog0() is not supported yet.
Not sure what that would lead to this error, though...
I must have missed something when i first compiled from source, doing a clean re-compile of xdp-loader here is what i get,
xdp-loader]# ls
Makefile README.org tests xdp-dispatcher.o xdp-loader xdp-loader.c
xdp-loader]# ./xdp-loader load -vv --mode skb lo ../../xdp-tutorial/basic01-xdp-pass/xdp_pass_kern.o
[.. snip ..]
libxdp: DATASEC '.xdp_run_config' not found.
libxdp: Verified XDP dispatcher version 1 <= 1
libxdp: Loading multiprog dispatcher for 1 programs
libbpf: map 'xdp_disp.rodata': created successfully, fd=5
libbpf: added 60 insn from .text to prog xdp/dispatcher
libbpf: load bpf program failed: Invalid argument
libbpf: -- BEGIN DUMP LOG ---
libbpf:
Validating prog0() func#1...
btf_vmlinux is malformed
Arg#0 type PTR in prog0() is not supported yet.
processed 0 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/dispatcher'
libbpf: failed to load object './xdp-dispatcher.o'
libxdp: Got verifier error while loading dispatcher.
libxdp: Falling back to loading single prog without dispatcher
libxdp: Loaded XDP program xdp_prog_simple, got fd 5
libxdp: Replacing XDP fd -1 with 5 on ifindex 1
Despite the above errors it's loading the example programs
xdp-loader]# ./xdp-loader status
CURRENT XDP PROGRAM STATUS:
Interface Prio Program name Mode ID Tag Chain actions
-------------------------------------------------------------------------------------
lo xdp_prog_simple skb 169 3b185187f1855c4c
I'm guessing the commit for xdp_program__attach_single()
just hasn't made into the upstream package yet?
from xdp-tools.
Closing this issue - please reopen if you're still experiencing problems.
from xdp-tools.
Related Issues (20)
- Support configurable MAC address rewrite in xdp-bench redirect
- Loading of XDP program fails with `prog 'xdp_prog1': missing BPF prog type, check ELF section name 'xdp-prog1'` HOT 1
- xdp-trafficgen not transmitting packets - ndo_xdp_xmit resulting in error -6 on virtio net HOT 9
- how to compile xdp-loader in mips arch? HOT 6
- How can I cross compile for android using ndk? HOT 1
- is a formula error in comment of xsk_prod_nb_free HOT 1
- error: llc: xdp-dispatcher.ll:410:54: error: unterminated attribute group HOT 2
- xdpdump ERROR: The kernel does not support fentry function load HOT 1
- Makefile does not install libbpf libraries into local machine. HOT 8
- s
- How to use headroom in UMEM frame? HOT 2
- Side effect of xdp_program__attach with XDP_MODE_HW? HOT 2
- test_promiscuous_selfload and test_promiscuous_preload fail in Debian testing/unstable in QEMU HOT 3
- Does the release package not include binaries? HOT 2
- xdp-loader fall back to SKB mode automatically when native mode not supported? HOT 3
- xdp-loader seems unable to pin internal .data map? HOT 4
- Why system installed libbpf is prioritized? HOT 1
- xdp-traffic generator not generating traffic to any interface HOT 3
- Stack smash when loading xdp program with ring buffer HOT 8
- xdp-trafficgen not generating traffic to another interface in skb mode HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdp-tools.