Ftrace uprobes can be used to create dynamic events for user functions. Tracing user function can be very useful functionality for trace-cruncher. The patch set depends on these libftrace changes, not yet accepted: https://lore.kernel.org/linux-trace-devel/20220328090347.107849-1-tz.stoyanov@xxxxxxxxx/ Tzvetomir Stoyanov (VMware) (4): trace-cruncher: Logic for resolving address to function name 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 | 41 ++ setup.py | 4 +- src/ftracepy-utils.c | 48 ++ src/ftracepy-utils.h | 21 + src/ftracepy.c | 45 ++ src/trace-obj-debug.c | 978 +++++++++++++++++++++++++++++++++++++++++ src/trace-obj-debug.h | 53 +++ src/utrace-utils.c | 509 +++++++++++++++++++++ 8 files changed, 1697 insertions(+), 2 deletions(-) create mode 100755 examples/user_trace.py create mode 100644 src/trace-obj-debug.c create mode 100644 src/trace-obj-debug.h create mode 100644 src/utrace-utils.c -- 2.35.1