On Fri, 2012-06-15 at 22:19 +0000, Luck, Tony wrote:
Binary makes sense too - but I'll stick with my comment that a different kernel must be able to do the decode. Or we need to spell out clearly that you must have the same, or compatible kernel booted to make any sense of the saved ftrace record.
I 100% agree here. I haven't looked at how the data gets stored, but it should definitely be consistent across kernels.
Maybe store metadata in the persistent storage that explains how to parse the binary data? Similar to /debug/tracing/events/ftrace/function/format is done.
-- Steve