-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFE] Inspect a gadget in details #3387
Comments
This issue has been automatically marked as stale because it has not had recent activity. |
This issue has been automatically closed due to inactivity. |
Hello, |
Hi, Thanks for your interest! There is no mandatory pre-tests or pre-requisite contributions, but we'll be looking to evaluate the candidates in the relevant skills for the project (Go, ebpf, wasm). So links to relevant github issues or PRs are welcome in your application (on the LFX platform, not here). It can be other projects than Inspektor Gadget. If you want to contribute something to Inspektor Gadget now, it is better to pick up a task that is not directly related to the mentorship project (for ideas, search for the good first issue label). While the application review period is still ongoing (until Tuesday, February 25, 2025), we'll refrain from reviewing PRs directly related to the mentorship project. But we can discuss the goal of the project. Further ideas, in addition to what is listed in this issue:
|
inspektor-gadget#3387 expect for wasmapi and bytecode
https://mentorship.lfx.linuxfoundation.org/project/a6d66c40-3d12-4fa4-88bf-18574f6b4ec0
Current situation
A gadget can be inspected with the
ig image inspect
command (implemented in #3382). But it does not give all possible details.See #3382 (review)
Impact
When gadget developers are trying to debug their gadgets, they cannot easily inspect the different layers, decompile, list the ebpf programs and ebpf maps etc.
Ideal future situation
It should be possible to get the following information from a gadget:
gadgetAPIVersion
does it use?Implementation options
Additionally, it would be nice to have an implementation both in
ig
and in a wasm module to be reusable on websites. For the second case, this probably means we can't use the cilium/ebpf package.Additional information
I gave it a try with wasm and came up with the following website:
https://github.com/alban/bpfanalyser
https://alban.github.io/bpfanalyser/
Useful changes in cilium/ebpf: cilium/ebpf#1552
The text was updated successfully, but these errors were encountered: