Re: [Question] Hooks for scheduler tracing (CFS)
From: Ingo Molnar <hidden>
Date: 2007-07-26 07:54:19
Also in:
lkml
From: Ingo Molnar <hidden>
Date: 2007-07-26 07:54:19
Also in:
lkml
* Ankita Garg [off-list ref] wrote:
quoted
I'd suggest to not put a probe into a preempt-off section - put it to the beginning and to the end of schedule() to capture context-switches. _stp_print_flush() is in the systemtap-generated module, right? Maybe the problem is resolved by changing that spinlock to use raw_spinlock_t / DEFINE_RAW_SPIN_LOCK.Yes, _stp_print_flush is in the systemtap-generated kprobe module. Placing the probe at the beginning of schedule() also has the same effect. Will try by changing the spinlock to raw_spinlock_t...
could you send us that module source ST generates? Perhaps there are preempt_disable() (or local_irq_disable()) calls in it too. Ingo