trace-cmd list: Use tracefs to help find events for -e

When the user specifies -e and wants to search for events, use the tracefs
helper functions tracefs_event_systems() and tracefs_system_events() to
find the matching events.

Link: https://lore.kernel.org/linux-trace-devel/20210506165203.3889058-3-rostedt@goodmis.org

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 file changed