trace-cmd list: Include ftrace in event listings
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | trace-cmd list: Use tracefs to help find events for -elib/ tracecmd/ | +135 | 2 replies | |
| 2/2 | trace-cmd list: Add ftrace events to listing of eventstracecmd/ | +33 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] trace-cmd list: Include ftrace in event listings
From: "Steven Rostedt (VMware)" <[email protected]>
I'm constantly needing to look at the event formats of ftrace events (like the function event or print event), but trace-cmd list does not include them, as they can not be enabled by trace-cmd record/start.
By default, trace-cmd list -e, wont show ftrace events, but if a regex is added to the search: trace-cmd list -e print, then it will now list those events in ftrace. This is useful for:
# trace-cmd list -e ftrace:function -F
system: ftrace
name: function
ID: 1
format:
field:unsigned short common_type; offset:0; size:2; signed:0;
field:unsigned char common_flags; offset:2; size:1; signed:0;
field:unsigned char common_preempt_count; offset:3; size:1; signed:0;
field:int common_pid; offset:4; size:4; signed:1; field:unsigned long ip; offset:8; size:8; signed:0;
field:unsigned long parent_ip; offset:16; size:8; signed:0;Steven Rostedt (VMware) (2):
trace-cmd list: Use tracefs to help find events for -e trace-cmd list: Add ftrace events to listing of events
lib/trace-cmd/trace-input.c | 6 +- tracecmd/trace-list.c | 150 ++++++++++++++++++++++++++++++++++-- 2 files changed, 149 insertions(+), 7 deletions(-)
Signature · 1 line
2.29.2