This is the mail archive of the systemtap@sources.redhat.com mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: corrected: tapset/script information template


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]