linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] trace-cmd list: Include ftrace in event listings
@ 2021-05-06 16:51 Steven Rostedt
  2021-05-06 16:52 ` [PATCH v3 1/4] trace-cmd list: Add --full to show print fmt of an event Steven Rostedt
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Steven Rostedt @ 2021-05-06 16:51 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: Steven Rostedt (VMware)

From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

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;

Changes since v2:

 - Fixed cover letter subject and body, as v2 referenced listing of options?
   https://lore.kernel.org/linux-trace-devel/20210422211803.862397-1-rostedt@goodmis.org/

 - Broke up patch: https://lore.kernel.org/linux-trace-devel/20210422211803.862397-4-rostedt@goodmis.org/
   To separate out the adding of the helper function "match_system_events()"
   from the functional change of listing ftrace events.

 - The diff of this patch set compared to v2 is the same (no functional changes).


Steven Rostedt (VMware) (4):
  trace-cmd list: Add --full to show print fmt of an event
  trace-cmd list: Use tracefs to help find events for -e
  trace-cmd list: Add match_system_events() helper function
  trace-cmd list: Add ftrace events to listing of events

 Documentation/trace-cmd/trace-cmd-list.1.txt |   5 +-
 tracecmd/trace-list.c                        | 179 +++++++++++++++++--
 tracecmd/trace-usage.c                       |   1 +
 3 files changed, 168 insertions(+), 17 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-06 16:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-06 16:51 [PATCH v3 0/4] trace-cmd list: Include ftrace in event listings Steven Rostedt
2021-05-06 16:52 ` [PATCH v3 1/4] trace-cmd list: Add --full to show print fmt of an event Steven Rostedt
2021-05-06 16:52 ` [PATCH v3 2/4] trace-cmd list: Use tracefs to help find events for -e Steven Rostedt
2021-05-06 16:52 ` [PATCH v3 3/4] trace-cmd list: Add match_system_events() helper function Steven Rostedt
2021-05-06 16:52 ` [PATCH v3 4/4] trace-cmd list: Add ftrace events to listing of events Steven Rostedt

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).