On Wed, 14 May 2014 01:35:28 +0800
Yuyang Du <[email protected]> wrote:

> I appreciate your consideration. No argument. But if for the generality of
> this feature, it would be like giving entries in DEFINE_EVENT like: TP_START
> and TP_END, in which author can write any codes for the *general* health of 
> the
> trace event. I would be the first user if allow me, and probably more users
> who also want this subconisciously.

If you are talking about simply calling some function when an event is
enabled and disabled, that already exists.

See TRACE_EVENT_FN().

The "reg" is called when the tracepoint is enabled, and the "unreg" is
called when it is disabled.

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-trace-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to