op_config_24.h File Reference

Parameters a user may want to change. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define OP_MOUNT   "/proc/sys/dev/oprofile/"
#define OP_HASH_MAP_NR   4093
 nr entries in hash map.
#define POOL_SIZE   65536
 size of string pool in bytes
#define NR_CPUS   32
 maximum number of cpus present in the box



#define OP_DEFAULT_BUF_SIZE   65536
 65536 * sizeof(op_sample)
#define OP_PRE_WATERMARK(buffer_size)
 we don't try to wake-up daemon until it remains more than this free entry in eviction buffer
#define OP_MIN_PRE_WATERMARK   8192
 minimal buffer water mark before we try to wakeup daemon
#define OP_MAX_BUF_SIZE   1048576
 maximum number of entry in samples eviction buffer
#define OP_MIN_BUF_SIZE   (32768 + OP_PRE_WATERMARK(32768))
 minimum number of entry in samples eviction buffer
#define OP_DEFAULT_NOTE_SIZE   16384
 16384 * sizeof(op_note) = 273680 bytes default
#define OP_PRE_NOTE_WATERMARK(note_size)
 we don't try to wake-up daemon until it remains more than this free entry in note buffer
#define OP_MIN_NOTE_PRE_WATERMARK   512
 minimal note buffer water mark before we try to wakeup daemon
#define OP_MAX_NOTE_TABLE_SIZE   1048576
 maximum number of entry in note buffer
#define OP_MIN_NOTE_TABLE_SIZE   (1024 + OP_PRE_NOTE_WATERMARK(1024))
 minimum number of entry in note buffer
#define OP_MAX_RTC_COUNT   4096
 maximum sampling rate when using RTC
#define OP_MIN_RTC_COUNT   2
 minimum sampling rate when using RTC

Variables

char op_device []
char op_note_device []
char op_hash_device []

Detailed Description

Parameters a user may want to change.

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie

Define Documentation

#define NR_CPUS   32

maximum number of cpus present in the box

Referenced by opd_close_image_samples_files().

#define OP_DEFAULT_BUF_SIZE   65536

65536 * sizeof(op_sample)

#define OP_DEFAULT_NOTE_SIZE   16384

16384 * sizeof(op_note) = 273680 bytes default

#define OP_HASH_MAP_NR   4093

nr entries in hash map.

This is the maximum number of name components allowed. Must be a prime number

Referenced by opd_cleanup_hash_name(), and opd_handle_mapping().

#define OP_MAX_BUF_SIZE   1048576

maximum number of entry in samples eviction buffer

Referenced by oprof_start::oprof_start().

#define OP_MAX_NOTE_TABLE_SIZE   1048576

maximum number of entry in note buffer

Referenced by oprof_start::oprof_start().

#define OP_MAX_RTC_COUNT   4096

maximum sampling rate when using RTC

#define OP_MIN_BUF_SIZE   (32768 + OP_PRE_WATERMARK(32768))

minimum number of entry in samples eviction buffer

Referenced by oprof_start::oprof_start().

#define OP_MIN_NOTE_PRE_WATERMARK   512

minimal note buffer water mark before we try to wakeup daemon

#define OP_MIN_NOTE_TABLE_SIZE   (1024 + OP_PRE_NOTE_WATERMARK(1024))

minimum number of entry in note buffer

Referenced by oprof_start::oprof_start().

#define OP_MIN_PRE_WATERMARK   8192

minimal buffer water mark before we try to wakeup daemon

#define OP_MIN_RTC_COUNT   2

minimum sampling rate when using RTC

#define OP_MOUNT   "/proc/sys/dev/oprofile/"

Referenced by opd_print_24_stats().

#define OP_PRE_NOTE_WATERMARK ( note_size   ) 
Value:
(((note_size) / 32) < OP_MIN_NOTE_PRE_WATERMARK \
                ? OP_MIN_NOTE_PRE_WATERMARK             \
                : (note_size) / 32)

we don't try to wake-up daemon until it remains more than this free entry in note buffer

#define OP_PRE_WATERMARK ( buffer_size   ) 
Value:
(((buffer_size) / 8) < OP_MIN_PRE_WATERMARK     \
                ? OP_MIN_PRE_WATERMARK                  \
                : (buffer_size) / 8)

we don't try to wake-up daemon until it remains more than this free entry in eviction buffer

#define POOL_SIZE   65536

size of string pool in bytes


Variable Documentation

char op_device[]

Referenced by init_op_config_dirs().

Referenced by init_op_config_dirs().

Referenced by init_op_config_dirs().


Generated on 27 Aug 2012 for oprofile by  doxygen 1.6.1