corrected: tapset/script information template
William Cohen
wcohen@redhat.com
Wed May 4 14:52:00 GMT 2005
Ananth N Mavinakayanahalli wrote:
> William Cohen wrote:
>
> ...
>
>>
>> Ananth,
>>
>> Could you talk with the ppc linux guru about using the branch trap
>> that is provided in ppc's MSR? See how well/poorly the branch traps
>> are supported?
>
>
> Will,
>
> I can now confirm that MSR[BE] is the way to go for ppc. However, with
> MSR[BE], we trap on every branch irrespective of whether the branch was
> taken or not. And there may be a few corner cases we'll have to take
> care of. Will investigate further.
>
> Thanks,
> Ananth
>
Yes, that is the same case for the x86/x86-64. All taken branches are
trapped, so the trap handler needs to look at the instruction to
determine whether it is a call, ret, or regular branch.
What does the ppc MSR[BE] do with the branch instructions used for
implementing the atomic operations? Want to make sure that the atomic
operations work correctly.
-Will
More information about the Systemtap
mailing list