trace-cruncher: ftrace uprobes support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest3 patches 0 repliesNew
- v3 RFC posting 2/24 patches 0 repliesSuperseded
- v3 RFC posting 1/23 patches 0 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 RFC posting 2/2 | 4 patches | 4 replies | Superseded | |
| v2 RFC posting 1/2 | 3 patches | 2 replies | Superseded | |
| v1 RFC | 4 patches | 4 replies | Superseded |
Changes in v4 from the cover letter
- Removed accepted patches from the patch set.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | trace-cruncher: ftrace uprobe raw APIsrc/ src/ src/ | +62 | 0 replies | |
| 2/3 | trace-cruncher: High level wrappers for ftrace uprobessetup.py src/ src/ +1 more | +752 | 0 replies | |
| 3/3 | trace-cruncher: Example script for uprobes high level APIexamples/ | +39 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH v4 0/3] trace-cruncher: ftrace uprobes support
Ftrace uprobes can be used to create dynamic events for user functions. Tracing user function can be very useful functionality for trace-cruncher.
Known issues, that will be addressed with subsequent patch sets, before the next trace-cruncher release:
- Improve the logic for ctrl-c handling and interrupting the trace.
- Improve the logic for monitoring target PIDs - stop the trace when target process exits.
- Implement unit tests.
v4 changes:
- Removed accepted patches from the patch set.
v3 changes:
- Implemented logic for finding the full application name in the C code.
- Renamed a few internal functions and variable with more specific names.
- Coding style fixes.
v2 changes:
- Moved the uprobe C code into the ftrace-utils.c file.
- Reused internal functions from ftrace-util code.
- Renamed utrace start and stop to enable and disable, to be consistent with the other APIs.
- Do not call utrace disable in the urtace example, as this logic is triggered by the destructor.
- Changed the logic for allocation of internal dynamic array - double the array size on each reallocation, instead of increasing the size with hard-coded constant.
- Added support for running a program with arguments for tracing.
- Do not run the program for tracing in a separate shell.
- Coding style fixes and optimizations.
Tzvetomir Stoyanov (VMware) (3):
trace-cruncher: ftrace uprobe raw API
trace-cruncher: High level wrappers for ftrace uprobes
trace-cruncher: Example script for uprobes high level API
examples/user_trace.py | 39 +++ setup.py | 4 +- src/ftracepy-utils.c | 746 +++++++++++++++++++++++++++++++++++++++++ src/ftracepy-utils.h | 21 ++ src/ftracepy.c | 45 +++ 5 files changed, 853 insertions(+), 2 deletions(-) create mode 100755 examples/user_trace.py
Signature · 1 line
2.35.3