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


Enable/Disable Specific Events

Sometimes a Klogger is compiled with a broad set of events, but during certain measurement one would like to log only a subset of these. As such, Klogger is equipped with a simple mechanism to block logging of specific events. Under the /proc/sys/klogger directory, you can find a special file named after each of the events compiled in. This special file is an event specific toggle switch. By writing the strings ``0'' or ``1''you can block or unblock logging of the specific event, respectively. Note that the overhead imposed by an event's logging code when it is disabled -- either specifically, or because Klogger is disabled entirely -- is similar.



Yoav Etsion 2007-09-09