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

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

  Switch to unified view

a/libop/op_config.h b/libop/op_config.h
...
...
25
 */
25
 */
26
void init_op_config_dirs(char const * session_dir);
26
void init_op_config_dirs(char const * session_dir);
27
27
28
#define OP_SESSION_DIR_DEFAULT "/var/lib/oprofile/"
28
#define OP_SESSION_DIR_DEFAULT "/var/lib/oprofile/"
29
29
30
31
/*@{\name module default/min/max settings */
32
33
/** 65536 * sizeof(op_sample) */
34
#define OP_DEFAULT_BUF_SIZE 65536
35
/**
36
 * we don't try to wake-up daemon until it remains more than this free entry
37
 * in eviction buffer
38
 */
39
#define OP_PRE_WATERMARK(buffer_size)         \
40
  (((buffer_size) / 8) < OP_MIN_PRE_WATERMARK \
41
      ? OP_MIN_PRE_WATERMARK          \
42
      : (buffer_size) / 8)
43
/** minimal buffer water mark before we try to wakeup daemon */
44
#define OP_MIN_PRE_WATERMARK 8192
45
/** maximum number of entry in samples eviction buffer */
46
#define OP_MAX_BUF_SIZE   1048576
47
/** minimum number of entry in samples eviction buffer */
48
#define OP_MIN_BUF_SIZE   (32768 + OP_PRE_WATERMARK(32768))
49
50
/** maximum sampling rate when using RTC */
51
#define OP_MAX_RTC_COUNT  4096
52
30
/* 
53
/* 
31
 * various paths, corresponding to opcontrol, that should be
54
 * various paths, corresponding to opcontrol, that should be
32
 * initialized by init_op_config_dirs() above. 
55
 * initialized by init_op_config_dirs() above. 
33
 */
56
 */
34
extern char op_session_dir[];
57
extern char op_session_dir[];