I have tried to add myself to stapdev
and stapusr
in order to run stap
without sudo
. I'm trying to run a simple example but getting an error as such:
$ groups
gokce adm cdrom sudo dip plugdev lpadmin sambashare stapdev stapusr
$ cat hello.stp
probe begin
{
print ("hello world\\n")
exit ()
}
$ stap hello.stp
Warning: /usr/bin/staprun exited with status: 1
Pass 5: run failed. Try again with another '--vp 00001' option.
using sudo
it seems to work fine:
$ sudo stap hello.stp
hello world
How can I do this?
NOTE
I'm using an ubuntu 12.04 system and installed systemtap
package
EDIT
$ ls -la /usr/bin | grep staprun
-rwsr-x--- 1 root stapusr 148712 Jan 30 2012 staprun