28{
32 long long values1[2], values2[2];
36
37
39
43
44
47 else
49
53 sprintf( add_event_str,
"PAPI_add_event[%s]",
event_name );
54
58
59
63 if (!
quiet) printf(
"Trouble adding event\n");
65 }
66
70
71
72
76
77 eventcnt = 2;
81
82 for (
i = eventcnt - 1;
i >= 0;
i-- ) {
86
90 }
91
93
95
99
101
105
109
111
115
117
119
123
127
131
135
137 printf( "Test case 0: start, stop.\n" );
138 printf( "-----------------------------------------------\n" );
140 printf(
"Default domain is: %d (%s)\n",
tmp,
143 printf(
"Default granularity is: %d (%s)\n",
tmp,
145 printf(
"Using %d iterations of c += a*b\n",
NUM_FLOPS );
146 printf
147 ( "-------------------------------------------------------------------------\n" );
148
149 printf( "Test type : \t 1\t 2\n" );
150
151 sprintf( add_event_str,
"%-12s : \t",
event_name );
152 printf(
TAB2, add_event_str, values1[0], values2[1] );
153 printf(
TAB2,
"PAPI_TOT_CYC : \t", values1[1], values2[0] );
156
157 printf
158 ( "-------------------------------------------------------------------------\n" );
159
160 printf( "Verification: none\n" );
161 }
162
164
165 return 0;
166
167}
add PAPI preset or native hardware event to an event set
Empty and destroy an EventSet.
Create a new empty PAPI EventSet.
Empty and destroy an EventSet.
Convert a numeric hardware event code to a name.
Get PAPI library or event set options.
get real time counter value in clock cycles Returns the total real time passed since some arbitrary s...
get real time counter value in microseconds
initialize the PAPI library.
list the events in an event set
Query if PAPI event exists.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
char event_name[2][PAPI_MAX_STR_LEN]
#define PAPI_2MAX_STR_LEN
char events[MAX_EVENTS][BUFSIZ]
int tests_quiet(int argc, char **argv)
char * stringify_all_domains(int domains)
char * stringify_granularity(int granularity)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)
void PAPI_NORETURN test_skip(const char *file, int line, const char *call, int retval)