24 #define MASK_FP_OPS 0x80000 25 #define MASK_L1_DCA 0x40000 26 #define MASK_L1_DCW 0x20000 27 #define MASK_L1_DCR 0x10000 28 #define MASK_TOT_IIS 0x04000 29 #define MASK_BR_PRC 0x02000 30 #define MASK_BR_MSP 0x01000 31 #define MASK_BR_CN 0x00800 32 #define MASK_L2_TCH 0x00400 33 #define MASK_L2_TCA 0x00200 34 #define MASK_L2_TCM 0x00100 35 #define MASK_L1_DCM 0x00040 36 #define MASK_L1_ICM 0x00020 37 #define MASK_L1_TCM 0x00010 38 #define MASK_FP_INS 0x00004 39 #define MASK_TOT_INS 0x00002 40 #define MASK_TOT_CYC 0x00001 42 #define MAX_TEST_EVENTS 18 83 #define ONEHDR " %12s" 84 #define TAB2HDR "%s %12s %12s\n" 85 #define TAB3HDR "%s %12s %12s %12s\n" 86 #define TAB4HDR "%s %12s %12s %12s %12s\n" 87 #define ONENUM " %12lld" 88 #define TAB1 "%-12s %12lld\n" 89 #define TAB2 "%-12s %12lld %12lld\n" 90 #define TAB3 "%-12s %12lld %12lld %12lld\n" 91 #define TAB4 "%-12s %12lld %12lld %12lld %12lld\n" 92 #define TAB5 "%-12s %12lld %12lld %12lld %12lld %12lld\n" 93 #define TWO12 "%12lld %12lld %s" 95 #define LLDFMT10 "%10lld" 96 #define LLDFMT12 "%12lld" 97 #define LLDFMT15 "%15lld"
void test_pass(const char *filename)
char * stringify_granularity(int granularity)
void * get_overflow_address(void *context)
void test_print_event_header(const char *call, int evset)
char * stringify_all_granularities(int granularities)
void validate_string(const char *name, char *s)
char filename[MAXNAMESIZE]
void test_warn(const char *file, int line, const char *call, int retval)
void test_skip(const char *file, int line, const char *call, int retval)
char * stringify_all_domains(int domains)
int add_two_events(int *num_events, int *papi_event, int *mask)
void free_test_space(long long **values, int num_tests)
int approx_equals(double a, double b)
int add_test_events_r(int *number, int *mask, void *handle)
int enum_add_native_events(int *num_events, int **evtcodes, int need_interrupts, int no_software_events, int cidx)
struct test_events_t test_events[]
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
int add_two_nonderived_events(int *num_events, int *papi_event, int *mask)
char * stringify_domain(int domain)
int find_nonderived_event(void)
static long long values[NUM_EVENTS]
long long ** allocate_test_space(int num_tests, int num_events)
static double b[MATRIX_SIZE][MATRIX_SIZE]
int remove_test_events(int *EventSet, int mask)
static double a[MATRIX_SIZE][MATRIX_SIZE]
int add_test_events(int *number, int *mask, int allow_derived)