> > So I'm not sure what adding all these character strings buy you.
>
> The main thing is type checking by engaging gcc's printf format
> checking logic. In my original markers proposal, the types were
> encoded into the function name, sort of as in C++:
>
> trace_mark_nnnnn(futex_wake_called, uaddr, fshares, val, abs_time, bitset);
>
> where each "n" stands for some integral value, and could be chosen
> amongst a small number of other types (say -- "s": char* string, "p":
> void*, "l":64-bit long). Then, type checking could be done by the
> core compiler for both event producers and consumers. One downside
> was that the trace_mark_* permutations themselves would have to be
> generated by some shell/perl script [1], and some deemed this probably
> unacceptable. I'm still not sure...
>
> [1] some systemtap archaeology:
>
http://sourceware.org/git/?p=systemtap.git;a=commit;h=b171146c8e8d4fa749b8829c47750750...
>
>
> > >+ trace_mark(futex_wake_called, "uaddr:%p fshared:%p nr_wake:%d "
> > > + "bitset:%d",
> > > + uaddr, fshared, nr_wake, bitset);
> >
> > > + INIT_FUTEX_DEBUG_PROBE(futex_wake_called,
> > > + "uaddr:%p fshared:%p nr_wake:%d bitset:%d"),
> >
> > Why the need to duplicate it; that's utter madness.
>
> This second instance is optional and is used as a consistency check
> for the event consumer to hook up exactly to the intended producer.
> The string could be empty.