From: "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@gmail.com>
To: linux-trace-devel@vger.kernel.org
Subject: [PATCH v4 0/3] trace-cruncher: ftrace uprobes support
Date: Tue, 28 Jun 2022 15:16:18 +0300 [thread overview]
Message-ID: <20220628121621.572506-1-tz.stoyanov@gmail.com> (raw)
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
--
2.35.3
next reply other threads:[~2022-06-28 12:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-28 12:16 Tzvetomir Stoyanov (VMware) [this message]
2022-06-28 12:16 ` [PATCH v4 1/3] trace-cruncher: ftrace uprobe raw API Tzvetomir Stoyanov (VMware)
2022-06-28 12:16 ` [PATCH v4 2/3] trace-cruncher: High level wrappers for ftrace uprobes Tzvetomir Stoyanov (VMware)
2022-06-28 12:16 ` [PATCH v4 3/3] trace-cruncher: Example script for uprobes high level API Tzvetomir Stoyanov (VMware)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220628121621.572506-1-tz.stoyanov@gmail.com \
--to=tz.stoyanov@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).