Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Commit [5b4293] Maximize Restore History

small header file cleanup

John Levon John Levon 2003-09-15

removed libop/op_interface_25.h
changed daemon/Makefile.am
changed daemon/opd_image.c
changed daemon/opd_kernel.c
changed daemon/oprofiled.c
changed libop/Makefile.am
changed libop/op_config.h
changed libop/op_hw_config.h
changed ChangeLog
copied libop/op_config_25.h -> daemon/opd_interface.h
libop/op_interface_25.h
File was removed.
daemon/Makefile.am Diff Switch to side-by-side view
Loading...
daemon/opd_image.c Diff Switch to side-by-side view
Loading...
daemon/opd_kernel.c Diff Switch to side-by-side view
Loading...
daemon/oprofiled.c Diff Switch to side-by-side view
Loading...
libop/Makefile.am Diff Switch to side-by-side view
Loading...
libop/op_config.h Diff Switch to side-by-side view
Loading...
libop/op_hw_config.h Diff Switch to side-by-side view
Loading...
ChangeLog Diff Switch to side-by-side view
Loading...
libop/op_config_25.h to daemon/opd_interface.h
--- a/libop/op_config_25.h
+++ b/daemon/opd_interface.h
@@ -1,7 +1,7 @@
 /**
- * @file op_config_25.h
+ * @file opd_interface.h
  *
- * Parameters a user may want to change
+ * Module / user space interface for 2.6 kernels and above
  *
  * @remark Copyright 2002 OProfile authors
  * @remark Read the file COPYING
@@ -10,12 +10,22 @@
  * @author Philippe Elie
  */
 
-#ifndef OP_CONFIG_25_H
-#define OP_CONFIG_25_H
+#ifndef OPD_INTERFACE_H
+#define OPD_INTERFACE_H
 
-#include "op_config.h"
+#define CTX_SWITCH_CODE			1
+#define CPU_SWITCH_CODE			2
+#define COOKIE_SWITCH_CODE		3
+#define KERNEL_ENTER_SWITCH_CODE	4
+#define KERNEL_EXIT_SWITCH_CODE		5
+#define MODULE_LOADED_CODE              6
+#define CTX_TGID_CODE			7
+#define LAST_CODE			8
  
-#define OP_MOUNT "/dev/oprofile/"
-#define OP_DEVICE OP_MOUNT "buffer"
+/**
+ * Shift value to remove trailing zero on a dcookie value, 7 is sufficient
+ * for most architecture
+ */
+#define DCOOKIE_SHIFT	7
 
-#endif /* OP_CONFIG_25_H */
+#endif /* OPD_INTERFACE_H */