Re: Using kevent for event logging?

From: Andrew Morton
Date: Fri Feb 16 2007 - 13:22:07 EST


On Fri, 16 Feb 2007 15:57:08 +0100 Michael Holzheu <holzheu2@xxxxxxxxxxxxxxxxxx> wrote:

> Hallo Evgeniy,
>
> On s390 we are looking for a good mechanism to notify userspace
> about kernel events. Currently such events are handled with printks
> in most cases. There are automation tools, which want to automatically
> react on kernel events. To get the event information, these tools are
> parsing printks, which is not a really good mechanism for that
> purpose.
>
> When I read about kevents, I was wondering, if it could be used to solve
> this problem. E.g. it would be possible to put an event number into a
> kevent and provide another interface to get the complete event data.
>

Wouldn't one simply transport the info across netlink, use kevent (or
select/poll/whatever) for readiness notification?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/