op_config.h revision 2b16b5ffd52ea5c0289e5ce794298bce5d941b2b
1/** 2 * @file op_config.h 3 * 4 * Parameters a user may want to change. See 5 * also op_config_24.h 6 * 7 * @remark Copyright 2002 OProfile authors 8 * @remark Read the file COPYING 9 * 10 * @author John Levon 11 * @author Philippe Elie 12 * @Modifications Daniel Hansel 13 */ 14 15#ifndef OP_CONFIG_H 16#define OP_CONFIG_H 17 18#if defined(__cplusplus) 19extern "C" { 20#endif 21 22/** 23 * must be called to initialize the paths below. 24 * @param session_dir the non-NULL value of the base session directory 25 */ 26void init_op_config_dirs(char const * session_dir); 27 28/* 29 * various paths, corresponding to opcontrol, that should be 30 * initialized by init_op_config_dirs() above. 31 */ 32extern char op_session_dir[]; 33extern char op_samples_dir[]; 34extern char op_samples_current_dir[]; 35extern char op_lock_file[]; 36extern char op_log_file[]; 37extern char op_pipe_file[]; 38extern char op_dump_status[]; 39 40#define OP_DRIVER_BASE "/dev/oprofile" 41#define OP_DATA_DIR "/data/oprofile" 42 43/* Global directory that stores debug files */ 44#ifndef DEBUGDIR 45#define DEBUGDIR "/usr/lib/debug" 46#endif 47 48#define OPD_MAGIC "DAE\n" 49#define OPD_VERSION 0x11 50 51#define OP_MIN_CPU_BUF_SIZE 2048 52#define OP_MAX_CPU_BUF_SIZE 131072 53 54#if defined(__cplusplus) 55} 56#endif 57 58#endif /* OP_CONFIG_H */ 59