public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SMBIOS / DMI Event Logs in Linux?
@ 2011-02-10 23:18 Mike Waychison
  2011-02-11  1:25 ` Greg KH
  2011-02-11  2:04 ` Rob Lippert
  0 siblings, 2 replies; 12+ messages in thread
From: Mike Waychison @ 2011-02-10 23:18 UTC (permalink / raw)
  To: Greg KH, Alan Cox, Tim Hockin, Robert Lippert; +Cc: LKML

Hey guys,

I need some guidance. Do either of you know of any attempts to have the 
kernel decode and display/interact with DMI type 15: System Event Log?

The event log I'm dealing with while cleaning up the "gsmi" driver 
interacts with a log that is modeled after the System Event Log.  I'm 
wondering if there is any precedent for a clean way to expose the event 
log, I'd like to use it (replacing the ioctls from my earlier patch 
series send-out).

FYI, we use OEM specific headers and descriptors, which probably doesn't 
help.

Do most folks that need access to this data rely on /dev/mem and 
dmidecode?  I'd like to avoid going that route if possible.

Lacking any better ideas though, I was thinking of something along the 
lines of the following:


$ cat /sys/firmware/gsmi/eventlog
<offset> <boot number> <recorded time> <quoted reason> <optional data>
...

with a single event log entry per line.
   <offset> would be the record number,
   <boot number> is the recorded boot number
   <recorded time> comes from each record,
   <quoted reason> is the English translation of Event Log Types from 
the DMTF standard + vendor extended types we use.
   <optional data> is space separated values associated with <quoted reason>

We also have a interfaces for clearing a fraction of the log, which I'm 
thinking is probably best expressed as a value of 0 through 100 written 
to a file, maybe /sys/firmware/gsmi/clear_eventlog ?

As well, we need to export to userland a way to append data to the log. 
  I was thinking we could write a parser to take in an entry and ensure 
it is well-formatted, but I'm a little hesitant to go this route as our 
records embed a timestamp, which I'd rather not have to figure out from 
within the kernel.  Perhaps a raw (binary) interface to write records to 
the log would suffice?  /sys/firmware/gsmi/append_to_eventlog ?

If so, does /sys/firmware/gsmi/raw_eventlog make sense too?


Thanks,

Mike Waychison

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-02-11 19:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-10 23:18 SMBIOS / DMI Event Logs in Linux? Mike Waychison
2011-02-11  1:25 ` Greg KH
2011-02-11  2:19   ` Mike Waychison
2011-02-11  3:19     ` Greg KH
2011-02-11  2:20   ` Tim Hockin
2011-02-11  3:20     ` Greg KH
     [not found]       ` <AANLkTin3tu-NiotpzWaQ_ubV0jumb_WsjEK5QGi5w56o@mail.gmail.com>
2011-02-11 18:00         ` Mike Waychison
2011-02-11 18:32           ` Greg KH
2011-02-11 18:56             ` Mike Waychison
2011-02-11 19:12               ` Greg KH
2011-02-11  9:54   ` Alan Cox
2011-02-11  2:04 ` Rob Lippert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox