summaryrefslogtreecommitdiff
path: root/trace/control.h
blob: bb543392586d3f8f0e514a418e92ffb5a4e63f1d (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
/*
 * Interface for configuring and controlling the state of tracing events.
 *
 * Copyright (C) 2011 LluĂ­s Vilanova <vilanova@ac.upc.edu>
 *
 * This work is licensed under the terms of the GNU GPL, version 2.  See
 * the COPYING file in the top-level directory.
 */

#ifndef TRACE_CONTROL_H
#define TRACE_CONTROL_H

#include <stdbool.h>


/** Initialize the tracing backend.
 *
 * @file Name of trace output file; may be NULL.
 *       Corresponds to commandline option "-trace file=...".
 * @return Whether the backend could be successfully initialized.
 */
bool trace_backend_init(const char *file);

#endif  /* TRACE_CONTROL_H */