You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/docs/commands/kernel/kmem-trace.md

25 lines
1.2 KiB
Markdown

<!-- THIS PART OF THIS FILE IS AUTOGENERATED. DO NOT MODIFY IT. See scripts/generate-docs.sh -->
# kmem-trace
```text
usage: kmem-trace [-h] [-s] [-b] [-v] [-c COMMAND] [--all]
```
Tracing kernel memory (SLUB and buddy) allocations and frees.
Unless --all is specified, only the allocations triggered by the until the function returns will be printed.
This option may be helpful if you also want to trace frees scheduled with rcu or if the traced command steps out of the current function.
### Optional arguments
|Short|Long|Help|
| :--- | :--- | :--- |
|-h|--help|show this help message and exit|
|-s|--trace-slab|enable slab allocator tracing|
|-b|--trace-buddy|enable buddy allocator tracing|
|-v|--verbose|print backtraces|
|-c|--command|command to be traced (e.g. `n`, `nextret`) (default: 'n')|
||--all|display ALL memory allocations/frees regardless if they are triggered by the current function.|
<!-- END OF AUTOGENERATED PART. Do not modify this line or the line below, they mark the end of the auto-generated part of the file. If you want to extend the documentation in a way which cannot easily be done by adding to the command help description, write below the following line. -->
<!-- ------------\>8---- ----\>8---- ----\>8------------ -->