Re: likely unlikely annotation (spinlock status)
From: Steven Rostedt
Date: Fri Jan 07 2011 - 10:38:38 EST
On Fri, 2011-01-07 at 15:57 +0530, manikanta wrote:
> Hi Rostedt,
> Likely and unlikely annotation branch summary is showing
> status for spinlocks(below is the result of enabling
> Is it right(eventhough at line no 6753 i can see spin_unlock(lock))???
Your spin_unlock is probably a macro which contains an "if (likely())"
in it. If this is the case then it would definitely show a location of
the spin lock, because that spinlock is nothing more than an if
statement to gcc.
> 0 19 100 __cond_resched_lock sched.c
> 0 0 X dsp_event audio_xwb.c
> I am seeing the same results for my drivers also i.e. where we have
> used spinlocks.
> It is showing the spinlocks results.At line number 355 there is a
> spinlock call in file
> Is it right to show spinlock status instead of likely and unlikely
Yes, if the spinlocks are macros with likely/unlikely annotations.
> Setup:Android + mach-msm
Unfortunately, I don't have this setup to look at it.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/