Re: tracing at start and end for some trace events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 14, 2014 at 03:55:11PM -0400, Steven Rostedt wrote:
> On Wed, 14 May 2014 01:35:28 +0800
> Yuyang Du <yuyang.du@xxxxxxxxx> 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.
 
Thanks, Steven. So maybe I can use TRACE_EVENT_FN: first enable
tracing (tracing_on), and then enable event, so I can take a snapshot in "reg".
Is that right? I will try it.

Yuyang
--
To unsubscribe from this list: send the line "unsubscribe linux-trace-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux