blob: 8ede98bb0238c4ef29fab4b62c8a6cad654c6c74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* Copyright (c) 2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file lttng.h
* \brief Header file for lttng.c.
**/
#ifndef TOR_TRACE_LTTNG_LTTNG_H
#define TOR_TRACE_LTTNG_LTTNG_H
#ifdef USE_TRACING_INSTRUMENTATION_LTTNG
#include <lttng/tracepoint.h>
/* Map event to an LTTng tracepoint. */
#define TOR_TRACE_LTTNG(subsystem, event_name, ...) \
tracepoint(subsystem, event_name, ## __VA_ARGS__)
#else /* !defined(USE_TRACING_INSTRUMENTATION_LTTNG) */
/* NOP event. */
#define TOR_TRACE_LTTNG(subsystem, event_name, ...)
#endif /* !defined(USE_TRACING_INSTRUMENTATION_LTTNG) */
#endif /* TOR_TRACE_LTTNG_LTTNG_H */
|