Re: [Question] Hooks for scheduler tracing (CFS)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Frank Ch. Eigler <fche@...>
Cc: Ankita Garg <ankita@...>, Arjan van de Ven <arjan@...>, <linux@...>, LKML <linux-kernel@...>, RT-Users <linux-rt-users@...>, Ingo Molnar <mingo@...>
Date: Thursday, July 26, 2007 - 2:25 pm

* Frank Ch. Eigler (fche@redhat.com) wrote:

Yes, you have them to move them too:

linux/spinlock.h:
#ifdef CONFIG_PREEMPT_RT
# define _spin_lock(l)                  rt_spin_lock(l)
# define _spin_lock_nested(l, s)        rt_spin_lock_nested(l, s)
# define _spin_lock_bh(l)               rt_spin_lock(l)
# define _spin_lock_irq(l)              rt_spin_lock(l)
# define _spin_unlock(l)                rt_spin_unlock(l)
# define _spin_unlock_no_resched(l)     rt_spin_unlock(l)
# define _spin_unlock_bh(l)             rt_spin_unlock(l)
# define _spin_unlock_irq(l)            rt_spin_unlock(l)
# define _spin_unlock_irqrestore(l, f)  rt_spin_unlock(l)
..

And below, both spin_lock and spin_lock_irqsave use PICK_OP to turn into
their _spin_lock_* equivalent, which are both mapped to rt_spin_lock in
-rt.

Mathieu

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Question] Hooks for scheduler tracing (CFS), Remy Bohmer, (Mon Jul 16, 3:46 pm)
Re: [Question] Hooks for scheduler tracing (CFS), Sébastien Dugué, (Tue Jul 17, 3:23 am)
LTTng for 2.6.22.1-rt4, Mathieu Desnoyers, (Mon Jul 16, 7:03 pm)
Re: [Question] Hooks for scheduler tracing (CFS), Mathieu Desnoyers, (Mon Jul 16, 4:07 pm)
Re: [Question] Hooks for scheduler tracing (CFS), Arjan van de Ven, (Mon Jul 16, 3:52 pm)
Re: [Question] Hooks for scheduler tracing (CFS), Remy Bohmer, (Mon Jul 16, 4:17 pm)
Re: [Question] Hooks for scheduler tracing (CFS), Ingo Molnar, (Mon Jul 16, 5:12 pm)
Re: [Question] Hooks for scheduler tracing (CFS), Ankita Garg, (Thu Jul 26, 3:28 am)
Re: [Question] Hooks for scheduler tracing (CFS), Mathieu Desnoyers, (Thu Jul 26, 9:31 am)
Re: [Question] Hooks for scheduler tracing (CFS), Frank Ch. Eigler, (Thu Jul 26, 10:47 am)
Re: [Question] Hooks for scheduler tracing (CFS), Arnaldo Carvalho de Melo, (Thu Jul 26, 11:17 am)
Re: [Question] Hooks for scheduler tracing (CFS), Mathieu Desnoyers, (Thu Jul 26, 11:02 am)
Re: [Question] Hooks for scheduler tracing (CFS), Frank Ch. Eigler, (Thu Jul 26, 12:22 pm)
Re: [Question] Hooks for scheduler tracing (CFS), Mathieu Desnoyers, (Thu Jul 26, 2:25 pm)
Re: [Question] Hooks for scheduler tracing (CFS), Ankita Garg, (Thu Jul 26, 12:32 pm)
Re: [Question] Hooks for scheduler tracing (CFS), Ingo Molnar, (Thu Jul 26, 3:35 am)
Re: [Question] Hooks for scheduler tracing (CFS), Ankita Garg, (Thu Jul 26, 3:49 am)
Re: [Question] Hooks for scheduler tracing (CFS), Ingo Molnar, (Thu Jul 26, 3:53 am)
Re: [Question] Hooks for scheduler tracing (CFS), Ankita Garg, (Thu Jul 26, 5:59 am)
Re: [Question] Hooks for scheduler tracing (CFS), Ingo Molnar, (Thu Jul 26, 7:05 am)
Re: [Question] Hooks for scheduler tracing (CFS), Ankita Garg, (Thu Jul 26, 9:20 am)
Re: [Question] Hooks for scheduler tracing (CFS), Mathieu Desnoyers, (Thu Jul 26, 9:06 am)
Re: [Question] Hooks for scheduler tracing (CFS), David J. Wilder, (Thu Jul 26, 1:45 pm)
Re: [Question] Hooks for scheduler tracing (CFS), Mathieu Desnoyers, (Thu Jul 26, 2:30 pm)