|
PAPI
5.0.1.0
|
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 PAPIF_ACCUM ( int *EventSet, long long *values, int *check ) 02891 02892 { 02893 *check = PAPI_accum( *EventSet, values ); 02894 } 02895 # 94 "papi_fwrappers.c" 02896 void PAPIF_ADD_EVENT ( int *EventSet, int *Event, int *check ) 02897 02898 { 02899 *check = PAPI_add_event( *EventSet, *Event ); 02900 } 02901 # 111 "papi_fwrappers.c" 02902 void PAPIF_ADD_NAMED_EVENT ( int *EventSet, char *EventName, int *check, int Event_len ) 02903 02904 { 02905 char tmp[128]; 02906 Fortran2cstring( tmp, EventName, 128, Event_len ); 02907 *check = PAPI_add_named_event( *EventSet, tmp ); 02908 } 02909 # 136 "papi_fwrappers.c" 02910 void PAPIF_ADD_EVENTS ( int *EventSet, int *Events, int *number, int *check ) 02911 02912 { 02913 *check = PAPI_add_events( *EventSet, Events, *number ); 02914 } 02915 # 152 "papi_fwrappers.c" 02916 void PAPIF_CLEANUP_EVENTSET ( int *EventSet, int *check ) 02917 02918 { 02919 *check = PAPI_cleanup_eventset( *EventSet ); 02920 } 02921 # 168 "papi_fwrappers.c" 02922 void PAPIF_CREATE_EVENTSET ( int *EventSet, int *check ) 02923 02924 { 02925 *check = PAPI_create_eventset( EventSet ); 02926 } 02927 # 184 "papi_fwrappers.c" 02928 void PAPIF_ASSIGN_EVENTSET_COMPONENT ( int *EventSet, int *cidx, int *check ) 02929 02930 { 02931 *check = PAPI_assign_eventset_component( *EventSet, *cidx ); 02932 } 02933 # 200 "papi_fwrappers.c" 02934 void PAPIF_DESTROY_EVENTSET ( int *EventSet, int *check ) 02935 02936 { 02937 *check = PAPI_destroy_eventset( EventSet ); 02938 } 02939 # 217 "papi_fwrappers.c" 02940 void PAPIF_GET_DMEM_INFO ( long long *dest, int *check ) 02941 02942 { 02943 *check = PAPI_get_dmem_info( ( PAPI_dmem_info_t * ) dest ); 02944 } 02945 # 237 "papi_fwrappers.c" 02946 void PAPIF_GET_EXE_INFO ( char *fullname, char *name, long long *text_start, long long *text_end, long long *data_start, long long *data_end, long long *bss_start, long long *bss_end, int *check, int fullname_len, int name_len ) 02947 # 248 "papi_fwrappers.c" 02948 { 02949 PAPI_option_t e; 02950 02951 02952 02953 02954 02955 if ( ( *check = PAPI_get_opt( 17, &e ) ) == 0 ) { 02956 02957 int i; 02958 strncpy( fullname, e.exe_info->fullname, ( size_t ) fullname_len ); 02959 for ( i = ( int ) strlen( e.exe_info->fullname ); i < fullname_len; 02960 fullname[i++] = ' ' ); 02961 strncpy( name, e.exe_info->address_info.name, ( size_t ) name_len ); 02962 for ( i = ( int ) strlen( e.exe_info->address_info.name ); i < name_len; 02963 name[i++] = ' ' ); 02964 02965 02966 02967 02968 *text_start = ( long ) e.exe_info->address_info.text_start; 02969 *text_end = ( long ) e.exe_info->address_info.text_end; 02970 *data_start = ( long ) e.exe_info->address_info.data_start; 02971 *data_end = ( long ) e.exe_info->address_info.data_end; 02972 *bss_start = ( long ) e.exe_info->address_info.bss_start; 02973 *bss_end = ( long ) e.exe_info->address_info.bss_end; 02974 } 02975 } 02976 # 290 "papi_fwrappers.c" 02977 void PAPIF_GET_HARDWARE_INFO ( int *ncpu, int *nnodes, int *totalcpus, int *vendor, char *vendor_str, int *model, char *model_str, float *revision, float *mhz, int vendor_len, int model_len ) 02978 # 316 "papi_fwrappers.c" 02979 { 02980 const PAPI_hw_info_t *hwinfo; 02981 int i; 02982 hwinfo = PAPI_get_hardware_info( ); 02983 if ( hwinfo == ((void *)0) ) { 02984 *ncpu = 0; 02985 *nnodes = 0; 02986 *totalcpus = 0; 02987 *vendor = 0; 02988 *model = 0; 02989 *revision = 0; 02990 *mhz = 0; 02991 } else { 02992 *ncpu = hwinfo->ncpu; 02993 *nnodes = hwinfo->nnodes; 02994 *totalcpus = hwinfo->totalcpus; 02995 *vendor = hwinfo->vendor; 02996 *model = hwinfo->model; 02997 *revision = hwinfo->revision; 02998 *mhz = hwinfo->cpu_max_mhz; 02999 03000 strncpy( vendor_str, hwinfo->vendor_string, ( size_t ) vendor_len ); 03001 for ( i = ( int ) strlen( hwinfo->vendor_string ); i < vendor_len; 03002 vendor_str[i++] = ' ' ); 03003 strncpy( model_str, hwinfo->model_string, ( size_t ) model_len ); 03004 for ( i = ( int ) strlen( hwinfo->model_string ); i < model_len; 03005 model_str[i++] = ' ' ); 03006 03007 03008 03009 03010 03011 03012 03013 } 03014 return; 03015 } 03016 # 365 "papi_fwrappers.c" 03017 void PAPIF_num_hwctrs ( int *num ) 03018 { 03019 *num = PAPI_num_hwctrs( ); 03020 } 03021 # 381 "papi_fwrappers.c" 03022 void PAPIF_num_cmp_hwctrs ( int *cidx, int *num ) 03023 03024 { 03025 *num = PAPI_num_cmp_hwctrs( *cidx ); 03026 } 03027 # 397 "papi_fwrappers.c" 03028 void PAPIF_GET_REAL_CYC ( long long *real_cyc ) 03029 { 03030 *real_cyc = PAPI_get_real_cyc( ); 03031 } 03032 # 412 "papi_fwrappers.c" 03033 void PAPIF_GET_REAL_USEC ( long long *time ) 03034 { 03035 *time = PAPI_get_real_usec( ); 03036 } 03037 # 427 "papi_fwrappers.c" 03038 void PAPIF_GET_REAL_NSEC ( long long *time ) 03039 { 03040 *time = PAPI_get_real_nsec( ); 03041 } 03042 # 442 "papi_fwrappers.c" 03043 void PAPIF_GET_VIRT_CYC ( long long *virt_cyc ) 03044 { 03045 *virt_cyc = PAPI_get_virt_cyc( ); 03046 } 03047 # 457 "papi_fwrappers.c" 03048 void PAPIF_GET_VIRT_USEC ( long long *time ) 03049 { 03050 *time = PAPI_get_virt_usec( ); 03051 } 03052 # 472 "papi_fwrappers.c" 03053 void PAPIF_IS_INITIALIZED ( int *level ) 03054 { 03055 *level = PAPI_is_initialized( ); 03056 } 03057 # 487 "papi_fwrappers.c" 03058 void PAPIF_LIBRARY_INIT ( int *check ) 03059 { 03060 *check = PAPI_library_init( *check ); 03061 } 03062 # 502 "papi_fwrappers.c" 03063 void PAPIF_THREAD_ID ( unsigned long *id ) 03064 { 03065 *id = PAPI_thread_id( ); 03066 } 03067 # 517 "papi_fwrappers.c" 03068 void PAPIF_REGISTER_THREAD ( int *check ) 03069 { 03070 *check = PAPI_register_thread( ); 03071 } 03072 # 532 "papi_fwrappers.c" 03073 void PAPIF_UNREGSTER_THREAD ( int *check ) 03074 { 03075 *check = PAPI_unregister_thread( ); 03076 } 03077 # 548 "papi_fwrappers.c" 03078 void PAPIF_THREAD_INIT ( unsigned long int ( *handle ) ( void ), int *check ) 03079 03080 { 03081 *check = PAPI_thread_init( handle ); 03082 } 03083 # 564 "papi_fwrappers.c" 03084 void PAPIF_LIST_EVENTS ( int *EventSet, int *Events, int *number, int *check ) 03085 03086 { 03087 *check = PAPI_list_events( *EventSet, Events, number ); 03088 } 03089 # 580 "papi_fwrappers.c" 03090 void PAPIF_MULTIPLEX_INIT ( int *check ) 03091 { 03092 *check = PAPI_multiplex_init( ); 03093 } 03094 # 595 "papi_fwrappers.c" 03095 void PAPIF_GET_MULTIPLEX ( int *EventSet, int *check ) 03096 03097 { 03098 *check = PAPI_get_multiplex( *EventSet ); 03099 } 03100 # 611 "papi_fwrappers.c" 03101 void PAPIF_SET_MULTIPLEX ( int *EventSet, int *check ) 03102 03103 { 03104 *check = PAPI_set_multiplex( *EventSet ); 03105 } 03106 # 628 "papi_fwrappers.c" 03107 void PAPIF_PERROR ( char *message, int message_len ) 03108 03109 03110 03111 03112 03113 03114 { 03115 03116 char tmp[128]; 03117 Fortran2cstring( tmp, message, 128, message_len ); 03118 03119 PAPI_perror( tmp ); 03120 03121 03122 03123 } 03124 # 664 "papi_fwrappers.c" 03125 void PAPIF_QUERY_EVENT ( int *EventCode, int *check ) 03126 03127 { 03128 *check = PAPI_query_event( *EventCode ); 03129 } 03130 # 681 "papi_fwrappers.c" 03131 void PAPIF_QUERY_NAMED_EVENT ( char *EventName, int *check, int Event_len ) 03132 03133 { 03134 char tmp[128]; 03135 Fortran2cstring( tmp, EventName, 128, Event_len ); 03136 *check = PAPI_query_named_event( tmp ); 03137 } 03138 # 709 "papi_fwrappers.c" 03139 void PAPIF_GET_EVENT_INFO ( int *EventCode, char *symbol, char *long_descr, char *short_descr, int *count, char *event_note, int *flags, int *check, int symbol_len, int long_descr_len, int short_descr_len, int event_note_len ) 03140 # 719 "papi_fwrappers.c" 03141 { 03142 PAPI_event_info_t info; 03143 ( void ) flags; 03144 03145 int i; 03146 if ( ( *check = PAPI_get_event_info( *EventCode, &info ) ) == 0 ) { 03147 strncpy( symbol, info.symbol, ( size_t ) symbol_len ); 03148 for ( i = ( int ) strlen( info.symbol ); i < symbol_len; 03149 symbol[i++] = ' ' ); 03150 strncpy( long_descr, info.long_descr, ( size_t ) long_descr_len ); 03151 for ( i = ( int ) strlen( info.long_descr ); i < long_descr_len; 03152 long_descr[i++] = ' ' ); 03153 strncpy( short_descr, info.short_descr, ( size_t ) short_descr_len ); 03154 for ( i = ( int ) strlen( info.short_descr ); i < short_descr_len; 03155 short_descr[i++] = ' ' ); 03156 03157 *count = ( int ) info.count; 03158 03159 int note_len=0; 03160 03161 strncpy( event_note, info.note, ( size_t ) event_note_len ); 03162 note_len=strlen(info.note); 03163 03164 for ( i = note_len; i < event_note_len; 03165 event_note[i++] = ' ' ); 03166 } 03167 # 758 "papi_fwrappers.c" 03168 } 03169 # 771 "papi_fwrappers.c" 03170 void PAPIF_EVENT_CODE_TO_NAME ( int *EventCode, char *out_str, int *check, int out_len ) 03171 03172 03173 03174 03175 03176 { 03177 03178 char tmp[128]; 03179 int i; 03180 *check = PAPI_event_code_to_name( *EventCode, tmp ); 03181 03182 strncpy( out_str, tmp, ( size_t ) out_len ); 03183 03184 for ( i = ( int ) strlen( tmp ); i < out_len; out_str[i++] = ' ' ); 03185 03186 03187 03188 03189 } 03190 # 803 "papi_fwrappers.c" 03191 void PAPIF_EVENT_NAME_TO_CODE ( char *in_str, int *out, int *check, int in_len ) 03192 03193 03194 03195 03196 03197 { 03198 03199 int slen, i; 03200 char tmpin[128]; 03201 03202 03203 slen = in_len < 128 ? in_len : 128; 03204 strncpy( tmpin, in_str, ( size_t ) slen ); 03205 03206 03207 for ( i = slen - 1; i > -1 && tmpin[i] == ' '; tmpin[i--] = '\0' ); 03208 03209 03210 tmpin[128 - 1] = '\0'; 03211 if ( slen < 128 ) 03212 tmpin[slen] = '\0'; 03213 03214 *check = PAPI_event_name_to_code( tmpin, out ); 03215 03216 03217 03218 03219 } 03220 # 843 "papi_fwrappers.c" 03221 void PAPIF_NUM_EVENTS ( int *EventCode, int *count ) 03222 { 03223 *count = PAPI_num_events( *EventCode ); 03224 } 03225 # 858 "papi_fwrappers.c" 03226 void PAPIF_ENUM_EVENT ( int *EventCode, int *modifier, int *check ) 03227 03228 { 03229 *check = PAPI_enum_event( EventCode, *modifier ); 03230 } 03231 # 874 "papi_fwrappers.c" 03232 void PAPIF_READ ( int *EventSet, long long *values, int *check ) 03233 03234 { 03235 *check = PAPI_read( *EventSet, values ); 03236 } 03237 # 890 "papi_fwrappers.c" 03238 void PAPIF_READ_TS ( int *EventSet, long long *values, long long *cycles, int *check ) 03239 03240 { 03241 *check = PAPI_read_ts( *EventSet, values, cycles ); 03242 } 03243 # 906 "papi_fwrappers.c" 03244 void PAPIF_REMOVE_EVENT ( int *EventSet, int *Event, int *check ) 03245 03246 { 03247 *check = PAPI_remove_event( *EventSet, *Event ); 03248 } 03249 # 923 "papi_fwrappers.c" 03250 void PAPIF_REMOVE_NAMED_EVENT ( int *EventSet, char *EventName, int *check, int Event_len ) 03251 03252 { 03253 char tmp[128]; 03254 Fortran2cstring( tmp, EventName, 128, Event_len ); 03255 *check = PAPI_remove_named_event( *EventSet, tmp ); 03256 } 03257 # 948 "papi_fwrappers.c" 03258 void PAPIF_REMOVE_EVENTS ( int *EventSet, int *Events, int *number, int *check ) 03259 03260 { 03261 *check = PAPI_remove_events( *EventSet, Events, *number ); 03262 } 03263 # 964 "papi_fwrappers.c" 03264 void PAPIF_RESET ( int *EventSet, int *check ) 03265 { 03266 *check = PAPI_reset( *EventSet ); 03267 } 03268 # 979 "papi_fwrappers.c" 03269 void PAPIF_SET_DEBUG ( int *debug, int *check ) 03270 { 03271 *check = PAPI_set_debug( *debug ); 03272 } 03273 # 994 "papi_fwrappers.c" 03274 void PAPIF_SET_DOMAIN ( int *domain, int *check ) 03275 { 03276 *check = PAPI_set_domain( *domain ); 03277 } 03278 # 1009 "papi_fwrappers.c" 03279 void PAPIF_SET_CMP_DOMAIN ( int *domain, int *cidx, int *check ) 03280 03281 { 03282 *check = PAPI_set_cmp_domain( *domain, *cidx ); 03283 } 03284 # 1025 "papi_fwrappers.c" 03285 void PAPIF_SET_GRANULARITY ( int *granularity, int *check ) 03286 03287 { 03288 *check = PAPI_set_granularity( *granularity ); 03289 } 03290 # 1041 "papi_fwrappers.c" 03291 void PAPIF_SET_CMP_GRANULARITY ( int *granularity, int *cidx, int *check ) 03292 03293 { 03294 *check = PAPI_set_cmp_granularity( *granularity, *cidx ); 03295 } 03296 # 1057 "papi_fwrappers.c" 03297 void PAPIF_SHUTDOWN ( void ) 03298 { 03299 PAPI_shutdown( ); 03300 } 03301 # 1072 "papi_fwrappers.c" 03302 void PAPIF_START ( int *EventSet, int *check ) 03303 { 03304 *check = PAPI_start( *EventSet ); 03305 } 03306 # 1087 "papi_fwrappers.c" 03307 void PAPIF_STATE ( int *EventSet, int *status, int *check ) 03308 03309 { 03310 *check = PAPI_state( *EventSet, status ); 03311 } 03312 # 1103 "papi_fwrappers.c" 03313 void PAPIF_STOP ( int *EventSet, long long *values, int *check ) 03314 03315 { 03316 *check = PAPI_stop( *EventSet, values ); 03317 } 03318 # 1119 "papi_fwrappers.c" 03319 void PAPIF_WRITE ( int *EventSet, long long *values, int *check ) 03320 03321 { 03322 *check = PAPI_write( *EventSet, values ); 03323 } 03324 # 1135 "papi_fwrappers.c" 03325 void PAPIF_LOCK ( int *lock, int *check ) 03326 03327 { 03328 *check = PAPI_lock( *lock ); 03329 } 03330 # 1151 "papi_fwrappers.c" 03331 void PAPIF_unlock ( int *lock, int *check ) 03332 03333 { 03334 *check = PAPI_unlock( *lock ); 03335 } 03336 # 1169 "papi_fwrappers.c" 03337 void PAPIF_START_COUNTERS ( int *events, int *array_len, int *check ) 03338 03339 { 03340 *check = PAPI_start_counters( events, *array_len ); 03341 } 03342 # 1185 "papi_fwrappers.c" 03343 void PAPIF_READ_COUNTERS ( long long *values, int *array_len, int *check ) 03344 03345 { 03346 *check = PAPI_read_counters( values, *array_len ); 03347 } 03348 # 1201 "papi_fwrappers.c" 03349 void PAPIF_STOP_COUNTERS ( long long *values, int *array_len, int *check ) 03350 03351 { 03352 *check = PAPI_stop_counters( values, *array_len ); 03353 } 03354 # 1217 "papi_fwrappers.c" 03355 void PAPIF_ACCUM_COUNTERS ( long long *values, int *array_len, int *check ) 03356 03357 { 03358 *check = PAPI_accum_counters( values, *array_len ); 03359 } 03360 # 1233 "papi_fwrappers.c" 03361 void PAPIF_NUM_COUNTERS ( int *numevents ) 03362 { 03363 *numevents = PAPI_num_counters( ); 03364 } 03365 # 1248 "papi_fwrappers.c" 03366 void PAPIF_IPC ( float *rtime, float *ptime, long long *ins, float *ipc, int *check ) 03367 03368 03369 { 03370 *check = PAPI_ipc( rtime, ptime, ins, ipc ); 03371 } 03372 # 1265 "papi_fwrappers.c" 03373 void PAPIF_FLIPS ( float *real_time, float *proc_time, long long *flpins, float *mflips, int *check ) 03374 03375 03376 { 03377 *check = PAPI_flips( real_time, proc_time, flpins, mflips ); 03378 } 03379 # 1282 "papi_fwrappers.c" 03380 void PAPIF_FLOPS ( float *real_time, float *proc_time, long long *flpops, float *mflops, int *check ) 03381 03382 03383 { 03384 *check = PAPI_flops( real_time, proc_time, flpops, mflops ); 03385 } 03386 # 1304 "papi_fwrappers.c" 03387 void PAPIF_GET_CLOCKRATE ( int *cr ) 03388 { 03389 *cr = PAPI_get_opt( 14, ((void *)0) ); 03390 } 03391 # 1322 "papi_fwrappers.c" 03392 void PAPIF_GET_PRELOAD ( char *lib_preload_env, int *check, int lib_preload_env_len ) 03393 03394 03395 03396 03397 03398 { 03399 PAPI_option_t p; 03400 03401 int i; 03402 03403 if ( ( *check = PAPI_get_opt( 13, &p ) ) == 0 ) { 03404 strncpy( lib_preload_env, p.preload.lib_preload_env, 03405 ( size_t ) lib_preload_env_len ); 03406 for ( i = ( int ) strlen( p.preload.lib_preload_env ); 03407 i < lib_preload_env_len; lib_preload_env[i++] = ' ' ); 03408 } 03409 03410 03411 03412 03413 03414 } 03415 # 1356 "papi_fwrappers.c" 03416 void PAPIF_GET_GRANULARITY ( int *eventset, int *granularity, int *mode, int *check ) 03417 03418 { 03419 PAPI_option_t g; 03420 03421 if ( *mode == 6 ) { 03422 *granularity = PAPI_get_opt( *mode, &g ); 03423 *check = 0; 03424 } else if ( *mode == 7 ) { 03425 g.granularity.eventset = *eventset; 03426 if ( ( *check = PAPI_get_opt( *mode, &g ) ) == 0 ) { 03427 *granularity = g.granularity.granularity; 03428 } 03429 } else { 03430 *check = -1; 03431 } 03432 } 03433 # 1384 "papi_fwrappers.c" 03434 void PAPIF_GET_DOMAIN ( int *eventset, int *domain, int *mode, int *check ) 03435 03436 { 03437 PAPI_option_t d; 03438 03439 if ( *mode == 4 ) { 03440 *domain = PAPI_get_opt( *mode, ((void *)0) ); 03441 *check = 0; 03442 } else if ( *mode == 5 ) { 03443 d.domain.eventset = *eventset; 03444 if ( ( *check = PAPI_get_opt( *mode, &d ) ) == 0 ) { 03445 *domain = d.domain.domain; 03446 } 03447 } else { 03448 *check = -1; 03449 } 03450 } 03451 # 1424 "papi_fwrappers.c" 03452 void PAPIF_SET_EVENT_DOMAIN ( int *es, int *domain, int *check ) 03453 03454 { 03455 PAPI_option_t d; 03456 03457 d.domain.domain = *domain; 03458 d.domain.eventset = *es; 03459 *check = PAPI_set_opt( 5, &d ); 03460 } 03461 # 1444 "papi_fwrappers.c" 03462 void PAPIF_SET_INHERIT ( int *inherit, int *check ) 03463 { 03464 PAPI_option_t i; 03465 03466 i.inherit.inherit = *inherit; 03467 *check = PAPI_set_opt( 28, &i ); 03468 }