public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Symbol resolution problem in stap on FC5
@ 2006-04-25 11:32 srinivasa
  2006-04-25 14:05 ` Frank Ch. Eigler
  2006-04-26 14:49 ` Frank Ch. Eigler
  0 siblings, 2 replies; 7+ messages in thread
From: srinivasa @ 2006-04-25 11:32 UTC (permalink / raw)
  To: systemtap

Hi
 I have installed systemtap(systemtap-20060422) along with elfutils  
patch(elfutils-0.120.tar.gz,elfutils-portability.patch) on FC5. But when 
I wrote a simple script to probe sys_open(),sys_open didn't get probed. 
So I retained temprory files and checked it.
============================================
probe kernel.statement("sys_open") {
                printf("hi\n");
              }
==============================================

Found that in stap_9697.c address to be probed is not valid.
=====================================================
static struct kprobe dwarf_kprobe_probe_0[1]= {
  {.addr= (void *) 0xc0151313}   <<<<this adress to be probed>>>
};

char const * dwarf_kprobe_probe_0_location_names[1] = {
  "kernel.function(\"sys_open@fs/open.c:1089\")"
};
========================================================
[root@localhost stap]# cat /proc/kallsyms | grep sys_open
c0152074 T do_sys_open
c015211e T sys_openat
c0152139 T sys_open
=========================================
But when I specified the address explicitly it works cleraly.
=================================
probe kernel.statement(0xc0152139) {
                printf("hi\n");
              }
====================================
These are the kernel packages I have
===============================
rpm -qa | grep kernel
kernel-debuginfo-2.6.15-1.2054_FC5
kernel-smp-devel-2.6.15-1.2054_FC5
kernel-devel-2.6.15-1.2054_FC5
kernel-smp-2.6.15-1.2054_FC5
kernel-2.6.15-1.2054_FC5
===================================
Is my analysis is correct? or this is a bug. Please clarify.

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

end of thread, other threads:[~2006-05-03 12:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-25 11:32 Symbol resolution problem in stap on FC5 srinivasa
2006-04-25 14:05 ` Frank Ch. Eigler
2006-04-25 14:20   ` Ananth N Mavinakayanahalli
2006-04-26  3:56     ` srinivasa
2006-04-26 14:49 ` Frank Ch. Eigler
2006-05-02  8:34   ` srinivasa
     [not found]     ` <20060502121155.GA2010@redhat.com>
2006-05-03 12:38       ` srinivasa

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).