xentrace 사용법
1. xentrace
- Xentrace is used to capture trace buffer data from xen
2. Usage
- xentrace [OPTIONS] [FILE]
- xentrace -D -e all -S 256 -T 30 {filename}
- 예: xentrace -D -e all -S 256 -T 1 trace.raw
3. output (binary format)
- CPU(uint) TSC(u64) EVENT(u32) D1 D2 D3 D4 D5 (all u32)
- CPU is the processor number,
- TSC is the record's timestamp (the value of the CPU cycle counter)
- EVENT is the event ID
- D1 through D5 are the trace data.
3. text file format 변경
- 예: cat trace.raw | xentrace_format ./formats > trace.txt
- formats 파일?
- A sample format file for Xen's predefined trace events is available in xen source
- xen source/tools/xentrace/formats
4. trace 예
CPU0 931534214445874 (+ 1844) hypercall [ eip = 0xc1002227, eax = 0x00000011 ]
CPU0 931534214449368 (+ 3494) hypercall [ eip = 0xc1002227, eax = 0x00000011 ]
CPU0 931534214452582 (+ 3214) hypercall [ eip = 0xc10023a7, eax = 0x0000001d ]
CPU0 931534214453252 (+ 670) do_block [ domid = 0x00000000, edomid = 0x00000005 ]
CPU0 931534214456210 (+ 2958) switch_infprev [ old_domid = 0x00000000, runtime = 16692 ]
CPU0 931534214456696 (+ 486) switch_infnext [ new_domid = 0x00007fff, time = 16692, r_time = 4294967295 ]
CPU0 931534214457162 (+ 466) __enter_scheduler [ prev<domid:edomid> = 0x00000000 : 0x00000005, next<domid:edomid> = 0x00007fff : 0x00000000 ]
CPU0 931534214457682 (+ 520) running_to_blocked [ dom:vcpu = 0x00000005 ]
CPU0 931534214458200 (+ 518) runnable_to_running [ dom:vcpu = 0x7fff0000 ]
CPU0 931534227964190 (+13505990) blocked_to_runnable [ dom:vcpu = 0x00000005 ]
CPU0 931534214449368 (+ 3494) hypercall [ eip = 0xc1002227, eax = 0x00000011 ]
CPU0 931534214452582 (+ 3214) hypercall [ eip = 0xc10023a7, eax = 0x0000001d ]
CPU0 931534214453252 (+ 670) do_block [ domid = 0x00000000, edomid = 0x00000005 ]
CPU0 931534214456210 (+ 2958) switch_infprev [ old_domid = 0x00000000, runtime = 16692 ]
CPU0 931534214456696 (+ 486) switch_infnext [ new_domid = 0x00007fff, time = 16692, r_time = 4294967295 ]
CPU0 931534214457162 (+ 466) __enter_scheduler [ prev<domid:edomid> = 0x00000000 : 0x00000005, next<domid:edomid> = 0x00007fff : 0x00000000 ]
CPU0 931534214457682 (+ 520) running_to_blocked [ dom:vcpu = 0x00000005 ]
CPU0 931534214458200 (+ 518) runnable_to_running [ dom:vcpu = 0x7fff0000 ]
CPU0 931534227964190 (+13505990) blocked_to_runnable [ dom:vcpu = 0x00000005 ]
댓글
댓글 쓰기