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: psig for Linux


David Smith wrote:
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.


I was a little surprised that of the requirement of adding root to /etc/sudoers. Newer code in systemtap cvs removes the requirement of root in /etc/sudoers:


2007-08-14 David Smith <dsmith@redhat.com>

	Merge from setuid-branch.  Changes also by Martin Hunt
	<hunt@redhat.com>.
...
	* systemtap.spec.in: Version increase to 0.6-1 and added
	BuildReq for libcap-devl (and removed sudo requirement).
	Added %pre script to create new groups.  Staprun is now
	setuid.

...
	* buildrun.cxx (run_pass): No longer runs staprun with "sudo".

That should be available with the next respin.

-Will


-Will



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