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]

Re: [RFC][Revised Patch 3/5] New Probe family : probe kprobe.function()


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


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