From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88148 invoked by alias); 1 Dec 2015 02:57:47 -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 88096 invoked by uid 89); 1 Dec 2015 02:57:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f54.google.com Received: from mail-wm0-f54.google.com (HELO mail-wm0-f54.google.com) (74.125.82.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 01 Dec 2015 02:57:39 +0000 Received: by wmec201 with SMTP id c201so164963187wme.1 for ; Mon, 30 Nov 2015 18:57:36 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.28.24.199 with SMTP id 190mr34083290wmy.101.1448938656261; Mon, 30 Nov 2015 18:57:36 -0800 (PST) Received: by 10.194.109.6 with HTTP; Mon, 30 Nov 2015 18:57:36 -0800 (PST) In-Reply-To: References: <564B5A4C.1080302@redhat.com> <564CD3C1.2090900@redhat.com> <564DE376.3020104@redhat.com> <565CC50B.90104@redhat.com> Date: Tue, 01 Dec 2015 02:57:00 -0000 Message-ID: Subject: Re: How to track the functions in self-written module using SystemTap? From: Nan Xiao To: "Frank Ch. Eigler" Cc: David Smith , systemtap@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-q4/txt/msg00211.txt.bz2 Hi Frank, I have just tested it: # dd if=kex of=/dev/null bs=101 count=1 0+1 records in 0+1 records out 100 bytes (100 B) copied, 0.00278675 s, 35.9 kB/s But still nothing outputs: # stap -v -e 'probe module("/root/kernel/105.ops/kex.ko").function("*") { printf("%s\n", ppfunc()) }' Pass 1: parsed user script and 100 library script(s) using 210544virt/28008res/3036shr/25484data kb, in 110usr/50sys/162real ms. Pass 2: analyzed script: 6 probe(s), 1 function(s), 0 embed(s), 0 global(s) using 370776virt/29748res/3596shr/26612data kb, in 30usr/760sys/802real ms. Pass 3: using cached /root/.systemtap/cache/5c/stap_5cfec0f637bce0fa61c51d4186192dd5_2853.c Pass 4: using cached /root/.systemtap/cache/5c/stap_5cfec0f637bce0fa61c51d4186192dd5_2853.ko Pass 5: starting run. Thanks! Best Regards Nan Xiao On Tue, Dec 1, 2015 at 10:18 AM, Frank Ch. Eigler wrote: > Nan Xiao writes: > >> [...] >> run "# stap -e 'probe >> module("/root/kernel/105.ops/kex.ko").function("*") { printf("%s\n", >> ppfunc()) }'", but >> run "insmod kex.ko" & "rmmod kex" still outputs nothing. > > Xan you exercise kex.ko beyond just installing & removing it right > away, while the systemtap script is probing it? > > - FChE