Go to the source code of this file.
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 20 of file Minimal_Test.c.
20 {
22 long long counter_values[1];
23
24 (void)argc;
25 (void)argv;
26
28
29
31 test_fail( __FILE__, __LINE__,
"PAPI_library_init", ret );
32 exit(-1);
33 }
34
36 test_fail( __FILE__, __LINE__,
"PAPI_create_eventset", ret );
37 exit(-1);
38 }
39
41 test_fail( __FILE__, __LINE__,
"PAPI_add_named_event", ret );
42 exit(-1);
43 }
44
45
47 test_fail( __FILE__, __LINE__,
"PAPI_start", ret );
48 exit(-1);
49 }
50
52
53
55 test_fail( __FILE__, __LINE__,
"PAPI_stop", ret );
56 exit(-1);
57 }
58
59 if( counter_values[0] == 7 ){
61 }else{
62 test_fail( __FILE__, __LINE__,
"SDE counter values are wrong!", ret );
63 }
64
65 return 0;
66}
void mintest_dowork(void)
add PAPI preset or native hardware event by name to an EventSet
Create a new empty PAPI EventSet.
initialize the PAPI library.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)
◆ mintest_dowork()
| void mintest_dowork |
( |
void |
| ) |
|
◆ mintest_init()
| void mintest_init |
( |
void |
| ) |
|
Definition at line 10 of file Minimal_Test.c.
10 {
14}
static papi_handle_t handle
papi_handle_t papi_sde_init(const char *name_of_library)
int papi_sde_register_counter(papi_handle_t handle, const char *event_name, int cntr_mode, int cntr_type, void *counter)
#define PAPI_SDE_long_long
◆ local_var