+ trace_itimer_start(ITIMER_VIRTUAL, value) Set_process_cpu_timer(tsk, CPUCLOCK_VIRT, + trace_itimer_start(ITIMER_REAL, value) Hrtimer_start(timer, expires, HRTIMER_MODE_REL) Kill_pid_info(SIGALRM, SEND_SIG_PRIV, sig->leader_pid) + trace_itimer_expire(ITIMER_REAL, pid_task(sig->leader_pid, PIDTYPE_PID)) #include -123,6 +124,7 enum hrtimer_restart it_real_fn(struct hrtimer *timer)Ĭontainer_of(timer, struct signal_struct, real_timer) * This part must be outside protection */ĭiff -git a/kernel/itimer.c b/kernel/itimer.c + TP_printk("task=%s which=%d", _get_str(comm), _entry->which) + TP_PROTO(int which, struct task_struct *task), + _entry->which, _entry->it_value, _entry->it_interval) + TP_printk("task=%s which=%d it_value=%llu it_interval=%llu", _get_str(comm), + timeval_to_cputime(&value->it_interval)) + ktime_to_ns(timeval_to_ktime(value->it_interval)) : + _entry->it_interval = (which = ITIMER_REAL ? + ktime_to_ns(timeval_to_ktime(value->it_value)) : + _entry->it_value = (which = ITIMER_REAL ? + _field( unsigned long long, it_interval ) + TP_PROTO(int which, struct itimerval *value), TP_printk("timer=%p func=%pf", _entry->timer, _entry->function) This patch can trace itimer start/expire/cancle event To: mingo +Cc: LKML, tglx, Zhaolei, kosaki.motohiro, Steven Rostedt, fweisbec 21:50 ` Thomas Gleixner 0 siblings, 2 replies 5+ messages in threadįrom: Xiao Guangrong 9:55 UTC ( / raw) Ftrace: add tracepoint for itimer LKML Archive on help / color / mirror / Atom feed * ftrace: add tracepoint for itimer 9:55 Xiao Guangrong
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |