Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ NUM_EVENTS
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 24 of file appio_test_select.c.
34 fprintf(stderr,
"PAPI_library_init version mismatch\n");
38 if (!
TESTS_QUIET) printf(
"This program will read from stdin and echo it to stdout\n");
44 fprintf(stderr,
"Error getting code for %s\n",
names[e]);
51 fprintf(stderr,
"Error in PAPI_start_counters\n");
67 while (
select(1,&readfds,NULL,NULL,NULL)) {
70 if (bytes == 0)
break;
76 fprintf(stderr,
"Error in PAPI_stop_counters\n");
ssize_t read(int fd, void *buf, size_t count)
void test_pass(const char *filename)
static int Events[NUM_EVENTS]
int PAPI_event_name_to_code(const char *in, int *out)
int PAPI_library_init(int version)
ssize_t write(int fd, const void *buf, size_t count)
int PAPI_stop_counters(long long *values, int array_len)
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
int tests_quiet(int argc, char **argv)
int PAPI_start_counters(int *events, int array_len)
static long long values[NUM_EVENTS]
volatile int buf[CACHE_FLUSH_BUFFER_SIZE_INTS]
const char * names[NUM_EVENTS]