]> git.proxmox.com Git - mirror_qemu.git/commit - trace/simple.c
trace: add pid field to simpletrace record
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 7 May 2014 17:24:10 +0000 (19:24 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 9 Jun 2014 13:43:40 +0000 (15:43 +0200)
commit26896cbf353e3017f76da8193074839b6e875250
tree2f462cef1a20755947c3d39b9e0e2de035cc9db9
parent959e41473f2179850578482052fb73b913bc4e42
trace: add pid field to simpletrace record

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: Stefan Hajnoczi <stefanha@redhat.com>
trace/simple.c