PAPI 7.1.0.0
Loading...
Searching...
No Matches
papi_fwrappers_.c
Go to the documentation of this file.
1# 0 "papi_fwrappers.c"
2# 0 "<built-in>"
3# 0 "<command-line>"
4# 1 "/usr/include/stdc-predef.h" 1 3 4
5# 0 "<command-line>" 2
6# 1 "papi_fwrappers.c"
7# 21 "papi_fwrappers.c"
8#pragma GCC visibility push(default)
9
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
39
40
41
42
43
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
46
47# 209 "/usr/lib/gcc/x86_64-redhat-linux/11/include/stddef.h" 3 4
48typedef long unsigned int size_t;
49# 34 "/usr/include/stdio.h" 2 3 4
50
51
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
54typedef __builtin_va_list __gnuc_va_list;
55# 37 "/usr/include/stdio.h" 2 3 4
56
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
63
64
65typedef unsigned char __u_char;
66typedef unsigned short int __u_short;
67typedef unsigned int __u_int;
68typedef unsigned long int __u_long;
69
70
71typedef signed char __int8_t;
72typedef unsigned char __uint8_t;
73typedef signed short int __int16_t;
74typedef unsigned short int __uint16_t;
75typedef signed int __int32_t;
76typedef unsigned int __uint32_t;
77
78typedef signed long int __int64_t;
79typedef unsigned long int __uint64_t;
80
81
82
83
84
85
94
95
96
97typedef long int __quad_t;
98typedef unsigned long int __u_quad_t;
99
100
101
102
103
104
105
106typedef long int __intmax_t;
107typedef unsigned long int __uintmax_t;
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
113
114
115typedef unsigned long int __dev_t;
116typedef unsigned int __uid_t;
117typedef unsigned int __gid_t;
118typedef unsigned long int __ino_t;
119typedef unsigned long int __ino64_t;
120typedef unsigned int __mode_t;
121typedef unsigned long int __nlink_t;
122typedef long int __off_t;
123typedef long int __off64_t;
124typedef int __pid_t;
125typedef struct { int __val[2]; } __fsid_t;
126typedef long int __clock_t;
127typedef unsigned long int __rlim_t;
128typedef unsigned long int __rlim64_t;
129typedef unsigned int __id_t;
130typedef long int __time_t;
131typedef unsigned int __useconds_t;
132typedef long int __suseconds_t;
133typedef long int __suseconds64_t;
134
135typedef int __daddr_t;
136typedef int __key_t;
137
138
139typedef int __clockid_t;
140
141
142typedef void * __timer_t;
143
144
145typedef long int __blksize_t;
146
147
148
149
150typedef long int __blkcnt_t;
151typedef long int __blkcnt64_t;
152
153
154typedef unsigned long int __fsblkcnt_t;
155typedef unsigned long int __fsblkcnt64_t;
156
157
158typedef unsigned long int __fsfilcnt_t;
159typedef unsigned long int __fsfilcnt64_t;
160
161
162typedef long int __fsword_t;
163
164typedef long int __ssize_t;
165
166
167typedef long int __syscall_slong_t;
168
169typedef unsigned long int __syscall_ulong_t;
170
171
172
174typedef char *__caddr_t;
175
176
177typedef long int __intptr_t;
178
179
180typedef unsigned int __socklen_t;
181
182
183
184
185typedef int __sig_atomic_t;
186# 39 "/usr/include/stdio.h" 2 3 4
187# 1 "/usr/include/bits/types/__fpos_t.h" 1 3 4
188
189
190
191
192# 1 "/usr/include/bits/types/__mbstate_t.h" 1 3 4
193# 13 "/usr/include/bits/types/__mbstate_t.h" 3 4
194typedef struct
195{
197 union
198 {
199 unsigned int __wch;
200 char __wchb[4];
201 } __value;
203# 6 "/usr/include/bits/types/__fpos_t.h" 2 3 4
204
205
206
207
208typedef struct _G_fpos_t
209{
212} __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
217{
220} __fpos64_t;
221# 41 "/usr/include/stdio.h" 2 3 4
222# 1 "/usr/include/bits/types/__FILE.h" 1 3 4
223
224
225
226struct _IO_FILE;
227typedef struct _IO_FILE __FILE;
228# 42 "/usr/include/stdio.h" 2 3 4
229# 1 "/usr/include/bits/types/FILE.h" 1 3 4
230
231
232
233struct _IO_FILE;
234
235
236typedef struct _IO_FILE FILE;
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
240struct _IO_FILE;
241struct _IO_marker;
242struct _IO_codecvt;
243struct _IO_wide_data;
244
245
246
247
248typedef void _IO_lock_t;
249
250
251
252
253
255{
257
258
267
268
272
273 struct _IO_marker *_markers;
274
276
280
281
282 unsigned short _cur_column;
283 signed char _vtable_offset;
284 char _shortbuf[1];
285
287
288
289
290
291
292
293
295
296 struct _IO_codecvt *_codecvt;
297 struct _IO_wide_data *_wide_data;
300 size_t __pad5;
301 int _mode;
302
303 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
304};
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
312
313
314
315
316
317
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
322
323
324
325extern FILE *stdin;
326extern FILE *stdout;
327extern FILE *stderr;
328
329
330
331
332
333
334extern int remove (const char *__filename) __attribute__ ((__nothrow__ , __leaf__));
335
336extern int rename (const char *__old, const char *__new) __attribute__ ((__nothrow__ , __leaf__));
337
338
339
340extern int renameat (int __oldfd, const char *__old, int __newfd,
341 const char *__new) __attribute__ ((__nothrow__ , __leaf__));
342# 172 "/usr/include/stdio.h" 3 4
343extern int fclose (FILE *__stream);
344# 182 "/usr/include/stdio.h" 3 4
345extern FILE *tmpfile (void)
346 __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ;
347# 199 "/usr/include/stdio.h" 3 4
348extern char *tmpnam (char[20]) __attribute__ ((__nothrow__ , __leaf__)) ;
349
350
351
352
353extern char *tmpnam_r (char __s[20]) __attribute__ ((__nothrow__ , __leaf__)) ;
354# 216 "/usr/include/stdio.h" 3 4
355extern char *tempnam (const char *__dir, const char *__pfx)
356 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1)));
357
358
359
360
361
362
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)
369 __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ;
370
371
372
373
374extern FILE *freopen (const char *__restrict __filename,
375 const char *__restrict __modes,
376 FILE *__restrict __stream) ;
377# 287 "/usr/include/stdio.h" 3 4
378extern FILE *fdopen (int __fd, const char *__modes) __attribute__ ((__nothrow__ , __leaf__))
379 __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ;
380# 302 "/usr/include/stdio.h" 3 4
381extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
382 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ;
383
384
385
386
387extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__ , __leaf__))
388 __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ;
389# 322 "/usr/include/stdio.h" 3 4
390extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));
391
392
393
394extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
395 int __modes, size_t __n) __attribute__ ((__nothrow__ , __leaf__));
396
397
398
399
400extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
401 size_t __size) __attribute__ ((__nothrow__ , __leaf__));
402
403
404extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
405
406
407
408
409
410
411
412extern int fprintf (FILE *__restrict __stream,
413 const char *__restrict __format, ...);
414
415
416
417
418extern int printf (const char *__restrict __format, ...);
419
420extern int sprintf (char *__restrict __s,
421 const char *__restrict __format, ...) __attribute__ ((__nothrow__));
422
423
424
425
426
427extern int vfprintf (FILE *__restrict __s, const char *__restrict __format,
428 __gnuc_va_list __arg);
429
430
431
432
433extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg);
434
435extern int vsprintf (char *__restrict __s, const char *__restrict __format,
436 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
437
438
439
440extern int snprintf (char *__restrict __s, size_t __maxlen,
441 const char *__restrict __format, ...)
442 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
443
444extern int vsnprintf (char *__restrict __s, size_t __maxlen,
445 const char *__restrict __format, __gnuc_va_list __arg)
446 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
447# 397 "/usr/include/stdio.h" 3 4
448extern int vdprintf (int __fd, const char *__restrict __fmt,
449 __gnuc_va_list __arg)
450 __attribute__ ((__format__ (__printf__, 2, 0)));
451extern int dprintf (int __fd, const char *__restrict __fmt, ...)
452 __attribute__ ((__format__ (__printf__, 2, 3)));
453
454
455
456
457
458
459
460extern int fscanf (FILE *__restrict __stream,
461 const char *__restrict __format, ...) ;
462
463
464
465
466extern int scanf (const char *__restrict __format, ...) ;
467
468extern int sscanf (const char *__restrict __s,
469 const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__));
470
471
472
473
474
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
483
484
485
486extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")
487
488 ;
489extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf")
490 ;
491extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__ , __leaf__))
492
493 ;
494# 453 "/usr/include/stdio.h" 3 4
495extern int vfscanf (FILE *__restrict __s, const char *__restrict __format,
496 __gnuc_va_list __arg)
497 __attribute__ ((__format__ (__scanf__, 2, 0))) ;
498
499
500
501
502
503extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg)
504 __attribute__ ((__format__ (__scanf__, 1, 0))) ;
505
506
507extern int vsscanf (const char *__restrict __s,
508 const char *__restrict __format, __gnuc_va_list __arg)
509 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
510
511
512
513
514
515extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf")
516
517
518
519 __attribute__ ((__format__ (__scanf__, 2, 0))) ;
520extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf")
521
522 __attribute__ ((__format__ (__scanf__, 1, 0))) ;
523extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__ , __leaf__))
524
525
526
527 __attribute__ ((__format__ (__scanf__, 2, 0)));
528# 507 "/usr/include/stdio.h" 3 4
529extern int fgetc (FILE *__stream);
530extern int getc (FILE *__stream);
531
532
533
534
535
536extern int getchar (void);
537
538
539
540
541
542
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);
550
551
552
553
554
555extern int putchar (int __c);
556# 559 "/usr/include/stdio.h" 3 4
557extern int fputc_unlocked (int __c, FILE *__stream);
558
559
560
561
562
563
564
565extern int putc_unlocked (int __c, FILE *__stream);
566extern int putchar_unlocked (int __c);
567
568
569
570
571
572
573extern int getw (FILE *__stream);
574
575
576extern int putw (int __w, FILE *__stream);
577
578
579
580
581
582
583
584extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
585 __attribute__ ((__access__ (__write_only__, 1, 2)));
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) ;
593
594
595
596
597
598
599
600extern __ssize_t getline (char **__restrict __lineptr,
601 size_t *__restrict __n,
602 FILE *__restrict __stream) ;
603
604
605
606
607
608
609
610extern int fputs (const char *__restrict __s, FILE *__restrict __stream);
611
612
613
614
615
616extern int puts (const char *__s);
617
618
619
620
621
622
623extern int ungetc (int __c, FILE *__stream);
624
625
626
627
628
629
630extern size_t fread (void *__restrict __ptr, size_t __size,
631 size_t __n, FILE *__restrict __stream) ;
632
633
634
635
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);
643
644
645
646
647
648
649
650extern int fseek (FILE *__stream, long int __off, int __whence);
651
652
653
654
655extern long int ftell (FILE *__stream) ;
656
657
658
659
660extern void rewind (FILE *__stream);
661# 730 "/usr/include/stdio.h" 3 4
662extern int fseeko (FILE *__stream, __off_t __off, int __whence);
663
664
665
666
667extern __off_t ftello (FILE *__stream) ;
668# 754 "/usr/include/stdio.h" 3 4
669extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
670
671
672
673
674extern int fsetpos (FILE *__stream, const fpos_t *__pos);
675# 780 "/usr/include/stdio.h" 3 4
676extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
677
678extern int feof (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
679
680extern int ferror (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
681
682
683
684extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
685extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
686extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
687
688
689
690
691
692
693
694extern void perror (const char *__s);
695
696
697
698
699extern int fileno (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
700
701
702
703
704extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
705# 817 "/usr/include/stdio.h" 3 4
706extern int pclose (FILE *__stream);
707
708
709
710
711
712extern FILE *popen (const char *__command, const char *__modes)
713 __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) ;
714
715
716
717
718
719
720extern char *ctermid (char *__s) __attribute__ ((__nothrow__ , __leaf__))
721 __attribute__ ((__access__ (__write_only__, 1)));
722# 861 "/usr/include/stdio.h" 3 4
723extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
724
725
726
727extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
728
729
730extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
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
735
736# 24 "papi_fwrappers.c" 2
737# 1 "/usr/include/assert.h" 1 3 4
738# 64 "/usr/include/assert.h" 3 4
739
740
741
742extern void __assert_fail (const char *__assertion, const char *__file,
743 unsigned int __line, const char *__function)
744 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
745
746
747extern void __assert_perror_fail (int __errnum, const char *__file,
748 unsigned int __line, const char *__function)
749 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
750
751
752
753
754extern void __assert (const char *__assertion, const char *__file, int __line)
755 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
756
757
758
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
764
765
766
767
768
769
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,
774 size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
775
776
777extern void *memmove (void *__dest, const void *__src, size_t __n)
778 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
779
780
781
782
783
784extern void *memccpy (void *__restrict __dest, const void *__restrict __src,
785 int __c, size_t __n)
786 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4)));
787
788
789
790
791extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
792
793
794extern int memcmp (const void *__s1, const void *__s2, size_t __n)
795 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
796# 91 "/usr/include/string.h" 3 4
797extern void *memchr (const void *__s, int __c, size_t __n)
798 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
799# 125 "/usr/include/string.h" 3 4
800extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
801 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
802
803extern char *strncpy (char *__restrict __dest,
804 const char *__restrict __src, size_t __n)
805 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
806
807
808extern char *strcat (char *__restrict __dest, const char *__restrict __src)
809 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
810
811extern char *strncat (char *__restrict __dest, const char *__restrict __src,
812 size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
813
814
815extern int strcmp (const char *__s1, const char *__s2)
816 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
817
818extern int strncmp (const char *__s1, const char *__s2, size_t __n)
819 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
820
821
822extern int strcoll (const char *__s1, const char *__s2)
823 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
824
825extern size_t strxfrm (char *__restrict __dest,
826 const char *__restrict __src, size_t __n)
827 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3)));
828
829
830
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
836{
837
838 struct __locale_data *__locales[13];
839
840
841 const unsigned short int *__ctype_b;
842 const int *__ctype_tolower;
843 const int *__ctype_toupper;
844
845
846 const char *__names[13];
847};
848
849typedef struct __locale_struct *__locale_t;
850# 23 "/usr/include/bits/types/locale_t.h" 2 3 4
851
853# 157 "/usr/include/string.h" 2 3 4
854
855
856extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l)
857 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
858
859
860extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
861 locale_t __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4)))
862 __attribute__ ((__access__ (__write_only__, 1, 3)));
863
864
865
866
867
868extern char *strdup (const char *__s)
869 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
870
871
872
873
874
875
876extern char *strndup (const char *__string, size_t __n)
877 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
878# 230 "/usr/include/string.h" 3 4
879extern char *strchr (const char *__s, int __c)
880 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
881# 257 "/usr/include/string.h" 3 4
882extern char *strrchr (const char *__s, int __c)
883 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
884# 277 "/usr/include/string.h" 3 4
885extern size_t strcspn (const char *__s, const char *__reject)
886 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
887
888
889extern size_t strspn (const char *__s, const char *__accept)
890 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
891# 307 "/usr/include/string.h" 3 4
892extern char *strpbrk (const char *__s, const char *__accept)
893 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
894# 334 "/usr/include/string.h" 3 4
895extern char *strstr (const char *__haystack, const char *__needle)
896 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
897
898
899
900
901extern char *strtok (char *__restrict __s, const char *__restrict __delim)
902 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
903
904
905
906extern char *__strtok_r (char *__restrict __s,
907 const char *__restrict __delim,
908 char **__restrict __save_ptr)
909 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));
910
911extern char *strtok_r (char *__restrict __s, const char *__restrict __delim,
912 char **__restrict __save_ptr)
913 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));
914# 391 "/usr/include/string.h" 3 4
915extern size_t strlen (const char *__s)
916 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
917
918
919
920
921extern size_t strnlen (const char *__string, size_t __maxlen)
922 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
923
924
925
926
927extern char *strerror (int __errnum) __attribute__ ((__nothrow__ , __leaf__));
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__))
930
931 __attribute__ ((__nonnull__ (2)))
932 __attribute__ ((__access__ (__write_only__, 2, 3)));
933# 442 "/usr/include/string.h" 3 4
934extern char *strerror_l (int __errnum, locale_t __l) __attribute__ ((__nothrow__ , __leaf__));
935
936
937
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
942
943
944
945
946
947
948
949
950
951
952extern int bcmp (const void *__s1, const void *__s2, size_t __n)
953 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
954
955
956extern void bcopy (const void *__src, void *__dest, size_t __n)
957 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
958
959
960extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
961# 68 "/usr/include/strings.h" 3 4
962extern char *index (const char *__s, int __c)
963 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
964# 96 "/usr/include/strings.h" 3 4
965extern char *rindex (const char *__s, int __c)
966 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
967
968
969
970
971
972
973extern int ffs (int __i) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
974
975
976
977
978
979extern int ffsl (long int __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
980__extension__ extern int ffsll (long long int __ll)
981 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
982
983
984
985extern int strcasecmp (const char *__s1, const char *__s2)
986 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
987
988
989extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
990 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
991
992
993
994
995
996
997extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc)
998 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
999
1000
1001
1002extern int strncasecmp_l (const char *__s1, const char *__s2,
1003 size_t __n, locale_t __loc)
1004 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
1005
1006
1007
1008# 447 "/usr/include/string.h" 2 3 4
1009
1010
1011
1012extern void explicit_bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)))
1013 __attribute__ ((__access__ (__write_only__, 1, 2)));
1014
1015
1016
1017extern char *strsep (char **__restrict __stringp,
1018 const char *__restrict __delim)
1019 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1020
1021
1022
1023
1024extern char *strsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__));
1025# 473 "/usr/include/string.h" 3 4
1026extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src)
1027 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1028extern char *stpcpy (char *__restrict __dest, const char *__restrict __src)
1029 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1030
1031
1032
1033extern char *__stpncpy (char *__restrict __dest,
1034 const char *__restrict __src, size_t __n)
1035 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1036extern char *stpncpy (char *__restrict __dest,
1037 const char *__restrict __src, size_t __n)
1038 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1039# 523 "/usr/include/string.h" 3 4
1040
1041# 26 "papi_fwrappers.c" 2
1042# 1 "papi.h" 1
1043# 25 "papi.h"
1044#pragma GCC visibility push(default)
1045# 241 "papi.h"
1046# 1 "/usr/include/sys/types.h" 1 3 4
1047# 27 "/usr/include/sys/types.h" 3 4
1048
1049
1050
1051
1052
1053
1054typedef __u_char u_char;
1055typedef __u_short u_short;
1056typedef __u_int u_int;
1057typedef __u_long u_long;
1058typedef __quad_t quad_t;
1059typedef __u_quad_t u_quad_t;
1060typedef __fsid_t fsid_t;
1061
1062
1063typedef __loff_t loff_t;
1064
1065
1066
1067
1068typedef __ino_t ino_t;
1069# 59 "/usr/include/sys/types.h" 3 4
1070typedef __dev_t dev_t;
1071
1072
1073
1074
1075typedef __gid_t gid_t;
1076
1077
1078
1079
1080typedef __mode_t mode_t;
1081
1082
1083
1084
1085typedef __nlink_t nlink_t;
1086
1087
1088
1089
1090typedef __uid_t uid_t;
1091# 97 "/usr/include/sys/types.h" 3 4
1092typedef __pid_t pid_t;
1093
1094
1095
1096
1097
1098typedef __id_t id_t;
1099# 114 "/usr/include/sys/types.h" 3 4
1100typedef __daddr_t daddr_t;
1101typedef __caddr_t caddr_t;
1102
1103
1104
1105
1106
1107typedef __key_t key_t;
1108
1109
1110
1111
1112# 1 "/usr/include/bits/types/clock_t.h" 1 3 4
1113
1114
1115
1116
1117
1118
1119typedef __clock_t clock_t;
1120# 127 "/usr/include/sys/types.h" 2 3 4
1121
1122# 1 "/usr/include/bits/types/clockid_t.h" 1 3 4
1123
1124
1125
1126
1127
1128
1129typedef __clockid_t clockid_t;
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
1133typedef __time_t time_t;
1134# 130 "/usr/include/sys/types.h" 2 3 4
1135# 1 "/usr/include/bits/types/timer_t.h" 1 3 4
1136
1137
1138
1139
1140
1141
1142typedef __timer_t timer_t;
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
1147
1148
1149
1150typedef unsigned long int ulong;
1151typedef unsigned short int ushort;
1152typedef unsigned int uint;
1153
1154
1155
1156
1157# 1 "/usr/include/bits/stdint-intn.h" 1 3 4
1158# 24 "/usr/include/bits/stdint-intn.h" 3 4
1159typedef __int8_t int8_t;
1160typedef __int16_t int16_t;
1161typedef __int32_t int32_t;
1162typedef __int64_t int64_t;
1163# 156 "/usr/include/sys/types.h" 2 3 4
1164
1165
1166typedef __uint8_t u_int8_t;
1167typedef __uint16_t u_int16_t;
1168typedef __uint32_t u_int32_t;
1169typedef __uint64_t u_int64_t;
1170
1171
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
1184static __inline __uint16_t
1185__bswap_16 (__uint16_t __bsx)
1186{
1187
1188 return __builtin_bswap16 (__bsx);
1189
1190
1191
1192}
1193
1194
1195
1196
1197
1198
1199static __inline __uint32_t
1201{
1202
1203 return __builtin_bswap32 (__bsx);
1204
1205
1206
1207}
1208# 69 "/usr/include/bits/byteswap.h" 3 4
1209__extension__ static __inline __uint64_t
1211{
1212
1213 return __builtin_bswap64 (__bsx);
1214
1215
1216
1217}
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
1221static __inline __uint16_t
1223{
1224 return __x;
1225}
1226
1227static __inline __uint32_t
1229{
1230 return __x;
1231}
1232
1233static __inline __uint64_t
1235{
1236 return __x;
1237}
1238# 37 "/usr/include/endian.h" 2 3 4
1239# 177 "/usr/include/sys/types.h" 2 3 4
1240
1241
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
1246
1247
1248# 1 "/usr/include/bits/types/sigset_t.h" 1 3 4
1249
1250
1251
1252# 1 "/usr/include/bits/types/__sigset_t.h" 1 3 4
1253
1254
1255
1256
1257typedef struct
1258{
1259 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
1260} __sigset_t;
1261# 5 "/usr/include/bits/types/sigset_t.h" 2 3 4
1262
1263
1265# 34 "/usr/include/sys/select.h" 2 3 4
1266
1267
1268
1269# 1 "/usr/include/bits/types/struct_timeval.h" 1 3 4
1270
1271
1272
1273
1274
1275
1276
1278{
1279
1280
1281
1282
1285
1286};
1287# 38 "/usr/include/sys/select.h" 2 3 4
1288
1289# 1 "/usr/include/bits/types/struct_timespec.h" 1 3 4
1290# 11 "/usr/include/bits/types/struct_timespec.h" 3 4
1292{
1293
1294
1295
1297
1298
1299
1300
1302# 31 "/usr/include/bits/types/struct_timespec.h" 3 4
1303};
1304# 40 "/usr/include/sys/select.h" 2 3 4
1305
1306
1307
1309
1310
1311
1312
1313
1314typedef long int __fd_mask;
1315# 59 "/usr/include/sys/select.h" 3 4
1316typedef struct
1317 {
1318
1319
1320
1321
1322
1323
1324 __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
1325
1326
1327 } fd_set;
1328
1329
1330
1331
1332
1333
1335# 91 "/usr/include/sys/select.h" 3 4
1336
1337# 102 "/usr/include/sys/select.h" 3 4
1338extern int select (int __nfds, fd_set *__restrict __readfds,
1339 fd_set *__restrict __writefds,
1340 fd_set *__restrict __exceptfds,
1341 struct timeval *__restrict __timeout);
1342# 127 "/usr/include/sys/select.h" 3 4
1343extern int pselect (int __nfds, fd_set *__restrict __readfds,
1344 fd_set *__restrict __writefds,
1345 fd_set *__restrict __exceptfds,
1346 const struct timespec *__restrict __timeout,
1347 const __sigset_t *__restrict __sigmask);
1348# 153 "/usr/include/sys/select.h" 3 4
1349
1350# 180 "/usr/include/sys/types.h" 2 3 4
1351
1352
1353
1354
1355
1357
1358
1359
1360
1361
1362
1364
1365
1366
1368
1369
1370
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
1382
1383
1384
1385
1386typedef struct __pthread_internal_list
1387{
1388 struct __pthread_internal_list *__prev;
1389 struct __pthread_internal_list *__next;
1391
1392typedef struct __pthread_internal_slist
1393{
1394 struct __pthread_internal_slist *__next;
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
1400{
1402 unsigned int __count;
1404
1405 unsigned int __nusers;
1406
1407
1408
1410
1411 short __spins;
1414# 53 "/usr/include/bits/struct_mutex.h" 3 4
1415};
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
1421{
1422 unsigned int __readers;
1423 unsigned int __writers;
1424 unsigned int __wrphase_futex;
1425 unsigned int __writers_futex;
1426 unsigned int __pad3;
1427 unsigned int __pad4;
1428
1431 signed char __rwelision;
1432
1433
1434
1435
1436 unsigned char __pad1[7];
1437
1438
1439 unsigned long int __pad2;
1440
1441
1442 unsigned int __flags;
1443# 55 "/usr/include/bits/struct_rwlock.h" 3 4
1444};
1445# 88 "/usr/include/bits/thread-shared-types.h" 2 3 4
1446
1447
1448
1449
1451{
1452 __extension__ union
1453 {
1454 __extension__ unsigned long long int __wseq;
1455 struct
1456 {
1457 unsigned int __low;
1458 unsigned int __high;
1460 };
1461 __extension__ union
1462 {
1463 __extension__ unsigned long long int __g1_start;
1464 struct
1465 {
1466 unsigned int __low;
1467 unsigned int __high;
1469 };
1470 unsigned int __g_refs[2] ;
1471 unsigned int __g_size[2];
1472 unsigned int __g1_orig_size;
1473 unsigned int __wrefs;
1474 unsigned int __g_signals[2];
1475};
1476
1477typedef unsigned int __tss_t;
1478typedef unsigned long int __thrd_t;
1479
1480typedef struct
1481{
1483} __once_flag;
1484# 24 "/usr/include/bits/pthreadtypes.h" 2 3 4
1485
1486
1487
1488typedef unsigned long int pthread_t;
1489
1490
1491
1492
1493typedef union
1494{
1495 char __size[4];
1498
1499
1500
1501
1502typedef union
1503{
1504 char __size[4];
1507
1508
1509
1510typedef unsigned int pthread_key_t;
1511
1512
1513
1514typedef int pthread_once_t;
1515
1516
1518{
1519 char __size[56];
1520 long int __align;
1521};
1522
1523typedef union pthread_attr_t pthread_attr_t;
1524
1525
1526
1527
1528typedef union
1529{
1530 struct __pthread_mutex_s __data;
1531 char __size[40];
1532 long int __align;
1534
1535
1536typedef union
1537{
1538 struct __pthread_cond_s __data;
1539 char __size[48];
1540 __extension__ long long int __align;
1542
1543
1544
1545
1546
1547typedef union
1548{
1550 char __size[56];
1551 long int __align;
1553
1554typedef union
1555{
1556 char __size[8];
1557 long int __align;
1559
1560
1561
1562
1563
1564typedef volatile int pthread_spinlock_t;
1565
1566
1567
1568
1569typedef union
1570{
1571 char __size[32];
1572 long int __align;
1574
1575typedef union
1576{
1577 char __size[4];
1580# 228 "/usr/include/sys/types.h" 2 3 4
1581
1582
1583
1584# 242 "papi.h" 2
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
1588
1589
1590
1591
1592
1593
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
1618
1619
1620
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
1626# 243 "papi.h" 2
1627# 1 "papiStdEventDefs.h" 1
1628# 51 "papiStdEventDefs.h"
1629
1630# 51 "papiStdEventDefs.h"
1631enum
1632{
1649
1666
1683
1700
1717
1734
1749# 244 "papi.h" 2
1750# 488 "papi.h"
1751enum {
1755
1756
1769
1770
1780# 552 "papi.h"
1781# 1 "/usr/include/signal.h" 1 3 4
1782# 27 "/usr/include/signal.h" 3 4
1783
1784
1785
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
1791
1792# 1 "/usr/include/bits/types/sig_atomic_t.h" 1 3 4
1793
1794
1795
1796
1797
1798
1799
1800
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
1806
1807
1808
1809# 1 "/usr/include/bits/wordsize.h" 1 3 4
1810# 5 "/usr/include/bits/types/siginfo_t.h" 2 3 4
1811
1812# 1 "/usr/include/bits/types/__sigval_t.h" 1 3 4
1813# 24 "/usr/include/bits/types/__sigval_t.h" 3 4
1815{
1818};
1819
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
1826typedef struct
1827 {
1829
1831
1833
1834
1835
1836
1837
1839
1840
1841 union
1842 {
1843 int _pad[((128 / sizeof (int)) - 4)];
1844
1845
1846 struct
1847 {
1850 } _kill;
1851
1852
1853 struct
1854 {
1857 __sigval_t si_sigval;
1858 } _timer;
1859
1860
1861 struct
1862 {
1863 __pid_t si_pid;
1864 __uid_t si_uid;
1865 __sigval_t si_sigval;
1866 } _rt;
1867
1868
1869 struct
1870 {
1871 __pid_t si_pid;
1872 __uid_t si_uid;
1876 } _sigchld;
1877
1878
1879 struct
1880 {
1881 void *si_addr;
1882
1883 short int si_addr_lsb;
1884 union
1885 {
1886
1887 struct
1888 {
1889 void *_lower;
1890 void *_upper;
1891 } _addr_bnd;
1892
1894 } _bounds;
1895 } _sigfault;
1896
1897
1898 struct
1899 {
1900 long int si_band;
1902 } _sigpoll;
1903
1904
1905
1906 struct
1907 {
1910 unsigned int _arch;
1911 } _sigsys;
1912
1913 } _sifields;
1914 } siginfo_t ;
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
1918enum
1919{
1922
1925
1929
1930
1931
1932
1933
1936 SI_KERNEL = 0x80
1937# 66 "/usr/include/bits/siginfo-consts.h" 3 4
1939
1940
1941
1942
1943enum
1944{
1946
1948
1950
1952
1954
1956
1958
1960
1962
1964
1965
1966enum
1967{
1969
1971
1973
1975
1977
1979
1981
1983
1985
1987
1989
1990
1991enum
1992{
1994
1996
1998
2000
2002
2004
2006
2008
2010
2012
2013
2014enum
2015{
2017
2019
2021
2023
2025
2027# 176 "/usr/include/bits/siginfo-consts.h" 3 4
2028enum
2029{
2031
2033
2035
2037
2039
2041
2043
2044
2045enum
2046{
2048
2050
2052
2054
2056
2057 POLL_HUP
2058
2060# 59 "/usr/include/signal.h" 2 3 4
2061
2062
2063
2064# 1 "/usr/include/bits/types/sigval_t.h" 1 3 4
2065# 16 "/usr/include/bits/types/sigval_t.h" 3 4
2066typedef __sigval_t sigval_t;
2067# 63 "/usr/include/signal.h" 2 3 4
2068
2069
2070
2071# 1 "/usr/include/bits/types/sigevent_t.h" 1 3 4
2072
2073
2074
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
2079 {
2080 __sigval_t sigev_value;
2083
2084 union
2085 {
2086 int _pad[((64 / sizeof (int)) - 4)];
2087
2088
2089
2091
2092 struct
2093 {
2094 void (*_function) (__sigval_t);
2096 } _sigev_thread;
2097 } _sigev_un;
2098 } sigevent_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
2102enum
2103{
2105
2107
2109
2110
2111 SIGEV_THREAD_ID = 4
2112
2113
2115# 68 "/usr/include/signal.h" 2 3 4
2116
2117
2118
2119
2120typedef void (*__sighandler_t) (int);
2121
2122
2123
2124
2125extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler)
2126 __attribute__ ((__nothrow__ , __leaf__));
2127# 88 "/usr/include/signal.h" 3 4
2128extern __sighandler_t signal (int __sig, __sighandler_t __handler)
2129 __attribute__ ((__nothrow__ , __leaf__));
2130# 112 "/usr/include/signal.h" 3 4
2131extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__ , __leaf__));
2132
2133
2134
2135
2136
2137
2138extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__ , __leaf__));
2139
2140
2141
2142extern int raise (int __sig) __attribute__ ((__nothrow__ , __leaf__));
2143
2144
2145
2146extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)
2147 __attribute__ ((__nothrow__ , __leaf__));
2148extern int gsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__));
2149
2150
2151
2152
2153extern void psignal (int __sig, const char *__s);
2154
2155
2156extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
2157# 173 "/usr/include/signal.h" 3 4
2158extern int sigblock (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
2159
2160
2161extern int sigsetmask (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
2162
2163
2164extern int siggetmask (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
2165# 193 "/usr/include/signal.h" 3 4
2166typedef __sighandler_t sig_t;
2167
2168
2169
2170
2171
2172extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2173
2174
2175extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2176
2177
2178extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2179
2180
2181extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2182
2183
2184extern int sigismember (const sigset_t *__set, int __signo)
2185 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
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
2189struct sigaction
2190 {
2191
2192
2193 union
2194 {
2195
2196 __sighandler_t sa_handler;
2197
2198 void (*sa_sigaction) (int, siginfo_t *, void *);
2199 }
2200 __sigaction_handler;
2201
2202
2203
2204
2205
2206
2207
2208 __sigset_t sa_mask;
2209
2210
2211 int sa_flags;
2212
2213
2214 void (*sa_restorer) (void);
2215 };
2216# 230 "/usr/include/signal.h" 2 3 4
2217
2218
2219extern int sigprocmask (int __how, const sigset_t *__restrict __set,
2220 sigset_t *__restrict __oset) __attribute__ ((__nothrow__ , __leaf__));
2221
2222
2223
2224
2225
2226
2227extern int sigsuspend (const sigset_t *__set) __attribute__ ((__nonnull__ (1)));
2228
2229
2230extern int sigaction (int __sig, const struct sigaction *__restrict __act,
2231 struct sigaction *__restrict __oact) __attribute__ ((__nothrow__ , __leaf__));
2232
2233
2234extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2235
2236
2237
2238
2239
2240
2241
2242extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig)
2243 __attribute__ ((__nonnull__ (1, 2)));
2244
2245
2246
2247
2248
2249
2250
2251extern int sigwaitinfo (const sigset_t *__restrict __set,
2252 siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1)));
2253
2254
2255
2256
2257
2258
2259
2260extern int sigtimedwait (const sigset_t *__restrict __set,
2261 siginfo_t *__restrict __info,
2262 const struct timespec *__restrict __timeout)
2263 __attribute__ ((__nonnull__ (1)));
2264# 292 "/usr/include/signal.h" 3 4
2265extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val)
2266 __attribute__ ((__nothrow__ , __leaf__));
2267
2268
2269
2270
2271
2272
2273
2274# 1 "/usr/include/bits/sigcontext.h" 1 3 4
2275# 31 "/usr/include/bits/sigcontext.h" 3 4
2277{
2283};
2284
2286{
2287 unsigned short significand[4];
2288 unsigned short exponent;
2289};
2290
2292{
2293 unsigned short significand[4];
2294 unsigned short exponent;
2295 unsigned short __glibc_reserved1[3];
2296};
2297
2299{
2301};
2302# 123 "/usr/include/bits/sigcontext.h" 3 4
2304{
2305
2314 struct _fpxreg _st[8];
2315 struct _xmmreg _xmm[16];
2317};
2318
2320{
2339 unsigned short cs;
2340 unsigned short gs;
2341 unsigned short fs;
2342 unsigned short __pad0;
2347 __extension__ union
2348 {
2351 };
2353};
2354
2355
2356
2358{
2362};
2363
2365{
2367};
2368
2370{
2374};
2375# 302 "/usr/include/signal.h" 2 3 4
2376
2377
2378extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__ , __leaf__));
2379
2380
2381
2382
2383
2384
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
2387
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
2392
2393
2394typedef struct
2395 {
2396 void *ss_sp;
2398 size_t ss_size;
2399 } stack_t;
2400# 314 "/usr/include/signal.h" 2 3 4
2401
2402
2403# 1 "/usr/include/sys/ucontext.h" 1 3 4
2404# 37 "/usr/include/sys/ucontext.h" 3 4
2405__extension__ typedef long long int greg_t;
2406# 46 "/usr/include/sys/ucontext.h" 3 4
2407typedef greg_t gregset_t[23];
2408# 101 "/usr/include/sys/ucontext.h" 3 4
2410{
2411 unsigned short int significand[4];
2412 unsigned short int exponent;
2413 unsigned short int __glibc_reserved1[3];
2414};
2415
2417{
2419};
2420
2422{
2423
2433 struct _libc_xmmreg _xmm[16];
2435};
2436
2437
2438typedef struct _libc_fpstate *fpregset_t;
2439
2440
2441typedef struct
2442 {
2444
2445 fpregset_t fpregs;
2446 __extension__ unsigned long long __reserved1 [8];
2447} mcontext_t;
2448
2449
2450typedef struct ucontext_t
2451 {
2452 unsigned long int uc_flags;
2458 __extension__ unsigned long long int __ssp[4];
2459 } ucontext_t;
2460# 317 "/usr/include/signal.h" 2 3 4
2461
2462
2463
2464
2465
2466
2467
2468extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__ , __leaf__))
2469 __attribute__ ((__deprecated__ ("Use sigaction with SA_RESTART instead")));
2470
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
2477enum
2478{
2480
2482
2484# 330 "/usr/include/signal.h" 2 3 4
2485
2486
2487
2488extern int sigaltstack (const stack_t *__restrict __ss,
2489 stack_t *__restrict __oss) __attribute__ ((__nothrow__ , __leaf__));
2490
2491
2492
2493
2494# 1 "/usr/include/bits/types/struct_sigstack.h" 1 3 4
2495# 23 "/usr/include/bits/types/struct_sigstack.h" 3 4
2497 {
2498 void *ss_sp;
2500 };
2501# 340 "/usr/include/signal.h" 2 3 4
2502
2503
2504
2505
2506
2507
2508
2509extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
2510 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
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
2514extern int pthread_sigmask (int __how,
2515 const __sigset_t *__restrict __newmask,
2516 __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__ , __leaf__));
2517
2518
2519extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__ , __leaf__));
2520# 377 "/usr/include/signal.h" 2 3 4
2521
2522
2523
2524
2525
2526
2527extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__ , __leaf__));
2528
2529extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__ , __leaf__));
2530
2531
2532
2533
2534
2535# 1 "/usr/include/bits/signal_ext.h" 1 3 4
2536# 392 "/usr/include/signal.h" 2 3 4
2537
2538
2539# 553 "papi.h" 2
2540# 565 "papi.h"
2541
2542# 565 "papi.h"
2543typedef unsigned long PAPI_thread_id_t;
2544
2545
2546 typedef struct _papi_all_thr_spec {
2547 int num;
2548 PAPI_thread_id_t *id;
2549 void **data;
2551
2552 typedef void (*PAPI_overflow_handler_t) (int EventSet, void *address,
2553 long long overflow_vector, void *context);
2554
2555typedef void *vptr_t;
2556
2557
2558 typedef struct _papi_sprofil {
2559 void *pr_base;
2560 unsigned pr_size;
2561 vptr_t pr_off;
2562 unsigned pr_scale;
2563
2564
2565
2567
2568
2569 typedef struct _papi_itimer_option {
2570 int itimer_num;
2571 int itimer_sig;
2572 int ns;
2573 int flags;
2575
2576
2577 typedef struct _papi_inherit_option {
2578 int eventset;
2579 int inherit;
2581
2582
2583 typedef struct _papi_domain_option {
2584 int def_cidx;
2585 int eventset;
2586 int domain;
2588
2589
2590 typedef struct _papi_granularity_option {
2591 int def_cidx;
2592 int eventset;
2593 int granularity;
2595
2596
2597 typedef struct _papi_preload_option {
2598 char lib_preload_env[128];
2599 char lib_preload_sep;
2600 char lib_dir_env[128];
2601 char lib_dir_sep;
2603
2604
2605 typedef struct _papi_component_option {
2606 char name[128];
2607 char short_name[64];
2608
2609 char description[128];
2610 char version[64];
2611 char support_version[64];
2612 char kernel_version[64];
2613 char disabled_reason[1024];
2614 int disabled;
2615 int initialized;
2616 int CmpIdx;
2617 int num_cntrs;
2618 int num_mpx_cntrs;
2619 int num_preset_events;
2621 int default_domain;
2622 int available_domains;
2623 int default_granularity;
2624 int available_granularities;
2625 int hardware_intr_sig;
2626 int component_type;
2627 char *pmu_names[80];
2628 int reserved[8];
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;
2637 unsigned int attach:1;
2638 unsigned int attach_must_ptrace:1;
2639 unsigned int cntr_umasks:1;
2640
2641 unsigned int cpu:1;
2642 unsigned int inherit:1;
2643 unsigned int reserved_bits:19;
2645
2646
2647 typedef struct _papi_mpx_info {
2648 int timer_sig;
2649 int timer_num;
2650 int timer_us;
2652
2653 typedef int (*PAPI_debug_handler_t) (int code);
2654
2655
2656 typedef struct _papi_debug_option {
2657 int level;
2660
2661
2662
2663 typedef struct _papi_address_map {
2664 char name[1024];
2665 vptr_t text_start;
2666 vptr_t text_end;
2667 vptr_t data_start;
2668 vptr_t data_end;
2669 vptr_t bss_start;
2670 vptr_t bss_end;
2672
2673
2674
2675 typedef struct _papi_program_info {
2676 char fullname[1024];
2677 PAPI_address_map_t address_info;
2679
2680
2681 typedef struct _papi_shared_lib_info {
2682 PAPI_address_map_t *map;
2683 int count;
2685
2686
2688# 744 "papi.h"
2689 typedef struct _papi_mh_tlb_info {
2690 int type;
2691 int num_entries;
2692 int page_size;
2693 int associativity;
2695
2696
2697 typedef struct _papi_mh_cache_info {
2698 int type;
2699 int size;
2700 int line_size;
2701 int num_lines;
2702 int associativity;
2704
2705
2706 typedef struct _papi_mh_level_info {
2707 PAPI_mh_tlb_info_t tlb[6];
2708 PAPI_mh_cache_info_t cache[6];
2710
2711
2712
2713 typedef struct _papi_mh_info {
2714 int levels;
2715 PAPI_mh_level_t level[4];
2717
2718
2719
2720 typedef struct _papi_hw_info {
2721 int ncpu;
2722 int threads;
2723 int cores;
2724 int sockets;
2725 int nnodes;
2726 int totalcpus;
2727 int vendor;
2728 char vendor_string[128];
2729 int model;
2730 char model_string[128];
2731 float revision;
2732 int cpuid_family;
2733 int cpuid_model;
2734 int cpuid_stepping;
2735
2736 int cpu_max_mhz;
2737 int cpu_min_mhz;
2738
2739 PAPI_mh_info_t mem_hierarchy;
2740 int virtualized;
2741 char virtual_vendor_string[128];
2742
2743 char virtual_vendor_version[128];
2744
2745
2746
2747 float mhz;
2748 int clock_mhz;
2749
2750
2751 int reserved[8];
2752
2754
2755
2756 typedef struct _papi_attach_option {
2757 int eventset;
2758 unsigned long tid;
2760
2761
2762 typedef struct _papi_cpu_option {
2763 int eventset;
2764 unsigned int cpu_num;
2766
2767
2768 typedef struct _papi_multiplex_option {
2769 int eventset;
2770 int ns;
2771 int flags;
2773
2774
2775
2776 typedef struct _papi_addr_range_option {
2777 int eventset;
2778 vptr_t start;
2779 vptr_t end;
2780 int start_off;
2781 int end_off;
2783
2784
2785
2786
2787
2788 typedef union
2789 {
2790 PAPI_preload_info_t preload;
2791 PAPI_debug_option_t debug;
2793 PAPI_granularity_option_t granularity;
2794 PAPI_granularity_option_t defgranularity;
2795 PAPI_domain_option_t domain;
2796 PAPI_domain_option_t defdomain;
2800 PAPI_itimer_option_t itimer;
2802 PAPI_shlib_info_t *shlib_info;
2803 PAPI_exe_info_t *exe_info;
2804 PAPI_component_info_t *cmp_info;
2807 } PAPI_option_t;
2808
2809
2810
2811 typedef struct _dmem_t {
2812 long long peak;
2813 long long size;
2814 long long resident;
2815 long long high_water_mark;
2816 long long shared;
2817 long long text;
2818 long long library;
2819 long long heap;
2820 long long locked;
2821 long long stack;
2822 long long pagesize;
2823 long long pte;
2825# 920 "papi.h"
2826enum {
2831};
2832
2833
2834enum {
2839};
2840
2841
2842enum {
2845};
2846
2847
2848enum {
2853};
2854
2855
2856enum {
2861};
2862
2863
2864 typedef struct event_info {
2865 unsigned int event_code;
2866
2867 char symbol[1024];
2868 char short_descr[64];
2869
2870 char long_descr[1024];
2871
2872
2873
2874
2875 int component_index;
2876 char units[64];
2877 int location;
2878 int data_type;
2879 int value_type;
2880 int timescope;
2881 int update_type;
2882 int update_freq;
2883
2884
2885
2886
2887
2888 unsigned int count;
2889
2890
2891
2892
2893 unsigned int event_type;
2894
2895
2896 char derived[64];
2897
2898
2899 char postfix[256];
2900
2901
2902
2903
2904 unsigned int code[12];
2905
2906
2907
2908
2909 char name[12]
2910 [256];
2911
2912
2913
2914 char note[1024];
2915
2916
2917
2918
2920# 1023 "papi.h"
2921typedef enum {
2927# 1038 "papi.h"
2928enum {
2934};
2935
2936
2937
2938
2939
2940typedef enum {
2947# 1069 "papi.h"
2948typedef enum {
3014
3015
3016
3017
3018
3019 int PAPI_accum(int EventSet, long long * values);
3020 int PAPI_add_event(int EventSet, int Event);
3021 int PAPI_add_named_event(int EventSet, const char *EventName);
3022 int PAPI_add_events(int EventSet, int *Events, int number);
3024 int PAPI_attach(int EventSet, unsigned long tid);
3027 int PAPI_detach(int EventSet);
3029 int PAPI_enum_event(int *EventCode, int modifier);
3030 int PAPI_enum_cmp_event(int *EventCode, int modifier, int cidx);
3031 int PAPI_event_code_to_name(int EventCode, char *out);
3032 int PAPI_event_name_to_code(const char *in, int *out);
3034 int PAPI_get_event_info(int EventCode, PAPI_event_info_t * info);
3039 int PAPI_get_opt(int option, PAPI_option_t * ptr);
3040 int PAPI_get_cmp_opt(int option, PAPI_option_t * ptr,int cidx);
3041 long long PAPI_get_real_cyc(void);
3042 long long PAPI_get_real_nsec(void);
3043 long long PAPI_get_real_usec(void);
3045 int PAPI_get_thr_specific(int tag, void **ptr);
3046 int PAPI_get_overflow_event_index(int Eventset, long long overflow_vector, int *array, int *number);
3047 long long PAPI_get_virt_cyc(void);
3048 long long PAPI_get_virt_nsec(void);
3049 long long PAPI_get_virt_usec(void);
3050 int PAPI_is_initialized(void);
3051 int PAPI_library_init(int version);
3052 int PAPI_list_events(int EventSet, int *Events, int *number);
3053 int PAPI_list_threads(unsigned long *tids, int *number);
3054 int PAPI_lock(int);
3055 int PAPI_multiplex_init(void);
3056 int PAPI_num_cmp_hwctrs(int cidx);
3057 int PAPI_num_events(int EventSet);
3058 int PAPI_overflow(int EventSet, int EventCode, int threshold,
3059 int flags, PAPI_overflow_handler_t handler);
3060 void PAPI_perror(const char *msg );
3061 int PAPI_profil(void *buf, unsigned bufsiz, vptr_t offset,
3062 unsigned scale, int EventSet, int EventCode,
3063 int threshold, int flags);
3064 int PAPI_query_event(int EventCode);
3065 int PAPI_query_named_event(const char *EventName);
3066 int PAPI_read(int EventSet, long long * values);
3067 int PAPI_read_ts(int EventSet, long long * values, long long *cyc);
3068 int PAPI_register_thread(void);
3069 int PAPI_remove_event(int EventSet, int EventCode);
3070 int PAPI_remove_named_event(int EventSet, const char *EventName);
3071 int PAPI_remove_events(int EventSet, int *Events, int number);
3072 int PAPI_reset(int EventSet);
3073 int PAPI_set_debug(int level);
3074 int PAPI_set_cmp_domain(int domain, int cidx);
3075 int PAPI_set_domain(int domain);
3076 int PAPI_set_cmp_granularity(int granularity, int cidx);
3077 int PAPI_set_granularity(int granularity);
3079 int PAPI_set_opt(int option, PAPI_option_t * ptr);
3080 int PAPI_set_thr_specific(int tag, void *ptr);
3081 void PAPI_shutdown(void);
3082 int PAPI_sprofil(PAPI_sprofil_t * prof, int profcnt, int EventSet, int EventCode, int threshold, int flags);
3083 int PAPI_start(int EventSet);
3084 int PAPI_state(int EventSet, int *status);
3085 int PAPI_stop(int EventSet, long long * values);
3086 char *PAPI_strerror(int);
3087 unsigned long PAPI_thread_id(void);
3088 int PAPI_thread_init(unsigned long (*id_fn) (void));
3089 int PAPI_unlock(int);
3090 int PAPI_unregister_thread(void);
3091 int PAPI_write(int EventSet, long long * values);
3092 int PAPI_get_event_component(int EventCode);
3094 int PAPI_get_component_index(const char *name);
3096 int PAPI_disable_component_by_name(const char *name );
3097 int PAPI_num_components(void);
3098
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);
3103 int PAPI_rate_stop(void);
3104
3105 int PAPI_enum_dev_type(int enum_modifier, void **handle);
3106 int PAPI_get_dev_type_attr(void *handle, PAPI_dev_type_attr_e attr, void *value);
3107 int PAPI_get_dev_attr(void *handle, int id, PAPI_dev_attr_e attr, void *value);
3108# 1238 "papi.h"
3109 int PAPI_hl_region_begin(const char* region);
3110 int PAPI_hl_read(const char* region);
3111 int PAPI_hl_region_end(const char* region);
3112 int PAPI_hl_stop(void);
3113
3114
3115
3116
3117int PAPI_num_hwctrs(void);
3118
3119
3120
3121
3122
3123
3124
3125#pragma GCC visibility pop
3126# 27 "papi_fwrappers.c" 2
3127# 50 "papi_fwrappers.c"
3128static void Fortran2cstring( char *cstring, char *Fstring, int clen , int Flen )
3129{
3130 int slen, i;
3131
3132
3133 slen = Flen < clen ? Flen : clen;
3134 strncpy( cstring, Fstring, ( size_t ) slen );
3135
3136
3137 for ( i = slen - 1; i > -1 && cstring[i] == ' '; cstring[i--] = '\0' );
3138
3139
3140 cstring[clen - 1] = '\0';
3141 if ( slen < clen )
3142 cstring[slen] = '\0';
3143}
3144# 78 "papi_fwrappers.c"
3145void papif_accum_ ( int *EventSet, long long *values, int *check )
3146
3147{
3149}
3150# 94 "papi_fwrappers.c"
3151void papif_add_event_ ( int *EventSet, int *Event, int *check )
3152
3153{
3155}
3156# 111 "papi_fwrappers.c"
3157void papif_add_named_event_ ( int *EventSet, char *EventName, int *check, int Event_len )
3158
3159{
3160 char tmp[128];
3161 Fortran2cstring( tmp, EventName, 128, Event_len );
3163}
3164# 136 "papi_fwrappers.c"
3165void papif_add_events_ ( int *EventSet, int *Events, int *number, int *check )
3166
3167{
3168 *check = PAPI_add_events( *EventSet, Events, *number );
3169}
3170# 152 "papi_fwrappers.c"
3172
3173{
3175}
3176# 168 "papi_fwrappers.c"
3178
3179{
3181}
3182# 184 "papi_fwrappers.c"
3184
3185{
3187}
3188# 200 "papi_fwrappers.c"
3190
3191{
3193}
3194# 217 "papi_fwrappers.c"
3195void papif_get_dmem_info_ ( long long *dest, int *check )
3196
3197{
3198 *check = PAPI_get_dmem_info( ( PAPI_dmem_info_t * ) dest );
3199}
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"
3203{
3204 PAPI_option_t e;
3205
3206
3207
3208
3209
3210 if ( ( *check = PAPI_get_opt( 17, &e ) ) == 0 ) {
3211
3212 int i;
3213 strncpy( fullname, e.exe_info->fullname, ( size_t ) fullname_len );
3214 for ( i = ( int ) strlen( e.exe_info->fullname ); i < fullname_len;
3215 fullname[i++] = ' ' );
3216 strncpy( name, e.exe_info->address_info.name, ( size_t ) name_len );
3217 for ( i = ( int ) strlen( e.exe_info->address_info.name ); i < name_len;
3218 name[i++] = ' ' );
3219
3220
3221
3222
3223 *text_start = ( long ) e.exe_info->address_info.text_start;
3224 *text_end = ( long ) e.exe_info->address_info.text_end;
3225 *data_start = ( long ) e.exe_info->address_info.data_start;
3226 *data_end = ( long ) e.exe_info->address_info.data_end;
3227 *bss_start = ( long ) e.exe_info->address_info.bss_start;
3228 *bss_end = ( long ) e.exe_info->address_info.bss_end;
3229 }
3230}
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"
3234{
3235 const PAPI_hw_info_t *hwinfo;
3236 int i;
3237 hwinfo = PAPI_get_hardware_info( );
3238 if ( hwinfo ==
3239# 320 "papi_fwrappers.c" 3 4
3240 ((void *)0)
3241# 320 "papi_fwrappers.c"
3242 ) {
3243 *ncpu = 0;
3244 *nnodes = 0;
3245 *totalcpus = 0;
3246 *vendor = 0;
3247 *model = 0;
3248 *revision = 0;
3249 *mhz = 0;
3250 } else {
3251 *ncpu = hwinfo->ncpu;
3252 *nnodes = hwinfo->nnodes;
3253 *totalcpus = hwinfo->totalcpus;
3254 *vendor = hwinfo->vendor;
3255 *model = hwinfo->model;
3256 *revision = hwinfo->revision;
3257 *mhz = hwinfo->cpu_max_mhz;
3258
3259 strncpy( vendor_str, hwinfo->vendor_string, ( size_t ) vendor_len );
3260 for ( i = ( int ) strlen( hwinfo->vendor_string ); i < vendor_len;
3261 vendor_str[i++] = ' ' );
3262 strncpy( model_str, hwinfo->model_string, ( size_t ) model_len );
3263 for ( i = ( int ) strlen( hwinfo->model_string ); i < model_len;
3264 model_str[i++] = ' ' );
3265
3266
3267
3268
3269
3270
3271
3272 }
3273 return;
3274}
3275# 365 "papi_fwrappers.c"
3276void papif_num_hwctrs_ ( int *num )
3277{
3278 *num = PAPI_num_hwctrs( );
3279}
3280# 381 "papi_fwrappers.c"
3281void papif_num_cmp_hwctrs_ ( int *cidx, int *num )
3282
3283{
3284 *num = PAPI_num_cmp_hwctrs( *cidx );
3285}
3286# 397 "papi_fwrappers.c"
3287void papif_get_real_cyc_ ( long long *real_cyc )
3288{
3289 *real_cyc = PAPI_get_real_cyc( );
3290}
3291# 412 "papi_fwrappers.c"
3292void papif_get_real_usec_ ( long long *time )
3293{
3294 *time = PAPI_get_real_usec( );
3295}
3296# 427 "papi_fwrappers.c"
3297void papif_get_real_nsec_ ( long long *time )
3298{
3299 *time = PAPI_get_real_nsec( );
3300}
3301# 442 "papi_fwrappers.c"
3302void papif_get_virt_cyc_ ( long long *virt_cyc )
3303{
3304 *virt_cyc = PAPI_get_virt_cyc( );
3305}
3306# 457 "papi_fwrappers.c"
3307void papif_get_virt_usec_ ( long long *time )
3308{
3309 *time = PAPI_get_virt_usec( );
3310}
3311# 472 "papi_fwrappers.c"
3312void papif_is_initialized_ ( int *level )
3313{
3314 *level = PAPI_is_initialized( );
3315}
3316# 487 "papi_fwrappers.c"
3318{
3320}
3321# 502 "papi_fwrappers.c"
3322void papif_thread_id_ ( unsigned long *id )
3323{
3324 *id = PAPI_thread_id( );
3325}
3326# 517 "papi_fwrappers.c"
3328{
3330}
3331# 532 "papi_fwrappers.c"
3333{
3335}
3336
3337
3338
3339
3341{
3343}
3344# 556 "papi_fwrappers.c"
3345void papif_thread_init_ ( unsigned long int ( *handle ) ( void ), int *check )
3346
3347{
3349}
3350# 572 "papi_fwrappers.c"
3351void papif_list_events_ ( int *EventSet, int *Events, int *number, int *check )
3352
3353{
3354 *check = PAPI_list_events( *EventSet, Events, number );
3355}
3356# 588 "papi_fwrappers.c"
3358{
3360}
3361# 603 "papi_fwrappers.c"
3363
3364{
3366}
3367# 619 "papi_fwrappers.c"
3369
3370{
3372}
3373# 636 "papi_fwrappers.c"
3374void papif_perror_ ( char *message, int message_len )
3375
3376
3377
3378
3379
3380
3381{
3382
3383 char tmp[128];
3384 Fortran2cstring( tmp, message, 128, message_len );
3385
3386 PAPI_perror( tmp );
3387
3388
3389
3390}
3391# 672 "papi_fwrappers.c"
3392void papif_query_event_ ( int *EventCode, int *check )
3393
3394{
3395 *check = PAPI_query_event( *EventCode );
3396}
3397# 689 "papi_fwrappers.c"
3398void papif_query_named_event_ ( char *EventName, int *check, int Event_len )
3399
3400{
3401 char tmp[128];
3402 Fortran2cstring( tmp, EventName, 128, Event_len );
3404}
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"
3408{
3409 PAPI_event_info_t info;
3410 ( void ) flags;
3411
3412 int i;
3413 if ( ( *check = PAPI_get_event_info( *EventCode, &info ) ) == 0 ) {
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++] = ' ' );
3423
3424 *count = ( int ) info.count;
3425
3426 int note_len=0;
3427
3428 strncpy( event_note, info.note, ( size_t ) event_note_len );
3429 note_len=strlen(info.note);
3430
3431 for ( i = note_len; i < event_note_len;
3432 event_note[i++] = ' ' );
3433 }
3434# 766 "papi_fwrappers.c"
3435}
3436# 779 "papi_fwrappers.c"
3437void papif_event_code_to_name_ ( int *EventCode, char *out_str, int *check, int out_len )
3438
3439
3440
3441
3442
3443{
3444
3445 char tmp[128];
3446 int i;
3447 *check = PAPI_event_code_to_name( *EventCode, tmp );
3448
3449 strncpy( out_str, tmp, ( size_t ) out_len );
3450
3451 for ( i = ( int ) strlen( tmp ); i < out_len; out_str[i++] = ' ' );
3452
3453
3454
3455
3456}
3457# 811 "papi_fwrappers.c"
3458void papif_event_name_to_code_ ( char *in_str, int *out, int *check, int in_len )
3459
3460
3461
3462
3463
3464{
3465
3466 int slen, i;
3467 char tmpin[128];
3468
3469
3470 slen = in_len < 128 ? in_len : 128;
3471 strncpy( tmpin, in_str, ( size_t ) slen );
3472
3473
3474 for ( i = slen - 1; i > -1 && tmpin[i] == ' '; tmpin[i--] = '\0' );
3475
3476
3477 tmpin[128 - 1] = '\0';
3478 if ( slen < 128 )
3479 tmpin[slen] = '\0';
3480
3481 *check = PAPI_event_name_to_code( tmpin, out );
3482
3483
3484
3485
3486}
3487# 851 "papi_fwrappers.c"
3488void papif_num_events_ ( int *EventCode, int *count )
3489{
3490 *count = PAPI_num_events( *EventCode );
3491}
3492# 866 "papi_fwrappers.c"
3493void papif_enum_event_ ( int *EventCode, int *modifier, int *check )
3494
3495{
3496 *check = PAPI_enum_event( EventCode, *modifier );
3497}
3498# 882 "papi_fwrappers.c"
3499void papif_read_ ( int *EventSet, long long *values, int *check )
3500
3501{
3503}
3504# 898 "papi_fwrappers.c"
3505void papif_read_ts_ ( int *EventSet, long long *values, long long *cycles, int *check )
3506
3507{
3508 *check = PAPI_read_ts( *EventSet, values, cycles );
3509}
3510# 914 "papi_fwrappers.c"
3511void papif_remove_event_ ( int *EventSet, int *Event, int *check )
3512
3513{
3515}
3516# 931 "papi_fwrappers.c"
3517void papif_remove_named_event_ ( int *EventSet, char *EventName, int *check, int Event_len )
3518
3519{
3520 char tmp[128];
3521 Fortran2cstring( tmp, EventName, 128, Event_len );
3523}
3524# 956 "papi_fwrappers.c"
3525void papif_remove_events_ ( int *EventSet, int *Events, int *number, int *check )
3526
3527{
3528 *check = PAPI_remove_events( *EventSet, Events, *number );
3529}
3530# 972 "papi_fwrappers.c"
3531void papif_reset_ ( int *EventSet, int *check )
3532{
3533 *check = PAPI_reset( *EventSet );
3534}
3535# 987 "papi_fwrappers.c"
3536void papif_set_debug_ ( int *debug, int *check )
3537{
3538 *check = PAPI_set_debug( *debug );
3539}
3540# 1002 "papi_fwrappers.c"
3541void papif_set_domain_ ( int *domain, int *check )
3542{
3543 *check = PAPI_set_domain( *domain );
3544}
3545# 1017 "papi_fwrappers.c"
3546void papif_set_cmp_domain_ ( int *domain, int *cidx, int *check )
3547
3548{
3549 *check = PAPI_set_cmp_domain( *domain, *cidx );
3550}
3551# 1033 "papi_fwrappers.c"
3552void papif_set_granularity_ ( int *granularity, int *check )
3553
3554{
3555 *check = PAPI_set_granularity( *granularity );
3556}
3557# 1049 "papi_fwrappers.c"
3558void papif_set_cmp_granularity_ ( int *granularity, int *cidx, int *check )
3559
3560{
3561 *check = PAPI_set_cmp_granularity( *granularity, *cidx );
3562}
3563# 1065 "papi_fwrappers.c"
3564void papif_shutdown_ ( void )
3565{
3566 PAPI_shutdown( );
3567}
3568# 1080 "papi_fwrappers.c"
3569void papif_start_ ( int *EventSet, int *check )
3570{
3571 *check = PAPI_start( *EventSet );
3572}
3573# 1095 "papi_fwrappers.c"
3574void papif_state_ ( int *EventSet, int *status, int *check )
3575
3576{
3577 *check = PAPI_state( *EventSet, status );
3578}
3579# 1111 "papi_fwrappers.c"
3580void papif_stop_ ( int *EventSet, long long *values, int *check )
3581
3582{
3584}
3585# 1127 "papi_fwrappers.c"
3586void papif_write_ ( int *EventSet, long long *values, int *check )
3587
3588{
3590}
3591# 1143 "papi_fwrappers.c"
3592void papif_lock_ ( int *lock, int *check )
3593
3594{
3595 *check = PAPI_lock( *lock );
3596}
3597# 1159 "papi_fwrappers.c"
3598void papif_unlock_ ( int *lock, int *check )
3599
3600{
3601 *check = PAPI_unlock( *lock );
3602}
3603# 1180 "papi_fwrappers.c"
3604void papif_get_clockrate_ ( int *cr )
3605{
3606 *cr = PAPI_get_opt( 14, (PAPI_option_t *)
3607# 1182 "papi_fwrappers.c" 3 4
3608 ((void *)0)
3609# 1182 "papi_fwrappers.c"
3610 );
3611}
3612# 1198 "papi_fwrappers.c"
3613void papif_get_preload_ ( char *lib_preload_env, int *check, int lib_preload_env_len )
3614
3615
3616
3617
3618
3619{
3620 PAPI_option_t p;
3621
3622 int i;
3623
3624 if ( ( *check = PAPI_get_opt( 13, &p ) ) == 0 ) {
3625 strncpy( lib_preload_env, p.preload.lib_preload_env,
3626 ( size_t ) lib_preload_env_len );
3627 for ( i = ( int ) strlen( p.preload.lib_preload_env );
3628 i < lib_preload_env_len; lib_preload_env[i++] = ' ' );
3629 }
3630
3631
3632
3633
3634
3635}
3636# 1232 "papi_fwrappers.c"
3637void papif_get_granularity_ ( int *eventset, int *granularity, int *mode, int *check )
3638
3639{
3640 PAPI_option_t g;
3641
3642 if ( *mode == 6 ) {
3643 *granularity = PAPI_get_opt( *mode, &g );
3644 *check = 0;
3645 } else if ( *mode == 7 ) {
3646 g.granularity.eventset = *eventset;
3647 if ( ( *check = PAPI_get_opt( *mode, &g ) ) == 0 ) {
3648 *granularity = g.granularity.granularity;
3649 }
3650 } else {
3651 *check = -1;
3652 }
3653}
3654# 1260 "papi_fwrappers.c"
3655void papif_get_domain_ ( int *eventset, int *domain, int *mode, int *check )
3656
3657{
3658 PAPI_option_t d;
3659
3660 if ( *mode == 4 ) {
3661 *domain = PAPI_get_opt( *mode, (PAPI_option_t *)
3662# 1266 "papi_fwrappers.c" 3 4
3663 ((void *)0)
3664# 1266 "papi_fwrappers.c"
3665 );
3666 *check = 0;
3667 } else if ( *mode == 5 ) {
3668 d.domain.eventset = *eventset;
3669 if ( ( *check = PAPI_get_opt( *mode, &d ) ) == 0 ) {
3670 *domain = d.domain.domain;
3671 }
3672 } else {
3673 *check = -1;
3674 }
3675}
3676# 1300 "papi_fwrappers.c"
3677void papif_set_event_domain_ ( int *es, int *domain, int *check )
3678
3679{
3680 PAPI_option_t d;
3681
3682 d.domain.domain = *domain;
3683 d.domain.eventset = *es;
3684 *check = PAPI_set_opt( 5, &d );
3685}
3686# 1320 "papi_fwrappers.c"
3688{
3690
3691 i.inherit.inherit = *inherit;
3692 *check = PAPI_set_opt( 28, &i );
3693}
3694# 1338 "papi_fwrappers.c"
3695void papif_ipc_ ( float *rtime, float *ptime, long long *ins, float *ipc, int *check )
3696
3697
3698{
3699 *check = PAPI_ipc( rtime, ptime, ins, ipc );
3700}
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)
3703
3704
3705
3706{
3707 *check = PAPI_epc( event, rtime, ptime, ref, core, evt, epc );
3708}
3709# 1373 "papi_fwrappers.c"
3710void papif_flips_rate_ ( int event, float *real_time, float *proc_time, long long *flpins, float *mflips, int *check )
3711
3712
3713{
3714 *check = PAPI_flips_rate( event, real_time, proc_time, flpins, mflips );
3715}
3716# 1390 "papi_fwrappers.c"
3717void papif_flops_rate_ ( int event, float *real_time, float *proc_time, long long *flpops, float *mflops, int *check )
3718
3719
3720{
3721 *check = PAPI_flops_rate( event, real_time, proc_time, flpops, mflops );
3722}
3723# 1407 "papi_fwrappers.c"
3725
3726{
3727 *check = PAPI_rate_stop( );
3728}
3729
3731# 1425 "papi_fwrappers.c"
3732void papif_enum_dev_type_ ( int *modifier, int *handle_index, int *check )
3733{
3735 *handle_index = 0;
3736}
3737# 1443 "papi_fwrappers.c"
3738void papif_get_dev_type_attr_ (int *handle_index, int *attribute, int *value, char *string, int *check, int string_len)
3739# 1456 "papi_fwrappers.c"
3740{
3741 const char *string_ptr;
3742 int i;
3743 *handle_index = 0;
3744 *check = 0;
3745
3746
3747# 1462 "papi_fwrappers.c" 3 4
3748 ((void) sizeof ((
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"
3762 ;
3763
3764 switch(*attribute) {
3769 value);
3770 break;
3774 &string_ptr);
3775 if (*check != 0) {
3776 break;
3777 }
3778
3779 strncpy(string, string_ptr, string_len);
3780 for ( i = ( int ) string_len; i < 128;
3781 string[i++] = ' ' );
3782
3783
3784
3785
3786
3787 break;
3788 default:
3789 *check = -1;
3790 }
3791 *handle_index = 0;
3792 return;
3793}
3794# 1507 "papi_fwrappers.c"
3795void papif_get_dev_attr_ (int *handle_index, int *id, int *attribute, int *value, char *string, int *check, int string_len)
3796# 1522 "papi_fwrappers.c"
3797{
3798 int i;
3799 const char *string_ptr;
3800 *handle_index = 0;
3801 *check = 0;
3802
3803
3804# 1528 "papi_fwrappers.c" 3 4
3805 ((void) sizeof ((
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"
3819 ;
3820
3821 switch(*attribute) {
3882 *check = PAPI_get_dev_attr(sysdetect_fort_handle, *id, *attribute,
3883 value);
3884 break;
3887 *check = PAPI_get_dev_attr(sysdetect_fort_handle, *id, *attribute,
3888 &string_ptr);
3889 if (*check != 0) {
3890 break;
3891 }
3892
3893 strncpy(string, string_ptr, (size_t) string_len);
3894 for ( i = ( int ) strlen(string_ptr); i < 128;
3895 string[i++] = ' ' );
3896
3897
3898
3899
3900
3901 break;
3902 default:
3903 *check = -1;
3904 }
3905 return;
3906}
3907# 1672 "papi_fwrappers.c"
3908void papif_hl_region_begin_ ( char* name, int *check, int Event_len )
3909
3910{
3911 char tmp[128];
3912 Fortran2cstring( tmp, name, 128, Event_len );
3914}
3915# 1741 "papi_fwrappers.c"
3916void papif_hl_read_ ( char* name, int *check, int Event_len )
3917
3918{
3919 char tmp[128];
3920 Fortran2cstring( tmp, name, 128, Event_len );
3921 *check = PAPI_hl_read( tmp );
3922}
3923# 1804 "papi_fwrappers.c"
3924void papif_hl_region_end_ ( char* name, int *check, int Event_len )
3925
3926{
3927 char tmp[128];
3928 Fortran2cstring( tmp, name, 128, Event_len );
3930}
3931# 1865 "papi_fwrappers.c"
3933
3934{
3935 *check = PAPI_hl_stop( );
3936}
3937
3938#pragma GCC visibility pop
static papi_handle_t handle
Definition: Gamum.c:21
double tmp
int i
atomic_p lock[]
Definition: aix.c:25
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
Definition: appio.c:279
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream)
Definition: appio.c:391
static const PAPI_hw_info_t * hw_info
Definition: byte_profile.c:28
static long count
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]
Definition: do_loops.c:12
int PAPI_hl_stop(void)
Definition: papi_hl.c:2184
long long PAPI_get_virt_cyc(void)
Definition: papi.c:6860
long long PAPI_get_real_cyc(void)
Definition: papi.c:6777
int PAPI_register_thread(void)
Definition: papi.c:750
int PAPI_num_components(void)
Definition: papi.c:4947
long long PAPI_get_virt_nsec(void)
Definition: papi.c:6890
int PAPI_is_initialized(void)
Definition: papi.c:7023
long long PAPI_get_real_nsec(void)
Definition: papi.c:6797
int PAPI_multiplex_init(void)
Definition: papi.c:3541
unsigned long PAPI_thread_id(void)
Definition: papi.c:704
void PAPI_shutdown(void)
Definition: papi.c:5021
long long PAPI_get_virt_usec(void)
Definition: papi.c:6932
int PAPI_unregister_thread(void)
Definition: papi.c:786
const PAPI_exe_info_t * PAPI_get_executable_info(void)
Definition: papi.c:6674
long long PAPI_get_real_usec(void)
Definition: papi.c:6824
const PAPI_shlib_info_t * PAPI_get_shared_lib_info(void)
Definition: papi.c:6704
int PAPI_rate_stop(void)
Definition: papi.c:415
const PAPI_hw_info_t * PAPI_get_hardware_info(void)
Definition: papi.c:6745
PAPI_dev_type_attr_e
Definition: papi.h:1049
@ 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__ROCM
@ PAPI_DEV_TYPE_ID__CUDA
@ PAPI_DEV_TYPE_ID__MAX_NUM
@ PAPI_DEV_TYPE_ID__CPU
PAPI_dev_attr_e
Definition: papi.h:1068
@ 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 int EventSet
Definition: init_fini.c:8
static long long values[NUM_EVENTS]
Definition: init_fini.c:10
static int threshold
static struct timeval start
uint16_t location
uint16_t reserved
uint8_t version
uint16_t type
static struct counter_info * event_info
unsigned long AO_t __attribute__((__aligned__(4)))
Definition: m68k.h:21
int multiplex(void)
Definition: multiplex.c:35
char * PAPI_user_defined_events_file_t
Definition: papi.h:708
unsigned long PAPI_thread_id_t
Definition: papi.h:564
int(* PAPI_debug_handler_t)(int code)
Definition: papi.h:674
void * vptr_t
Definition: papi.h:576
i inherit inherit
* handle_index
* check
@ PAPI_PRESET_ENUM_L3
@ PAPI_ENUM_EVENTS
@ PAPI_PRESET_ENUM_FP
@ PAPI_PRESET_ENUM_CACH
@ PAPI_PRESET_ENUM_MEM
@ PAPI_PRESET_ENUM_MSC
@ PAPI_ENUM_FIRST
@ PAPI_NTV_ENUM_DEAR
@ PAPI_NTV_ENUM_UMASKS
@ PAPI_PRESET_ENUM_AVAIL
@ PAPI_PRESET_ENUM_L2
@ PAPI_NTV_ENUM_DARR
@ PAPI_PRESET_ENUM_L1
@ PAPI_NTV_ENUM_GROUPS
@ PAPI_PRESET_ENUM_INS
@ PAPI_PRESET_ENUM_CND
@ PAPI_NTV_ENUM_UMASK_COMBOS
@ PAPI_NTV_ENUM_IEAR
@ PAPI_NTV_ENUM_IARR
@ PAPI_PRESET_ENUM_TLB
@ PAPI_NTV_ENUM_OPCM
@ PAPI_PRESET_ENUM_IDL
@ PAPI_PRESET_ENUM_BR
unsigned int __uid_t
int renameat(int __oldfd, const char *__old, int __newfd, const char *__new) __attribute__((__nothrow__
void papif_get_multiplex_(int *EventSet, int *check)
__off_t off_t
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)
long int __intmax_t
long int __intptr_t
@ SEGV_MAPERR
@ SEGV_ADIDERR
@ SEGV_ACCERR
@ SEGV_MTEAERR
@ SEGV_ADIPERR
@ SEGV_ACCADI
@ SEGV_PKUERR
@ SEGV_BNDERR
@ SEGV_MTESERR
@ PAPI_LOCATION_CPU
@ PAPI_LOCATION_PACKAGE
@ PAPI_LOCATION_CORE
@ PAPI_LOCATION_UNCORE
@ PAPI_L2_DCH_idx
@ PAPI_BRU_IDL_idx
@ PAPI_L3_DCA_idx
@ PAPI_L3_DCW_idx
@ PAPI_TOT_CYC_idx
@ PAPI_L2_ICH_idx
@ PAPI_FSQ_INS_idx
@ PAPI_L1_TCH_idx
@ PAPI_L2_TCR_idx
@ PAPI_L2_LDM_idx
@ PAPI_L3_ICM_idx
@ PAPI_L1_LDM_idx
@ PAPI_L2_DCM_idx
@ PAPI_FMA_INS_idx
@ PAPI_L3_DCR_idx
@ PAPI_L1_ICW_idx
@ PAPI_RES_STL_idx
@ PAPI_BR_CN_idx
@ PAPI_TOT_INS_idx
@ PAPI_FML_INS_idx
@ PAPI_BR_TKN_idx
@ PAPI_CA_INV_idx
@ PAPI_L3_DCM_idx
@ PAPI_CSR_TOT_idx
@ PAPI_L3_DCH_idx
@ PAPI_L3_ICW_idx
@ PAPI_VEC_DP_idx
@ PAPI_L3_ICR_idx
@ PAPI_BTAC_M_idx
@ PAPI_L2_ICA_idx
@ PAPI_FP_STAL_idx
@ PAPI_VEC_INS_idx
@ PAPI_L1_ICR_idx
@ PAPI_L2_DCA_idx
@ PAPI_FUL_CCY_idx
@ PAPI_MEM_RCY_idx
@ PAPI_L2_DCR_idx
@ PAPI_DP_OPS_idx
@ PAPI_BR_MSP_idx
@ PAPI_L3_TCW_idx
@ PAPI_REF_CYC_idx
@ PAPI_L3_ICH_idx
@ PAPI_L3_ICA_idx
@ PAPI_SP_OPS_idx
@ PAPI_TOT_IIS_idx
@ PAPI_TLB_IM_idx
@ PAPI_L3_TCH_idx
@ PAPI_HW_INT_idx
@ PAPI_FUL_ICY_idx
@ PAPI_BR_PRC_idx
@ PAPI_L2_ICR_idx
@ PAPI_FXU_IDL_idx
@ PAPI_L2_STM_idx
@ PAPI_L1_DCH_idx
@ PAPI_L3_LDM_idx
@ PAPI_L1_STM_idx
@ PAPI_PRF_DM_idx
@ PAPI_END_idx
@ PAPI_L1_DCW_idx
@ PAPI_L1_ICA_idx
@ PAPI_VEC_SP_idx
@ PAPI_FPU_IDL_idx
@ PAPI_CA_CLN_idx
@ PAPI_L1_ICM_idx
@ PAPI_CA_SNP_idx
@ PAPI_STL_CCY_idx
@ PAPI_L2_TCA_idx
@ PAPI_BR_UCN_idx
@ PAPI_L1_TCW_idx
@ PAPI_CSR_FAL_idx
@ PAPI_LST_INS_idx
@ PAPI_MEM_WCY_idx
@ PAPI_L1_DCM_idx
@ PAPI_L1_TCR_idx
@ PAPI_L3_STM_idx
@ PAPI_TLB_SD_idx
@ PAPI_L3_TCR_idx
@ PAPI_L2_TCM_idx
@ PAPI_SYC_INS_idx
@ PAPI_L1_DCA_idx
@ PAPI_L1_TCM_idx
@ PAPI_TLB_DM_idx
@ PAPI_FP_OPS_idx
@ PAPI_LSU_IDL_idx
@ PAPI_FNV_INS_idx
@ PAPI_INT_INS_idx
@ PAPI_L1_DCR_idx
@ PAPI_L2_TCH_idx
@ PAPI_FDV_INS_idx
@ PAPI_FAD_INS_idx
@ PAPI_L2_ICM_idx
@ PAPI_CSR_SUC_idx
@ PAPI_L3_TCM_idx
@ PAPI_L3_TCA_idx
@ PAPI_STL_ICY_idx
@ PAPI_L2_TCW_idx
@ PAPI_MEM_SCY_idx
@ PAPI_LD_INS_idx
@ PAPI_SR_INS_idx
@ PAPI_CA_ITV_idx
@ PAPI_L2_DCW_idx
@ PAPI_CA_SHR_idx
@ PAPI_L1_ICH_idx
@ PAPI_L2_ICW_idx
@ PAPI_BR_NTK_idx
@ PAPI_FP_INS_idx
@ PAPI_BR_INS_idx
@ PAPI_TLB_TL_idx
@ PAPI_L1_TCA_idx
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)
long int __suseconds64_t
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)
__sigset_t sigset_t
void papif_set_cmp_granularity_(int *granularity, int *cidx, int *check)
int remove(const char *__filename) __attribute__((__nothrow__
__off64_t __loff_t
long int __off_t
@ 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
@ FPE_FLTINV
@ FPE_FLTUNK
@ FPE_INTOVF
@ FPE_INTDIV
@ FPE_FLTSUB
@ FPE_CONDTRAP
@ FPE_FLTRES
@ FPE_FLTDIV
@ FPE_FLTOVF
@ FPE_FLTUND
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)
int __clockid_t
long unsigned int size_t
unsigned int __socklen_t
FILE * tmpfile(void)
void papif_lock_(int *lock, int *check)
unsigned char __uint8_t
__fsblkcnt_t fsblkcnt_t
int __sig_atomic_t
int raise(int __sig) __attribute__((__nothrow__
void papif_set_multiplex_(int *EventSet, int *check)
@ ILL_ILLOPC
@ ILL_ILLTRP
@ ILL_BADIADDR
@ ILL_PRVOPC
@ ILL_ILLADR
@ ILL_COPROC
@ ILL_PRVREG
@ ILL_ILLOPN
@ ILL_BADSTK
static __inline __uint16_t __uint16_identity(__uint16_t __x)
void papif_hl_region_end_(char *name, int *check, int Event_len)
@ CLD_STOPPED
@ CLD_KILLED
@ CLD_EXITED
@ CLD_DUMPED
@ CLD_TRAPPED
@ CLD_CONTINUED
@ SIGEV_SIGNAL
@ SIGEV_NONE
@ SIGEV_THREAD_ID
@ SIGEV_THREAD
unsigned int __tss_t
static __extension__ __inline __uint64_t __bswap_64(__uint64_t __bsx)
__fsfilcnt_t fsfilcnt_t
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)
int __leaf__
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)
char * __caddr_t
unsigned int __id_t
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)
@ PAPI_DATATYPE_UINT64
@ PAPI_DATATYPE_FP64
@ PAPI_DATATYPE_INT64
@ PAPI_DATATYPE_BIT64
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)))
void _IO_lock_t
unsigned int __u_int
__int32_t __int_least32_t
void papif_library_init_(int *check)
greg_t gregset_t[23]
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)
long int __fsword_t
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
@ SI_ASYNCIO
@ SI_MESGQ
@ SI_TKILL
@ SI_DETHREAD
@ SI_QUEUE
@ SI_TIMER
@ SI_USER
@ SI_ASYNCNL
@ SI_KERNEL
@ SI_SIGIO
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)))
long int __quad_t
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__
__fd_mask fd_mask
unsigned int pthread_key_t
unsigned long int __u_long
__blkcnt_t blkcnt_t
PAPI_all_thr_spec_t
__sigval_t sigval_t
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__
__ssize_t ssize_t
long int __fd_mask
__gnuc_va_list va_list
__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)
PAPI_dev_type_attr_e
PAPI_dev_type_id_e
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
@ BUS_OBJERR
@ BUS_ADRALN
@ BUS_MCEERR_AO
@ BUS_ADRERR
@ BUS_MCEERR_AR
void papif_get_virt_usec_(long long *time)
__int8_t __int_least8_t
void papif_multiplex_init_(int *check)
int pthread_once_t
void papif_create_eventset_(int *EventSet, int *check)
__fpos_t fpos_t
void * __timer_t
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)
Definition: papi.c:4468
void papif_set_domain_(int *domain, int *check)
__sig_atomic_t sig_atomic_t
@ POLL_OUT
@ POLL_IN
@ POLL_PRI
@ POLL_ERR
@ POLL_MSG
@ POLL_HUP
@ PAPI_UPDATETYPE_FIXEDFREQ
@ PAPI_UPDATETYPE_PUSH
@ PAPI_UPDATETYPE_ARBITRARY
@ PAPI_UPDATETYPE_PULL
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
PAPI_dev_attr_e
int __libc_current_sigrtmin(void)
unsigned int __mode_t
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
long int __blkcnt_t
static __inline __uint32_t __uint32_identity(__uint32_t __x)
__uint16_t __uint_least16_t
int __pid_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)
int __daddr_t
unsigned short int __u_short
unsigned char __u_char
void papif_assign_eventset_component_(int *EventSet, int *cidx, int *check)
int siggetmask(void)
FILE * stdout
long int __ssize_t
void papif_state_(int *EventSet, int *status, int *check)
FILE * stderr
long int __off64_t
unsigned int __uint32_t
FILE * stdin
__blksize_t blksize_t
__locale_t locale_t
unsigned long int __rlim_t
void * vptr_t
signed char __int8_t
int fclose(FILE *__stream)
void(* __sighandler_t)(int)
long int __time_t
signed int __int32_t
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 int __gid_t
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
long int __suseconds_t
void papif_set_granularity_(int *granularity, int *check)
@ PAPI_TIMESCOPE_UNTIL_NEXT
@ PAPI_TIMESCOPE_POINT
@ 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
long int __clock_t
void papif_thread_init_(unsigned long int(*handle)(void), int *check)
@ SS_DISABLE
@ SS_ONSTACK
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)
long int __blkcnt64_t
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)
int __key_t
void papif_remove_events_(int *EventSet, int *Events, int *number, int *check)
int siginterrupt(int __sig, int __interrupt) __attribute__((__nothrow__
long int __blksize_t
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
Definition: papi_internal.c:81
static double array[ARRAYSIZE]
Definition: papi_l1_dca.c:23
static char stack[2 *PAPI_HUGE_STR_LEN]
Definition: papi_preset.c:791
static int cidx
static int attach(hwd_control_state_t *ctl, unsigned long tid)
Definition: perfctr.c:248
unsigned uint
int model
Definition: pfmlib_amd64.c:86
amd64_rev_t revision
Definition: pfmlib_amd64.c:81
int data_type[MAX_EVENTS]
Definition: powercap_plot.c:16
char units[MAX_EVENTS][BUFSIZ]
Definition: powercap_plot.c:15
setvbuf(file, file_buf, _IOFBF, sizeof(file_buf))
void handler(int EventSet, void *address, long long overflow_vector, void *context)
Definition: rapl_overflow.c:21
const char * name
Definition: rocs.c:225
int
Definition: sde_internal.h:89
long long int long long
Definition: sde_internal.h:85
address range specification for range restricted counting if both are zero, range is disabled
Definition: papi.h:830
get the executable's address space info
Definition: papi.h:684
vptr_t text_start
Definition: papi.h:686
char name[PAPI_HUGE_STR_LEN]
Definition: papi.h:685
vptr_t text_end
Definition: papi.h:687
vptr_t bss_start
Definition: papi.h:690
vptr_t data_end
Definition: papi.h:689
vptr_t data_start
Definition: papi.h:688
vptr_t bss_end
Definition: papi.h:691
A pointer to the following is passed to PAPI_get_dmem_info()
Definition: papi.h:865
unsigned int count
Definition: papi.h:981
char note[PAPI_HUGE_STR_LEN]
Definition: papi.h:1007
char short_descr[PAPI_MIN_STR_LEN]
Definition: papi.h:961
char symbol[PAPI_HUGE_STR_LEN]
Definition: papi.h:960
char long_descr[PAPI_HUGE_STR_LEN]
Definition: papi.h:963
get the executable's info
Definition: papi.h:696
char fullname[PAPI_HUGE_STR_LEN]
Definition: papi.h:697
PAPI_address_map_t address_info
Definition: papi.h:698
Hardware info structure.
Definition: papi.h:774
char vendor_string[PAPI_MAX_STR_LEN]
Definition: papi.h:782
int nnodes
Definition: papi.h:779
int model
Definition: papi.h:783
int totalcpus
Definition: papi.h:780
int vendor
Definition: papi.h:781
float revision
Definition: papi.h:785
int ncpu
Definition: papi.h:775
char model_string[PAPI_MAX_STR_LEN]
Definition: papi.h:784
int cpu_max_mhz
Definition: papi.h:790
mh for mem hierarchy maybe?
Definition: papi.h:767
char lib_preload_env[PAPI_MAX_STR_LEN]
Definition: papi.h:619
char * _IO_write_ptr
char * _IO_save_end
char * _IO_buf_end
char _unused2[15 *sizeof(int) - 4 *sizeof(void *) - sizeof(size_t)]
char * _IO_save_base
unsigned short _cur_column
char * _IO_read_ptr
char _shortbuf[1]
struct _IO_FILE * _freeres_list
size_t __pad5
struct _IO_wide_data * _wide_data
char * _IO_read_base
__off_t _old_offset
char * _IO_write_base
struct _IO_marker * _markers
_IO_lock_t * _lock
void * _freeres_buf
signed char _vtable_offset
__off64_t _offset
char * _IO_read_end
struct _IO_FILE * _chain
char * _IO_backup_base
char * _IO_write_end
struct _IO_codecvt * _codecvt
char * _IO_buf_base
__mbstate_t __state
__off64_t __pos
__mbstate_t __state
__off_t __pos
unsigned int __wch
unsigned int __g_refs[2]
struct __pthread_cond_s::@126::@129 __g1_start32
__extension__ unsigned long long int __g1_start
unsigned int __high
unsigned int __g1_orig_size
unsigned int __g_size[2]
unsigned int __g_signals[2]
unsigned int __wrefs
__extension__ unsigned long long int __wseq
unsigned int __low
struct __pthread_cond_s::@124::@128 __wseq32
struct __pthread_internal_list * __prev
struct __pthread_internal_list * __next
unsigned int __nusers
unsigned int __count
__pthread_list_t __list
unsigned long int __pad2
struct __pthread_internal_slist * __next
unsigned short exponent
unsigned short significand[4]
__uint16_t swd
__uint16_t ftw
__uint16_t fop
struct _xmmreg _xmm[16]
struct _fpxreg _st[8]
__uint32_t mxcsr
__uint32_t mxcr_mask
__uint64_t rdp
__uint16_t cwd
__uint32_t __glibc_reserved1[24]
__uint64_t rip
__uint32_t xstate_size
__uint32_t magic1
__uint32_t extended_size
__uint32_t __glibc_reserved1[7]
__uint64_t xstate_bv
unsigned short exponent
unsigned short significand[4]
unsigned short __glibc_reserved1[3]
struct _libc_xmmreg _xmm[16]
__uint32_t __glibc_reserved1[24]
__uint32_t mxcr_mask
struct _libc_fpxreg _st[8]
__uint32_t mxcsr
unsigned short int exponent
unsigned short int significand[4]
unsigned short int __glibc_reserved1[3]
__uint32_t element[4]
__uint32_t element[4]
__uint64_t __glibc_reserved2[5]
__uint64_t __glibc_reserved1[2]
__uint64_t xstate_bv
struct _ymmh_state ymmh
struct _xsave_hdr xstate_hdr
struct _fpstate fpstate
__uint32_t ymmh_space[64]
fpregset_t fpregs
gregset_t gregs
__uint64_t rbx
__uint64_t oldmask
unsigned short cs
__uint64_t rip
__uint64_t r10
__uint64_t r12
__uint64_t rax
__uint64_t rsp
__uint64_t rbp
struct _fpstate * fpstate
__uint64_t r11
__uint64_t err
unsigned short fs
__uint64_t r15
__uint64_t rdx
__uint64_t rcx
__uint64_t trapno
__uint64_t __reserved1[8]
__uint64_t r9
__uint64_t r14
unsigned short gs
__uint64_t __fpstate_word
__uint64_t rdi
__uint64_t rsi
__uint64_t r8
unsigned short __pad0
__uint64_t cr2
__uint64_t r13
__uint64_t eflags
pthread_attr_t * _attribute
__sigval_t sigev_value
__clock_t si_utime
__sigval_t si_sigval
__uint32_t _pkey
__clock_t si_stime
__uid_t si_uid
long int si_band
short int si_addr_lsb
__pid_t si_pid
unsigned int _arch
void * _call_addr
void * ss_sp
size_t ss_size
__syscall_slong_t tv_nsec
__time_t tv_sec
__time_t tv_sec
__suseconds_t tv_usec
__extension__ unsigned long long int __ssp[4]
struct _libc_fpstate __fpregs_mem
stack_t uc_stack
mcontext_t uc_mcontext
unsigned long int uc_flags
sigset_t uc_sigmask
struct ucontext_t * uc_link
A pointer to the following is passed to PAPI_set/get_opt()
Definition: papi.h:843
PAPI_preload_info_t preload
Definition: papi.h:844
PAPI_granularity_option_t granularity
Definition: papi.h:847
PAPI_domain_option_t domain
Definition: papi.h:849
PAPI_exe_info_t * exe_info
Definition: papi.h:857
__extension__ long long int __align
void * sival_ptr
unsigned int __uid_t
long int __off_t
long unsigned int size_t
long int __syscall_slong_t
void _IO_lock_t
long int __fd_mask
int __pid_t
long int __off64_t
unsigned int __uint32_t
long int __time_t
unsigned long int __uint64_t
unsigned short int __uint16_t
long int __suseconds_t
long int __clock_t