Disclosed herein are a method and apparatus for logging the execution
history of an operating system kernel by including an event description
in a production image of the kernel. A command is received in order to
enable an event description. The event description is enabled according
to the command while the operating system kernel is executing. A
description of an event is logged in an event log when the event occurs
and when the event is enabled.