4# 1 "/usr/include/stdc-predef.h" 1 3 4
8#pragma GCC visibility push(default)
10# 1 "/usr/include/stdio.h" 1 3 4
11# 27 "/usr/include/stdio.h" 3 4
12# 1 "/usr/include/bits/libc-header-start.h" 1 3 4
13# 33 "/usr/include/bits/libc-header-start.h" 3 4
14# 1 "/usr/include/features.h" 1 3 4
15# 392 "/usr/include/features.h" 3 4
16# 1 "/usr/include/features-time64.h" 1 3 4
17# 20 "/usr/include/features-time64.h" 3 4
18# 1 "/usr/include/bits/wordsize.h" 1 3 4
19# 21 "/usr/include/features-time64.h" 2 3 4
20# 1 "/usr/include/bits/timesize.h" 1 3 4
21# 22 "/usr/include/features-time64.h" 2 3 4
22# 393 "/usr/include/features.h" 2 3 4
23# 490 "/usr/include/features.h" 3 4
24# 1 "/usr/include/sys/cdefs.h" 1 3 4
25# 551 "/usr/include/sys/cdefs.h" 3 4
26# 1 "/usr/include/bits/wordsize.h" 1 3 4
27# 552 "/usr/include/sys/cdefs.h" 2 3 4
28# 1 "/usr/include/bits/long-double.h" 1 3 4
29# 553 "/usr/include/sys/cdefs.h" 2 3 4
30# 491 "/usr/include/features.h" 2 3 4
31# 514 "/usr/include/features.h" 3 4
32# 1 "/usr/include/gnu/stubs.h" 1 3 4
33# 10 "/usr/include/gnu/stubs.h" 3 4
34# 1 "/usr/include/gnu/stubs-64.h" 1 3 4
35# 11 "/usr/include/gnu/stubs.h" 2 3 4
36# 515 "/usr/include/features.h" 2 3 4
37# 34 "/usr/include/bits/libc-header-start.h" 2 3 4
38# 28 "/usr/include/stdio.h" 2 3 4
44# 1 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stddef.h" 1 3 4
45# 209 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stddef.h" 3 4
47# 209 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stddef.h" 3 4
49# 34 "/usr/include/stdio.h" 2 3 4
52# 1 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stdarg.h" 1 3 4
53# 40 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stdarg.h" 3 4
55# 37 "/usr/include/stdio.h" 2 3 4
57# 1 "/usr/include/bits/types.h" 1 3 4
58# 27 "/usr/include/bits/types.h" 3 4
59# 1 "/usr/include/bits/wordsize.h" 1 3 4
60# 28 "/usr/include/bits/types.h" 2 3 4
61# 1 "/usr/include/bits/timesize.h" 1 3 4
62# 29 "/usr/include/bits/types.h" 2 3 4
108# 141 "/usr/include/bits/types.h" 3 4
109# 1 "/usr/include/bits/typesizes.h" 1 3 4
110# 142 "/usr/include/bits/types.h" 2 3 4
111# 1 "/usr/include/bits/time64.h" 1 3 4
112# 143 "/usr/include/bits/types.h" 2 3 4
186# 39 "/usr/include/stdio.h" 2 3 4
187# 1 "/usr/include/bits/types/__fpos_t.h" 1 3 4
192# 1 "/usr/include/bits/types/__mbstate_t.h" 1 3 4
193# 13 "/usr/include/bits/types/__mbstate_t.h" 3 4
203# 6 "/usr/include/bits/types/__fpos_t.h" 2 3 4
208typedef struct _G_fpos_t
213# 40 "/usr/include/stdio.h" 2 3 4
214# 1 "/usr/include/bits/types/__fpos64_t.h" 1 3 4
215# 10 "/usr/include/bits/types/__fpos64_t.h" 3 4
216typedef struct _G_fpos64_t
221# 41 "/usr/include/stdio.h" 2 3 4
222# 1 "/usr/include/bits/types/__FILE.h" 1 3 4
228# 42 "/usr/include/stdio.h" 2 3 4
229# 1 "/usr/include/bits/types/FILE.h" 1 3 4
237# 43 "/usr/include/stdio.h" 2 3 4
238# 1 "/usr/include/bits/types/struct_FILE.h" 1 3 4
239# 35 "/usr/include/bits/types/struct_FILE.h" 3 4
305# 44 "/usr/include/stdio.h" 2 3 4
306# 52 "/usr/include/stdio.h" 3 4
308# 63 "/usr/include/stdio.h" 3 4
310# 77 "/usr/include/stdio.h" 3 4
319# 133 "/usr/include/stdio.h" 3 4
320# 1 "/usr/include/bits/stdio_lim.h" 1 3 4
321# 134 "/usr/include/stdio.h" 2 3 4
340extern int renameat (
int __oldfd,
const char *__old,
int __newfd,
342# 172 "/usr/include/stdio.h" 3 4
344# 182 "/usr/include/stdio.h" 3 4
347# 199 "/usr/include/stdio.h" 3 4
354# 216 "/usr/include/stdio.h" 3 4
355extern char *tempnam (
const char *__dir,
const char *__pfx)
363extern int fflush (FILE *__stream);
364# 233 "/usr/include/stdio.h" 3 4
365extern int fflush_unlocked (FILE *__stream);
366# 252 "/usr/include/stdio.h" 3 4
367extern FILE *fopen (
const char *__restrict __filename,
368 const char *__restrict __modes)
374extern FILE *freopen (
const char *__restrict __filename,
375 const char *__restrict __modes,
376 FILE *__restrict __stream) ;
377# 287 "/usr/include/stdio.h" 3 4
380# 302 "/usr/include/stdio.h" 3 4
381extern FILE *fmemopen (
void *__s,
size_t __len,
const char *__modes)
387extern FILE *open_memstream (
char **__bufloc,
size_t *__sizeloc)
__attribute__ ((__nothrow__ ,
__leaf__))
389# 322 "/usr/include/stdio.h" 3 4
390extern void setbuf (FILE *__restrict __stream,
char *__restrict __buf)
__attribute__ ((__nothrow__ ,
__leaf__));
394extern int setvbuf (FILE *__restrict __stream,
char *__restrict __buf,
400extern void setbuffer (FILE *__restrict __stream,
char *__restrict __buf,
412extern int fprintf (FILE *__restrict __stream,
413 const char *__restrict __format, ...);
418extern int printf (
const char *__restrict __format, ...);
420extern int sprintf (
char *__restrict __s,
421 const char *__restrict __format, ...)
__attribute__ ((__nothrow__));
427extern
int vfprintf (FILE *__restrict __s, const
char *__restrict __format,
433extern
int vprintf (const
char *__restrict __format,
__gnuc_va_list __arg);
435extern
int vsprintf (
char *__restrict __s, const
char *__restrict __format,
440extern
int snprintf (
char *__restrict __s,
size_t __maxlen,
441 const
char *__restrict __format, ...)
444extern
int vsnprintf (
char *__restrict __s,
size_t __maxlen,
447# 397 "/usr/include/stdio.h" 3 4
448extern int vdprintf (
int __fd,
const char *__restrict __fmt,
451extern int dprintf (
int __fd,
const char *__restrict __fmt, ...)
460extern
int fscanf (FILE *__restrict __stream,
461 const
char *__restrict __format, ...) ;
466extern
int scanf (const
char *__restrict __format, ...) ;
468extern
int sscanf (const
char *__restrict __s,
475# 1 "/usr/include/bits/floatn.h" 1 3 4
476# 119 "/usr/include/bits/floatn.h" 3 4
477# 1 "/usr/include/bits/floatn-common.h" 1 3 4
478# 24 "/usr/include/bits/floatn-common.h" 3 4
479# 1 "/usr/include/bits/long-double.h" 1 3 4
480# 25 "/usr/include/bits/floatn-common.h" 2 3 4
481# 120 "/usr/include/bits/floatn.h" 2 3 4
482# 425 "/usr/include/stdio.h" 2 3 4
486extern int fscanf (FILE *__restrict __stream,
const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")
489extern
int scanf (const
char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf")
491extern
int sscanf (const
char *__restrict __s, const
char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf")
__attribute__ ((__nothrow__ ,
__leaf__))
494# 453 "/usr/include/stdio.h" 3 4
495extern int vfscanf (FILE *__restrict __s,
const char *__restrict __format,
503extern int vscanf (
const char *__restrict __format,
__gnuc_va_list __arg)
507extern int vsscanf (
const char *__restrict __s,
515extern int vfscanf (FILE *__restrict __s,
const char *__restrict __format,
__gnuc_va_list __arg) __asm__ (
"" "__isoc99_vfscanf")
520extern
int vscanf (const
char *__restrict __format,
__gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf")
523extern
int vsscanf (const
char *__restrict __s, const
char *__restrict __format,
__gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf")
__attribute__ ((__nothrow__ ,
__leaf__))
528# 507 "/usr/include/stdio.h" 3 4
529extern int fgetc (FILE *__stream);
530extern int getc (FILE *__stream);
536extern int getchar (
void);
543extern int getc_unlocked (FILE *__stream);
544extern int getchar_unlocked (
void);
545# 532 "/usr/include/stdio.h" 3 4
546extern int fgetc_unlocked (FILE *__stream);
547# 543 "/usr/include/stdio.h" 3 4
548extern int fputc (
int __c, FILE *__stream);
549extern int putc (
int __c, FILE *__stream);
555extern int putchar (
int __c);
556# 559 "/usr/include/stdio.h" 3 4
557extern int fputc_unlocked (
int __c, FILE *__stream);
565extern int putc_unlocked (
int __c, FILE *__stream);
566extern int putchar_unlocked (
int __c);
573extern int getw (FILE *__stream);
576extern int putw (
int __w, FILE *__stream);
584extern char *fgets (
char *__restrict __s,
int __n, FILE *__restrict __stream)
586# 626 "/usr/include/stdio.h" 3 4
587extern __ssize_t __getdelim (
char **__restrict __lineptr,
588 size_t *__restrict __n,
int __delimiter,
589 FILE *__restrict __stream) ;
590extern __ssize_t getdelim (
char **__restrict __lineptr,
591 size_t *__restrict __n,
int __delimiter,
592 FILE *__restrict __stream) ;
600extern __ssize_t getline (
char **__restrict __lineptr,
601 size_t *__restrict __n,
602 FILE *__restrict __stream) ;
610extern int fputs (
const char *__restrict __s, FILE *__restrict __stream);
616extern int puts (
const char *__s);
623extern int ungetc (
int __c, FILE *__stream);
630extern size_t fread (
void *__restrict __ptr,
size_t __size,
631 size_t __n, FILE *__restrict __stream) ;
636extern size_t fwrite (
const void *__restrict __ptr,
size_t __size,
637 size_t __n, FILE *__restrict __s);
638# 696 "/usr/include/stdio.h" 3 4
639extern size_t fread_unlocked (
void *__restrict __ptr,
size_t __size,
640 size_t __n, FILE *__restrict __stream) ;
641extern size_t fwrite_unlocked (
const void *__restrict __ptr,
size_t __size,
642 size_t __n, FILE *__restrict __stream);
650extern int fseek (FILE *__stream,
long int __off,
int __whence);
655extern long int ftell (FILE *__stream) ;
660extern void rewind (FILE *__stream);
661# 730 "/usr/include/stdio.h" 3 4
662extern int fseeko (FILE *__stream,
__off_t __off,
int __whence);
667extern __off_t ftello (FILE *__stream) ;
668# 754 "/usr/include/stdio.h" 3 4
669extern int fgetpos (FILE *__restrict __stream,
fpos_t *__restrict __pos);
674extern int fsetpos (FILE *__stream,
const fpos_t *__pos);
675# 780 "/usr/include/stdio.h" 3 4
694extern void perror (
const char *__s);
705# 817 "/usr/include/stdio.h" 3 4
706extern int pclose (FILE *__stream);
712extern FILE *popen (
const char *__command,
const char *__modes)
722# 861 "/usr/include/stdio.h" 3 4
731# 879 "/usr/include/stdio.h" 3 4
732extern int __uflow (FILE *);
733extern int __overflow (FILE *,
int);
734# 903 "/usr/include/stdio.h" 3 4
736# 24 "papi_fwrappers.c" 2
737# 1 "/usr/include/assert.h" 1 3 4
738# 64 "/usr/include/assert.h" 3 4
742extern void __assert_fail (
const char *__assertion,
const char *__file,
743 unsigned int __line,
const char *__function)
747extern void __assert_perror_fail (
int __errnum,
const char *__file,
748 unsigned int __line,
const char *__function)
754extern void __assert (
const char *__assertion,
const char *__file,
int __line)
759# 25 "papi_fwrappers.c" 2
760# 1 "/usr/include/string.h" 1 3 4
761# 26 "/usr/include/string.h" 3 4
762# 1 "/usr/include/bits/libc-header-start.h" 1 3 4
763# 27 "/usr/include/string.h" 2 3 4
770# 1 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stddef.h" 1 3 4
771# 34 "/usr/include/string.h" 2 3 4
772# 43 "/usr/include/string.h" 3 4
773extern void *memcpy (
void *__restrict __dest,
const void *__restrict __src,
777extern void *memmove (
void *__dest,
const void *__src,
size_t __n)
784extern void *memccpy (
void *__restrict __dest,
const void *__restrict __src,
794extern
int memcmp (const
void *__s1, const
void *__s2,
size_t __n)
796# 91 "/usr/include/string.h" 3 4
797extern void *memchr (
const void *__s,
int __c,
size_t __n)
799# 125 "/usr/include/string.h" 3 4
800extern char *strcpy (
char *__restrict __dest,
const char *__restrict __src)
803extern char *strncpy (
char *__restrict __dest,
804 const char *__restrict __src,
size_t __n)
808extern char *strcat (
char *__restrict __dest,
const char *__restrict __src)
811extern char *strncat (
char *__restrict __dest,
const char *__restrict __src,
815extern int strcmp (
const char *__s1,
const char *__s2)
818extern int strncmp (
const char *__s1,
const char *__s2,
size_t __n)
822extern int strcoll (
const char *__s1,
const char *__s2)
825extern size_t strxfrm (
char *__restrict __dest,
826 const char *__restrict __src,
size_t __n)
831# 1 "/usr/include/bits/types/locale_t.h" 1 3 4
832# 22 "/usr/include/bits/types/locale_t.h" 3 4
833# 1 "/usr/include/bits/types/__locale_t.h" 1 3 4
834# 28 "/usr/include/bits/types/__locale_t.h" 3 4
835struct __locale_struct
838 struct __locale_data *__locales[13];
841 const unsigned short int *__ctype_b;
842 const int *__ctype_tolower;
843 const int *__ctype_toupper;
846 const char *__names[13];
850# 23 "/usr/include/bits/types/locale_t.h" 2 3 4
853# 157 "/usr/include/string.h" 2 3 4
860extern
size_t strxfrm_l (
char *__dest, const
char *__src,
size_t __n,
868extern
char *strdup (const
char *__s)
876extern
char *strndup (const
char *__string,
size_t __n)
878# 230 "/usr/include/string.h" 3 4
879extern char *strchr (
const char *__s,
int __c)
881# 257 "/usr/include/string.h" 3 4
882extern char *strrchr (
const char *__s,
int __c)
884# 277 "/usr/include/string.h" 3 4
885extern size_t strcspn (
const char *__s,
const char *__reject)
889extern size_t strspn (
const char *__s,
const char *__accept)
891# 307 "/usr/include/string.h" 3 4
892extern char *strpbrk (
const char *__s,
const char *__accept)
894# 334 "/usr/include/string.h" 3 4
895extern char *strstr (
const char *__haystack,
const char *__needle)
901extern char *strtok (
char *__restrict __s,
const char *__restrict __delim)
906extern char *__strtok_r (
char *__restrict __s,
907 const char *__restrict __delim,
908 char **__restrict __save_ptr)
911extern char *strtok_r (
char *__restrict __s,
const char *__restrict __delim,
912 char **__restrict __save_ptr)
914# 391 "/usr/include/string.h" 3 4
915extern size_t strlen (
const char *__s)
921extern size_t strnlen (
const char *__string,
size_t __maxlen)
928# 416 "/usr/include/string.h" 3 4
929extern int strerror_r (
int __errnum,
char *__buf,
size_t __buflen) __asm__ (
"" "__xpg_strerror_r")
__attribute__ ((__nothrow__ ,
__leaf__))
933# 442 "/usr/include/string.h" 3 4
938# 1 "/usr/include/strings.h" 1 3 4
939# 23 "/usr/include/strings.h" 3 4
940# 1 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stddef.h" 1 3 4
941# 24 "/usr/include/strings.h" 2 3 4
952extern int bcmp (
const void *__s1,
const void *__s2,
size_t __n)
956extern void bcopy (
const void *__src,
void *__dest,
size_t __n)
961# 68 "/usr/include/strings.h" 3 4
962extern char *index (
const char *__s,
int __c)
964# 96 "/usr/include/strings.h" 3 4
965extern char *rindex (
const char *__s,
int __c)
980__extension__
extern int ffsll (
long long int __ll)
985extern int strcasecmp (
const char *__s1,
const char *__s2)
989extern int strncasecmp (
const char *__s1,
const char *__s2,
size_t __n)
997extern int strcasecmp_l (
const char *__s1,
const char *__s2,
locale_t __loc)
1002extern int strncasecmp_l (
const char *__s1,
const char *__s2,
1008# 447 "/usr/include/string.h" 2 3 4
1017extern
char *strsep (
char **__restrict __stringp,
1018 const
char *__restrict __delim)
1025# 473 "/usr/include/string.h" 3 4
1026extern char *__stpcpy (
char *__restrict __dest,
const char *__restrict __src)
1028extern char *stpcpy (
char *__restrict __dest,
const char *__restrict __src)
1033extern char *__stpncpy (
char *__restrict __dest,
1034 const char *__restrict __src,
size_t __n)
1036extern char *stpncpy (
char *__restrict __dest,
1037 const char *__restrict __src,
size_t __n)
1039# 523 "/usr/include/string.h" 3 4
1041# 26 "papi_fwrappers.c" 2
1044#pragma GCC visibility push(default)
1046# 1 "/usr/include/sys/types.h" 1 3 4
1047# 27 "/usr/include/sys/types.h" 3 4
1069# 59 "/usr/include/sys/types.h" 3 4
1091# 97 "/usr/include/sys/types.h" 3 4
1099# 114 "/usr/include/sys/types.h" 3 4
1112# 1 "/usr/include/bits/types/clock_t.h" 1 3 4
1120# 127 "/usr/include/sys/types.h" 2 3 4
1122# 1 "/usr/include/bits/types/clockid_t.h" 1 3 4
1130# 129 "/usr/include/sys/types.h" 2 3 4
1131# 1 "/usr/include/bits/types/time_t.h" 1 3 4
1132# 10 "/usr/include/bits/types/time_t.h" 3 4
1134# 130 "/usr/include/sys/types.h" 2 3 4
1135# 1 "/usr/include/bits/types/timer_t.h" 1 3 4
1143# 131 "/usr/include/sys/types.h" 2 3 4
1144# 144 "/usr/include/sys/types.h" 3 4
1145# 1 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stddef.h" 1 3 4
1146# 145 "/usr/include/sys/types.h" 2 3 4
1150typedef unsigned long int ulong;
1151typedef unsigned short int ushort;
1152typedef unsigned int uint;
1157# 1 "/usr/include/bits/stdint-intn.h" 1 3 4
1158# 24 "/usr/include/bits/stdint-intn.h" 3 4
1163# 156 "/usr/include/sys/types.h" 2 3 4
1172typedef int register_t
__attribute__ ((__mode__ (__word__)));
1173# 176 "/usr/include/sys/types.h" 3 4
1174# 1 "/usr/include/endian.h" 1 3 4
1175# 24 "/usr/include/endian.h" 3 4
1176# 1 "/usr/include/bits/endian.h" 1 3 4
1177# 35 "/usr/include/bits/endian.h" 3 4
1178# 1 "/usr/include/bits/endianness.h" 1 3 4
1179# 36 "/usr/include/bits/endian.h" 2 3 4
1180# 25 "/usr/include/endian.h" 2 3 4
1181# 35 "/usr/include/endian.h" 3 4
1182# 1 "/usr/include/bits/byteswap.h" 1 3 4
1183# 33 "/usr/include/bits/byteswap.h" 3 4
1188 return __builtin_bswap16 (__bsx);
1203 return __builtin_bswap32 (__bsx);
1208# 69 "/usr/include/bits/byteswap.h" 3 4
1213 return __builtin_bswap64 (__bsx);
1218# 36 "/usr/include/endian.h" 2 3 4
1219# 1 "/usr/include/bits/uintn-identity.h" 1 3 4
1220# 32 "/usr/include/bits/uintn-identity.h" 3 4
1238# 37 "/usr/include/endian.h" 2 3 4
1239# 177 "/usr/include/sys/types.h" 2 3 4
1242# 1 "/usr/include/sys/select.h" 1 3 4
1243# 30 "/usr/include/sys/select.h" 3 4
1244# 1 "/usr/include/bits/select.h" 1 3 4
1245# 31 "/usr/include/sys/select.h" 2 3 4
1248# 1 "/usr/include/bits/types/sigset_t.h" 1 3 4
1252# 1 "/usr/include/bits/types/__sigset_t.h" 1 3 4
1259 unsigned long int __val[(1024 / (8 *
sizeof (
unsigned long int)))];
1261# 5 "/usr/include/bits/types/sigset_t.h" 2 3 4
1265# 34 "/usr/include/sys/select.h" 2 3 4
1269# 1 "/usr/include/bits/types/struct_timeval.h" 1 3 4
1287# 38 "/usr/include/sys/select.h" 2 3 4
1289# 1 "/usr/include/bits/types/struct_timespec.h" 1 3 4
1290# 11 "/usr/include/bits/types/struct_timespec.h" 3 4
1302# 31 "/usr/include/bits/types/struct_timespec.h" 3 4
1304# 40 "/usr/include/sys/select.h" 2 3 4
1315# 59 "/usr/include/sys/select.h" 3 4
1335# 91 "/usr/include/sys/select.h" 3 4
1337# 102 "/usr/include/sys/select.h" 3 4
1339 fd_set *__restrict __writefds,
1340 fd_set *__restrict __exceptfds,
1341 struct timeval *__restrict __timeout);
1342# 127 "/usr/include/sys/select.h" 3 4
1344 fd_set *__restrict __writefds,
1345 fd_set *__restrict __exceptfds,
1346 const struct timespec *__restrict __timeout,
1348# 153 "/usr/include/sys/select.h" 3 4
1350# 180 "/usr/include/sys/types.h" 2 3 4
1372# 227 "/usr/include/sys/types.h" 3 4
1373# 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
1374# 23 "/usr/include/bits/pthreadtypes.h" 3 4
1375# 1 "/usr/include/bits/thread-shared-types.h" 1 3 4
1376# 44 "/usr/include/bits/thread-shared-types.h" 3 4
1377# 1 "/usr/include/bits/pthreadtypes-arch.h" 1 3 4
1378# 21 "/usr/include/bits/pthreadtypes-arch.h" 3 4
1379# 1 "/usr/include/bits/wordsize.h" 1 3 4
1380# 22 "/usr/include/bits/pthreadtypes-arch.h" 2 3 4
1381# 45 "/usr/include/bits/thread-shared-types.h" 2 3 4
1386typedef struct __pthread_internal_list
1392typedef struct __pthread_internal_slist
1396# 74 "/usr/include/bits/thread-shared-types.h" 3 4
1397# 1 "/usr/include/bits/struct_mutex.h" 1 3 4
1398# 22 "/usr/include/bits/struct_mutex.h" 3 4
1414# 53 "/usr/include/bits/struct_mutex.h" 3 4
1416# 75 "/usr/include/bits/thread-shared-types.h" 2 3 4
1417# 87 "/usr/include/bits/thread-shared-types.h" 3 4
1418# 1 "/usr/include/bits/struct_rwlock.h" 1 3 4
1419# 23 "/usr/include/bits/struct_rwlock.h" 3 4
1443# 55 "/usr/include/bits/struct_rwlock.h" 3 4
1445# 88 "/usr/include/bits/thread-shared-types.h" 2 3 4
1484# 24 "/usr/include/bits/pthreadtypes.h" 2 3 4
1580# 228 "/usr/include/sys/types.h" 2 3 4
1585# 1 "/usr/lib/gcc/x86_64-redhat-linux/11/include/limits.h" 1 3 4
1586# 34 "/usr/lib/gcc/x86_64-redhat-linux/11/include/limits.h" 3 4
1587# 1 "/usr/lib/gcc/x86_64-redhat-linux/11/include/syslimits.h" 1 3 4
1594# 1 "/usr/lib/gcc/x86_64-redhat-linux/11/include/limits.h" 1 3 4
1595# 203 "/usr/lib/gcc/x86_64-redhat-linux/11/include/limits.h" 3 4
1596# 1 "/usr/include/limits.h" 1 3 4
1597# 26 "/usr/include/limits.h" 3 4
1598# 1 "/usr/include/bits/libc-header-start.h" 1 3 4
1599# 27 "/usr/include/limits.h" 2 3 4
1600# 195 "/usr/include/limits.h" 3 4
1601# 1 "/usr/include/bits/posix1_lim.h" 1 3 4
1602# 27 "/usr/include/bits/posix1_lim.h" 3 4
1603# 1 "/usr/include/bits/wordsize.h" 1 3 4
1604# 28 "/usr/include/bits/posix1_lim.h" 2 3 4
1605# 161 "/usr/include/bits/posix1_lim.h" 3 4
1606# 1 "/usr/include/bits/local_lim.h" 1 3 4
1607# 38 "/usr/include/bits/local_lim.h" 3 4
1608# 1 "/usr/include/linux/limits.h" 1 3 4
1609# 39 "/usr/include/bits/local_lim.h" 2 3 4
1610# 81 "/usr/include/bits/local_lim.h" 3 4
1611# 1 "/usr/include/bits/pthread_stack_min-dynamic.h" 1 3 4
1612# 29 "/usr/include/bits/pthread_stack_min-dynamic.h" 3 4
1613# 1 "/usr/include/bits/pthread_stack_min.h" 1 3 4
1614# 30 "/usr/include/bits/pthread_stack_min-dynamic.h" 2 3 4
1615# 82 "/usr/include/bits/local_lim.h" 2 3 4
1616# 162 "/usr/include/bits/posix1_lim.h" 2 3 4
1617# 196 "/usr/include/limits.h" 2 3 4
1621# 1 "/usr/include/bits/posix2_lim.h" 1 3 4
1622# 200 "/usr/include/limits.h" 2 3 4
1623# 204 "/usr/lib/gcc/x86_64-redhat-linux/11/include/limits.h" 2 3 4
1624# 8 "/usr/lib/gcc/x86_64-redhat-linux/11/include/syslimits.h" 2 3 4
1625# 35 "/usr/lib/gcc/x86_64-redhat-linux/11/include/limits.h" 2 3 4
1627# 1 "papiStdEventDefs.h" 1
1628# 51 "papiStdEventDefs.h"
1630# 51 "papiStdEventDefs.h"
1781# 1 "/usr/include/signal.h" 1 3 4
1782# 27 "/usr/include/signal.h" 3 4
1786# 1 "/usr/include/bits/signum-generic.h" 1 3 4
1787# 76 "/usr/include/bits/signum-generic.h" 3 4
1788# 1 "/usr/include/bits/signum-arch.h" 1 3 4
1789# 77 "/usr/include/bits/signum-generic.h" 2 3 4
1790# 31 "/usr/include/signal.h" 2 3 4
1792# 1 "/usr/include/bits/types/sig_atomic_t.h" 1 3 4
1801# 8 "/usr/include/bits/types/sig_atomic_t.h" 3 4
1803# 33 "/usr/include/signal.h" 2 3 4
1804# 57 "/usr/include/signal.h" 3 4
1805# 1 "/usr/include/bits/types/siginfo_t.h" 1 3 4
1809# 1 "/usr/include/bits/wordsize.h" 1 3 4
1810# 5 "/usr/include/bits/types/siginfo_t.h" 2 3 4
1812# 1 "/usr/include/bits/types/__sigval_t.h" 1 3 4
1813# 24 "/usr/include/bits/types/__sigval_t.h" 3 4
1820typedef union sigval __sigval_t;
1821# 7 "/usr/include/bits/types/siginfo_t.h" 2 3 4
1822# 16 "/usr/include/bits/types/siginfo_t.h" 3 4
1823# 1 "/usr/include/bits/siginfo-arch.h" 1 3 4
1824# 17 "/usr/include/bits/types/siginfo_t.h" 2 3 4
1825# 36 "/usr/include/bits/types/siginfo_t.h" 3 4
1843 int _pad[((128 /
sizeof (
int)) - 4)];
1865 __sigval_t si_sigval;
1915# 58 "/usr/include/signal.h" 2 3 4
1916# 1 "/usr/include/bits/siginfo-consts.h" 1 3 4
1917# 35 "/usr/include/bits/siginfo-consts.h" 3 4
1937# 66 "/usr/include/bits/siginfo-consts.h" 3 4
2027# 176 "/usr/include/bits/siginfo-consts.h" 3 4
2060# 59 "/usr/include/signal.h" 2 3 4
2064# 1 "/usr/include/bits/types/sigval_t.h" 1 3 4
2065# 16 "/usr/include/bits/types/sigval_t.h" 3 4
2067# 63 "/usr/include/signal.h" 2 3 4
2071# 1 "/usr/include/bits/types/sigevent_t.h" 1 3 4
2075# 1 "/usr/include/bits/wordsize.h" 1 3 4
2076# 5 "/usr/include/bits/types/sigevent_t.h" 2 3 4
2077# 22 "/usr/include/bits/types/sigevent_t.h" 3 4
2078typedef struct sigevent
2086 int _pad[((64 /
sizeof (
int)) - 4)];
2094 void (*_function) (__sigval_t);
2099# 67 "/usr/include/signal.h" 2 3 4
2100# 1 "/usr/include/bits/sigevent-consts.h" 1 3 4
2101# 27 "/usr/include/bits/sigevent-consts.h" 3 4
2115# 68 "/usr/include/signal.h" 2 3 4
2127# 88 "/usr/include/signal.h" 3 4
2130# 112 "/usr/include/signal.h" 3 4
2157# 173 "/usr/include/signal.h" 3 4
2165# 193 "/usr/include/signal.h" 3 4
2184extern int sigismember (
const sigset_t *__set,
int __signo)
2186# 229 "/usr/include/signal.h" 3 4
2187# 1 "/usr/include/bits/sigaction.h" 1 3 4
2188# 27 "/usr/include/bits/sigaction.h" 3 4
2200 __sigaction_handler;
2214 void (*sa_restorer) (void);
2216# 230 "/usr/include/signal.h" 2 3 4
2262 const struct timespec *__restrict __timeout)
2264# 292 "/usr/include/signal.h" 3 4
2274# 1 "/usr/include/bits/sigcontext.h" 1 3 4
2275# 31 "/usr/include/bits/sigcontext.h" 3 4
2302# 123 "/usr/include/bits/sigcontext.h" 3 4
2375# 302 "/usr/include/signal.h" 2 3 4
2385# 1 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stddef.h" 1 3 4
2386# 312 "/usr/include/signal.h" 2 3 4
2388# 1 "/usr/include/bits/types/stack_t.h" 1 3 4
2389# 23 "/usr/include/bits/types/stack_t.h" 3 4
2390# 1 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stddef.h" 1 3 4
2391# 24 "/usr/include/bits/types/stack_t.h" 2 3 4
2400# 314 "/usr/include/signal.h" 2 3 4
2403# 1 "/usr/include/sys/ucontext.h" 1 3 4
2404# 37 "/usr/include/sys/ucontext.h" 3 4
2406# 46 "/usr/include/sys/ucontext.h" 3 4
2408# 101 "/usr/include/sys/ucontext.h" 3 4
2446 __extension__
unsigned long long __reserved1 [8];
2458 __extension__
unsigned long long int __ssp[4];
2460# 317 "/usr/include/signal.h" 2 3 4
2471# 1 "/usr/include/bits/sigstack.h" 1 3 4
2472# 328 "/usr/include/signal.h" 2 3 4
2473# 1 "/usr/include/bits/sigstksz.h" 1 3 4
2474# 329 "/usr/include/signal.h" 2 3 4
2475# 1 "/usr/include/bits/ss_flags.h" 1 3 4
2476# 27 "/usr/include/bits/ss_flags.h" 3 4
2484# 330 "/usr/include/signal.h" 2 3 4
2494# 1 "/usr/include/bits/types/struct_sigstack.h" 1 3 4
2495# 23 "/usr/include/bits/types/struct_sigstack.h" 3 4
2501# 340 "/usr/include/signal.h" 2 3 4
2511# 376 "/usr/include/signal.h" 3 4
2512# 1 "/usr/include/bits/sigthread.h" 1 3 4
2513# 31 "/usr/include/bits/sigthread.h" 3 4
2520# 377 "/usr/include/signal.h" 2 3 4
2535# 1 "/usr/include/bits/signal_ext.h" 1 3 4
2536# 392 "/usr/include/signal.h" 2 3 4
2546 typedef struct _papi_all_thr_spec {
2553 long long overflow_vector,
void *context);
2558 typedef struct _papi_sprofil {
2569 typedef struct _papi_itimer_option {
2577 typedef struct _papi_inherit_option {
2583 typedef struct _papi_domain_option {
2590 typedef struct _papi_granularity_option {
2597 typedef struct _papi_preload_option {
2598 char lib_preload_env[128];
2599 char lib_preload_sep;
2600 char lib_dir_env[128];
2605 typedef struct _papi_component_option {
2607 char short_name[64];
2609 char description[128];
2611 char support_version[64];
2612 char kernel_version[64];
2613 char disabled_reason[1024];
2619 int num_preset_events;
2622 int available_domains;
2623 int default_granularity;
2624 int available_granularities;
2625 int hardware_intr_sig;
2627 char *pmu_names[80];
2629 unsigned int hardware_intr:1;
2630 unsigned int precise_intr:1;
2631 unsigned int posix1b_timers:1;
2632 unsigned int kernel_profile:1;
2633 unsigned int kernel_multiplex:1;
2634 unsigned int fast_counter_read:1;
2635 unsigned int fast_real_timer:1;
2636 unsigned int fast_virtual_timer:1;
2638 unsigned int attach_must_ptrace:1;
2639 unsigned int cntr_umasks:1;
2643 unsigned int reserved_bits:19;
2647 typedef struct _papi_mpx_info {
2656 typedef struct _papi_debug_option {
2663 typedef struct _papi_address_map {
2675 typedef struct _papi_program_info {
2676 char fullname[1024];
2681 typedef struct _papi_shared_lib_info {
2689 typedef struct _papi_mh_tlb_info {
2697 typedef struct _papi_mh_cache_info {
2706 typedef struct _papi_mh_level_info {
2713 typedef struct _papi_mh_info {
2720 typedef struct _papi_hw_info {
2728 char vendor_string[128];
2730 char model_string[128];
2741 char virtual_vendor_string[128];
2743 char virtual_vendor_version[128];
2756 typedef struct _papi_attach_option {
2762 typedef struct _papi_cpu_option {
2764 unsigned int cpu_num;
2768 typedef struct _papi_multiplex_option {
2776 typedef struct _papi_addr_range_option {
2811 typedef struct _dmem_t {
2815 long long high_water_mark;
2865 unsigned int event_code;
2868 char short_descr[64];
2870 char long_descr[1024];
2875 int component_index;
2893 unsigned int event_type;
2904 unsigned int code[12];
3062 unsigned scale,
int EventSet,
int EventCode,
3099 int PAPI_flips_rate(
int event,
float *rtime,
float *ptime,
long long *flpins,
float *mflips);
3100 int PAPI_flops_rate(
int event,
float *rtime,
float *ptime,
long long * flpops,
float *mflops);
3101 int PAPI_ipc(
float *rtime,
float *ptime,
long long * ins,
float *ipc);
3102 int PAPI_epc(
int event,
float *rtime,
float *ptime,
long long *ref,
long long *core,
long long *evt,
float *epc);
3125#pragma GCC visibility pop
3126# 27 "papi_fwrappers.c" 2
3127# 50 "papi_fwrappers.c"
3133 slen = Flen < clen ? Flen : clen;
3134 strncpy( cstring, Fstring, (
size_t ) slen );
3137 for (
i = slen - 1;
i > -1 && cstring[
i] ==
' '; cstring[
i--] =
'\0' );
3140 cstring[clen - 1] =
'\0';
3142 cstring[slen] =
'\0';
3144# 78 "papi_fwrappers.c"
3150# 94 "papi_fwrappers.c"
3156# 111 "papi_fwrappers.c"
3164# 136 "papi_fwrappers.c"
3170# 152 "papi_fwrappers.c"
3176# 168 "papi_fwrappers.c"
3182# 184 "papi_fwrappers.c"
3188# 200 "papi_fwrappers.c"
3194# 217 "papi_fwrappers.c"
3200# 237 "papi_fwrappers.c"
3201void papif_get_exe_info_ (
char *fullname,
char *
name,
long long *text_start,
long long *text_end,
long long *data_start,
long long *data_end,
long long *bss_start,
long long *bss_end,
int *
check,
int fullname_len,
int name_len )
3202# 248 "papi_fwrappers.c"
3215 fullname[
i++] =
' ' );
3231# 290 "papi_fwrappers.c"
3232void papif_get_hardware_info_ (
int *ncpu,
int *nnodes,
int *totalcpus,
int *vendor,
char *vendor_str,
int *
model,
char *model_str,
float *
revision,
float *mhz,
int vendor_len,
int model_len )
3233# 316 "papi_fwrappers.c"
3239# 320
"papi_fwrappers.c" 3 4
3241# 320
"papi_fwrappers.c"
3251 *ncpu = hwinfo->
ncpu;
3252 *nnodes = hwinfo->
nnodes;
3254 *vendor = hwinfo->
vendor;
3259 strncpy( vendor_str, hwinfo->
vendor_string, (
size_t ) vendor_len );
3261 vendor_str[
i++] =
' ' );
3262 strncpy( model_str, hwinfo->
model_string, (
size_t ) model_len );
3264 model_str[
i++] =
' ' );
3275# 365 "papi_fwrappers.c"
3280# 381 "papi_fwrappers.c"
3286# 397 "papi_fwrappers.c"
3291# 412 "papi_fwrappers.c"
3296# 427 "papi_fwrappers.c"
3301# 442 "papi_fwrappers.c"
3306# 457 "papi_fwrappers.c"
3311# 472 "papi_fwrappers.c"
3316# 487 "papi_fwrappers.c"
3321# 502 "papi_fwrappers.c"
3326# 517 "papi_fwrappers.c"
3331# 532 "papi_fwrappers.c"
3344# 556 "papi_fwrappers.c"
3350# 572 "papi_fwrappers.c"
3356# 588 "papi_fwrappers.c"
3361# 603 "papi_fwrappers.c"
3367# 619 "papi_fwrappers.c"
3373# 636 "papi_fwrappers.c"
3391# 672 "papi_fwrappers.c"
3397# 689 "papi_fwrappers.c"
3405# 717 "papi_fwrappers.c"
3406void papif_get_event_info_ (
int *EventCode,
char *symbol,
char *long_descr,
char *short_descr,
int *
count,
char *event_note,
int *flags,
int *
check,
int symbol_len,
int long_descr_len,
int short_descr_len,
int event_note_len )
3407# 727 "papi_fwrappers.c"
3414 strncpy( symbol, info.
symbol, (
size_t ) symbol_len );
3415 for (
i = (
int ) strlen( info.
symbol );
i < symbol_len;
3416 symbol[
i++] =
' ' );
3417 strncpy( long_descr, info.
long_descr, (
size_t ) long_descr_len );
3418 for (
i = (
int ) strlen( info.
long_descr );
i < long_descr_len;
3419 long_descr[
i++] =
' ' );
3420 strncpy( short_descr, info.
short_descr, (
size_t ) short_descr_len );
3421 for (
i = (
int ) strlen( info.
short_descr );
i < short_descr_len;
3422 short_descr[
i++] =
' ' );
3428 strncpy( event_note, info.
note, (
size_t ) event_note_len );
3429 note_len=strlen(info.
note);
3431 for (
i = note_len;
i < event_note_len;
3432 event_note[
i++] =
' ' );
3434# 766 "papi_fwrappers.c"
3436# 779 "papi_fwrappers.c"
3449 strncpy( out_str,
tmp, (
size_t ) out_len );
3451 for (
i = (
int ) strlen(
tmp );
i < out_len; out_str[
i++] =
' ' );
3457# 811 "papi_fwrappers.c"
3470 slen = in_len < 128 ? in_len : 128;
3471 strncpy( tmpin, in_str, (
size_t ) slen );
3474 for (
i = slen - 1;
i > -1 && tmpin[
i] ==
' '; tmpin[
i--] =
'\0' );
3477 tmpin[128 - 1] =
'\0';
3487# 851 "papi_fwrappers.c"
3492# 866 "papi_fwrappers.c"
3498# 882 "papi_fwrappers.c"
3504# 898 "papi_fwrappers.c"
3510# 914 "papi_fwrappers.c"
3516# 931 "papi_fwrappers.c"
3524# 956 "papi_fwrappers.c"
3530# 972 "papi_fwrappers.c"
3535# 987 "papi_fwrappers.c"
3540# 1002 "papi_fwrappers.c"
3545# 1017 "papi_fwrappers.c"
3551# 1033 "papi_fwrappers.c"
3557# 1049 "papi_fwrappers.c"
3563# 1065 "papi_fwrappers.c"
3568# 1080 "papi_fwrappers.c"
3573# 1095 "papi_fwrappers.c"
3579# 1111 "papi_fwrappers.c"
3585# 1127 "papi_fwrappers.c"
3591# 1143 "papi_fwrappers.c"
3597# 1159 "papi_fwrappers.c"
3603# 1180 "papi_fwrappers.c"
3607# 1182
"papi_fwrappers.c" 3 4
3609# 1182
"papi_fwrappers.c"
3612# 1198 "papi_fwrappers.c"
3626 (
size_t ) lib_preload_env_len );
3628 i < lib_preload_env_len; lib_preload_env[
i++] =
' ' );
3636# 1232 "papi_fwrappers.c"
3645 }
else if ( *mode == 7 ) {
3654# 1260 "papi_fwrappers.c"
3662# 1266
"papi_fwrappers.c" 3 4
3664# 1266
"papi_fwrappers.c"
3667 }
else if ( *mode == 5 ) {
3676# 1300 "papi_fwrappers.c"
3686# 1320 "papi_fwrappers.c"
3694# 1338 "papi_fwrappers.c"
3701# 1355 "papi_fwrappers.c"
3702void papif_epc_ (
int event,
float *rtime,
float *ptime,
long long *ref,
long long *core,
long long *evt,
float *epc,
int *
check)
3707 *
check =
PAPI_epc( event, rtime, ptime, ref, core, evt, epc );
3709# 1373 "papi_fwrappers.c"
3716# 1390 "papi_fwrappers.c"
3723# 1407 "papi_fwrappers.c"
3731# 1425 "papi_fwrappers.c"
3737# 1443 "papi_fwrappers.c"
3739# 1456 "papi_fwrappers.c"
3741 const char *string_ptr;
3747# 1462 "papi_fwrappers.c" 3 4
3749# 1462
"papi_fwrappers.c"
3751# 1462
"papi_fwrappers.c" 3 4
3752 ) ? 1 : 0), __extension__ ({
if (
3753# 1462
"papi_fwrappers.c"
3755# 1462
"papi_fwrappers.c" 3 4
3756 ) ;
else __assert_fail (
3757# 1462
"papi_fwrappers.c"
3758 "sysdetect_fort_handle"
3759# 1462
"papi_fwrappers.c" 3 4
3760 ,
"papi_fwrappers.c", 1462, __extension__ __PRETTY_FUNCTION__); }))
3761# 1462 "papi_fwrappers.c"
3764 switch(*attribute) {
3779 strncpy(
string, string_ptr, string_len);
3780 for (
i = (
int ) string_len;
i < 128;
3781 string[
i++] =
' ' );
3794# 1507 "papi_fwrappers.c"
3796# 1522 "papi_fwrappers.c"
3799 const char *string_ptr;
3804# 1528 "papi_fwrappers.c" 3 4
3806# 1528
"papi_fwrappers.c"
3808# 1528
"papi_fwrappers.c" 3 4
3809 ) ? 1 : 0), __extension__ ({
if (
3810# 1528
"papi_fwrappers.c"
3812# 1528
"papi_fwrappers.c" 3 4
3813 ) ;
else __assert_fail (
3814# 1528
"papi_fwrappers.c"
3815 "sysdetect_fort_handle"
3816# 1528
"papi_fwrappers.c" 3 4
3817 ,
"papi_fwrappers.c", 1528, __extension__ __PRETTY_FUNCTION__); }))
3818# 1528 "papi_fwrappers.c"
3821 switch(*attribute) {
3893 strncpy(
string, string_ptr, (
size_t) string_len);
3894 for (
i = (
int ) strlen(string_ptr);
i < 128;
3895 string[
i++] =
' ' );
3907# 1672 "papi_fwrappers.c"
3915# 1741 "papi_fwrappers.c"
3923# 1804 "papi_fwrappers.c"
3931# 1865 "papi_fwrappers.c"
3938#pragma GCC visibility pop
static papi_handle_t handle
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream)
static const PAPI_hw_info_t * hw_info
static int Event[MAX_EVENTS]
Accumulate and reset counters in an EventSet.
add PAPI preset or native hardware event to an event set
add multiple PAPI presets or native hardware events to an event set
add PAPI preset or native hardware event by name to an EventSet
Assign a component index to an existing but empty EventSet.
Attach PAPI event set to the specified thread id.
Empty and destroy an EventSet.
Create a new empty PAPI EventSet.
Empty and destroy an EventSet.
Detach PAPI event set from previously specified thread id and restore to executing thread.
disables the named component
disables the specified component
Enumerate PAPI preset or native events for a given component.
returns handle of next device type
Enumerate PAPI preset or native events.
Simplified call to get arbitrary events per cycle, real and processor time.
Convert a numeric hardware event code to a name.
Convert a name to a numeric hardware event code.
Simplified call to get Mflips/s (floating point instruction rate), real and processor time.
Simplified call to get Mflops/s (floating point operation rate), real and processor time.
Get component specific PAPI options.
returns the component index for the named component
get information about a specific software component
returns device attributes
returns device type attributes
Get information about the dynamic memory usage of the current program.
return component an event belongs to
Get the event's name and description info.
return index for component an eventset is assigned to
Get the multiplexing status of specified event set.
Get PAPI library or event set options.
converts an overflow vector into an array of indexes to overflowing events
Retrieve a pointer to a thread specific data structure.
Read performance events inside of a region and store the difference to the corresponding beginning of...
Read performance events at the beginning of a region.
Read performance events at the end of a region and store the difference to the corresponding beginnin...
Simplified call to get instructions per cycle, real and processor time.
initialize the PAPI library.
list the events in an event set
List the registered thread ids.
Lock one of two mutex variables defined in papi.h.
Return the number of hardware counters for the specified component.
Return the number of events in an event set.
Set up an event set to begin registering overflows.
Produces a string on standard error, describing the last library error.
Generate a histogram of hardware counter overflows vs. PC addresses.
Query if PAPI event exists.
Query if a named PAPI event exists.
Read hardware counters with a timestamp.
Read hardware counters from an event set.
removes a hardware event from a PAPI event set.
Remove an array of hardware event codes from a PAPI event set.
removes a named hardware event from a PAPI event set.
Reset the hardware event counts in an event set.
Set the default counting domain for new event sets bound to the specified component.
Set the default counting granularity for eventsets bound to the specified component.
Set the current debug level for error output from PAPI.
Set the default counting domain for new event sets bound to the cpu component.
Set the default counting granularity for eventsets bound to the cpu component.
Convert a standard event set to a multiplexed event set.
Set PAPI library or event set options.
Store a pointer to a thread specific data structure.
Generate PC histogram data from multiple code regions where hardware counter overflow occurs.
Start counting hardware events in an event set.
Return the counting state of an EventSet.
Stop counting hardware events in an event set.
Returns a string describing the PAPI error code.
Initialize thread support in the PAPI library.
Unlock one of the mutex variables defined in papi.h.
Write counter values into counters.
volatile int buf[CACHE_FLUSH_BUFFER_SIZE_INTS]
long long PAPI_get_virt_cyc(void)
long long PAPI_get_real_cyc(void)
int PAPI_register_thread(void)
int PAPI_num_components(void)
long long PAPI_get_virt_nsec(void)
int PAPI_is_initialized(void)
long long PAPI_get_real_nsec(void)
int PAPI_multiplex_init(void)
unsigned long PAPI_thread_id(void)
long long PAPI_get_virt_usec(void)
int PAPI_unregister_thread(void)
const PAPI_exe_info_t * PAPI_get_executable_info(void)
long long PAPI_get_real_usec(void)
const PAPI_shlib_info_t * PAPI_get_shared_lib_info(void)
const PAPI_hw_info_t * PAPI_get_hardware_info(void)
@ PAPI_DEV_TYPE_ATTR__INT_COUNT
@ PAPI_DEV_TYPE_ATTR__INT_PAPI_ID
@ PAPI_DEV_TYPE_ATTR__CHAR_STATUS
@ PAPI_DEV_TYPE_ATTR__INT_VENDOR_ID
@ PAPI_DEV_TYPE_ATTR__CHAR_NAME
@ PAPI_DEV_TYPE_ID__MAX_NUM
@ PAPI_DEV_ATTR__CPU_UINT_L2U_CACHE_LINE_SIZE
@ PAPI_DEV_ATTR__CPU_UINT_SOCKET_COUNT
@ PAPI_DEV_ATTR__CPU_UINT_L3U_CACHE_LINE_SIZE
@ PAPI_DEV_ATTR__ROCM_CHAR_DEVICE_NAME
@ PAPI_DEV_ATTR__CPU_UINT_L1I_CACHE_LINE_COUNT
@ PAPI_DEV_ATTR__CPU_UINT_CORE_COUNT
@ PAPI_DEV_ATTR__ROCM_UINT_WG_DIM_Z
@ PAPI_DEV_ATTR__CPU_UINT_L1D_CACHE_SIZE
@ PAPI_DEV_ATTR__CUDA_UINT_WARP_SIZE
@ PAPI_DEV_ATTR__CUDA_UINT_BLK_DIM_X
@ PAPI_DEV_ATTR__CUDA_UINT_COMP_CAP_MINOR
@ PAPI_DEV_ATTR__CPU_CHAR_NAME
@ PAPI_DEV_ATTR__CUDA_CHAR_DEVICE_NAME
@ PAPI_DEV_ATTR__CPU_UINT_L1D_CACHE_LINE_SIZE
@ PAPI_DEV_ATTR__CUDA_UINT_GRD_DIM_X
@ PAPI_DEV_ATTR__CUDA_UINT_MANAGED_MEM
@ PAPI_DEV_ATTR__CUDA_UINT_SM_COUNT
@ PAPI_DEV_ATTR__CUDA_UINT_SHM_PER_BLK
@ PAPI_DEV_ATTR__ROCM_UINT_CU_COUNT
@ PAPI_DEV_ATTR__ROCM_UINT_WG_DIM_Y
@ PAPI_DEV_ATTR__CUDA_UINT_COMP_CAP_MAJOR
@ PAPI_DEV_ATTR__ROCM_UINT_WAVEFRONT_SIZE
@ PAPI_DEV_ATTR__CPU_UINT_NUMA_COUNT
@ PAPI_DEV_ATTR__CPU_UINT_THR_PER_NUMA
@ PAPI_DEV_ATTR__CUDA_UINT_MAP_HOST_MEM
@ PAPI_DEV_ATTR__CUDA_UINT_MULTI_KERNEL
@ PAPI_DEV_ATTR__CPU_UINT_L3U_CACHE_ASSOC
@ PAPI_DEV_ATTR__CPU_UINT_L3U_CACHE_LINE_COUNT
@ PAPI_DEV_ATTR__CUDA_UINT_BLK_PER_SM
@ PAPI_DEV_ATTR__CPU_UINT_L2U_CACHE_SIZE
@ PAPI_DEV_ATTR__CUDA_UINT_MEMCPY_OVERLAP
@ PAPI_DEV_ATTR__ROCM_UINT_GRD_DIM_Y
@ PAPI_DEV_ATTR__CUDA_ULONG_UID
@ PAPI_DEV_ATTR__CUDA_UINT_GRD_DIM_Y
@ PAPI_DEV_ATTR__ROCM_UINT_WG_DIM_X
@ PAPI_DEV_ATTR__CPU_UINT_THREAD_COUNT
@ PAPI_DEV_ATTR__ROCM_UINT_WAVE_PER_CU
@ PAPI_DEV_ATTR__CPU_UINT_L1D_CACHE_LINE_COUNT
@ PAPI_DEV_ATTR__ROCM_UINT_SHM_PER_WG
@ PAPI_DEV_ATTR__CPU_UINT_L1I_CACHE_SIZE
@ PAPI_DEV_ATTR__CPU_UINT_L3U_CACHE_SIZE
@ PAPI_DEV_ATTR__ROCM_UINT_COMP_CAP_MAJOR
@ PAPI_DEV_ATTR__CUDA_UINT_BLK_DIM_Y
@ PAPI_DEV_ATTR__CPU_UINT_MODEL
@ PAPI_DEV_ATTR__CUDA_UINT_SHM_PER_SM
@ PAPI_DEV_ATTR__CPU_UINT_THR_NUMA_AFFINITY
@ PAPI_DEV_ATTR__CUDA_UINT_THR_PER_BLK
@ PAPI_DEV_ATTR__CPU_UINT_L2U_CACHE_ASSOC
@ PAPI_DEV_ATTR__ROCM_UINT_GRD_DIM_X
@ PAPI_DEV_ATTR__CPU_UINT_L1D_CACHE_ASSOC
@ PAPI_DEV_ATTR__CPU_UINT_L1I_CACHE_ASSOC
@ PAPI_DEV_ATTR__CUDA_UINT_UNIFIED_ADDR
@ PAPI_DEV_ATTR__CPU_UINT_FAMILY
@ PAPI_DEV_ATTR__ROCM_UINT_COMP_CAP_MINOR
@ PAPI_DEV_ATTR__ROCM_UINT_GRD_DIM_Z
@ PAPI_DEV_ATTR__CPU_UINT_L2U_CACHE_LINE_COUNT
@ PAPI_DEV_ATTR__CPU_UINT_NUMA_MEM_SIZE
@ PAPI_DEV_ATTR__CUDA_UINT_BLK_DIM_Z
@ PAPI_DEV_ATTR__ROCM_ULONG_UID
@ PAPI_DEV_ATTR__ROCM_UINT_WORKGROUP_SIZE
@ PAPI_DEV_ATTR__CUDA_UINT_GRD_DIM_Z
@ PAPI_DEV_ATTR__CPU_UINT_L1I_CACHE_LINE_SIZE
@ PAPI_DEV_ATTR__ROCM_UINT_SIMD_PER_CU
@ PAPI_DEV_ATTR__CPU_UINT_STEPPING
static long long values[NUM_EVENTS]
static struct timeval start
static struct counter_info * event_info
unsigned long AO_t __attribute__((__aligned__(4)))
char * PAPI_user_defined_events_file_t
unsigned long PAPI_thread_id_t
int(* PAPI_debug_handler_t)(int code)
@ PAPI_NTV_ENUM_UMASK_COMBOS
int renameat(int __oldfd, const char *__old, int __newfd, const char *__new) __attribute__((__nothrow__
void papif_get_multiplex_(int *EventSet, int *check)
void papif_flops_rate_(int event, float *real_time, float *proc_time, long long *flpops, float *mflops, int *check)
void papif_unregster_thread_(int *check)
char * PAPI_user_defined_events_file_t
int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) __attribute__((__nonnull__(1
void papif_num_events_(int *EventCode, int *count)
int sigaltstack(const stack_t *__restrict __ss, stack_t *__restrict __oss) __attribute__((__nothrow__
unsigned long int __ino_t
__uint32_t __uint_least32_t
__suseconds_t suseconds_t
void papif_get_real_cyc_(long long *real_cyc)
unsigned int __useconds_t
void papif_get_real_usec_(long long *time)
void psignal(int __sig, const char *__s)
void papif_stop_(int *EventSet, long long *values, int *check)
void papif_set_cmp_granularity_(int *granularity, int *cidx, int *check)
int remove(const char *__filename) __attribute__((__nothrow__
@ PAPI_VALUETYPE_ABSOLUTE
@ PAPI_VALUETYPE_RUNNING_SUM
void papif_set_debug_(int *debug, int *check)
__int64_t __int_least64_t
__int16_t __int_least16_t
static void * sysdetect_fort_handle
int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, __sigset_t *__restrict __oldmask) __attribute__((__nothrow__
void papif_flips_rate_(int event, float *real_time, float *proc_time, long long *flpins, float *mflips, int *check)
void papif_lock_(int *lock, int *check)
int raise(int __sig) __attribute__((__nothrow__
void papif_set_multiplex_(int *EventSet, int *check)
static __inline __uint16_t __uint16_identity(__uint16_t __x)
void papif_hl_region_end_(char *name, int *check, int Event_len)
static __extension__ __inline __uint64_t __bswap_64(__uint64_t __bsx)
void papif_hl_region_begin_(char *name, int *check, int Event_len)
void(* PAPI_overflow_handler_t)(int EventSet, void *address, long long overflow_vector, void *context)
unsigned long int __dev_t
int sigqueue(__pid_t __pid, int __sig, const union sigval __val) __attribute__((__nothrow__
void papif_get_preload_(char *lib_preload_env, int *check, int lib_preload_env_len)
void papif_set_event_domain_(int *es, int *domain, int *check)
void papif_add_named_event_(int *EventSet, char *EventName, int *check, int Event_len)
void papif_destroy_eventset_(int *EventSet, int *check)
void papif_read_(int *EventSet, long long *values, int *check)
void papif_add_event_(int *EventSet, int *Event, int *check)
__sighandler_t ssignal(int __sig, __sighandler_t __handler) __attribute__((__nothrow__
unsigned long int __nlink_t
long int __syscall_slong_t
int pselect(int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask)
void papif_get_event_info_(int *EventCode, char *symbol, char *long_descr, char *short_descr, int *count, char *event_note, int *flags, int *check, int symbol_len, int long_descr_len, int short_descr_len, int event_note_len)
void papif_unlock_(int *lock, int *check)
void papif_accum_(int *EventSet, long long *values, int *check)
void papif_get_virt_cyc_(long long *virt_cyc)
int sigsetmask(int __mask) __attribute__((__nothrow__
unsigned long int __u_quad_t
void papif_query_event_(int *EventCode, int *check)
__extension__ typedef long long int greg_t
static __inline __uint32_t __bswap_32(__uint32_t __bsx)
__sighandler_t signal(int __sig, __sighandler_t __handler) __attribute__((__nothrow__
void papif_get_exe_info_(char *fullname, char *name, long long *text_start, long long *text_end, long long *data_start, long long *data_end, long long *bss_start, long long *bss_end, int *check, int fullname_len, int name_len)
void papif_write_(int *EventSet, long long *values, int *check)
void papif_cleanup_eventset_(int *EventSet, int *check)
int sigtimedwait(const sigset_t *__restrict __set, siginfo_t *__restrict __info, const struct timespec *__restrict __timeout) __attribute__((__nonnull__(1)))
__int32_t __int_least32_t
void papif_library_init_(int *check)
unsigned long int pthread_t
unsigned long int __uintmax_t
void papif_num_cmp_hwctrs_(int *cidx, int *num)
void papif_hl_read_(char *name, int *check, int Event_len)
int kill(__pid_t __pid, int __sig) __attribute__((__nothrow__
void papif_start_(int *EventSet, int *check)
int(* PAPI_debug_handler_t)(int code)
void papif_set_inherit_(int *inherit, int *check)
int sigpending(sigset_t *__set) __attribute__((__nothrow__
void papif_get_hardware_info_(int *ncpu, int *nnodes, int *totalcpus, int *vendor, char *vendor_str, int *model, char *model_str, float *revision, float *mhz, int vendor_len, int model_len)
void papif_num_hwctrs_(int *num)
volatile int pthread_spinlock_t
void papif_event_name_to_code_(char *in_str, int *out, int *check, int in_len)
int int sigwaitinfo(const sigset_t *__restrict __set, siginfo_t *__restrict __info) __attribute__((__nonnull__(1)))
void papif_epc_(int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc, int *check)
int gsignal(int __sig) __attribute__((__nothrow__
int sigblock(int __mask) __attribute__((__nothrow__
unsigned int pthread_key_t
unsigned long int __u_long
void papif_enum_event_(int *EventCode, int *modifier, int *check)
void papif_event_code_to_name_(int *EventCode, char *out_str, int *check, int out_len)
void papif_set_cmp_domain_(int *domain, int *cidx, int *check)
int sigaction(int __sig, const struct sigaction *__restrict __act, struct sigaction *__restrict __oact) __attribute__((__nothrow__
__uint64_t __uint_least64_t
void psiginfo(const siginfo_t *__pinfo, const char *__s)
__uint8_t __uint_least8_t
void papif_get_dev_attr_(int *handle_index, int *id, int *attribute, int *value, char *string, int *check, int string_len)
void papif_rate_stop_(int *check)
int rename(const char *__old, const char *__new) __attribute__((__nothrow__
void papif_add_events_(int *EventSet, int *Events, int *number, int *check)
signed short int __int16_t
void papif_get_virt_usec_(long long *time)
void papif_multiplex_init_(int *check)
void papif_create_eventset_(int *EventSet, int *check)
static void Fortran2cstring(char *cstring, char *Fstring, int clen, int Flen)
void papif_query_named_event_(char *EventName, int *check, int Event_len)
int PAPI_num_hwctrs(void)
void papif_set_domain_(int *domain, int *check)
__sig_atomic_t sig_atomic_t
@ PAPI_UPDATETYPE_FIXEDFREQ
@ PAPI_UPDATETYPE_ARBITRARY
int select(int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout)
unsigned long int __fsblkcnt64_t
int __libc_current_sigrtmin(void)
int pthread_kill(pthread_t __threadid, int __signo) __attribute__((__nothrow__
void papif_get_real_nsec_(long long *time)
void papif_read_ts_(int *EventSet, long long *values, long long *cycles, int *check)
void papif_thread_id_(unsigned long *id)
__sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) __attribute__((__nothrow__
__builtin_va_list __gnuc_va_list
static __inline __uint32_t __uint32_identity(__uint32_t __x)
__uint16_t __uint_least16_t
static __inline __uint64_t __uint64_identity(__uint64_t __x)
unsigned long int __thrd_t
void papif_remove_event_(int *EventSet, int *Event, int *check)
void papif_hl_stop_(int *check)
int killpg(__pid_t __pgrp, int __sig) __attribute__((__nothrow__
void papif_get_clockrate_(int *cr)
unsigned long int __ino64_t
void papif_get_granularity_(int *eventset, int *granularity, int *mode, int *check)
unsigned short int __u_short
void papif_assign_eventset_component_(int *EventSet, int *cidx, int *check)
void papif_state_(int *EventSet, int *status, int *check)
unsigned long int __rlim_t
int fclose(FILE *__stream)
void(* __sighandler_t)(int)
void papif_get_dev_type_attr_(int *handle_index, int *attribute, int *value, char *string, int *check, int string_len)
int strcoll_l(const char *__s1, const char *__s2, locale_t __l) __attribute__((__nothrow__
void papif_shutdown_(void)
unsigned long int __uint64_t
void papif_register_thread_(int *check)
void papif_enum_dev_type_(int *modifier, int *handle_index, int *check)
int sigprocmask(int __how, const sigset_t *__restrict __set, sigset_t *__restrict __oset) __attribute__((__nothrow__
unsigned long int __syscall_ulong_t
void papif_get_dmem_info_(long long *dest, int *check)
unsigned short int __uint16_t
void papif_remove_named_event_(int *EventSet, char *EventName, int *check, int Event_len)
unsigned long int __rlim64_t
unsigned long int __fsfilcnt_t
void papif_set_granularity_(int *granularity, int *check)
@ PAPI_TIMESCOPE_UNTIL_NEXT
@ PAPI_TIMESCOPE_SINCE_LAST
@ PAPI_TIMESCOPE_SINCE_START
void papif_list_events_(int *EventSet, int *Events, int *number, int *check)
struct __locale_struct * __locale_t
void papif_thread_init_(unsigned long int(*handle)(void), int *check)
void papif_unregister_thread_(int *check)
signed long int __int64_t
void papif_ipc_(float *rtime, float *ptime, long long *ins, float *ipc, int *check)
void papif_reset_(int *EventSet, int *check)
void papif_perror_(char *message, int message_len)
unsigned long int __fsfilcnt64_t
unsigned long int __fsblkcnt_t
void papif_get_domain_(int *eventset, int *domain, int *mode, int *check)
void papif_remove_events_(int *EventSet, int *Events, int *number, int *check)
int siginterrupt(int __sig, int __interrupt) __attribute__((__nothrow__
void papif_is_initialized_(int *level)
int sigreturn(struct sigcontext *__scp) __attribute__((__nothrow__
int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1)))
@ PAPI_DEV_TYPE_ENUM__CUDA
@ PAPI_DEV_TYPE_ENUM__ALL
@ PAPI_DEV_TYPE_ENUM__ROCM
@ PAPI_DEV_TYPE_ENUM__CPU
@ PAPI_DEV_TYPE_ENUM__FIRST
static int num_native_events
static double array[ARRAYSIZE]
static char stack[2 *PAPI_HUGE_STR_LEN]
static int attach(hwd_control_state_t *ctl, unsigned long tid)
int data_type[MAX_EVENTS]
char units[MAX_EVENTS][BUFSIZ]
setvbuf(file, file_buf, _IOFBF, sizeof(file_buf))
void handler(int EventSet, void *address, long long overflow_vector, void *context)
address range specification for range restricted counting if both are zero, range is disabled
get the executable's address space info
char name[PAPI_HUGE_STR_LEN]
A pointer to the following is passed to PAPI_get_dmem_info()
char note[PAPI_HUGE_STR_LEN]
char short_descr[PAPI_MIN_STR_LEN]
char symbol[PAPI_HUGE_STR_LEN]
char long_descr[PAPI_HUGE_STR_LEN]
get the executable's info
char fullname[PAPI_HUGE_STR_LEN]
PAPI_address_map_t address_info
char vendor_string[PAPI_MAX_STR_LEN]
char model_string[PAPI_MAX_STR_LEN]
mh for mem hierarchy maybe?
char lib_preload_env[PAPI_MAX_STR_LEN]
char _unused2[15 *sizeof(int) - 4 *sizeof(void *) - sizeof(size_t)]
unsigned short _cur_column
struct _IO_FILE * _freeres_list
struct _IO_wide_data * _wide_data
struct _IO_marker * _markers
signed char _vtable_offset
struct _IO_codecvt * _codecvt
struct __pthread_cond_s::@126::@129 __g1_start32
__extension__ unsigned long long int __g1_start
unsigned int __g1_orig_size
unsigned int __g_signals[2]
__extension__ unsigned long long int __wseq
struct __pthread_cond_s::@124::@128 __wseq32
struct __pthread_internal_list * __prev
struct __pthread_internal_list * __next
unsigned int __wrphase_futex
unsigned int __writers_futex
struct __pthread_internal_slist * __next
unsigned short significand[4]
__uint32_t __glibc_reserved1[24]
__uint32_t __glibc_reserved1[7]
unsigned short significand[4]
unsigned short __glibc_reserved1[3]
struct _libc_xmmreg _xmm[16]
__uint32_t __glibc_reserved1[24]
struct _libc_fpxreg _st[8]
unsigned short int exponent
unsigned short int significand[4]
unsigned short int __glibc_reserved1[3]
__uint64_t __glibc_reserved2[5]
__uint64_t __glibc_reserved1[2]
struct _xsave_hdr xstate_hdr
__uint32_t ymmh_space[64]
struct _fpstate * fpstate
__uint64_t __reserved1[8]
__uint64_t __fpstate_word
pthread_attr_t * _attribute
__syscall_slong_t tv_nsec
__extension__ unsigned long long int __ssp[4]
struct _libc_fpstate __fpregs_mem
unsigned long int uc_flags
struct ucontext_t * uc_link
A pointer to the following is passed to PAPI_set/get_opt()
PAPI_preload_info_t preload
PAPI_granularity_option_t granularity
PAPI_domain_option_t domain
PAPI_exe_info_t * exe_info
__extension__ long long int __align
long int __syscall_slong_t
unsigned long int __uint64_t
unsigned short int __uint16_t