genevent-new base
[lttv.git] / genevent-new / README
CommitLineData
3583026d 1
2Mathieu Desnoyers -- November 2005
3
4This is a complete rework of genevent.
5
6The 'genevent' program parses event descriptions and generates
7the inline functions to record events in the kernel.
8
9There are several files in the directory:
10 genevent.c, genevent.h, crc32.tab, parser.c and parser.h
11
12In fact, crc32.tab, parser.c and parser.h are the same files as
13those in LTT library.
14
15Here is a brief description of how to use genevent.
16
17make
18make install
19
20
21* Add new events to the kernel with genevent
22
23su -
24cd /usr/local/share/LinuxTraceToolkitViewer/facilities
25cp process.xml yourfacility.xml
26 * edit yourfacility.xml to fit your needs.
27cd /tmp
28/usr/local/bin/genevent /usr/local/share/LinuxTraceToolkitViewer/yourfacility.xml
29cp ltt-facility-yourfacility.h ltt-facility-id-yourfacility.h \
30 /usr/src/linux-2.6.12-rc4-mm2-lttng-0.2/include/linux/ltt
31cp ltt-facility-loader-yourfacility.c ltt-facility-loader-yourfacility.h \
32 /usr/src/linux-2.6.12-rc4-mm2-lttng-0.2/ltt
33 * edit the kernel file you want to instrument
34 - Add #include <linux/ltt/ltt-facility-yourfacility.h> at the beginning
35 of the file.
36 - Add a call to the tracing functions. See their names and parameters in
37 /usr/src/linux-2.6.12-rc4-mm2-lttng-0.2/include/linux/ltt/ltt-facility-yourfacility.h
38
39
This page took 0.023287 seconds and 4 git commands to generate.