Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 110 of file native.c.
111{
115
117
121
124
127
129
130#if ((defined(linux) && (defined(__i386__) || (defined __x86_64__))) )
131 if ( !strncmp( hwinfo->
model_string,
"Intel Pentium 4", 15 ) ) {
133 }
else if ( !strncmp( hwinfo->
model_string,
"AMD K7", 6 ) ) {
135 }
else if ( !strncmp( hwinfo->
model_string,
"AMD K8", 6 ) ) {
137 }
else if ( !strncmp( hwinfo->
model_string,
"Intel Core", 17 ) ||
138 !strncmp( hwinfo->
model_string,
"Intel Core 2", 17 ) ) {
140 }
141#endif
142
150 }
151
154
156
159
165 }
166 }
167
174
176 exit( 0 );
177}
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 name to a numeric hardware event code.
get information about the system hardware
initialize the PAPI library.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
static long long values[NUM_EVENTS]
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)
char model_string[PAPI_MAX_STR_LEN]
◆ EventSet
◆ TESTS_QUIET