Completely restructured profiler code cutting all the unused code
[akaros.git] / kern / include / profiler.h
1
2 #ifndef ROS_KERN_INC_PROFILER_H
3 #define ROS_KERN_INC_PROFILER_H
4
5 #include <sys/types.h>
6 #include <trap.h>
7
8 int profiler_init(void);
9 void profiler_cleanup(void);
10 void profiler_add_backtrace(uintptr_t pc, uintptr_t fp);
11 void profiler_add_userpc(uintptr_t pc);
12 void profiler_add_trace(uintptr_t eip);
13 void profiler_control_trace(int onoff);
14 void profiler_add_hw_sample(struct hw_trapframe *hw_tf);
15 int profiler_read(void *va, int);
16 int profiler_size(void);
17
18 #endif /* ROS_KERN_INC_PROFILER_H */