• P
    trace: Specify trace file name · 9410b56c
    Prerna Saxena 提交于
    Allow users to specify a file for trace-outputs at configuration.
    Also, allow trace files to be annotated by <pid> so each qemu instance has
    unique traces.
    
    The trace file name can be passed as a config option:
    --trace-file=/path/to/file
    (Default: trace )
    At runtime, the pid of the qemu process is appended to the filename so
    that mutiple qemu instances do not have overlapping logs.
    
    Eg : trace-1234 for qemu launched with pid 1234.
    
    I have yet to test this on windows. getpid() is used at many places
    in code(including vnc.c), so I'm hoping this would be okay too.
    Edited-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    9410b56c
simpletrace.c 5.0 KB