This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: psig for Linux
- From: David Smith <dsmith at redhat dot com>
- To: Eugene Teo <eugeneteo at kernel dot sg>
- Cc: Betito Oliveira <betito dot oliveira at gmail dot com>, systemtap at sources dot redhat dot com
- Date: Tue, 15 Jan 2008 10:03:26 -0600
- Subject: Re: psig for Linux
- References: <20080114031527.GA7254@kernel.sg> <9fa089a90801140338o1ea18cebq6455e1cf3652db7e@mail.gmail.com> <20080115091920.GA3761@kernel.sg>
Eugene Teo wrote:
> Hi Betito,
>
> <quote sender="Betito Oliveira">
>> I am trying to run a little "hello world" in systemtap with the 20071704
>> snapshot (i am using this version purposely), with ARM arch, on Debian.
>> I have already installed all the packages necessary.
>>
>> I run: stap hello.stp -vv -k
>> and I get this error:
>>
>> stap hello.stp -vv -k
>> SystemTap translator/driver (version 0.5.15/0.128 built 2008-01-11)
>> Copyright (C) 2005-2007 Red Hat, Inc. and others
>> This is free software; see the source for copying conditions.
>> Created temporary directory "/var/tmp/stapCTonIb"
>> Searched '/usr/stap0714/share/systemtap/tapset/*.stp', found 35
>> Searched '/usr/stap0714/share/systemtap/tapset/LKET/*.stp', found 19
>> Pass 1: parsed user script and 54 library script(s) in
>> 4250usr/60sys/4392real ms.
>> Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s)
>> in 60usr/0sys/54real ms.
>> Pass 3: using cached
>> /root/.systemtap/cache/a8/stap_a820a733cd6e86f86c93dfbe5e80c64b_267.c
>> Pass 4: using cached
>> /root/.systemtap/cache/a8/stap_a820a733cd6e86f86c93dfbe5e80c64b_267.ko
>> Pass 5: starting run.
>> Running sudo /usr/stap0714/bin/staprun -v -u root -d 18254
>> /var/tmp/stapCTonIb/stap_a820a733cd6e86f86c93dfbe5e80c64b_267.ko
>> root is not in the sudoers file. This incident will be reported.
>> Pass 5: run completed in 0usr/20sys/33real ms.
>> Pass 5: run failed. Try again with more '-v' (verbose) options.
>> Keeping temporary directory "/var/tmp/stapCTonIb"
I've never tried systemtap on arm, but I'll jump in anyway.
Always look at the first error. In your case, that is: "root is not in
the sudoers file". I'd fix that first. Here's what my /etc/sudoers
file has for root:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
I'd fix that, reboot, and try again.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)