kernel-shark: sched_events plugin init with sched_switch events only

The sched_events plugin should not be totally disabled when the
wakeup events are missing. The initialization of the plugin must
fail only if the trace.dat file contains no sched_switch events.

Link: http://lore.kernel.org/linux-trace-devel/20190305143924.11056-4-ykaradzhov@vmware.com

Reported-by: Phil Auld <pauld@redhat.com>
Reviewed-by: Slavomir Kaslev <kaslevs@vmware.com>
Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 file changed