1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []
>
5 <book id=
"Tracepoints">
7 <title>The Linux Kernel Tracepoint API
</title>
11 <firstname>Jason
</firstname>
12 <surname>Baron
</surname>
15 <email>jbaron@redhat.com
</email>
20 <firstname>William
</firstname>
21 <surname>Cohen
</surname>
24 <email>wcohen@redhat.com
</email>
32 This documentation is free software; you can redistribute
33 it and/or modify it under the terms of the GNU General Public
34 License as published by the Free Software Foundation; either
35 version
2 of the License, or (at your option) any later
40 This program is distributed in the hope that it will be
41 useful, but WITHOUT ANY WARRANTY; without even the implied
42 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43 See the GNU General Public License for more details.
47 You should have received a copy of the GNU General Public
48 License along with this program; if not, write to the Free
49 Software Foundation, Inc.,
59 Temple Place, Suite
330, Boston,
54 For more details see the file COPYING in the source
55 distribution of Linux.
62 <title>Introduction
</title>
64 Tracepoints are static probe points that are located in strategic points
65 throughout the kernel. 'Probes' register/unregister with tracepoints
66 via a callback mechanism. The 'probes' are strictly typed functions that
67 are passed a unique set of parameters defined by each tracepoint.
71 From this simple callback mechanism, 'probes' can be used to profile, debug,
72 and understand kernel behavior. There are a number of tools that provide a
73 framework for using 'probes'. These tools include Systemtap, ftrace, and
78 Tracepoints are defined in a number of header files via various macros. Thus,
79 the purpose of this document is to provide a clear accounting of the available
80 tracepoints. The intention is to understand not only what tracepoints are
81 available but also to understand where future tracepoints might be added.
85 The API presented has functions of the form:
86 <function>trace_tracepointname(function parameters)
</function>. These are the
87 tracepoints callbacks that are found throughout the code. Registering and
88 unregistering probes with these callback sites is covered in the
89 <filename>Documentation/trace/*
</filename> directory.
95 !Iinclude/trace/events/irq.h
100 !Iinclude/trace/events/signal.h
104 <title>Block IO
</title>
105 !Iinclude/trace/events/block.h
108 <chapter id=
"workqueue">
109 <title>Workqueue
</title>
110 !Iinclude/trace/events/workqueue.h