Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: syzygy/agent/asan/memory_interceptors.h

Issue 2937353002: Add missing methods to make compiling and linking of 32 bit integration_tests instrumented with LLV… (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 Google Inc. All Rights Reserved. 1 // Copyright 2014 Google Inc. All Rights Reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } // namespace asan 183 } // namespace asan
184 } // namespace agent 184 } // namespace agent
185 185
186 extern "C" { 186 extern "C" {
187 187
188 #ifndef _WIN64 188 #ifndef _WIN64
189 // The no-op memory access checker. 189 // The no-op memory access checker.
190 void asan_no_check(); 190 void asan_no_check();
191 #endif 191 #endif
192 192
193 // The following functions are added for compatibility
194 // but are not implemented yet.
Sébastien Marchand 2017/06/20 22:06:14 Some of this text could be moved to the previous l
njanevsk 2017/06/21 14:39:30 Done.
195 void asan_init();
196 int asan_set_seh_filter();
197 int asan_should_detect_stack_use_after_return();
198 void asan_version_mismatch_check_v8();
199 void asan_handle_no_return();
200
193 // The Clang no-op memory access checker. 201 // The Clang no-op memory access checker.
194 void asan_clang_no_check(const void*); 202 void asan_clang_no_check(const void*);
195 203
204 // The no-op string instruction memory access checker.
Sébastien Marchand 2017/06/20 22:06:14 These 2 functions are already declared, remove the
njanevsk 2017/06/21 14:39:30 Done.
205 void asan_string_no_check();
206
207 // The Clang no-op memory access checker.
208 void asan_clang_no_check(const void*);
209
196 // The no-op string instruction memory access checker. 210 // The no-op string instruction memory access checker.
197 void asan_string_no_check(); 211 void asan_string_no_check();
198 212
199 // The table containing the array of shadow memory references. This is made 213 // The table containing the array of shadow memory references. This is made
200 // visible so that it can be used by the memory interceptor patcher. The table 214 // visible so that it can be used by the memory interceptor patcher. The table
201 // itself will not be modified, but the pointers it points to will be. 215 // itself will not be modified, but the pointers it points to will be.
202 extern const void* asan_shadow_references[]; 216 extern const void* asan_shadow_references[];
203 217
204 #ifndef _WIN64 218 #ifndef _WIN64
205 #define DECLARE_MEM_INTERCEPT_FUNCTIONS(access_size, access_mode_str, \ 219 #define DECLARE_MEM_INTERCEPT_FUNCTIONS(access_size, access_mode_str, \
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 #endif 258 #endif
245 259
246 // Declare all the Clang-Asan memory interceptor functions. 260 // Declare all the Clang-Asan memory interceptor functions.
247 CLANG_ASAN_MEM_INTERCEPT_FUNCTIONS(DECLARE_MEM_CLANG_INTERCEPT_FUNCTIONS) 261 CLANG_ASAN_MEM_INTERCEPT_FUNCTIONS(DECLARE_MEM_CLANG_INTERCEPT_FUNCTIONS)
248 262
249 #undef DECLARE_MEM_CLANG_INTERCEPT_FUNCTIONS 263 #undef DECLARE_MEM_CLANG_INTERCEPT_FUNCTIONS
250 264
251 } // extern "C" 265 } // extern "C"
252 266
253 #endif // SYZYGY_AGENT_ASAN_MEMORY_INTERCEPTORS_H_ 267 #endif // SYZYGY_AGENT_ASAN_MEMORY_INTERCEPTORS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698