Revision: 975 Author: teawater Date: Sun Mar 18 09:18:00 2012 Log: Add smp_apic_timer_interrupt for kernel code http://code.google.com/p/kgtp/source/detail?r=975 Modified: /branches/hotcode/hotcode.py ======================================= --- /branches/hotcode/hotcode.py Sun Mar 18 09:08:01 2012 +++ /branches/hotcode/hotcode.py Sun Mar 18 09:18:00 2012 @@ -443,6 +443,19 @@ tempfile.write("collect $no_self_trace\n") tempfile.write("collect $pc_ip0\n") tempfile.write("end\n") + tempfile.write("trace smp_apic_timer_interrupt\n") + tempfile.write("commands\n") + tempfile.write("teval $pc_ip0=(u64)regs->ip\n") + tempfile.write("teval $pc_cs0=(u64)regs->cs\n") + tempfile.write("end\n") + #Setup second tracepoint + tempfile.write("trace smp_apic_timer_interrupt\n") + cond_str = " (($pc_cs0 & 3) == 0)" + tempfile.write("condition $bpnum "+cond_str+ignore_str+"\n") + tempfile.write("commands\n") + tempfile.write("collect $no_self_trace\n") + tempfile.write("collect $pc_ip0\n") + tempfile.write("end\n") else: pid_str = "" for pid in task_list: