Tor 0.4.9.0-alpha-dev
trace_sys.c
1/* Copyright (c) 2018-2021, The Tor Project, Inc. */
2/* See LICENSE for licensing information */
3
4/**
5 * \file log_sys.c
6 * \brief Setup and tear down the tracing module.
7 **/
8
9#include "lib/subsys/subsys.h"
10
11#include "lib/trace/trace.h"
12#include "lib/trace/trace_sys.h"
13
14static int
15subsys_tracing_initialize(void)
16{
18 return 0;
19}
20
21static void
22subsys_tracing_shutdown(void)
23{
25}
26
27const subsys_fns_t sys_tracing = {
29
30 .name = "tracing",
31 .supported = true,
32 .level = TRACE_SUBSYS_LEVEL,
33
34 .initialize = subsys_tracing_initialize,
35 .shutdown = subsys_tracing_shutdown,
36};
Types used to declare a subsystem.
#define SUBSYS_DECLARE_LOCATION()
Definition: subsys.h:211
void tor_trace_free_all(void)
Definition: trace.c:21
void tor_trace_init(void)
Definition: trace.c:15
Header for trace.c.