Skip to content
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

dist/tools: provide tool to parse pktbuf output #13221

Merged
merged 1 commit into from
Jun 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions dist/tools/pktbuf-stats/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
`pktbuf` parser
===============

This parses the output of the command `pktbuf` provided by the module
`gnrc_pktbuf_cmd` for the `gnrc_pktbuf_static` implementation.

The command expects the ELF file of the binary the `pktbuf` command was executed
in to get some binary information on structs potentially stored in the packet
buffer.

A packet buffer dump can also be provided as a file. If not provided, it is read
from STDIN.

```sh
./pktbuf-stats.py <ELF file> [<pktbuf-dump>]
```

Requires GDB to be installed
Loading