Re: [PATCH] [LSM] Rework LSM hooks

From: David Mosberger
Date: Wed Aug 11 2004 - 13:14:21 EST


>>>>> On Wed, 11 Aug 2004 08:25:10 -0700, Chris Wright <chrisw@xxxxxxxx> said:

>> An alternative solution might be to have a call_likely() macro,
>> where you could predict the most likely target of an indirect
>> call. Perhaps that could help other platforms as well.

Chris> Hmm, the pointers are generally quite static, set once near
Chris> boot time typically, and that's it. Seems like a plausible
Chris> win. Do you have an example of what call_likely() would look
Chris> like?

The macro I had in mind works only for static (compile-time)
predictions, I'm afraid.

--david
-
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/