Script with static probe point throws error in Pass 3

David Smith dsmith@redhat.com
Wed Jan 21 20:39:00 GMT 2009


beginner966 wrote:
> This is the declaration as given in the linux/marker.h file
> 
> /*
>  * Connect a probe to a marker.
>  * private data pointer must be a valid allocated memory address, or NULL.
>  */
> extern int marker_probe_register(const char *name, const char *format,
>                                 marker_probe_func *probe, void
> *probe_private);
> 
> /*
>  * Returns the private data given to marker_probe_register.
>  */
> extern int marker_probe_unregister(const char *name,
>         marker_probe_func *probe, void *probe_private);
> 

OK, our function declarations match up.  Good.

The error messages you sent complain about argument 3 of
marker_probe_register() and argument 2 of marker_probe_unregister().
Both of those are 'marker_probe_func *'.  So, here's my declaration of
'marker_probe_func' from linux/marker.h:

----
typedef void marker_probe_func(void *probe_private, void *call_private,

                const char *fmt, va_list *args);

----

Can you show me your declaration?

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)



More information about the Systemtap mailing list