From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25349 invoked by alias); 6 Mar 2012 03:17:45 -0000 Received: (qmail 25341 invoked by uid 22791); 6 Mar 2012 03:17:44 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_GD X-Spam-Check-By: sourceware.org Received: from mail-qy0-f169.google.com (HELO mail-qy0-f169.google.com) (209.85.216.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Mar 2012 03:17:30 +0000 Received: by qcsd16 with SMTP id d16so2257891qcs.0 for ; Mon, 05 Mar 2012 19:17:29 -0800 (PST) Received-SPF: pass (google.com: domain of justlooks@gmail.com designates 10.224.96.9 as permitted sender) client-ip=10.224.96.9; Authentication-Results: mr.google.com; spf=pass (google.com: domain of justlooks@gmail.com designates 10.224.96.9 as permitted sender) smtp.mail=justlooks@gmail.com; dkim=pass header.i=justlooks@gmail.com Received: from mr.google.com ([10.224.96.9]) by 10.224.96.9 with SMTP id f9mr11206930qan.36.1331003849503 (num_hops = 1); Mon, 05 Mar 2012 19:17:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.96.9 with SMTP id f9mr9559625qan.36.1331003849457; Mon, 05 Mar 2012 19:17:29 -0800 (PST) Received: by 10.229.44.208 with HTTP; Mon, 5 Mar 2012 19:17:28 -0800 (PST) Date: Tue, 06 Mar 2012 03:17:00 -0000 Message-ID: Subject: problem in User-Space Probing From: ch huang To: systemtap@sourceware.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 X-SW-Source: 2012-q1/txt/msg00236.txt.bz2 i write a test function , #include static void my_out(void) { printf("just a test\n"); } main() { printf("befor function\n"); my_out(); printf("after function\n"); } and compile it gcc -g -gdwarf-2 -g3 test.c -o test then write stap script probe process("/root/test").function("my_out"){ printf("i in %s\n",pp()) } probe process("/root/test").function("my_out").return{ printf("back from %s\n",probefunc()) } when i run this script i find some warning information # stap exec.stp /usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function =91uprobe_report_exec=92: /usr/local/share/systemtap/runtime/uprobes/uprobes.c:2401: warning: =91uproc=92 may be used uninitialized in this function /usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function =91uprobe_report_exit=92: /usr/local/share/systemtap/runtime/uprobes/uprobes.c:2101: warning: =91uproc=92 may be used uninitialized in this function i in process("/root/test").function("my_out@/root/test.c:4") back from my_out it seems script works fine ,but i do not know the warning info,is there something i missed?