|
PAPI
5.3.0.0
|
00001 # 1 "papi_fwrappers.c" 00002 # 1 "<command-line>" 00003 # 1 "/usr/include/stdc-predef.h" 1 3 4 00004 # 1 "<command-line>" 2 00005 # 1 "papi_fwrappers.c" 00006 # 22 "papi_fwrappers.c" 00007 # 1 "/usr/include/stdio.h" 1 3 4 00008 # 27 "/usr/include/stdio.h" 3 4 00009 # 1 "/usr/include/features.h" 1 3 4 00010 # 375 "/usr/include/features.h" 3 4 00011 # 1 "/usr/include/sys/cdefs.h" 1 3 4 00012 # 387 "/usr/include/sys/cdefs.h" 3 4 00013 # 1 "/usr/include/bits/wordsize.h" 1 3 4 00014 # 388 "/usr/include/sys/cdefs.h" 2 3 4 00015 # 376 "/usr/include/features.h" 2 3 4 00016 # 399 "/usr/include/features.h" 3 4 00017 # 1 "/usr/include/gnu/stubs.h" 1 3 4 00018 # 10 "/usr/include/gnu/stubs.h" 3 4 00019 # 1 "/usr/include/gnu/stubs-64.h" 1 3 4 00020 # 11 "/usr/include/gnu/stubs.h" 2 3 4 00021 # 400 "/usr/include/features.h" 2 3 4 00022 # 28 "/usr/include/stdio.h" 2 3 4 00023 00024 00025 00026 00027 00028 # 1 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/stddef.h" 1 3 4 00029 # 212 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/stddef.h" 3 4 00030 typedef long unsigned int size_t; 00031 # 34 "/usr/include/stdio.h" 2 3 4 00032 00033 # 1 "/usr/include/bits/types.h" 1 3 4 00034 # 27 "/usr/include/bits/types.h" 3 4 00035 # 1 "/usr/include/bits/wordsize.h" 1 3 4 00036 # 28 "/usr/include/bits/types.h" 2 3 4 00037 00038 00039 typedef unsigned char __u_char; 00040 typedef unsigned short int __u_short; 00041 typedef unsigned int __u_int; 00042 typedef unsigned long int __u_long; 00043 00044 00045 typedef signed char __int8_t; 00046 typedef unsigned char __uint8_t; 00047 typedef signed short int __int16_t; 00048 typedef unsigned short int __uint16_t; 00049 typedef signed int __int32_t; 00050 typedef unsigned int __uint32_t; 00051 00052 typedef signed long int __int64_t; 00053 typedef unsigned long int __uint64_t; 00054 00055 00056 00057 00058 00059 00060 00061 typedef long int __quad_t; 00062 typedef unsigned long int __u_quad_t; 00063 # 130 "/usr/include/bits/types.h" 3 4 00064 # 1 "/usr/include/bits/typesizes.h" 1 3 4 00065 # 131 "/usr/include/bits/types.h" 2 3 4 00066 00067 00068 typedef unsigned long int __dev_t; 00069 typedef unsigned int __uid_t; 00070 typedef unsigned int __gid_t; 00071 typedef unsigned long int __ino_t; 00072 typedef unsigned long int __ino64_t; 00073 typedef unsigned int __mode_t; 00074 typedef unsigned long int __nlink_t; 00075 typedef long int __off_t; 00076 typedef long int __off64_t; 00077 typedef int __pid_t; 00078 typedef struct { int __val[2]; } __fsid_t; 00079 typedef long int __clock_t; 00080 typedef unsigned long int __rlim_t; 00081 typedef unsigned long int __rlim64_t; 00082 typedef unsigned int __id_t; 00083 typedef long int __time_t; 00084 typedef unsigned int __useconds_t; 00085 typedef long int __suseconds_t; 00086 00087 typedef int __daddr_t; 00088 typedef int __key_t; 00089 00090 00091 typedef int __clockid_t; 00092 00093 00094 typedef void * __timer_t; 00095 00096 00097 typedef long int __blksize_t; 00098 00099 00100 00101 00102 typedef long int __blkcnt_t; 00103 typedef long int __blkcnt64_t; 00104 00105 00106 typedef unsigned long int __fsblkcnt_t; 00107 typedef unsigned long int __fsblkcnt64_t; 00108 00109 00110 typedef unsigned long int __fsfilcnt_t; 00111 typedef unsigned long int __fsfilcnt64_t; 00112 00113 00114 typedef long int __fsword_t; 00115 00116 typedef long int __ssize_t; 00117 00118 00119 typedef long int __syscall_slong_t; 00120 00121 typedef unsigned long int __syscall_ulong_t; 00122 00123 00124 00125 typedef __off64_t __loff_t; 00126 typedef __quad_t *__qaddr_t; 00127 typedef char *__caddr_t; 00128 00129 00130 typedef long int __intptr_t; 00131 00132 00133 typedef unsigned int __socklen_t; 00134 # 36 "/usr/include/stdio.h" 2 3 4 00135 # 44 "/usr/include/stdio.h" 3 4 00136 struct _IO_FILE; 00137 00138 00139 00140 typedef struct _IO_FILE FILE; 00141 00142 00143 00144 00145 00146 # 64 "/usr/include/stdio.h" 3 4 00147 typedef struct _IO_FILE __FILE; 00148 # 74 "/usr/include/stdio.h" 3 4 00149 # 1 "/usr/include/libio.h" 1 3 4 00150 # 32 "/usr/include/libio.h" 3 4 00151 # 1 "/usr/include/_G_config.h" 1 3 4 00152 # 15 "/usr/include/_G_config.h" 3 4 00153 # 1 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/stddef.h" 1 3 4 00154 # 16 "/usr/include/_G_config.h" 2 3 4 00155 00156 00157 00158 00159 # 1 "/usr/include/wchar.h" 1 3 4 00160 # 82 "/usr/include/wchar.h" 3 4 00161 typedef struct 00162 { 00163 int __count; 00164 union 00165 { 00166 00167 unsigned int __wch; 00168 00169 00170 00171 char __wchb[4]; 00172 } __value; 00173 } __mbstate_t; 00174 # 21 "/usr/include/_G_config.h" 2 3 4 00175 typedef struct 00176 { 00177 __off_t __pos; 00178 __mbstate_t __state; 00179 } _G_fpos_t; 00180 typedef struct 00181 { 00182 __off64_t __pos; 00183 __mbstate_t __state; 00184 } _G_fpos64_t; 00185 # 33 "/usr/include/libio.h" 2 3 4 00186 # 50 "/usr/include/libio.h" 3 4 00187 # 1 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/stdarg.h" 1 3 4 00188 # 40 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/stdarg.h" 3 4 00189 typedef __builtin_va_list __gnuc_va_list; 00190 # 51 "/usr/include/libio.h" 2 3 4 00191 # 145 "/usr/include/libio.h" 3 4 00192 struct _IO_jump_t; struct _IO_FILE; 00193 # 155 "/usr/include/libio.h" 3 4 00194 typedef void _IO_lock_t; 00195 00196 00197 00198 00199 00200 struct _IO_marker { 00201 struct _IO_marker *_next; 00202 struct _IO_FILE *_sbuf; 00203 00204 00205 00206 int _pos; 00207 # 178 "/usr/include/libio.h" 3 4 00208 }; 00209 00210 00211 enum __codecvt_result 00212 { 00213 __codecvt_ok, 00214 __codecvt_partial, 00215 __codecvt_error, 00216 __codecvt_noconv 00217 }; 00218 # 246 "/usr/include/libio.h" 3 4 00219 struct _IO_FILE { 00220 int _flags; 00221 00222 00223 00224 00225 char* _IO_read_ptr; 00226 char* _IO_read_end; 00227 char* _IO_read_base; 00228 char* _IO_write_base; 00229 char* _IO_write_ptr; 00230 char* _IO_write_end; 00231 char* _IO_buf_base; 00232 char* _IO_buf_end; 00233 00234 char *_IO_save_base; 00235 char *_IO_backup_base; 00236 char *_IO_save_end; 00237 00238 struct _IO_marker *_markers; 00239 00240 struct _IO_FILE *_chain; 00241 00242 int _fileno; 00243 00244 00245 00246 int _flags2; 00247 00248 __off_t _old_offset; 00249 00250 00251 00252 unsigned short _cur_column; 00253 signed char _vtable_offset; 00254 char _shortbuf[1]; 00255 00256 00257 00258 _IO_lock_t *_lock; 00259 # 294 "/usr/include/libio.h" 3 4 00260 __off64_t _offset; 00261 # 303 "/usr/include/libio.h" 3 4 00262 void *__pad1; 00263 void *__pad2; 00264 void *__pad3; 00265 void *__pad4; 00266 size_t __pad5; 00267 00268 int _mode; 00269 00270 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; 00271 00272 }; 00273 00274 00275 typedef struct _IO_FILE _IO_FILE; 00276 00277 00278 struct _IO_FILE_plus; 00279 00280 extern struct _IO_FILE_plus _IO_2_1_stdin_; 00281 extern struct _IO_FILE_plus _IO_2_1_stdout_; 00282 extern struct _IO_FILE_plus _IO_2_1_stderr_; 00283 # 339 "/usr/include/libio.h" 3 4 00284 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); 00285 00286 00287 00288 00289 00290 00291 00292 typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf, 00293 size_t __n); 00294 00295 00296 00297 00298 00299 00300 00301 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); 00302 00303 00304 typedef int __io_close_fn (void *__cookie); 00305 # 391 "/usr/include/libio.h" 3 4 00306 extern int __underflow (_IO_FILE *); 00307 extern int __uflow (_IO_FILE *); 00308 extern int __overflow (_IO_FILE *, int); 00309 # 435 "/usr/include/libio.h" 3 4 00310 extern int _IO_getc (_IO_FILE *__fp); 00311 extern int _IO_putc (int __c, _IO_FILE *__fp); 00312 extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__)); 00313 extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__)); 00314 00315 extern int _IO_peekc_locked (_IO_FILE *__fp); 00316 00317 00318 00319 00320 00321 extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); 00322 extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); 00323 extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); 00324 # 465 "/usr/include/libio.h" 3 4 00325 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, 00326 __gnuc_va_list, int *__restrict); 00327 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, 00328 __gnuc_va_list); 00329 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t); 00330 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t); 00331 00332 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int); 00333 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int); 00334 00335 extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); 00336 # 75 "/usr/include/stdio.h" 2 3 4 00337 00338 00339 00340 00341 typedef __gnuc_va_list va_list; 00342 # 90 "/usr/include/stdio.h" 3 4 00343 typedef __off_t off_t; 00344 # 102 "/usr/include/stdio.h" 3 4 00345 typedef __ssize_t ssize_t; 00346 00347 00348 00349 00350 00351 00352 00353 typedef _G_fpos_t fpos_t; 00354 00355 00356 00357 00358 # 164 "/usr/include/stdio.h" 3 4 00359 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4 00360 # 165 "/usr/include/stdio.h" 2 3 4 00361 00362 00363 00364 extern struct _IO_FILE *stdin; 00365 extern struct _IO_FILE *stdout; 00366 extern struct _IO_FILE *stderr; 00367 00368 00369 00370 00371 00372 00373 00374 extern int remove (const char *__filename) __attribute__ ((__nothrow__ , __leaf__)); 00375 00376 extern int rename (const char *__old, const char *__new) __attribute__ ((__nothrow__ , __leaf__)); 00377 00378 00379 00380 00381 extern int renameat (int __oldfd, const char *__old, int __newfd, 00382 const char *__new) __attribute__ ((__nothrow__ , __leaf__)); 00383 00384 00385 00386 00387 00388 00389 00390 00391 extern FILE *tmpfile (void) ; 00392 # 209 "/usr/include/stdio.h" 3 4 00393 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__ , __leaf__)) ; 00394 00395 00396 00397 00398 00399 extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__ , __leaf__)) ; 00400 # 227 "/usr/include/stdio.h" 3 4 00401 extern char *tempnam (const char *__dir, const char *__pfx) 00402 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; 00403 00404 00405 00406 00407 00408 00409 00410 00411 extern int fclose (FILE *__stream); 00412 00413 00414 00415 00416 extern int fflush (FILE *__stream); 00417 00418 # 252 "/usr/include/stdio.h" 3 4 00419 extern int fflush_unlocked (FILE *__stream); 00420 # 266 "/usr/include/stdio.h" 3 4 00421 00422 00423 00424 00425 00426 00427 extern FILE *fopen (const char *__restrict __filename, 00428 const char *__restrict __modes) ; 00429 00430 00431 00432 00433 extern FILE *freopen (const char *__restrict __filename, 00434 const char *__restrict __modes, 00435 FILE *__restrict __stream) ; 00436 # 295 "/usr/include/stdio.h" 3 4 00437 00438 # 306 "/usr/include/stdio.h" 3 4 00439 extern FILE *fdopen (int __fd, const char *__modes) __attribute__ ((__nothrow__ , __leaf__)) ; 00440 # 319 "/usr/include/stdio.h" 3 4 00441 extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 00442 __attribute__ ((__nothrow__ , __leaf__)) ; 00443 00444 00445 00446 00447 extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__ , __leaf__)) ; 00448 00449 00450 00451 00452 00453 00454 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__)); 00455 00456 00457 00458 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 00459 int __modes, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); 00460 00461 00462 00463 00464 00465 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 00466 size_t __size) __attribute__ ((__nothrow__ , __leaf__)); 00467 00468 00469 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); 00470 00471 00472 00473 00474 00475 00476 00477 00478 extern int fprintf (FILE *__restrict __stream, 00479 const char *__restrict __format, ...); 00480 00481 00482 00483 00484 extern int printf (const char *__restrict __format, ...); 00485 00486 extern int sprintf (char *__restrict __s, 00487 const char *__restrict __format, ...) __attribute__ ((__nothrow__)); 00488 00489 00490 00491 00492 00493 extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 00494 __gnuc_va_list __arg); 00495 00496 00497 00498 00499 extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 00500 00501 extern int vsprintf (char *__restrict __s, const char *__restrict __format, 00502 __gnuc_va_list __arg) __attribute__ ((__nothrow__)); 00503 00504 00505 00506 00507 00508 extern int snprintf (char *__restrict __s, size_t __maxlen, 00509 const char *__restrict __format, ...) 00510 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); 00511 00512 extern int vsnprintf (char *__restrict __s, size_t __maxlen, 00513 const char *__restrict __format, __gnuc_va_list __arg) 00514 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); 00515 00516 # 412 "/usr/include/stdio.h" 3 4 00517 extern int vdprintf (int __fd, const char *__restrict __fmt, 00518 __gnuc_va_list __arg) 00519 __attribute__ ((__format__ (__printf__, 2, 0))); 00520 extern int dprintf (int __fd, const char *__restrict __fmt, ...) 00521 __attribute__ ((__format__ (__printf__, 2, 3))); 00522 00523 00524 00525 00526 00527 00528 00529 00530 extern int fscanf (FILE *__restrict __stream, 00531 const char *__restrict __format, ...) ; 00532 00533 00534 00535 00536 extern int scanf (const char *__restrict __format, ...) ; 00537 00538 extern int sscanf (const char *__restrict __s, 00539 const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__)); 00540 # 443 "/usr/include/stdio.h" 3 4 00541 extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf") 00542 00543 ; 00544 extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf") 00545 ; 00546 extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__ , __leaf__)) 00547 00548 ; 00549 # 463 "/usr/include/stdio.h" 3 4 00550 00551 00552 00553 00554 00555 00556 00557 00558 extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 00559 __gnuc_va_list __arg) 00560 __attribute__ ((__format__ (__scanf__, 2, 0))) ; 00561 00562 00563 00564 00565 00566 extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 00567 __attribute__ ((__format__ (__scanf__, 1, 0))) ; 00568 00569 00570 extern int vsscanf (const char *__restrict __s, 00571 const char *__restrict __format, __gnuc_va_list __arg) 00572 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__format__ (__scanf__, 2, 0))); 00573 # 494 "/usr/include/stdio.h" 3 4 00574 extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf") 00575 00576 00577 00578 __attribute__ ((__format__ (__scanf__, 2, 0))) ; 00579 extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf") 00580 00581 __attribute__ ((__format__ (__scanf__, 1, 0))) ; 00582 extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__ , __leaf__)) 00583 00584 00585 00586 __attribute__ ((__format__ (__scanf__, 2, 0))); 00587 # 522 "/usr/include/stdio.h" 3 4 00588 00589 00590 00591 00592 00593 00594 00595 00596 00597 extern int fgetc (FILE *__stream); 00598 extern int getc (FILE *__stream); 00599 00600 00601 00602 00603 00604 extern int getchar (void); 00605 00606 # 550 "/usr/include/stdio.h" 3 4 00607 extern int getc_unlocked (FILE *__stream); 00608 extern int getchar_unlocked (void); 00609 # 561 "/usr/include/stdio.h" 3 4 00610 extern int fgetc_unlocked (FILE *__stream); 00611 00612 00613 00614 00615 00616 00617 00618 00619 00620 00621 00622 extern int fputc (int __c, FILE *__stream); 00623 extern int putc (int __c, FILE *__stream); 00624 00625 00626 00627 00628 00629 extern int putchar (int __c); 00630 00631 # 594 "/usr/include/stdio.h" 3 4 00632 extern int fputc_unlocked (int __c, FILE *__stream); 00633 00634 00635 00636 00637 00638 00639 00640 extern int putc_unlocked (int __c, FILE *__stream); 00641 extern int putchar_unlocked (int __c); 00642 00643 00644 00645 00646 00647 00648 extern int getw (FILE *__stream); 00649 00650 00651 extern int putw (int __w, FILE *__stream); 00652 00653 00654 00655 00656 00657 00658 00659 00660 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 00661 ; 00662 # 638 "/usr/include/stdio.h" 3 4 00663 extern char *gets (char *__s) __attribute__ ((__deprecated__)); 00664 00665 00666 # 665 "/usr/include/stdio.h" 3 4 00667 extern __ssize_t __getdelim (char **__restrict __lineptr, 00668 size_t *__restrict __n, int __delimiter, 00669 FILE *__restrict __stream) ; 00670 extern __ssize_t getdelim (char **__restrict __lineptr, 00671 size_t *__restrict __n, int __delimiter, 00672 FILE *__restrict __stream) ; 00673 00674 00675 00676 00677 00678 00679 00680 extern __ssize_t getline (char **__restrict __lineptr, 00681 size_t *__restrict __n, 00682 FILE *__restrict __stream) ; 00683 00684 00685 00686 00687 00688 00689 00690 00691 extern int fputs (const char *__restrict __s, FILE *__restrict __stream); 00692 00693 00694 00695 00696 00697 extern int puts (const char *__s); 00698 00699 00700 00701 00702 00703 00704 extern int ungetc (int __c, FILE *__stream); 00705 00706 00707 00708 00709 00710 00711 extern size_t fread (void *__restrict __ptr, size_t __size, 00712 size_t __n, FILE *__restrict __stream) ; 00713 00714 00715 00716 00717 extern size_t fwrite (const void *__restrict __ptr, size_t __size, 00718 size_t __n, FILE *__restrict __s); 00719 00720 # 737 "/usr/include/stdio.h" 3 4 00721 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 00722 size_t __n, FILE *__restrict __stream) ; 00723 extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 00724 size_t __n, FILE *__restrict __stream); 00725 00726 00727 00728 00729 00730 00731 00732 00733 extern int fseek (FILE *__stream, long int __off, int __whence); 00734 00735 00736 00737 00738 extern long int ftell (FILE *__stream) ; 00739 00740 00741 00742 00743 extern void rewind (FILE *__stream); 00744 00745 # 773 "/usr/include/stdio.h" 3 4 00746 extern int fseeko (FILE *__stream, __off_t __off, int __whence); 00747 00748 00749 00750 00751 extern __off_t ftello (FILE *__stream) ; 00752 # 792 "/usr/include/stdio.h" 3 4 00753 00754 00755 00756 00757 00758 00759 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); 00760 00761 00762 00763 00764 extern int fsetpos (FILE *__stream, const fpos_t *__pos); 00765 # 815 "/usr/include/stdio.h" 3 4 00766 00767 # 824 "/usr/include/stdio.h" 3 4 00768 00769 00770 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); 00771 00772 extern int feof (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; 00773 00774 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; 00775 00776 00777 00778 00779 extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); 00780 extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; 00781 extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; 00782 00783 00784 00785 00786 00787 00788 00789 00790 extern void perror (const char *__s); 00791 00792 00793 00794 00795 00796 00797 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4 00798 # 26 "/usr/include/bits/sys_errlist.h" 3 4 00799 extern int sys_nerr; 00800 extern const char *const sys_errlist[]; 00801 # 854 "/usr/include/stdio.h" 2 3 4 00802 00803 00804 00805 00806 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; 00807 00808 00809 00810 00811 extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; 00812 # 873 "/usr/include/stdio.h" 3 4 00813 extern FILE *popen (const char *__command, const char *__modes) ; 00814 00815 00816 00817 00818 00819 extern int pclose (FILE *__stream); 00820 00821 00822 00823 00824 00825 extern char *ctermid (char *__s) __attribute__ ((__nothrow__ , __leaf__)); 00826 # 913 "/usr/include/stdio.h" 3 4 00827 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); 00828 00829 00830 00831 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; 00832 00833 00834 extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); 00835 # 943 "/usr/include/stdio.h" 3 4 00836 00837 # 23 "papi_fwrappers.c" 2 00838 # 1 "/usr/include/assert.h" 1 3 4 00839 # 65 "/usr/include/assert.h" 3 4 00840 00841 00842 00843 extern void __assert_fail (const char *__assertion, const char *__file, 00844 unsigned int __line, const char *__function) 00845 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); 00846 00847 00848 extern void __assert_perror_fail (int __errnum, const char *__file, 00849 unsigned int __line, const char *__function) 00850 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); 00851 00852 00853 00854 00855 extern void __assert (const char *__assertion, const char *__file, int __line) 00856 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); 00857 00858 00859 00860 # 24 "papi_fwrappers.c" 2 00861 # 1 "/usr/include/string.h" 1 3 4 00862 # 27 "/usr/include/string.h" 3 4 00863 00864 00865 00866 00867 00868 # 1 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/stddef.h" 1 3 4 00869 # 33 "/usr/include/string.h" 2 3 4 00870 00871 00872 00873 00874 00875 00876 00877 00878 00879 extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 00880 size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 00881 00882 00883 extern void *memmove (void *__dest, const void *__src, size_t __n) 00884 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 00885 00886 00887 00888 00889 00890 00891 extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 00892 int __c, size_t __n) 00893 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 00894 00895 00896 00897 00898 00899 extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); 00900 00901 00902 extern int memcmp (const void *__s1, const void *__s2, size_t __n) 00903 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 00904 # 92 "/usr/include/string.h" 3 4 00905 extern void *memchr (const void *__s, int __c, size_t __n) 00906 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 00907 00908 00909 # 123 "/usr/include/string.h" 3 4 00910 00911 00912 extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 00913 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 00914 00915 extern char *strncpy (char *__restrict __dest, 00916 const char *__restrict __src, size_t __n) 00917 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 00918 00919 00920 extern char *strcat (char *__restrict __dest, const char *__restrict __src) 00921 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 00922 00923 extern char *strncat (char *__restrict __dest, const char *__restrict __src, 00924 size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 00925 00926 00927 extern int strcmp (const char *__s1, const char *__s2) 00928 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 00929 00930 extern int strncmp (const char *__s1, const char *__s2, size_t __n) 00931 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 00932 00933 00934 extern int strcoll (const char *__s1, const char *__s2) 00935 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 00936 00937 extern size_t strxfrm (char *__restrict __dest, 00938 const char *__restrict __src, size_t __n) 00939 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); 00940 00941 00942 00943 00944 00945 00946 # 1 "/usr/include/xlocale.h" 1 3 4 00947 # 27 "/usr/include/xlocale.h" 3 4 00948 typedef struct __locale_struct 00949 { 00950 00951 struct __locale_data *__locales[13]; 00952 00953 00954 const unsigned short int *__ctype_b; 00955 const int *__ctype_tolower; 00956 const int *__ctype_toupper; 00957 00958 00959 const char *__names[13]; 00960 } *__locale_t; 00961 00962 00963 typedef __locale_t locale_t; 00964 # 160 "/usr/include/string.h" 2 3 4 00965 00966 00967 extern int strcoll_l (const char *__s1, const char *__s2, __locale_t __l) 00968 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 00969 00970 extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 00971 __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); 00972 00973 00974 00975 00976 00977 extern char *strdup (const char *__s) 00978 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 00979 00980 00981 00982 00983 00984 00985 extern char *strndup (const char *__string, size_t __n) 00986 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 00987 # 207 "/usr/include/string.h" 3 4 00988 00989 # 232 "/usr/include/string.h" 3 4 00990 extern char *strchr (const char *__s, int __c) 00991 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 00992 # 259 "/usr/include/string.h" 3 4 00993 extern char *strrchr (const char *__s, int __c) 00994 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 00995 00996 00997 # 278 "/usr/include/string.h" 3 4 00998 00999 01000 01001 extern size_t strcspn (const char *__s, const char *__reject) 01002 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 01003 01004 01005 extern size_t strspn (const char *__s, const char *__accept) 01006 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 01007 # 311 "/usr/include/string.h" 3 4 01008 extern char *strpbrk (const char *__s, const char *__accept) 01009 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 01010 # 338 "/usr/include/string.h" 3 4 01011 extern char *strstr (const char *__haystack, const char *__needle) 01012 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 01013 01014 01015 01016 01017 extern char *strtok (char *__restrict __s, const char *__restrict __delim) 01018 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); 01019 01020 01021 01022 01023 extern char *__strtok_r (char *__restrict __s, 01024 const char *__restrict __delim, 01025 char **__restrict __save_ptr) 01026 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))); 01027 01028 extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 01029 char **__restrict __save_ptr) 01030 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))); 01031 # 393 "/usr/include/string.h" 3 4 01032 01033 01034 extern size_t strlen (const char *__s) 01035 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 01036 01037 01038 01039 01040 01041 extern size_t strnlen (const char *__string, size_t __maxlen) 01042 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 01043 01044 01045 01046 01047 01048 extern char *strerror (int __errnum) __attribute__ ((__nothrow__ , __leaf__)); 01049 01050 # 423 "/usr/include/string.h" 3 4 01051 extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__ , __leaf__)) 01052 01053 __attribute__ ((__nonnull__ (2))); 01054 # 441 "/usr/include/string.h" 3 4 01055 extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)); 01056 01057 01058 01059 01060 01061 extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); 01062 01063 01064 01065 extern void bcopy (const void *__src, void *__dest, size_t __n) 01066 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 01067 01068 01069 extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); 01070 01071 01072 extern int bcmp (const void *__s1, const void *__s2, size_t __n) 01073 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 01074 # 485 "/usr/include/string.h" 3 4 01075 extern char *index (const char *__s, int __c) 01076 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 01077 # 513 "/usr/include/string.h" 3 4 01078 extern char *rindex (const char *__s, int __c) 01079 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 01080 01081 01082 01083 01084 extern int ffs (int __i) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); 01085 # 530 "/usr/include/string.h" 3 4 01086 extern int strcasecmp (const char *__s1, const char *__s2) 01087 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 01088 01089 01090 extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 01091 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 01092 # 553 "/usr/include/string.h" 3 4 01093 extern char *strsep (char **__restrict __stringp, 01094 const char *__restrict __delim) 01095 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 01096 # 564 "/usr/include/string.h" 3 4 01097 extern size_t strlcat (char *__dst, __const char *__src, size_t __n) 01098 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 01099 01100 01101 01102 01103 01104 01105 extern size_t strlcpy (char *__dst, __const char *__src, size_t __n) 01106 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 01107 01108 01109 01110 01111 extern char *strsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__)); 01112 01113 01114 extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 01115 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 01116 extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 01117 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 01118 01119 01120 01121 extern char *__stpncpy (char *__restrict __dest, 01122 const char *__restrict __src, size_t __n) 01123 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 01124 extern char *stpncpy (char *__restrict __dest, 01125 const char *__restrict __src, size_t __n) 01126 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); 01127 # 658 "/usr/include/string.h" 3 4 01128 01129 # 25 "papi_fwrappers.c" 2 01130 # 1 "papi.h" 1 01131 # 237 "papi.h" 01132 # 1 "/usr/include/sys/types.h" 1 3 4 01133 # 27 "/usr/include/sys/types.h" 3 4 01134 01135 01136 01137 01138 01139 01140 typedef __u_char u_char; 01141 typedef __u_short u_short; 01142 typedef __u_int u_int; 01143 typedef __u_long u_long; 01144 typedef __quad_t quad_t; 01145 typedef __u_quad_t u_quad_t; 01146 typedef __fsid_t fsid_t; 01147 01148 01149 01150 01151 typedef __loff_t loff_t; 01152 01153 01154 01155 typedef __ino_t ino_t; 01156 # 60 "/usr/include/sys/types.h" 3 4 01157 typedef __dev_t dev_t; 01158 01159 01160 01161 01162 typedef __gid_t gid_t; 01163 01164 01165 01166 01167 typedef __mode_t mode_t; 01168 01169 01170 01171 01172 typedef __nlink_t nlink_t; 01173 01174 01175 01176 01177 typedef __uid_t uid_t; 01178 # 98 "/usr/include/sys/types.h" 3 4 01179 typedef __pid_t pid_t; 01180 01181 01182 01183 01184 01185 typedef __id_t id_t; 01186 # 115 "/usr/include/sys/types.h" 3 4 01187 typedef __daddr_t daddr_t; 01188 typedef __caddr_t caddr_t; 01189 01190 01191 01192 01193 01194 typedef __key_t key_t; 01195 # 132 "/usr/include/sys/types.h" 3 4 01196 # 1 "/usr/include/time.h" 1 3 4 01197 # 57 "/usr/include/time.h" 3 4 01198 01199 01200 typedef __clock_t clock_t; 01201 01202 01203 01204 # 73 "/usr/include/time.h" 3 4 01205 01206 01207 typedef __time_t time_t; 01208 01209 01210 01211 # 91 "/usr/include/time.h" 3 4 01212 typedef __clockid_t clockid_t; 01213 # 103 "/usr/include/time.h" 3 4 01214 typedef __timer_t timer_t; 01215 # 133 "/usr/include/sys/types.h" 2 3 4 01216 # 146 "/usr/include/sys/types.h" 3 4 01217 # 1 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/stddef.h" 1 3 4 01218 # 147 "/usr/include/sys/types.h" 2 3 4 01219 01220 01221 01222 typedef unsigned long int ulong; 01223 typedef unsigned short int ushort; 01224 typedef unsigned int uint; 01225 # 194 "/usr/include/sys/types.h" 3 4 01226 typedef int int8_t __attribute__ ((__mode__ (__QI__))); 01227 typedef int int16_t __attribute__ ((__mode__ (__HI__))); 01228 typedef int int32_t __attribute__ ((__mode__ (__SI__))); 01229 typedef int int64_t __attribute__ ((__mode__ (__DI__))); 01230 01231 01232 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); 01233 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); 01234 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); 01235 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); 01236 01237 typedef int register_t __attribute__ ((__mode__ (__word__))); 01238 # 216 "/usr/include/sys/types.h" 3 4 01239 # 1 "/usr/include/endian.h" 1 3 4 01240 # 36 "/usr/include/endian.h" 3 4 01241 # 1 "/usr/include/bits/endian.h" 1 3 4 01242 # 37 "/usr/include/endian.h" 2 3 4 01243 # 60 "/usr/include/endian.h" 3 4 01244 # 1 "/usr/include/bits/byteswap.h" 1 3 4 01245 # 28 "/usr/include/bits/byteswap.h" 3 4 01246 # 1 "/usr/include/bits/wordsize.h" 1 3 4 01247 # 29 "/usr/include/bits/byteswap.h" 2 3 4 01248 01249 01250 01251 01252 01253 01254 # 1 "/usr/include/bits/byteswap-16.h" 1 3 4 01255 # 36 "/usr/include/bits/byteswap.h" 2 3 4 01256 # 44 "/usr/include/bits/byteswap.h" 3 4 01257 static __inline unsigned int 01258 __bswap_32 (unsigned int __bsx) 01259 { 01260 return __builtin_bswap32 (__bsx); 01261 } 01262 # 108 "/usr/include/bits/byteswap.h" 3 4 01263 static __inline __uint64_t 01264 __bswap_64 (__uint64_t __bsx) 01265 { 01266 return __builtin_bswap64 (__bsx); 01267 } 01268 # 61 "/usr/include/endian.h" 2 3 4 01269 # 217 "/usr/include/sys/types.h" 2 3 4 01270 01271 01272 # 1 "/usr/include/sys/select.h" 1 3 4 01273 # 30 "/usr/include/sys/select.h" 3 4 01274 # 1 "/usr/include/bits/select.h" 1 3 4 01275 # 22 "/usr/include/bits/select.h" 3 4 01276 # 1 "/usr/include/bits/wordsize.h" 1 3 4 01277 # 23 "/usr/include/bits/select.h" 2 3 4 01278 # 31 "/usr/include/sys/select.h" 2 3 4 01279 01280 01281 # 1 "/usr/include/bits/sigset.h" 1 3 4 01282 # 23 "/usr/include/bits/sigset.h" 3 4 01283 typedef int __sig_atomic_t; 01284 01285 01286 01287 01288 typedef struct 01289 { 01290 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 01291 } __sigset_t; 01292 # 34 "/usr/include/sys/select.h" 2 3 4 01293 01294 01295 01296 typedef __sigset_t sigset_t; 01297 01298 01299 01300 01301 01302 # 1 "/usr/include/time.h" 1 3 4 01303 # 120 "/usr/include/time.h" 3 4 01304 struct timespec 01305 { 01306 __time_t tv_sec; 01307 __syscall_slong_t tv_nsec; 01308 }; 01309 # 44 "/usr/include/sys/select.h" 2 3 4 01310 01311 # 1 "/usr/include/bits/time.h" 1 3 4 01312 # 30 "/usr/include/bits/time.h" 3 4 01313 struct timeval 01314 { 01315 __time_t tv_sec; 01316 __suseconds_t tv_usec; 01317 }; 01318 # 46 "/usr/include/sys/select.h" 2 3 4 01319 01320 01321 typedef __suseconds_t suseconds_t; 01322 01323 01324 01325 01326 01327 typedef long int __fd_mask; 01328 # 64 "/usr/include/sys/select.h" 3 4 01329 typedef struct 01330 { 01331 01332 01333 01334 01335 01336 01337 __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 01338 01339 01340 } fd_set; 01341 01342 01343 01344 01345 01346 01347 typedef __fd_mask fd_mask; 01348 # 96 "/usr/include/sys/select.h" 3 4 01349 01350 # 106 "/usr/include/sys/select.h" 3 4 01351 extern int select (int __nfds, fd_set *__restrict __readfds, 01352 fd_set *__restrict __writefds, 01353 fd_set *__restrict __exceptfds, 01354 struct timeval *__restrict __timeout); 01355 # 118 "/usr/include/sys/select.h" 3 4 01356 extern int pselect (int __nfds, fd_set *__restrict __readfds, 01357 fd_set *__restrict __writefds, 01358 fd_set *__restrict __exceptfds, 01359 const struct timespec *__restrict __timeout, 01360 const __sigset_t *__restrict __sigmask); 01361 # 131 "/usr/include/sys/select.h" 3 4 01362 01363 # 220 "/usr/include/sys/types.h" 2 3 4 01364 01365 01366 # 1 "/usr/include/sys/sysmacros.h" 1 3 4 01367 # 29 "/usr/include/sys/sysmacros.h" 3 4 01368 01369 01370 __extension__ 01371 extern unsigned int gnu_dev_major (unsigned long long int __dev) 01372 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); 01373 __extension__ 01374 extern unsigned int gnu_dev_minor (unsigned long long int __dev) 01375 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); 01376 __extension__ 01377 extern unsigned long long int gnu_dev_makedev (unsigned int __major, 01378 unsigned int __minor) 01379 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); 01380 # 63 "/usr/include/sys/sysmacros.h" 3 4 01381 01382 # 223 "/usr/include/sys/types.h" 2 3 4 01383 01384 01385 01386 01387 01388 typedef __blksize_t blksize_t; 01389 01390 01391 01392 01393 01394 01395 typedef __blkcnt_t blkcnt_t; 01396 01397 01398 01399 typedef __fsblkcnt_t fsblkcnt_t; 01400 01401 01402 01403 typedef __fsfilcnt_t fsfilcnt_t; 01404 # 270 "/usr/include/sys/types.h" 3 4 01405 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 01406 # 21 "/usr/include/bits/pthreadtypes.h" 3 4 01407 # 1 "/usr/include/bits/wordsize.h" 1 3 4 01408 # 22 "/usr/include/bits/pthreadtypes.h" 2 3 4 01409 # 60 "/usr/include/bits/pthreadtypes.h" 3 4 01410 typedef unsigned long int pthread_t; 01411 01412 01413 union pthread_attr_t 01414 { 01415 char __size[56]; 01416 long int __align; 01417 }; 01418 01419 typedef union pthread_attr_t pthread_attr_t; 01420 01421 01422 01423 01424 01425 typedef struct __pthread_internal_list 01426 { 01427 struct __pthread_internal_list *__prev; 01428 struct __pthread_internal_list *__next; 01429 } __pthread_list_t; 01430 # 90 "/usr/include/bits/pthreadtypes.h" 3 4 01431 typedef union 01432 { 01433 struct __pthread_mutex_s 01434 { 01435 int __lock; 01436 unsigned int __count; 01437 int __owner; 01438 01439 unsigned int __nusers; 01440 01441 01442 01443 int __kind; 01444 01445 int __spins; 01446 __pthread_list_t __list; 01447 # 115 "/usr/include/bits/pthreadtypes.h" 3 4 01448 } __data; 01449 char __size[40]; 01450 long int __align; 01451 } pthread_mutex_t; 01452 01453 typedef union 01454 { 01455 char __size[4]; 01456 int __align; 01457 } pthread_mutexattr_t; 01458 01459 01460 01461 01462 typedef union 01463 { 01464 struct 01465 { 01466 int __lock; 01467 unsigned int __futex; 01468 __extension__ unsigned long long int __total_seq; 01469 __extension__ unsigned long long int __wakeup_seq; 01470 __extension__ unsigned long long int __woken_seq; 01471 void *__mutex; 01472 unsigned int __nwaiters; 01473 unsigned int __broadcast_seq; 01474 } __data; 01475 char __size[48]; 01476 __extension__ long long int __align; 01477 } pthread_cond_t; 01478 01479 typedef union 01480 { 01481 char __size[4]; 01482 int __align; 01483 } pthread_condattr_t; 01484 01485 01486 01487 typedef unsigned int pthread_key_t; 01488 01489 01490 01491 typedef int pthread_once_t; 01492 01493 01494 01495 01496 01497 typedef union 01498 { 01499 01500 struct 01501 { 01502 int __lock; 01503 unsigned int __nr_readers; 01504 unsigned int __readers_wakeup; 01505 unsigned int __writer_wakeup; 01506 unsigned int __nr_readers_queued; 01507 unsigned int __nr_writers_queued; 01508 int __writer; 01509 int __shared; 01510 unsigned long int __pad1; 01511 unsigned long int __pad2; 01512 01513 01514 unsigned int __flags; 01515 01516 } __data; 01517 # 202 "/usr/include/bits/pthreadtypes.h" 3 4 01518 char __size[56]; 01519 long int __align; 01520 } pthread_rwlock_t; 01521 01522 typedef union 01523 { 01524 char __size[8]; 01525 long int __align; 01526 } pthread_rwlockattr_t; 01527 01528 01529 01530 01531 01532 typedef volatile int pthread_spinlock_t; 01533 01534 01535 01536 01537 typedef union 01538 { 01539 char __size[32]; 01540 long int __align; 01541 } pthread_barrier_t; 01542 01543 typedef union 01544 { 01545 char __size[4]; 01546 int __align; 01547 } pthread_barrierattr_t; 01548 # 271 "/usr/include/sys/types.h" 2 3 4 01549 01550 01551 01552 # 238 "papi.h" 2 01553 # 1 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/limits.h" 1 3 4 01554 # 34 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/limits.h" 3 4 01555 # 1 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/syslimits.h" 1 3 4 01556 01557 01558 01559 01560 01561 01562 # 1 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/limits.h" 1 3 4 01563 # 168 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/limits.h" 3 4 01564 # 1 "/usr/include/limits.h" 1 3 4 01565 # 144 "/usr/include/limits.h" 3 4 01566 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4 01567 # 160 "/usr/include/bits/posix1_lim.h" 3 4 01568 # 1 "/usr/include/bits/local_lim.h" 1 3 4 01569 # 38 "/usr/include/bits/local_lim.h" 3 4 01570 # 1 "/usr/include/linux/limits.h" 1 3 4 01571 # 39 "/usr/include/bits/local_lim.h" 2 3 4 01572 # 161 "/usr/include/bits/posix1_lim.h" 2 3 4 01573 # 145 "/usr/include/limits.h" 2 3 4 01574 01575 01576 01577 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4 01578 # 149 "/usr/include/limits.h" 2 3 4 01579 # 169 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/limits.h" 2 3 4 01580 # 8 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/syslimits.h" 2 3 4 01581 # 35 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/limits.h" 2 3 4 01582 # 239 "papi.h" 2 01583 # 1 "papiStdEventDefs.h" 1 01584 # 47 "papiStdEventDefs.h" 01585 enum 01586 { 01587 PAPI_L1_DCM_idx = 0, 01588 PAPI_L1_ICM_idx, 01589 PAPI_L2_DCM_idx, 01590 PAPI_L2_ICM_idx, 01591 PAPI_L3_DCM_idx, 01592 PAPI_L3_ICM_idx, 01593 PAPI_L1_TCM_idx, 01594 PAPI_L2_TCM_idx, 01595 PAPI_L3_TCM_idx, 01596 PAPI_CA_SNP_idx, 01597 PAPI_CA_SHR_idx, 01598 PAPI_CA_CLN_idx, 01599 PAPI_CA_INV_idx, 01600 PAPI_CA_ITV_idx, 01601 PAPI_L3_LDM_idx, 01602 PAPI_L3_STM_idx, 01603 01604 PAPI_BRU_IDL_idx, 01605 PAPI_FXU_IDL_idx, 01606 PAPI_FPU_IDL_idx, 01607 PAPI_LSU_IDL_idx, 01608 PAPI_TLB_DM_idx, 01609 PAPI_TLB_IM_idx, 01610 PAPI_TLB_TL_idx, 01611 PAPI_L1_LDM_idx, 01612 PAPI_L1_STM_idx, 01613 PAPI_L2_LDM_idx, 01614 PAPI_L2_STM_idx, 01615 PAPI_BTAC_M_idx, 01616 PAPI_PRF_DM_idx, 01617 PAPI_L3_DCH_idx, 01618 PAPI_TLB_SD_idx, 01619 PAPI_CSR_FAL_idx, 01620 01621 PAPI_CSR_SUC_idx, 01622 PAPI_CSR_TOT_idx, 01623 PAPI_MEM_SCY_idx, 01624 PAPI_MEM_RCY_idx, 01625 PAPI_MEM_WCY_idx, 01626 PAPI_STL_ICY_idx, 01627 PAPI_FUL_ICY_idx, 01628 PAPI_STL_CCY_idx, 01629 PAPI_FUL_CCY_idx, 01630 PAPI_HW_INT_idx, 01631 PAPI_BR_UCN_idx, 01632 PAPI_BR_CN_idx, 01633 PAPI_BR_TKN_idx, 01634 PAPI_BR_NTK_idx, 01635 PAPI_BR_MSP_idx, 01636 PAPI_BR_PRC_idx, 01637 01638 PAPI_FMA_INS_idx, 01639 PAPI_TOT_IIS_idx, 01640 PAPI_TOT_INS_idx, 01641 PAPI_INT_INS_idx, 01642 PAPI_FP_INS_idx, 01643 PAPI_LD_INS_idx, 01644 PAPI_SR_INS_idx, 01645 PAPI_BR_INS_idx, 01646 PAPI_VEC_INS_idx, 01647 PAPI_RES_STL_idx, 01648 PAPI_FP_STAL_idx, 01649 PAPI_TOT_CYC_idx, 01650 PAPI_LST_INS_idx, 01651 PAPI_SYC_INS_idx, 01652 PAPI_L1_DCH_idx, 01653 PAPI_L2_DCH_idx, 01654 01655 PAPI_L1_DCA_idx, 01656 PAPI_L2_DCA_idx, 01657 PAPI_L3_DCA_idx, 01658 PAPI_L1_DCR_idx, 01659 PAPI_L2_DCR_idx, 01660 PAPI_L3_DCR_idx, 01661 PAPI_L1_DCW_idx, 01662 PAPI_L2_DCW_idx, 01663 PAPI_L3_DCW_idx, 01664 PAPI_L1_ICH_idx, 01665 PAPI_L2_ICH_idx, 01666 PAPI_L3_ICH_idx, 01667 PAPI_L1_ICA_idx, 01668 PAPI_L2_ICA_idx, 01669 PAPI_L3_ICA_idx, 01670 PAPI_L1_ICR_idx, 01671 01672 PAPI_L2_ICR_idx, 01673 PAPI_L3_ICR_idx, 01674 PAPI_L1_ICW_idx, 01675 PAPI_L2_ICW_idx, 01676 PAPI_L3_ICW_idx, 01677 PAPI_L1_TCH_idx, 01678 PAPI_L2_TCH_idx, 01679 PAPI_L3_TCH_idx, 01680 PAPI_L1_TCA_idx, 01681 PAPI_L2_TCA_idx, 01682 PAPI_L3_TCA_idx, 01683 PAPI_L1_TCR_idx, 01684 PAPI_L2_TCR_idx, 01685 PAPI_L3_TCR_idx, 01686 PAPI_L1_TCW_idx, 01687 PAPI_L2_TCW_idx, 01688 01689 PAPI_L3_TCW_idx, 01690 PAPI_FML_INS_idx, 01691 PAPI_FAD_INS_idx, 01692 PAPI_FDV_INS_idx, 01693 PAPI_FSQ_INS_idx, 01694 PAPI_FNV_INS_idx, 01695 PAPI_FP_OPS_idx, 01696 PAPI_SP_OPS_idx, 01697 PAPI_DP_OPS_idx, 01698 PAPI_VEC_SP_idx, 01699 PAPI_VEC_DP_idx, 01700 PAPI_REF_CYC_idx, 01701 PAPI_END_idx 01702 }; 01703 # 240 "papi.h" 2 01704 # 475 "papi.h" 01705 enum { 01706 PAPI_ENUM_EVENTS = 0, 01707 PAPI_ENUM_FIRST, 01708 PAPI_PRESET_ENUM_AVAIL, 01709 01710 01711 PAPI_PRESET_ENUM_MSC, 01712 PAPI_PRESET_ENUM_INS, 01713 PAPI_PRESET_ENUM_IDL, 01714 PAPI_PRESET_ENUM_BR, 01715 PAPI_PRESET_ENUM_CND, 01716 PAPI_PRESET_ENUM_MEM, 01717 PAPI_PRESET_ENUM_CACH, 01718 PAPI_PRESET_ENUM_L1, 01719 PAPI_PRESET_ENUM_L2, 01720 PAPI_PRESET_ENUM_L3, 01721 PAPI_PRESET_ENUM_TLB, 01722 PAPI_PRESET_ENUM_FP, 01723 01724 01725 PAPI_NTV_ENUM_UMASKS, 01726 PAPI_NTV_ENUM_UMASK_COMBOS, 01727 PAPI_NTV_ENUM_IARR, 01728 PAPI_NTV_ENUM_DARR, 01729 PAPI_NTV_ENUM_OPCM, 01730 PAPI_NTV_ENUM_IEAR, 01731 PAPI_NTV_ENUM_DEAR, 01732 PAPI_NTV_ENUM_GROUPS 01733 }; 01734 # 539 "papi.h" 01735 # 1 "/usr/include/signal.h" 1 3 4 01736 # 30 "/usr/include/signal.h" 3 4 01737 01738 01739 # 1 "/usr/include/bits/sigset.h" 1 3 4 01740 # 103 "/usr/include/bits/sigset.h" 3 4 01741 extern int __sigismember (const __sigset_t *, int); 01742 extern int __sigaddset (__sigset_t *, int); 01743 extern int __sigdelset (__sigset_t *, int); 01744 # 33 "/usr/include/signal.h" 2 3 4 01745 01746 01747 01748 01749 01750 01751 01752 typedef __sig_atomic_t sig_atomic_t; 01753 01754 # 57 "/usr/include/signal.h" 3 4 01755 # 1 "/usr/include/bits/signum.h" 1 3 4 01756 # 58 "/usr/include/signal.h" 2 3 4 01757 # 75 "/usr/include/signal.h" 3 4 01758 # 1 "/usr/include/time.h" 1 3 4 01759 # 76 "/usr/include/signal.h" 2 3 4 01760 01761 01762 01763 01764 # 1 "/usr/include/bits/siginfo.h" 1 3 4 01765 # 24 "/usr/include/bits/siginfo.h" 3 4 01766 # 1 "/usr/include/bits/wordsize.h" 1 3 4 01767 # 25 "/usr/include/bits/siginfo.h" 2 3 4 01768 01769 01770 01771 01772 01773 01774 01775 typedef union sigval 01776 { 01777 int sival_int; 01778 void *sival_ptr; 01779 } sigval_t; 01780 # 58 "/usr/include/bits/siginfo.h" 3 4 01781 typedef __clock_t __sigchld_clock_t; 01782 01783 01784 01785 typedef struct 01786 { 01787 int si_signo; 01788 int si_errno; 01789 01790 int si_code; 01791 01792 union 01793 { 01794 int _pad[((128 / sizeof (int)) - 4)]; 01795 01796 01797 struct 01798 { 01799 __pid_t si_pid; 01800 __uid_t si_uid; 01801 } _kill; 01802 01803 01804 struct 01805 { 01806 int si_tid; 01807 int si_overrun; 01808 sigval_t si_sigval; 01809 } _timer; 01810 01811 01812 struct 01813 { 01814 __pid_t si_pid; 01815 __uid_t si_uid; 01816 sigval_t si_sigval; 01817 } _rt; 01818 01819 01820 struct 01821 { 01822 __pid_t si_pid; 01823 __uid_t si_uid; 01824 int si_status; 01825 __sigchld_clock_t si_utime; 01826 __sigchld_clock_t si_stime; 01827 } _sigchld; 01828 01829 01830 struct 01831 { 01832 void *si_addr; 01833 } _sigfault; 01834 01835 01836 struct 01837 { 01838 long int si_band; 01839 int si_fd; 01840 } _sigpoll; 01841 01842 01843 struct 01844 { 01845 void *_call_addr; 01846 int _syscall; 01847 unsigned int _arch; 01848 } _sigsys; 01849 } _sifields; 01850 } siginfo_t ; 01851 # 151 "/usr/include/bits/siginfo.h" 3 4 01852 enum 01853 { 01854 SI_ASYNCNL = -60, 01855 01856 SI_TKILL = -6, 01857 01858 SI_SIGIO, 01859 01860 SI_ASYNCIO, 01861 01862 SI_MESGQ, 01863 01864 SI_TIMER, 01865 01866 SI_QUEUE, 01867 01868 SI_USER, 01869 01870 SI_KERNEL = 0x80 01871 01872 }; 01873 01874 01875 01876 enum 01877 { 01878 ILL_ILLOPC = 1, 01879 01880 ILL_ILLOPN, 01881 01882 ILL_ILLADR, 01883 01884 ILL_ILLTRP, 01885 01886 ILL_PRVOPC, 01887 01888 ILL_PRVREG, 01889 01890 ILL_COPROC, 01891 01892 ILL_BADSTK 01893 01894 }; 01895 01896 01897 enum 01898 { 01899 FPE_INTDIV = 1, 01900 01901 FPE_INTOVF, 01902 01903 FPE_FLTDIV, 01904 01905 FPE_FLTOVF, 01906 01907 FPE_FLTUND, 01908 01909 FPE_FLTRES, 01910 01911 FPE_FLTINV, 01912 01913 FPE_FLTSUB 01914 01915 }; 01916 01917 01918 enum 01919 { 01920 SEGV_MAPERR = 1, 01921 01922 SEGV_ACCERR 01923 01924 }; 01925 01926 01927 enum 01928 { 01929 BUS_ADRALN = 1, 01930 01931 BUS_ADRERR, 01932 01933 BUS_OBJERR 01934 01935 }; 01936 01937 01938 enum 01939 { 01940 TRAP_BRKPT = 1, 01941 01942 TRAP_TRACE 01943 01944 }; 01945 01946 01947 enum 01948 { 01949 CLD_EXITED = 1, 01950 01951 CLD_KILLED, 01952 01953 CLD_DUMPED, 01954 01955 CLD_TRAPPED, 01956 01957 CLD_STOPPED, 01958 01959 CLD_CONTINUED 01960 01961 }; 01962 01963 01964 enum 01965 { 01966 POLL_IN = 1, 01967 01968 POLL_OUT, 01969 01970 POLL_MSG, 01971 01972 POLL_ERR, 01973 01974 POLL_PRI, 01975 01976 POLL_HUP 01977 01978 }; 01979 # 301 "/usr/include/bits/siginfo.h" 3 4 01980 typedef struct sigevent 01981 { 01982 sigval_t sigev_value; 01983 int sigev_signo; 01984 int sigev_notify; 01985 01986 union 01987 { 01988 int _pad[((64 / sizeof (int)) - 4)]; 01989 01990 01991 01992 __pid_t _tid; 01993 01994 struct 01995 { 01996 void (*_function) (sigval_t); 01997 pthread_attr_t *_attribute; 01998 } _sigev_thread; 01999 } _sigev_un; 02000 } sigevent_t; 02001 02002 02003 02004 02005 02006 02007 enum 02008 { 02009 SIGEV_SIGNAL = 0, 02010 02011 SIGEV_NONE, 02012 02013 SIGEV_THREAD, 02014 02015 02016 SIGEV_THREAD_ID = 4 02017 02018 }; 02019 # 81 "/usr/include/signal.h" 2 3 4 02020 02021 02022 02023 02024 typedef void (*__sighandler_t) (int); 02025 02026 02027 02028 02029 extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler) 02030 __attribute__ ((__nothrow__ , __leaf__)); 02031 # 100 "/usr/include/signal.h" 3 4 02032 02033 02034 extern __sighandler_t signal (int __sig, __sighandler_t __handler) 02035 __attribute__ ((__nothrow__ , __leaf__)); 02036 # 114 "/usr/include/signal.h" 3 4 02037 02038 # 127 "/usr/include/signal.h" 3 4 02039 extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__ , __leaf__)); 02040 02041 02042 02043 02044 02045 02046 extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__ , __leaf__)); 02047 02048 02049 02050 02051 extern int raise (int __sig) __attribute__ ((__nothrow__ , __leaf__)); 02052 02053 02054 02055 02056 extern __sighandler_t ssignal (int __sig, __sighandler_t __handler) 02057 __attribute__ ((__nothrow__ , __leaf__)); 02058 extern int gsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__)); 02059 02060 02061 02062 02063 extern void psignal (int __sig, const char *__s); 02064 02065 02066 02067 02068 extern void psiginfo (const siginfo_t *__pinfo, const char *__s); 02069 # 169 "/usr/include/signal.h" 3 4 02070 extern int __sigpause (int __sig_or_mask, int __is_sig); 02071 # 197 "/usr/include/signal.h" 3 4 02072 extern int sigblock (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__)); 02073 02074 02075 extern int sigsetmask (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__)); 02076 02077 02078 extern int siggetmask (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__)); 02079 # 217 "/usr/include/signal.h" 3 4 02080 typedef __sighandler_t sig_t; 02081 02082 02083 02084 02085 02086 extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); 02087 02088 02089 extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); 02090 02091 02092 extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); 02093 02094 02095 extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); 02096 02097 02098 extern int sigismember (const sigset_t *__set, int __signo) 02099 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); 02100 # 253 "/usr/include/signal.h" 3 4 02101 # 1 "/usr/include/bits/sigaction.h" 1 3 4 02102 # 24 "/usr/include/bits/sigaction.h" 3 4 02103 struct sigaction 02104 { 02105 02106 02107 union 02108 { 02109 02110 __sighandler_t sa_handler; 02111 02112 void (*sa_sigaction) (int, siginfo_t *, void *); 02113 } 02114 __sigaction_handler; 02115 02116 02117 02118 02119 02120 02121 02122 __sigset_t sa_mask; 02123 02124 02125 int sa_flags; 02126 02127 02128 void (*sa_restorer) (void); 02129 }; 02130 # 254 "/usr/include/signal.h" 2 3 4 02131 02132 02133 extern int sigprocmask (int __how, const sigset_t *__restrict __set, 02134 sigset_t *__restrict __oset) __attribute__ ((__nothrow__ , __leaf__)); 02135 02136 02137 02138 02139 02140 02141 extern int sigsuspend (const sigset_t *__set) __attribute__ ((__nonnull__ (1))); 02142 02143 02144 extern int sigaction (int __sig, const struct sigaction *__restrict __act, 02145 struct sigaction *__restrict __oact) __attribute__ ((__nothrow__ , __leaf__)); 02146 02147 02148 extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); 02149 02150 02151 02152 02153 02154 02155 extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig) 02156 __attribute__ ((__nonnull__ (1, 2))); 02157 02158 02159 02160 02161 02162 02163 extern int sigwaitinfo (const sigset_t *__restrict __set, 02164 siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1))); 02165 02166 02167 02168 02169 02170 02171 extern int sigtimedwait (const sigset_t *__restrict __set, 02172 siginfo_t *__restrict __info, 02173 const struct timespec *__restrict __timeout) 02174 __attribute__ ((__nonnull__ (1))); 02175 02176 02177 02178 extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val) 02179 __attribute__ ((__nothrow__ , __leaf__)); 02180 # 311 "/usr/include/signal.h" 3 4 02181 extern const char *const _sys_siglist[65]; 02182 extern const char *const sys_siglist[65]; 02183 02184 02185 struct sigvec 02186 { 02187 __sighandler_t sv_handler; 02188 int sv_mask; 02189 02190 int sv_flags; 02191 02192 }; 02193 # 335 "/usr/include/signal.h" 3 4 02194 extern int sigvec (int __sig, const struct sigvec *__vec, 02195 struct sigvec *__ovec) __attribute__ ((__nothrow__ , __leaf__)); 02196 02197 02198 02199 # 1 "/usr/include/bits/sigcontext.h" 1 3 4 02200 # 29 "/usr/include/bits/sigcontext.h" 3 4 02201 struct _fpx_sw_bytes 02202 { 02203 __uint32_t magic1; 02204 __uint32_t extended_size; 02205 __uint64_t xstate_bv; 02206 __uint32_t xstate_size; 02207 __uint32_t padding[7]; 02208 }; 02209 02210 struct _fpreg 02211 { 02212 unsigned short significand[4]; 02213 unsigned short exponent; 02214 }; 02215 02216 struct _fpxreg 02217 { 02218 unsigned short significand[4]; 02219 unsigned short exponent; 02220 unsigned short padding[3]; 02221 }; 02222 02223 struct _xmmreg 02224 { 02225 __uint32_t element[4]; 02226 }; 02227 # 121 "/usr/include/bits/sigcontext.h" 3 4 02228 struct _fpstate 02229 { 02230 02231 __uint16_t cwd; 02232 __uint16_t swd; 02233 __uint16_t ftw; 02234 __uint16_t fop; 02235 __uint64_t rip; 02236 __uint64_t rdp; 02237 __uint32_t mxcsr; 02238 __uint32_t mxcr_mask; 02239 struct _fpxreg _st[8]; 02240 struct _xmmreg _xmm[16]; 02241 __uint32_t padding[24]; 02242 }; 02243 02244 struct sigcontext 02245 { 02246 __uint64_t r8; 02247 __uint64_t r9; 02248 __uint64_t r10; 02249 __uint64_t r11; 02250 __uint64_t r12; 02251 __uint64_t r13; 02252 __uint64_t r14; 02253 __uint64_t r15; 02254 __uint64_t rdi; 02255 __uint64_t rsi; 02256 __uint64_t rbp; 02257 __uint64_t rbx; 02258 __uint64_t rdx; 02259 __uint64_t rax; 02260 __uint64_t rcx; 02261 __uint64_t rsp; 02262 __uint64_t rip; 02263 __uint64_t eflags; 02264 unsigned short cs; 02265 unsigned short gs; 02266 unsigned short fs; 02267 unsigned short __pad0; 02268 __uint64_t err; 02269 __uint64_t trapno; 02270 __uint64_t oldmask; 02271 __uint64_t cr2; 02272 __extension__ union 02273 { 02274 struct _fpstate * fpstate; 02275 __uint64_t __fpstate_word; 02276 }; 02277 __uint64_t __reserved1 [8]; 02278 }; 02279 02280 02281 02282 struct _xsave_hdr 02283 { 02284 __uint64_t xstate_bv; 02285 __uint64_t reserved1[2]; 02286 __uint64_t reserved2[5]; 02287 }; 02288 02289 struct _ymmh_state 02290 { 02291 __uint32_t ymmh_space[64]; 02292 }; 02293 02294 struct _xstate 02295 { 02296 struct _fpstate fpstate; 02297 struct _xsave_hdr xstate_hdr; 02298 struct _ymmh_state ymmh; 02299 }; 02300 # 341 "/usr/include/signal.h" 2 3 4 02301 02302 02303 extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__ , __leaf__)); 02304 02305 02306 02307 02308 02309 02310 # 1 "/usr/lib64/gcc/x86_64-alt-linux/4.8/include/stddef.h" 1 3 4 02311 # 351 "/usr/include/signal.h" 2 3 4 02312 02313 02314 02315 02316 extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__ , __leaf__)); 02317 02318 # 1 "/usr/include/bits/sigstack.h" 1 3 4 02319 # 25 "/usr/include/bits/sigstack.h" 3 4 02320 struct sigstack 02321 { 02322 void *ss_sp; 02323 int ss_onstack; 02324 }; 02325 02326 02327 02328 enum 02329 { 02330 SS_ONSTACK = 1, 02331 02332 SS_DISABLE 02333 02334 }; 02335 # 49 "/usr/include/bits/sigstack.h" 3 4 02336 typedef struct sigaltstack 02337 { 02338 void *ss_sp; 02339 int ss_flags; 02340 size_t ss_size; 02341 } stack_t; 02342 # 358 "/usr/include/signal.h" 2 3 4 02343 02344 02345 # 1 "/usr/include/sys/ucontext.h" 1 3 4 02346 # 22 "/usr/include/sys/ucontext.h" 3 4 02347 # 1 "/usr/include/signal.h" 1 3 4 02348 # 23 "/usr/include/sys/ucontext.h" 2 3 4 02349 # 31 "/usr/include/sys/ucontext.h" 3 4 02350 __extension__ typedef long long int greg_t; 02351 02352 02353 02354 02355 02356 typedef greg_t gregset_t[23]; 02357 # 92 "/usr/include/sys/ucontext.h" 3 4 02358 struct _libc_fpxreg 02359 { 02360 unsigned short int significand[4]; 02361 unsigned short int exponent; 02362 unsigned short int padding[3]; 02363 }; 02364 02365 struct _libc_xmmreg 02366 { 02367 __uint32_t element[4]; 02368 }; 02369 02370 struct _libc_fpstate 02371 { 02372 02373 __uint16_t cwd; 02374 __uint16_t swd; 02375 __uint16_t ftw; 02376 __uint16_t fop; 02377 __uint64_t rip; 02378 __uint64_t rdp; 02379 __uint32_t mxcsr; 02380 __uint32_t mxcr_mask; 02381 struct _libc_fpxreg _st[8]; 02382 struct _libc_xmmreg _xmm[16]; 02383 __uint32_t padding[24]; 02384 }; 02385 02386 02387 typedef struct _libc_fpstate *fpregset_t; 02388 02389 02390 typedef struct 02391 { 02392 gregset_t gregs; 02393 02394 fpregset_t fpregs; 02395 __extension__ unsigned long long __reserved1 [8]; 02396 } mcontext_t; 02397 02398 02399 typedef struct ucontext 02400 { 02401 unsigned long int uc_flags; 02402 struct ucontext *uc_link; 02403 stack_t uc_stack; 02404 mcontext_t uc_mcontext; 02405 __sigset_t uc_sigmask; 02406 struct _libc_fpstate __fpregs_mem; 02407 } ucontext_t; 02408 # 361 "/usr/include/signal.h" 2 3 4 02409 02410 02411 02412 02413 02414 extern int sigstack (struct sigstack *__ss, struct sigstack *__oss) 02415 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__)); 02416 02417 02418 02419 extern int sigaltstack (const struct sigaltstack *__restrict __ss, 02420 struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__ , __leaf__)); 02421 # 396 "/usr/include/signal.h" 3 4 02422 # 1 "/usr/include/bits/sigthread.h" 1 3 4 02423 # 30 "/usr/include/bits/sigthread.h" 3 4 02424 extern int pthread_sigmask (int __how, 02425 const __sigset_t *__restrict __newmask, 02426 __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__ , __leaf__)); 02427 02428 02429 extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__ , __leaf__)); 02430 # 397 "/usr/include/signal.h" 2 3 4 02431 02432 02433 02434 02435 02436 02437 extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__ , __leaf__)); 02438 02439 extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__ , __leaf__)); 02440 02441 02442 02443 02444 # 540 "papi.h" 2 02445 # 552 "papi.h" 02446 typedef unsigned long PAPI_thread_id_t; 02447 02448 02449 typedef struct _papi_all_thr_spec { 02450 int num; 02451 PAPI_thread_id_t *id; 02452 void **data; 02453 } PAPI_all_thr_spec_t; 02454 02455 typedef void (*PAPI_overflow_handler_t) (int EventSet, void *address, 02456 long long overflow_vector, void *context); 02457 # 575 "papi.h" 02458 typedef struct _papi_sprofil { 02459 void *pr_base; 02460 unsigned pr_size; 02461 caddr_t pr_off; 02462 unsigned pr_scale; 02463 02464 02465 02466 } PAPI_sprofil_t; 02467 02468 02469 typedef struct _papi_itimer_option { 02470 int itimer_num; 02471 int itimer_sig; 02472 int ns; 02473 int flags; 02474 } PAPI_itimer_option_t; 02475 02476 02477 typedef struct _papi_inherit_option { 02478 int eventset; 02479 int inherit; 02480 } PAPI_inherit_option_t; 02481 02482 02483 typedef struct _papi_domain_option { 02484 int def_cidx; 02485 int eventset; 02486 int domain; 02487 } PAPI_domain_option_t; 02488 02489 02490 typedef struct _papi_granularity_option { 02491 int def_cidx; 02492 int eventset; 02493 int granularity; 02494 } PAPI_granularity_option_t; 02495 02496 02497 typedef struct _papi_preload_option { 02498 char lib_preload_env[128]; 02499 char lib_preload_sep; 02500 char lib_dir_env[128]; 02501 char lib_dir_sep; 02502 } PAPI_preload_info_t; 02503 02504 02505 typedef struct _papi_component_option { 02506 char name[128]; 02507 char short_name[64]; 02508 02509 char description[128]; 02510 char version[64]; 02511 char support_version[64]; 02512 char kernel_version[64]; 02513 char disabled_reason[128]; 02514 int disabled; 02515 int CmpIdx; 02516 int num_cntrs; 02517 int num_mpx_cntrs; 02518 int num_preset_events; 02519 int num_native_events; 02520 int default_domain; 02521 int available_domains; 02522 int default_granularity; 02523 int available_granularities; 02524 int hardware_intr_sig; 02525 02526 int component_type; 02527 int reserved[8]; 02528 unsigned int hardware_intr:1; 02529 unsigned int precise_intr:1; 02530 unsigned int posix1b_timers:1; 02531 unsigned int kernel_profile:1; 02532 unsigned int kernel_multiplex:1; 02533 02534 02535 unsigned int fast_counter_read:1; 02536 unsigned int fast_real_timer:1; 02537 unsigned int fast_virtual_timer:1; 02538 unsigned int attach:1; 02539 unsigned int attach_must_ptrace:1; 02540 02541 02542 02543 02544 unsigned int cntr_umasks:1; 02545 02546 02547 02548 02549 unsigned int cpu:1; 02550 unsigned int inherit:1; 02551 unsigned int reserved_bits:12; 02552 } PAPI_component_info_t; 02553 02554 02555 typedef struct _papi_mpx_info { 02556 int timer_sig; 02557 int timer_num; 02558 int timer_us; 02559 } PAPI_mpx_info_t; 02560 02561 typedef int (*PAPI_debug_handler_t) (int code); 02562 02563 02564 typedef struct _papi_debug_option { 02565 int level; 02566 PAPI_debug_handler_t handler; 02567 } PAPI_debug_option_t; 02568 02569 02570 02571 typedef struct _papi_address_map { 02572 char name[1024]; 02573 caddr_t text_start; 02574 caddr_t text_end; 02575 caddr_t data_start; 02576 caddr_t data_end; 02577 caddr_t bss_start; 02578 caddr_t bss_end; 02579 } PAPI_address_map_t; 02580 02581 02582 02583 typedef struct _papi_program_info { 02584 char fullname[1024]; 02585 PAPI_address_map_t address_info; 02586 } PAPI_exe_info_t; 02587 02588 02589 typedef struct _papi_shared_lib_info { 02590 PAPI_address_map_t *map; 02591 int count; 02592 } PAPI_shlib_info_t; 02593 02594 02595 typedef char* PAPI_user_defined_events_file_t; 02596 # 742 "papi.h" 02597 typedef struct _papi_mh_tlb_info { 02598 int type; 02599 int num_entries; 02600 int page_size; 02601 int associativity; 02602 } PAPI_mh_tlb_info_t; 02603 02604 02605 typedef struct _papi_mh_cache_info { 02606 int type; 02607 int size; 02608 int line_size; 02609 int num_lines; 02610 int associativity; 02611 } PAPI_mh_cache_info_t; 02612 02613 02614 typedef struct _papi_mh_level_info { 02615 PAPI_mh_tlb_info_t tlb[6]; 02616 PAPI_mh_cache_info_t cache[6]; 02617 } PAPI_mh_level_t; 02618 02619 02620 02621 typedef struct _papi_mh_info { 02622 int levels; 02623 PAPI_mh_level_t level[4]; 02624 } PAPI_mh_info_t; 02625 02626 02627 02628 typedef struct _papi_hw_info { 02629 int ncpu; 02630 int threads; 02631 int cores; 02632 int sockets; 02633 int nnodes; 02634 int totalcpus; 02635 int vendor; 02636 char vendor_string[128]; 02637 int model; 02638 char model_string[128]; 02639 float revision; 02640 int cpuid_family; 02641 int cpuid_model; 02642 int cpuid_stepping; 02643 02644 int cpu_max_mhz; 02645 int cpu_min_mhz; 02646 02647 PAPI_mh_info_t mem_hierarchy; 02648 int virtualized; 02649 char virtual_vendor_string[128]; 02650 02651 char virtual_vendor_version[128]; 02652 02653 02654 02655 float mhz; 02656 int clock_mhz; 02657 02658 02659 int reserved[8]; 02660 02661 } PAPI_hw_info_t; 02662 02663 02664 typedef struct _papi_attach_option { 02665 int eventset; 02666 unsigned long tid; 02667 } PAPI_attach_option_t; 02668 02669 02670 typedef struct _papi_cpu_option { 02671 int eventset; 02672 unsigned int cpu_num; 02673 } PAPI_cpu_option_t; 02674 02675 02676 typedef struct _papi_multiplex_option { 02677 int eventset; 02678 int ns; 02679 int flags; 02680 } PAPI_multiplex_option_t; 02681 02682 02683 02684 typedef struct _papi_addr_range_option { 02685 int eventset; 02686 caddr_t start; 02687 caddr_t end; 02688 int start_off; 02689 int end_off; 02690 } PAPI_addr_range_option_t; 02691 02692 02693 02694 02695 02696 typedef union 02697 { 02698 PAPI_preload_info_t preload; 02699 PAPI_debug_option_t debug; 02700 PAPI_inherit_option_t inherit; 02701 PAPI_granularity_option_t granularity; 02702 PAPI_granularity_option_t defgranularity; 02703 PAPI_domain_option_t domain; 02704 PAPI_domain_option_t defdomain; 02705 PAPI_attach_option_t attach; 02706 PAPI_cpu_option_t cpu; 02707 PAPI_multiplex_option_t multiplex; 02708 PAPI_itimer_option_t itimer; 02709 PAPI_hw_info_t *hw_info; 02710 PAPI_shlib_info_t *shlib_info; 02711 PAPI_exe_info_t *exe_info; 02712 PAPI_component_info_t *cmp_info; 02713 PAPI_addr_range_option_t addr; 02714 PAPI_user_defined_events_file_t events_file; 02715 } PAPI_option_t; 02716 02717 02718 02719 typedef struct _dmem_t { 02720 long long peak; 02721 long long size; 02722 long long resident; 02723 long long high_water_mark; 02724 long long shared; 02725 long long text; 02726 long long library; 02727 long long heap; 02728 long long locked; 02729 long long stack; 02730 long long pagesize; 02731 long long pte; 02732 } PAPI_dmem_info_t; 02733 # 918 "papi.h" 02734 enum { 02735 PAPI_LOCATION_CORE = 0, 02736 PAPI_LOCATION_CPU, 02737 PAPI_LOCATION_PACKAGE, 02738 PAPI_LOCATION_UNCORE, 02739 }; 02740 02741 02742 enum { 02743 PAPI_DATATYPE_INT64 = 0, 02744 PAPI_DATATYPE_UINT64, 02745 PAPI_DATATYPE_FP64, 02746 PAPI_DATATYPE_BIT64, 02747 }; 02748 02749 02750 enum { 02751 PAPI_VALUETYPE_RUNNING_SUM = 0, 02752 PAPI_VALUETYPE_ABSOLUTE, 02753 }; 02754 02755 02756 enum { 02757 PAPI_TIMESCOPE_SINCE_START = 0, 02758 PAPI_TIMESCOPE_SINCE_LAST, 02759 PAPI_TIMESCOPE_UNTIL_NEXT, 02760 PAPI_TIMESCOPE_POINT, 02761 }; 02762 02763 02764 enum { 02765 PAPI_UPDATETYPE_ARBITRARY = 0, 02766 PAPI_UPDATETYPE_PUSH, 02767 PAPI_UPDATETYPE_PULL, 02768 PAPI_UPDATETYPE_FIXEDFREQ, 02769 }; 02770 02771 02772 typedef struct event_info { 02773 unsigned int event_code; 02774 02775 char symbol[1024]; 02776 char short_descr[64]; 02777 02778 char long_descr[1024]; 02779 02780 02781 02782 02783 int component_index; 02784 char units[64]; 02785 int location; 02786 int data_type; 02787 int value_type; 02788 int timescope; 02789 int update_type; 02790 int update_freq; 02791 02792 02793 02794 02795 02796 unsigned int count; 02797 02798 02799 02800 02801 unsigned int event_type; 02802 02803 02804 char derived[64]; 02805 02806 02807 char postfix[256]; 02808 02809 02810 02811 02812 unsigned int code[12]; 02813 02814 02815 02816 02817 char name[12] 02818 [256]; 02819 02820 02821 02822 char note[1024]; 02823 02824 02825 02826 02827 } PAPI_event_info_t; 02828 02829 02830 02831 02832 02833 02834 02835 int PAPI_accum(int EventSet, long long * values); 02836 int PAPI_add_event(int EventSet, int Event); 02837 int PAPI_add_named_event(int EventSet, char *EventName); 02838 int PAPI_add_events(int EventSet, int *Events, int number); 02839 int PAPI_assign_eventset_component(int EventSet, int cidx); 02840 int PAPI_attach(int EventSet, unsigned long tid); 02841 int PAPI_cleanup_eventset(int EventSet); 02842 int PAPI_create_eventset(int *EventSet); 02843 int PAPI_detach(int EventSet); 02844 int PAPI_destroy_eventset(int *EventSet); 02845 int PAPI_enum_event(int *EventCode, int modifier); 02846 int PAPI_enum_cmp_event(int *EventCode, int modifier, int cidx); 02847 int PAPI_event_code_to_name(int EventCode, char *out); 02848 int PAPI_event_name_to_code(char *in, int *out); 02849 int PAPI_get_dmem_info(PAPI_dmem_info_t *dest); 02850 int PAPI_get_event_info(int EventCode, PAPI_event_info_t * info); 02851 const PAPI_exe_info_t *PAPI_get_executable_info(void); 02852 const PAPI_hw_info_t *PAPI_get_hardware_info(void); 02853 const PAPI_component_info_t *PAPI_get_component_info(int cidx); 02854 int PAPI_get_multiplex(int EventSet); 02855 int PAPI_get_opt(int option, PAPI_option_t * ptr); 02856 int PAPI_get_cmp_opt(int option, PAPI_option_t * ptr,int cidx); 02857 long long PAPI_get_real_cyc(void); 02858 long long PAPI_get_real_nsec(void); 02859 long long PAPI_get_real_usec(void); 02860 const PAPI_shlib_info_t *PAPI_get_shared_lib_info(void); 02861 int PAPI_get_thr_specific(int tag, void **ptr); 02862 int PAPI_get_overflow_event_index(int Eventset, long long overflow_vector, int *array, int *number); 02863 long long PAPI_get_virt_cyc(void); 02864 long long PAPI_get_virt_nsec(void); 02865 long long PAPI_get_virt_usec(void); 02866 int PAPI_is_initialized(void); 02867 int PAPI_library_init(int version); 02868 int PAPI_list_events(int EventSet, int *Events, int *number); 02869 int PAPI_list_threads(unsigned long *tids, int *number); 02870 int PAPI_lock(int); 02871 int PAPI_multiplex_init(void); 02872 int PAPI_num_cmp_hwctrs(int cidx); 02873 int PAPI_num_events(int EventSet); 02874 int PAPI_overflow(int EventSet, int EventCode, int threshold, 02875 int flags, PAPI_overflow_handler_t handler); 02876 void PAPI_perror(char *msg ); 02877 int PAPI_profil(void *buf, unsigned bufsiz, caddr_t offset, 02878 unsigned scale, int EventSet, int EventCode, 02879 int threshold, int flags); 02880 int PAPI_query_event(int EventCode); 02881 int PAPI_query_named_event(char *EventName); 02882 int PAPI_read(int EventSet, long long * values); 02883 int PAPI_read_ts(int EventSet, long long * values, long long *cyc); 02884 int PAPI_register_thread(void); 02885 int PAPI_remove_event(int EventSet, int EventCode); 02886 int PAPI_remove_named_event(int EventSet, char *EventName); 02887 int PAPI_remove_events(int EventSet, int *Events, int number); 02888 int PAPI_reset(int EventSet); 02889 int PAPI_set_debug(int level); 02890 int PAPI_set_cmp_domain(int domain, int cidx); 02891 int PAPI_set_domain(int domain); 02892 int PAPI_set_cmp_granularity(int granularity, int cidx); 02893 int PAPI_set_granularity(int granularity); 02894 int PAPI_set_multiplex(int EventSet); 02895 int PAPI_set_opt(int option, PAPI_option_t * ptr); 02896 int PAPI_set_thr_specific(int tag, void *ptr); 02897 void PAPI_shutdown(void); 02898 int PAPI_sprofil(PAPI_sprofil_t * prof, int profcnt, int EventSet, int EventCode, int threshold, int flags); 02899 int PAPI_start(int EventSet); 02900 int PAPI_state(int EventSet, int *status); 02901 int PAPI_stop(int EventSet, long long * values); 02902 char *PAPI_strerror(int); 02903 unsigned long PAPI_thread_id(void); 02904 int PAPI_thread_init(unsigned long (*id_fn) (void)); 02905 int PAPI_unlock(int); 02906 int PAPI_unregister_thread(void); 02907 int PAPI_write(int EventSet, long long * values); 02908 int PAPI_get_event_component(int EventCode); 02909 int PAPI_get_eventset_component(int EventSet); 02910 int PAPI_get_component_index(char *name); 02911 int PAPI_disable_component(int cidx); 02912 int PAPI_disable_component_by_name( char *name ); 02913 # 1110 "papi.h" 02914 int PAPI_accum_counters(long long * values, int array_len); 02915 int PAPI_num_counters(void); 02916 int PAPI_num_components(void); 02917 int PAPI_read_counters(long long * values, int array_len); 02918 int PAPI_start_counters(int *events, int array_len); 02919 int PAPI_stop_counters(long long * values, int array_len); 02920 int PAPI_flips(float *rtime, float *ptime, long long * flpins, float *mflips); 02921 int PAPI_flops(float *rtime, float *ptime, long long * flpops, float *mflops); 02922 int PAPI_ipc(float *rtime, float *ptime, long long * ins, float *ipc); 02923 int PAPI_epc(int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc); 02924 02925 02926 02927 02928 02929 int PAPI_num_hwctrs(void); 02930 # 26 "papi_fwrappers.c" 2 02931 # 49 "papi_fwrappers.c" 02932 static void Fortran2cstring( char *cstring, char *Fstring, int clen , int Flen ) 02933 { 02934 int slen, i; 02935 02936 02937 slen = Flen < clen ? Flen : clen; 02938 strncpy( cstring, Fstring, ( size_t ) slen ); 02939 02940 02941 for ( i = slen - 1; i > -1 && cstring[i] == ' '; cstring[i--] = '\0' ); 02942 02943 02944 cstring[clen - 1] = '\0'; 02945 if ( slen < clen ) 02946 cstring[slen] = '\0'; 02947 } 02948 # 77 "papi_fwrappers.c" 02949 void PAPIF_ACCUM ( int *EventSet, long long *values, int *check ) 02950 02951 { 02952 *check = PAPI_accum( *EventSet, values ); 02953 } 02954 # 93 "papi_fwrappers.c" 02955 void PAPIF_ADD_EVENT ( int *EventSet, int *Event, int *check ) 02956 02957 { 02958 *check = PAPI_add_event( *EventSet, *Event ); 02959 } 02960 # 110 "papi_fwrappers.c" 02961 void PAPIF_ADD_NAMED_EVENT ( int *EventSet, char *EventName, int *check, int Event_len ) 02962 02963 { 02964 char tmp[128]; 02965 Fortran2cstring( tmp, EventName, 128, Event_len ); 02966 *check = PAPI_add_named_event( *EventSet, tmp ); 02967 } 02968 # 135 "papi_fwrappers.c" 02969 void PAPIF_ADD_EVENTS ( int *EventSet, int *Events, int *number, int *check ) 02970 02971 { 02972 *check = PAPI_add_events( *EventSet, Events, *number ); 02973 } 02974 # 151 "papi_fwrappers.c" 02975 void PAPIF_CLEANUP_EVENTSET ( int *EventSet, int *check ) 02976 02977 { 02978 *check = PAPI_cleanup_eventset( *EventSet ); 02979 } 02980 # 167 "papi_fwrappers.c" 02981 void PAPIF_CREATE_EVENTSET ( int *EventSet, int *check ) 02982 02983 { 02984 *check = PAPI_create_eventset( EventSet ); 02985 } 02986 # 183 "papi_fwrappers.c" 02987 void PAPIF_ASSIGN_EVENTSET_COMPONENT ( int *EventSet, int *cidx, int *check ) 02988 02989 { 02990 *check = PAPI_assign_eventset_component( *EventSet, *cidx ); 02991 } 02992 # 199 "papi_fwrappers.c" 02993 void PAPIF_DESTROY_EVENTSET ( int *EventSet, int *check ) 02994 02995 { 02996 *check = PAPI_destroy_eventset( EventSet ); 02997 } 02998 # 216 "papi_fwrappers.c" 02999 void PAPIF_GET_DMEM_INFO ( long long *dest, int *check ) 03000 03001 { 03002 *check = PAPI_get_dmem_info( ( PAPI_dmem_info_t * ) dest ); 03003 } 03004 # 236 "papi_fwrappers.c" 03005 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 ) 03006 # 247 "papi_fwrappers.c" 03007 { 03008 PAPI_option_t e; 03009 03010 03011 03012 03013 03014 if ( ( *check = PAPI_get_opt( 17, &e ) ) == 0 ) { 03015 03016 int i; 03017 strncpy( fullname, e.exe_info->fullname, ( size_t ) fullname_len ); 03018 for ( i = ( int ) strlen( e.exe_info->fullname ); i < fullname_len; 03019 fullname[i++] = ' ' ); 03020 strncpy( name, e.exe_info->address_info.name, ( size_t ) name_len ); 03021 for ( i = ( int ) strlen( e.exe_info->address_info.name ); i < name_len; 03022 name[i++] = ' ' ); 03023 03024 03025 03026 03027 *text_start = ( long ) e.exe_info->address_info.text_start; 03028 *text_end = ( long ) e.exe_info->address_info.text_end; 03029 *data_start = ( long ) e.exe_info->address_info.data_start; 03030 *data_end = ( long ) e.exe_info->address_info.data_end; 03031 *bss_start = ( long ) e.exe_info->address_info.bss_start; 03032 *bss_end = ( long ) e.exe_info->address_info.bss_end; 03033 } 03034 } 03035 # 289 "papi_fwrappers.c" 03036 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 ) 03037 # 315 "papi_fwrappers.c" 03038 { 03039 const PAPI_hw_info_t *hwinfo; 03040 int i; 03041 hwinfo = PAPI_get_hardware_info( ); 03042 if ( hwinfo == ((void *)0) ) { 03043 *ncpu = 0; 03044 *nnodes = 0; 03045 *totalcpus = 0; 03046 *vendor = 0; 03047 *model = 0; 03048 *revision = 0; 03049 *mhz = 0; 03050 } else { 03051 *ncpu = hwinfo->ncpu; 03052 *nnodes = hwinfo->nnodes; 03053 *totalcpus = hwinfo->totalcpus; 03054 *vendor = hwinfo->vendor; 03055 *model = hwinfo->model; 03056 *revision = hwinfo->revision; 03057 *mhz = hwinfo->cpu_max_mhz; 03058 03059 strncpy( vendor_str, hwinfo->vendor_string, ( size_t ) vendor_len ); 03060 for ( i = ( int ) strlen( hwinfo->vendor_string ); i < vendor_len; 03061 vendor_str[i++] = ' ' ); 03062 strncpy( model_str, hwinfo->model_string, ( size_t ) model_len ); 03063 for ( i = ( int ) strlen( hwinfo->model_string ); i < model_len; 03064 model_str[i++] = ' ' ); 03065 03066 03067 03068 03069 03070 03071 03072 } 03073 return; 03074 } 03075 # 364 "papi_fwrappers.c" 03076 void PAPIF_num_hwctrs ( int *num ) 03077 { 03078 *num = PAPI_num_hwctrs( ); 03079 } 03080 # 380 "papi_fwrappers.c" 03081 void PAPIF_num_cmp_hwctrs ( int *cidx, int *num ) 03082 03083 { 03084 *num = PAPI_num_cmp_hwctrs( *cidx ); 03085 } 03086 # 396 "papi_fwrappers.c" 03087 void PAPIF_GET_REAL_CYC ( long long *real_cyc ) 03088 { 03089 *real_cyc = PAPI_get_real_cyc( ); 03090 } 03091 # 411 "papi_fwrappers.c" 03092 void PAPIF_GET_REAL_USEC ( long long *time ) 03093 { 03094 *time = PAPI_get_real_usec( ); 03095 } 03096 # 426 "papi_fwrappers.c" 03097 void PAPIF_GET_REAL_NSEC ( long long *time ) 03098 { 03099 *time = PAPI_get_real_nsec( ); 03100 } 03101 # 441 "papi_fwrappers.c" 03102 void PAPIF_GET_VIRT_CYC ( long long *virt_cyc ) 03103 { 03104 *virt_cyc = PAPI_get_virt_cyc( ); 03105 } 03106 # 456 "papi_fwrappers.c" 03107 void PAPIF_GET_VIRT_USEC ( long long *time ) 03108 { 03109 *time = PAPI_get_virt_usec( ); 03110 } 03111 # 471 "papi_fwrappers.c" 03112 void PAPIF_IS_INITIALIZED ( int *level ) 03113 { 03114 *level = PAPI_is_initialized( ); 03115 } 03116 # 486 "papi_fwrappers.c" 03117 void PAPIF_LIBRARY_INIT ( int *check ) 03118 { 03119 *check = PAPI_library_init( *check ); 03120 } 03121 # 501 "papi_fwrappers.c" 03122 void PAPIF_THREAD_ID ( unsigned long *id ) 03123 { 03124 *id = PAPI_thread_id( ); 03125 } 03126 # 516 "papi_fwrappers.c" 03127 void PAPIF_REGISTER_THREAD ( int *check ) 03128 { 03129 *check = PAPI_register_thread( ); 03130 } 03131 # 531 "papi_fwrappers.c" 03132 void PAPIF_UNREGSTER_THREAD ( int *check ) 03133 { 03134 *check = PAPI_unregister_thread( ); 03135 } 03136 # 547 "papi_fwrappers.c" 03137 void PAPIF_THREAD_INIT ( unsigned long int ( *handle ) ( void ), int *check ) 03138 03139 { 03140 *check = PAPI_thread_init( handle ); 03141 } 03142 # 563 "papi_fwrappers.c" 03143 void PAPIF_LIST_EVENTS ( int *EventSet, int *Events, int *number, int *check ) 03144 03145 { 03146 *check = PAPI_list_events( *EventSet, Events, number ); 03147 } 03148 # 579 "papi_fwrappers.c" 03149 void PAPIF_MULTIPLEX_INIT ( int *check ) 03150 { 03151 *check = PAPI_multiplex_init( ); 03152 } 03153 # 594 "papi_fwrappers.c" 03154 void PAPIF_GET_MULTIPLEX ( int *EventSet, int *check ) 03155 03156 { 03157 *check = PAPI_get_multiplex( *EventSet ); 03158 } 03159 # 610 "papi_fwrappers.c" 03160 void PAPIF_SET_MULTIPLEX ( int *EventSet, int *check ) 03161 03162 { 03163 *check = PAPI_set_multiplex( *EventSet ); 03164 } 03165 # 627 "papi_fwrappers.c" 03166 void PAPIF_PERROR ( char *message, int message_len ) 03167 03168 03169 03170 03171 03172 03173 { 03174 03175 char tmp[128]; 03176 Fortran2cstring( tmp, message, 128, message_len ); 03177 03178 PAPI_perror( tmp ); 03179 03180 03181 03182 } 03183 # 663 "papi_fwrappers.c" 03184 void PAPIF_QUERY_EVENT ( int *EventCode, int *check ) 03185 03186 { 03187 *check = PAPI_query_event( *EventCode ); 03188 } 03189 # 680 "papi_fwrappers.c" 03190 void PAPIF_QUERY_NAMED_EVENT ( char *EventName, int *check, int Event_len ) 03191 03192 { 03193 char tmp[128]; 03194 Fortran2cstring( tmp, EventName, 128, Event_len ); 03195 *check = PAPI_query_named_event( tmp ); 03196 } 03197 # 708 "papi_fwrappers.c" 03198 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 ) 03199 # 718 "papi_fwrappers.c" 03200 { 03201 PAPI_event_info_t info; 03202 ( void ) flags; 03203 03204 int i; 03205 if ( ( *check = PAPI_get_event_info( *EventCode, &info ) ) == 0 ) { 03206 strncpy( symbol, info.symbol, ( size_t ) symbol_len ); 03207 for ( i = ( int ) strlen( info.symbol ); i < symbol_len; 03208 symbol[i++] = ' ' ); 03209 strncpy( long_descr, info.long_descr, ( size_t ) long_descr_len ); 03210 for ( i = ( int ) strlen( info.long_descr ); i < long_descr_len; 03211 long_descr[i++] = ' ' ); 03212 strncpy( short_descr, info.short_descr, ( size_t ) short_descr_len ); 03213 for ( i = ( int ) strlen( info.short_descr ); i < short_descr_len; 03214 short_descr[i++] = ' ' ); 03215 03216 *count = ( int ) info.count; 03217 03218 int note_len=0; 03219 03220 strncpy( event_note, info.note, ( size_t ) event_note_len ); 03221 note_len=strlen(info.note); 03222 03223 for ( i = note_len; i < event_note_len; 03224 event_note[i++] = ' ' ); 03225 } 03226 # 757 "papi_fwrappers.c" 03227 } 03228 # 770 "papi_fwrappers.c" 03229 void PAPIF_EVENT_CODE_TO_NAME ( int *EventCode, char *out_str, int *check, int out_len ) 03230 03231 03232 03233 03234 03235 { 03236 03237 char tmp[128]; 03238 int i; 03239 *check = PAPI_event_code_to_name( *EventCode, tmp ); 03240 03241 strncpy( out_str, tmp, ( size_t ) out_len ); 03242 03243 for ( i = ( int ) strlen( tmp ); i < out_len; out_str[i++] = ' ' ); 03244 03245 03246 03247 03248 } 03249 # 802 "papi_fwrappers.c" 03250 void PAPIF_EVENT_NAME_TO_CODE ( char *in_str, int *out, int *check, int in_len ) 03251 03252 03253 03254 03255 03256 { 03257 03258 int slen, i; 03259 char tmpin[128]; 03260 03261 03262 slen = in_len < 128 ? in_len : 128; 03263 strncpy( tmpin, in_str, ( size_t ) slen ); 03264 03265 03266 for ( i = slen - 1; i > -1 && tmpin[i] == ' '; tmpin[i--] = '\0' ); 03267 03268 03269 tmpin[128 - 1] = '\0'; 03270 if ( slen < 128 ) 03271 tmpin[slen] = '\0'; 03272 03273 *check = PAPI_event_name_to_code( tmpin, out ); 03274 03275 03276 03277 03278 } 03279 # 842 "papi_fwrappers.c" 03280 void PAPIF_NUM_EVENTS ( int *EventCode, int *count ) 03281 { 03282 *count = PAPI_num_events( *EventCode ); 03283 } 03284 # 857 "papi_fwrappers.c" 03285 void PAPIF_ENUM_EVENT ( int *EventCode, int *modifier, int *check ) 03286 03287 { 03288 *check = PAPI_enum_event( EventCode, *modifier ); 03289 } 03290 # 873 "papi_fwrappers.c" 03291 void PAPIF_READ ( int *EventSet, long long *values, int *check ) 03292 03293 { 03294 *check = PAPI_read( *EventSet, values ); 03295 } 03296 # 889 "papi_fwrappers.c" 03297 void PAPIF_READ_TS ( int *EventSet, long long *values, long long *cycles, int *check ) 03298 03299 { 03300 *check = PAPI_read_ts( *EventSet, values, cycles ); 03301 } 03302 # 905 "papi_fwrappers.c" 03303 void PAPIF_REMOVE_EVENT ( int *EventSet, int *Event, int *check ) 03304 03305 { 03306 *check = PAPI_remove_event( *EventSet, *Event ); 03307 } 03308 # 922 "papi_fwrappers.c" 03309 void PAPIF_REMOVE_NAMED_EVENT ( int *EventSet, char *EventName, int *check, int Event_len ) 03310 03311 { 03312 char tmp[128]; 03313 Fortran2cstring( tmp, EventName, 128, Event_len ); 03314 *check = PAPI_remove_named_event( *EventSet, tmp ); 03315 } 03316 # 947 "papi_fwrappers.c" 03317 void PAPIF_REMOVE_EVENTS ( int *EventSet, int *Events, int *number, int *check ) 03318 03319 { 03320 *check = PAPI_remove_events( *EventSet, Events, *number ); 03321 } 03322 # 963 "papi_fwrappers.c" 03323 void PAPIF_RESET ( int *EventSet, int *check ) 03324 { 03325 *check = PAPI_reset( *EventSet ); 03326 } 03327 # 978 "papi_fwrappers.c" 03328 void PAPIF_SET_DEBUG ( int *debug, int *check ) 03329 { 03330 *check = PAPI_set_debug( *debug ); 03331 } 03332 # 993 "papi_fwrappers.c" 03333 void PAPIF_SET_DOMAIN ( int *domain, int *check ) 03334 { 03335 *check = PAPI_set_domain( *domain ); 03336 } 03337 # 1008 "papi_fwrappers.c" 03338 void PAPIF_SET_CMP_DOMAIN ( int *domain, int *cidx, int *check ) 03339 03340 { 03341 *check = PAPI_set_cmp_domain( *domain, *cidx ); 03342 } 03343 # 1024 "papi_fwrappers.c" 03344 void PAPIF_SET_GRANULARITY ( int *granularity, int *check ) 03345 03346 { 03347 *check = PAPI_set_granularity( *granularity ); 03348 } 03349 # 1040 "papi_fwrappers.c" 03350 void PAPIF_SET_CMP_GRANULARITY ( int *granularity, int *cidx, int *check ) 03351 03352 { 03353 *check = PAPI_set_cmp_granularity( *granularity, *cidx ); 03354 } 03355 # 1056 "papi_fwrappers.c" 03356 void PAPIF_SHUTDOWN ( void ) 03357 { 03358 PAPI_shutdown( ); 03359 } 03360 # 1071 "papi_fwrappers.c" 03361 void PAPIF_START ( int *EventSet, int *check ) 03362 { 03363 *check = PAPI_start( *EventSet ); 03364 } 03365 # 1086 "papi_fwrappers.c" 03366 void PAPIF_STATE ( int *EventSet, int *status, int *check ) 03367 03368 { 03369 *check = PAPI_state( *EventSet, status ); 03370 } 03371 # 1102 "papi_fwrappers.c" 03372 void PAPIF_STOP ( int *EventSet, long long *values, int *check ) 03373 03374 { 03375 *check = PAPI_stop( *EventSet, values ); 03376 } 03377 # 1118 "papi_fwrappers.c" 03378 void PAPIF_WRITE ( int *EventSet, long long *values, int *check ) 03379 03380 { 03381 *check = PAPI_write( *EventSet, values ); 03382 } 03383 # 1134 "papi_fwrappers.c" 03384 void PAPIF_LOCK ( int *lock, int *check ) 03385 03386 { 03387 *check = PAPI_lock( *lock ); 03388 } 03389 # 1150 "papi_fwrappers.c" 03390 void PAPIF_unlock ( int *lock, int *check ) 03391 03392 { 03393 *check = PAPI_unlock( *lock ); 03394 } 03395 # 1168 "papi_fwrappers.c" 03396 void PAPIF_START_COUNTERS ( int *events, int *array_len, int *check ) 03397 03398 { 03399 *check = PAPI_start_counters( events, *array_len ); 03400 } 03401 # 1184 "papi_fwrappers.c" 03402 void PAPIF_READ_COUNTERS ( long long *values, int *array_len, int *check ) 03403 03404 { 03405 *check = PAPI_read_counters( values, *array_len ); 03406 } 03407 # 1200 "papi_fwrappers.c" 03408 void PAPIF_STOP_COUNTERS ( long long *values, int *array_len, int *check ) 03409 03410 { 03411 *check = PAPI_stop_counters( values, *array_len ); 03412 } 03413 # 1216 "papi_fwrappers.c" 03414 void PAPIF_ACCUM_COUNTERS ( long long *values, int *array_len, int *check ) 03415 03416 { 03417 *check = PAPI_accum_counters( values, *array_len ); 03418 } 03419 # 1232 "papi_fwrappers.c" 03420 void PAPIF_NUM_COUNTERS ( int *numevents ) 03421 { 03422 *numevents = PAPI_num_counters( ); 03423 } 03424 # 1247 "papi_fwrappers.c" 03425 void PAPIF_IPC ( float *rtime, float *ptime, long long *ins, float *ipc, int *check ) 03426 03427 03428 { 03429 *check = PAPI_ipc( rtime, ptime, ins, ipc ); 03430 } 03431 # 1264 "papi_fwrappers.c" 03432 void PAPIF_EPC ( int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc, int *check) 03433 03434 03435 03436 { 03437 *check = PAPI_epc( event, rtime, ptime, ref, core, evt, epc ); 03438 } 03439 # 1282 "papi_fwrappers.c" 03440 void PAPIF_FLIPS ( float *real_time, float *proc_time, long long *flpins, float *mflips, int *check ) 03441 03442 03443 { 03444 *check = PAPI_flips( real_time, proc_time, flpins, mflips ); 03445 } 03446 # 1299 "papi_fwrappers.c" 03447 void PAPIF_FLOPS ( float *real_time, float *proc_time, long long *flpops, float *mflops, int *check ) 03448 03449 03450 { 03451 *check = PAPI_flops( real_time, proc_time, flpops, mflops ); 03452 } 03453 # 1321 "papi_fwrappers.c" 03454 void PAPIF_GET_CLOCKRATE ( int *cr ) 03455 { 03456 *cr = PAPI_get_opt( 14, ((void *)0) ); 03457 } 03458 # 1339 "papi_fwrappers.c" 03459 void PAPIF_GET_PRELOAD ( char *lib_preload_env, int *check, int lib_preload_env_len ) 03460 03461 03462 03463 03464 03465 { 03466 PAPI_option_t p; 03467 03468 int i; 03469 03470 if ( ( *check = PAPI_get_opt( 13, &p ) ) == 0 ) { 03471 strncpy( lib_preload_env, p.preload.lib_preload_env, 03472 ( size_t ) lib_preload_env_len ); 03473 for ( i = ( int ) strlen( p.preload.lib_preload_env ); 03474 i < lib_preload_env_len; lib_preload_env[i++] = ' ' ); 03475 } 03476 03477 03478 03479 03480 03481 } 03482 # 1373 "papi_fwrappers.c" 03483 void PAPIF_GET_GRANULARITY ( int *eventset, int *granularity, int *mode, int *check ) 03484 03485 { 03486 PAPI_option_t g; 03487 03488 if ( *mode == 6 ) { 03489 *granularity = PAPI_get_opt( *mode, &g ); 03490 *check = 0; 03491 } else if ( *mode == 7 ) { 03492 g.granularity.eventset = *eventset; 03493 if ( ( *check = PAPI_get_opt( *mode, &g ) ) == 0 ) { 03494 *granularity = g.granularity.granularity; 03495 } 03496 } else { 03497 *check = -1; 03498 } 03499 } 03500 # 1401 "papi_fwrappers.c" 03501 void PAPIF_GET_DOMAIN ( int *eventset, int *domain, int *mode, int *check ) 03502 03503 { 03504 PAPI_option_t d; 03505 03506 if ( *mode == 4 ) { 03507 *domain = PAPI_get_opt( *mode, ((void *)0) ); 03508 *check = 0; 03509 } else if ( *mode == 5 ) { 03510 d.domain.eventset = *eventset; 03511 if ( ( *check = PAPI_get_opt( *mode, &d ) ) == 0 ) { 03512 *domain = d.domain.domain; 03513 } 03514 } else { 03515 *check = -1; 03516 } 03517 } 03518 # 1441 "papi_fwrappers.c" 03519 void PAPIF_SET_EVENT_DOMAIN ( int *es, int *domain, int *check ) 03520 03521 { 03522 PAPI_option_t d; 03523 03524 d.domain.domain = *domain; 03525 d.domain.eventset = *es; 03526 *check = PAPI_set_opt( 5, &d ); 03527 } 03528 # 1461 "papi_fwrappers.c" 03529 void PAPIF_SET_INHERIT ( int *inherit, int *check ) 03530 { 03531 PAPI_option_t i; 03532 03533 i.inherit.inherit = *inherit; 03534 *check = PAPI_set_opt( 28, &i ); 03535 }