tracing: Extract duplicate ftrace_raw_init_event_foo()