Comments (4)
@qmonnet It would be a great UX improvement if it just shows an error that this operation is not supported for now instead of showing an empty map
from bpftool.
You mean if trying bpftool map event_pipe id N
with map of id N
being a BPF ring buffer? I haven't tried it, but I would expect bpftool to display an error, given that we have the following in map_perf_ring.c
:
if (map_info.type != BPF_MAP_TYPE_PERF_EVENT_ARRAY) {
p_err("map is not a perf event array");
goto err_close_map;
}
Or can you provide more details on what you've tried and observed?
from bpftool.
@qmonnet I wasn't aware of event_pipe
. I was directly trying to dump data using bpftool map dump id N
(N
being the BPF ring buffer)
from bpftool.
OK I see, yes it would make sense to avoid displaying something empty in that case.
from bpftool.
Related Issues (20)
- `mount_bpffs_for_pin()`: if passing a directory, mount bpffs on this dir, not on parent dir HOT 22
- Print error and exit instead of diplaying an empty map for unsupported map types
- Fix weird indent in documentation HOT 1
- streamline bpftool net dump HOT 1
- "make install" for man pages stops. HOT 1
- Wrong callq address displayed HOT 5
- Error: No JIT disassembly support HOT 2
- Make error formatting consistent in libbpf and bpftool
- Skeletons: Improve support for 32-bit architectures
- Skeletons: Support cross-compiling towards architectures with different endianness HOT 1
- Add line annotations for control flow graph
- Zsh completion for bpftool
- can't mount BPF file system to pin the object HOT 2
- bpftool v6.7.0 load xdp program on Ubuntu 16.04 kernel 4.15.0-99-generic HOT 23
- Problem with Compilation of bpftool HOT 4
- Improve info for some link types in `bpftool link list`
- Update bpftool-cgroup documentation w.r.t. attach types HOT 1
- Fix LLVM detection in kernel repository HOT 1
- Support probing for kfuncs availability HOT 7
- “Fallthrough”: Replace comment by dedicated attribute HOT 1
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 bpftool.