Stefan Hajnoczi <stefanha@xxxxxxxxxx> writes: > On Thu, Oct 14, 2021 at 06:22:32PM +0300, Vladimir Sementsov-Ogievskiy wrote: >> 12.10.2021 14:49, Markus Armbruster wrote: >> > Vladimir Sementsov-Ogievskiy <vsementsov@xxxxxxxxxxxxx> writes: [...] >> Another possible way is to update QAPI code generator to insert a personal >> trace point for each qmp command.. That seems more complicated to implement, >> but I can try. > > That's what came to mind when I saw this series too. The QAPI generator > can create a trace event for each QMP command. That way each command has > a dedicated trace event that can be enabled/disabled in the usual way > (e.g. built-in "trace" monitor command, SystemTap scripts, etc) without > introducing special syntax. I like how this way stays entirely within the existing interface. I couldn't tell you how to implement it, though :)