libtracefs: Fix tracefs_iterate_raw_events() to handle NULL callback

Now that tracefs_follow_event() and tracefs_follow_missed_events() exists,
it is no longer necessary to pass in a callback to
tracefs_iterate_raw_events(). Do not fail that function if callback is
NULL and there exists followers.

Link: https://lore.kernel.org/linux-trace-devel/20221116115720.6badba48@gandalf.local.home

Fixes: 8da05d9697ab ("libtracefs: Add tracefs_follow_event() API")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 file changed