On Sun, Jan 5, 2025 at 4:44 AM Yafang Shao <laoar.shao@xxxxxxxxx> wrote: > > Dynamic tracepoints can be created using debugfs. For example: > > echo 'p:myprobe kernel_clone args' >> /sys/kernel/debug/tracing/kprobe_events > > This command creates a new tracepoint under debugfs: > > $ ls /sys/kernel/debug/tracing/events/kprobes/myprobe/ > enable filter format hist id trigger > > Although this dynamic tracepoint appears as a tracepoint, it is internally > implemented as a kprobe. However, it must be attached as a tracepoint to > function correctly in certain contexts. Nack. There are multiple mechanisms to create kprobe/tp via text interfaces. We're not going to mix them with the programmatic libbpf api.