ceph/src/tracing
Pan Liu 9debf5c98a librbd: support to list snapshot time stamp
Fixes: http://tracker.ceph.com/issues/808
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-31 03:18:32 +08:00
..
.gitignore
CMakeLists.txt Merge pull request #12492 from yehudasa/wip-func-oid-tracing 2017-01-18 15:19:21 -08:00
eventtrace.c common: extend lttng tracing infrastructure 2017-01-16 13:58:57 -08:00
eventtrace.tp common: extend lttng tracing infrastructure 2017-01-16 13:58:57 -08:00
librados.c
librados.tp src/: remove CLONE_RANGE, ASSERT_SRC_VERSION, SRC_CMPXATTR 2017-01-17 09:41:23 -08:00
librbd.c
librbd.tp librbd: support to list snapshot time stamp 2017-01-31 03:18:32 +08:00
objectstore.c
objectstore.tp
oprequest.c
oprequest.tp
osd.c
osd.tp
pg.c
pg.tp
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). And add a C source file to be compiled into the tracepoint provider shared object, in which TRACEPOINT_DEFINE should be defined. See LTTng document for details. Place the .tp and the .c files into the src/tracing directory and modify the CMake file src/tracing/CMakeLists.txt accordingly.