systemtap, anyone?

Cristian Veronesi <[email protected]>
Newsgroups gmane.linux.suse.oracle.general
Message-ID <[email protected]>
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?

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, email: [email protected]
For additional commands, email: [email protected]
Please see http://www.suse.com/oracle/ before posting
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.