From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5774 invoked by alias); 20 Sep 2013 09:46:01 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 5762 invoked by uid 89); 20 Sep 2013 09:46:01 -0000 Received: from mail-la0-f46.google.com (HELO mail-la0-f46.google.com) (209.85.215.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 20 Sep 2013 09:46:01 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail-la0-f46.google.com Received: by mail-la0-f46.google.com with SMTP id eh20so160758lab.33 for ; Fri, 20 Sep 2013 02:45:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=PnfyyJnYCKdsTGmNUQLxViVCg+rkYweImTmUOUToRm0=; b=hrY7iKmFs/NlhWjZ3Bf0yzmmAUdJLOC2XFZcPyQXjOhGDX/82acZOvTAxwln2rXqP4 ye37zMCC4O9CDYJNW7jL2DlBosK+E+LgpY2AdpO1aMUofzpuRnJSbMsvwrpMv9QYW1o5 JydiDyXuZXT44gEhuq+5BrnlW8yrlcxkAY6XLhhwmAShoX78hwBsb/a4mV770zgpWWd/ LyXvtLF4szuFNnSrvNDR+jrHyo+svfh2uDtmIfMcdOu20bHzzv9Rvu1VChadrlZSJR0e kFonTQL61RbypDhwup8/znWdTHT+GM2oYuon4RnLCMBX2QgqL8F2g3tCJo4/cAT5H+aH WTXw== X-Gm-Message-State: ALoCoQnBuPkulO6Q6JcZ5xpFUd1oHY53rBokc8i1xDzgrcgej/IgqkCF4GYv5Vx37ODT4n7rN/7T MIME-Version: 1.0 X-Received: by 10.152.8.115 with SMTP id q19mr5510567laa.16.1379670356691; Fri, 20 Sep 2013 02:45:56 -0700 (PDT) Received: by 10.114.69.174 with HTTP; Fri, 20 Sep 2013 02:45:56 -0700 (PDT) Date: Fri, 20 Sep 2013 09:46:00 -0000 Message-ID: Subject: Systemtap's DTRACE_PROBE and clang From: Martin Martin To: systemtap@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-q3/txt/msg00330.txt.bz2 Hi, I've been submitting bug reports to Clang to get DTRACE_PROBE to compile. They implemented section flag "?", which solved the first problem. The remaining problem is that systemtap is using "note" in place of "@note." llvm-mc only accepts the @note form, which is the only form gas is documented to accept: https://sourceware.org/binutils/docs/as/Section.html#Section (.pushsection refers to the documentation for .section for syntax). The clang people write: How onerous is it to change the code here? On the other side, it'd be helpful to understand why gas is accepting (and people are writing) a form of .pushsection that isn't in the documentation. Workaround for now, it does work if you change it to: .pushsection .note.stapsdt,"?",@note See: http://llvm.org/bugs/show_bug.cgi?id=17270 The source was simply: #include int main() { DTRACE_PROBE(a, b); } Best, Martin