On 19/12/18 22:30, Paolo Bonzini wrote: > 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.
Nevermind, I diffed v1 and v2 and I see what I mean. I queued v2. Paolo