Systemtap's DTRACE_PROBE and clang

Josh Stone jistone@redhat.com
Fri Sep 20 20:02:00 GMT 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdt_asm_note.patch
Type: text/x-patch
Size: 1074 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20130920/6d56c76c/attachment.bin>


More information about the Systemtap mailing list