GithubHelp home page GithubHelp logo

Comments (4)

tohojo avatar tohojo commented on June 8, 2024 1

from xdp-tools.

tohojo avatar tohojo commented on June 8, 2024

from xdp-tools.

c-sh0 avatar c-sh0 commented on June 8, 2024

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.

tohojo avatar tohojo commented on June 8, 2024

Closing this issue - please reopen if you're still experiencing problems.

from xdp-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.