• S
    trace: add pid field to simpletrace record · 26896cbf
    Stefan Hajnoczi 提交于
    It is useful to know the QEMU process ID when working with traces from
    multiple VMs.  Although the trace filename may contain the pid, tools
    that aggregate traces or even trace globally need somewhere to record
    the pid.
    
    There is a reserved field in the trace event header struct that we can
    use.
    
    It is not necessary to bump the simpletrace file format version number
    because it has already been incremented for the QEMU 2.1 release cycle
    in commit "trace: [simple] Bump up log version number".
    Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
    26896cbf
simple.c 12.2 KB