[suse-sles-e] systemtap, anyone?

From: Cristian Veronesi (c.veronesi_at_crpa.it)
Date: Thu Aug 02 2007 - 11:41:36 CEST


Message-ID: <46B1A6D0.8080504@crpa.it>
Date: Thu, 02 Aug 2007 11:41:36 +0200
From: Cristian Veronesi <c.veronesi@crpa.it>
Subject: [suse-sles-e] systemtap, anyone?

Has anyone tried to use systemtap on SUSE SLES10? I was able to run a
simple "hello world" script but I always get errors when trying to
access kernel functions. For example, this script:

<<<
global reads

probe begin {
  printf("probe beginning\n")
}

probe syscall.read {
  reads [execname()] <<< count
}

probe end {
  foreach (prog_name in reads) {
    printf("Name: %s, # Reads: %d, Total Bytes: %d, Avg: %d\n",
            prog_name, @count(reads[prog_name]),
            @sum(reads[prog_name]), @avg(reads[prog_name]))
  }
}
>>>

Gives the following error:

semantic error: libdwfl failure (dwfl_linux_kernel_report_offline): No
such file or directory while resolving probe point
kernel.function("sys_read")
semantic error: no match for probe point while resolving probe point
syscall.read
Pass 2: analysis failed. Try again with more '-v' (verbose) options.

Am I missing some package? Arun Singh in the suse-oracle mailing list
suggested me to install kernel-default-debuginfo package, but I'm not
able to find it in the yast repository.

Thank you. Kind regards,

-- 
Cristian Veronesi - C.R.P.A. S.p.A. - Reggio Emilia, Italy
I dieci comandamenti dell'E-Mail: http://it.wikipedia.org/wiki/Netiquette
---------------------------------------------------------------------
To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
For additional commands, e-mail: suse-sles-e-help@suse.com


This archive was generated by hypermail 2.1.7 : Thu Aug 02 2007 - 13:45:23 CEST