Comments (6)
Maybe @olsajiri or @acmel can help us with the C-code API for flushing/emptying the perf-ring buffer on exit?
from xdp-tools.
from xdp-tools.
@acmel thanks for adding the above, I did not notice it until I sort of solved it for my implementation.
xdpdump is using libbpf's perf_buffer__xxx() APIs for doing this, which does not use the libperf. To keep using this API I'll will sent a patch upstream to just flush/process the buffers without waiting for a poll wake up.
from xdp-tools.
from quick look I did not see ring buffer 'flush' interface in libbpf perf buffer API,
you might need to add it.. or switch to libperf ;-)
from xdp-tools.
from quick look I did not see ring buffer 'flush' interface in libbpf perf buffer API,
you might need to add it.. or switch to libperf ;-)
Just did https://lore.kernel.org/bpf/159048487929.89441.7465713173442594608.stgit@ebuild/T/#u
maybe we can switch later...
from xdp-tools.
Let's have this depend on #42 for backwards compatibility
from xdp-tools.
Related Issues (20)
- Ubuntu 22.04 HOT 2
- xdp-filter: support allow/drop of icmp
- does libxdp support bpf tail call another xdp program? HOT 2
- xdp-loader load xdp program with bpf tail call result in Bad file descriptor(-9) HOT 14
- libbpf: prog 'tp_xdp_redirect_err': on hyper-V linux-azure HOT 1
- BPF kfuncs and vmlinux.h HOT 2
- llc: error: llc: xdp-dispatcher.ll:10:40: error: expected type HOT 3
- xsk_umem__create() return -22 HOT 9
- Stack smashing detected HOT 3
- Unable to Compile xdp-tools "libbpf: failed to find BTF for extern 'llvm.bpf.passthrough.p0i32.p0i32': -2" HOT 3
- How to attach same XDP program to multiple interfaces HOT 2
- xsk_socket__create returns succeed, but need to wait extra about 30 seconds to send packages HOT 2
- Compilation error with GCC 14 HOT 3
- Build Error On Ubuntu 20.04.6, Kernel : 5.15.0-91-generic
- xdp-bench compilation error HOT 3
- May I ask why "can't found xdp-loader" is displayed?
- May I ask why "can't found xdp-loader" is displayed? HOT 1
- Compilation Error: libbpf: map 'rx_cnt': unexpected def kind var. HOT 6
- How to uninstall xdp-tools after installing it HOT 2
- Support configurable MAC address rewrite in xdp-bench redirect
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.