Compiling a Klogger Enabled Kernel next up previous contents
Next: Using Klogger at Runtime Up: The Klogger HOWTO Previous: Adding Support for Other   Contents

Compiling a Klogger Enabled Kernel

For simplicity, let us assume you have opened the Klogger distribution into a directory called KLOGGER.

Adding Klogger support is a simple process:

  1. Patching klogger
    Add the Klogger framework to the kernel using the base patch, and copy the base configuration file to the kernel root:
    foo[ linux-2.6.9 ] patch -p1 < KLOGGER/klogger-2.6.9/patch/klogger-2.6.9.patch
    foo[ linux-2.6.9 ] cp KLOGGER/klogger-2.6.9/patch/klogger.conf.base .klogger.conf.base
    

  2. Adding schemata
    Now you can either create your own schema, or use a ready made one supplied with the distribution (for example, the scheduler schema):
    foo[ linux-2.6.9 ] patch -p1 < \
    KLOGGER/klogger-2.6.9/schemata/sched/klogger-scheduler-schema-2.6.9.patch
    foo[ linux-2.6.9 ] cp KLOGGER/klogger-2.6.9/schemata/sched/klogger.conf.sched \
    .klogger.conf.sched
    

  3. Enable KLogger in the kernel configuration
    Enable [Kernel hacking --> KLogger] in the kernel configuration menus. A second option, [Kernel hacking --> KLogger benchmarks] also enables runtime measurements of each event's logging overhead (more on benchmarks in Section 5.6).

Now compile the kernel, and log like the wind...



Yoav Etsion 2007-09-09