OLD | NEW |
1 /* -*- c -*- | 1 /* -*- c -*- |
2 ---------------------------------------------------------------- | 2 ---------------------------------------------------------------- |
3 | 3 |
4 Notice that the following BSD-style license applies to this one | 4 Notice that the following BSD-style license applies to this one |
5 file (valgrind.h) only. The rest of Valgrind is licensed under the | 5 file (valgrind.h) only. The rest of Valgrind is licensed under the |
6 terms of the GNU General Public License, version 2, unless | 6 terms of the GNU General Public License, version 2, unless |
7 otherwise indicated. See the COPYING file in the source | 7 otherwise indicated. See the COPYING file in the source |
8 distribution for details. | 8 distribution for details. |
9 | 9 |
10 ---------------------------------------------------------------- | 10 ---------------------------------------------------------------- |
(...skipping 4046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4057 : /*out*/ "=r" (_res) \ | 4057 : /*out*/ "=r" (_res) \ |
4058 : /*in*/ "r" (&_argvec[2]) \ | 4058 : /*in*/ "r" (&_argvec[2]) \ |
4059 : /*trash*/ "cc", "memory", __CALLER_SAVED_REGS \ | 4059 : /*trash*/ "cc", "memory", __CALLER_SAVED_REGS \ |
4060 ); \ | 4060 ); \ |
4061 lval = (__typeof__(lval)) _res; \ | 4061 lval = (__typeof__(lval)) _res; \ |
4062 } while (0) | 4062 } while (0) |
4063 | 4063 |
4064 #endif /* PLAT_ppc64_aix5 */ | 4064 #endif /* PLAT_ppc64_aix5 */ |
4065 | 4065 |
4066 | 4066 |
| 4067 #ifndef WIN32 |
4067 /* ------------------------------------------------------------------ */ | 4068 /* ------------------------------------------------------------------ */ |
4068 /* ARCHITECTURE INDEPENDENT MACROS for CLIENT REQUESTS. */ | 4069 /* ARCHITECTURE INDEPENDENT MACROS for CLIENT REQUESTS. */ |
4069 /* */ | 4070 /* */ |
4070 /* ------------------------------------------------------------------ */ | 4071 /* ------------------------------------------------------------------ */ |
4071 | 4072 |
4072 /* Some request codes. There are many more of these, but most are not | 4073 /* Some request codes. There are many more of these, but most are not |
4073 exposed to end-user view. These are the public ones, all of the | 4074 exposed to end-user view. These are the public ones, all of the |
4074 form 0x1000 + small_number. | 4075 form 0x1000 + small_number. |
4075 | 4076 |
4076 Core ones are in the range 0x00000000--0x0000ffff. The non-public | 4077 Core ones are in the range 0x00000000--0x0000ffff. The non-public |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4163 /* Discard translation of code in the range [_qzz_addr .. _qzz_addr + | 4164 /* Discard translation of code in the range [_qzz_addr .. _qzz_addr + |
4164 _qzz_len - 1]. Useful if you are debugging a JITter or some such, | 4165 _qzz_len - 1]. Useful if you are debugging a JITter or some such, |
4165 since it provides a way to make sure valgrind will retranslate the | 4166 since it provides a way to make sure valgrind will retranslate the |
4166 invalidated area. Returns no value. */ | 4167 invalidated area. Returns no value. */ |
4167 #define VALGRIND_DISCARD_TRANSLATIONS(_qzz_addr,_qzz_len) \ | 4168 #define VALGRIND_DISCARD_TRANSLATIONS(_qzz_addr,_qzz_len) \ |
4168 {unsigned int _qzz_res; \ | 4169 {unsigned int _qzz_res; \ |
4169 VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0, \ | 4170 VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0, \ |
4170 VG_USERREQ__DISCARD_TRANSLATIONS, \ | 4171 VG_USERREQ__DISCARD_TRANSLATIONS, \ |
4171 _qzz_addr, _qzz_len, 0, 0, 0); \ | 4172 _qzz_addr, _qzz_len, 0, 0, 0); \ |
4172 } | 4173 } |
4173 | 4174 #endif |
4174 | 4175 |
4175 /* These requests are for getting Valgrind itself to print something. | 4176 /* These requests are for getting Valgrind itself to print something. |
4176 Possibly with a backtrace. This is a really ugly hack. The return value | 4177 Possibly with a backtrace. This is a really ugly hack. The return value |
4177 is the number of characters printed, excluding the "**<pid>** " part at the | 4178 is the number of characters printed, excluding the "**<pid>** " part at the |
4178 start and the backtrace (if present). */ | 4179 start and the backtrace (if present). */ |
4179 | 4180 |
4180 #if defined(NVALGRIND) | 4181 #if defined(NVALGRIND) |
4181 | 4182 |
4182 # define VALGRIND_PRINTF(...) | 4183 # define VALGRIND_PRINTF(...) |
4183 # define VALGRIND_PRINTF_BACKTRACE(...) | 4184 # define VALGRIND_PRINTF_BACKTRACE(...) |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4508 | 4509 |
4509 #undef PLAT_x86_linux | 4510 #undef PLAT_x86_linux |
4510 #undef PLAT_amd64_linux | 4511 #undef PLAT_amd64_linux |
4511 #undef PLAT_ppc32_linux | 4512 #undef PLAT_ppc32_linux |
4512 #undef PLAT_ppc64_linux | 4513 #undef PLAT_ppc64_linux |
4513 #undef PLAT_arm_linux | 4514 #undef PLAT_arm_linux |
4514 #undef PLAT_ppc32_aix5 | 4515 #undef PLAT_ppc32_aix5 |
4515 #undef PLAT_ppc64_aix5 | 4516 #undef PLAT_ppc64_aix5 |
4516 | 4517 |
4517 #endif /* __VALGRIND_H */ | 4518 #endif /* __VALGRIND_H */ |
OLD | NEW |