User: Password:
|
|
Subscribe / Log in / New account

More precision, pretty please?

More precision, pretty please?

Posted May 17, 2012 15:30 UTC (Thu) by vrfy (subscriber, #13362)
In reply to: More precision, pretty please? by renox
Parent article: Various tweaks to printk()

Things that need the raw data should use the /dev/kmsg interface, not the human readable deltas in the text output of /proc/kmsgm, syslog(), or the console.

The nice thing with the new infrastructure is that all this is only calculated during the output, and not during the recording of the data. So the real data is all available and not affected by any of the timestamp output options which might get added.


(Log in to post comments)

More precision, pretty please?

Posted May 17, 2012 18:56 UTC (Thu) by dlang (subscriber, #313) [Link]

this requires that you know ahead of time that you are going to have a problem that you need to analyze.

the vast majority of the time you only find out afterwords, and as a result, you are stuck with whatever data was written to log files (i.e. syslog)

More precision, pretty please?

Posted May 17, 2012 23:16 UTC (Thu) by vrfy (subscriber, #13362) [Link]

Sure, if you are stuck in the 80's with plain old syslog, you get plain old syslog. :)

More precision, pretty please?

Posted May 18, 2012 0:03 UTC (Fri) by dlang (subscriber, #313) [Link]

what form or logging do you have on your system that is storing the raw data somewhere?

by the way, syslog today is about as different from 80's syslog as linux today is from linux in the early 90's. it's backwards compatible so most people don't have to deal with the differences, but there are vast new capabilities

More precision, pretty please?

Posted May 18, 2012 2:01 UTC (Fri) by vrfy (subscriber, #13362) [Link]

$ journalctl -o export

__CURSOR=s=b9d82f2af1474b40a9071646c5fb4e92;i=3de;b=17c0ad3537824db790049ffa3960b690;m=656e3d;t=4c03f10a04953;x=16f15d45d2a7d49e;p=system.journal
__REALTIME_TIMESTAMP=1337277001255251
__MONOTONIC_TIMESTAMP=6647357
_BOOT_ID=17c0ad3537824db790049ffa3960b690
_SOURCE_MONOTONIC_TIMESTAMP=6766042
_TRANSPORT=kernel
PRIORITY=6
SYSLOG_IDENTIFIER=kernel
MESSAGE=[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
_MACHINE_ID=ab0fa8cb1d428ef153d49b2a8c7c18cc
_HOSTNAME=mop


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds