Revision 22890ab5 simpletrace.h
b/simpletrace.h | ||
---|---|---|
12 | 12 |
#define SIMPLETRACE_H |
13 | 13 |
|
14 | 14 |
#include <stdint.h> |
15 |
#include <stdbool.h> |
|
16 |
#include <stdio.h> |
|
15 | 17 |
|
16 | 18 |
typedef uint64_t TraceEventID; |
17 | 19 |
|
20 |
typedef struct { |
|
21 |
const char *tp_name; |
|
22 |
bool state; |
|
23 |
} TraceEvent; |
|
24 |
|
|
18 | 25 |
void trace0(TraceEventID event); |
19 | 26 |
void trace1(TraceEventID event, uint64_t x1); |
20 | 27 |
void trace2(TraceEventID event, uint64_t x1, uint64_t x2); |
... | ... | |
22 | 29 |
void trace4(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t x4); |
23 | 30 |
void trace5(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t x4, uint64_t x5); |
24 | 31 |
void trace6(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t x4, uint64_t x5, uint64_t x6); |
32 |
void st_print_trace(FILE *stream, int (*stream_printf)(FILE *stream, const char *fmt, ...)); |
|
33 |
void st_print_trace_events(FILE *stream, int (*stream_printf)(FILE *stream, const char *fmt, ...)); |
|
34 |
void st_change_trace_event_state(const char *tname, bool tstate); |
|
25 | 35 |
|
26 | 36 |
#endif /* SIMPLETRACE_H */ |
Also available in: Unified diff