1/** 2 * @file op_hw_config.h 3 * Configuration parameters that are dependent on CPU/architecture 4 * 5 * @remark Copyright 2002 OProfile authors 6 * @remark Read the file COPYING 7 * 8 * @author John Levon 9 * @author Philippe Elie 10 */ 11 12#ifndef OP_HW_CONFIG_H 13#define OP_HW_CONFIG_H 14 15/** maximum number of counters, up to 4 for Athlon (18 for P4). The primary 16 * use of this variable is for static/local array dimension. Never use it in 17 * loop or in array index access/index checking unless you know what you 18 * made. */ 19#ifdef __alpha__ 20#define OP_MAX_COUNTERS 20 21#else 22#define OP_MAX_COUNTERS 8 23#endif 24 25/** maximum number of events between interrupts. Counters are 40 bits, but 26 * for convenience we only use 32 bits. The top bit is used for overflow 27 * detection, so user can set up to (2^31)-1 */ 28#define OP_MAX_PERF_COUNT 2147483647UL 29 30#endif /* OP_HW_CONFIG_H */ 31