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