18{
26
27
29
33 }
34
36 printf( "Test case %s: start, stop with a derived counter.\n",
37 __FILE__ );
38 printf( "------------------------------------------------\n" );
40 printf(
"Default domain is: %d (%s)\n",
tmp,
43 printf(
"Default granularity is: %d (%s)\n\n",
tmp,
45 }
46
48 do {
50 if ( info.
count > 1 ) {
52 break;
53 }
54 }
56
58 test_skip(__FILE__, __LINE__,
"No events found", 0);
59 }
60
64 }
65
70 }
74 }
75 }
76
80 }
81
82 if (!
quiet) printf(
"Running do_stuff().\n" );
83
85
89 }
90
92
93 sprintf( add_event_str,
"%-12s : \t",
event_name );
95 printf( "------------------------------------------------\n" );
96 }
97
101 }
102
106 }
107
108 if (!
quiet) printf(
"Verification: Does it produce a non-zero value?\n" );
109
112 printf( "Yes: " );
114 printf( "\n" );
115 }
116 }
117 else {
118 test_fail(__FILE__,__LINE__,
"Validation", 1 );
119 }
120
122
123 return 0;
124}
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.
Enumerate PAPI preset or native events.
Convert a numeric hardware event code to a name.
Get the event's name and description info.
Get PAPI library or event set options.
initialize the PAPI library.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
char event_name[2][PAPI_MAX_STR_LEN]
static const int PAPI_events_len
unsigned int PAPI_events[EVENTSLEN]
#define PAPI_2MAX_STR_LEN
static long long values[NUM_EVENTS]
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)