utility for capturing ftrace events