ceph/src/tracing
Sage Weil f928f68347 Merge remote-tracking branch 'gh/wip-assert-version'
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-02-05 02:18:06 -08:00
..
.gitignore
librados.tp librados: add missing tracepoints 2015-02-02 02:46:10 -08:00
librbd.tp librbd: added get_flags API methods 2015-02-02 23:24:09 -05:00
Makefile.am
objectstore.tp lttng: add int type definitions 2014-12-10 18:48:43 -07:00
oprequest.tp lttng: add int type definitions 2014-12-10 18:48:43 -07:00
osd.tp Merge remote-tracking branch 'gh/master' into wip-watch-notify 2014-12-16 14:02:32 -08:00
pg.tp lttng: add int type definitions 2014-12-10 18:48:43 -07:00
README.md
tracing-common.h

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.