Binary to Text Conversion next up previous contents
Next: Enable/Disable Specific Events Up: Using Klogger at Runtime Previous: Enable/Disable Logging   Contents


Binary to Text Conversion

When building Klogger with a specific set of schemata, a decoding utility is created for that specific kernel able to decode the binary log into a more human friendly, text formatted file. As mentioned earlier, the text format is basically an array of Perl Hashes, each represeting an event.

Assuming your Klogger kernel sources reside under KERN_ROOT, the decoder is compiled into

KERN_ROOT/kdecoder/klogger_decoder

This tool's operation is very simple: its only command line argument is the binary log, whose textual conversion is printed into the standard output. As such, the usual command line would look like:

KERN_ROOT/kdecoder/klogger_decoder /tmp/kernlog.dump.cpu0 > kernlog.cpu0.txt



Yoav Etsion 2007-09-09