[PATCH 4/4] Use generic ARM instruction set condition code checks for kprobes.
Leif Lindholm
leif.lindholm at arm.com
Fri Dec 9 12:48:42 EST 2011
On 12/09/11 16:40, Will Deacon wrote:
> Hmm, I still don't see why you should change the linkage. Make it
> static inline if you really want the inline, but that seems weird
> outside of a header file stub.
OK
>>> Maybe it's best just to change all of the callers to call
>>> arm_check_condition directly, like you have done below for the ARM case. For
>>> the Thumb cases will it work if you make sure that you put the condition
>>> code in the top bits?
>>
>> Yes, that is functionally equivalent, and what I did in the RFC version,
>> but it ended up looking messy at the calling point.
>
> Ok, then could you route the ARM variant through the wrapper too?
I would have preferred the opposite, but that would seem to require more
invasive changes to the Thumb handling code (at least for the
'kprobe_test_flags & TEST_FLAG_NO_ITBLOCK' case). Will do.
/
Leif
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
More information about the linux-arm-kernel
mailing list