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]

Systemtap un Ubuntu 14.04


Hi,
I am trying get Systemtap running on Ubuntu 14.04.

I am using the standard kernel 3.13.0-32-generic.
I have installed these
http://ddebs.ubuntu.com/pool/main/l/linux-lts-trusty/linux-image-3.13.0-32-generic-dbgsym_3.13.0-32.57~precise1_amd64.ddeb
pac debug symbols.

I tried two versions of systemtap.

This one installed as Debian package:
stap --version
Systemtap translator/driver (version 2.3/0.158, Debian version
2.3-1ubuntu1 (trusty))
Copyright (C) 2005-2013 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: AVAHI LIBSQLITE3 NSS TR1_UNORDERED_MAP NLS

This one from git:
./stap --version
Systemtap translator/driver (version 2.7/0.158, commit
release-2.6-93-g0cf3720fbd15 + changes)
Copyright (C) 2005-2014 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: TR1_UNORDERED_MAP NLS


I get the following error executing my probe listening for the open syscall.

mm@xubuntu:~/systemtap-2.7-7159/bin$ sudo stap
../../Downloads/correct/systemtap/strace-open.stp
semantic error: not accessible at this address [man error::dwarf]
(0xffffffff8121d060, dieoffset: 0x1d2106d): identifier '$filename' at
/usr/share/systemtap/tapset/linux/syscalls2.stp:128:32
        source: 	filename = user_string_quoted($filename)
                	                              ^

semantic error: not accessible at this address [man error::dwarf]
(0xffffffff8121d060, dieoffset: 0x1d2107d): identifier '$flags' at :129:10
        source: 	flags = $flags
                	        ^

semantic error: not accessible at this address [man error::dwarf]
(0xffffffff8121d060, dieoffset: 0x1d2106d): identifier '$filename' at
:132:54
        source: 		argstr = sprintf("%s, %s, %#o",
user_string_quoted($filename),
                		                                                   ^

semantic error: not accessible at this address [man error::dwarf]
(0xffffffff811c9000, dieoffset: 0x19574d4): identifier '$filename' at
:128:32
        source: 	filename = user_string_quoted($filename)
                	                              ^

semantic error: not accessible at this address [man error::dwarf]
(0xffffffff811c9000, dieoffset: 0x19574e4): identifier '$flags' at :129:10
        source: 	flags = $flags
                	        ^

semantic error: not accessible at this address [man error::dwarf]
(0xffffffff811c9000, dieoffset: 0x19574d4): identifier '$filename' at
:132:54
        source: 		argstr = sprintf("%s, %s, %#o",
user_string_quoted($filename),
                		                                                   ^

Pass 2: analysis failed.  [man error::pass2]
Tip: /usr/share/doc/systemtap/README.Debian should help you get started.


I add this as additional information. I read it in a formum post that it
may be usefull for you.
  stap -L 'kernel.function("vfs_write").*'
kernel.function("vfs_write@/build/buildd/linux-lts-trusty-3.13.0/fs/read_write.c:457").call
kernel.function("vfs_write@/build/buildd/linux-lts-trusty-3.13.0/fs/read_write.c:457").exported
kernel.function("vfs_write@/build/buildd/linux-lts-trusty-3.13.0/fs/read_write.c:457").return
$return:ssize_t


The gcc I used is:
gcc --version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Do you have any idea what the reason could be?


Thanks for any hint.

Wolfram




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