This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Changes to systemtap transport


Here's what I'm seeing:

Martin Hunt wrote:
On Thu, 2007-03-15 at 10:27 -0700, Mike Mason wrote:
I tried the latest CVS and can't get any output from a "Hello World" script now. At first I thought I might have an old staprun installed, which I did. I removed it, but I'm still seeing the problem. What else should I check?

Does this output anything?
stap -e 'probe begin {print("Hello World\n");exit()}'

no output



If not, please give OS and build details and the output of
stap -vve 'probe begin {print("Hello World\n");exit()}'

# cat /proc/version Linux version 2.6.19-1.2288.fc5 (brewbuilder@ls20-bc1-13.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Sat Feb 10 14:59:35 EST 2007

# stap -vve 'probe begin {print("Hello World\n");exit()}'
SystemTap translator/driver (version 0.5.13 built 2007-03-15)
(Using Red Hat elfutils 0.125 libraries.)
Copyright (C) 2005-2007 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Created temporary directory "/tmp/stapBK4rQ2"
Searched '/usr/local/share/systemtap/tapset/2.6.19-1.2288.fc5/x86_64/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6.19-1.2288.fc5/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6.19/x86_64/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6.19/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6/x86_64/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/2.6/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/x86_64/*.stp', match count 1
Searched '/usr/local/share/systemtap/tapset/*.stp', match count 34
Searched '/usr/local/share/systemtap/tapset/LKET/2.6.19-1.2288.fc5/x86_64/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6.19-1.2288.fc5/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6.19/x86_64/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6.19/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6/x86_64/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/2.6/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/x86_64/*.stp', match count 0
Searched '/usr/local/share/systemtap/tapset/LKET/*.stp', match count 19
Pass 1: parsed user script and 54 library script(s) in 270usr/0sys/284real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in 10usr/0sys/6real ms.
Pass 3: using cached /root/.systemtap/cache/79/stap_798c32ec336222ccf0c5939a1cebb820_280.c
Pass 4: using cached /root/.systemtap/cache/79/stap_798c32ec336222ccf0c5939a1cebb820_280.ko
Pass 5: starting run.
Running sudo /usr/local/bin/staprun -v -u root -d 14556 /tmp/stapBK4rQ2/stap_798c32ec336222ccf0c5939a1cebb820_280.ko
Pass 5: run completed in 30usr/170sys/223real ms.
Running rm -rf /tmp/stapBK4rQ2


If those work try bulk mode:
stap -be 'probe begin {print("Hello World\n");exit()}'

# stap -be 'probe begin {print("Hello World\n");exit()}' ERROR: couldn't open proc file /sys/kernel/debug/systemtap_14588/0: errcode = No such file or directory ERROR: couldn't open relayfs files, cpu = 0

ls -l stpd_cpu*
-rw-r--r-- 1 root root  0 Mar 15 13:46 stpd_cpu0
-rw-r--r-- 1 root root 20 Mar 15 13:46 stpd_cpu1

If you are trying the no_header options,
stap -DNO_PERCPU_HEADERS -be 'probe begin {print("Hello World
\n");exit()}'

# stap -DNO_PERCPU_HEADERS -be 'probe begin {print("Hello World\n");exit()}' ERROR: couldn't open proc file /sys/kernel/debug/systemtap_14620/0: errcode = No such file or directory ERROR: couldn't open relayfs files, cpu = 0

cat stpd_cpu*
Hello World


Martin






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]