From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35359 invoked by alias); 26 Jun 2015 18:58:48 -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 35345 invoked by uid 89); 26 Jun 2015 18:58:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f170.google.com Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com) (209.85.212.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 26 Jun 2015 18:58:46 +0000 Received: by wiwl6 with SMTP id l6so52730917wiw.0 for ; Fri, 26 Jun 2015 11:58:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=SHxaqdu7y6ouzzUF9m12aP6rD6V2KRQrqYikzc9EPmM=; b=h+BWcyYBkutFLa14BRyY5UMhp96SLy7lXZwYS0CIKe7PvgNOYaa0UEflKh9KSVzs5+ nfGk/2mugzFCBi/VQFS3CNV/9K8CyXUgDV+EMJz7H+I8pq1LaeuD6zeEe7RjbgFyDjUg zenpXXzfijWiY2SzUQs63le4Ko/O+pnuAxRHfV6k2qx6rKf5R/e3nbKlMxJielsRTHtK 85ZJMxuUPLfvvyjMji1AGjg2+DRUbi3AHVbPWfz490rja4X/OTrDQHnRbKRuiKE8W9vS y7KiNTlahGojTy1ogWUU37OxODVyn+C57IsTkjmWd1nagxtSmeIsOMC8TrhPXUacVU8+ AtoQ== X-Gm-Message-State: ALoCoQlZGysPVUkokbm/gmvfVINN1p8DXpOAvMOkb/tXz5wGKpYjYtAVU4i8fvAjnADrTU4SMvoh X-Received: by 10.194.179.167 with SMTP id dh7mr5546093wjc.15.1435345122991; Fri, 26 Jun 2015 11:58:42 -0700 (PDT) Received: from [192.168.0.101] ([90.152.119.35]) by mx.google.com with ESMTPSA id p2sm3382485wix.11.2015.06.26.11.58.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 11:58:42 -0700 (PDT) Message-ID: <558DA0E3.9060904@linaro.org> Date: Fri, 26 Jun 2015 18:58:00 -0000 From: Zoltan Kiss User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: systemtap@sourceware.org Subject: process().statement() doesn't seem to work Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-q2/txt/msg00220.txt.bz2 Hi, I want to use systemtap to figure out the local variables in a function where something goes fishy. The function's code is here: http://dpdk.org/browse/dpdk/tree/lib/librte_pmd_ixgbe/ixgbe_rxtx.c?id=v1.7.1#n1313 It's a receive function of DPDK's userspace poll mode driver, so it's called in an infinite loop. When I try this, it appers to work: probe process("/usr/sbin/ovs-vswitchd").function("ixgbe_recv_scattered_pkts").return { log($$locals) exit(); } The output is: rxq=0x7fff852ee000 rx_ring=? rxdp=? sw_ring=? rxe=? first_seg=? last_seg=? rxm=? nmb=? rxd={...} dma=? staterr=? hlen_type_rss=? rx_id=? nb_rx=0x0 nb_hold=0x0 data_len=? pkt_flags=? But it doesn't show most of the variables I need. It returns nb_rx=0, so I know where are the two points where things can go wrong, but I can't see the output of those variables (staterr and nmb) When I try to define the probe as this: probe process("/usr/sbin/ovs-vswitchd").statement("*@lib/librte_pmd_ixgbe/ixgbe_rxtx.c:1359") Or with any line number inside that function, the probe is never reached. I'm using gcc 4.8.4, DPDK is statically linked to my application. Does anyone have an idea what might went wrong? Regards, Zoltan Kiss