This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Script with static probe point throws error in Pass 3
- From: David Smith <dsmith at redhat dot com>
- To: beginner966 <nitin966 at gmail dot com>
- Cc: systemtap at sourceware dot org
- Date: Tue, 20 Jan 2009 15:12:35 -0600
- Subject: Re: Script with static probe point throws error in Pass 3
- References: <21528274.post@talk.nabble.com>
beginner966 wrote:
> I got the following error while probing static probe points.
>
> Pass 3: translated to C into
> "/tmp/stapS8IQsL/stap_ef975aa4108a2079c82c8d4c7d4fccaf_1986.c" in
> 1030usr/550sys/2102real ms.
> Running make -C "/lib/modules/2.6.26.5-rt9/build" M="/tmp/stapS8IQsL"
> modules >/dev/null
> cc1: warnings being treated as errors
> /tmp/stapS8IQsL/stap_ef975aa4108a2079c82c8d4c7d4fccaf_1986.c: In function
> Ãsystemtap_module_initÃ:
> /tmp/stapS8IQsL/stap_ef975aa4108a2079c82c8d4c7d4fccaf_1986.c:853: warning:
> passing argument 3 of Ãmarker_probe_registerà from incompatible pointer type
> /tmp/stapS8IQsL/stap_ef975aa4108a2079c82c8d4c7d4fccaf_1986.c:857: warning:
> passing argument 2 of Ãmarker_probe_unregisterà from incompatible pointer
> type
> /tmp/stapS8IQsL/stap_ef975aa4108a2079c82c8d4c7d4fccaf_1986.c: In function
> Ãsystemtap_module_exitÃ:
> /tmp/stapS8IQsL/stap_ef975aa4108a2079c82c8d4c7d4fccaf_1986.c:945: warning:
> passing argument 2 of Ãmarker_probe_unregisterà from incompatible pointer
> type
>
>
> Please suggest some solutions. Thanks.
Hmm. I can't think of why we'd have trouble calling
marker_probe_register()/marker_probe_unregister(). The calling
conventions for those haven't changed that I can recall.
Can you show me the declarations for those two functions from
linux/marker.h? They should look like:
----
extern int marker_probe_register(const char *name, const char *format,
marker_probe_func *probe, void *probe_private);
extern int marker_probe_unregister(const char *name,
marker_probe_func *probe, void *probe_private);
----
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)