Re: [PATCH v2 1/4] tracing: Added hardware latency tracer
From: Steven Rostedt
Date: Mon Aug 22 2016 - 15:16:23 EST
On Mon, 22 Aug 2016 12:27:58 -0500
Nilay Vaish <nilayvaish@xxxxxxxxx> wrote:
> > +static void trace_hwlat_sample(struct hwlat_sample *sample)
> > +{
> > + struct trace_array *tr = hwlat_trace;
> > + struct trace_event_call *call = &event_hwlat;
>
> Steven, where is this variable event_hwlat declared? To me it seems
> that some macro is declaring it (most likely DEFINE_EVENT) but I was
> not able to figure out the chain that ends up in the declaration.
Yeah, it's created similarly to how trace_events are created.
It's created via kernel/trace/trace_export.c using
kernel/trace/trace_entries.h
-- Steve