lkml.org 
[lkml]   [2012]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] aerdrv: Trace Event for AER
On Thu, Nov 29, 2012 at 08:51:19PM -0500, Steven Rostedt wrote:
> > include/ras/aer_event.h | 77 +++++++++++++++++++++++++++++++++++++++++++++++
>
> Is there a reason this header is here? Egad, I never noticed the
> ras_event.h that is there. This include/ras directory was created for
> the sole purpose of trace events! This is not the way to do this.

Well, the idea for the ras event was to be able to use it in multiple
places. It is currently used only by EDAC but it could be that memory
errors could be reported by other agents which would reuse that TP.

> Please look at the sample in samples/trace_events/
>
> The proper way is to keep the header by the driver. Then you can simply
> include the header with "aer_event.h".
>
> But to have the macro magic work, you need to modify the Makefile to
> have something like:
>
> CFLAGS_aerdrv_errprint.o = -I$(src)

So I'm guessing that every .c file including the TP should also -I
include the TP definition header wherever it is. Is that agreeable?

Thanks.

--
Regards/Gruss,
Boris.


\
 
 \ /
  Last update: 2012-11-30 12:22    [W:0.128 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site