public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* How to use systemtap with linux 3.5 userspace probes ?
@ 2012-08-21 23:36 David Cournapeau
  2012-08-22  3:06 ` Frank Ch. Eigler
  0 siblings, 1 reply; 6+ messages in thread
From: David Cournapeau @ 2012-08-21 23:36 UTC (permalink / raw)
  To: systemtap

Hi,

My understanding is that systemtap 1.8 supports userspace probing with
upstream kernel >=3.5. I was expecting to be able to use the same dysp
probes as with the utrace patches, but trying a simple stap scripts
such as:

probe process("./a.out").function("foo")
{ printf("hello\n"); }

fails to run:

semantic error: while resolving probe point: identifier 'process' at foo.stp:1:7
        source: probe process("./a.out").function("foo")
                      ^

semantic error: no match
Pass 2: analysis failed.  Try again with another '--vp 01' option.

Is there some information I am missing ?

thanks,

David

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to use systemtap with linux 3.5 userspace probes ?
  2012-08-21 23:36 How to use systemtap with linux 3.5 userspace probes ? David Cournapeau
@ 2012-08-22  3:06 ` Frank Ch. Eigler
  2012-08-22  7:15   ` David Cournapeau
  0 siblings, 1 reply; 6+ messages in thread
From: Frank Ch. Eigler @ 2012-08-22  3:06 UTC (permalink / raw)
  To: David Cournapeau; +Cc: systemtap


Hi, David -

cournape wrote:

> My understanding is that systemtap 1.8 supports userspace probing with
> upstream kernel >=3.5

Ues.

> I was expecting to be able to use the same dysp probes as with the
> utrace patches, but trying a simple stap scripts such as:
>
> probe process("./a.out").function("foo")
> { printf("hello\n"); }
> fails to run:
>
> semantic error: while resolving probe point [...]

Yes, this should work.


> Pass 2: analysis failed.  Try again with another '--vp 01' option.
> Is there some information I am missing ?

Not sure; it's possible that your kernel is not compiled with the
CONFIG_UPROBES option, or something like that.  Please run stap-report
(ideally the freshest version from systemtap git), and "stap --vp 08
your_script.stp".

- FChE

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to use systemtap with linux 3.5 userspace probes ?
  2012-08-22  3:06 ` Frank Ch. Eigler
@ 2012-08-22  7:15   ` David Cournapeau
  2012-08-22 14:32     ` Serguei Makarov
  0 siblings, 1 reply; 6+ messages in thread
From: David Cournapeau @ 2012-08-22  7:15 UTC (permalink / raw)
  To: Frank Ch. Eigler; +Cc: systemtap

[-- Attachment #1: Type: text/plain, Size: 2036 bytes --]

On Wed, Aug 22, 2012 at 4:06 AM, Frank Ch. Eigler <fche@redhat.com> wrote:
>
> Hi, David -
>
> cournape wrote:
>
>> My understanding is that systemtap 1.8 supports userspace probing with
>> upstream kernel >=3.5
>
> Ues.
>
>> I was expecting to be able to use the same dysp probes as with the
>> utrace patches, but trying a simple stap scripts such as:
>>
>> probe process("./a.out").function("foo")
>> { printf("hello\n"); }
>> fails to run:
>>
>> semantic error: while resolving probe point [...]
>
> Yes, this should work.
>
>
>> Pass 2: analysis failed.  Try again with another '--vp 01' option.
>> Is there some information I am missing ?
>
> Not sure; it's possible that your kernel is not compiled with the
> CONFIG_UPROBES option, or something like that.  Please run stap-report
> (ideally the freshest version from systemtap git), and "stap --vp 08
> your_script.stp".

I built my own kernel specifically from sources to try this feature:

grep CONFIG_UPROBE /boot/config-`uname -r`
CONFIG_UPROBES=y
CONFIG_UPROBE_EVENT=y

stap --vp 08 foo.stp gives

Extracting build ID.
dwarf_builder::build for /home/cournape/a.out
parse 'foo', func 'foo'
pattern '/home/cournape/a.out' matches module '/home/cournape/a.out'
focused on module '/home/cournape/a.out' = [0x400000-0x601038, bias 0
file /home/cournape/a.out ELF machine |x86_64 (code 62)
focused on module '/home/cournape/a.out'
module function cache /home/cournape/a.out size 1
semantic error: while resolving probe point: identifier 'process' at foo.stp:1:7
        source: probe process("./a.out").function("foo")
                      ^

semantic error: no match
deleting module_cache
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0
global(s) using 63056virt/26028res/2396shr/24252data kb, in
0usr/0sys/4real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.
Running rm -rf /tmp/stapGjgtoO
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stapGjgtoO"

I attached the output of stap-report,

thanks for the help,

David

[-- Attachment #2: report.log --]
[-- Type: application/octet-stream, Size: 29261 bytes --]

== stap -V ==
Systemtap translator/driver (version 2.0/0.152, commit release-1.8-208-gcf63873)
Copyright (C) 2005-2012 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: LIBSQLITE3 TR1_UNORDERED_MAP NLS
== which stap ==
/home/cournape/local/stow/systemtap-dev/bin//stap
== locate --regex '/stap(run)?$' | xargs ls -ald ==
ls: cannot access /home/cournape/src/dev/systemtap/runtime/staprun: No such file or directory
lrwxrwxrwx 1 cournape cournape       30 Aug 15 14:13 /home/cournape/local/bin/stap -> ../stow/systemtap-1.8/bin/stap
lrwxrwxrwx 1 cournape cournape       33 Aug 15 14:13 /home/cournape/local/bin/staprun -> ../stow/systemtap-1.8/bin/staprun
-rwxr-xr-x 1 cournape cournape 19781755 Aug 15 14:09 /home/cournape/local/stow/systemtap-1.8/bin/stap
-rwxr-xr-x 1 cournape cournape   707320 Aug 15 14:09 /home/cournape/local/stow/systemtap-1.8/bin/staprun
-rwxrwxr-x 1 cournape cournape 20451053 Aug 22 00:03 /home/cournape/src/dev/systemtap/stap
== printenv | egrep '^PATH=|^LD_LIBRARY_PATH=|^SYSTEMTAP_.*=|^XDG_DATA.*=' ==
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/home/cournape/local/stow/systemtap-dev/bin/:/home/cournape/local/stow/systemtap-1.8/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
== stap -vv -p4 -e 'probe begin {exit()}' ==
Systemtap translator/driver (version 2.0/0.152, commit release-1.8-208-gcf63873)
Copyright (C) 2005-2012 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: LIBSQLITE3 TR1_UNORDERED_MAP NLS
Created temporary directory "/tmp/stapiGyp6m"
Session arch: x86_64 release: 3.5.0-custom
Searched for library macro files: " /home/cournape/local/stow/systemtap-dev/share/systemtap/tapset/linux/*.stpm ", found: 1, processed: 1
Searched: " /home/cournape/local/stow/systemtap-dev/share/systemtap/tapset/linux/x86_64/*.stp ", found: 3, processed: 3
Searched: " /home/cournape/local/stow/systemtap-dev/share/systemtap/tapset/linux/*.stp ", found: 65, processed: 65
Searched: " /home/cournape/local/stow/systemtap-dev/share/systemtap/tapset/x86_64/*.stp ", found: 1, processed: 1
Searched: " /home/cournape/local/stow/systemtap-dev/share/systemtap/tapset/*.stp ", found: 19, processed: 19
Pass 1: parsed user script and 89 library script(s) using 62356virt/25012res/2120shr/23564data kb, in 80usr/10sys/95real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) using 62884virt/25804res/2212shr/24092data kb, in 0usr/0sys/3real ms.
/home/cournape/.systemtap/cache/d1/stap_d18c79f4e000a8684cd7f21be19d04a0_718.ko
Pass 3: using cached /home/cournape/.systemtap/cache/d1/stap_d18c79f4e000a8684cd7f21be19d04a0_718.c
Pass 4: using cached /home/cournape/.systemtap/cache/d1/stap_d18c79f4e000a8684cd7f21be19d04a0_718.ko
Running rm -rf /tmp/stapiGyp6m
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stapiGyp6m"
== gcc -v ==
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 
== uname -a ==
Linux ubuntu 3.5.0-custom #1 SMP Wed Aug 15 13:41:01 PDT 2012 x86_64 x86_64 x86_64 GNU/Linux
== dmesg | egrep 'stap|systemtap' | tail -n 10 ==
[  113.194908] stap_19413747e6a2cf088443f5a1f16992ff_3293: systemtap: 1.8/0.152, base: ffffffffa0367000, memory: 2551data/52text/45ctx/2058net/377666alloc kb, probes: 2
== cat /proc/cpuinfo | egrep 'processor|vendor_id|model name' ==
processor	: 0
vendor_id	: GenuineIntel
model name	: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz
processor	: 1
vendor_id	: GenuineIntel
model name	: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz
processor	: 2
vendor_id	: GenuineIntel
model name	: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz
processor	: 3
vendor_id	: GenuineIntel
model name	: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz
processor	: 4
vendor_id	: GenuineIntel
model name	: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz
processor	: 5
vendor_id	: GenuineIntel
model name	: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz
processor	: 6
vendor_id	: GenuineIntel
model name	: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz
processor	: 7
vendor_id	: GenuineIntel
model name	: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz
== dpkg --list | egrep 'systemtap|elfutils|kernel|gcc' | awk '{print $2,$3}' | sort ==
elfutils 0.152-1ubuntu3
gcc 4:4.6.3-1ubuntu5
gcc-4.6 4.6.3-1ubuntu5
gcc-4.6-base 4.6.3-1ubuntu5
gcc-4.6-base:i386 4.6.3-1ubuntu5
gcc-4.6-multilib 4.6.3-1ubuntu5
gcc-multilib 4:4.6.3-1ubuntu5
kerneloops-daemon 0.12+git20090217-1ubuntu19
kernel-package 12.036+nmu2
lib32gcc1 1:4.6.3-1ubuntu5
libaio1:i386 0.3.109-2ubuntu1
libdrm2 2.4.32-1ubuntu1
libdrm2:i386 2.4.32-1ubuntu1
libdrm-dev 2.4.32-1ubuntu1
libdrm-intel1 2.4.32-1ubuntu1
libdrm-intel1:i386 2.4.32-1ubuntu1
libdrm-nouveau1a 2.4.32-1ubuntu1
libdrm-nouveau1a:i386 2.4.32-1ubuntu1
libdrm-radeon1 2.4.32-1ubuntu1
libdrm-radeon1:i386 2.4.32-1ubuntu1
libgcc1 1:4.6.3-1ubuntu5
libgcc1:i386 1:4.6.3-1ubuntu5
libkms1 2.4.32-1ubuntu1
linux-firmware 1.79
linux-generic 3.2.0.27.29
linux-headers-3.2.0-23 3.2.0-23.36
linux-headers-3.2.0-23-generic 3.2.0-23.36
linux-headers-3.2.0-26 3.2.0-26.41
linux-headers-3.2.0-26-generic 3.2.0-26.41
linux-headers-3.2.0-27 3.2.0-27.43
linux-headers-3.2.0-27-generic 3.2.0-27.43
linux-headers-3.5.0-custom 3.5.0-custom-10.00.Custom
linux-headers-generic 3.2.0.27.29
linux-image-3.2.0-23-generic 3.2.0-23.36
linux-image-3.2.0-26-generic 3.2.0-26.41
linux-image-3.2.0-27-generic 3.2.0-27.43
linux-image-3.5.0-custom 3.5.0-custom-10.00.Custom
linux-image-generic 3.2.0.27.29
module-init-tools 3.16-1ubuntu2
rsyslog 5.8.6-1ubuntu8
udev 175-0ubuntu9
virtualbox-dkms 4.1.12-dfsg-2ubuntu0.1
== egrep 'PROBE|TRACE|MARKER|_DEBUG_|MODULE' /lib/modules/3.5.0-custom/build/.config | grep -v not.set | sort | fmt -w 80 ==
CONFIG_ARCH_CPU_PROBE_RELEASE=y CONFIG_ARCH_HAS_CPU_AUTOPROBE=y
CONFIG_ARCH_MEMORY_PROBE=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_BLK_DEV_IO_TRACE=y CONFIG_CAN_PM_TRACE=y
CONFIG_CONTEXT_SWITCH_TRACER=y CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_FS=y CONFIG_DEBUG_INFO=y CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_MEMORY_INIT=y CONFIG_DEBUG_RODATA=y CONFIG_DEBUG_SET_MODULE_RONX=y
CONFIG_DYNAMIC_FTRACE=y CONFIG_FTRACE_MCOUNT_RECORD=y CONFIG_FTRACE_SYSCALLS=y
CONFIG_FTRACE=y CONFIG_FUNCTION_GRAPH_TRACER=y CONFIG_FUNCTION_TRACER=y
CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_TRACER=y CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DYNAMIC_FTRACE=y CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y
CONFIG_HAVE_FUNCTION_TRACER=y CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_MMIOTRACE_SUPPORT=y CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y CONFIG_KPROBE_EVENT=y CONFIG_KPROBES=y
CONFIG_KRETPROBES=y CONFIG_MMIOTRACE=y CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_NOP_TRACER=y CONFIG_OPTPROBES=y
CONFIG_PM_TRACE_RTC=y CONFIG_PM_TRACE=y CONFIG_PNP_DEBUG_MESSAGES=y
CONFIG_PROBE_EVENTS=y CONFIG_SCHED_TRACER=y CONFIG_STACK_TRACER=y
CONFIG_STACKTRACE_SUPPORT=y CONFIG_STACKTRACE=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_TRACEPOINTS=y CONFIG_TRACER_MAX_TRACE=y CONFIG_UPROBE_EVENT=y
CONFIG_UPROBES=y CONFIG_USER_STACKTRACE_SUPPORT=y
== find /debugfs /proc /sys /dev -name '*kprobes*' 2>/dev/null | xargs grep . ==
/proc/sys/debug/kprobes-optimization:0
== lsmod ==
Module                  Size  Used by
vsock                  52878  0 
vmwgfx                121147  2 
ttm                    83438  1 vmwgfx
drm                   275406  3 vmwgfx,ttm
acpiphp                23977  0 
rfcomm                 46619  12 
bnep                   18144  2 
joydev                 17457  0 
coretemp               13444  0 
kvm_intel             132375  0 
ppdev                  17030  0 
kvm                   413696  1 kvm_intel
ghash_clmulni_intel    13180  0 
vmw_balloon            12673  0 
aesni_intel            46780  0 
cryptd                 20360  2 ghash_clmulni_intel,aesni_intel
aes_x86_64             17208  1 aesni_intel
microcode              22803  0 
btusb                  18291  0 
psmouse                86299  0 
snd_ens1371            25398  2 
gameport               15501  1 snd_ens1371
serio_raw              13215  0 
binfmt_misc            17431  1 
snd_ac97_codec        134298  1 snd_ens1371
bluetooth             204626  24 rfcomm,bnep,btusb
hid_generic            12493  0 
ac97_bus               12766  1 snd_ac97_codec
snd_pcm                96580  2 snd_ens1371,snd_ac97_codec
parport_pc             32688  1 
snd_seq_midi           13324  0 
snd_rawmidi            30238  2 snd_ens1371,snd_seq_midi
vmci                   82479  1 vsock
snd_seq_midi_event     14899  1 snd_seq_midi
snd_seq                61521  2 snd_seq_midi,snd_seq_midi_event
snd_timer              29532  2 snd_pcm,snd_seq
snd_seq_device         14497  3 snd_seq_midi,snd_rawmidi,snd_seq
shpchp                 37108  0 
snd                    68728  11 snd_ens1371,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
mac_hid                13205  0 
soundcore              12680  1 snd
i2c_piix4              13167  0 
snd_page_alloc         18484  1 snd_pcm
lp                     17759  0 
parport                46354  3 ppdev,parport_pc,lp
e1000                 114318  0 
mptspi                 22575  1 
mptscsih               40289  1 mptspi
mptbase               101780  2 mptspi,mptscsih
floppy                 69414  0 
usbhid                 46855  0 
hid                   100091  2 hid_generic,usbhid
pvscsi                 22687  0 
== avahi-browse -r -t _stap._tcp ==
== ifconfig -a ==
eth0      Link encap:Ethernet  HWaddr 00:0c:29:43:4f:c6  
          inet addr:192.168.217.149  Bcast:192.168.217.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe43:4fc6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4639 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3302 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2672143 (2.6 MB)  TX bytes:395645 (395.6 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:121 errors:0 dropped:0 overruns:0 frame:0
          TX packets:121 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:12414 (12.4 KB)  TX bytes:12414 (12.4 KB)

== eu-readelf -n /boot/vmlinuz-3.5.0-custom | grep Build ==
    Build ID: 534d93c7c49b7f1ec09e515b04de676173f05132
== eu-readelf -n /usr/lib/debug/lib/modules/3.5.0-custom/vmlinux | grep Build ==
eu-readelf: cannot open input file: No such file or directory
== hexdump -C /sys/kernel/notes ==
00000000  04 00 00 00 06 00 00 00  06 00 00 00 58 65 6e 00  |............Xen.|
00000010  6c 69 6e 75 78 00 00 00  04 00 00 00 04 00 00 00  |linux...........|
00000020  07 00 00 00 58 65 6e 00  32 2e 36 00 04 00 00 00  |....Xen.2.6.....|
00000030  08 00 00 00 05 00 00 00  58 65 6e 00 78 65 6e 2d  |........Xen.xen-|
00000040  33 2e 30 00 04 00 00 00  08 00 00 00 03 00 00 00  |3.0.............|
00000050  58 65 6e 00 00 00 00 80  ff ff ff ff 04 00 00 00  |Xen.............|
00000060  08 00 00 00 01 00 00 00  58 65 6e 00 10 f2 ce 81  |........Xen.....|
00000070  ff ff ff ff 04 00 00 00  08 00 00 00 02 00 00 00  |................|
00000080  58 65 6e 00 00 10 00 81  ff ff ff ff 04 00 00 00  |Xen.............|
00000090  2a 00 00 00 0a 00 00 00  58 65 6e 00 21 77 72 69  |*.......Xen.!wri|
000000a0  74 61 62 6c 65 5f 70 61  67 65 5f 74 61 62 6c 65  |table_page_table|
000000b0  73 7c 70 61 65 5f 70 67  64 69 72 5f 61 62 6f 76  |s|pae_pgdir_abov|
000000c0  65 5f 34 67 62 00 00 00  04 00 00 00 04 00 00 00  |e_4gb...........|
000000d0  09 00 00 00 58 65 6e 00  79 65 73 00 04 00 00 00  |....Xen.yes.....|
000000e0  08 00 00 00 08 00 00 00  58 65 6e 00 67 65 6e 65  |........Xen.gene|
000000f0  72 69 63 00 04 00 00 00  10 00 00 00 0d 00 00 00  |ric.............|
00000100  58 65 6e 00 01 00 00 00  00 00 00 00 01 00 00 00  |Xen.............|
00000110  00 00 00 00 04 00 00 00  04 00 00 00 0e 00 00 00  |................|
00000120  58 65 6e 00 01 00 00 00  04 00 00 00 08 00 00 00  |Xen.............|
00000130  0c 00 00 00 58 65 6e 00  00 00 00 00 00 80 ff ff  |....Xen.........|
00000140  04 00 00 00 08 00 00 00  04 00 00 00 58 65 6e 00  |............Xen.|
00000150  00 00 00 00 00 00 00 00  04 00 00 00 14 00 00 00  |................|
00000160  03 00 00 00 47 4e 55 00  53 4d 93 c7 c4 9b 7f 1e  |....GNU.SM......|
00000170  c0 9e 51 5b 04 de 67 61  73 f0 51 32              |..Q[..gas.Q2|
0000017c
== hexdump -C /sys/module/ac97_bus/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  4d 4e 24 87 55 f8 81 ed  5c d8 a8 73 cd 82 eb 84  |MN$.U...\..s....|
00000020  97 19 8e 4d                                       |...M|
00000024
== hexdump -C /sys/module/acpiphp/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  0b 5d 68 68 87 6e f7 e6  14 5c 07 89 30 45 25 d5  |.]hh.n...\..0E%.|
00000020  d4 12 6a a7                                       |..j.|
00000024
== hexdump -C /sys/module/aes_x86_64/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  b9 b0 1b 5a 90 15 a6 b0  05 dd 71 c7 73 47 a3 c2  |...Z......q.sG..|
00000020  b0 f7 87 8a                                       |....|
00000024
== hexdump -C /sys/module/aesni_intel/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  99 50 2b ed 27 d7 52 da  1f 60 66 63 80 d6 b7 f0  |.P+.'.R..`fc....|
00000020  a6 eb 05 5d                                       |...]|
00000024
== hexdump -C /sys/module/binfmt_misc/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  e0 a0 2e bd bf 28 3c 4f  a9 a5 81 34 8c 2d b2 9b  |.....(<O...4.-..|
00000020  64 cc b9 3f                                       |d..?|
00000024
== hexdump -C /sys/module/bluetooth/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  6a aa 80 73 d8 6d ba 5a  b8 53 b1 76 81 85 8f ae  |j..s.m.Z.S.v....|
00000020  1b 89 e5 dc                                       |....|
00000024
== hexdump -C /sys/module/bnep/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  2d 5b 55 5b 60 c0 1f a0  a8 93 d0 ba 6f a4 68 9f  |-[U[`.......o.h.|
00000020  23 0c 5e 64                                       |#.^d|
00000024
== hexdump -C /sys/module/btusb/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  66 9d 83 ce d2 9f c5 66  71 e5 c1 0a 65 3c d7 bb  |f......fq...e<..|
00000020  4b 6a 95 00                                       |Kj..|
00000024
== hexdump -C /sys/module/coretemp/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  bc cb 99 76 bd db 71 c2  ae e5 2a 26 2f a1 76 d3  |...v..q...*&/.v.|
00000020  5a 22 83 4e                                       |Z".N|
00000024
== hexdump -C /sys/module/cryptd/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  89 c3 4c 92 36 28 03 5c  3e 37 8b 44 03 e3 96 3d  |..L.6(.\>7.D...=|
00000020  27 13 d5 5b                                       |'..[|
00000024
== hexdump -C /sys/module/drm/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  40 07 1d 4e 22 f4 35 3e  bd d9 f5 3a 85 35 ec 9a  |@..N".5>...:.5..|
00000020  37 d0 4a 11                                       |7.J.|
00000024
== hexdump -C /sys/module/e1000/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  8a 22 2d 0f 16 52 65 cf  af 8c 60 fa 69 9d 93 da  |."-..Re...`.i...|
00000020  08 05 44 15                                       |..D.|
00000024
== hexdump -C /sys/module/floppy/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  b9 50 a6 e6 b4 33 c9 53  a0 71 8c 7f fd 86 2f f1  |.P...3.S.q..../.|
00000020  bc 2c b2 f2                                       |.,..|
00000024
== hexdump -C /sys/module/gameport/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  5c 7c b7 5e f7 81 f3 a4  bf aa bb 64 c4 4c e0 93  |\|.^.......d.L..|
00000020  e2 f6 7b 35                                       |..{5|
00000024
== hexdump -C /sys/module/ghash_clmulni_intel/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  c8 43 79 ee 6a 7b 00 78  f7 f0 7c be 69 8e 69 3c  |.Cy.j{.x..|.i.i<|
00000020  ae 78 40 cc                                       |.x@.|
00000024
== hexdump -C /sys/module/hid/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  45 b3 44 0a 38 94 9c 3e  ea 82 3e fb ad 63 af a2  |E.D.8..>..>..c..|
00000020  b3 6f 02 51                                       |.o.Q|
00000024
== hexdump -C /sys/module/hid_generic/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  6e e5 f1 25 c9 3c 0a 5f  da fe 0f 23 14 ed 5d bb  |n..%.<._...#..].|
00000020  b4 24 1e ea                                       |.$..|
00000024
== hexdump -C /sys/module/i2c_piix4/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  7c e8 ae bb 00 71 9b 2a  c2 e9 88 30 1d a7 e9 20  ||....q.*...0... |
00000020  1f c9 9d fe                                       |....|
00000024
== hexdump -C /sys/module/joydev/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  79 d7 8a f9 e8 92 f1 33  6e 3b 53 74 a9 56 47 51  |y......3n;St.VGQ|
00000020  de 17 be 0f                                       |....|
00000024
== hexdump -C /sys/module/kvm/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  49 e0 22 9c 41 4c 07 75  4c 60 95 17 43 b0 34 ee  |I.".AL.uL`..C.4.|
00000020  e9 ca 0c e9                                       |....|
00000024
== hexdump -C /sys/module/kvm_intel/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  34 b2 b2 b2 50 f1 57 f1  bf c2 3c 67 46 37 a9 41  |4...P.W...<gF7.A|
00000020  25 12 0a cf                                       |%...|
00000024
== hexdump -C /sys/module/lp/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  08 a9 d6 ec 0d 60 e8 31  5a 68 11 73 ec c4 24 8b  |.....`.1Zh.s..$.|
00000020  11 0c 82 ac                                       |....|
00000024
== hexdump -C /sys/module/mac_hid/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  93 c5 fc 04 56 15 cb e0  93 f5 9f fd a0 06 fe 36  |....V..........6|
00000020  b6 a3 69 f9                                       |..i.|
00000024
== hexdump -C /sys/module/microcode/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  86 5c d6 af 61 90 07 45  4f d0 4c c5 ac e1 ea 19  |.\..a..EO.L.....|
00000020  02 65 de 57                                       |.e.W|
00000024
== hexdump -C /sys/module/mptbase/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  f7 e6 6c 97 bf 49 c5 e8  4e 79 18 7c 76 44 eb 97  |..l..I..Ny.|vD..|
00000020  ce 96 87 95                                       |....|
00000024
== hexdump -C /sys/module/mptscsih/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  e1 28 f5 f4 9b 7c 26 01  eb 71 3f 78 d9 bd 6d 47  |.(...|&..q?x..mG|
00000020  72 31 99 05                                       |r1..|
00000024
== hexdump -C /sys/module/mptspi/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  cd 29 fa 81 d5 f3 77 9b  48 fa 97 0b 78 c6 7b fb  |.)....w.H...x.{.|
00000020  1f 6a 2b 21                                       |.j+!|
00000024
== hexdump -C /sys/module/parport/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  53 56 8e c4 1b 97 68 dc  b9 24 2d 6a 96 4f 71 d9  |SV....h..$-j.Oq.|
00000020  67 33 79 d3                                       |g3y.|
00000024
== hexdump -C /sys/module/parport_pc/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  56 35 8e d2 45 6b 00 e0  e6 95 57 78 72 67 69 4e  |V5..Ek....WxrgiN|
00000020  c0 9c 29 28                                       |..)(|
00000024
== hexdump -C /sys/module/ppdev/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  d1 c8 c6 13 25 56 22 c8  d0 9e e9 9f 21 35 40 32  |....%V".....!5@2|
00000020  a0 3d e6 81                                       |.=..|
00000024
== hexdump -C /sys/module/psmouse/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  5f f2 06 84 77 d1 7d 84  0d 54 36 04 50 f4 0d ad  |_...w.}..T6.P...|
00000020  96 e5 33 2d                                       |..3-|
00000024
== hexdump -C /sys/module/pvscsi/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  dc 06 b9 4c e9 73 81 b1  30 99 8f 55 6e d5 88 c0  |...L.s..0..Un...|
00000020  56 d8 a3 4d                                       |V..M|
00000024
== hexdump -C /sys/module/rfcomm/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  f3 e1 44 44 bc fe e7 83  e5 b4 ae d7 5e f2 75 84  |..DD........^.u.|
00000020  66 22 c4 79                                       |f".y|
00000024
== hexdump -C /sys/module/serio_raw/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  9a ba 83 fc b6 1a 0b 8f  c4 f0 81 20 35 95 dd c7  |........... 5...|
00000020  8a 5b 64 06                                       |.[d.|
00000024
== hexdump -C /sys/module/shpchp/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  c7 a2 ee f3 0b 60 46 68  77 71 54 13 c4 99 43 b1  |.....`FhwqT...C.|
00000020  1f a0 02 ab                                       |....|
00000024
== hexdump -C /sys/module/snd/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  34 5a 4c 51 60 e0 58 3c  00 0d cb c1 f7 1b fd 99  |4ZLQ`.X<........|
00000020  20 4b e3 cc                                       | K..|
00000024
== hexdump -C /sys/module/snd_ac97_codec/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  f7 4b 9c 41 62 da 97 2f  01 70 b5 b4 31 a5 24 13  |.K.Ab../.p..1.$.|
00000020  b6 e2 c9 d8                                       |....|
00000024
== hexdump -C /sys/module/snd_ens1371/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  7b 27 ba 86 eb f0 0a 1a  ea 2d 02 03 ac f2 eb 34  |{'.......-.....4|
00000020  b5 c3 54 20                                       |..T |
00000024
== hexdump -C /sys/module/snd_page_alloc/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  20 e8 91 2b 2d c6 15 80  9a 1e eb 06 58 f0 46 ad  | ..+-.......X.F.|
00000020  32 68 2f a2                                       |2h/.|
00000024
== hexdump -C /sys/module/snd_pcm/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  5b 29 83 c9 91 b7 47 43  99 29 a0 77 72 b7 be 3b  |[)....GC.).wr..;|
00000020  23 0e ad e5                                       |#...|
00000024
== hexdump -C /sys/module/snd_rawmidi/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  52 7c 14 f3 34 31 65 e8  ea a4 4e 11 aa cd fa 85  |R|..41e...N.....|
00000020  19 27 70 59                                       |.'pY|
00000024
== hexdump -C /sys/module/snd_seq/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  38 e5 86 ce 8b 92 34 ac  d6 17 5b 2e d7 74 2d 40  |8.....4...[..t-@|
00000020  9d 83 c9 47                                       |...G|
00000024
== hexdump -C /sys/module/snd_seq_device/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  ea b5 51 ad b6 e1 2d 6d  3f 37 5a 86 82 10 bf bf  |..Q...-m?7Z.....|
00000020  37 93 a4 f6                                       |7...|
00000024
== hexdump -C /sys/module/snd_seq_midi/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  32 1e 1b f8 5d 4e e5 af  fd f3 96 d4 12 85 35 24  |2...]N........5$|
00000020  a5 31 e9 31                                       |.1.1|
00000024
== hexdump -C /sys/module/snd_seq_midi_event/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  09 34 14 41 50 b7 26 0a  0e e1 3f 6a 98 7d 21 b0  |.4.AP.&...?j.}!.|
00000020  4d 37 0f 0f                                       |M7..|
00000024
== hexdump -C /sys/module/snd_timer/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  a9 9d 63 e5 19 0c e6 d3  37 e9 e0 79 5d 97 61 1a  |..c.....7..y].a.|
00000020  fc fc 35 3f                                       |..5?|
00000024
== hexdump -C /sys/module/soundcore/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  79 f6 98 7d 3d c7 ca f0  02 34 b8 d0 9e f3 91 8a  |y..}=....4......|
00000020  86 45 66 a5                                       |.Ef.|
00000024
== hexdump -C /sys/module/ttm/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  fc 93 87 ce f8 e8 2e c0  4d f5 5c db 6b b2 19 9b  |........M.\.k...|
00000020  74 77 15 df                                       |tw..|
00000024
== hexdump -C /sys/module/usbhid/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  0c 96 c4 0c f6 56 10 04  05 27 2d 15 10 f6 97 86  |.....V...'-.....|
00000020  f7 fc 77 83                                       |..w.|
00000024
== hexdump -C /sys/module/vmci/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  51 ac 69 7d c7 cc e7 f2  e8 89 b4 56 d9 e5 0e cf  |Q.i}.......V....|
00000020  3f 53 ed a8                                       |?S..|
00000024
== hexdump -C /sys/module/vmw_balloon/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  32 c6 27 d7 d6 65 c0 38  f6 e4 62 e2 32 f3 72 63  |2.'..e.8..b.2.rc|
00000020  04 98 8e 5e                                       |...^|
00000024
== hexdump -C /sys/module/vmwgfx/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  67 b6 f4 25 79 d9 f4 87  9e e2 e9 2e 50 c6 71 93  |g..%y.......P.q.|
00000020  68 97 55 bf                                       |h.U.|
00000024
== hexdump -C /sys/module/vsock/notes/.note.gnu.build-id ==
00000000  04 00 00 00 14 00 00 00  03 00 00 00 47 4e 55 00  |............GNU.|
00000010  f6 ad 63 6e 86 66 e2 1f  f1 92 c6 12 52 5d fa 48  |..cn.f......R].H|
00000020  8b 92 ca 0c                                       |....|
00000024

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to use systemtap with linux 3.5 userspace probes ?
  2012-08-22  7:15   ` David Cournapeau
@ 2012-08-22 14:32     ` Serguei Makarov
  2012-08-22 15:04       ` David Cournapeau
  0 siblings, 1 reply; 6+ messages in thread
From: Serguei Makarov @ 2012-08-22 14:32 UTC (permalink / raw)
  To: David Cournapeau; +Cc: systemtap, Frank Ch. Eigler

Hello David,

>> I was expecting to be able to use the same dysp probes as with the
>> utrace patches, but trying a simple stap scripts such as:
>>
>> probe process("./a.out").function("foo")
>> { printf("hello\n"); }
>> fails to run:
>>
>> semantic error: while resolving probe point [...]

Thanks for pointing this out -- this is evidently a new problem since 1.8.

I found myself getting the same error, which makes it less likely that the issue is configuration-dependent. Two questions to verify:

- have you tried running

# stap -e 'probe process("/bin/ls").function("main") { printf("hello\n"); }'

to see if that fails as well? (If it fails, you have a different issue from what I think you have...)

- basically, does the process ./a.out in question actually have a function foo() defined?

I am only getting this error when the function in question *doesn't* exist, e.g. when I run it on '/bin/ls' looking for "foo". Otherwise, uprobes works fine.

This suggests that the problem is (at least partly) that error printing since 1.8 has been reshuffled so that this particular error in this particular context looks kind of misleading. The old message used to look like this:

semantic error: no match while resolving probe point: identifier 'process' at <input>:1:7
source: probe process("/opt/codebase/build/a.out").function("foo")

... which is more plausible to read as a 'function not found' error.

All the best,
        Serguei Makarov

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to use systemtap with linux 3.5 userspace probes ?
  2012-08-22 14:32     ` Serguei Makarov
@ 2012-08-22 15:04       ` David Cournapeau
  2012-08-22 15:40         ` Serguei Makarov
  0 siblings, 1 reply; 6+ messages in thread
From: David Cournapeau @ 2012-08-22 15:04 UTC (permalink / raw)
  To: Serguei Makarov; +Cc: systemtap, Frank Ch. Eigler

On Wed, Aug 22, 2012 at 3:32 PM, Serguei Makarov <smakarov@redhat.com> wrote:
> Hello David,
>
>>> I was expecting to be able to use the same dysp probes as with the
>>> utrace patches, but trying a simple stap scripts such as:
>>>
>>> probe process("./a.out").function("foo")
>>> { printf("hello\n"); }
>>> fails to run:
>>>
>>> semantic error: while resolving probe point [...]
>
> Thanks for pointing this out -- this is evidently a new problem since 1.8.
>
> I found myself getting the same error, which makes it less likely that the issue is configuration-dependent. Two questions to verify:
>
> - have you tried running
>
> # stap -e 'probe process("/bin/ls").function("main") { printf("hello\n"); }'
>
> to see if that fails as well? (If it fails, you have a different issue from what I think you have...)

Yes, I get this message:

WARNING: cannot find module /bin/ls debuginfo: No DWARF information found
semantic error: while resolving probe point: identifier 'process' at <input>:1:7
        source: probe process("/bin/ls").function("main") { printf("hello\n"); }
                      ^

semantic error: no match
Pass 2: analysis failed.  Try again with another '--vp 01' option.

>
> - basically, does the process ./a.out in question actually have a function foo() defined?

So following your remark and the previous error, I rebuild my small
program with debug symbols, and it worked ! Could the error with ls be
due to the lack of debugging info causing systemtap to generate the
same kind of errors as a missing function ?

David

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to use systemtap with linux 3.5 userspace probes ?
  2012-08-22 15:04       ` David Cournapeau
@ 2012-08-22 15:40         ` Serguei Makarov
  0 siblings, 0 replies; 6+ messages in thread
From: Serguei Makarov @ 2012-08-22 15:40 UTC (permalink / raw)
  To: David Cournapeau, systemtap

> Yes, I get this message:

> WARNING: cannot find module /bin/ls debuginfo: No DWARF information found
> semantic error: while resolving probe point: identifier 'process' at <input>:1:7
>         source: probe process("/bin/ls").function("main") { printf("hello\n"); }
                      ^
>
> semantic error: no match
> Pass 2: analysis failed.  Try again with another '--vp 01' option.

Alright, that's more or less to be expected.

On Fedora and related systems, the "Pass 2: analysis failed" line would be followed by instructions to run a debuginfo-install for coreutils or somesuch package; depending on your distribution, there should be some other method of doing the same.

In any case, I should have picked a quick sanitycheck that doesn't depend on having a bunch of debuginfo installed, my apologies...

> So following your remark and the previous error, I rebuild my small
> program with debug symbols, and it worked ! Could the error with ls be
> due to the lack of debugging info causing systemtap to generate the
> same kind of errors as a missing function ?

Yes, exactly; when systemtap can't find debuginfo for one or more components examined by a probe, it issues the warning but proceeds to try to resolve the probe points anyways. Although, if it was an issue of building ./a.out without debug symbols, that warning should have been present in your original output, so there may be something else happening that I haven't put my finger on...

Anyhow, I'm glad to hear that uprobes seems to be functional on your machine. Now I'll just have to figure out how to fix the confusing error reporting so that other people don't trip over this in the future...

All the best,
     Serguei

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-22 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-21 23:36 How to use systemtap with linux 3.5 userspace probes ? David Cournapeau
2012-08-22  3:06 ` Frank Ch. Eigler
2012-08-22  7:15   ` David Cournapeau
2012-08-22 14:32     ` Serguei Makarov
2012-08-22 15:04       ` David Cournapeau
2012-08-22 15:40         ` Serguei Makarov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).