Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /libop/op_config.h [a8d9ee] .. [fcb818] Maximize Restore

  Switch to side-by-side view

--- a/libop/op_config.h
+++ b/libop/op_config.h
@@ -27,6 +27,29 @@
 
 #define OP_SESSION_DIR_DEFAULT "/var/lib/oprofile/"
 
+
+/*@{\name module default/min/max settings */
+
+/** 65536 * sizeof(op_sample) */
+#define OP_DEFAULT_BUF_SIZE 65536
+/**
+ * we don't try to wake-up daemon until it remains more than this free entry
+ * in eviction buffer
+ */
+#define OP_PRE_WATERMARK(buffer_size)			\
+	(((buffer_size) / 8) < OP_MIN_PRE_WATERMARK	\
+		? OP_MIN_PRE_WATERMARK			\
+		: (buffer_size) / 8)
+/** minimal buffer water mark before we try to wakeup daemon */
+#define OP_MIN_PRE_WATERMARK 8192
+/** maximum number of entry in samples eviction buffer */
+#define OP_MAX_BUF_SIZE	1048576
+/** minimum number of entry in samples eviction buffer */
+#define OP_MIN_BUF_SIZE	(32768 + OP_PRE_WATERMARK(32768))
+
+/** maximum sampling rate when using RTC */
+#define OP_MAX_RTC_COUNT	4096
+
 /* 
  * various paths, corresponding to opcontrol, that should be
  * initialized by init_op_config_dirs() above.