Jim Keniston wrote: > Subject: [PATCH - RFC] [1/2] 2.6 must-fix list - kernel error reporting > > Andrew Morton's 2.6 must-fix list includes the following item: > > o We need a kernel side API for reporting error events to userspace (could > > be async to 2.6 itself) > > > > (Prototype core based on netlink exists) > > The enclosed patches provide a mechanism for reporting error events > to user-mode applications via netlink. This mechanism supplements > the text-oriented printk mechanism, providing a way to log binary > data or a mixture of text+binary. > ... > Here are updated patches, reflecting the following changes: Patch #1 (kerror.c et al): - Given James Morris's patch to af_netlink.c (Rev 1.30 in BitKeeper), I was able to remove kerror_netlink_rcv(). (My patches work fine without this, except that any packets sent to the NETLINK_KERROR socket by an ill-behaved, root-owned application would accumulate in the kernel's socket buffer.) Patch #2 (evlog.c et al -- see accompanying post): - Paraphrase dropped packets via printk() when nobody's listening to netlink socket. - Added support for 'z' qualifier, to resync with vsnprintf(). - In evlog.h, reordered members of struct kern_log_entry to address alignment worries. These patches work for both 2.5.74 and 2.5.75. Jim Keniston IBM Linux Technology Center http://prdownloads.sourceforge.net/evlog/kerror-2.5.75.patch?download http://prdownloads.sourceforge.net/evlog/evlog-2.5.75.patch?download http://prdownloads.sourceforge.net/evlog/kerrord.tar.gz?download