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 fails to find kernel tracepoints


I got a problem with stap, would anyone help?

OVERVIEW:
1) I use debian sid
2) All pkgs needed by stap are installed, stap-prep exit with code 0
3) kernel is compiled with tracepoints support
4) stap can probe kernel.function("*"), syscall.*, process("a.out").function
5) The problem:
   stap can not probe kernel.trace("*")


DETAILS:
1)
root@Debian64-QEMU:~# more /etc/issue
Debian GNU/Linux sid \n \l

2)
root@Debian64-QEMU:~# stap-prep
root@Debian64-QEMU:~# echo $?
0
root@Debian64-QEMU:~# dpkg -l|egrep "linux-(image|headers)"
ii  linux-headers-3.16.0-4-amd64     3.16.7-2                    amd64
       Header files for Linux 3.16.0-4-amd64
ii  linux-headers-3.16.0-4-common    3.16.7-2                    amd64
       Common header files for Linux 3.16.0-4
ii  linux-headers-amd64              3.16+63                     amd64
       Header files for Linux amd64 configuration (meta-package)
ii  linux-image-3.16.0-4-amd64       3.16.7-2                    amd64
       Linux 3.16 for 64-bit PCs
ii  linux-image-3.16.0-4-amd64-dbg   3.16.7-2                    amd64
       Debugging symbols for Linux 3.16.0-4-amd64
ii  linux-image-amd64                3.16+63                     amd64
       Linux for 64-bit PCs (meta-package)
ii  linux-image-amd64-dbg            3.16+63                     amd64
       Debugging symbols for Linux amd64 configuration (meta-package)
root@Debian64-QEMU:~# dpkg -l|egrep "systemtap"
ii  systemtap                        2.6-0.2                     amd64
       instrumentation system for Linux
ii  systemtap-common                 2.6-0.2                     all
       instrumentation system for Linux (common component)
ii  systemtap-runtime                2.6-0.2                     amd64
       instrumentation system for Linux (runtime component)
ii  systemtap-sdt-dev                2.6-0.2                     amd64
       statically defined probes development files
root@Debian64-QEMU:~#

3)
root@Debian64-QEMU:~# cat /sys/kernel/debug/tracing/events/enable
X
root@Debian64-QEMU:~# less /sys/kernel/debug/tracing/available_events
drm:drm_vblank_event
drm:drm_vblank_event_queued
drm:drm_vblank_event_delivered
i2c:i2c_write
i2c:i2c_read
...
...
skb:skb_copy_datagram_iovec
skb:consume_skb
skb:kfree_skb
root@Debian64-QEMU:~#


4)

stap -L 'kernel.function("*")' and stap -L 'syscall.*' output a large list


5)

stap -L 'kernel.trace("*")' output nothing
and -v show some error info:

root@Debian64-QEMU:~# stap -vv -L 'kernel.trace("*")'
Systemtap translator/driver (version 2.6/0.159, Debian version 2.6-0.2)
Copyright (C) 2005-2014 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: AVAHI LIBSQLITE3 NSS TR1_UNORDERED_MAP NLS
Created temporary directory "/tmp/stapfTD1jG"
Session arch: x86_64 release: 3.16.0-4-amd64
Kernel symbol table /lib/modules/3.16.0-4-amd64/build/System.map
unavailable, (No such file or directory)
Searched for library macro files:
"/usr/share/systemtap/tapset/linux/*.stpm", found: 3, processed: 3
Searched for library macro files:
"/usr/share/systemtap/tapset/*.stpm", found: 5, processed: 5
Searched: "/usr/share/systemtap/tapset/linux/x86_64/*.stp", found: 3,
processed: 3
Searched: "/usr/share/systemtap/tapset/linux/*.stp", found: 70, processed: 70
Searched: "/usr/share/systemtap/tapset/x86_64/*.stp", found: 1, processed: 1
Searched: "/usr/share/systemtap/tapset/*.stp", found: 24, processed: 24
Pass 1: parsed user script and 106 library script(s) using
87592virt/32724res/5264shr/27932data kb, in 100usr/20sys/113real ms.
Attempting to extract kernel debuginfo build ID from
/lib/modules/3.16.0-4-amd64/build/vmlinux.id
Attempting to extract kernel debuginfo build ID from /sys/kernel/notes
semantic error: while resolving probe point: identifier 'kernel' at <input>:1:7
   thrown from: elaborate.cxx:1062
        source: probe kernel.trace("*") {}
                      ^

semantic error: no match
   thrown from: elaborate.cxx:1025
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0
global(s) using 88628virt/34736res/6200shr/28968data kb, in
20usr/30sys/49real ms.
Tip: /usr/share/doc/systemtap/README.Debian should help you get started.
Running rm -rf /tmp/stapfTD1jG
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stapfTD1jG"

6)

I tried with stap 2.6 and stap 2.7(build from source by myself), they
are the same on this issue.

7).
-- 

KDr2, http://kdr2.com


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