[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Application Idea - kernel logger
- From: Doug Rogers <rogers@...>
- Date: Thu, 13 Oct 2005 06:35:09 -0400
Thomas Harning Jr. wrote:
> I was trying to deal with some issues with my kernel logger and
> realized that if a logger were designed with Lua in mind, it oughtta
> be pretty easy to configure it exactly the way I wanted it.
> Any ideas?
So far I have refrained from adding Lua to the kernel side for
debug/message logging (under LynxOS). It would require thread/interrupt
synchronization. This can be solved, of course, despite the possible
garbage collection issues. But I have found that having interrupts
disabled for the short period of time it takes to check an integer value
and write a small record to the end of a FIFO provides enough
flexibility that I do not need anything more elaborate on the kernel side.
But I do use Lua in my logger daemon in order to get/set debug levels
for registered drivers. I used Lua to avoid the necessity of writing a
command interface. It has been unchanged for a long time now - I never
did get around to more complex reading/selection when pulling messages
out of the FIFO. I haven't really needed it.
I will be interested to see what you come up with.
Doug
--
--__-__-____------_--_-_-_-___-___-____-_--_-___--____
Doug Rogers - ICI - V:703.893.2007x220 www.innocon.com
-_-_--_------____-_-_-___-_--___-_-___-_-_---_--_-__-_