user probes do not compiler because of missing linux/utrace.h file

Bug #529313 reported by jans on 2010-02-28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
systemtap (Ubuntu)

Bug Description

Binary package hint: systemtap

It seems that stap package is missing linux/utrace.h header file.

jan@media:~/work/stap$ cat hello.stp
probe process("/home/jan/work/stap/test_app").function("hello") { log($$parms) }
jan@media:~/work/stap$ sudo stap --vp 0001 hello.stp
[sudo] password for jan:
Pass 4, preamble: (re)building SystemTap's version of uprobes.
Pass 4: compiled C into "stap_6540905b690f54e264a13fda3215606a_1213.ko" in 1980usr/830sys/5291real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.
jan@media:~/work/stap$ stap --vp 0001 hello.stp

Pass 4, preamble: verifying that SystemTap's version of uprobes is up to date.
SystemTap's version of uprobes is out of date.
As root, run "make -C /usr/share/systemtap/runtime/uprobes".
Pass 4: compiled C into "stap_b7765eb6de91d48dfb0a22748732ab07_1213.ko" in 30usr/0sys/150real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.
jan@media:~/work/stap$ jan@media:~/work/stap$ sudo make -C /usr/share/systemtap/runtime/uprobes
make: Entering directory `/usr/share/systemtap/runtime/uprobes'
make -C /lib/modules/2.6.31-19-server/build SUBDIRS=/usr/share/systemtap/runtime/uprobes modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-19-server'
  CC [M] /usr/share/systemtap/runtime/uprobes/uprobes.o
/usr/share/systemtap/runtime/uprobes/uprobes.c:1:26: error: linux/utrace.h: No such file or directory
In file included from /usr/share/systemtap/runtime/uprobes/uprobes.c:8:
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function ‘utask_adjust_flags’:

ProblemType: Bug
Architecture: amd64
Date: Sat Feb 27 23:02:41 2010
DistroRelease: Ubuntu 9.10
Package: systemtap 0.0.20090613-1
 PATH=(custom, user)
ProcVersionSignature: Ubuntu 2.6.31-19.56-server
SourcePackage: systemtap
Uname: Linux 2.6.31-19-server x86_64

jans (jans) wrote :
Changed in systemtap (Ubuntu):
status: New → Confirmed

sorry, ignore above, wrong bug

Lucas Nussbaum (lucas) wrote :

systemtap requires utrace support in the kernel to trace user apps. That's not available in the vanilla (and in the Ubuntu) kernel

Changed in systemtap (Ubuntu):
status: Confirmed → Invalid
Sergey K (koblin) wrote :

Systemtap requires utrace and user requres it too =)
Maybe kernel developers can apply utrace patch to ubuntu kernel? Systemtap useless without utrace.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers