diff options
| author | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-08-08 06:44:11 +0900 |
|---|---|---|
| committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-08-08 21:20:55 +0900 |
| commit | d093d4524bb12eda49c3654cb04ad4663c2471f8 (patch) | |
| tree | fd6c568a5c1786563568907cd06b5ee62df881f1 /scripts/stackusage | |
| parent | c13fcd3951dcc19524ce0b3e852844b16cd32b22 (diff) | |
| download | linux-d093d4524bb12eda49c3654cb04ad4663c2471f8.tar.gz linux-d093d4524bb12eda49c3654cb04ad4663c2471f8.zip | |
tracing/boot: Add support for eprobe, fprobe, and tprobe events
Boot-time tracing currently supports kprobe-events and synthetic-events
under per-event configuration options.
Extend boot-time tracing to support newly added dynamic probe types:
- event probes (eprobe) under the "eprobes" event group
- function probes (fprobe) under the "fprobes" event group
- tracepoint probes (tprobe) under the "tracepoints" or "tprobes"
event group
To support this cleanly, update dyn_event_create() in trace_dynevent.c
so that passing NULL as the type parameter delegates to
create_dyn_event(), allowing generic creation of any registered
dynamic event type from a raw command string.
Update Documentation/trace/boottime-trace.rst accordingly to describe
the new per-event bootconfig options.
Link: https://lore.kernel.org/all/178613905149.259829.18185480460810689421.stgit@devnote2/
Assisted-by: Antigravity:gemini-3.6-flash
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Changes in v3:
- Check return values of strscpy() and snprintf() in trace_boot_add_probe_event()
to prevent silent buffer truncation when constructing probe event strings.
Changes in v2:
- Fix raw command detection logic for eprobes, fprobes, and tprobes
by requiring ':' or isspace() after type prefix.
- Consolidate duplicate loop logic into trace_boot_add_probe_event()
helper function.
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
