On 11/10/2016 02:47 PM, Frank Filz wrote:
>> On 11/08/2016 05:47 PM, Frank Filz wrote:
>>> We discussed LTTng in today's call, and looking at the code I have
>>> some
>>> thoughts:
>>>
>>> 1. Ganesha currently has no way to disable all log facilities, so with
>>> LTTng, we would still be logging to a file or syslog or something.
>>>
>>> 2. One option is to make LTTng a log facility, though to get the "right"
>>> stuff in it, we would need to enhance the options a log facility can
>>> specify
>>>
>>> 3.  Another option is to specify a NULL facility that does nothing (so
>>> the existing LTTng tracepoint function just does it's work
>>>
>>> 4. I'm wondering if LTTng does anything to associate a log message
>>> with a particular thread. For debugging, it is very handy to know
>>> which thread emitted a particular message. I assume it would be easy
>>> to add the thread name as another parameter to tracepoint, but there
>>> might be a better way to handle it (it IS nice to have the threads by
>>> name, but most of the time they're worker threads, so if LTTng already
>>> logs pthread_self, that might be enough.
>>
>> Thread ID is already included in Ganesha log messages.
>
> But not in the part that goes to LTTng, at least the way I understand it,
> maybe I misread something... Actually, we need to clean up that code that
> decides what to put in the header for different log facilities, if we move
> LTTng to being just another log facility, then I would be very inclined to
> change how the headers are handled...
>

The entire formatted message (including thread ID) is passed to LTTNG. 
It would need parsing, but it's there.

Daniel


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to