oprof: Fixes warning and #includes
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 27 May 2014 17:18:21 +0000 (10:18 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 27 May 2014 17:18:21 +0000 (10:18 -0700)
kern/include/kdebug.h
kern/include/oprofile.h

index 9c7143e..2c0dd11 100644 (file)
@@ -32,8 +32,7 @@ void __print_func_exit(const char *func, const char *file);
 void hexdump(void *v, int length);
 void pahexdump(uintptr_t pa, int length);
 
-/* circular shit... */
-void oprofile_add_trace(unsigned long pc);
+#include <oprofile.h>
 #define TRACEME() oprofile_add_backtrace(read_bp())
 
 #endif /* ROS_KERN_KDEBUG_H */
index a650201..479a9aa 100644 (file)
@@ -95,6 +95,8 @@ void oprofile_add_sample(void* const regs, unsigned long event);
 void oprofile_add_ext_sample(unsigned long pc, void * const regs,
                                unsigned long event, int is_kernel);
 
+/* circular include stuff... */
+struct proc;
 /**
  * Add an hardware sample.
  */