PAPI  5.7.0.0
upper_PAPI_FWRAPPERS.c
Go to the documentation of this file.
1 # 1 "papi_fwrappers.c"
2 # 1 "<built-in>"
3 # 1 "<command-line>"
4 # 1 "/usr/include/stdc-predef.h" 1 3 4
5 # 1 "<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 # 428 "/usr/include/features.h" 3 4
16 # 1 "/usr/include/sys/cdefs.h" 1 3 4
17 # 427 "/usr/include/sys/cdefs.h" 3 4
18 # 1 "/usr/include/bits/wordsize.h" 1 3 4
19 # 428 "/usr/include/sys/cdefs.h" 2 3 4
20 # 1 "/usr/include/bits/long-double.h" 1 3 4
21 # 429 "/usr/include/sys/cdefs.h" 2 3 4
22 # 429 "/usr/include/features.h" 2 3 4
23 # 452 "/usr/include/features.h" 3 4
24 # 1 "/usr/include/gnu/stubs.h" 1 3 4
25 # 10 "/usr/include/gnu/stubs.h" 3 4
26 # 1 "/usr/include/gnu/stubs-64.h" 1 3 4
27 # 11 "/usr/include/gnu/stubs.h" 2 3 4
28 # 453 "/usr/include/features.h" 2 3 4
29 # 34 "/usr/include/bits/libc-header-start.h" 2 3 4
30 # 28 "/usr/include/stdio.h" 2 3 4
31 
32 
33 
34 
35 
36 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stddef.h" 1 3 4
37 # 216 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stddef.h" 3 4
38 
39 # 216 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stddef.h" 3 4
40 typedef long unsigned int size_t;
41 # 34 "/usr/include/stdio.h" 2 3 4
42 
43 # 1 "/usr/include/bits/types.h" 1 3 4
44 # 27 "/usr/include/bits/types.h" 3 4
45 # 1 "/usr/include/bits/wordsize.h" 1 3 4
46 # 28 "/usr/include/bits/types.h" 2 3 4
47 
48 
49 typedef unsigned char __u_char;
50 typedef unsigned short int __u_short;
51 typedef unsigned int __u_int;
52 typedef unsigned long int __u_long;
53 
54 
55 typedef signed char __int8_t;
56 typedef unsigned char __uint8_t;
57 typedef signed short int __int16_t;
58 typedef unsigned short int __uint16_t;
59 typedef signed int __int32_t;
60 typedef unsigned int __uint32_t;
61 
62 typedef signed long int __int64_t;
63 typedef unsigned long int __uint64_t;
64 
65 
66 
67 
68 
69 
70 
71 typedef long int __quad_t;
72 typedef unsigned long int __u_quad_t;
73 
74 
75 
76 
77 
78 
79 
80 typedef long int __intmax_t;
81 typedef unsigned long int __uintmax_t;
82 # 130 "/usr/include/bits/types.h" 3 4
83 # 1 "/usr/include/bits/typesizes.h" 1 3 4
84 # 131 "/usr/include/bits/types.h" 2 3 4
85 
86 
87 typedef unsigned long int __dev_t;
88 typedef unsigned int __uid_t;
89 typedef unsigned int __gid_t;
90 typedef unsigned long int __ino_t;
91 typedef unsigned long int __ino64_t;
92 typedef unsigned int __mode_t;
93 typedef unsigned long int __nlink_t;
94 typedef long int __off_t;
95 typedef long int __off64_t;
96 typedef int __pid_t;
97 typedef struct { int __val[2]; } __fsid_t;
98 typedef long int __clock_t;
99 typedef unsigned long int __rlim_t;
100 typedef unsigned long int __rlim64_t;
101 typedef unsigned int __id_t;
102 typedef long int __time_t;
103 typedef unsigned int __useconds_t;
104 typedef long int __suseconds_t;
105 
106 typedef int __daddr_t;
107 typedef int __key_t;
108 
109 
110 typedef int __clockid_t;
111 
112 
113 typedef void * __timer_t;
114 
115 
116 typedef long int __blksize_t;
117 
118 
119 
120 
121 typedef long int __blkcnt_t;
122 typedef long int __blkcnt64_t;
123 
124 
125 typedef unsigned long int __fsblkcnt_t;
126 typedef unsigned long int __fsblkcnt64_t;
127 
128 
129 typedef unsigned long int __fsfilcnt_t;
130 typedef unsigned long int __fsfilcnt64_t;
131 
132 
133 typedef long int __fsword_t;
134 
135 typedef long int __ssize_t;
136 
137 
138 typedef long int __syscall_slong_t;
139 
140 typedef unsigned long int __syscall_ulong_t;
141 
142 
143 
145 typedef char *__caddr_t;
146 
147 
148 typedef long int __intptr_t;
149 
150 
151 typedef unsigned int __socklen_t;
152 
153 
154 
155 
156 typedef int __sig_atomic_t;
157 # 36 "/usr/include/stdio.h" 2 3 4
158 # 1 "/usr/include/bits/types/__FILE.h" 1 3 4
159 
160 
161 
162 struct _IO_FILE;
163 typedef struct _IO_FILE __FILE;
164 # 37 "/usr/include/stdio.h" 2 3 4
165 # 1 "/usr/include/bits/types/FILE.h" 1 3 4
166 
167 
168 
169 struct _IO_FILE;
170 
171 
172 typedef struct _IO_FILE FILE;
173 # 38 "/usr/include/stdio.h" 2 3 4
174 
175 
176 
177 # 1 "/usr/include/bits/libio.h" 1 3 4
178 # 35 "/usr/include/bits/libio.h" 3 4
179 # 1 "/usr/include/bits/_G_config.h" 1 3 4
180 # 19 "/usr/include/bits/_G_config.h" 3 4
181 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stddef.h" 1 3 4
182 # 20 "/usr/include/bits/_G_config.h" 2 3 4
183 
184 # 1 "/usr/include/bits/types/__mbstate_t.h" 1 3 4
185 # 13 "/usr/include/bits/types/__mbstate_t.h" 3 4
186 typedef struct
187 {
188  int __count;
189  union
190  {
191  unsigned int __wch;
192  char __wchb[4];
193  } __value;
194 } __mbstate_t;
195 # 22 "/usr/include/bits/_G_config.h" 2 3 4
196 
197 
198 
199 
200 typedef struct
201 {
202  __off_t __pos;
203  __mbstate_t __state;
204 } _G_fpos_t;
205 typedef struct
206 {
207  __off64_t __pos;
208  __mbstate_t __state;
209 } _G_fpos64_t;
210 # 36 "/usr/include/bits/libio.h" 2 3 4
211 # 53 "/usr/include/bits/libio.h" 3 4
212 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stdarg.h" 1 3 4
213 # 40 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stdarg.h" 3 4
214 typedef __builtin_va_list __gnuc_va_list;
215 # 54 "/usr/include/bits/libio.h" 2 3 4
216 # 149 "/usr/include/bits/libio.h" 3 4
217 struct _IO_jump_t; struct _IO_FILE;
218 
219 
220 
221 
222 typedef void _IO_lock_t;
223 
224 
225 
226 
227 
228 struct _IO_marker {
229  struct _IO_marker *_next;
230  struct _IO_FILE *_sbuf;
231 
232 
233 
234  int _pos;
235 # 177 "/usr/include/bits/libio.h" 3 4
236 };
237 
238 
240 {
245 };
246 # 245 "/usr/include/bits/libio.h" 3 4
247 struct _IO_FILE {
248  int _flags;
249 
250 
251 
252 
253  char* _IO_read_ptr;
254  char* _IO_read_end;
255  char* _IO_read_base;
256  char* _IO_write_base;
257  char* _IO_write_ptr;
258  char* _IO_write_end;
259  char* _IO_buf_base;
260  char* _IO_buf_end;
261 
262  char *_IO_save_base;
263  char *_IO_backup_base;
264  char *_IO_save_end;
265 
266  struct _IO_marker *_markers;
267 
268  struct _IO_FILE *_chain;
269 
270  int _fileno;
271 
272 
273 
274  int _flags2;
275 
277 
278 
279 
280  unsigned short _cur_column;
281  signed char _vtable_offset;
282  char _shortbuf[1];
283 
284 
285 
286  _IO_lock_t *_lock;
287 # 293 "/usr/include/bits/libio.h" 3 4
289 
290 
291 
292 
293 
294 
295 
296  void *__pad1;
297  void *__pad2;
298  void *__pad3;
299  void *__pad4;
300 
301  size_t __pad5;
302  int _mode;
303 
304  char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
305 
306 };
307 
308 
309 typedef struct _IO_FILE _IO_FILE;
310 
311 
312 struct _IO_FILE_plus;
313 
314 extern struct _IO_FILE_plus _IO_2_1_stdin_;
315 extern struct _IO_FILE_plus _IO_2_1_stdout_;
316 extern struct _IO_FILE_plus _IO_2_1_stderr_;
317 # 337 "/usr/include/bits/libio.h" 3 4
318 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
319 
320 
321 
322 
323 
324 
325 
326 typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf,
327  size_t __n);
328 
329 
330 
331 
332 
333 
334 
335 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
336 
337 
338 typedef int __io_close_fn (void *__cookie);
339 # 389 "/usr/include/bits/libio.h" 3 4
340 extern int __underflow (_IO_FILE *);
341 extern int __uflow (_IO_FILE *);
342 extern int __overflow (_IO_FILE *, int);
343 # 433 "/usr/include/bits/libio.h" 3 4
344 extern int _IO_getc (_IO_FILE *__fp);
345 extern int _IO_putc (int __c, _IO_FILE *__fp);
346 extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__));
347 extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__));
348 
349 extern int _IO_peekc_locked (_IO_FILE *__fp);
350 
351 
352 
353 
354 
355 extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__));
356 extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__));
357 extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__));
358 # 462 "/usr/include/bits/libio.h" 3 4
359 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
360  __gnuc_va_list, int *__restrict);
361 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
363 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
364 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
365 
366 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
367 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
368 
369 extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__));
370 # 42 "/usr/include/stdio.h" 2 3 4
371 
372 
373 
374 
375 typedef __gnuc_va_list va_list;
376 # 57 "/usr/include/stdio.h" 3 4
377 typedef __off_t off_t;
378 # 71 "/usr/include/stdio.h" 3 4
379 typedef __ssize_t ssize_t;
380 
381 
382 
383 
384 
385 
386 typedef _G_fpos_t fpos_t;
387 # 131 "/usr/include/stdio.h" 3 4
388 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
389 # 132 "/usr/include/stdio.h" 2 3 4
390 
391 
392 
393 extern struct _IO_FILE *stdin;
394 extern struct _IO_FILE *stdout;
395 extern struct _IO_FILE *stderr;
396 
397 
398 
399 
400 
401 
402 extern int remove (const char *__filename) __attribute__ ((__nothrow__ , __leaf__));
403 
404 extern int rename (const char *__old, const char *__new) __attribute__ ((__nothrow__ , __leaf__));
405 
406 
407 
408 extern int renameat (int __oldfd, const char *__old, int __newfd,
409  const char *__new) __attribute__ ((__nothrow__ , __leaf__));
410 
411 
412 
413 
414 
415 
416 
417 extern FILE *tmpfile (void) ;
418 # 173 "/usr/include/stdio.h" 3 4
419 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__ , __leaf__)) ;
420 
421 
422 
423 
424 extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__ , __leaf__)) ;
425 # 190 "/usr/include/stdio.h" 3 4
426 extern char *tempnam (const char *__dir, const char *__pfx)
427  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ;
428 
429 
430 
431 
432 
433 
434 
435 extern int fclose (FILE *__stream);
436 
437 
438 
439 
440 extern int fflush (FILE *__stream);
441 # 213 "/usr/include/stdio.h" 3 4
442 extern int fflush_unlocked (FILE *__stream);
443 # 232 "/usr/include/stdio.h" 3 4
444 extern FILE *fopen (const char *__restrict __filename,
445  const char *__restrict __modes) ;
446 
447 
448 
449 
450 extern FILE *freopen (const char *__restrict __filename,
451  const char *__restrict __modes,
452  FILE *__restrict __stream) ;
453 # 265 "/usr/include/stdio.h" 3 4
454 extern FILE *fdopen (int __fd, const char *__modes) __attribute__ ((__nothrow__ , __leaf__)) ;
455 # 278 "/usr/include/stdio.h" 3 4
456 extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
457  __attribute__ ((__nothrow__ , __leaf__)) ;
458 
459 
460 
461 
462 extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__ , __leaf__)) ;
463 
464 
465 
466 
467 
468 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));
469 
470 
471 
472 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
473  int __modes, size_t __n) __attribute__ ((__nothrow__ , __leaf__));
474 
475 
476 
477 
478 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
479  size_t __size) __attribute__ ((__nothrow__ , __leaf__));
480 
481 
482 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
483 
484 
485 
486 
487 
488 
489 
490 extern int fprintf (FILE *__restrict __stream,
491  const char *__restrict __format, ...);
492 
493 
494 
495 
496 extern int printf (const char *__restrict __format, ...);
497 
498 extern int sprintf (char *__restrict __s,
499  const char *__restrict __format, ...) __attribute__ ((__nothrow__));
500 
501 
502 
503 
504 
505 extern int vfprintf (FILE *__restrict __s, const char *__restrict __format,
506  __gnuc_va_list __arg);
507 
508 
509 
510 
511 extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg);
512 
513 extern int vsprintf (char *__restrict __s, const char *__restrict __format,
514  __gnuc_va_list __arg) __attribute__ ((__nothrow__));
515 
516 
517 
518 extern int snprintf (char *__restrict __s, size_t __maxlen,
519  const char *__restrict __format, ...)
520  __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
521 
522 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
523  const char *__restrict __format, __gnuc_va_list __arg)
524  __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
525 # 365 "/usr/include/stdio.h" 3 4
526 extern int vdprintf (int __fd, const char *__restrict __fmt,
527  __gnuc_va_list __arg)
528  __attribute__ ((__format__ (__printf__, 2, 0)));
529 extern int dprintf (int __fd, const char *__restrict __fmt, ...)
530  __attribute__ ((__format__ (__printf__, 2, 3)));
531 
532 
533 
534 
535 
536 
537 
538 extern int fscanf (FILE *__restrict __stream,
539  const char *__restrict __format, ...) ;
540 
541 
542 
543 
544 extern int scanf (const char *__restrict __format, ...) ;
545 
546 extern int sscanf (const char *__restrict __s,
547  const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__));
548 # 395 "/usr/include/stdio.h" 3 4
549 extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")
550 
551  ;
552 extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf")
553  ;
554 extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__ , __leaf__))
555 
556  ;
557 # 420 "/usr/include/stdio.h" 3 4
558 extern int vfscanf (FILE *__restrict __s, const char *__restrict __format,
559  __gnuc_va_list __arg)
560  __attribute__ ((__format__ (__scanf__, 2, 0))) ;
561 
562 
563 
564 
565 
566 extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg)
567  __attribute__ ((__format__ (__scanf__, 1, 0))) ;
568 
569 
570 extern int vsscanf (const char *__restrict __s,
571  const char *__restrict __format, __gnuc_va_list __arg)
572  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
573 # 443 "/usr/include/stdio.h" 3 4
574 extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf")
575 
576 
577 
578  __attribute__ ((__format__ (__scanf__, 2, 0))) ;
579 extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf")
580 
581  __attribute__ ((__format__ (__scanf__, 1, 0))) ;
582 extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__ , __leaf__))
583 
584 
585 
586  __attribute__ ((__format__ (__scanf__, 2, 0)));
587 # 477 "/usr/include/stdio.h" 3 4
588 extern int fgetc (FILE *__stream);
589 extern int getc (FILE *__stream);
590 
591 
592 
593 
594 
595 extern int getchar (void);
596 # 495 "/usr/include/stdio.h" 3 4
597 extern int getc_unlocked (FILE *__stream);
598 extern int getchar_unlocked (void);
599 # 506 "/usr/include/stdio.h" 3 4
600 extern int fgetc_unlocked (FILE *__stream);
601 # 517 "/usr/include/stdio.h" 3 4
602 extern int fputc (int __c, FILE *__stream);
603 extern int putc (int __c, FILE *__stream);
604 
605 
606 
607 
608 
609 extern int putchar (int __c);
610 # 537 "/usr/include/stdio.h" 3 4
611 extern int fputc_unlocked (int __c, FILE *__stream);
612 
613 
614 
615 
616 
617 
618 
619 extern int putc_unlocked (int __c, FILE *__stream);
620 extern int putchar_unlocked (int __c);
621 
622 
623 
624 
625 
626 
627 extern int getw (FILE *__stream);
628 
629 
630 extern int putw (int __w, FILE *__stream);
631 
632 
633 
634 
635 
636 
637 
638 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
639  ;
640 # 603 "/usr/include/stdio.h" 3 4
641 extern __ssize_t __getdelim (char **__restrict __lineptr,
642  size_t *__restrict __n, int __delimiter,
643  FILE *__restrict __stream) ;
644 extern __ssize_t getdelim (char **__restrict __lineptr,
645  size_t *__restrict __n, int __delimiter,
646  FILE *__restrict __stream) ;
647 
648 
649 
650 
651 
652 
653 
654 extern __ssize_t getline (char **__restrict __lineptr,
655  size_t *__restrict __n,
656  FILE *__restrict __stream) ;
657 
658 
659 
660 
661 
662 
663 
664 extern int fputs (const char *__restrict __s, FILE *__restrict __stream);
665 
666 
667 
668 
669 
670 extern int puts (const char *__s);
671 
672 
673 
674 
675 
676 
677 extern int ungetc (int __c, FILE *__stream);
678 
679 
680 
681 
682 
683 
684 extern size_t fread (void *__restrict __ptr, size_t __size,
685  size_t __n, FILE *__restrict __stream) ;
686 
687 
688 
689 
690 extern size_t fwrite (const void *__restrict __ptr, size_t __size,
691  size_t __n, FILE *__restrict __s);
692 # 673 "/usr/include/stdio.h" 3 4
693 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
694  size_t __n, FILE *__restrict __stream) ;
695 extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
696  size_t __n, FILE *__restrict __stream);
697 
698 
699 
700 
701 
702 
703 
704 extern int fseek (FILE *__stream, long int __off, int __whence);
705 
706 
707 
708 
709 extern long int ftell (FILE *__stream) ;
710 
711 
712 
713 
714 extern void rewind (FILE *__stream);
715 # 707 "/usr/include/stdio.h" 3 4
716 extern int fseeko (FILE *__stream, __off_t __off, int __whence);
717 
718 
719 
720 
721 extern __off_t ftello (FILE *__stream) ;
722 # 731 "/usr/include/stdio.h" 3 4
723 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
724 
725 
726 
727 
728 extern int fsetpos (FILE *__stream, const fpos_t *__pos);
729 # 757 "/usr/include/stdio.h" 3 4
730 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
731 
732 extern int feof (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
733 
734 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
735 
736 
737 
738 extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
739 extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
740 extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
741 
742 
743 
744 
745 
746 
747 
748 extern void perror (const char *__s);
749 
750 
751 
752 
753 
754 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
755 # 26 "/usr/include/bits/sys_errlist.h" 3 4
756 extern int sys_nerr;
757 extern const char *const sys_errlist[];
758 # 782 "/usr/include/stdio.h" 2 3 4
759 
760 
761 
762 
763 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
764 
765 
766 
767 
768 extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
769 # 800 "/usr/include/stdio.h" 3 4
770 extern FILE *popen (const char *__command, const char *__modes) ;
771 
772 
773 
774 
775 
776 extern int pclose (FILE *__stream);
777 
778 
779 
780 
781 
782 extern char *ctermid (char *__s) __attribute__ ((__nothrow__ , __leaf__));
783 # 840 "/usr/include/stdio.h" 3 4
784 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
785 
786 
787 
788 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
789 
790 
791 extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
792 # 868 "/usr/include/stdio.h" 3 4
793 
794 # 24 "papi_fwrappers.c" 2
795 # 1 "/usr/include/assert.h" 1 3 4
796 # 64 "/usr/include/assert.h" 3 4
797 
798 
799 
800 extern void __assert_fail (const char *__assertion, const char *__file,
801  unsigned int __line, const char *__function)
802  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
803 
804 
805 extern void __assert_perror_fail (int __errnum, const char *__file,
806  unsigned int __line, const char *__function)
807  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
808 
809 
810 
811 
812 extern void __assert (const char *__assertion, const char *__file, int __line)
813  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
814 
815 
816 
817 # 25 "papi_fwrappers.c" 2
818 # 1 "/usr/include/string.h" 1 3 4
819 # 26 "/usr/include/string.h" 3 4
820 # 1 "/usr/include/bits/libc-header-start.h" 1 3 4
821 # 27 "/usr/include/string.h" 2 3 4
822 
823 
824 
825 
826 
827 
828 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stddef.h" 1 3 4
829 # 34 "/usr/include/string.h" 2 3 4
830 # 42 "/usr/include/string.h" 3 4
831 extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
832  size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
833 
834 
835 extern void *memmove (void *__dest, const void *__src, size_t __n)
836  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
837 
838 
839 
840 
841 
842 extern void *memccpy (void *__restrict __dest, const void *__restrict __src,
843  int __c, size_t __n)
844  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
845 
846 
847 
848 
849 extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
850 
851 
852 extern int memcmp (const void *__s1, const void *__s2, size_t __n)
853  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
854 # 90 "/usr/include/string.h" 3 4
855 extern void *memchr (const void *__s, int __c, size_t __n)
856  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
857 # 121 "/usr/include/string.h" 3 4
858 extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
859  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
860 
861 extern char *strncpy (char *__restrict __dest,
862  const char *__restrict __src, size_t __n)
863  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
864 
865 
866 extern char *strcat (char *__restrict __dest, const char *__restrict __src)
867  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
868 
869 extern char *strncat (char *__restrict __dest, const char *__restrict __src,
870  size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
871 
872 
873 extern int strcmp (const char *__s1, const char *__s2)
874  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
875 
876 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
877  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
878 
879 
880 extern int strcoll (const char *__s1, const char *__s2)
881  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
882 
883 extern size_t strxfrm (char *__restrict __dest,
884  const char *__restrict __src, size_t __n)
885  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
886 
887 
888 
889 # 1 "/usr/include/bits/types/locale_t.h" 1 3 4
890 # 22 "/usr/include/bits/types/locale_t.h" 3 4
891 # 1 "/usr/include/bits/types/__locale_t.h" 1 3 4
892 # 28 "/usr/include/bits/types/__locale_t.h" 3 4
893 struct __locale_struct
894 {
895 
896  struct __locale_data *__locales[13];
897 
898 
899  const unsigned short int *__ctype_b;
900  const int *__ctype_tolower;
901  const int *__ctype_toupper;
902 
903 
904  const char *__names[13];
905 };
906 
907 typedef struct __locale_struct *__locale_t;
908 # 23 "/usr/include/bits/types/locale_t.h" 2 3 4
909 
911 # 153 "/usr/include/string.h" 2 3 4
912 
913 
914 extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l)
915  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
916 
917 
918 extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
919  locale_t __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4)));
920 
921 
922 
923 
924 
925 extern char *strdup (const char *__s)
926  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
927 
928 
929 
930 
931 
932 
933 extern char *strndup (const char *__string, size_t __n)
934  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
935 # 225 "/usr/include/string.h" 3 4
936 extern char *strchr (const char *__s, int __c)
937  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
938 # 252 "/usr/include/string.h" 3 4
939 extern char *strrchr (const char *__s, int __c)
940  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
941 # 272 "/usr/include/string.h" 3 4
942 extern size_t strcspn (const char *__s, const char *__reject)
943  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
944 
945 
946 extern size_t strspn (const char *__s, const char *__accept)
947  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
948 # 302 "/usr/include/string.h" 3 4
949 extern char *strpbrk (const char *__s, const char *__accept)
950  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
951 # 329 "/usr/include/string.h" 3 4
952 extern char *strstr (const char *__haystack, const char *__needle)
953  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
954 
955 
956 
957 
958 extern char *strtok (char *__restrict __s, const char *__restrict __delim)
959  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
960 
961 
962 
963 extern char *__strtok_r (char *__restrict __s,
964  const char *__restrict __delim,
965  char **__restrict __save_ptr)
966  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));
967 
968 extern char *strtok_r (char *__restrict __s, const char *__restrict __delim,
969  char **__restrict __save_ptr)
970  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));
971 # 384 "/usr/include/string.h" 3 4
972 extern size_t strlen (const char *__s)
973  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
974 
975 
976 
977 
978 extern size_t strnlen (const char *__string, size_t __maxlen)
979  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
980 
981 
982 
983 
984 extern char *strerror (int __errnum) __attribute__ ((__nothrow__ , __leaf__));
985 # 409 "/usr/include/string.h" 3 4
986 extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__ , __leaf__))
987 
988  __attribute__ ((__nonnull__ (2)));
989 # 427 "/usr/include/string.h" 3 4
990 extern char *strerror_l (int __errnum, locale_t __l) __attribute__ ((__nothrow__ , __leaf__));
991 
992 
993 
994 # 1 "/usr/include/strings.h" 1 3 4
995 # 23 "/usr/include/strings.h" 3 4
996 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stddef.h" 1 3 4
997 # 24 "/usr/include/strings.h" 2 3 4
998 
999 
1000 
1001 
1002 
1003 
1004 
1005 
1006 
1007 
1008 extern int bcmp (const void *__s1, const void *__s2, size_t __n)
1009  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1010 
1011 
1012 extern void bcopy (const void *__src, void *__dest, size_t __n)
1013  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1014 
1015 
1016 extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1017 # 68 "/usr/include/strings.h" 3 4
1018 extern char *index (const char *__s, int __c)
1019  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1020 # 96 "/usr/include/strings.h" 3 4
1021 extern char *rindex (const char *__s, int __c)
1022  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1023 
1024 
1025 
1026 
1027 
1028 
1029 extern int ffs (int __i) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
1030 
1031 
1032 
1033 
1034 
1035 extern int ffsl (long int __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
1036 __extension__ extern int ffsll (long long int __ll)
1037  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
1038 
1039 
1040 
1041 extern int strcasecmp (const char *__s1, const char *__s2)
1042  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1043 
1044 
1045 extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
1046  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1047 
1048 
1049 
1050 
1051 
1052 
1053 extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc)
1054  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
1055 
1056 
1057 
1058 extern int strncasecmp_l (const char *__s1, const char *__s2,
1059  size_t __n, locale_t __loc)
1060  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
1061 
1062 
1063 
1064 # 432 "/usr/include/string.h" 2 3 4
1065 
1066 
1067 
1068 extern void explicit_bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1069 
1070 
1071 
1072 extern char *strsep (char **__restrict __stringp,
1073  const char *__restrict __delim)
1074  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1075 
1076 
1077 
1078 
1079 extern char *strsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__));
1080 
1081 
1082 extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src)
1083  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1084 extern char *stpcpy (char *__restrict __dest, const char *__restrict __src)
1085  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1086 
1087 
1088 
1089 extern char *__stpncpy (char *__restrict __dest,
1090  const char *__restrict __src, size_t __n)
1091  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1092 extern char *stpncpy (char *__restrict __dest,
1093  const char *__restrict __src, size_t __n)
1094  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1095 
1096 
1097 
1098 
1099 extern size_t strlcpy (char *__restrict __dest,
1100  const char *__restrict __src, size_t __n)
1101  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
1102 
1103 
1104 
1105 extern size_t strlcat (char *__restrict __dest,
1106  const char *__restrict __src, size_t __n)
1107  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
1108 # 511 "/usr/include/string.h" 3 4
1109 
1110 # 26 "papi_fwrappers.c" 2
1111 # 1 "papi.h" 1
1112 # 25 "papi.h"
1113 #pragma GCC visibility push(default)
1114 # 239 "papi.h"
1115 # 1 "/usr/include/sys/types.h" 1 3 4
1116 # 27 "/usr/include/sys/types.h" 3 4
1117 
1118 
1119 
1120 
1121 
1122 
1123 typedef __u_char u_char;
1124 typedef __u_short u_short;
1125 typedef __u_int u_int;
1126 typedef __u_long u_long;
1127 typedef __quad_t quad_t;
1128 typedef __u_quad_t u_quad_t;
1129 typedef __fsid_t fsid_t;
1130 
1131 
1132 
1133 
1134 typedef __loff_t loff_t;
1135 
1136 
1137 
1138 typedef __ino_t ino_t;
1139 # 60 "/usr/include/sys/types.h" 3 4
1140 typedef __dev_t dev_t;
1141 
1142 
1143 
1144 
1145 typedef __gid_t gid_t;
1146 
1147 
1148 
1149 
1150 typedef __mode_t mode_t;
1151 
1152 
1153 
1154 
1155 typedef __nlink_t nlink_t;
1156 
1157 
1158 
1159 
1160 typedef __uid_t uid_t;
1161 # 98 "/usr/include/sys/types.h" 3 4
1162 typedef __pid_t pid_t;
1163 
1164 
1165 
1166 
1167 
1168 typedef __id_t id_t;
1169 # 115 "/usr/include/sys/types.h" 3 4
1170 typedef __daddr_t daddr_t;
1171 typedef __caddr_t caddr_t;
1172 
1173 
1174 
1175 
1176 
1177 typedef __key_t key_t;
1178 
1179 
1180 
1181 
1182 # 1 "/usr/include/bits/types/clock_t.h" 1 3 4
1183 
1184 
1185 
1186 
1187 
1188 
1189 typedef __clock_t clock_t;
1190 # 128 "/usr/include/sys/types.h" 2 3 4
1191 
1192 # 1 "/usr/include/bits/types/clockid_t.h" 1 3 4
1193 
1194 
1195 
1196 
1197 
1198 
1199 typedef __clockid_t clockid_t;
1200 # 130 "/usr/include/sys/types.h" 2 3 4
1201 # 1 "/usr/include/bits/types/time_t.h" 1 3 4
1202 
1203 
1204 
1205 
1206 
1207 
1208 typedef __time_t time_t;
1209 # 131 "/usr/include/sys/types.h" 2 3 4
1210 # 1 "/usr/include/bits/types/timer_t.h" 1 3 4
1211 
1212 
1213 
1214 
1215 
1216 
1217 typedef __timer_t timer_t;
1218 # 132 "/usr/include/sys/types.h" 2 3 4
1219 # 145 "/usr/include/sys/types.h" 3 4
1220 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stddef.h" 1 3 4
1221 # 146 "/usr/include/sys/types.h" 2 3 4
1222 
1223 
1224 
1225 typedef unsigned long int ulong;
1226 typedef unsigned short int ushort;
1227 typedef unsigned int uint;
1228 
1229 
1230 
1231 
1232 # 1 "/usr/include/bits/stdint-intn.h" 1 3 4
1233 # 24 "/usr/include/bits/stdint-intn.h" 3 4
1234 typedef __int8_t int8_t;
1235 typedef __int16_t int16_t;
1236 typedef __int32_t int32_t;
1237 typedef __int64_t int64_t;
1238 # 157 "/usr/include/sys/types.h" 2 3 4
1239 # 178 "/usr/include/sys/types.h" 3 4
1240 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
1241 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
1242 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
1243 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
1244 
1245 typedef int register_t __attribute__ ((__mode__ (__word__)));
1246 # 194 "/usr/include/sys/types.h" 3 4
1247 # 1 "/usr/include/endian.h" 1 3 4
1248 # 36 "/usr/include/endian.h" 3 4
1249 # 1 "/usr/include/bits/endian.h" 1 3 4
1250 # 37 "/usr/include/endian.h" 2 3 4
1251 # 60 "/usr/include/endian.h" 3 4
1252 # 1 "/usr/include/bits/byteswap.h" 1 3 4
1253 # 28 "/usr/include/bits/byteswap.h" 3 4
1254 # 1 "/usr/include/bits/wordsize.h" 1 3 4
1255 # 29 "/usr/include/bits/byteswap.h" 2 3 4
1256 
1257 
1258 
1259 
1260 
1261 
1262 # 1 "/usr/include/bits/byteswap-16.h" 1 3 4
1263 # 36 "/usr/include/bits/byteswap.h" 2 3 4
1264 # 44 "/usr/include/bits/byteswap.h" 3 4
1265 static __inline unsigned int
1266 __bswap_32 (unsigned int __bsx)
1267 {
1268  return __builtin_bswap32 (__bsx);
1269 }
1270 # 108 "/usr/include/bits/byteswap.h" 3 4
1271 static __inline __uint64_t
1273 {
1274  return __builtin_bswap64 (__bsx);
1275 }
1276 # 61 "/usr/include/endian.h" 2 3 4
1277 # 1 "/usr/include/bits/uintn-identity.h" 1 3 4
1278 # 32 "/usr/include/bits/uintn-identity.h" 3 4
1279 static __inline __uint16_t
1281 {
1282  return __x;
1283 }
1284 
1285 static __inline __uint32_t
1287 {
1288  return __x;
1289 }
1290 
1291 static __inline __uint64_t
1293 {
1294  return __x;
1295 }
1296 # 62 "/usr/include/endian.h" 2 3 4
1297 # 195 "/usr/include/sys/types.h" 2 3 4
1298 
1299 
1300 # 1 "/usr/include/sys/select.h" 1 3 4
1301 # 30 "/usr/include/sys/select.h" 3 4
1302 # 1 "/usr/include/bits/select.h" 1 3 4
1303 # 22 "/usr/include/bits/select.h" 3 4
1304 # 1 "/usr/include/bits/wordsize.h" 1 3 4
1305 # 23 "/usr/include/bits/select.h" 2 3 4
1306 # 31 "/usr/include/sys/select.h" 2 3 4
1307 
1308 
1309 # 1 "/usr/include/bits/types/sigset_t.h" 1 3 4
1310 
1311 
1312 
1313 # 1 "/usr/include/bits/types/__sigset_t.h" 1 3 4
1314 
1315 
1316 
1317 
1318 typedef struct
1319 {
1320  unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
1321 } __sigset_t;
1322 # 5 "/usr/include/bits/types/sigset_t.h" 2 3 4
1323 
1324 
1326 # 34 "/usr/include/sys/select.h" 2 3 4
1327 
1328 
1329 
1330 # 1 "/usr/include/bits/types/struct_timeval.h" 1 3 4
1331 
1332 
1333 
1334 
1335 
1336 
1337 
1338 struct timeval
1339 {
1340  __time_t tv_sec;
1342 };
1343 # 38 "/usr/include/sys/select.h" 2 3 4
1344 
1345 # 1 "/usr/include/bits/types/struct_timespec.h" 1 3 4
1346 # 9 "/usr/include/bits/types/struct_timespec.h" 3 4
1347 struct timespec
1348 {
1349  __time_t tv_sec;
1351 };
1352 # 40 "/usr/include/sys/select.h" 2 3 4
1353 
1354 
1355 
1357 
1358 
1359 
1360 
1361 
1362 typedef long int __fd_mask;
1363 # 59 "/usr/include/sys/select.h" 3 4
1364 typedef struct
1365  {
1366 
1367 
1368 
1369 
1370 
1371 
1372  __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
1373 
1374 
1375  } fd_set;
1376 
1377 
1378 
1379 
1380 
1381 
1383 # 91 "/usr/include/sys/select.h" 3 4
1384 
1385 # 101 "/usr/include/sys/select.h" 3 4
1386 extern int select (int __nfds, fd_set *__restrict __readfds,
1387  fd_set *__restrict __writefds,
1388  fd_set *__restrict __exceptfds,
1389  struct timeval *__restrict __timeout);
1390 # 113 "/usr/include/sys/select.h" 3 4
1391 extern int pselect (int __nfds, fd_set *__restrict __readfds,
1392  fd_set *__restrict __writefds,
1393  fd_set *__restrict __exceptfds,
1394  const struct timespec *__restrict __timeout,
1395  const __sigset_t *__restrict __sigmask);
1396 # 126 "/usr/include/sys/select.h" 3 4
1397 
1398 # 198 "/usr/include/sys/types.h" 2 3 4
1399 
1400 
1401 
1402 
1403 
1404 
1405 
1406 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
1407 # 41 "/usr/include/sys/sysmacros.h" 3 4
1408 # 1 "/usr/include/bits/sysmacros.h" 1 3 4
1409 # 42 "/usr/include/sys/sysmacros.h" 2 3 4
1410 # 71 "/usr/include/sys/sysmacros.h" 3 4
1411 
1412 
1413 extern unsigned int gnu_dev_major (__dev_t __dev) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
1414 extern unsigned int gnu_dev_minor (__dev_t __dev) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
1415 extern __dev_t gnu_dev_makedev (unsigned int __major, unsigned int __minor) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
1416 # 85 "/usr/include/sys/sysmacros.h" 3 4
1417 
1418 # 206 "/usr/include/sys/types.h" 2 3 4
1419 
1420 
1421 
1422 
1423 
1424 
1426 
1427 
1428 
1429 
1430 
1431 
1433 
1434 
1435 
1437 
1438 
1439 
1441 # 254 "/usr/include/sys/types.h" 3 4
1442 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
1443 # 23 "/usr/include/bits/pthreadtypes.h" 3 4
1444 # 1 "/usr/include/bits/thread-shared-types.h" 1 3 4
1445 # 77 "/usr/include/bits/thread-shared-types.h" 3 4
1446 # 1 "/usr/include/bits/pthreadtypes-arch.h" 1 3 4
1447 # 21 "/usr/include/bits/pthreadtypes-arch.h" 3 4
1448 # 1 "/usr/include/bits/wordsize.h" 1 3 4
1449 # 22 "/usr/include/bits/pthreadtypes-arch.h" 2 3 4
1450 # 65 "/usr/include/bits/pthreadtypes-arch.h" 3 4
1452 {
1453  unsigned int __readers;
1454  unsigned int __writers;
1455  unsigned int __wrphase_futex;
1456  unsigned int __writers_futex;
1457  unsigned int __pad3;
1458  unsigned int __pad4;
1459 
1460  int __cur_writer;
1461  int __shared;
1462  signed char __rwelision;
1463 
1464 
1465 
1466 
1467  unsigned char __pad1[7];
1468 
1469 
1470  unsigned long int __pad2;
1471 
1472 
1473  unsigned int __flags;
1474 # 99 "/usr/include/bits/pthreadtypes-arch.h" 3 4
1475 };
1476 # 78 "/usr/include/bits/thread-shared-types.h" 2 3 4
1477 
1478 
1479 
1480 
1481 typedef struct __pthread_internal_list
1482 {
1483  struct __pthread_internal_list *__prev;
1484  struct __pthread_internal_list *__next;
1486 # 118 "/usr/include/bits/thread-shared-types.h" 3 4
1487 struct __pthread_mutex_s
1488 {
1489  int __lock ;
1490  unsigned int __count;
1491  int __owner;
1492 
1493  unsigned int __nusers;
1494 # 148 "/usr/include/bits/thread-shared-types.h" 3 4
1495  int __kind;
1496 
1497 
1498 
1499 
1500 
1501  short __spins; short __elision;
1503 # 165 "/usr/include/bits/thread-shared-types.h" 3 4
1504 
1505 };
1506 
1507 
1508 
1509 
1510 struct __pthread_cond_s
1511 {
1512  __extension__ union
1513  {
1514  __extension__ unsigned long long int __wseq;
1515  struct
1516  {
1517  unsigned int __low;
1518  unsigned int __high;
1519  } __wseq32;
1520  };
1521  __extension__ union
1522  {
1523  __extension__ unsigned long long int __g1_start;
1524  struct
1525  {
1526  unsigned int __low;
1527  unsigned int __high;
1528  } __g1_start32;
1529  };
1530  unsigned int __g_refs[2] ;
1531  unsigned int __g_size[2];
1532  unsigned int __g1_orig_size;
1533  unsigned int __wrefs;
1534  unsigned int __g_signals[2];
1535 };
1536 # 24 "/usr/include/bits/pthreadtypes.h" 2 3 4
1537 
1538 
1539 
1540 typedef unsigned long int pthread_t;
1541 
1542 
1543 
1544 
1545 typedef union
1546 {
1547  char __size[4];
1548  int __align;
1550 
1551 
1552 
1553 
1554 typedef union
1555 {
1556  char __size[4];
1557  int __align;
1559 
1560 
1561 
1562 typedef unsigned int pthread_key_t;
1563 
1564 
1565 
1566 typedef int pthread_once_t;
1567 
1568 
1569 union pthread_attr_t
1570 {
1571  char __size[56];
1572  long int __align;
1573 };
1574 
1575 typedef union pthread_attr_t pthread_attr_t;
1576 
1577 
1578 
1579 
1580 typedef union
1581 {
1582  struct __pthread_mutex_s __data;
1583  char __size[40];
1584  long int __align;
1585 } pthread_mutex_t;
1586 
1587 
1588 typedef union
1589 {
1590  struct __pthread_cond_s __data;
1591  char __size[48];
1592  __extension__ long long int __align;
1593 } pthread_cond_t;
1594 
1595 
1596 
1597 
1598 
1599 typedef union
1600 {
1601  struct __pthread_rwlock_arch_t __data;
1602  char __size[56];
1603  long int __align;
1605 
1606 typedef union
1607 {
1608  char __size[8];
1609  long int __align;
1611 
1612 
1613 
1614 
1615 
1616 typedef volatile int pthread_spinlock_t;
1617 
1618 
1619 
1620 
1621 typedef union
1622 {
1623  char __size[32];
1624  long int __align;
1626 
1627 typedef union
1628 {
1629  char __size[4];
1630  int __align;
1632 # 255 "/usr/include/sys/types.h" 2 3 4
1633 
1634 
1635 
1636 # 240 "papi.h" 2
1637 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/limits.h" 1 3 4
1638 # 34 "/usr/lib64/gcc/x86_64-alt-linux/8/include/limits.h" 3 4
1639 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/syslimits.h" 1 3 4
1640 
1641 
1642 
1643 
1644 
1645 
1646 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/limits.h" 1 3 4
1647 # 194 "/usr/lib64/gcc/x86_64-alt-linux/8/include/limits.h" 3 4
1648 # 1 "/usr/include/limits.h" 1 3 4
1649 # 26 "/usr/include/limits.h" 3 4
1650 # 1 "/usr/include/bits/libc-header-start.h" 1 3 4
1651 # 27 "/usr/include/limits.h" 2 3 4
1652 # 183 "/usr/include/limits.h" 3 4
1653 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
1654 # 160 "/usr/include/bits/posix1_lim.h" 3 4
1655 # 1 "/usr/include/bits/local_lim.h" 1 3 4
1656 # 38 "/usr/include/bits/local_lim.h" 3 4
1657 # 1 "/usr/include/linux/limits.h" 1 3 4
1658 # 39 "/usr/include/bits/local_lim.h" 2 3 4
1659 # 161 "/usr/include/bits/posix1_lim.h" 2 3 4
1660 # 184 "/usr/include/limits.h" 2 3 4
1661 
1662 
1663 
1664 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
1665 # 188 "/usr/include/limits.h" 2 3 4
1666 # 195 "/usr/lib64/gcc/x86_64-alt-linux/8/include/limits.h" 2 3 4
1667 # 8 "/usr/lib64/gcc/x86_64-alt-linux/8/include/syslimits.h" 2 3 4
1668 # 35 "/usr/lib64/gcc/x86_64-alt-linux/8/include/limits.h" 2 3 4
1669 # 241 "papi.h" 2
1670 # 1 "papiStdEventDefs.h" 1
1671 # 51 "papiStdEventDefs.h"
1672 
1673 # 51 "papiStdEventDefs.h"
1674 enum
1675 {
1692 
1709 
1726 
1743 
1760 
1777 
1791 };
1792 # 242 "papi.h" 2
1793 # 479 "papi.h"
1794 enum {
1798 
1799 
1812 
1813 
1822 };
1823 # 543 "papi.h"
1824 # 1 "/usr/include/signal.h" 1 3 4
1825 # 27 "/usr/include/signal.h" 3 4
1826 
1827 
1828 
1829 # 1 "/usr/include/bits/signum.h" 1 3 4
1830 # 26 "/usr/include/bits/signum.h" 3 4
1831 # 1 "/usr/include/bits/signum-generic.h" 1 3 4
1832 # 27 "/usr/include/bits/signum.h" 2 3 4
1833 # 31 "/usr/include/signal.h" 2 3 4
1834 
1835 # 1 "/usr/include/bits/types/sig_atomic_t.h" 1 3 4
1836 
1837 
1838 
1839 
1840 
1841 
1842 
1843 
1844 # 8 "/usr/include/bits/types/sig_atomic_t.h" 3 4
1846 # 33 "/usr/include/signal.h" 2 3 4
1847 # 57 "/usr/include/signal.h" 3 4
1848 # 1 "/usr/include/bits/types/siginfo_t.h" 1 3 4
1849 
1850 
1851 
1852 # 1 "/usr/include/bits/wordsize.h" 1 3 4
1853 # 5 "/usr/include/bits/types/siginfo_t.h" 2 3 4
1854 
1855 # 1 "/usr/include/bits/types/__sigval_t.h" 1 3 4
1856 # 24 "/usr/include/bits/types/__sigval_t.h" 3 4
1857 union sigval
1858 {
1859  int sival_int;
1860  void *sival_ptr;
1861 };
1862 
1863 typedef union sigval __sigval_t;
1864 # 7 "/usr/include/bits/types/siginfo_t.h" 2 3 4
1865 # 16 "/usr/include/bits/types/siginfo_t.h" 3 4
1866 # 1 "/usr/include/bits/siginfo-arch.h" 1 3 4
1867 # 17 "/usr/include/bits/types/siginfo_t.h" 2 3 4
1868 # 36 "/usr/include/bits/types/siginfo_t.h" 3 4
1869 typedef struct
1870  {
1871  int si_signo;
1872 
1873  int si_errno;
1874 
1875  int si_code;
1876 
1877 
1878 
1879 
1880 
1881  int __pad0;
1882 
1883 
1884  union
1885  {
1886  int _pad[((128 / sizeof (int)) - 4)];
1887 
1888 
1889  struct
1890  {
1891  __pid_t si_pid;
1892  __uid_t si_uid;
1893  } _kill;
1894 
1895 
1896  struct
1897  {
1898  int si_tid;
1899  int si_overrun;
1900  __sigval_t si_sigval;
1901  } _timer;
1902 
1903 
1904  struct
1905  {
1906  __pid_t si_pid;
1907  __uid_t si_uid;
1908  __sigval_t si_sigval;
1909  } _rt;
1910 
1911 
1912  struct
1913  {
1914  __pid_t si_pid;
1915  __uid_t si_uid;
1916  int si_status;
1917  __clock_t si_utime;
1918  __clock_t si_stime;
1919  } _sigchld;
1920 
1921 
1922  struct
1923  {
1924  void *si_addr;
1925 
1926  short int si_addr_lsb;
1927  union
1928  {
1929 
1930  struct
1931  {
1932  void *_lower;
1933  void *_upper;
1934  } _addr_bnd;
1935 
1936  __uint32_t _pkey;
1937  } _bounds;
1938  } _sigfault;
1939 
1940 
1941  struct
1942  {
1943  long int si_band;
1944  int si_fd;
1945  } _sigpoll;
1946 
1947 
1948 
1949  struct
1950  {
1951  void *_call_addr;
1952  int _syscall;
1953  unsigned int _arch;
1954  } _sigsys;
1955 
1956  } _sifields;
1957  } siginfo_t ;
1958 # 58 "/usr/include/signal.h" 2 3 4
1959 # 1 "/usr/include/bits/siginfo-consts.h" 1 3 4
1960 # 35 "/usr/include/bits/siginfo-consts.h" 3 4
1961 enum
1962 {
1963  SI_ASYNCNL = -60,
1964  SI_TKILL = -6,
1966 
1970 
1971 
1972 
1973 
1974 
1977  SI_KERNEL = 0x80
1978 # 63 "/usr/include/bits/siginfo-consts.h" 3 4
1979 };
1980 
1981 
1982 
1983 
1984 enum
1985 {
1987 
1989 
1991 
1993 
1995 
1997 
1999 
2001 
2002 };
2003 
2004 
2005 enum
2006 {
2008 
2010 
2012 
2014 
2016 
2018 
2020 
2022 
2023 };
2024 
2025 
2026 enum
2027 {
2029 
2031 
2033 
2035 
2036 };
2037 
2038 
2039 enum
2040 {
2042 
2044 
2046 
2048 
2050 
2051 };
2052 # 151 "/usr/include/bits/siginfo-consts.h" 3 4
2053 enum
2054 {
2056 
2058 
2060 
2062 
2064 
2066 
2067 };
2068 
2069 
2070 enum
2071 {
2072  POLL_IN = 1,
2073 
2075 
2077 
2079 
2081 
2083 
2084 };
2085 # 59 "/usr/include/signal.h" 2 3 4
2086 
2087 
2088 
2089 # 1 "/usr/include/bits/types/sigval_t.h" 1 3 4
2090 # 16 "/usr/include/bits/types/sigval_t.h" 3 4
2091 typedef __sigval_t sigval_t;
2092 # 63 "/usr/include/signal.h" 2 3 4
2093 
2094 
2095 
2096 # 1 "/usr/include/bits/types/sigevent_t.h" 1 3 4
2097 
2098 
2099 
2100 # 1 "/usr/include/bits/wordsize.h" 1 3 4
2101 # 5 "/usr/include/bits/types/sigevent_t.h" 2 3 4
2102 # 22 "/usr/include/bits/types/sigevent_t.h" 3 4
2103 typedef struct sigevent
2104  {
2105  __sigval_t sigev_value;
2106  int sigev_signo;
2107  int sigev_notify;
2108 
2109  union
2110  {
2111  int _pad[((64 / sizeof (int)) - 4)];
2112 
2113 
2114 
2115  __pid_t _tid;
2116 
2117  struct
2118  {
2119  void (*_function) (__sigval_t);
2120  pthread_attr_t *_attribute;
2121  } _sigev_thread;
2122  } _sigev_un;
2123  } sigevent_t;
2124 # 67 "/usr/include/signal.h" 2 3 4
2125 # 1 "/usr/include/bits/sigevent-consts.h" 1 3 4
2126 # 27 "/usr/include/bits/sigevent-consts.h" 3 4
2127 enum
2128 {
2130 
2132 
2134 
2135 
2137 
2138 
2139 };
2140 # 68 "/usr/include/signal.h" 2 3 4
2141 
2142 
2143 
2144 
2145 typedef void (*__sighandler_t) (int);
2146 
2147 
2148 
2149 
2150 extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler)
2151  __attribute__ ((__nothrow__ , __leaf__));
2152 # 88 "/usr/include/signal.h" 3 4
2153 extern __sighandler_t signal (int __sig, __sighandler_t __handler)
2154  __attribute__ ((__nothrow__ , __leaf__));
2155 # 112 "/usr/include/signal.h" 3 4
2156 extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__ , __leaf__));
2157 
2158 
2159 
2160 
2161 
2162 
2163 extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__ , __leaf__));
2164 
2165 
2166 
2167 extern int raise (int __sig) __attribute__ ((__nothrow__ , __leaf__));
2168 
2169 
2170 
2171 extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)
2172  __attribute__ ((__nothrow__ , __leaf__));
2173 extern int gsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__));
2174 
2175 
2176 
2177 
2178 extern void psignal (int __sig, const char *__s);
2179 
2180 
2181 extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
2182 # 170 "/usr/include/signal.h" 3 4
2183 extern int sigblock (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
2184 
2185 
2186 extern int sigsetmask (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
2187 
2188 
2189 extern int siggetmask (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
2190 # 190 "/usr/include/signal.h" 3 4
2191 typedef __sighandler_t sig_t;
2192 
2193 
2194 
2195 
2196 
2197 extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2198 
2199 
2200 extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2201 
2202 
2203 extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2204 
2205 
2206 extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2207 
2208 
2209 extern int sigismember (const sigset_t *__set, int __signo)
2210  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2211 # 226 "/usr/include/signal.h" 3 4
2212 # 1 "/usr/include/bits/sigaction.h" 1 3 4
2213 # 24 "/usr/include/bits/sigaction.h" 3 4
2214 struct sigaction
2215  {
2216 
2217 
2218  union
2219  {
2220 
2221  __sighandler_t sa_handler;
2222 
2223  void (*sa_sigaction) (int, siginfo_t *, void *);
2224  }
2225  __sigaction_handler;
2226 
2227 
2228 
2229 
2230 
2231 
2232 
2233  __sigset_t sa_mask;
2234 
2235 
2236  int sa_flags;
2237 
2238 
2239  void (*sa_restorer) (void);
2240  };
2241 # 227 "/usr/include/signal.h" 2 3 4
2242 
2243 
2244 extern int sigprocmask (int __how, const sigset_t *__restrict __set,
2245  sigset_t *__restrict __oset) __attribute__ ((__nothrow__ , __leaf__));
2246 
2247 
2248 
2249 
2250 
2251 
2252 extern int sigsuspend (const sigset_t *__set) __attribute__ ((__nonnull__ (1)));
2253 
2254 
2255 extern int sigaction (int __sig, const struct sigaction *__restrict __act,
2256  struct sigaction *__restrict __oact) __attribute__ ((__nothrow__ , __leaf__));
2257 
2258 
2259 extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2260 
2261 
2262 
2263 
2264 
2265 
2266 
2267 extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig)
2268  __attribute__ ((__nonnull__ (1, 2)));
2269 
2270 
2271 
2272 
2273 
2274 
2275 
2276 extern int sigwaitinfo (const sigset_t *__restrict __set,
2277  siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1)));
2278 
2279 
2280 
2281 
2282 
2283 
2284 extern int sigtimedwait (const sigset_t *__restrict __set,
2285  siginfo_t *__restrict __info,
2286  const struct timespec *__restrict __timeout)
2287  __attribute__ ((__nonnull__ (1)));
2288 
2289 
2290 
2291 extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val)
2292  __attribute__ ((__nothrow__ , __leaf__));
2293 # 286 "/usr/include/signal.h" 3 4
2294 extern const char *const _sys_siglist[(64 + 1)];
2295 extern const char *const sys_siglist[(64 + 1)];
2296 
2297 
2298 
2299 # 1 "/usr/include/bits/sigcontext.h" 1 3 4
2300 # 31 "/usr/include/bits/sigcontext.h" 3 4
2301 struct _fpx_sw_bytes
2302 {
2308 };
2309 
2310 struct _fpreg
2311 {
2312  unsigned short significand[4];
2313  unsigned short exponent;
2314 };
2315 
2316 struct _fpxreg
2317 {
2318  unsigned short significand[4];
2319  unsigned short exponent;
2320  unsigned short __glibc_reserved1[3];
2321 };
2322 
2323 struct _xmmreg
2324 {
2325  __uint32_t element[4];
2326 };
2327 # 123 "/usr/include/bits/sigcontext.h" 3 4
2328 struct _fpstate
2329 {
2330 
2331  __uint16_t cwd;
2332  __uint16_t swd;
2333  __uint16_t ftw;
2334  __uint16_t fop;
2335  __uint64_t rip;
2336  __uint64_t rdp;
2337  __uint32_t mxcsr;
2339  struct _fpxreg _st[8];
2340  struct _xmmreg _xmm[16];
2342 };
2343 
2344 struct sigcontext
2345 {
2346  __uint64_t r8;
2347  __uint64_t r9;
2348  __uint64_t r10;
2349  __uint64_t r11;
2350  __uint64_t r12;
2351  __uint64_t r13;
2352  __uint64_t r14;
2353  __uint64_t r15;
2354  __uint64_t rdi;
2355  __uint64_t rsi;
2356  __uint64_t rbp;
2357  __uint64_t rbx;
2358  __uint64_t rdx;
2359  __uint64_t rax;
2360  __uint64_t rcx;
2361  __uint64_t rsp;
2362  __uint64_t rip;
2364  unsigned short cs;
2365  unsigned short gs;
2366  unsigned short fs;
2367  unsigned short __pad0;
2368  __uint64_t err;
2371  __uint64_t cr2;
2372  __extension__ union
2373  {
2374  struct _fpstate * fpstate;
2376  };
2377  __uint64_t __reserved1 [8];
2378 };
2379 
2380 
2381 
2382 struct _xsave_hdr
2383 {
2387 };
2388 
2389 struct _ymmh_state
2390 {
2391  __uint32_t ymmh_space[64];
2392 };
2393 
2394 struct _xstate
2395 {
2396  struct _fpstate fpstate;
2397  struct _xsave_hdr xstate_hdr;
2398  struct _ymmh_state ymmh;
2399 };
2400 # 292 "/usr/include/signal.h" 2 3 4
2401 
2402 
2403 extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__ , __leaf__));
2404 
2405 
2406 
2407 
2408 
2409 
2410 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stddef.h" 1 3 4
2411 # 302 "/usr/include/signal.h" 2 3 4
2412 
2413 # 1 "/usr/include/bits/types/stack_t.h" 1 3 4
2414 # 23 "/usr/include/bits/types/stack_t.h" 3 4
2415 # 1 "/usr/lib64/gcc/x86_64-alt-linux/8/include/stddef.h" 1 3 4
2416 # 24 "/usr/include/bits/types/stack_t.h" 2 3 4
2417 
2418 
2419 typedef struct
2420  {
2421  void *ss_sp;
2422  int ss_flags;
2423  size_t ss_size;
2424  } stack_t;
2425 # 304 "/usr/include/signal.h" 2 3 4
2426 
2427 
2428 # 1 "/usr/include/sys/ucontext.h" 1 3 4
2429 # 37 "/usr/include/sys/ucontext.h" 3 4
2430 __extension__ typedef long long int greg_t;
2431 # 46 "/usr/include/sys/ucontext.h" 3 4
2432 typedef greg_t gregset_t[23];
2433 # 101 "/usr/include/sys/ucontext.h" 3 4
2434 struct _libc_fpxreg
2435 {
2436  unsigned short int significand[4];
2437  unsigned short int exponent;
2438  unsigned short int __glibc_reserved1[3];
2439 };
2440 
2441 struct _libc_xmmreg
2442 {
2443  __uint32_t element[4];
2444 };
2445 
2446 struct _libc_fpstate
2447 {
2448 
2449  __uint16_t cwd;
2450  __uint16_t swd;
2451  __uint16_t ftw;
2452  __uint16_t fop;
2453  __uint64_t rip;
2454  __uint64_t rdp;
2455  __uint32_t mxcsr;
2457  struct _libc_fpxreg _st[8];
2458  struct _libc_xmmreg _xmm[16];
2460 };
2461 
2462 
2463 typedef struct _libc_fpstate *fpregset_t;
2464 
2465 
2466 typedef struct
2467  {
2468  gregset_t gregs;
2469 
2470  fpregset_t fpregs;
2471  __extension__ unsigned long long __reserved1 [8];
2472 } mcontext_t;
2473 
2474 
2475 typedef struct ucontext_t
2476  {
2477  unsigned long int uc_flags;
2478  struct ucontext_t *uc_link;
2479  stack_t uc_stack;
2482  struct _libc_fpstate __fpregs_mem;
2483  } ucontext_t;
2484 # 307 "/usr/include/signal.h" 2 3 4
2485 
2486 
2487 
2488 
2489 
2490 
2491 
2492 extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__ , __leaf__));
2493 
2494 # 1 "/usr/include/bits/sigstack.h" 1 3 4
2495 # 317 "/usr/include/signal.h" 2 3 4
2496 # 1 "/usr/include/bits/ss_flags.h" 1 3 4
2497 # 27 "/usr/include/bits/ss_flags.h" 3 4
2498 enum
2499 {
2501 
2503 
2504 };
2505 # 318 "/usr/include/signal.h" 2 3 4
2506 
2507 
2508 
2509 extern int sigaltstack (const stack_t *__restrict __ss,
2510  stack_t *__restrict __oss) __attribute__ ((__nothrow__ , __leaf__));
2511 
2512 
2513 
2514 
2515 # 1 "/usr/include/bits/types/struct_sigstack.h" 1 3 4
2516 # 23 "/usr/include/bits/types/struct_sigstack.h" 3 4
2517 struct sigstack
2518  {
2519  void *ss_sp;
2520  int ss_onstack;
2521  };
2522 # 328 "/usr/include/signal.h" 2 3 4
2523 
2524 
2525 
2526 
2527 
2528 
2529 
2530 extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
2531  __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
2532 # 359 "/usr/include/signal.h" 3 4
2533 # 1 "/usr/include/bits/sigthread.h" 1 3 4
2534 # 31 "/usr/include/bits/sigthread.h" 3 4
2535 extern int pthread_sigmask (int __how,
2536  const __sigset_t *__restrict __newmask,
2537  __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__ , __leaf__));
2538 
2539 
2540 extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__ , __leaf__));
2541 # 360 "/usr/include/signal.h" 2 3 4
2542 
2543 
2544 
2545 
2546 
2547 
2548 extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__ , __leaf__));
2549 
2550 extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__ , __leaf__));
2551 
2552 
2553 
2554 
2555 
2556 # 544 "papi.h" 2
2557 # 556 "papi.h"
2558 
2559 # 556 "papi.h"
2560 typedef unsigned long PAPI_thread_id_t;
2561 
2562 
2563  typedef struct _papi_all_thr_spec {
2564  int num;
2565  PAPI_thread_id_t *id;
2566  void **data;
2568 
2569  typedef void (*PAPI_overflow_handler_t) (int EventSet, void *address,
2570  long long overflow_vector, void *context);
2571 
2572 
2573 
2574 
2575 
2576 
2577  typedef char *caddr_t;
2578 
2579 
2580 
2581 
2582 
2583 
2584  typedef struct _papi_sprofil {
2585  void *pr_base;
2586  unsigned pr_size;
2587  caddr_t pr_off;
2588  unsigned pr_scale;
2589 
2590 
2591 
2592  } PAPI_sprofil_t;
2593 
2594 
2595  typedef struct _papi_itimer_option {
2596  int itimer_num;
2597  int itimer_sig;
2598  int ns;
2599  int flags;
2601 
2602 
2603  typedef struct _papi_inherit_option {
2604  int eventset;
2605  int inherit;
2607 
2608 
2609  typedef struct _papi_domain_option {
2610  int def_cidx;
2611  int eventset;
2612  int domain;
2614 
2615 
2616  typedef struct _papi_granularity_option {
2617  int def_cidx;
2618  int eventset;
2619  int granularity;
2621 
2622 
2623  typedef struct _papi_preload_option {
2624  char lib_preload_env[128];
2625  char lib_preload_sep;
2626  char lib_dir_env[128];
2627  char lib_dir_sep;
2629 
2630 
2631  typedef struct _papi_component_option {
2632  char name[128];
2633  char short_name[64];
2634 
2635  char description[128];
2636  char version[64];
2637  char support_version[64];
2638  char kernel_version[64];
2639  char disabled_reason[128];
2640  int disabled;
2641  int CmpIdx;
2642  int num_cntrs;
2643  int num_mpx_cntrs;
2644  int num_preset_events;
2645  int num_native_events;
2646  int default_domain;
2647  int available_domains;
2648  int default_granularity;
2649  int available_granularities;
2650  int hardware_intr_sig;
2651 
2652  int component_type;
2653  char *pmu_names[40];
2654  int reserved[8];
2655  unsigned int hardware_intr:1;
2656  unsigned int precise_intr:1;
2657  unsigned int posix1b_timers:1;
2658  unsigned int kernel_profile:1;
2659  unsigned int kernel_multiplex:1;
2660 
2661 
2662  unsigned int fast_counter_read:1;
2663  unsigned int fast_real_timer:1;
2664  unsigned int fast_virtual_timer:1;
2665  unsigned int attach:1;
2666  unsigned int attach_must_ptrace:1;
2667 
2668 
2669 
2670 
2671  unsigned int cntr_umasks:1;
2672 
2673 
2674 
2675 
2676  unsigned int cpu:1;
2677  unsigned int inherit:1;
2678  unsigned int reserved_bits:12;
2680 
2681 
2682  typedef struct _papi_mpx_info {
2683  int timer_sig;
2684  int timer_num;
2685  int timer_us;
2686  } PAPI_mpx_info_t;
2687 
2688  typedef int (*PAPI_debug_handler_t) (int code);
2689 
2690 
2691  typedef struct _papi_debug_option {
2692  int level;
2695 
2696 
2697 
2698  typedef struct _papi_address_map {
2699  char name[1024];
2700  caddr_t text_start;
2701  caddr_t text_end;
2702  caddr_t data_start;
2703  caddr_t data_end;
2704  caddr_t bss_start;
2705  caddr_t bss_end;
2707 
2708 
2709 
2710  typedef struct _papi_program_info {
2711  char fullname[1024];
2712  PAPI_address_map_t address_info;
2713  } PAPI_exe_info_t;
2714 
2715 
2716  typedef struct _papi_shared_lib_info {
2717  PAPI_address_map_t *map;
2718  int count;
2720 
2721 
2723 # 748 "papi.h"
2724  typedef struct _papi_mh_tlb_info {
2725  int type;
2726  int num_entries;
2727  int page_size;
2728  int associativity;
2730 
2731 
2732  typedef struct _papi_mh_cache_info {
2733  int type;
2734  int size;
2735  int line_size;
2736  int num_lines;
2737  int associativity;
2739 
2740 
2741  typedef struct _papi_mh_level_info {
2742  PAPI_mh_tlb_info_t tlb[6];
2744  } PAPI_mh_level_t;
2745 
2746 
2747 
2748  typedef struct _papi_mh_info {
2749  int levels;
2750  PAPI_mh_level_t level[4];
2751  } PAPI_mh_info_t;
2752 
2753 
2754 
2755  typedef struct _papi_hw_info {
2756  int ncpu;
2757  int threads;
2758  int cores;
2759  int sockets;
2760  int nnodes;
2761  int totalcpus;
2762  int vendor;
2763  char vendor_string[128];
2764  int model;
2765  char model_string[128];
2766  float revision;
2767  int cpuid_family;
2768  int cpuid_model;
2769  int cpuid_stepping;
2770 
2771  int cpu_max_mhz;
2772  int cpu_min_mhz;
2773 
2774  PAPI_mh_info_t mem_hierarchy;
2775  int virtualized;
2776  char virtual_vendor_string[128];
2777 
2778  char virtual_vendor_version[128];
2779 
2780 
2781 
2782  float mhz;
2783  int clock_mhz;
2784 
2785 
2786  int reserved[8];
2787 
2788  } PAPI_hw_info_t;
2789 
2790 
2791  typedef struct _papi_attach_option {
2792  int eventset;
2793  unsigned long tid;
2795 
2796 
2797  typedef struct _papi_cpu_option {
2798  int eventset;
2799  unsigned int cpu_num;
2801 
2802 
2803  typedef struct _papi_multiplex_option {
2804  int eventset;
2805  int ns;
2806  int flags;
2808 
2809 
2810 
2811  typedef struct _papi_addr_range_option {
2812  int eventset;
2813  caddr_t start;
2814  caddr_t end;
2815  int start_off;
2816  int end_off;
2818 
2819 
2820 
2821 
2822 
2823  typedef union
2824  {
2825  PAPI_preload_info_t preload;
2828  PAPI_granularity_option_t granularity;
2829  PAPI_granularity_option_t defgranularity;
2830  PAPI_domain_option_t domain;
2831  PAPI_domain_option_t defdomain;
2833  PAPI_cpu_option_t cpu;
2835  PAPI_itimer_option_t itimer;
2837  PAPI_shlib_info_t *shlib_info;
2838  PAPI_exe_info_t *exe_info;
2839  PAPI_component_info_t *cmp_info;
2841  PAPI_user_defined_events_file_t events_file;
2842  } PAPI_option_t;
2843 
2844 
2845 
2846  typedef struct _dmem_t {
2847  long long peak;
2848  long long size;
2849  long long resident;
2850  long long high_water_mark;
2851  long long shared;
2852  long long text;
2853  long long library;
2854  long long heap;
2855  long long locked;
2856  long long stack;
2857  long long pagesize;
2858  long long pte;
2859  } PAPI_dmem_info_t;
2860 # 924 "papi.h"
2861 enum {
2866 };
2867 
2868 
2869 enum {
2874 };
2875 
2876 
2877 enum {
2880 };
2881 
2882 
2883 enum {
2888 };
2889 
2890 
2891 enum {
2896 };
2897 
2898 
2899  typedef struct event_info {
2900  unsigned int event_code;
2901 
2902  char symbol[1024];
2903  char short_descr[64];
2904 
2905  char long_descr[1024];
2906 
2907 
2908 
2909 
2910  int component_index;
2911  char units[64];
2912  int location;
2913  int data_type;
2914  int value_type;
2915  int timescope;
2916  int update_type;
2917  int update_freq;
2918 
2919 
2920 
2921 
2922 
2923  unsigned int count;
2924 
2925 
2926 
2927 
2928  unsigned int event_type;
2929 
2930 
2931  char derived[64];
2932 
2933 
2934  char postfix[256];
2935 
2936 
2937 
2938 
2939  unsigned int code[12];
2940 
2941 
2942 
2943 
2944  char name[12]
2945  [256];
2946 
2947 
2948 
2949  char note[1024];
2950 
2951 
2952 
2953 
2955 
2956 
2957 
2958 
2959 
2960 
2961 
2962  int PAPI_accum(int EventSet, long long * values);
2963  int PAPI_add_event(int EventSet, int Event);
2964  int PAPI_add_named_event(int EventSet, const char *EventName);
2965  int PAPI_add_events(int EventSet, int *Events, int number);
2967  int PAPI_attach(int EventSet, unsigned long tid);
2969  int PAPI_create_eventset(int *EventSet);
2970  int PAPI_detach(int EventSet);
2971  int PAPI_destroy_eventset(int *EventSet);
2972  int PAPI_enum_event(int *EventCode, int modifier);
2973  int PAPI_enum_cmp_event(int *EventCode, int modifier, int cidx);
2974  int PAPI_event_code_to_name(int EventCode, char *out);
2975  int PAPI_event_name_to_code(const char *in, int *out);
2977  int PAPI_get_event_info(int EventCode, PAPI_event_info_t * info);
2981  int PAPI_get_multiplex(int EventSet);
2982  int PAPI_get_opt(int option, PAPI_option_t * ptr);
2983  int PAPI_get_cmp_opt(int option, PAPI_option_t * ptr,int cidx);
2984  long long PAPI_get_real_cyc(void);
2985  long long PAPI_get_real_nsec(void);
2986  long long PAPI_get_real_usec(void);
2988  int PAPI_get_thr_specific(int tag, void **ptr);
2989  int PAPI_get_overflow_event_index(int Eventset, long long overflow_vector, int *array, int *number);
2990  long long PAPI_get_virt_cyc(void);
2991  long long PAPI_get_virt_nsec(void);
2992  long long PAPI_get_virt_usec(void);
2993  int PAPI_is_initialized(void);
2994  int PAPI_library_init(int version);
2995  int PAPI_list_events(int EventSet, int *Events, int *number);
2996  int PAPI_list_threads(unsigned long *tids, int *number);
2997  int PAPI_lock(int);
2998  int PAPI_multiplex_init(void);
2999  int PAPI_num_cmp_hwctrs(int cidx);
3000  int PAPI_num_events(int EventSet);
3001  int PAPI_overflow(int EventSet, int EventCode, int threshold,
3002  int flags, PAPI_overflow_handler_t handler);
3003  void PAPI_perror(const char *msg );
3004  int PAPI_profil(void *buf, unsigned bufsiz, caddr_t offset,
3005  unsigned scale, int EventSet, int EventCode,
3006  int threshold, int flags);
3007  int PAPI_query_event(int EventCode);
3008  int PAPI_query_named_event(const char *EventName);
3009  int PAPI_read(int EventSet, long long * values);
3010  int PAPI_read_ts(int EventSet, long long * values, long long *cyc);
3011  int PAPI_register_thread(void);
3012  int PAPI_remove_event(int EventSet, int EventCode);
3013  int PAPI_remove_named_event(int EventSet, const char *EventName);
3014  int PAPI_remove_events(int EventSet, int *Events, int number);
3015  int PAPI_reset(int EventSet);
3016  int PAPI_set_debug(int level);
3017  int PAPI_set_cmp_domain(int domain, int cidx);
3018  int PAPI_set_domain(int domain);
3019  int PAPI_set_cmp_granularity(int granularity, int cidx);
3020  int PAPI_set_granularity(int granularity);
3021  int PAPI_set_multiplex(int EventSet);
3022  int PAPI_set_opt(int option, PAPI_option_t * ptr);
3023  int PAPI_set_thr_specific(int tag, void *ptr);
3024  void PAPI_shutdown(void);
3025  int PAPI_sprofil(PAPI_sprofil_t * prof, int profcnt, int EventSet, int EventCode, int threshold, int flags);
3026  int PAPI_start(int EventSet);
3027  int PAPI_state(int EventSet, int *status);
3028  int PAPI_stop(int EventSet, long long * values);
3029  char *PAPI_strerror(int);
3030  unsigned long PAPI_thread_id(void);
3031  int PAPI_thread_init(unsigned long (*id_fn) (void));
3032  int PAPI_unlock(int);
3033  int PAPI_unregister_thread(void);
3034  int PAPI_write(int EventSet, long long * values);
3035  int PAPI_get_event_component(int EventCode);
3037  int PAPI_get_component_index(const char *name);
3038  int PAPI_disable_component(int cidx);
3039  int PAPI_disable_component_by_name(const char *name );
3040 # 1116 "papi.h"
3041  int PAPI_accum_counters(long long * values, int array_len);
3042  int PAPI_num_counters(void);
3043  int PAPI_num_components(void);
3044  int PAPI_read_counters(long long * values, int array_len);
3045  int PAPI_start_counters(int *events, int array_len);
3046  int PAPI_stop_counters(long long * values, int array_len);
3047  int PAPI_flips(float *rtime, float *ptime, long long * flpins, float *mflips);
3048  int PAPI_flops(float *rtime, float *ptime, long long * flpops, float *mflops);
3049  int PAPI_ipc(float *rtime, float *ptime, long long * ins, float *ipc);
3050  int PAPI_epc(int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc);
3051 
3052 
3053 
3054 
3055 
3056 int PAPI_num_hwctrs(void);
3057 
3058 
3059 
3060 
3061 
3062 
3063 
3064 #pragma GCC visibility pop
3065 # 27 "papi_fwrappers.c" 2
3066 # 50 "papi_fwrappers.c"
3067 static void Fortran2cstring( char *cstring, char *Fstring, int clen , int Flen )
3068 {
3069  int slen, i;
3070 
3071 
3072  slen = Flen < clen ? Flen : clen;
3073  strncpy( cstring, Fstring, ( size_t ) slen );
3074 
3075 
3076  for ( i = slen - 1; i > -1 && cstring[i] == ' '; cstring[i--] = '\0' );
3077 
3078 
3079  cstring[clen - 1] = '\0';
3080  if ( slen < clen )
3081  cstring[slen] = '\0';
3082 }
3083 # 78 "papi_fwrappers.c"
3084 void PAPIF_ACCUM ( int *EventSet, long long *values, int *check )
3085 
3086 {
3087  *check = PAPI_accum( *EventSet, values );
3088 }
3089 # 94 "papi_fwrappers.c"
3090 void PAPIF_ADD_EVENT ( int *EventSet, int *Event, int *check )
3091 
3092 {
3094 }
3095 # 111 "papi_fwrappers.c"
3096 void PAPIF_ADD_NAMED_EVENT ( int *EventSet, char *EventName, int *check, int Event_len )
3097 
3098 {
3099  char tmp[128];
3100  Fortran2cstring( tmp, EventName, 128, Event_len );
3102 }
3103 # 136 "papi_fwrappers.c"
3104 void PAPIF_ADD_EVENTS ( int *EventSet, int *Events, int *number, int *check )
3105 
3106 {
3107  *check = PAPI_add_events( *EventSet, Events, *number );
3108 }
3109 # 152 "papi_fwrappers.c"
3111 
3112 {
3114 }
3115 # 168 "papi_fwrappers.c"
3117 
3118 {
3120 }
3121 # 184 "papi_fwrappers.c"
3123 
3124 {
3126 }
3127 # 200 "papi_fwrappers.c"
3129 
3130 {
3132 }
3133 # 217 "papi_fwrappers.c"
3134 void PAPIF_GET_DMEM_INFO ( long long *dest, int *check )
3135 
3136 {
3137  *check = PAPI_get_dmem_info( ( PAPI_dmem_info_t * ) dest );
3138 }
3139 # 237 "papi_fwrappers.c"
3140 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 )
3141 # 248 "papi_fwrappers.c"
3142 {
3143  PAPI_option_t e;
3144 
3145 
3146 
3147 
3148 
3149  if ( ( *check = PAPI_get_opt( 17, &e ) ) == 0 ) {
3150 
3151  int i;
3152  strncpy( fullname, e.exe_info->fullname, ( size_t ) fullname_len );
3153  for ( i = ( int ) strlen( e.exe_info->fullname ); i < fullname_len;
3154  fullname[i++] = ' ' );
3155  strncpy( name, e.exe_info->address_info.name, ( size_t ) name_len );
3156  for ( i = ( int ) strlen( e.exe_info->address_info.name ); i < name_len;
3157  name[i++] = ' ' );
3158 
3159 
3160 
3161 
3162  *text_start = ( long ) e.exe_info->address_info.text_start;
3163  *text_end = ( long ) e.exe_info->address_info.text_end;
3164  *data_start = ( long ) e.exe_info->address_info.data_start;
3165  *data_end = ( long ) e.exe_info->address_info.data_end;
3166  *bss_start = ( long ) e.exe_info->address_info.bss_start;
3167  *bss_end = ( long ) e.exe_info->address_info.bss_end;
3168  }
3169 }
3170 # 290 "papi_fwrappers.c"
3171 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 )
3172 # 316 "papi_fwrappers.c"
3173 {
3174  const PAPI_hw_info_t *hwinfo;
3175  int i;
3176  hwinfo = PAPI_get_hardware_info( );
3177  if ( hwinfo ==
3178 # 320 "papi_fwrappers.c" 3 4
3179  ((void *)0)
3180 # 320 "papi_fwrappers.c"
3181  ) {
3182  *ncpu = 0;
3183  *nnodes = 0;
3184  *totalcpus = 0;
3185  *vendor = 0;
3186  *model = 0;
3187  *revision = 0;
3188  *mhz = 0;
3189  } else {
3190  *ncpu = hwinfo->ncpu;
3191  *nnodes = hwinfo->nnodes;
3192  *totalcpus = hwinfo->totalcpus;
3193  *vendor = hwinfo->vendor;
3194  *model = hwinfo->model;
3195  *revision = hwinfo->revision;
3196  *mhz = hwinfo->cpu_max_mhz;
3197 
3198  strncpy( vendor_str, hwinfo->vendor_string, ( size_t ) vendor_len );
3199  for ( i = ( int ) strlen( hwinfo->vendor_string ); i < vendor_len;
3200  vendor_str[i++] = ' ' );
3201  strncpy( model_str, hwinfo->model_string, ( size_t ) model_len );
3202  for ( i = ( int ) strlen( hwinfo->model_string ); i < model_len;
3203  model_str[i++] = ' ' );
3204 
3205 
3206 
3207 
3208 
3209 
3210 
3211  }
3212  return;
3213 }
3214 # 365 "papi_fwrappers.c"
3215 void PAPIF_num_hwctrs ( int *num )
3216 {
3217  *num = PAPI_num_hwctrs( );
3218 }
3219 # 381 "papi_fwrappers.c"
3220 void PAPIF_num_cmp_hwctrs ( int *cidx, int *num )
3221 
3222 {
3223  *num = PAPI_num_cmp_hwctrs( *cidx );
3224 }
3225 # 397 "papi_fwrappers.c"
3226 void PAPIF_GET_REAL_CYC ( long long *real_cyc )
3227 {
3228  *real_cyc = PAPI_get_real_cyc( );
3229 }
3230 # 412 "papi_fwrappers.c"
3231 void PAPIF_GET_REAL_USEC ( long long *time )
3232 {
3233  *time = PAPI_get_real_usec( );
3234 }
3235 # 427 "papi_fwrappers.c"
3236 void PAPIF_GET_REAL_NSEC ( long long *time )
3237 {
3238  *time = PAPI_get_real_nsec( );
3239 }
3240 # 442 "papi_fwrappers.c"
3241 void PAPIF_GET_VIRT_CYC ( long long *virt_cyc )
3242 {
3243  *virt_cyc = PAPI_get_virt_cyc( );
3244 }
3245 # 457 "papi_fwrappers.c"
3246 void PAPIF_GET_VIRT_USEC ( long long *time )
3247 {
3248  *time = PAPI_get_virt_usec( );
3249 }
3250 # 472 "papi_fwrappers.c"
3251 void PAPIF_IS_INITIALIZED ( int *level )
3252 {
3253  *level = PAPI_is_initialized( );
3254 }
3255 # 487 "papi_fwrappers.c"
3257 {
3258  *check = PAPI_library_init( *check );
3259 }
3260 # 502 "papi_fwrappers.c"
3261 void PAPIF_THREAD_ID ( unsigned long *id )
3262 {
3263  *id = PAPI_thread_id( );
3264 }
3265 # 517 "papi_fwrappers.c"
3267 {
3269 }
3270 # 532 "papi_fwrappers.c"
3272 {
3274 }
3275 
3276 
3277 
3278 
3280 {
3282 }
3283 # 556 "papi_fwrappers.c"
3284 void PAPIF_THREAD_INIT ( unsigned long int ( *handle ) ( void ), int *check )
3285 
3286 {
3287  *check = PAPI_thread_init( handle );
3288 }
3289 # 572 "papi_fwrappers.c"
3290 void PAPIF_LIST_EVENTS ( int *EventSet, int *Events, int *number, int *check )
3291 
3292 {
3293  *check = PAPI_list_events( *EventSet, Events, number );
3294 }
3295 # 588 "papi_fwrappers.c"
3297 {
3298  *check = PAPI_multiplex_init( );
3299 }
3300 # 603 "papi_fwrappers.c"
3302 
3303 {
3305 }
3306 # 619 "papi_fwrappers.c"
3308 
3309 {
3311 }
3312 # 636 "papi_fwrappers.c"
3313 void PAPIF_PERROR ( char *message, int message_len )
3314 
3315 
3316 
3317 
3318 
3319 
3320 {
3321 
3322  char tmp[128];
3323  Fortran2cstring( tmp, message, 128, message_len );
3324 
3325  PAPI_perror( tmp );
3326 
3327 
3328 
3329 }
3330 # 672 "papi_fwrappers.c"
3331 void PAPIF_QUERY_EVENT ( int *EventCode, int *check )
3332 
3333 {
3334  *check = PAPI_query_event( *EventCode );
3335 }
3336 # 689 "papi_fwrappers.c"
3337 void PAPIF_QUERY_NAMED_EVENT ( char *EventName, int *check, int Event_len )
3338 
3339 {
3340  char tmp[128];
3341  Fortran2cstring( tmp, EventName, 128, Event_len );
3343 }
3344 # 717 "papi_fwrappers.c"
3345 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 )
3346 # 727 "papi_fwrappers.c"
3347 {
3348  PAPI_event_info_t info;
3349  ( void ) flags;
3350 
3351  int i;
3352  if ( ( *check = PAPI_get_event_info( *EventCode, &info ) ) == 0 ) {
3353  strncpy( symbol, info.symbol, ( size_t ) symbol_len );
3354  for ( i = ( int ) strlen( info.symbol ); i < symbol_len;
3355  symbol[i++] = ' ' );
3356  strncpy( long_descr, info.long_descr, ( size_t ) long_descr_len );
3357  for ( i = ( int ) strlen( info.long_descr ); i < long_descr_len;
3358  long_descr[i++] = ' ' );
3359  strncpy( short_descr, info.short_descr, ( size_t ) short_descr_len );
3360  for ( i = ( int ) strlen( info.short_descr ); i < short_descr_len;
3361  short_descr[i++] = ' ' );
3362 
3363  *count = ( int ) info.count;
3364 
3365  int note_len=0;
3366 
3367  strncpy( event_note, info.note, ( size_t ) event_note_len );
3368  note_len=strlen(info.note);
3369 
3370  for ( i = note_len; i < event_note_len;
3371  event_note[i++] = ' ' );
3372  }
3373 # 766 "papi_fwrappers.c"
3374 }
3375 # 779 "papi_fwrappers.c"
3376 void PAPIF_EVENT_CODE_TO_NAME ( int *EventCode, char *out_str, int *check, int out_len )
3377 
3378 
3379 
3380 
3381 
3382 {
3383 
3384  char tmp[128];
3385  int i;
3386  *check = PAPI_event_code_to_name( *EventCode, tmp );
3387 
3388  strncpy( out_str, tmp, ( size_t ) out_len );
3389 
3390  for ( i = ( int ) strlen( tmp ); i < out_len; out_str[i++] = ' ' );
3391 
3392 
3393 
3394 
3395 }
3396 # 811 "papi_fwrappers.c"
3397 void PAPIF_EVENT_NAME_TO_CODE ( char *in_str, int *out, int *check, int in_len )
3398 
3399 
3400 
3401 
3402 
3403 {
3404 
3405  int slen, i;
3406  char tmpin[128];
3407 
3408 
3409  slen = in_len < 128 ? in_len : 128;
3410  strncpy( tmpin, in_str, ( size_t ) slen );
3411 
3412 
3413  for ( i = slen - 1; i > -1 && tmpin[i] == ' '; tmpin[i--] = '\0' );
3414 
3415 
3416  tmpin[128 - 1] = '\0';
3417  if ( slen < 128 )
3418  tmpin[slen] = '\0';
3419 
3420  *check = PAPI_event_name_to_code( tmpin, out );
3421 
3422 
3423 
3424 
3425 }
3426 # 851 "papi_fwrappers.c"
3427 void PAPIF_NUM_EVENTS ( int *EventCode, int *count )
3428 {
3429  *count = PAPI_num_events( *EventCode );
3430 }
3431 # 866 "papi_fwrappers.c"
3432 void PAPIF_ENUM_EVENT ( int *EventCode, int *modifier, int *check )
3433 
3434 {
3435  *check = PAPI_enum_event( EventCode, *modifier );
3436 }
3437 # 882 "papi_fwrappers.c"
3438 void PAPIF_READ ( int *EventSet, long long *values, int *check )
3439 
3440 {
3441  *check = PAPI_read( *EventSet, values );
3442 }
3443 # 898 "papi_fwrappers.c"
3444 void PAPIF_READ_TS ( int *EventSet, long long *values, long long *cycles, int *check )
3445 
3446 {
3447  *check = PAPI_read_ts( *EventSet, values, cycles );
3448 }
3449 # 914 "papi_fwrappers.c"
3450 void PAPIF_REMOVE_EVENT ( int *EventSet, int *Event, int *check )
3451 
3452 {
3454 }
3455 # 931 "papi_fwrappers.c"
3456 void PAPIF_REMOVE_NAMED_EVENT ( int *EventSet, char *EventName, int *check, int Event_len )
3457 
3458 {
3459  char tmp[128];
3460  Fortran2cstring( tmp, EventName, 128, Event_len );
3462 }
3463 # 956 "papi_fwrappers.c"
3464 void PAPIF_REMOVE_EVENTS ( int *EventSet, int *Events, int *number, int *check )
3465 
3466 {
3467  *check = PAPI_remove_events( *EventSet, Events, *number );
3468 }
3469 # 972 "papi_fwrappers.c"
3470 void PAPIF_RESET ( int *EventSet, int *check )
3471 {
3472  *check = PAPI_reset( *EventSet );
3473 }
3474 # 987 "papi_fwrappers.c"
3475 void PAPIF_SET_DEBUG ( int *debug, int *check )
3476 {
3477  *check = PAPI_set_debug( *debug );
3478 }
3479 # 1002 "papi_fwrappers.c"
3480 void PAPIF_SET_DOMAIN ( int *domain, int *check )
3481 {
3482  *check = PAPI_set_domain( *domain );
3483 }
3484 # 1017 "papi_fwrappers.c"
3485 void PAPIF_SET_CMP_DOMAIN ( int *domain, int *cidx, int *check )
3486 
3487 {
3488  *check = PAPI_set_cmp_domain( *domain, *cidx );
3489 }
3490 # 1033 "papi_fwrappers.c"
3491 void PAPIF_SET_GRANULARITY ( int *granularity, int *check )
3492 
3493 {
3494  *check = PAPI_set_granularity( *granularity );
3495 }
3496 # 1049 "papi_fwrappers.c"
3497 void PAPIF_SET_CMP_GRANULARITY ( int *granularity, int *cidx, int *check )
3498 
3499 {
3500  *check = PAPI_set_cmp_granularity( *granularity, *cidx );
3501 }
3502 # 1065 "papi_fwrappers.c"
3503 void PAPIF_SHUTDOWN ( void )
3504 {
3505  PAPI_shutdown( );
3506 }
3507 # 1080 "papi_fwrappers.c"
3508 void PAPIF_START ( int *EventSet, int *check )
3509 {
3510  *check = PAPI_start( *EventSet );
3511 }
3512 # 1095 "papi_fwrappers.c"
3513 void PAPIF_STATE ( int *EventSet, int *status, int *check )
3514 
3515 {
3516  *check = PAPI_state( *EventSet, status );
3517 }
3518 # 1111 "papi_fwrappers.c"
3519 void PAPIF_STOP ( int *EventSet, long long *values, int *check )
3520 
3521 {
3522  *check = PAPI_stop( *EventSet, values );
3523 }
3524 # 1127 "papi_fwrappers.c"
3525 void PAPIF_WRITE ( int *EventSet, long long *values, int *check )
3526 
3527 {
3528  *check = PAPI_write( *EventSet, values );
3529 }
3530 # 1143 "papi_fwrappers.c"
3531 void PAPIF_LOCK ( int *lock, int *check )
3532 
3533 {
3534  *check = PAPI_lock( *lock );
3535 }
3536 # 1159 "papi_fwrappers.c"
3537 void PAPIF_unlock ( int *lock, int *check )
3538 
3539 {
3540  *check = PAPI_unlock( *lock );
3541 }
3542 # 1177 "papi_fwrappers.c"
3543 void PAPIF_START_COUNTERS ( int *events, int *array_len, int *check )
3544 
3545 {
3546  *check = PAPI_start_counters( events, *array_len );
3547 }
3548 # 1193 "papi_fwrappers.c"
3549 void PAPIF_READ_COUNTERS ( long long *values, int *array_len, int *check )
3550 
3551 {
3552  *check = PAPI_read_counters( values, *array_len );
3553 }
3554 # 1209 "papi_fwrappers.c"
3555 void PAPIF_STOP_COUNTERS ( long long *values, int *array_len, int *check )
3556 
3557 {
3558  *check = PAPI_stop_counters( values, *array_len );
3559 }
3560 # 1225 "papi_fwrappers.c"
3561 void PAPIF_ACCUM_COUNTERS ( long long *values, int *array_len, int *check )
3562 
3563 {
3564  *check = PAPI_accum_counters( values, *array_len );
3565 }
3566 # 1241 "papi_fwrappers.c"
3568 {
3570 }
3571 # 1256 "papi_fwrappers.c"
3572 void PAPIF_IPC ( float *rtime, float *ptime, long long *ins, float *ipc, int *check )
3573 
3574 
3575 {
3576  *check = PAPI_ipc( rtime, ptime, ins, ipc );
3577 }
3578 # 1273 "papi_fwrappers.c"
3579 void PAPIF_EPC ( int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc, int *check)
3580 
3581 
3582 
3583 {
3584  *check = PAPI_epc( event, rtime, ptime, ref, core, evt, epc );
3585 }
3586 # 1291 "papi_fwrappers.c"
3587 void PAPIF_FLIPS ( float *real_time, float *proc_time, long long *flpins, float *mflips, int *check )
3588 
3589 
3590 {
3591  *check = PAPI_flips( real_time, proc_time, flpins, mflips );
3592 }
3593 # 1308 "papi_fwrappers.c"
3594 void PAPIF_FLOPS ( float *real_time, float *proc_time, long long *flpops, float *mflops, int *check )
3595 
3596 
3597 {
3598  *check = PAPI_flops( real_time, proc_time, flpops, mflops );
3599 }
3600 # 1330 "papi_fwrappers.c"
3601 void PAPIF_GET_CLOCKRATE ( int *cr )
3602 {
3603  *cr = PAPI_get_opt( 14, (PAPI_option_t *)
3604 # 1332 "papi_fwrappers.c" 3 4
3605  ((void *)0)
3606 # 1332 "papi_fwrappers.c"
3607  );
3608 }
3609 # 1348 "papi_fwrappers.c"
3610 void PAPIF_GET_PRELOAD ( char *lib_preload_env, int *check, int lib_preload_env_len )
3611 
3612 
3613 
3614 
3615 
3616 {
3617  PAPI_option_t p;
3618 
3619  int i;
3620 
3621  if ( ( *check = PAPI_get_opt( 13, &p ) ) == 0 ) {
3622  strncpy( lib_preload_env, p.preload.lib_preload_env,
3623  ( size_t ) lib_preload_env_len );
3624  for ( i = ( int ) strlen( p.preload.lib_preload_env );
3625  i < lib_preload_env_len; lib_preload_env[i++] = ' ' );
3626  }
3627 
3628 
3629 
3630 
3631 
3632 }
3633 # 1382 "papi_fwrappers.c"
3634 void PAPIF_GET_GRANULARITY ( int *eventset, int *granularity, int *mode, int *check )
3635 
3636 {
3637  PAPI_option_t g;
3638 
3639  if ( *mode == 6 ) {
3640  *granularity = PAPI_get_opt( *mode, &g );
3641  *check = 0;
3642  } else if ( *mode == 7 ) {
3643  g.granularity.eventset = *eventset;
3644  if ( ( *check = PAPI_get_opt( *mode, &g ) ) == 0 ) {
3645  *granularity = g.granularity.granularity;
3646  }
3647  } else {
3648  *check = -1;
3649  }
3650 }
3651 # 1410 "papi_fwrappers.c"
3652 void PAPIF_GET_DOMAIN ( int *eventset, int *domain, int *mode, int *check )
3653 
3654 {
3655  PAPI_option_t d;
3656 
3657  if ( *mode == 4 ) {
3658  *domain = PAPI_get_opt( *mode, (PAPI_option_t *)
3659 # 1416 "papi_fwrappers.c" 3 4
3660  ((void *)0)
3661 # 1416 "papi_fwrappers.c"
3662  );
3663  *check = 0;
3664  } else if ( *mode == 5 ) {
3665  d.domain.eventset = *eventset;
3666  if ( ( *check = PAPI_get_opt( *mode, &d ) ) == 0 ) {
3667  *domain = d.domain.domain;
3668  }
3669  } else {
3670  *check = -1;
3671  }
3672 }
3673 # 1450 "papi_fwrappers.c"
3674 void PAPIF_SET_EVENT_DOMAIN ( int *es, int *domain, int *check )
3675 
3676 {
3677  PAPI_option_t d;
3678 
3679  d.domain.domain = *domain;
3680  d.domain.eventset = *es;
3681  *check = PAPI_set_opt( 5, &d );
3682 }
3683 # 1470 "papi_fwrappers.c"
3684 void PAPIF_SET_INHERIT ( int *inherit, int *check )
3685 {
3686  PAPI_option_t i;
3687 
3688  i.inherit.inherit = *inherit;
3689  *check = PAPI_set_opt( 28, &i );
3690 }
3691 
3692 #pragma GCC visibility pop
i inherit inherit
void PAPIF_FLOPS(float *real_time, float *proc_time, long long *flpops, float *mflops, int *check)
long int __time_t
void PAPIF_GET_REAL_CYC(long long *real_cyc)
char * __caddr_t
unsigned int count
Definition: papi.h:988
__ssize_t __io_read_fn(void *__cookie, char *__buf, size_t __nbytes)
int siginterrupt(int __sig, int __interrupt) __attribute__((__nothrow__
int PAPI_stop(int EventSet, long long *values)
Definition: papi.c:2314
int __clockid_t
void PAPIF_WRITE(int *EventSet, long long *values, int *check)
void PAPIF_ADD_NAMED_EVENT(int *EventSet, char *EventName, int *check, int Event_len)
int PAPI_is_initialized(void)
Definition: papi.c:6463
unsigned int __id_t
int _IO_getc(_IO_FILE *__fp)
void PAPIF_SHUTDOWN(void)
static const char * name
Definition: fork_overflow.c:31
long int __blkcnt64_t
signed long int __int64_t
const PAPI_component_info_t * PAPI_get_component_info(int cidx)
Definition: papi.c:796
void PAPIF_THREAD_ID(unsigned long *id)
unsigned long int __nlink_t
void PAPIF_SET_DOMAIN(int *domain, int *check)
void psignal(int __sig, const char *__s)
long unsigned int size_t
static __inline __uint64_t __bswap_64(__uint64_t __bsx)
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream)
Definition: appio.c:387
int PAPI_add_event(int EventSet, int Event)
Definition: papi.c:1663
Hardware info structure.
Definition: papi.h:781
static void Fortran2cstring(char *cstring, char *Fstring, int clen, int Flen)
long long PAPI_get_virt_usec(void)
Definition: papi.c:6372
int PAPI_set_cmp_granularity(int granularity, int cidx)
Definition: papi.c:5622
struct __pthread_cond_s::@25::@29 __wseq32
int PAPI_reset(int EventSet)
Definition: papi.c:2459
__uint64_t rbx
__uint64_t rsp
static int numevents
Definition: kufrin.c:22
unsigned char __u_char
__uint64_t r8
unsigned long int pthread_t
int __key_t
__uint64_t __reserved1[8]
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)
__uint64_t rdp
long int __clock_t
unsigned short int significand[4]
__time_t tv_sec
struct __locale_struct * __locale_t
long int __ssize_t
unsigned int __wrefs
const PAPI_shlib_info_t * PAPI_get_shared_lib_info(void)
Definition: papi.c:6144
int __uflow(_IO_FILE *)
__codecvt_result
unsigned int __g_signals[2]
caddr_t text_end
Definition: papi.h:699
int PAPI_disable_component_by_name(const char *name)
Definition: papi.c:6717
unsigned int __u_int
char * _IO_backup_base
static int Events[NUM_EVENTS]
Definition: init_fini.c:8
void PAPIF_GET_CLOCKRATE(int *cr)
unsigned long PAPI_thread_id(void)
Definition: papi.c:162
int PAPI_write(int EventSet, long long *values)
Definition: papi.c:2813
void _IO_flockfile(_IO_FILE *)
void PAPIF_GET_PRELOAD(char *lib_preload_env, int *check, int lib_preload_env_len)
char * caddr_t
void PAPIF_IS_INITIALIZED(int *level)
int PAPI_ipc(float *rtime, float *ptime, long long *ins, float *ipc)
Definition: papi_hl.c:320
int PAPI_remove_event(int EventSet, int EventCode)
Definition: papi.c:1758
long int __syscall_slong_t
unsigned int __low
struct ucontext_t * uc_link
int __key_t
long long PAPI_get_virt_cyc(void)
Definition: papi.c:6300
void PAPIF_GET_REAL_USEC(long long *time)
void bzero()
int __sig_atomic_t
unsigned long int __fsblkcnt_t
unsigned short int __u_short
long int __off_t
long int __quad_t
__uint16_t fop
unsigned short exponent
long int __blkcnt_t
void PAPIF_REMOVE_NAMED_EVENT(int *EventSet, char *EventName, int *check, int Event_len)
unsigned long int __u_quad_t
off64_t offset
Definition: iozone.c:1279
int pthread_once_t
int PAPI_flops(float *rtime, float *ptime, long long *flpops, float *mflops)
Definition: papi_hl.c:263
void PAPIF_GET_DMEM_INFO(long long *dest, int *check)
unsigned int __uint32_t
void PAPIF_LOCK(int *lock, int *check)
unsigned long int __dev_t
long int __suseconds_t
int PAPI_accum_counters(long long *values, int array_len)
Definition: papi_hl.c:760
void PAPIF_num_hwctrs(int *num)
unsigned short __pad0
int __sig_atomic_t
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)
int PAPI_num_components(void)
Definition: papi.c:4387
void PAPIF_STATE(int *EventSet, int *status, int *check)
unsigned int gnu_dev_major(__dev_t __dev) __attribute__((__nothrow__
unsigned short exponent
signed short int __int16_t
_IO_lock_t * _lock
__uint64_t __glibc_reserved2[5]
__uint32_t __glibc_reserved1[7]
static double array[ARRAYSIZE]
Definition: papi_l1_dca.c:23
int PAPI_enum_event(int *EventCode, int modifier)
Definition: papi.c:1152
void * __pad4
int sigsetmask(int __mask) __attribute__((__nothrow__
PAPI_granularity_option_t granularity
Definition: papi.h:854
__uint32_t element[4]
void PAPIF_UNREGISTER_THREAD(int *check)
void PAPIF_START_COUNTERS(int *events, int *array_len, int *check)
int PAPI_detach(int EventSet)
Definition: papi.c:3258
long int __off64_t
long int __fd_mask
unsigned long int __dev_t
signed char __int8_t
char long_descr[PAPI_HUGE_STR_LEN]
Definition: papi.h:970
int EventSet
int sigaction(int __sig, const struct sigaction *__restrict __act, struct sigaction *__restrict __oact) __attribute__((__nothrow__
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
Definition: appio.c:275
get the executable's info
Definition: papi.h:708
unsigned int pthread_key_t
int PAPI_register_thread(void)
Definition: papi.c:208
__uint64_t xstate_bv
volatile int pthread_spinlock_t
int sigpending(sigset_t *__set) __attribute__((__nothrow__
void PAPIF_GET_GRANULARITY(int *eventset, int *granularity, int *mode, int *check)
caddr_t bss_start
Definition: papi.h:702
__uint32_t __glibc_reserved1[24]
__uint16_t ftw
void * __timer_t
int __pid_t
int PAPI_event_name_to_code(const char *in, int *out)
Definition: papi.c:1004
__sighandler_t signal(int __sig, __sighandler_t __handler) __attribute__((__nothrow__
int PAPI_overflow(int EventSet, int EventCode, int threshold, int flags, PAPI_overflow_handler_t handler)
Definition: papi.c:4788
A pointer to the following is passed to PAPI_set/get_opt()
Definition: papi.h:849
void * __pad1
static struct timeval start
char units[MAX_EVENTS][BUFSIZ]
Definition: powercap_plot.c:15
int PAPI_remove_events(int EventSet, int *Events, int number)
Definition: papi.c:5931
int __daddr_t
long long PAPI_get_virt_nsec(void)
Definition: papi.c:6330
unsigned long int __fsfilcnt64_t
int sigblock(int __mask) __attribute__((__nothrow__
int PAPI_sprofil(PAPI_sprofil_t *prof, int profcnt, int EventSet, int EventCode, int threshold, int flags)
Definition: papi.c:5044
__uint64_t r14
void PAPIF_FLIPS(float *real_time, float *proc_time, long long *flpins, float *mflips, int *check)
int sigqueue(__pid_t __pid, int __sig, const union sigval __val) __attribute__((__nothrow__
unsigned short __glibc_reserved1[3]
struct _xsave_hdr xstate_hdr
int kill(__pid_t __pid, int __sig) __attribute__((__nothrow__
unsigned short significand[4]
unsigned short gs
int PAPI_set_opt(int option, PAPI_option_t *ptr)
Definition: papi.c:3465
int __overflow(_IO_FILE *, int)
int PAPI_add_events(int EventSet, int *Events, int number)
Definition: papi.c:5843
int __daddr_t
__uint32_t magic1
unsigned short int exponent
void PAPIF_STOP_COUNTERS(long long *values, int *array_len, int *check)
stack_t uc_stack
void PAPIF_READ(int *EventSet, long long *values, int *check)
int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, __sigset_t *__restrict __oldmask) __attribute__((__nothrow__
double tmp
char * _IO_write_base
void PAPIF_ASSIGN_EVENTSET_COMPONENT(int *EventSet, int *cidx, int *check)
long int __blkcnt_t
* check
int num_native_events
char * _IO_read_end
__uint32_t element[4]
int PAPI_get_event_info(int EventCode, PAPI_event_info_t *info)
Definition: papi.c:835
int sigprocmask(int __how, const sigset_t *__restrict __set, sigset_t *__restrict __oset) __attribute__((__nothrow__
int PAPI_thread_init(unsigned long(*id_fn)(void))
void PAPIF_LIST_EVENTS(int *EventSet, int *Events, int *number, int *check)
unsigned long int __fsblkcnt64_t
void PAPIF_SET_INHERIT(int *inherit, int *check)
char * _IO_save_end
int PAPI_add_named_event(int EventSet, const char *EventName)
Definition: papi.c:1876
char events[MAX_EVENTS][BUFSIZ]
int multiplex(void)
Definition: multiplex.c:35
__uint64_t trapno
__uint64_t r9
static __inline __uint64_t __uint64_identity(__uint64_t __x)
char * _IO_read_base
__suseconds_t suseconds_t
int PAPI_set_cmp_domain(int domain, int cidx)
Definition: papi.c:5758
__sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) __attribute__((__nothrow__
__uint64_t rdi
void * __pad2
int PAPI_disable_component(int cidx)
Definition: papi.c:6666
signed long int __int64_t
int PAPI_flips(float *rtime, float *ptime, long long *flpins, float *mflips)
Definition: papi_hl.c:204
void(* PAPI_overflow_handler_t)(int EventSet, void *address, long long overflow_vector, void *context)
int PAPI_epc(int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc)
Definition: papi_hl.c:387
unsigned short _cur_column
int int sigwaitinfo(const sigset_t *__restrict __set, siginfo_t *__restrict __info) __attribute__((__nonnull__(1)))
int PAPI_num_cmp_hwctrs(int cidx)
Definition: papi.c:3965
void PAPIF_REMOVE_EVENTS(int *EventSet, int *Events, int *number, int *check)
int PAPI_get_thr_specific(int tag, void **ptr)
Definition: papi.c:362
int PAPI_accum(int EventSet, long long *values)
Definition: papi.c:2745
unsigned int __u_int
void PAPIF_NUM_COUNTERS(int *numevents)
static __inline __uint16_t __uint16_identity(__uint16_t __x)
static struct counter_info * event_info
__uint64_t __fpstate_word
__syscall_slong_t tv_nsec
void PAPIF_EVENT_CODE_TO_NAME(int *EventCode, char *out_str, int *check, int out_len)
static int cidx
long int __quad_t
__pthread_list_t __list
unsigned long int __rlim_t
struct _IO_FILE_plus _IO_2_1_stdout_
size_t __pad5
unsigned long int __nlink_t
unsigned long int __uintmax_t
int PAPI_library_init(int version)
Definition: papi.c:500
mcontext_t uc_mcontext
int PAPI_profil(void *buf, unsigned bufsiz, caddr_t offset, unsigned scale, int EventSet, int EventCode, int threshold, int flags)
Definition: papi.c:5438
int sigaltstack(const stack_t *__restrict __ss, stack_t *__restrict __oss) __attribute__((__nothrow__
char * _IO_buf_end
long long debug
Definition: iozone.c:1374
float revision
Definition: papi.h:792
unsigned int __g_refs[2]
__uint64_t rax
void PAPIF_num_cmp_hwctrs(int *cidx, int *num)
__uint64_t r10
void PAPIF_SET_EVENT_DOMAIN(int *es, int *domain, int *check)
int siggetmask(void)
int PAPI_stop_counters(long long *values, int array_len)
Definition: papi_hl.c:807
__blkcnt_t blkcnt_t
A pointer to the following is passed to PAPI_get_dmem_info()
Definition: papi.h:872
void PAPIF_GET_REAL_NSEC(long long *time)
void PAPI_shutdown(void)
Definition: papi.c:4461
long int __ssize_t
int PAPI_get_cmp_opt(int option, PAPI_option_t *ptr, int cidx)
Definition: papi.c:4335
void PAPIF_READ_COUNTERS(long long *values, int *array_len, int *check)
const PAPI_exe_info_t * PAPI_get_executable_info(void)
Definition: papi.c:6114
int(* PAPI_debug_handler_t)(int code)
int PAPI_num_events(int EventSet)
Definition: papi.c:4426
int PAPI_get_opt(int option, PAPI_option_t *ptr)
Definition: papi.c:4143
long long page_size
Definition: iozone.c:428
long int __off_t
__dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) __attribute__((__nothrow__
caddr_t text_start
Definition: papi.h:698
__fsfilcnt_t fsfilcnt_t
int PAPI_get_component_index(const char *name)
Definition: papi.c:6610
struct _libc_xmmreg _xmm[16]
int sigreturn(struct sigcontext *__scp) __attribute__((__nothrow__
PAPI_address_map_t address_info
Definition: papi.h:710
char symbol[PAPI_HUGE_STR_LEN]
Definition: papi.h:967
void PAPIF_ADD_EVENTS(int *EventSet, int *Events, int *number, int *check)
int __io_seek_fn(void *__cookie, __off64_t *__pos, int __w)
unsigned long int __u_quad_t
int __pid_t
void PAPIF_GET_MULTIPLEX(int *EventSet, int *check)
int PAPI_state(int EventSet, int *status)
Definition: papi.c:3053
char model_string[PAPI_MAX_STR_LEN]
Definition: papi.h:791
__uint32_t ymmh_space[64]
int PAPI_query_named_event(const char *EventName)
Definition: papi.c:756
get the executable's address space info
Definition: papi.h:696
signed char __int8_t
__extension__ typedef long long int greg_t
void PAPIF_ACCUM_COUNTERS(long long *values, int *array_len, int *check)
__uint64_t r12
void PAPIF_THREAD_INIT(unsigned long int(*handle)(void), int *check)
void PAPIF_unlock(int *lock, int *check)
unsigned int __uid_t
__uint64_t cr2
long int __intptr_t
PAPI_exe_info_t * exe_info
Definition: papi.h:864
unsigned char __uint8_t
__uint32_t xstate_size
__uint64_t r13
char * PAPI_user_defined_events_file_t
__uint16_t swd
void psiginfo(const siginfo_t *__pinfo, const char *__s)
PAPI_all_thr_spec_t
greg_t gregset_t[23]
int _IO_feof(_IO_FILE *__fp) __attribute__((__nothrow__
int nnodes
Definition: papi.h:786
unsigned int __high
unsigned int __nusers
unsigned long int __fsfilcnt_t
static int Event[MAX_EVENTS]
void PAPIF_NUM_EVENTS(int *EventCode, int *count)
struct _libc_fpxreg _st[8]
int PAPI_set_granularity(int granularity)
Definition: papi.c:5557
__uint64_t r11
unsigned int __mode_t
__uint64_t rbp
unsigned short significand[4]
__fsblkcnt_t fsblkcnt_t
address range specification for range restricted counting if both are zero, range is disabled
Definition: papi.h:837
int __io_close_fn(void *__cookie)
unsigned long int uc_flags
void PAPIF_REMOVE_EVENT(int *EventSet, int *Event, int *check)
unsigned long int __ino_t
__uint64_t xstate_bv
struct _fpstate * fpstate
int PAPI_num_hwctrs(void)
Definition: papi.c:3909
char short_descr[PAPI_MIN_STR_LEN]
Definition: papi.h:968
__sigval_t sigval_t
int PAPI_enum_cmp_event(int *EventCode, int modifier, int cidx)
Definition: papi.c:1357
void PAPIF_GET_DOMAIN(int *eventset, int *domain, int *mode, int *check)
__uint32_t mxcr_mask
mh for mem hierarchy maybe?
Definition: papi.h:774
unsigned short int __glibc_reserved1[3]
unsigned uint
Definition: perfmon.c:40
__extension__ unsigned long long int __wseq
void PAPIF_QUERY_EVENT(int *EventCode, int *check)
void PAPIF_DESTROY_EVENTSET(int *EventSet, int *check)
char _unused2[15 *sizeof(int) - 4 *sizeof(void *) - sizeof(size_t)]
struct __pthread_cond_s::@27::@30 __g1_start32
struct _libc_fpstate __fpregs_mem
unsigned short int __u_short
void handler(int EventSet, void *address, long long overflow_vector, void *context)
Definition: rapl_overflow.c:20
unsigned long int __pad2
int sigtimedwait(const sigset_t *__restrict __set, siginfo_t *__restrict __info, const struct timespec *__restrict __timeout) __attribute__((__nonnull__(1)))
int PAPI_cleanup_eventset(int EventSet)
Definition: papi.c:2890
void PAPIF_CREATE_EVENTSET(int *EventSet, int *check)
int PAPI_assign_eventset_component(int EventSet, int cidx)
Definition: papi.c:1526
static __inline __uint32_t __uint32_identity(__uint32_t __x)
char version[]
Definition: fileop.c:134
int PAPI_create_eventset(int *EventSet)
Definition: papi.c:1464
unsigned long int __ino_t
long int __clock_t
unsigned int __uint32_t
__uint64_t rcx
int PAPI_event_code_to_name(int EventCode, char *out)
Definition: papi.c:915
atomic_p lock[]
Definition: aix.c:25
signed int __int32_t
void PAPIF_REGISTER_THREAD(int *check)
char * _IO_write_end
static int threshold
signed int __int32_t
unsigned short fs
void PAPIF_QUERY_NAMED_EVENT(char *EventName, int *check, int Event_len)
unsigned int __gid_t
int pthread_kill(pthread_t __threadid, int __signo) __attribute__((__nothrow__
char vendor_string[PAPI_MAX_STR_LEN]
Definition: papi.h:789
__off64_t __loff_t
struct _IO_marker * _markers
void * sival_ptr
int PAPI_get_dmem_info(PAPI_dmem_info_t *dest)
Definition: papi.c:6063
__time_t tv_sec
int sigstack(struct sigstack *__ss, struct sigstack *__oss) __attribute__((__nothrow__
int gsignal(int __sig) __attribute__((__nothrow__
unsigned short cs
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)
caddr_t data_start
Definition: papi.h:700
int PAPI_query_event(int EventCode)
Definition: papi.c:684
int PAPI_get_overflow_event_index(int Eventset, long long overflow_vector, int *array, int *number)
Definition: papi.c:6517
struct _fpxreg _st[8]
int PAPI_multiplex_init(void)
Definition: papi.c:2982
void PAPIF_SET_MULTIPLEX(int *EventSet, int *check)
__uint64_t eflags
void PAPIF_MULTIPLEX_INIT(int *check)
int vendor
Definition: papi.h:788
__uint64_t __glibc_reserved1[2]
__uint16_t cwd
unsigned long int __u_long
void PAPIF_GET_VIRT_USEC(long long *time)
unsigned int __gid_t
int PAPI_read_ts(int EventSet, long long *values, long long *cyc)
Definition: papi.c:2648
__uint64_t rip
unsigned int gnu_dev_minor(__dev_t __dev) __attribute__((__nothrow__
void PAPIF_SET_GRANULARITY(int *granularity, int *check)
void PAPIF_SET_CMP_GRANULARITY(int *granularity, int *cidx, int *check)
long long PAPI_get_real_usec(void)
Definition: papi.c:6264
void PAPIF_SET_DEBUG(int *debug, int *check)
__suseconds_t tv_usec
int __clockid_t
int PAPI_unregister_thread(void)
Definition: papi.c:244
int __leaf__ __attribute__((__pure__))
char * _IO_write_ptr
__sigset_t sigset_t
int model
Definition: papi.h:790
__off64_t _offset
unsigned int __useconds_t
int PAPI_set_thr_specific(int tag, void *ptr)
Definition: papi.c:438
__uint32_t __glibc_reserved1[24]
char * PAPI_strerror(int)
Definition: papi.c:4603
unsigned long int __syscall_ulong_t
__sig_atomic_t sig_atomic_t
unsigned long int pthread_t
__off64_t __loff_t
static char stack[2 *PAPI_HUGE_STR_LEN]
Definition: papi_preset.c:791
long long status
Definition: iozone.c:1335
long int __blksize_t
struct _IO_FILE_plus _IO_2_1_stderr_
struct _fpstate fpstate
char * __caddr_t
int _IO_peekc_locked(_IO_FILE *__fp)
__uint64_t err
int PAPI_unlock(int)
Definition: papi.c:6421
int cpu_max_mhz
Definition: papi.h:797
int PAPI_read_counters(long long *values, int array_len)
Definition: papi_hl.c:710
__sighandler_t ssignal(int __sig, __sighandler_t __handler) __attribute__((__nothrow__
__extension__ unsigned long long int __g1_start
unsigned int __uid_t
long long PAPI_get_real_nsec(void)
Definition: papi.c:6237
__uint32_t mxcr_mask
caddr_t bss_end
Definition: papi.h:703
unsigned int __count
const char *const _sys_siglist[(64+1)]
struct _IO_FILE_plus _IO_2_1_stdin_
struct _IO_FILE * _chain
int PAPI_num_counters(void)
Definition: papi_hl.c:541
void PAPIF_SET_CMP_DOMAIN(int *domain, int *cidx, int *check)
int PAPI_start_counters(int *events, int array_len)
Definition: papi_hl.c:597
struct _ymmh_state ymmh
void PAPIF_START(int *EventSet, int *check)
unsigned int __socklen_t
__uint64_t rsi
int data_type[MAX_EVENTS]
Definition: powercap_plot.c:16
caddr_t data_end
Definition: papi.h:701
void PAPIF_ADD_EVENT(int *EventSet, int *Event, int *check)
void _IO_lock_t
unsigned short int __uint16_t
signed char _vtable_offset
int PAPI_set_multiplex(int EventSet)
Definition: papi.c:3333
void * __timer_t
void * __pad3
unsigned long PAPI_thread_id_t
Definition: papi.h:558
long int __time_t
__uint32_t extended_size
void PAPIF_RESET(int *EventSet, int *check)
int totalcpus
Definition: papi.h:787
int PAPI_destroy_eventset(int *EventSet)
Definition: papi.c:2014
int _IO_putc(int __c, _IO_FILE *__fp)
void PAPIF_EPC(int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc, int *check)
int PAPI_remove_named_event(int EventSet, const char *EventName)
Definition: papi.c:1961
PAPI_domain_option_t domain
Definition: papi.h:856
unsigned long int __uint64_t
int PAPI_set_domain(int domain)
Definition: papi.c:5688
__uint32_t mxcsr
unsigned int __g_size[2]
char * caddr_t
long int __suseconds_t
struct _IO_marker * _next
int PAPI_attach(int EventSet, unsigned long tid)
Definition: papi.c:3201
__off_t _old_offset
long int __fsword_t
unsigned long int __fsfilcnt_t
static int attach(hwd_control_state_t *ctl, unsigned long tid)
Definition: perfctr.c:242
long long PAPI_get_real_cyc(void)
Definition: papi.c:6217
int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1)))
long int __intmax_t
int PAPI_read(int EventSet, long long *values)
Definition: papi.c:2559
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)
__uint32_t mxcsr
const char *const sys_siglist[(64+1)]
int killpg(__pid_t __pgrp, int __sig) __attribute__((__nothrow__
char fullname[PAPI_HUGE_STR_LEN]
Definition: papi.h:709
int PAPI_start(int EventSet)
Definition: papi.c:2096
__blksize_t blksize_t
PAPI_preload_info_t preload
Definition: papi.h:851
__builtin_va_list __gnuc_va_list
unsigned int __mode_t
int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) __attribute__((__nonnull__(1
char * _IO_save_base
void PAPI_perror(const char *msg)
Definition: papi.c:4653
unsigned short int __uint16_t
char lib_preload_env[PAPI_MAX_STR_LEN]
Definition: papi.h:622
int __libc_current_sigrtmin(void)
signed short int __int16_t
int __underflow(_IO_FILE *)
void PAPIF_EVENT_NAME_TO_CODE(char *in_str, int *out, int *check, int in_len)
int PAPI_get_multiplex(int EventSet)
Definition: papi.c:4028
unsigned char __u_char
const PAPI_hw_info_t * PAPI_get_hardware_info(void)
Definition: papi.c:6185
static long long values[NUM_EVENTS]
Definition: init_fini.c:10
int PAPI_lock(int)
Definition: papi.c:6401
unsigned int __g1_orig_size
__locale_t locale_t
struct _IO_FILE * _sbuf
__builtin_va_list __gnuc_va_list
unsigned long int __uint64_t
static const PAPI_hw_info_t * hw_info
Definition: byte_profile.c:28
long int __off64_t
int select(int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout)
long int __fd_mask
unsigned int __id_t
int strcoll_l(const char *__s1, const char *__s2, locale_t __l) __attribute__((__nothrow__
void PAPIF_READ_TS(int *EventSet, long long *values, long long *cycles, int *check)
volatile int buf[CACHE_FLUSH_BUFFER_SIZE_INTS]
Definition: do_loops.c:12
sigset_t uc_sigmask
__uint64_t rip
void(* __sighandler_t)(int)
char note[PAPI_HUGE_STR_LEN]
Definition: papi.h:1014
int PAPI_list_threads(unsigned long *tids, int *number)
Definition: papi.c:286
void PAPIF_IPC(float *rtime, float *ptime, long long *ins, float *ipc, int *check)
struct _xmmreg _xmm[16]
unsigned long int __ino64_t
__ssize_t __io_write_fn(void *__cookie, const char *__buf, size_t __n)
__uint64_t rdx
int PAPI_get_event_component(int EventCode)
Definition: papi.c:6583
char * PAPI_user_defined_events_file_t
Definition: papi.h:720
long int __syscall_slong_t
char * _IO_read_ptr
int PAPI_set_debug(int level)
Definition: papi.c:3126
__uint64_t r15
__locale_t locale_t
setvbuf(file, file_buf, _IOFBF, sizeof(file_buf))
unsigned long int __fsblkcnt_t
unsigned long int __rlim64_t
void PAPIF_PERROR(char *message, int message_len)
char name[PAPI_HUGE_STR_LEN]
Definition: papi.h:697
static long count
int __leaf__
void _IO_lock_t
void PAPIF_CLEANUP_EVENTSET(int *EventSet, int *check)
void PAPIF_LIBRARY_INIT(int *check)
char * _IO_buf_base
void PAPIF_GET_VIRT_CYC(long long *virt_cyc)
void PAPIF_ENUM_EVENT(int *EventCode, int *modifier, int *check)
int _IO_ferror(_IO_FILE *__fp) __attribute__((__nothrow__
int i
Definition: fileop.c:140
int PAPI_list_events(int EventSet, int *Events, int *number)
Definition: papi.c:6001
void PAPIF_STOP(int *EventSet, long long *values, int *check)
__fd_mask fd_mask
__uint64_t oldmask
int ncpu
Definition: papi.h:782
int PAPI_get_eventset_component(int EventSet)
Definition: papi.c:1569
long int __blksize_t
unsigned long int __u_long
struct __locale_struct * __locale_t
void PAPIF_UNREGSTER_THREAD(int *check)
char _shortbuf[1]
void PAPIF_ACCUM(int *EventSet, long long *values, int *check)