Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save developerworks/284b0d3df43668d54596c4d37c7b4beb to your computer and use it in GitHub Desktop.
Save developerworks/284b0d3df43668d54596c4d37c7b4beb to your computer and use it in GitHub Desktop.
Systemtap nettop.stp error
ubuntu:~/systemtap/systemtap-3.0/testsuite/systemtap.examples/network$ sudo stap -vv /home/ycc/systemtap/systemtap-3.0/testsuite/systemtap.examples/network/nettop.stp
Systemtap translator/driver (version 3.0/0.166, non-git sources)
Copyright (C) 2005-2015 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: NLS TR1_UNORDERED_MAP
Created temporary directory "/tmp/stapZuz725"
Session arch: x86_64 release: 4.2.0-36-generic
Kernel symbol table /lib/modules/4.2.0-36-generic/build/System.map unavailable, (No such file or directory)
Searched for library macro files: "/usr/local/share/systemtap/tapset/linux/*.stpm", found: 5, processed: 5
Searched for library macro files: "/usr/local/share/systemtap/tapset/*.stpm", found: 8, processed: 8
Searched: "/usr/local/share/systemtap/tapset/linux/x86_64/*.stp", found: 3, processed: 3
Searched: "/usr/local/share/systemtap/tapset/linux/*.stp", found: 71, processed: 71
Searched: "/usr/local/share/systemtap/tapset/x86_64/*.stp", found: 1, processed: 1
Searched: "/usr/local/share/systemtap/tapset/*.stp", found: 25, processed: 25
Pass 1: parsed user script and 113 library scripts using 62724virt/39160res/4456shr/35420data kb, in 100usr/0sys/97real ms.
Attempting to extract kernel debuginfo build ID from /lib/modules/4.2.0-36-generic/build/vmlinux.id
Attempting to extract kernel debuginfo build ID from /sys/kernel/notes
focused on module 'kernel' = [0xffffffff81000000-0xffffffff8201b000, bias 0 file /usr/lib/debug/boot/vmlinux-4.2.0-36-generic ELF machine |x86_64 (code 62)
probe __dev_queue_xmit@/build/linux-lts-wily-JUyKGw/linux-lts-wily-4.2.0/net/core/dev.c:3042 kernel reloc=.dynamic pc=0xffffffff816ba210
Probe point kernel.function("__dev_queue_xmit")! sufficient, skipped kernel.function("dev_queue_xmit")
focused on module 'kernel' = [0xffffffff81000000-0xffffffff8201b000, bias 0 file /usr/lib/debug/boot/vmlinux-4.2.0-36-generic ELF machine |x86_64 (code 62)
probe netif_receive_skb@/build/linux-lts-wily-JUyKGw/linux-lts-wily-4.2.0/include/linux/netdevice.h:2944 kernel reloc=.dynamic pc=0xffffffff8159b52b
probe netif_receive_skb@/build/linux-lts-wily-JUyKGw/linux-lts-wily-4.2.0/include/linux/netdevice.h:2944 kernel reloc=.dynamic pc=0xffffffff8174223c
probe netif_receive_skb@/build/linux-lts-wily-JUyKGw/linux-lts-wily-4.2.0/include/linux/netdevice.h:2944 kernel reloc=.dynamic pc=0xffffffff81742367
focused on module 'kernel' = [0xffffffff81000000-0xffffffff8201b000, bias 0 file /usr/lib/debug/boot/vmlinux-4.2.0-36-generic ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
focused on module '/home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko' = [0x10000-0x10440, bias 0 file /home/ycc/.systemtap/cache/b9/typequery_b966816d1977207bc69cb80802e2207b_757.ko ELF machine |x86_64 (code 62)
semantic error: while processing probe kernel.function("netif_receive_skb@/build/linux-lts-wily-JUyKGw/linux-lts-wily-4.2.0/include/linux/netdevice.h:2944") from: netdev.receive from: netdev.receive
thrown from: elaborate.cxx:5392
semantic error: failed to retrieve location attribute for 'skb' [man error::dwarf]: identifier '$skb' at /usr/local/share/systemtap/tapset/linux/networking.stp:64:27
dieoffset: 0x55d7a3d from /usr/lib/debug/boot/vmlinux-4.2.0-36-generic
function: netif_receive_skb at /build/linux-lts-wily-JUyKGw/linux-lts-wily-4.2.0/include/linux/netdevice.h:2946 inlined by receive_buf at /build/linux-lts-wily-JUyKGw/linux-lts-wily-4.2.0/drivers/net/virtio_net.c:521 inlined by virtnet_receive at /build/linux-lts-wily-JUyKGw/linux-lts-wily-4.2.0/drivers/net/virtio_net.c:736
thrown from: dwflpp.cxx:3919
source: dev_name = kernel_string($skb->dev->name)
^
Pass 2: analyzed script: 7 probes, 7 functions, 3 embeds, 3 globals using 217188virt/195420res/6108shr/189884data kb, in 930usr/50sys/987real ms.
Pass 2: analysis failed. [man error::pass2]
Running rm -rf /tmp/stapZuz725
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stapZuz725"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment