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: Script with static probe point throws error in Pass 3


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)


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