ceph/src/tracing
Adam Crume a35b5d2c1b lttng: Don't build trace headers when lttng is disabled
Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-08-21 10:57:34 -07:00
..
.gitignore tracing: automake-ify tracepoint generation 2014-08-21 10:57:27 -07:00
librados.tp lttng: Trace librados C API 2014-08-21 10:57:28 -07:00
librbd.tp rbd-replay: Remove extent tracepoints and inline extents 2014-08-21 10:57:33 -07:00
Makefile.am lttng: Don't build trace headers when lttng is disabled 2014-08-21 10:57:34 -07:00
objectstore.tp tracing: instrument filestore 2014-08-21 10:57:29 -07:00
oprequest.tp lttng: Trace OpRequest 2014-08-21 10:57:27 -07:00
osd.tp lttng: Remove 'ver' from trace in code for CEPH_OSD_OP_NOTIFY 2014-08-21 10:57:28 -07:00
pg.tp lttng: Add rmw_flags to tracepoint in PG::queue_op 2014-08-21 10:57:27 -07:00
README.md tracing: automake-ify tracepoint generation 2014-08-21 10:57:27 -07:00
tracing-common.h lttng: Fix ceph_ctf_stringp 2014-08-21 10:57:32 -07:00

Installation

The LTTng libraries that ship with Ubuntu 12.04 have been very buggy, and the generated header files using lttng-gen-tp have needed to be fixed just to compile in the Ceph tree. The packages available in Ubuntu 14.04 seem to work alright, and for older versions please install LTTng from the LTTng PPA.

https://launchpad.net/~lttng/+archive/ppa

Then install as normal

apt-get install lttng-tools liblttng-ust-dev

Add/Update Provider

Create tracepoint definition file

Add tracepoint definitions for the provider into a .tp file. Documentation on defining a tracepoint can be found in man lttng-ust. By convention files are named according to the logical sub-system they correspond to (e.g. mutex.tp, pg.tp). Place the .tp file into the src/tracing directory and modify the automake file src/tracing/Makefile.am accordingly.