-
Notifications
You must be signed in to change notification settings - Fork 1
/
trace.h
29 lines (21 loc) · 625 Bytes
/
trace.h
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
29
#ifndef TRACE_H
#define TRACE_H
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <time.h>
#include <traceevent/event-parse.h>
#include <traceevent/kbuffer.h>
#include "config.h"
struct tracer;
struct tracer *alloc_tracer(struct k_race_config *config);
void free_tracer(struct tracer *clr);
int ftrace_init(struct tracer *clr);
int tracer_add_pid(struct tracer *clr, pid_t pid);
int ftrace_exit(void);
int tracer_collect_stats(struct tracer *clr, int *entries,
int *counts, int *triggers);
int ftrace_overrun(unsigned int *overrun);
int disable_tracing(void);
int enable_tracing(void);
#endif