This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Systemtap un Ubuntu 14.04
- From: Shane Wayne <zx0319 at gmail dot com>
- To: wolfram dot gettert at mixed-mode dot de
- Cc: systemtap at sourceware dot org
- Date: Mon, 24 Nov 2014 14:02:52 +0800
- Subject: Re: Systemtap un Ubuntu 14.04
- Authentication-results: sourceware.org; auth=none
- References: <cd4b0a16875cf7cdebd8975b8ca7d2be dot squirrel at gaulix dot pixel dot de>
Hi Wolfram Gettert:
I've tested you strace.stp in my system.
My system was installed Ubuntu 14.04 server with standard kernel listed below:
ii linux-image-3.13.0-40-generic 3.13.0-40.69
ii linux-image-3.13.0-40-generic-dbgsym 3.13.0-40.69
And I also install SystemTap from apt-get:
Systemtap translator/driver (version 2.3/0.158, Debian version
2.3-1ubuntu1 sty))
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
In my system I can run strace.stp from
https://raw.githubusercontent.com/fche/systemtap/master/doc/tutorial/strace-open.stp
sudo stap -v strace.stp
Pass 1: parsed user script and 95 library script(s) using
84508virt/27192res8shr/25428data kb, in 160usr/10sys/174real ms.
Pass 2: analyzed script: 3 probe(s), 9 function(s), 26 embed(s), 0
global(s)ng 280200virt/67268res/3756shr/63984data kb, in
1020usr/160sys/1193real ms.
Pass 3: using cached
/home/shane/.systemtap/cache/1f/stap_1f7e0f03ef5e1352bf4c51299552_20238.c
Pass 4: using cached
/home/shane/.systemtap/cache/1f/stap_1f7e0f03ef5e1352bf4c51299552_20238.ko
Pass 5: starting run.
collectl(1586) open ("/proc/buddyinfo", O_RDONLY)
collectl(1586) open ("/proc/stat", O_RDONLY)
collectl(1586) open ("/proc/interrupts", O_RDONLY)
collectl(1586) open ("/proc/diskstats", O_RDONLY)
Could you provide more information?
2014-11-24 2:58 GMT+08:00 Wolfram Gettert <wolfram.gettert@mixed-mode.de>:
> 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
>
>
>
--
------------------------------------------------------------
ZHANG Xiao
The Institute of Computer Software Engineering and Theory in Xi'an
Jiaotong University
Master-and-Doctoral Program Student
ACM Student Member
CCF Student Member
IEEE Computer Society Sister Society Associate Member
Xi'an Jiaotong University
Bachelor of Engineering in Computer Science and Technology
The Chinese University of Hong Kong
International Asia Study Program in CS/CE/EE/IE