ceph/src/tracing
Yehuda Sadeh e2fcfdf026 librados: add mtime2() that uses timespec and ceph::real_time
Need for setting higher resolution time

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-04 15:13:31 -08:00
..
.gitignore
CMakeLists.txt cmake: installing _tp libraries into lib 2016-02-25 14:02:11 -05:00
librados.c
librados.tp librados: add mtime2() that uses timespec and ceph::real_time 2016-03-04 15:13:31 -08:00
librbd.c
librbd.tp
Makefile.am
objectstore.c
objectstore.tp os/: add try_rename 2016-02-25 11:13:55 -08:00
oprequest.c
oprequest.tp
osd.c
osd.tp
pg.c
pg.tp
README.md
tracing-common.h librados: add mtime2() that uses timespec and ceph::real_time 2016-03-04 15:13:31 -08: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.