On 07/12/18 17:37, Laurent Vivier wrote: >> TIL about trace_event_get_state_backends(), I'll use it to clean other >> hexdump traces, thanks :) > I've copied that from gdbstub.c where there is an hexdump() function > using it. > > I'm going to send a v2 of this patch, because I think it is not needed > in this case to pass the function in the parameters.
I think it's better like this, you'd have to free the buffer in the caller and that's also ugly. Paolo