[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4FAC4C6B.7030307@redhat.com>
Date: Thu, 10 May 2012 20:16:59 -0300
From: Mauro Carvalho Chehab <mchehab@...hat.com>
To: Steven Rostedt <rostedt@...dmis.org>
CC: Borislav Petkov <bp@...64.org>,
Linux Edac Mailing List <linux-edac@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Doug Thompson <norsk5@...oo.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...hat.com>, Tony Luck <tony.luck@...el.com>
Subject: Re: [PATCH v22] edac, ras/hw_event.h: use events to handle hw issues
Em 10-05-2012 19:46, Steven Rostedt escreveu:
> On Thu, 2012-05-10 at 17:55 -0300, Mauro Carvalho Chehab wrote:
>
>>>> EXPORT_SYMBOL_GPL(edac_mc_handle_error);
>>>> diff --git a/include/ras/hw_event.h b/include/ras/hw_event.h
>>>> new file mode 100644
>>>> index 0000000..66981ef
>>>> --- /dev/null
>>>> +++ b/include/ras/hw_event.h
>>>> @@ -0,0 +1,77 @@
>>>> +#undef TRACE_SYSTEM
>>>> +#define TRACE_SYSTEM hw_event
>>>
>>> ras
>>
>> Then, the header name should be called as "ras.h", otherwise an error happens:
>>
>> In file included from include/ras/hw_event.h:77:0,
>> from drivers/edac/edac_mc.c:38:
>> include/trace/define_trace.h:79:43: fatal error: ../../include/ras/ras.h: Arquivo ou diretório não encontrado
>
> From samples/trace_events/trace-events-sample.h:
>
> /*
> * TRACE_INCLUDE_FILE is not needed if the filename and TRACE_SYSTEM are equal
> */
> #define TRACE_INCLUDE_FILE trace-events-sample
>
> Thus, you could do:
>
> +++ b/include/ras/hw_event.h
>
> +undef TRACE_SYSTEM
> +define TRACE_SYSTEM ras
>
> [...]
>
> #define TRACE_INCLUDE_FILE hw_event
>
>
> -- Steve
Thanks, Steve!
I'll rename it to include/ras/ras_event.h
Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists