kernel-shark: Consolidate duplicate code of the sched_wakeup events

The logic used for sched_wakeup and sched_wakeup_new events are basically
the same. Create helper functions to be called to do the duplicate code with
just passing in the parameters that are unique to the events.

Link: http://lore.kernel.org/linux-trace-devel/20190211012153.982548008@goodmis.org

Reviewed-by: Yordan Karadzhov <ykaradzhov@vmware.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 file changed