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

Unified Diff: syzygy/agent/asan/memory_interceptors.h

Issue 2316303008: Add probes for x64. (Closed)
Patch Set: Rename |heap_size| to |address_space_size|. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: syzygy/agent/asan/memory_interceptors.h
diff --git a/syzygy/agent/asan/memory_interceptors.h b/syzygy/agent/asan/memory_interceptors.h
index f85b59c77d2abf24d69d24c3a806e066ebe512b6..5f7a5ab642c4948d40250cffdacb4e643e7d63fa 100644
--- a/syzygy/agent/asan/memory_interceptors.h
+++ b/syzygy/agent/asan/memory_interceptors.h
@@ -140,6 +140,7 @@ void asan_string_no_check();
// itself will not be modified, but the pointers it points to will be.
extern const void* asan_shadow_references[];
+#ifndef _WIN64
#define DECLARE_MEM_INTERCEPT_FUNCTIONS(access_size, access_mode_str, \
access_mode_value) \
void asan_redirect_##access_size##_byte_##access_mode_str(); \
@@ -154,7 +155,9 @@ extern const void* asan_shadow_references[];
ASAN_MEM_INTERCEPT_FUNCTIONS(DECLARE_MEM_INTERCEPT_FUNCTIONS)
#undef DECLARE_MEM_INTERCEPT_FUNCTIONS
+#endif
Sébastien Marchand 2016/09/13 18:23:05 This endif and the following ifndef seem unnecessa
+#ifndef _WIN64
#define DECLARE_STRING_INTERCEPT_FUNCTIONS(func, prefix, counter, dst_mode, \
src_mode, access_size, compare) \
void asan_redirect ## prefix ## access_size ## _byte_ ## func ## _access(); \
@@ -165,6 +168,7 @@ ASAN_MEM_INTERCEPT_FUNCTIONS(DECLARE_MEM_INTERCEPT_FUNCTIONS)
ASAN_STRING_INTERCEPT_FUNCTIONS(DECLARE_STRING_INTERCEPT_FUNCTIONS)
#undef DECLARE_STRING_INTERCEPT_FUNCTIONS
+#endif
} // extern "C"

Powered by Google App Engine
This is Rietveld 408576698