Skip to content

trace-cruncher: ftrace uprobes support

Tzvetomir Stoyanov (VMware) linux-trace-devel 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v3 RFC posting 2/24 patches 0 repliesSuperseded
  3. v3 RFC posting 1/23 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 RFC posting 2/24 patches4 repliesSuperseded
v2 RFC posting 1/23 patches2 repliesSuperseded
v1 RFC4 patches4 repliesSuperseded

Changes in v4 from the cover letter

- Removed accepted patches from the patch set.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3trace-cruncher: ftrace uprobe raw APIsrc/ftracepy-utils.c src/ftracepy-utils.h src/ftracepy.c+62 -00 replies
2/3trace-cruncher: High level wrappers for ftrace uprobessetup.py src/ftracepy-utils.c src/ftracepy-utils.h +1 more+752 -20 replies
3/3trace-cruncher: Example script for uprobes high level APIexamples/user_trace.py+39 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

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