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]

vmlinux search path


Hello all,

Debian recently started shipping debug symbols for the kernel package.
The vmlinux file is installed as /usr/lib/debug/vmlinux-`uname-r

Currently, stap when executed, is not able to find this file. Is there a 
list where it looks for the file ?
Creating a symlink of the file to /boot works.

A simple logging message works though.

17:56:18 rrs@champaran:/lib/modules/2.6.34-1-amd64/build $ stap -ve 'probe 
begin { log("hello world") exit () }'
Pass 1: parsed user script and 68 library script(s) using 
49900virt/20752res/1740shr kb, in 120usr/10sys/136real ms.
Pass 2: analyzed script: 1 probe(s), 2 function(s), 0 embed(s), 0 global(s) 
using 50428virt/21544res/1944shr kb, in 10usr/0sys/5real ms.
Pass 3: translated to C into 
"/tmp/stapfIYzbB/stap_ac8fce0c326051a58d6575373f927e5a_791.c" using 
50428virt/21604res/1996shr kb, in 0usr/0sys/0real ms.
Pass 4: compiled C into "stap_ac8fce0c326051a58d6575373f927e5a_791.ko" in 
3210usr/550sys/4645real ms.
Pass 5: starting run.
hello world
Pass 5: run completed in 0usr/70sys/222real ms.


Only a kernel specific function fails.

17:56:35 rrs@champaran:/lib/modules/2.6.34-1-amd64/build $ stap -v -e 'probe 
vfs.read {printf("read performed\n"); exit()}' --vp 0001
Pass 1: parsed user script and 68 library script(s) using 
49924virt/20852res/1740shr kb, in 130usr/10sys/138real ms.
semantic error: missing x86_64 kernel/module debuginfo under 
'/lib/modules/2.6.34-1-amd64/build' while resolving probe point 
kernel.function("vfs_read")
semantic error: no match while resolving probe point vfs.read
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0 global(s) 
using 50532virt/21772res/2008shr kb, in 10usr/50sys/56real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.


Regards,
Ritesh
-- 
Given the large number of mailing lists I follow, I request you to CC me
in replies for quicker response


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