From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18391 invoked by alias); 8 Oct 2013 13:32:37 -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 18380 invoked by uid 89); 8 Oct 2013 13:32:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e23smtp06.au.ibm.com Received: from e23smtp06.au.ibm.com (HELO e23smtp06.au.ibm.com) (202.81.31.148) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 08 Oct 2013 13:32:36 +0000 Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 8 Oct 2013 23:32:32 +1000 Received: from d23dlp03.au.ibm.com (202.81.31.214) by e23smtp06.au.ibm.com (202.81.31.212) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 8 Oct 2013 23:32:31 +1000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [9.190.235.21]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 4CA093578052 for ; Wed, 9 Oct 2013 00:32:31 +1100 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r98DWJgN131420 for ; Wed, 9 Oct 2013 00:32:19 +1100 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r98DWUnF015611 for ; Wed, 9 Oct 2013 00:32:30 +1100 Received: from localhost.localdomain ([9.79.201.136]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id r98DVnsw014862; Wed, 9 Oct 2013 00:31:51 +1100 Message-ID: <52540945.5060107@linux.vnet.ibm.com> Date: Tue, 08 Oct 2013 13:32:00 -0000 From: Hemant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: "Frank Ch. Eigler" CC: linux-kernel@vger.kernel.org, srikar@linux.vnet.ibm.com, peterz@infradead.org, oleg@redhat.com, hegdevasant@linux.vnet.ibm.com, mingo@redhat.com, anton@redhat.com, systemtap@sourceware.org, namhyung@kernel.org, masami.hiramatsu.pt@hitachi.com, aravinda@linux.vnet.ibm.com Subject: Re: [PATCH v2 0/3] Perf support to SDT markers References: <20131007063911.11693.33624.stgit@hemant-fedora> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13100813-7014-0000-0000-000003BB1C57 X-SW-Source: 2013-q4/txt/msg00033.txt.bz2 Hi, On 10/07/2013 09:17 PM, Frank Ch. Eigler wrote: > Hemant Kumar writes: > >> [...] >> A simple example to show this follows. >> - Create a file with .d extension and mention the probe names in it with >> provider name and marker name. >> [...] >> - Now create the probes.h and probes.o file : >> $ dtrace -C -h -s probes.d -o probes.h >> $ dtrace -C -G -s probes.d -o probes.o >> [...] > It may be worthwhile to document an even-simpler case: > > - no .d file > - no invocation of the dtrace python script > - no generated .h or .o file > - in the C file, just add: > > #include > > void main () { > /* ... */ > STAP_PROBE(provider_name,probe_name); > /* ... */ > } > > - gcc file.c > - stap -l 'process("./a.out").mark("*")' to list > > > - FChE > Will add this example to the doc too. -- Thanks Hemant