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