PAPI  5.3.0.0
papi_fwrappers_.c
Go to the documentation of this file.
00001 # 1 "papi_fwrappers.c"
00002 # 1 "<command-line>"
00003 # 1 "/usr/include/stdc-predef.h" 1 3 4
00004 # 1 "<command-line>" 2
00005 # 1 "papi_fwrappers.c"
00006 # 22 "papi_fwrappers.c"
00007 # 1 "/usr/include/stdio.h" 1 3 4
00008 # 27 "/usr/include/stdio.h" 3 4
00009 # 1 "/usr/include/features.h" 1 3 4
00010 # 375 "/usr/include/features.h" 3 4
00011 # 1 "/usr/include/sys/cdefs.h" 1 3 4
00012 # 387 "/usr/include/sys/cdefs.h" 3 4
00013 # 1 "/usr/include/bits/wordsize.h" 1 3 4
00014 # 388 "/usr/include/sys/cdefs.h" 2 3 4
00015 # 376 "/usr/include/features.h" 2 3 4
00016 # 399 "/usr/include/features.h" 3 4
00017 # 1 "/usr/include/gnu/stubs.h" 1 3 4
00018 
00019 
00020 
00021 
00022 
00023 
00024 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
00025 # 8 "/usr/include/gnu/stubs.h" 2 3 4
00026 # 400 "/usr/include/features.h" 2 3 4
00027 # 28 "/usr/include/stdio.h" 2 3 4
00028 
00029 
00030 
00031 
00032 
00033 # 1 "/usr/lib/gcc/i586-alt-linux/4.8/include/stddef.h" 1 3 4
00034 # 212 "/usr/lib/gcc/i586-alt-linux/4.8/include/stddef.h" 3 4
00035 typedef unsigned int size_t;
00036 # 34 "/usr/include/stdio.h" 2 3 4
00037 
00038 # 1 "/usr/include/bits/types.h" 1 3 4
00039 # 27 "/usr/include/bits/types.h" 3 4
00040 # 1 "/usr/include/bits/wordsize.h" 1 3 4
00041 # 28 "/usr/include/bits/types.h" 2 3 4
00042 
00043 
00044 typedef unsigned char __u_char;
00045 typedef unsigned short int __u_short;
00046 typedef unsigned int __u_int;
00047 typedef unsigned long int __u_long;
00048 
00049 
00050 typedef signed char __int8_t;
00051 typedef unsigned char __uint8_t;
00052 typedef signed short int __int16_t;
00053 typedef unsigned short int __uint16_t;
00054 typedef signed int __int32_t;
00055 typedef unsigned int __uint32_t;
00056 
00057 
00058 
00059 
00060 __extension__ typedef signed long long int __int64_t;
00061 __extension__ typedef unsigned long long int __uint64_t;
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 __extension__ typedef long long int __quad_t;
00070 __extension__ typedef unsigned long long int __u_quad_t;
00071 # 130 "/usr/include/bits/types.h" 3 4
00072 # 1 "/usr/include/bits/typesizes.h" 1 3 4
00073 # 131 "/usr/include/bits/types.h" 2 3 4
00074 
00075 
00076 __extension__ typedef __u_quad_t __dev_t;
00077 __extension__ typedef unsigned int __uid_t;
00078 __extension__ typedef unsigned int __gid_t;
00079 __extension__ typedef unsigned long int __ino_t;
00080 __extension__ typedef __u_quad_t __ino64_t;
00081 __extension__ typedef unsigned int __mode_t;
00082 __extension__ typedef unsigned int __nlink_t;
00083 __extension__ typedef long int __off_t;
00084 __extension__ typedef __quad_t __off64_t;
00085 __extension__ typedef int __pid_t;
00086 __extension__ typedef struct { int __val[2]; } __fsid_t;
00087 __extension__ typedef long int __clock_t;
00088 __extension__ typedef unsigned long int __rlim_t;
00089 __extension__ typedef __u_quad_t __rlim64_t;
00090 __extension__ typedef unsigned int __id_t;
00091 __extension__ typedef long int __time_t;
00092 __extension__ typedef unsigned int __useconds_t;
00093 __extension__ typedef long int __suseconds_t;
00094 
00095 __extension__ typedef int __daddr_t;
00096 __extension__ typedef int __key_t;
00097 
00098 
00099 __extension__ typedef int __clockid_t;
00100 
00101 
00102 __extension__ typedef void * __timer_t;
00103 
00104 
00105 __extension__ typedef long int __blksize_t;
00106 
00107 
00108 
00109 
00110 __extension__ typedef long int __blkcnt_t;
00111 __extension__ typedef __quad_t __blkcnt64_t;
00112 
00113 
00114 __extension__ typedef unsigned long int __fsblkcnt_t;
00115 __extension__ typedef __u_quad_t __fsblkcnt64_t;
00116 
00117 
00118 __extension__ typedef unsigned long int __fsfilcnt_t;
00119 __extension__ typedef __u_quad_t __fsfilcnt64_t;
00120 
00121 
00122 __extension__ typedef int __fsword_t;
00123 
00124 __extension__ typedef int __ssize_t;
00125 
00126 
00127 __extension__ typedef long int __syscall_slong_t;
00128 
00129 __extension__ typedef unsigned long int __syscall_ulong_t;
00130 
00131 
00132 
00133 typedef __off64_t __loff_t;
00134 typedef __quad_t *__qaddr_t;
00135 typedef char *__caddr_t;
00136 
00137 
00138 __extension__ typedef int __intptr_t;
00139 
00140 
00141 __extension__ typedef unsigned int __socklen_t;
00142 # 36 "/usr/include/stdio.h" 2 3 4
00143 # 44 "/usr/include/stdio.h" 3 4
00144 struct _IO_FILE;
00145 
00146 
00147 
00148 typedef struct _IO_FILE FILE;
00149 
00150 
00151 
00152 
00153 
00154 # 64 "/usr/include/stdio.h" 3 4
00155 typedef struct _IO_FILE __FILE;
00156 # 74 "/usr/include/stdio.h" 3 4
00157 # 1 "/usr/include/libio.h" 1 3 4
00158 # 32 "/usr/include/libio.h" 3 4
00159 # 1 "/usr/include/_G_config.h" 1 3 4
00160 # 15 "/usr/include/_G_config.h" 3 4
00161 # 1 "/usr/lib/gcc/i586-alt-linux/4.8/include/stddef.h" 1 3 4
00162 # 16 "/usr/include/_G_config.h" 2 3 4
00163 
00164 
00165 
00166 
00167 # 1 "/usr/include/wchar.h" 1 3 4
00168 # 82 "/usr/include/wchar.h" 3 4
00169 typedef struct
00170 {
00171   int __count;
00172   union
00173   {
00174 
00175     unsigned int __wch;
00176 
00177 
00178 
00179     char __wchb[4];
00180   } __value;
00181 } __mbstate_t;
00182 # 21 "/usr/include/_G_config.h" 2 3 4
00183 typedef struct
00184 {
00185   __off_t __pos;
00186   __mbstate_t __state;
00187 } _G_fpos_t;
00188 typedef struct
00189 {
00190   __off64_t __pos;
00191   __mbstate_t __state;
00192 } _G_fpos64_t;
00193 # 33 "/usr/include/libio.h" 2 3 4
00194 # 50 "/usr/include/libio.h" 3 4
00195 # 1 "/usr/lib/gcc/i586-alt-linux/4.8/include/stdarg.h" 1 3 4
00196 # 40 "/usr/lib/gcc/i586-alt-linux/4.8/include/stdarg.h" 3 4
00197 typedef __builtin_va_list __gnuc_va_list;
00198 # 51 "/usr/include/libio.h" 2 3 4
00199 # 145 "/usr/include/libio.h" 3 4
00200 struct _IO_jump_t; struct _IO_FILE;
00201 # 155 "/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 # 178 "/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 # 246 "/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 # 294 "/usr/include/libio.h" 3 4
00268   __off64_t _offset;
00269 # 303 "/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 # 339 "/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 # 391 "/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 # 435 "/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 # 465 "/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/lib/gcc/i586-alt-linux/4.8/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 # 530 "/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 # 553 "/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 # 564 "/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 # 658 "/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/lib/gcc/i586-alt-linux/4.8/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 # 28 "/usr/include/bits/byteswap.h" 3 4
01254 # 1 "/usr/include/bits/wordsize.h" 1 3 4
01255 # 29 "/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 # 36 "/usr/include/bits/byteswap.h" 2 3 4
01264 # 44 "/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 # 108 "/usr/include/bits/byteswap.h" 3 4
01271 static __inline __uint64_t
01272 __bswap_64 (__uint64_t __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[36];
01424   long int __align;
01425 };
01426 
01427 typedef union pthread_attr_t pthread_attr_t;
01428 # 81 "/usr/include/bits/pthreadtypes.h" 3 4
01429 typedef struct __pthread_internal_slist
01430 {
01431   struct __pthread_internal_slist *__next;
01432 } __pthread_slist_t;
01433 
01434 
01435 
01436 
01437 
01438 typedef union
01439 {
01440   struct __pthread_mutex_s
01441   {
01442     int __lock;
01443     unsigned int __count;
01444     int __owner;
01445 
01446 
01447 
01448 
01449 
01450     int __kind;
01451 
01452 
01453 
01454 
01455 
01456     unsigned int __nusers;
01457     __extension__ union
01458     {
01459       int __spins;
01460       __pthread_slist_t __list;
01461     };
01462 
01463   } __data;
01464   char __size[24];
01465   long int __align;
01466 } pthread_mutex_t;
01467 
01468 typedef union
01469 {
01470   char __size[4];
01471   int __align;
01472 } pthread_mutexattr_t;
01473 
01474 
01475 
01476 
01477 typedef union
01478 {
01479   struct
01480   {
01481     int __lock;
01482     unsigned int __futex;
01483     __extension__ unsigned long long int __total_seq;
01484     __extension__ unsigned long long int __wakeup_seq;
01485     __extension__ unsigned long long int __woken_seq;
01486     void *__mutex;
01487     unsigned int __nwaiters;
01488     unsigned int __broadcast_seq;
01489   } __data;
01490   char __size[48];
01491   __extension__ long long int __align;
01492 } pthread_cond_t;
01493 
01494 typedef union
01495 {
01496   char __size[4];
01497   int __align;
01498 } pthread_condattr_t;
01499 
01500 
01501 
01502 typedef unsigned int pthread_key_t;
01503 
01504 
01505 
01506 typedef int pthread_once_t;
01507 
01508 
01509 
01510 
01511 
01512 typedef union
01513 {
01514 # 185 "/usr/include/bits/pthreadtypes.h" 3 4
01515   struct
01516   {
01517     int __lock;
01518     unsigned int __nr_readers;
01519     unsigned int __readers_wakeup;
01520     unsigned int __writer_wakeup;
01521     unsigned int __nr_readers_queued;
01522     unsigned int __nr_writers_queued;
01523 
01524 
01525     unsigned char __flags;
01526     unsigned char __shared;
01527     unsigned char __pad1;
01528     unsigned char __pad2;
01529     int __writer;
01530   } __data;
01531 
01532   char __size[32];
01533   long int __align;
01534 } pthread_rwlock_t;
01535 
01536 typedef union
01537 {
01538   char __size[8];
01539   long int __align;
01540 } pthread_rwlockattr_t;
01541 
01542 
01543 
01544 
01545 
01546 typedef volatile int pthread_spinlock_t;
01547 
01548 
01549 
01550 
01551 typedef union
01552 {
01553   char __size[20];
01554   long int __align;
01555 } pthread_barrier_t;
01556 
01557 typedef union
01558 {
01559   char __size[4];
01560   int __align;
01561 } pthread_barrierattr_t;
01562 # 271 "/usr/include/sys/types.h" 2 3 4
01563 
01564 
01565 
01566 # 238 "papi.h" 2
01567 # 1 "/usr/lib/gcc/i586-alt-linux/4.8/include/limits.h" 1 3 4
01568 # 34 "/usr/lib/gcc/i586-alt-linux/4.8/include/limits.h" 3 4
01569 # 1 "/usr/lib/gcc/i586-alt-linux/4.8/include/syslimits.h" 1 3 4
01570 
01571 
01572 
01573 
01574 
01575 
01576 # 1 "/usr/lib/gcc/i586-alt-linux/4.8/include/limits.h" 1 3 4
01577 # 168 "/usr/lib/gcc/i586-alt-linux/4.8/include/limits.h" 3 4
01578 # 1 "/usr/include/limits.h" 1 3 4
01579 # 144 "/usr/include/limits.h" 3 4
01580 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
01581 # 160 "/usr/include/bits/posix1_lim.h" 3 4
01582 # 1 "/usr/include/bits/local_lim.h" 1 3 4
01583 # 38 "/usr/include/bits/local_lim.h" 3 4
01584 # 1 "/usr/include/linux/limits.h" 1 3 4
01585 # 39 "/usr/include/bits/local_lim.h" 2 3 4
01586 # 161 "/usr/include/bits/posix1_lim.h" 2 3 4
01587 # 145 "/usr/include/limits.h" 2 3 4
01588 
01589 
01590 
01591 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
01592 # 149 "/usr/include/limits.h" 2 3 4
01593 # 169 "/usr/lib/gcc/i586-alt-linux/4.8/include/limits.h" 2 3 4
01594 # 8 "/usr/lib/gcc/i586-alt-linux/4.8/include/syslimits.h" 2 3 4
01595 # 35 "/usr/lib/gcc/i586-alt-linux/4.8/include/limits.h" 2 3 4
01596 # 239 "papi.h" 2
01597 # 1 "papiStdEventDefs.h" 1
01598 # 47 "papiStdEventDefs.h"
01599 enum
01600 {
01601  PAPI_L1_DCM_idx = 0,
01602  PAPI_L1_ICM_idx,
01603  PAPI_L2_DCM_idx,
01604  PAPI_L2_ICM_idx,
01605  PAPI_L3_DCM_idx,
01606  PAPI_L3_ICM_idx,
01607  PAPI_L1_TCM_idx,
01608  PAPI_L2_TCM_idx,
01609  PAPI_L3_TCM_idx,
01610  PAPI_CA_SNP_idx,
01611  PAPI_CA_SHR_idx,
01612  PAPI_CA_CLN_idx,
01613  PAPI_CA_INV_idx,
01614  PAPI_CA_ITV_idx,
01615  PAPI_L3_LDM_idx,
01616  PAPI_L3_STM_idx,
01617 
01618  PAPI_BRU_IDL_idx,
01619  PAPI_FXU_IDL_idx,
01620  PAPI_FPU_IDL_idx,
01621  PAPI_LSU_IDL_idx,
01622  PAPI_TLB_DM_idx,
01623  PAPI_TLB_IM_idx,
01624  PAPI_TLB_TL_idx,
01625  PAPI_L1_LDM_idx,
01626  PAPI_L1_STM_idx,
01627  PAPI_L2_LDM_idx,
01628  PAPI_L2_STM_idx,
01629  PAPI_BTAC_M_idx,
01630  PAPI_PRF_DM_idx,
01631  PAPI_L3_DCH_idx,
01632  PAPI_TLB_SD_idx,
01633  PAPI_CSR_FAL_idx,
01634 
01635  PAPI_CSR_SUC_idx,
01636  PAPI_CSR_TOT_idx,
01637  PAPI_MEM_SCY_idx,
01638  PAPI_MEM_RCY_idx,
01639  PAPI_MEM_WCY_idx,
01640  PAPI_STL_ICY_idx,
01641  PAPI_FUL_ICY_idx,
01642  PAPI_STL_CCY_idx,
01643  PAPI_FUL_CCY_idx,
01644  PAPI_HW_INT_idx,
01645  PAPI_BR_UCN_idx,
01646  PAPI_BR_CN_idx,
01647  PAPI_BR_TKN_idx,
01648  PAPI_BR_NTK_idx,
01649  PAPI_BR_MSP_idx,
01650  PAPI_BR_PRC_idx,
01651 
01652  PAPI_FMA_INS_idx,
01653  PAPI_TOT_IIS_idx,
01654  PAPI_TOT_INS_idx,
01655  PAPI_INT_INS_idx,
01656  PAPI_FP_INS_idx,
01657  PAPI_LD_INS_idx,
01658  PAPI_SR_INS_idx,
01659  PAPI_BR_INS_idx,
01660  PAPI_VEC_INS_idx,
01661  PAPI_RES_STL_idx,
01662  PAPI_FP_STAL_idx,
01663  PAPI_TOT_CYC_idx,
01664  PAPI_LST_INS_idx,
01665  PAPI_SYC_INS_idx,
01666  PAPI_L1_DCH_idx,
01667  PAPI_L2_DCH_idx,
01668 
01669  PAPI_L1_DCA_idx,
01670  PAPI_L2_DCA_idx,
01671  PAPI_L3_DCA_idx,
01672  PAPI_L1_DCR_idx,
01673  PAPI_L2_DCR_idx,
01674  PAPI_L3_DCR_idx,
01675  PAPI_L1_DCW_idx,
01676  PAPI_L2_DCW_idx,
01677  PAPI_L3_DCW_idx,
01678  PAPI_L1_ICH_idx,
01679  PAPI_L2_ICH_idx,
01680  PAPI_L3_ICH_idx,
01681  PAPI_L1_ICA_idx,
01682  PAPI_L2_ICA_idx,
01683  PAPI_L3_ICA_idx,
01684  PAPI_L1_ICR_idx,
01685 
01686  PAPI_L2_ICR_idx,
01687  PAPI_L3_ICR_idx,
01688  PAPI_L1_ICW_idx,
01689  PAPI_L2_ICW_idx,
01690  PAPI_L3_ICW_idx,
01691  PAPI_L1_TCH_idx,
01692  PAPI_L2_TCH_idx,
01693  PAPI_L3_TCH_idx,
01694  PAPI_L1_TCA_idx,
01695  PAPI_L2_TCA_idx,
01696  PAPI_L3_TCA_idx,
01697  PAPI_L1_TCR_idx,
01698  PAPI_L2_TCR_idx,
01699  PAPI_L3_TCR_idx,
01700  PAPI_L1_TCW_idx,
01701  PAPI_L2_TCW_idx,
01702 
01703  PAPI_L3_TCW_idx,
01704  PAPI_FML_INS_idx,
01705  PAPI_FAD_INS_idx,
01706  PAPI_FDV_INS_idx,
01707  PAPI_FSQ_INS_idx,
01708  PAPI_FNV_INS_idx,
01709  PAPI_FP_OPS_idx,
01710  PAPI_SP_OPS_idx,
01711  PAPI_DP_OPS_idx,
01712  PAPI_VEC_SP_idx,
01713  PAPI_VEC_DP_idx,
01714  PAPI_REF_CYC_idx,
01715  PAPI_END_idx
01716 };
01717 # 240 "papi.h" 2
01718 # 475 "papi.h"
01719 enum {
01720    PAPI_ENUM_EVENTS = 0,
01721    PAPI_ENUM_FIRST,
01722    PAPI_PRESET_ENUM_AVAIL,
01723 
01724 
01725    PAPI_PRESET_ENUM_MSC,
01726    PAPI_PRESET_ENUM_INS,
01727    PAPI_PRESET_ENUM_IDL,
01728    PAPI_PRESET_ENUM_BR,
01729    PAPI_PRESET_ENUM_CND,
01730    PAPI_PRESET_ENUM_MEM,
01731    PAPI_PRESET_ENUM_CACH,
01732    PAPI_PRESET_ENUM_L1,
01733    PAPI_PRESET_ENUM_L2,
01734    PAPI_PRESET_ENUM_L3,
01735    PAPI_PRESET_ENUM_TLB,
01736    PAPI_PRESET_ENUM_FP,
01737 
01738 
01739    PAPI_NTV_ENUM_UMASKS,
01740    PAPI_NTV_ENUM_UMASK_COMBOS,
01741    PAPI_NTV_ENUM_IARR,
01742    PAPI_NTV_ENUM_DARR,
01743    PAPI_NTV_ENUM_OPCM,
01744    PAPI_NTV_ENUM_IEAR,
01745    PAPI_NTV_ENUM_DEAR,
01746    PAPI_NTV_ENUM_GROUPS
01747 };
01748 # 539 "papi.h"
01749 # 1 "/usr/include/signal.h" 1 3 4
01750 # 30 "/usr/include/signal.h" 3 4
01751 
01752 
01753 # 1 "/usr/include/bits/sigset.h" 1 3 4
01754 # 103 "/usr/include/bits/sigset.h" 3 4
01755 extern int __sigismember (const __sigset_t *, int);
01756 extern int __sigaddset (__sigset_t *, int);
01757 extern int __sigdelset (__sigset_t *, int);
01758 # 33 "/usr/include/signal.h" 2 3 4
01759 
01760 
01761 
01762 
01763 
01764 
01765 
01766 typedef __sig_atomic_t sig_atomic_t;
01767 
01768 # 57 "/usr/include/signal.h" 3 4
01769 # 1 "/usr/include/bits/signum.h" 1 3 4
01770 # 58 "/usr/include/signal.h" 2 3 4
01771 # 75 "/usr/include/signal.h" 3 4
01772 # 1 "/usr/include/time.h" 1 3 4
01773 # 76 "/usr/include/signal.h" 2 3 4
01774 
01775 
01776 
01777 
01778 # 1 "/usr/include/bits/siginfo.h" 1 3 4
01779 # 24 "/usr/include/bits/siginfo.h" 3 4
01780 # 1 "/usr/include/bits/wordsize.h" 1 3 4
01781 # 25 "/usr/include/bits/siginfo.h" 2 3 4
01782 
01783 
01784 
01785 
01786 
01787 
01788 
01789 typedef union sigval
01790   {
01791     int sival_int;
01792     void *sival_ptr;
01793   } sigval_t;
01794 # 58 "/usr/include/bits/siginfo.h" 3 4
01795 typedef __clock_t __sigchld_clock_t;
01796 
01797 
01798 
01799 typedef struct
01800   {
01801     int si_signo;
01802     int si_errno;
01803 
01804     int si_code;
01805 
01806     union
01807       {
01808  int _pad[((128 / sizeof (int)) - 3)];
01809 
01810 
01811  struct
01812    {
01813      __pid_t si_pid;
01814      __uid_t si_uid;
01815    } _kill;
01816 
01817 
01818  struct
01819    {
01820      int si_tid;
01821      int si_overrun;
01822      sigval_t si_sigval;
01823    } _timer;
01824 
01825 
01826  struct
01827    {
01828      __pid_t si_pid;
01829      __uid_t si_uid;
01830      sigval_t si_sigval;
01831    } _rt;
01832 
01833 
01834  struct
01835    {
01836      __pid_t si_pid;
01837      __uid_t si_uid;
01838      int si_status;
01839      __sigchld_clock_t si_utime;
01840      __sigchld_clock_t si_stime;
01841    } _sigchld;
01842 
01843 
01844  struct
01845    {
01846      void *si_addr;
01847    } _sigfault;
01848 
01849 
01850  struct
01851    {
01852      long int si_band;
01853      int si_fd;
01854    } _sigpoll;
01855 
01856 
01857  struct
01858    {
01859      void *_call_addr;
01860      int _syscall;
01861      unsigned int _arch;
01862    } _sigsys;
01863       } _sifields;
01864   } siginfo_t ;
01865 # 151 "/usr/include/bits/siginfo.h" 3 4
01866 enum
01867 {
01868   SI_ASYNCNL = -60,
01869 
01870   SI_TKILL = -6,
01871 
01872   SI_SIGIO,
01873 
01874   SI_ASYNCIO,
01875 
01876   SI_MESGQ,
01877 
01878   SI_TIMER,
01879 
01880   SI_QUEUE,
01881 
01882   SI_USER,
01883 
01884   SI_KERNEL = 0x80
01885 
01886 };
01887 
01888 
01889 
01890 enum
01891 {
01892   ILL_ILLOPC = 1,
01893 
01894   ILL_ILLOPN,
01895 
01896   ILL_ILLADR,
01897 
01898   ILL_ILLTRP,
01899 
01900   ILL_PRVOPC,
01901 
01902   ILL_PRVREG,
01903 
01904   ILL_COPROC,
01905 
01906   ILL_BADSTK
01907 
01908 };
01909 
01910 
01911 enum
01912 {
01913   FPE_INTDIV = 1,
01914 
01915   FPE_INTOVF,
01916 
01917   FPE_FLTDIV,
01918 
01919   FPE_FLTOVF,
01920 
01921   FPE_FLTUND,
01922 
01923   FPE_FLTRES,
01924 
01925   FPE_FLTINV,
01926 
01927   FPE_FLTSUB
01928 
01929 };
01930 
01931 
01932 enum
01933 {
01934   SEGV_MAPERR = 1,
01935 
01936   SEGV_ACCERR
01937 
01938 };
01939 
01940 
01941 enum
01942 {
01943   BUS_ADRALN = 1,
01944 
01945   BUS_ADRERR,
01946 
01947   BUS_OBJERR
01948 
01949 };
01950 
01951 
01952 enum
01953 {
01954   TRAP_BRKPT = 1,
01955 
01956   TRAP_TRACE
01957 
01958 };
01959 
01960 
01961 enum
01962 {
01963   CLD_EXITED = 1,
01964 
01965   CLD_KILLED,
01966 
01967   CLD_DUMPED,
01968 
01969   CLD_TRAPPED,
01970 
01971   CLD_STOPPED,
01972 
01973   CLD_CONTINUED
01974 
01975 };
01976 
01977 
01978 enum
01979 {
01980   POLL_IN = 1,
01981 
01982   POLL_OUT,
01983 
01984   POLL_MSG,
01985 
01986   POLL_ERR,
01987 
01988   POLL_PRI,
01989 
01990   POLL_HUP
01991 
01992 };
01993 # 301 "/usr/include/bits/siginfo.h" 3 4
01994 typedef struct sigevent
01995   {
01996     sigval_t sigev_value;
01997     int sigev_signo;
01998     int sigev_notify;
01999 
02000     union
02001       {
02002  int _pad[((64 / sizeof (int)) - 3)];
02003 
02004 
02005 
02006  __pid_t _tid;
02007 
02008  struct
02009    {
02010      void (*_function) (sigval_t);
02011      pthread_attr_t *_attribute;
02012    } _sigev_thread;
02013       } _sigev_un;
02014   } sigevent_t;
02015 
02016 
02017 
02018 
02019 
02020 
02021 enum
02022 {
02023   SIGEV_SIGNAL = 0,
02024 
02025   SIGEV_NONE,
02026 
02027   SIGEV_THREAD,
02028 
02029 
02030   SIGEV_THREAD_ID = 4
02031 
02032 };
02033 # 81 "/usr/include/signal.h" 2 3 4
02034 
02035 
02036 
02037 
02038 typedef void (*__sighandler_t) (int);
02039 
02040 
02041 
02042 
02043 extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler)
02044      __attribute__ ((__nothrow__ , __leaf__));
02045 # 100 "/usr/include/signal.h" 3 4
02046 
02047 
02048 extern __sighandler_t signal (int __sig, __sighandler_t __handler)
02049      __attribute__ ((__nothrow__ , __leaf__));
02050 # 114 "/usr/include/signal.h" 3 4
02051 
02052 # 127 "/usr/include/signal.h" 3 4
02053 extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__ , __leaf__));
02054 
02055 
02056 
02057 
02058 
02059 
02060 extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__ , __leaf__));
02061 
02062 
02063 
02064 
02065 extern int raise (int __sig) __attribute__ ((__nothrow__ , __leaf__));
02066 
02067 
02068 
02069 
02070 extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)
02071      __attribute__ ((__nothrow__ , __leaf__));
02072 extern int gsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__));
02073 
02074 
02075 
02076 
02077 extern void psignal (int __sig, const char *__s);
02078 
02079 
02080 
02081 
02082 extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
02083 # 169 "/usr/include/signal.h" 3 4
02084 extern int __sigpause (int __sig_or_mask, int __is_sig);
02085 # 197 "/usr/include/signal.h" 3 4
02086 extern int sigblock (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
02087 
02088 
02089 extern int sigsetmask (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
02090 
02091 
02092 extern int siggetmask (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
02093 # 217 "/usr/include/signal.h" 3 4
02094 typedef __sighandler_t sig_t;
02095 
02096 
02097 
02098 
02099 
02100 extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
02101 
02102 
02103 extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
02104 
02105 
02106 extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
02107 
02108 
02109 extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
02110 
02111 
02112 extern int sigismember (const sigset_t *__set, int __signo)
02113      __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
02114 # 253 "/usr/include/signal.h" 3 4
02115 # 1 "/usr/include/bits/sigaction.h" 1 3 4
02116 # 24 "/usr/include/bits/sigaction.h" 3 4
02117 struct sigaction
02118   {
02119 
02120 
02121     union
02122       {
02123 
02124  __sighandler_t sa_handler;
02125 
02126  void (*sa_sigaction) (int, siginfo_t *, void *);
02127       }
02128     __sigaction_handler;
02129 
02130 
02131 
02132 
02133 
02134 
02135 
02136     __sigset_t sa_mask;
02137 
02138 
02139     int sa_flags;
02140 
02141 
02142     void (*sa_restorer) (void);
02143   };
02144 # 254 "/usr/include/signal.h" 2 3 4
02145 
02146 
02147 extern int sigprocmask (int __how, const sigset_t *__restrict __set,
02148    sigset_t *__restrict __oset) __attribute__ ((__nothrow__ , __leaf__));
02149 
02150 
02151 
02152 
02153 
02154 
02155 extern int sigsuspend (const sigset_t *__set) __attribute__ ((__nonnull__ (1)));
02156 
02157 
02158 extern int sigaction (int __sig, const struct sigaction *__restrict __act,
02159         struct sigaction *__restrict __oact) __attribute__ ((__nothrow__ , __leaf__));
02160 
02161 
02162 extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
02163 
02164 
02165 
02166 
02167 
02168 
02169 extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig)
02170      __attribute__ ((__nonnull__ (1, 2)));
02171 
02172 
02173 
02174 
02175 
02176 
02177 extern int sigwaitinfo (const sigset_t *__restrict __set,
02178    siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1)));
02179 
02180 
02181 
02182 
02183 
02184 
02185 extern int sigtimedwait (const sigset_t *__restrict __set,
02186     siginfo_t *__restrict __info,
02187     const struct timespec *__restrict __timeout)
02188      __attribute__ ((__nonnull__ (1)));
02189 
02190 
02191 
02192 extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val)
02193      __attribute__ ((__nothrow__ , __leaf__));
02194 # 311 "/usr/include/signal.h" 3 4
02195 extern const char *const _sys_siglist[65];
02196 extern const char *const sys_siglist[65];
02197 
02198 
02199 struct sigvec
02200   {
02201     __sighandler_t sv_handler;
02202     int sv_mask;
02203 
02204     int sv_flags;
02205 
02206   };
02207 # 335 "/usr/include/signal.h" 3 4
02208 extern int sigvec (int __sig, const struct sigvec *__vec,
02209      struct sigvec *__ovec) __attribute__ ((__nothrow__ , __leaf__));
02210 
02211 
02212 
02213 # 1 "/usr/include/bits/sigcontext.h" 1 3 4
02214 # 29 "/usr/include/bits/sigcontext.h" 3 4
02215 struct _fpx_sw_bytes
02216 {
02217   __uint32_t magic1;
02218   __uint32_t extended_size;
02219   __uint64_t xstate_bv;
02220   __uint32_t xstate_size;
02221   __uint32_t padding[7];
02222 };
02223 
02224 struct _fpreg
02225 {
02226   unsigned short significand[4];
02227   unsigned short exponent;
02228 };
02229 
02230 struct _fpxreg
02231 {
02232   unsigned short significand[4];
02233   unsigned short exponent;
02234   unsigned short padding[3];
02235 };
02236 
02237 struct _xmmreg
02238 {
02239   __uint32_t element[4];
02240 };
02241 
02242 
02243 
02244 
02245 
02246 struct _fpstate
02247 {
02248 
02249   __uint32_t cw;
02250   __uint32_t sw;
02251   __uint32_t tag;
02252   __uint32_t ipoff;
02253   __uint32_t cssel;
02254   __uint32_t dataoff;
02255   __uint32_t datasel;
02256   struct _fpreg _st[8];
02257   unsigned short status;
02258   unsigned short magic;
02259 
02260 
02261   __uint32_t _fxsr_env[6];
02262   __uint32_t mxcsr;
02263   __uint32_t reserved;
02264   struct _fpxreg _fxsr_st[8];
02265   struct _xmmreg _xmm[8];
02266   __uint32_t padding[56];
02267 };
02268 # 93 "/usr/include/bits/sigcontext.h" 3 4
02269 struct sigcontext
02270 {
02271   unsigned short gs, __gsh;
02272   unsigned short fs, __fsh;
02273   unsigned short es, __esh;
02274   unsigned short ds, __dsh;
02275   unsigned long edi;
02276   unsigned long esi;
02277   unsigned long ebp;
02278   unsigned long esp;
02279   unsigned long ebx;
02280   unsigned long edx;
02281   unsigned long ecx;
02282   unsigned long eax;
02283   unsigned long trapno;
02284   unsigned long err;
02285   unsigned long eip;
02286   unsigned short cs, __csh;
02287   unsigned long eflags;
02288   unsigned long esp_at_signal;
02289   unsigned short ss, __ssh;
02290   struct _fpstate * fpstate;
02291   unsigned long oldmask;
02292   unsigned long cr2;
02293 };
02294 # 175 "/usr/include/bits/sigcontext.h" 3 4
02295 struct _xsave_hdr
02296 {
02297   __uint64_t xstate_bv;
02298   __uint64_t reserved1[2];
02299   __uint64_t reserved2[5];
02300 };
02301 
02302 struct _ymmh_state
02303 {
02304   __uint32_t ymmh_space[64];
02305 };
02306 
02307 struct _xstate
02308 {
02309   struct _fpstate fpstate;
02310   struct _xsave_hdr xstate_hdr;
02311   struct _ymmh_state ymmh;
02312 };
02313 # 341 "/usr/include/signal.h" 2 3 4
02314 
02315 
02316 extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__ , __leaf__));
02317 
02318 
02319 
02320 
02321 
02322 
02323 # 1 "/usr/lib/gcc/i586-alt-linux/4.8/include/stddef.h" 1 3 4
02324 # 351 "/usr/include/signal.h" 2 3 4
02325 
02326 
02327 
02328 
02329 extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__ , __leaf__));
02330 
02331 # 1 "/usr/include/bits/sigstack.h" 1 3 4
02332 # 25 "/usr/include/bits/sigstack.h" 3 4
02333 struct sigstack
02334   {
02335     void *ss_sp;
02336     int ss_onstack;
02337   };
02338 
02339 
02340 
02341 enum
02342 {
02343   SS_ONSTACK = 1,
02344 
02345   SS_DISABLE
02346 
02347 };
02348 # 49 "/usr/include/bits/sigstack.h" 3 4
02349 typedef struct sigaltstack
02350   {
02351     void *ss_sp;
02352     int ss_flags;
02353     size_t ss_size;
02354   } stack_t;
02355 # 358 "/usr/include/signal.h" 2 3 4
02356 
02357 
02358 # 1 "/usr/include/sys/ucontext.h" 1 3 4
02359 # 22 "/usr/include/sys/ucontext.h" 3 4
02360 # 1 "/usr/include/signal.h" 1 3 4
02361 # 23 "/usr/include/sys/ucontext.h" 2 3 4
02362 # 146 "/usr/include/sys/ucontext.h" 3 4
02363 typedef int greg_t;
02364 
02365 
02366 
02367 
02368 
02369 typedef greg_t gregset_t[19];
02370 # 200 "/usr/include/sys/ucontext.h" 3 4
02371 struct _libc_fpreg
02372 {
02373   unsigned short int significand[4];
02374   unsigned short int exponent;
02375 };
02376 
02377 struct _libc_fpstate
02378 {
02379   unsigned long int cw;
02380   unsigned long int sw;
02381   unsigned long int tag;
02382   unsigned long int ipoff;
02383   unsigned long int cssel;
02384   unsigned long int dataoff;
02385   unsigned long int datasel;
02386   struct _libc_fpreg _st[8];
02387   unsigned long int status;
02388 };
02389 
02390 
02391 typedef struct _libc_fpstate *fpregset_t;
02392 
02393 
02394 typedef struct
02395   {
02396     gregset_t gregs;
02397 
02398 
02399     fpregset_t fpregs;
02400     unsigned long int oldmask;
02401     unsigned long int cr2;
02402   } mcontext_t;
02403 
02404 
02405 typedef struct ucontext
02406   {
02407     unsigned long int uc_flags;
02408     struct ucontext *uc_link;
02409     stack_t uc_stack;
02410     mcontext_t uc_mcontext;
02411     __sigset_t uc_sigmask;
02412     struct _libc_fpstate __fpregs_mem;
02413   } ucontext_t;
02414 # 361 "/usr/include/signal.h" 2 3 4
02415 
02416 
02417 
02418 
02419 
02420 extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
02421      __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));
02422 
02423 
02424 
02425 extern int sigaltstack (const struct sigaltstack *__restrict __ss,
02426    struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__ , __leaf__));
02427 # 396 "/usr/include/signal.h" 3 4
02428 # 1 "/usr/include/bits/sigthread.h" 1 3 4
02429 # 30 "/usr/include/bits/sigthread.h" 3 4
02430 extern int pthread_sigmask (int __how,
02431        const __sigset_t *__restrict __newmask,
02432        __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__ , __leaf__));
02433 
02434 
02435 extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__ , __leaf__));
02436 # 397 "/usr/include/signal.h" 2 3 4
02437 
02438 
02439 
02440 
02441 
02442 
02443 extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__ , __leaf__));
02444 
02445 extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__ , __leaf__));
02446 
02447 
02448 
02449 
02450 # 540 "papi.h" 2
02451 # 552 "papi.h"
02452  typedef unsigned long PAPI_thread_id_t;
02453 
02454 
02455  typedef struct _papi_all_thr_spec {
02456      int num;
02457      PAPI_thread_id_t *id;
02458      void **data;
02459    } PAPI_all_thr_spec_t;
02460 
02461   typedef void (*PAPI_overflow_handler_t) (int EventSet, void *address,
02462                                 long long overflow_vector, void *context);
02463 # 575 "papi.h"
02464    typedef struct _papi_sprofil {
02465       void *pr_base;
02466       unsigned pr_size;
02467       caddr_t pr_off;
02468       unsigned pr_scale;
02469 
02470 
02471 
02472    } PAPI_sprofil_t;
02473 
02474 
02475    typedef struct _papi_itimer_option {
02476      int itimer_num;
02477      int itimer_sig;
02478      int ns;
02479      int flags;
02480    } PAPI_itimer_option_t;
02481 
02482 
02483    typedef struct _papi_inherit_option {
02484       int eventset;
02485       int inherit;
02486    } PAPI_inherit_option_t;
02487 
02488 
02489    typedef struct _papi_domain_option {
02490       int def_cidx;
02491       int eventset;
02492       int domain;
02493    } PAPI_domain_option_t;
02494 
02495 
02496    typedef struct _papi_granularity_option {
02497       int def_cidx;
02498       int eventset;
02499       int granularity;
02500    } PAPI_granularity_option_t;
02501 
02502 
02503    typedef struct _papi_preload_option {
02504       char lib_preload_env[128];
02505       char lib_preload_sep;
02506       char lib_dir_env[128];
02507       char lib_dir_sep;
02508    } PAPI_preload_info_t;
02509 
02510 
02511    typedef struct _papi_component_option {
02512      char name[128];
02513      char short_name[64];
02514 
02515      char description[128];
02516      char version[64];
02517      char support_version[64];
02518      char kernel_version[64];
02519      char disabled_reason[128];
02520      int disabled;
02521      int CmpIdx;
02522      int num_cntrs;
02523      int num_mpx_cntrs;
02524      int num_preset_events;
02525      int num_native_events;
02526      int default_domain;
02527      int available_domains;
02528      int default_granularity;
02529      int available_granularities;
02530      int hardware_intr_sig;
02531 
02532      int component_type;
02533      int reserved[8];
02534      unsigned int hardware_intr:1;
02535      unsigned int precise_intr:1;
02536      unsigned int posix1b_timers:1;
02537      unsigned int kernel_profile:1;
02538      unsigned int kernel_multiplex:1;
02539 
02540 
02541      unsigned int fast_counter_read:1;
02542      unsigned int fast_real_timer:1;
02543      unsigned int fast_virtual_timer:1;
02544      unsigned int attach:1;
02545      unsigned int attach_must_ptrace:1;
02546 
02547 
02548 
02549 
02550      unsigned int cntr_umasks:1;
02551 
02552 
02553 
02554 
02555      unsigned int cpu:1;
02556      unsigned int inherit:1;
02557      unsigned int reserved_bits:12;
02558    } PAPI_component_info_t;
02559 
02560 
02561    typedef struct _papi_mpx_info {
02562      int timer_sig;
02563      int timer_num;
02564      int timer_us;
02565    } PAPI_mpx_info_t;
02566 
02567    typedef int (*PAPI_debug_handler_t) (int code);
02568 
02569 
02570    typedef struct _papi_debug_option {
02571       int level;
02572       PAPI_debug_handler_t handler;
02573    } PAPI_debug_option_t;
02574 
02575 
02576 
02577    typedef struct _papi_address_map {
02578       char name[1024];
02579       caddr_t text_start;
02580       caddr_t text_end;
02581       caddr_t data_start;
02582       caddr_t data_end;
02583       caddr_t bss_start;
02584       caddr_t bss_end;
02585    } PAPI_address_map_t;
02586 
02587 
02588 
02589    typedef struct _papi_program_info {
02590       char fullname[1024];
02591       PAPI_address_map_t address_info;
02592    } PAPI_exe_info_t;
02593 
02594 
02595    typedef struct _papi_shared_lib_info {
02596       PAPI_address_map_t *map;
02597       int count;
02598    } PAPI_shlib_info_t;
02599 
02600 
02601 typedef char* PAPI_user_defined_events_file_t;
02602 # 742 "papi.h"
02603    typedef struct _papi_mh_tlb_info {
02604       int type;
02605       int num_entries;
02606       int page_size;
02607       int associativity;
02608    } PAPI_mh_tlb_info_t;
02609 
02610 
02611    typedef struct _papi_mh_cache_info {
02612       int type;
02613       int size;
02614       int line_size;
02615       int num_lines;
02616       int associativity;
02617    } PAPI_mh_cache_info_t;
02618 
02619 
02620    typedef struct _papi_mh_level_info {
02621       PAPI_mh_tlb_info_t tlb[6];
02622       PAPI_mh_cache_info_t cache[6];
02623    } PAPI_mh_level_t;
02624 
02625 
02626 
02627    typedef struct _papi_mh_info {
02628       int levels;
02629       PAPI_mh_level_t level[4];
02630    } PAPI_mh_info_t;
02631 
02632 
02633 
02634    typedef struct _papi_hw_info {
02635       int ncpu;
02636       int threads;
02637       int cores;
02638       int sockets;
02639       int nnodes;
02640       int totalcpus;
02641       int vendor;
02642       char vendor_string[128];
02643       int model;
02644       char model_string[128];
02645       float revision;
02646       int cpuid_family;
02647       int cpuid_model;
02648       int cpuid_stepping;
02649 
02650       int cpu_max_mhz;
02651       int cpu_min_mhz;
02652 
02653       PAPI_mh_info_t mem_hierarchy;
02654       int virtualized;
02655       char virtual_vendor_string[128];
02656 
02657       char virtual_vendor_version[128];
02658 
02659 
02660 
02661       float mhz;
02662       int clock_mhz;
02663 
02664 
02665       int reserved[8];
02666 
02667    } PAPI_hw_info_t;
02668 
02669 
02670    typedef struct _papi_attach_option {
02671       int eventset;
02672       unsigned long tid;
02673    } PAPI_attach_option_t;
02674 
02675 
02676       typedef struct _papi_cpu_option {
02677          int eventset;
02678          unsigned int cpu_num;
02679       } PAPI_cpu_option_t;
02680 
02681 
02682    typedef struct _papi_multiplex_option {
02683       int eventset;
02684       int ns;
02685       int flags;
02686    } PAPI_multiplex_option_t;
02687 
02688 
02689 
02690    typedef struct _papi_addr_range_option {
02691       int eventset;
02692       caddr_t start;
02693       caddr_t end;
02694       int start_off;
02695       int end_off;
02696    } PAPI_addr_range_option_t;
02697 
02698 
02699 
02700 
02701 
02702  typedef union
02703  {
02704   PAPI_preload_info_t preload;
02705   PAPI_debug_option_t debug;
02706   PAPI_inherit_option_t inherit;
02707   PAPI_granularity_option_t granularity;
02708   PAPI_granularity_option_t defgranularity;
02709   PAPI_domain_option_t domain;
02710   PAPI_domain_option_t defdomain;
02711   PAPI_attach_option_t attach;
02712   PAPI_cpu_option_t cpu;
02713   PAPI_multiplex_option_t multiplex;
02714   PAPI_itimer_option_t itimer;
02715   PAPI_hw_info_t *hw_info;
02716   PAPI_shlib_info_t *shlib_info;
02717   PAPI_exe_info_t *exe_info;
02718   PAPI_component_info_t *cmp_info;
02719   PAPI_addr_range_option_t addr;
02720   PAPI_user_defined_events_file_t events_file;
02721  } PAPI_option_t;
02722 
02723 
02724 
02725  typedef struct _dmem_t {
02726    long long peak;
02727    long long size;
02728    long long resident;
02729    long long high_water_mark;
02730    long long shared;
02731    long long text;
02732    long long library;
02733    long long heap;
02734    long long locked;
02735    long long stack;
02736    long long pagesize;
02737    long long pte;
02738  } PAPI_dmem_info_t;
02739 # 918 "papi.h"
02740 enum {
02741    PAPI_LOCATION_CORE = 0,
02742    PAPI_LOCATION_CPU,
02743    PAPI_LOCATION_PACKAGE,
02744    PAPI_LOCATION_UNCORE,
02745 };
02746 
02747 
02748 enum {
02749    PAPI_DATATYPE_INT64 = 0,
02750    PAPI_DATATYPE_UINT64,
02751    PAPI_DATATYPE_FP64,
02752    PAPI_DATATYPE_BIT64,
02753 };
02754 
02755 
02756 enum {
02757    PAPI_VALUETYPE_RUNNING_SUM = 0,
02758    PAPI_VALUETYPE_ABSOLUTE,
02759 };
02760 
02761 
02762 enum {
02763    PAPI_TIMESCOPE_SINCE_START = 0,
02764    PAPI_TIMESCOPE_SINCE_LAST,
02765    PAPI_TIMESCOPE_UNTIL_NEXT,
02766    PAPI_TIMESCOPE_POINT,
02767 };
02768 
02769 
02770 enum {
02771    PAPI_UPDATETYPE_ARBITRARY = 0,
02772    PAPI_UPDATETYPE_PUSH,
02773    PAPI_UPDATETYPE_PULL,
02774    PAPI_UPDATETYPE_FIXEDFREQ,
02775 };
02776 
02777 
02778    typedef struct event_info {
02779       unsigned int event_code;
02780 
02781       char symbol[1024];
02782       char short_descr[64];
02783 
02784       char long_descr[1024];
02785 
02786 
02787 
02788 
02789       int component_index;
02790       char units[64];
02791       int location;
02792       int data_type;
02793       int value_type;
02794       int timescope;
02795       int update_type;
02796       int update_freq;
02797 
02798 
02799 
02800 
02801 
02802       unsigned int count;
02803 
02804 
02805 
02806 
02807       unsigned int event_type;
02808 
02809 
02810       char derived[64];
02811 
02812 
02813       char postfix[256];
02814 
02815 
02816 
02817 
02818       unsigned int code[12];
02819 
02820 
02821 
02822 
02823       char name[12]
02824                [256];
02825 
02826 
02827 
02828      char note[1024];
02829 
02830 
02831 
02832 
02833    } PAPI_event_info_t;
02834 
02835 
02836 
02837 
02838 
02839 
02840 
02841    int PAPI_accum(int EventSet, long long * values);
02842    int PAPI_add_event(int EventSet, int Event);
02843    int PAPI_add_named_event(int EventSet, char *EventName);
02844    int PAPI_add_events(int EventSet, int *Events, int number);
02845    int PAPI_assign_eventset_component(int EventSet, int cidx);
02846    int PAPI_attach(int EventSet, unsigned long tid);
02847    int PAPI_cleanup_eventset(int EventSet);
02848    int PAPI_create_eventset(int *EventSet);
02849    int PAPI_detach(int EventSet);
02850    int PAPI_destroy_eventset(int *EventSet);
02851    int PAPI_enum_event(int *EventCode, int modifier);
02852    int PAPI_enum_cmp_event(int *EventCode, int modifier, int cidx);
02853    int PAPI_event_code_to_name(int EventCode, char *out);
02854    int PAPI_event_name_to_code(char *in, int *out);
02855    int PAPI_get_dmem_info(PAPI_dmem_info_t *dest);
02856    int PAPI_get_event_info(int EventCode, PAPI_event_info_t * info);
02857    const PAPI_exe_info_t *PAPI_get_executable_info(void);
02858    const PAPI_hw_info_t *PAPI_get_hardware_info(void);
02859    const PAPI_component_info_t *PAPI_get_component_info(int cidx);
02860    int PAPI_get_multiplex(int EventSet);
02861    int PAPI_get_opt(int option, PAPI_option_t * ptr);
02862    int PAPI_get_cmp_opt(int option, PAPI_option_t * ptr,int cidx);
02863    long long PAPI_get_real_cyc(void);
02864    long long PAPI_get_real_nsec(void);
02865    long long PAPI_get_real_usec(void);
02866    const PAPI_shlib_info_t *PAPI_get_shared_lib_info(void);
02867    int PAPI_get_thr_specific(int tag, void **ptr);
02868    int PAPI_get_overflow_event_index(int Eventset, long long overflow_vector, int *array, int *number);
02869    long long PAPI_get_virt_cyc(void);
02870    long long PAPI_get_virt_nsec(void);
02871    long long PAPI_get_virt_usec(void);
02872    int PAPI_is_initialized(void);
02873    int PAPI_library_init(int version);
02874    int PAPI_list_events(int EventSet, int *Events, int *number);
02875    int PAPI_list_threads(unsigned long *tids, int *number);
02876    int PAPI_lock(int);
02877    int PAPI_multiplex_init(void);
02878    int PAPI_num_cmp_hwctrs(int cidx);
02879     int PAPI_num_events(int EventSet);
02880    int PAPI_overflow(int EventSet, int EventCode, int threshold,
02881                      int flags, PAPI_overflow_handler_t handler);
02882    void PAPI_perror(char *msg );
02883    int PAPI_profil(void *buf, unsigned bufsiz, caddr_t offset,
02884       unsigned scale, int EventSet, int EventCode,
02885       int threshold, int flags);
02886    int PAPI_query_event(int EventCode);
02887    int PAPI_query_named_event(char *EventName);
02888    int PAPI_read(int EventSet, long long * values);
02889    int PAPI_read_ts(int EventSet, long long * values, long long *cyc);
02890    int PAPI_register_thread(void);
02891    int PAPI_remove_event(int EventSet, int EventCode);
02892    int PAPI_remove_named_event(int EventSet, char *EventName);
02893    int PAPI_remove_events(int EventSet, int *Events, int number);
02894    int PAPI_reset(int EventSet);
02895    int PAPI_set_debug(int level);
02896    int PAPI_set_cmp_domain(int domain, int cidx);
02897    int PAPI_set_domain(int domain);
02898    int PAPI_set_cmp_granularity(int granularity, int cidx);
02899    int PAPI_set_granularity(int granularity);
02900    int PAPI_set_multiplex(int EventSet);
02901    int PAPI_set_opt(int option, PAPI_option_t * ptr);
02902    int PAPI_set_thr_specific(int tag, void *ptr);
02903    void PAPI_shutdown(void);
02904    int PAPI_sprofil(PAPI_sprofil_t * prof, int profcnt, int EventSet, int EventCode, int threshold, int flags);
02905    int PAPI_start(int EventSet);
02906    int PAPI_state(int EventSet, int *status);
02907    int PAPI_stop(int EventSet, long long * values);
02908    char *PAPI_strerror(int);
02909    unsigned long PAPI_thread_id(void);
02910    int PAPI_thread_init(unsigned long (*id_fn) (void));
02911    int PAPI_unlock(int);
02912    int PAPI_unregister_thread(void);
02913    int PAPI_write(int EventSet, long long * values);
02914    int PAPI_get_event_component(int EventCode);
02915    int PAPI_get_eventset_component(int EventSet);
02916    int PAPI_get_component_index(char *name);
02917    int PAPI_disable_component(int cidx);
02918    int PAPI_disable_component_by_name( char *name );
02919 # 1110 "papi.h"
02920    int PAPI_accum_counters(long long * values, int array_len);
02921    int PAPI_num_counters(void);
02922    int PAPI_num_components(void);
02923    int PAPI_read_counters(long long * values, int array_len);
02924    int PAPI_start_counters(int *events, int array_len);
02925    int PAPI_stop_counters(long long * values, int array_len);
02926    int PAPI_flips(float *rtime, float *ptime, long long * flpins, float *mflips);
02927    int PAPI_flops(float *rtime, float *ptime, long long * flpops, float *mflops);
02928    int PAPI_ipc(float *rtime, float *ptime, long long * ins, float *ipc);
02929    int PAPI_epc(int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc);
02930 
02931 
02932 
02933 
02934 
02935 int PAPI_num_hwctrs(void);
02936 # 26 "papi_fwrappers.c" 2
02937 # 49 "papi_fwrappers.c"
02938 static void Fortran2cstring( char *cstring, char *Fstring, int clen , int Flen )
02939 {
02940  int slen, i;
02941 
02942 
02943  slen = Flen < clen ? Flen : clen;
02944  strncpy( cstring, Fstring, ( size_t ) slen );
02945 
02946 
02947  for ( i = slen - 1; i > -1 && cstring[i] == ' '; cstring[i--] = '\0' );
02948 
02949 
02950  cstring[clen - 1] = '\0';
02951  if ( slen < clen )
02952   cstring[slen] = '\0';
02953 }
02954 # 77 "papi_fwrappers.c"
02955 void papif_accum_ ( int *EventSet, long long *values, int *check )
02956 
02957 {
02958  *check = PAPI_accum( *EventSet, values );
02959 }
02960 # 93 "papi_fwrappers.c"
02961 void papif_add_event_ ( int *EventSet, int *Event, int *check )
02962 
02963 {
02964  *check = PAPI_add_event( *EventSet, *Event );
02965 }
02966 # 110 "papi_fwrappers.c"
02967 void papif_add_named_event_ ( int *EventSet, char *EventName, int *check, int Event_len )
02968 
02969 {
02970  char tmp[128];
02971  Fortran2cstring( tmp, EventName, 128, Event_len );
02972  *check = PAPI_add_named_event( *EventSet, tmp );
02973 }
02974 # 135 "papi_fwrappers.c"
02975 void papif_add_events_ ( int *EventSet, int *Events, int *number, int *check )
02976 
02977 {
02978  *check = PAPI_add_events( *EventSet, Events, *number );
02979 }
02980 # 151 "papi_fwrappers.c"
02981 void papif_cleanup_eventset_ ( int *EventSet, int *check )
02982 
02983 {
02984  *check = PAPI_cleanup_eventset( *EventSet );
02985 }
02986 # 167 "papi_fwrappers.c"
02987 void papif_create_eventset_ ( int *EventSet, int *check )
02988 
02989 {
02990  *check = PAPI_create_eventset( EventSet );
02991 }
02992 # 183 "papi_fwrappers.c"
02993 void papif_assign_eventset_component_ ( int *EventSet, int *cidx, int *check )
02994 
02995 {
02996  *check = PAPI_assign_eventset_component( *EventSet, *cidx );
02997 }
02998 # 199 "papi_fwrappers.c"
02999 void papif_destroy_eventset_ ( int *EventSet, int *check )
03000 
03001 {
03002  *check = PAPI_destroy_eventset( EventSet );
03003 }
03004 # 216 "papi_fwrappers.c"
03005 void papif_get_dmem_info_ ( long long *dest, int *check )
03006 
03007 {
03008  *check = PAPI_get_dmem_info( ( PAPI_dmem_info_t * ) dest );
03009 }
03010 # 236 "papi_fwrappers.c"
03011 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 )
03012 # 247 "papi_fwrappers.c"
03013 {
03014  PAPI_option_t e;
03015 
03016 
03017 
03018 
03019 
03020  if ( ( *check = PAPI_get_opt( 17, &e ) ) == 0 ) {
03021 
03022   int i;
03023   strncpy( fullname, e.exe_info->fullname, ( size_t ) fullname_len );
03024   for ( i = ( int ) strlen( e.exe_info->fullname ); i < fullname_len;
03025      fullname[i++] = ' ' );
03026   strncpy( name, e.exe_info->address_info.name, ( size_t ) name_len );
03027   for ( i = ( int ) strlen( e.exe_info->address_info.name ); i < name_len;
03028      name[i++] = ' ' );
03029 
03030 
03031 
03032 
03033   *text_start = ( long ) e.exe_info->address_info.text_start;
03034   *text_end = ( long ) e.exe_info->address_info.text_end;
03035   *data_start = ( long ) e.exe_info->address_info.data_start;
03036   *data_end = ( long ) e.exe_info->address_info.data_end;
03037   *bss_start = ( long ) e.exe_info->address_info.bss_start;
03038   *bss_end = ( long ) e.exe_info->address_info.bss_end;
03039  }
03040 }
03041 # 289 "papi_fwrappers.c"
03042 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 )
03043 # 315 "papi_fwrappers.c"
03044 {
03045  const PAPI_hw_info_t *hwinfo;
03046  int i;
03047  hwinfo = PAPI_get_hardware_info( );
03048  if ( hwinfo == ((void *)0) ) {
03049   *ncpu = 0;
03050   *nnodes = 0;
03051   *totalcpus = 0;
03052   *vendor = 0;
03053   *model = 0;
03054   *revision = 0;
03055   *mhz = 0;
03056  } else {
03057   *ncpu = hwinfo->ncpu;
03058   *nnodes = hwinfo->nnodes;
03059   *totalcpus = hwinfo->totalcpus;
03060   *vendor = hwinfo->vendor;
03061   *model = hwinfo->model;
03062   *revision = hwinfo->revision;
03063   *mhz = hwinfo->cpu_max_mhz;
03064 
03065   strncpy( vendor_str, hwinfo->vendor_string, ( size_t ) vendor_len );
03066   for ( i = ( int ) strlen( hwinfo->vendor_string ); i < vendor_len;
03067      vendor_str[i++] = ' ' );
03068   strncpy( model_str, hwinfo->model_string, ( size_t ) model_len );
03069   for ( i = ( int ) strlen( hwinfo->model_string ); i < model_len;
03070      model_str[i++] = ' ' );
03071 
03072 
03073 
03074 
03075 
03076 
03077 
03078  }
03079  return;
03080 }
03081 # 364 "papi_fwrappers.c"
03082 void papif_num_hwctrs_ ( int *num )
03083 {
03084  *num = PAPI_num_hwctrs( );
03085 }
03086 # 380 "papi_fwrappers.c"
03087 void papif_num_cmp_hwctrs_ ( int *cidx, int *num )
03088 
03089 {
03090  *num = PAPI_num_cmp_hwctrs( *cidx );
03091 }
03092 # 396 "papi_fwrappers.c"
03093 void papif_get_real_cyc_ ( long long *real_cyc )
03094 {
03095  *real_cyc = PAPI_get_real_cyc( );
03096 }
03097 # 411 "papi_fwrappers.c"
03098 void papif_get_real_usec_ ( long long *time )
03099 {
03100  *time = PAPI_get_real_usec( );
03101 }
03102 # 426 "papi_fwrappers.c"
03103 void papif_get_real_nsec_ ( long long *time )
03104 {
03105  *time = PAPI_get_real_nsec( );
03106 }
03107 # 441 "papi_fwrappers.c"
03108 void papif_get_virt_cyc_ ( long long *virt_cyc )
03109 {
03110  *virt_cyc = PAPI_get_virt_cyc( );
03111 }
03112 # 456 "papi_fwrappers.c"
03113 void papif_get_virt_usec_ ( long long *time )
03114 {
03115  *time = PAPI_get_virt_usec( );
03116 }
03117 # 471 "papi_fwrappers.c"
03118 void papif_is_initialized_ ( int *level )
03119 {
03120  *level = PAPI_is_initialized( );
03121 }
03122 # 486 "papi_fwrappers.c"
03123 void papif_library_init_ ( int *check )
03124 {
03125  *check = PAPI_library_init( *check );
03126 }
03127 # 501 "papi_fwrappers.c"
03128 void papif_thread_id_ ( unsigned long *id )
03129 {
03130  *id = PAPI_thread_id( );
03131 }
03132 # 516 "papi_fwrappers.c"
03133 void papif_register_thread_ ( int *check )
03134 {
03135  *check = PAPI_register_thread( );
03136 }
03137 # 531 "papi_fwrappers.c"
03138 void papif_unregster_thread_ ( int *check )
03139 {
03140  *check = PAPI_unregister_thread( );
03141 }
03142 # 547 "papi_fwrappers.c"
03143 void papif_thread_init_ ( unsigned long int ( *handle ) ( void ), int *check )
03144 
03145 {
03146  *check = PAPI_thread_init( handle );
03147 }
03148 # 563 "papi_fwrappers.c"
03149 void papif_list_events_ ( int *EventSet, int *Events, int *number, int *check )
03150 
03151 {
03152  *check = PAPI_list_events( *EventSet, Events, number );
03153 }
03154 # 579 "papi_fwrappers.c"
03155 void papif_multiplex_init_ ( int *check )
03156 {
03157  *check = PAPI_multiplex_init( );
03158 }
03159 # 594 "papi_fwrappers.c"
03160 void papif_get_multiplex_ ( int *EventSet, int *check )
03161 
03162 {
03163  *check = PAPI_get_multiplex( *EventSet );
03164 }
03165 # 610 "papi_fwrappers.c"
03166 void papif_set_multiplex_ ( int *EventSet, int *check )
03167 
03168 {
03169  *check = PAPI_set_multiplex( *EventSet );
03170 }
03171 # 627 "papi_fwrappers.c"
03172 void papif_perror_ ( char *message, int message_len )
03173 
03174 
03175 
03176 
03177 
03178 
03179 {
03180 
03181   char tmp[128];
03182   Fortran2cstring( tmp, message, 128, message_len );
03183 
03184  PAPI_perror( tmp );
03185 
03186 
03187 
03188 }
03189 # 663 "papi_fwrappers.c"
03190 void papif_query_event_ ( int *EventCode, int *check )
03191 
03192 {
03193  *check = PAPI_query_event( *EventCode );
03194 }
03195 # 680 "papi_fwrappers.c"
03196 void papif_query_named_event_ ( char *EventName, int *check, int Event_len )
03197 
03198 {
03199  char tmp[128];
03200  Fortran2cstring( tmp, EventName, 128, Event_len );
03201  *check = PAPI_query_named_event( tmp );
03202 }
03203 # 708 "papi_fwrappers.c"
03204 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 )
03205 # 718 "papi_fwrappers.c"
03206 {
03207  PAPI_event_info_t info;
03208  ( void ) flags;
03209 
03210  int i;
03211  if ( ( *check = PAPI_get_event_info( *EventCode, &info ) ) == 0 ) {
03212   strncpy( symbol, info.symbol, ( size_t ) symbol_len );
03213   for ( i = ( int ) strlen( info.symbol ); i < symbol_len;
03214      symbol[i++] = ' ' );
03215   strncpy( long_descr, info.long_descr, ( size_t ) long_descr_len );
03216   for ( i = ( int ) strlen( info.long_descr ); i < long_descr_len;
03217      long_descr[i++] = ' ' );
03218   strncpy( short_descr, info.short_descr, ( size_t ) short_descr_len );
03219   for ( i = ( int ) strlen( info.short_descr ); i < short_descr_len;
03220      short_descr[i++] = ' ' );
03221 
03222   *count = ( int ) info.count;
03223 
03224   int note_len=0;
03225 
03226   strncpy( event_note, info.note, ( size_t ) event_note_len );
03227   note_len=strlen(info.note);
03228 
03229   for ( i = note_len; i < event_note_len;
03230      event_note[i++] = ' ' );
03231  }
03232 # 757 "papi_fwrappers.c"
03233 }
03234 # 770 "papi_fwrappers.c"
03235 void papif_event_code_to_name_ ( int *EventCode, char *out_str, int *check, int out_len )
03236 
03237 
03238 
03239 
03240 
03241 {
03242 
03243  char tmp[128];
03244  int i;
03245  *check = PAPI_event_code_to_name( *EventCode, tmp );
03246 
03247  strncpy( out_str, tmp, ( size_t ) out_len );
03248 
03249  for ( i = ( int ) strlen( tmp ); i < out_len; out_str[i++] = ' ' );
03250 
03251 
03252 
03253 
03254 }
03255 # 802 "papi_fwrappers.c"
03256 void papif_event_name_to_code_ ( char *in_str, int *out, int *check, int in_len )
03257 
03258 
03259 
03260 
03261 
03262 {
03263 
03264  int slen, i;
03265  char tmpin[128];
03266 
03267 
03268  slen = in_len < 128 ? in_len : 128;
03269  strncpy( tmpin, in_str, ( size_t ) slen );
03270 
03271 
03272  for ( i = slen - 1; i > -1 && tmpin[i] == ' '; tmpin[i--] = '\0' );
03273 
03274 
03275  tmpin[128 - 1] = '\0';
03276  if ( slen < 128 )
03277   tmpin[slen] = '\0';
03278 
03279  *check = PAPI_event_name_to_code( tmpin, out );
03280 
03281 
03282 
03283 
03284 }
03285 # 842 "papi_fwrappers.c"
03286 void papif_num_events_ ( int *EventCode, int *count )
03287 {
03288  *count = PAPI_num_events( *EventCode );
03289 }
03290 # 857 "papi_fwrappers.c"
03291 void papif_enum_event_ ( int *EventCode, int *modifier, int *check )
03292 
03293 {
03294  *check = PAPI_enum_event( EventCode, *modifier );
03295 }
03296 # 873 "papi_fwrappers.c"
03297 void papif_read_ ( int *EventSet, long long *values, int *check )
03298 
03299 {
03300  *check = PAPI_read( *EventSet, values );
03301 }
03302 # 889 "papi_fwrappers.c"
03303 void papif_read_ts_ ( int *EventSet, long long *values, long long *cycles, int *check )
03304 
03305 {
03306  *check = PAPI_read_ts( *EventSet, values, cycles );
03307 }
03308 # 905 "papi_fwrappers.c"
03309 void papif_remove_event_ ( int *EventSet, int *Event, int *check )
03310 
03311 {
03312  *check = PAPI_remove_event( *EventSet, *Event );
03313 }
03314 # 922 "papi_fwrappers.c"
03315 void papif_remove_named_event_ ( int *EventSet, char *EventName, int *check, int Event_len )
03316 
03317 {
03318  char tmp[128];
03319  Fortran2cstring( tmp, EventName, 128, Event_len );
03320  *check = PAPI_remove_named_event( *EventSet, tmp );
03321 }
03322 # 947 "papi_fwrappers.c"
03323 void papif_remove_events_ ( int *EventSet, int *Events, int *number, int *check )
03324 
03325 {
03326  *check = PAPI_remove_events( *EventSet, Events, *number );
03327 }
03328 # 963 "papi_fwrappers.c"
03329 void papif_reset_ ( int *EventSet, int *check )
03330 {
03331  *check = PAPI_reset( *EventSet );
03332 }
03333 # 978 "papi_fwrappers.c"
03334 void papif_set_debug_ ( int *debug, int *check )
03335 {
03336  *check = PAPI_set_debug( *debug );
03337 }
03338 # 993 "papi_fwrappers.c"
03339 void papif_set_domain_ ( int *domain, int *check )
03340 {
03341  *check = PAPI_set_domain( *domain );
03342 }
03343 # 1008 "papi_fwrappers.c"
03344 void papif_set_cmp_domain_ ( int *domain, int *cidx, int *check )
03345 
03346 {
03347  *check = PAPI_set_cmp_domain( *domain, *cidx );
03348 }
03349 # 1024 "papi_fwrappers.c"
03350 void papif_set_granularity_ ( int *granularity, int *check )
03351 
03352 {
03353  *check = PAPI_set_granularity( *granularity );
03354 }
03355 # 1040 "papi_fwrappers.c"
03356 void papif_set_cmp_granularity_ ( int *granularity, int *cidx, int *check )
03357 
03358 {
03359  *check = PAPI_set_cmp_granularity( *granularity, *cidx );
03360 }
03361 # 1056 "papi_fwrappers.c"
03362 void papif_shutdown_ ( void )
03363 {
03364  PAPI_shutdown( );
03365 }
03366 # 1071 "papi_fwrappers.c"
03367 void papif_start_ ( int *EventSet, int *check )
03368 {
03369  *check = PAPI_start( *EventSet );
03370 }
03371 # 1086 "papi_fwrappers.c"
03372 void papif_state_ ( int *EventSet, int *status, int *check )
03373 
03374 {
03375  *check = PAPI_state( *EventSet, status );
03376 }
03377 # 1102 "papi_fwrappers.c"
03378 void papif_stop_ ( int *EventSet, long long *values, int *check )
03379 
03380 {
03381  *check = PAPI_stop( *EventSet, values );
03382 }
03383 # 1118 "papi_fwrappers.c"
03384 void papif_write_ ( int *EventSet, long long *values, int *check )
03385 
03386 {
03387  *check = PAPI_write( *EventSet, values );
03388 }
03389 # 1134 "papi_fwrappers.c"
03390 void papif_lock_ ( int *lock, int *check )
03391 
03392 {
03393  *check = PAPI_lock( *lock );
03394 }
03395 # 1150 "papi_fwrappers.c"
03396 void papif_unlock_ ( int *lock, int *check )
03397 
03398 {
03399  *check = PAPI_unlock( *lock );
03400 }
03401 # 1168 "papi_fwrappers.c"
03402 void papif_start_counters_ ( int *events, int *array_len, int *check )
03403 
03404 {
03405  *check = PAPI_start_counters( events, *array_len );
03406 }
03407 # 1184 "papi_fwrappers.c"
03408 void papif_read_counters_ ( long long *values, int *array_len, int *check )
03409 
03410 {
03411  *check = PAPI_read_counters( values, *array_len );
03412 }
03413 # 1200 "papi_fwrappers.c"
03414 void papif_stop_counters_ ( long long *values, int *array_len, int *check )
03415 
03416 {
03417  *check = PAPI_stop_counters( values, *array_len );
03418 }
03419 # 1216 "papi_fwrappers.c"
03420 void papif_accum_counters_ ( long long *values, int *array_len, int *check )
03421 
03422 {
03423  *check = PAPI_accum_counters( values, *array_len );
03424 }
03425 # 1232 "papi_fwrappers.c"
03426 void papif_num_counters_ ( int *numevents )
03427 {
03428  *numevents = PAPI_num_counters( );
03429 }
03430 # 1247 "papi_fwrappers.c"
03431 void papif_ipc_ ( float *rtime, float *ptime, long long *ins, float *ipc, int *check )
03432 
03433 
03434 {
03435  *check = PAPI_ipc( rtime, ptime, ins, ipc );
03436 }
03437 # 1264 "papi_fwrappers.c"
03438 void papif_epc_ ( int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc, int *check)
03439 
03440 
03441 
03442 {
03443  *check = PAPI_epc( event, rtime, ptime, ref, core, evt, epc );
03444 }
03445 # 1282 "papi_fwrappers.c"
03446 void papif_flips_ ( float *real_time, float *proc_time, long long *flpins, float *mflips, int *check )
03447 
03448 
03449 {
03450  *check = PAPI_flips( real_time, proc_time, flpins, mflips );
03451 }
03452 # 1299 "papi_fwrappers.c"
03453 void papif_flops_ ( float *real_time, float *proc_time, long long *flpops, float *mflops, int *check )
03454 
03455 
03456 {
03457  *check = PAPI_flops( real_time, proc_time, flpops, mflops );
03458 }
03459 # 1321 "papi_fwrappers.c"
03460 void papif_get_clockrate_ ( int *cr )
03461 {
03462  *cr = PAPI_get_opt( 14, ((void *)0) );
03463 }
03464 # 1339 "papi_fwrappers.c"
03465 void papif_get_preload_ ( char *lib_preload_env, int *check, int lib_preload_env_len )
03466 
03467 
03468 
03469 
03470 
03471 {
03472  PAPI_option_t p;
03473 
03474  int i;
03475 
03476  if ( ( *check = PAPI_get_opt( 13, &p ) ) == 0 ) {
03477   strncpy( lib_preload_env, p.preload.lib_preload_env,
03478      ( size_t ) lib_preload_env_len );
03479   for ( i = ( int ) strlen( p.preload.lib_preload_env );
03480      i < lib_preload_env_len; lib_preload_env[i++] = ' ' );
03481  }
03482 
03483 
03484 
03485 
03486 
03487 }
03488 # 1373 "papi_fwrappers.c"
03489 void papif_get_granularity_ ( int *eventset, int *granularity, int *mode, int *check )
03490 
03491 {
03492  PAPI_option_t g;
03493 
03494  if ( *mode == 6 ) {
03495   *granularity = PAPI_get_opt( *mode, &g );
03496   *check = 0;
03497  } else if ( *mode == 7 ) {
03498   g.granularity.eventset = *eventset;
03499   if ( ( *check = PAPI_get_opt( *mode, &g ) ) == 0 ) {
03500    *granularity = g.granularity.granularity;
03501   }
03502  } else {
03503   *check = -1;
03504  }
03505 }
03506 # 1401 "papi_fwrappers.c"
03507 void papif_get_domain_ ( int *eventset, int *domain, int *mode, int *check )
03508 
03509 {
03510  PAPI_option_t d;
03511 
03512  if ( *mode == 4 ) {
03513   *domain = PAPI_get_opt( *mode, ((void *)0) );
03514   *check = 0;
03515  } else if ( *mode == 5 ) {
03516   d.domain.eventset = *eventset;
03517   if ( ( *check = PAPI_get_opt( *mode, &d ) ) == 0 ) {
03518    *domain = d.domain.domain;
03519   }
03520  } else {
03521   *check = -1;
03522  }
03523 }
03524 # 1441 "papi_fwrappers.c"
03525 void papif_set_event_domain_ ( int *es, int *domain, int *check )
03526 
03527 {
03528  PAPI_option_t d;
03529 
03530  d.domain.domain = *domain;
03531  d.domain.eventset = *es;
03532  *check = PAPI_set_opt( 5, &d );
03533 }
03534 # 1461 "papi_fwrappers.c"
03535 void papif_set_inherit_ ( int *inherit, int *check )
03536 {
03537  PAPI_option_t i;
03538 
03539  i.inherit.inherit = *inherit;
03540  *check = PAPI_set_opt( 28, &i );
03541 }
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines