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
beginner966 wrote:
> This is the declaration present in linux/marker.h
>
> typedef void marker_probe_func(void *probe_private, void *call_private,
> const char *fmt, ...);
>
> Actually it was same as you mentioned, but during compilation it threw an
> error:
>
> In file included from kernel/sched.c:31:
> include/linux/marker.h:33: error: expected declaration specifiers or ...
> before 'va_list'
>
> for which Frank mentioned the following:
>
> "I don't understand this error. Maybe it's a compiler version issue.
> Different versions of marker.h use "..." in that declaration."
If I'm reading you correctly, originally it matched what I have (with
'va_list *args'). You changed it to '...'.
There is your problem. Systemtap only supports the 'va_list *args'
version. So, you need to back out your change and go back and figure
out the original compile error.
You might try including '<stdarg.h>' in marker.h.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)