Abstract HTML Views: 467 PDF Downloads: 253 Total Views/Downloads: 720
Abstract HTML Views: 308 PDF Downloads: 169 Total Views/Downloads: 477
With kernel static tracepoints, it is now possible to add instrumentation to the Linux kernel and obtain a low
overhead trace of the whole system. However, these static tracepoints may be insufficient to diagnose the source of a
functional or performance problem. Dynamic instrumentation fills the gap by enabling the insertion of additional
tracepoints in other locations at run time.
This article presents a new approach for tracing the Linux kernel with dynamic and static tracepoints. These tracepoints
will be conditional. Conditions are defined using complex expressions that employ the code variables and make use of
arithmetic and logic operations. These expressions are written using C-like syntax.
Both static and dynamic tracepoints will evaluate and collect expressions similar to those used for conditions. In addition,
static tracepoints will collect the static tracepoint data, as defined by the TRACE_EVENT macro used to define
tracepoints in the Linux kernel.
Our tool was implemented based on GDB and KGTP, which is a GDB stub in kernel-space that partially implements