Tor
0.4.9.2-alpha-dev
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
c
d
f
g
h
l
m
n
o
p
r
s
v
Enumerations
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
g
h
i
m
n
o
p
q
r
s
t
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
lib
trace
lttng
lttng.h
Go to the documentation of this file.
1
/* Copyright (c) 2020, The Tor Project, Inc. */
2
/* See LICENSE for licensing information */
3
4
/**
5
* \file lttng.h
6
* \brief Header file for lttng.c.
7
**/
8
9
#ifndef TOR_TRACE_LTTNG_LTTNG_H
10
#define TOR_TRACE_LTTNG_LTTNG_H
11
12
#ifdef USE_TRACING_INSTRUMENTATION_LTTNG
13
14
#include <lttng/tracepoint.h>
15
16
/* Map event to an LTTng tracepoint. */
17
#define TOR_TRACE_LTTNG(subsystem, event_name, ...) \
18
tracepoint(subsystem, event_name, ## __VA_ARGS__)
19
20
#else
/* !defined(USE_TRACING_INSTRUMENTATION_LTTNG) */
21
22
/* NOP event. */
23
#define TOR_TRACE_LTTNG(subsystem, event_name, ...)
24
25
#endif
/* !defined(USE_TRACING_INSTRUMENTATION_LTTNG) */
26
27
#endif
/* TOR_TRACE_LTTNG_LTTNG_H */
28
Generated by
1.9.4