root / trace / control.h @ e4858974
History | View | Annotate | Download (635 Bytes)
1 |
/*
|
---|---|
2 |
* Interface for configuring and controlling the state of tracing events.
|
3 |
*
|
4 |
* Copyright (C) 2011 Lluís Vilanova <vilanova@ac.upc.edu>
|
5 |
*
|
6 |
* This work is licensed under the terms of the GNU GPL, version 2. See
|
7 |
* the COPYING file in the top-level directory.
|
8 |
*/
|
9 |
|
10 |
#ifndef TRACE_CONTROL_H
|
11 |
#define TRACE_CONTROL_H
|
12 |
|
13 |
#include <stdbool.h> |
14 |
|
15 |
|
16 |
/** Initialize the tracing backend.
|
17 |
*
|
18 |
* @file Name of trace output file; may be NULL.
|
19 |
* Corresponds to commandline option "-trace file=...".
|
20 |
* @return Whether the backend could be successfully initialized.
|
21 |
*/
|
22 |
bool trace_backend_init(const char *file); |
23 |
|
24 |
#endif /* TRACE_CONTROL_H */ |