op_config.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 OPERF_INDEX_OF_FIRST_LOST_STAT   3
#define OPERF_WARN_LOST_SAMPLES_THRESHOLD   0.0001
#define OP_SESSION_DIR_DEFAULT   "/var/lib/oprofile/"

Enumerations

enum  {
  OPERF_SAMPLES, OPERF_KERNEL, OPERF_PROCESS, OPERF_INVALID_CTX,
  OPERF_LOST_KERNEL, OPERF_LOST_SAMPLEFILE, OPERF_LOST_NO_MAPPING, OPERF_NO_APP_KERNEL_SAMPLE,
  OPERF_NO_APP_USER_SAMPLE, OPERF_BT_LOST_NO_MAPPING, OPERF_LOST_INVALID_HYPERV_ADDR, OPERF_RECORD_LOST_SAMPLE,
  OPERF_MAX_STATS
}

Functions

void init_op_config_dirs (char const *session_dir)
 must be called to initialize the paths below.

Variables

char * stats_filenames []



#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_MAX_RTC_COUNT   4096
 maximum sampling rate when using RTC
#define DEBUGDIR   "/usr/lib/debug"
#define OPD_MAGIC   "DAE\n"
#define OPD_VERSION   0x12
#define OP_MIN_CPU_BUF_SIZE   2048
#define OP_MAX_CPU_BUF_SIZE   131072
char op_session_dir []
char op_samples_dir []
char op_samples_current_dir []
char op_lock_file []
char op_log_file []
char op_pipe_file []
char op_dump_status []

Detailed Description

Parameters a user may want to change.

See also op_config_24.h

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

Define Documentation

#define DEBUGDIR   "/usr/lib/debug"
#define OP_DEFAULT_BUF_SIZE   65536

65536 * sizeof(op_sample)

#define OP_MAX_BUF_SIZE   1048576

maximum number of entry in samples eviction buffer

Referenced by oprof_start::oprof_start().

#define OP_MAX_CPU_BUF_SIZE   131072
#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_CPU_BUF_SIZE   2048
#define OP_MIN_PRE_WATERMARK   8192

minimal buffer water mark before we try to wakeup daemon

#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 OP_SESSION_DIR_DEFAULT   "/var/lib/oprofile/"
#define OPD_MAGIC   "DAE\n"

Referenced by fill_header(), main(), and read_header().

#define OPD_VERSION   0x12

Referenced by fill_header(), and main().

#define OPERF_INDEX_OF_FIRST_LOST_STAT   3

Referenced by operf_print_stats().

#define OPERF_WARN_LOST_SAMPLES_THRESHOLD   0.0001

Referenced by operf_print_stats().


Enumeration Type Documentation

anonymous enum
Enumerator:
OPERF_SAMPLES 

nr.

samples

OPERF_KERNEL 

nr.

kernel samples

OPERF_PROCESS 

nr.

userspace samples

OPERF_INVALID_CTX 

nr.

samples lost due to sample address not in expected range for domain

OPERF_LOST_KERNEL 

nr.

kernel samples lost

OPERF_LOST_SAMPLEFILE 

nr samples for which sample file can't be opened

OPERF_LOST_NO_MAPPING 

nr samples lost due to no mapping

OPERF_NO_APP_KERNEL_SAMPLE 

nr.

user ctx kernel samples dropped due to no app context available

OPERF_NO_APP_USER_SAMPLE 

nr.

user samples dropped due to no app context available

OPERF_BT_LOST_NO_MAPPING 

nr.

backtrace samples dropped due to no mapping

OPERF_LOST_INVALID_HYPERV_ADDR 

nr.

hypervisor samples dropped due to address out-of-range

OPERF_RECORD_LOST_SAMPLE 

nr.

samples lost reported by perf_events kernel

OPERF_MAX_STATS 

end of stats


Function Documentation

void init_op_config_dirs ( char const *  session_dir  ) 

must be called to initialize the paths below.

Parameters:
session_dir the non-NULL value of the base session directory

References op_dump_status, op_lock_file, op_log_file, op_pipe_file, op_samples_current_dir, op_samples_dir, and op_session_dir.

Referenced by main().


Variable Documentation

Referenced by init_op_config_dirs().

char op_lock_file[]

Referenced by init_op_config_dirs(), and main().

char op_log_file[]
char op_pipe_file[]
char* stats_filenames[]

Referenced by operf_print_stats().


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1