This is the mail archive of the systemtap@sourceware.org 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: Systemtap's DTRACE_PROBE and clang


You also need % for the other section in sys/sdt.h, progbits, and then it works!

On Fri, Sep 20, 2013 at 4:02 PM, Josh Stone <jistone@redhat.com> wrote:
> On 09/20/2013 11:59 AM, Frank Ch. Eigler wrote:
>>
>> martin wrote:
>>
>>> [...]
>>> How onerous is it to change the code here? [...]
>>> Workaround for now, it does work if you change it to:
>>>   .pushsection .note.stapsdt,"?",@note
>>
>> I don't recall any deep discusson on that topic.  It could be
>> just to immunize it from being misinterpreted as a comment
>> (see the @-comment-on-arm line on the same AS doc page).
>
> Based on that, I'm experimenting with %note instead.  It's a little more
> complicated since that has to be escaped to %%note for C probes, but not
> escaped for probes in pure ASM source files.  But that's just an #ifdef
> __ASSEMBLER__, and so far this seems to work.
>
> I'd appreciate if you can confirm it with your "?"-patched clang.
>
> Thanks,
> Josh


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