|
PAPI
5.7.0.0
|

Go to the source code of this file.
Macros | |
| #define | TOLERANCE .2 |
| #define | RED "\033[1;31m" |
| #define | YELLOW "\033[1;33m" |
| #define | GREEN "\033[1;32m" |
| #define | NORMAL "\033[0m" |
| #define | POTENTIAL_EVENTS 3 |
Functions | |
| void | validate_string (const char *name, char *s) |
| int | approx_equals (double a, double b) |
| long long ** | allocate_test_space (int num_tests, int num_events) |
| void | free_test_space (long long **values, int num_tests) |
| int | is_event_derived (unsigned int event) |
| int | find_nonderived_event (void) |
| int | add_test_events (int *number, int *mask, int allow_derived) |
| int | remove_test_events (int *EventSet, int mask) |
| char * | stringify_all_domains (int domains) |
| char * | stringify_domain (int domain) |
| char * | stringify_all_granularities (int granularities) |
| char * | stringify_granularity (int granularity) |
| int | tests_quiet (int argc, char **argv) |
| static void | print_spaces (int count) |
| void | test_pass (const char *filename) |
| void | test_fail (const char *file, int line, const char *call, int retval) |
| 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) |
| void | test_print_event_header (const char *call, int evset) |
| int | add_two_events (int *num_events, int *papi_event, int *mask) |
| int | add_two_nonderived_events (int *num_events, int *papi_event, int *mask) |
| int | enum_add_native_events (int *num_events, int **evtcodes, int need_interrupt, int no_software_events, int cidx) |
Variables | |
| int | TESTS_QUIET = 0 |
| static int | TESTS_COLOR = 1 |
| static int | TEST_WARN = 0 |
| struct test_events_t | test_events [MAX_TEST_EVENTS] |
| #define GREEN "\033[1;32m" |
Definition at line 414 of file test_utils.c.
| #define NORMAL "\033[0m" |
Definition at line 415 of file test_utils.c.
| #define POTENTIAL_EVENTS 3 |
| #define RED "\033[1;31m" |
Definition at line 412 of file test_utils.c.
| #define TOLERANCE .2 |
Definition at line 9 of file test_utils.c.
| #define YELLOW "\033[1;33m" |
Definition at line 413 of file test_utils.c.
| int add_test_events | ( | int * | number, |
| int * | mask, | ||
| int | allow_derived | ||
| ) |
Definition at line 152 of file test_utils.c.

| int add_two_events | ( | int * | num_events, |
| int * | papi_event, | ||
| int * | mask | ||
| ) |
Definition at line 617 of file test_utils.c.

| int add_two_nonderived_events | ( | int * | num_events, |
| int * | papi_event, | ||
| int * | mask | ||
| ) |
Definition at line 648 of file test_utils.c.

| long long** allocate_test_space | ( | int | num_tests, |
| int | num_events | ||
| ) |
| int approx_equals | ( | double | a, |
| double | b | ||
| ) |
Definition at line 33 of file test_utils.c.
| int enum_add_native_events | ( | int * | num_events, |
| int ** | evtcodes, | ||
| int | need_interrupt, | ||
| int | no_software_events, | ||
| int | cidx | ||
| ) |
Definition at line 686 of file test_utils.c.

| int find_nonderived_event | ( | void | ) |
Definition at line 98 of file test_utils.c.

| void free_test_space | ( | long long ** | values, |
| int | num_tests | ||
| ) |
Definition at line 70 of file test_utils.c.
| int is_event_derived | ( | unsigned int | event | ) |
Definition at line 81 of file test_utils.c.


|
static |
| int remove_test_events | ( | int * | EventSet, |
| int | mask | ||
| ) |
| char* stringify_all_domains | ( | int | domains | ) |
Definition at line 293 of file test_utils.c.

| char* stringify_all_granularities | ( | int | granularities | ) |
Definition at line 332 of file test_utils.c.

| char* stringify_domain | ( | int | domain | ) |
Definition at line 312 of file test_utils.c.

| char* stringify_granularity | ( | int | granularity | ) |
Definition at line 353 of file test_utils.c.

| void test_fail | ( | const char * | file, |
| int | line, | ||
| const char * | call, | ||
| int | retval | ||
| ) |
| void test_pass | ( | const char * | filename | ) |
| void test_print_event_header | ( | const char * | call, |
| int | evset | ||
| ) |
Definition at line 582 of file test_utils.c.

| void test_skip | ( | const char * | file, |
| int | line, | ||
| const char * | call, | ||
| int | retval | ||
| ) |
| void test_warn | ( | const char * | file, |
| int | line, | ||
| const char * | call, | ||
| int | retval | ||
| ) |
| int tests_quiet | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 376 of file test_utils.c.

| void validate_string | ( | const char * | name, |
| char * | s | ||
| ) |
Definition at line 23 of file test_utils.c.

| struct test_events_t test_events[MAX_TEST_EVENTS] |
Definition at line 130 of file test_utils.c.
|
static |
Definition at line 20 of file test_utils.c.
|
static |
Definition at line 19 of file test_utils.c.
| int TESTS_QUIET = 0 |
Definition at line 18 of file test_utils.c.