Implement LTTng-UST perf counters support
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 17 Feb 2014 01:00:31 +0000 (20:00 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 5 May 2014 13:08:42 +0000 (09:08 -0400)
commitaa3514e96f12c13f681a81ea275dc51dd63473c8
tree324bba9f6d16a9bdb3aeed335afcbba38877e770
parentf263b7fd113e51d0737554e8232b8669e142a260
Implement LTTng-UST perf counters support

Introduce perf:cpu:* and perf:thread:* performance monitoring counter
contexts. perf:cpu: is used for kernel tracing, and perf:thread: is used
for UST. perf:* is kept for backward compatibility, but not shown in
lttng add-context --help anymore.

Example usages of performance counters have been adapted to this new
interface.

For the lttng.h API We introduce LTTNG_EVENT_CONTEXT_PERF_CPU_COUNTER
and LTTNG_EVENT_CONTEXT_PERF_THREAD_COUNTER as the API counterparts of
the new command line options. LTTNG_EVENT_CONTEXT_PERF_COUNTER is kept
for backward compatibility.

For ABIs with the tracers, introduce the new
LTTNG_UST_CONTEXT_PERF_THREAD_COUNTER to support this new UST feature.
Rename LTTNG_KERNEL_CONTEXT_PERF_COUNTER to
LTTNG_KERNEL_CONTEXT_PERF_CPU_COUNTER, following the same change in
lttng-modules (keeping the same enum entry value).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
doc/man/lttng.1
include/lttng/lttng.h
src/bin/lttng-sessiond/context.c
src/bin/lttng-sessiond/lttng-ust-abi.h
src/bin/lttng-sessiond/trace-ust.c
src/bin/lttng-sessiond/trace-ust.h
src/bin/lttng-sessiond/ust-app.c
src/bin/lttng/commands/add_context.c
src/common/kernel-ctl/kernel-ctl.c
src/common/lttng-kernel.h
This page took 0.026936 seconds and 4 git commands to generate.