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 | |
4068 /* ------------------------------------------------------------------ */ | 4067 /* ------------------------------------------------------------------ */ |
4069 /* ARCHITECTURE INDEPENDENT MACROS for CLIENT REQUESTS. */ | 4068 /* ARCHITECTURE INDEPENDENT MACROS for CLIENT REQUESTS. */ |
4070 /* */ | 4069 /* */ |
4071 /* ------------------------------------------------------------------ */ | 4070 /* ------------------------------------------------------------------ */ |
4072 | 4071 |
4073 /* Some request codes. There are many more of these, but most are not | 4072 /* Some request codes. There are many more of these, but most are not |
4074 exposed to end-user view. These are the public ones, all of the | 4073 exposed to end-user view. These are the public ones, all of the |
4075 form 0x1000 + small_number. | 4074 form 0x1000 + small_number. |
4076 | 4075 |
4077 Core ones are in the range 0x00000000--0x0000ffff. The non-public | 4076 Core ones are in the range 0x00000000--0x0000ffff. The non-public |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4164 /* Discard translation of code in the range [_qzz_addr .. _qzz_addr + | 4163 /* Discard translation of code in the range [_qzz_addr .. _qzz_addr + |
4165 _qzz_len - 1]. Useful if you are debugging a JITter or some such, | 4164 _qzz_len - 1]. Useful if you are debugging a JITter or some such, |
4166 since it provides a way to make sure valgrind will retranslate the | 4165 since it provides a way to make sure valgrind will retranslate the |
4167 invalidated area. Returns no value. */ | 4166 invalidated area. Returns no value. */ |
4168 #define VALGRIND_DISCARD_TRANSLATIONS(_qzz_addr,_qzz_len) \ | 4167 #define VALGRIND_DISCARD_TRANSLATIONS(_qzz_addr,_qzz_len) \ |
4169 {unsigned int _qzz_res; \ | 4168 {unsigned int _qzz_res; \ |
4170 VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0, \ | 4169 VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0, \ |
4171 VG_USERREQ__DISCARD_TRANSLATIONS, \ | 4170 VG_USERREQ__DISCARD_TRANSLATIONS, \ |
4172 _qzz_addr, _qzz_len, 0, 0, 0); \ | 4171 _qzz_addr, _qzz_len, 0, 0, 0); \ |
4173 } | 4172 } |
4174 #endif | 4173 |
4175 | 4174 |
4176 /* These requests are for getting Valgrind itself to print something. | 4175 /* These requests are for getting Valgrind itself to print something. |
4177 Possibly with a backtrace. This is a really ugly hack. The return value | 4176 Possibly with a backtrace. This is a really ugly hack. The return value |
4178 is the number of characters printed, excluding the "**<pid>** " part at the | 4177 is the number of characters printed, excluding the "**<pid>** " part at the |
4179 start and the backtrace (if present). */ | 4178 start and the backtrace (if present). */ |
4180 | 4179 |
4181 #if defined(NVALGRIND) | 4180 #if defined(NVALGRIND) |
4182 | 4181 |
4183 # define VALGRIND_PRINTF(...) | 4182 # define VALGRIND_PRINTF(...) |
4184 # define VALGRIND_PRINTF_BACKTRACE(...) | 4183 # define VALGRIND_PRINTF_BACKTRACE(...) |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4509 | 4508 |
4510 #undef PLAT_x86_linux | 4509 #undef PLAT_x86_linux |
4511 #undef PLAT_amd64_linux | 4510 #undef PLAT_amd64_linux |
4512 #undef PLAT_ppc32_linux | 4511 #undef PLAT_ppc32_linux |
4513 #undef PLAT_ppc64_linux | 4512 #undef PLAT_ppc64_linux |
4514 #undef PLAT_arm_linux | 4513 #undef PLAT_arm_linux |
4515 #undef PLAT_ppc32_aix5 | 4514 #undef PLAT_ppc32_aix5 |
4516 #undef PLAT_ppc64_aix5 | 4515 #undef PLAT_ppc64_aix5 |
4517 | 4516 |
4518 #endif /* __VALGRIND_H */ | 4517 #endif /* __VALGRIND_H */ |
OLD | NEW |