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