Project

General

Profile

Bug #1192

Web documentation improvement: describe use of CREATE_TRACE_POINTS for lttng-ust instrumentation

Added by Mathieu Desnoyers 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/05/2019
Due date:
% Done:

0%

Estimated time:

Description

Following discussion with David Goulet who is currently instrumenting the tor project with lttng-ust, it appears that the following use-case should be documented more clearly in the web documentation:

  • Instrumentation of applications with LTTng-UST

A tracepoint provider header should be included once per application within a compile unit after a #define CREATE_TRACE_POINTS.

It can be included multiple times throughout other compile units of the applications, but make sure the CREATE_TRACE_POINTS macro is not defined before those include, otherwise LTTng-UST will complain about multiple tracepoint probe definitions.

Also available in: Atom PDF