Next: Using Klogger at Runtime
Up: The Klogger HOWTO
Previous: Adding Support for Other
Contents
For simplicity, let us assume you have opened the Klogger distribution into
a directory called KLOGGER.
Adding Klogger support is a simple process:
- 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
- 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
- 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