This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [RFC][Revised Patch 3/5] New Probe family : probe kprobe.function()
- From: Ananth N Mavinakayanahalli <ananth at in dot ibm dot com>
- To: Prerna Saxena <prerna at linux dot vnet dot ibm dot com>
- Cc: systemtap at sourceware dot org, fche at redhat dot com
- Date: Tue, 21 Apr 2009 09:04:33 +0530
- Subject: Re: [RFC][Revised Patch 3/5] New Probe family : probe kprobe.function()
- References: <49EB61E1.6060302@linux.vnet.ibm.com> <49EB67A8.2000704@linux.vnet.ibm.com>
- Reply-to: ananth at in dot ibm dot com
On Sun, Apr 19, 2009 at 11:34:24PM +0530, Prerna Saxena wrote:
Hi Prerna,
> +/*
> + * kprobes.stp
> + *
> + * Probe to test the functionality of kprobe-based probes
> + *
> + * (Dwarfless probing)
> + *
> + */
> +global count
> +
> +probe begin
> +{
> + println("systemtap starting probe")
> +}
> +
> +probe kprobe.function("sys_open")
This is a red herring for SYSCALL_WRAPPER architectures. Can you please
choose a different function? vfs_read?
> +{
> + printf("\n Probe point hit");
> + exit();
And you don't really update the count here.
Ananth