Revision 03727e6a docs/tracing.txt

b/docs/tracing.txt
12 12
    ./configure --trace-backend=simple
13 13
    make
14 14

  
15
2. Run the virtual machine to produce a trace file:
15
2. Create a file with the events you want to trace:
16 16

  
17
    qemu ... # your normal QEMU invocation
17
   echo bdrv_aio_readv   > /tmp/events
18
   echo bdrv_aio_writev >> /tmp/events
18 19

  
19
3. Pretty-print the binary trace file:
20
3. Run the virtual machine to produce a trace file:
21

  
22
    qemu -trace events=/tmp/events ... # your normal QEMU invocation
23

  
24
4. Pretty-print the binary trace file:
20 25

  
21 26
    ./simpletrace.py trace-events trace-*
22 27

  

Also available in: Unified diff