00001 /** 00002 * @file op_hw_config.h 00003 * Configuration parameters that are dependent on CPU/architecture 00004 * 00005 * @remark Copyright 2002 OProfile authors 00006 * @remark Read the file COPYING 00007 * 00008 * @author John Levon 00009 * @author Philippe Elie 00010 */ 00011 00012 #ifndef OP_HW_CONFIG_H 00013 #define OP_HW_CONFIG_H 00014 00015 /** maximum number of counters, up to 4 for Athlon (18 for P4). The primary 00016 * use of this variable is for static/local array dimension. Never use it in 00017 * loop or in array index access/index checking unless you know what you 00018 * made. */ 00019 #ifdef __alpha__ 00020 #define OP_MAX_COUNTERS 20 00021 #else 00022 #define OP_MAX_COUNTERS 8 00023 #endif 00024 00025 /** maximum number of events between interrupts. Counters are 40 bits, but 00026 * for convenience we only use 32 bits. The top bit is used for overflow 00027 * detection, so user can set up to (2^31)-1 */ 00028 #define OP_MAX_PERF_COUNT 2147483647UL 00029 00030 #endif /* OP_HW_CONFIG_H */
1.6.1