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