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