/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerInterceptors.cpp | 16 #define GET_CALLER_PC() __builtin_return_address(0) macro 155 __sanitizer_weak_hook_memcmp(GET_CALLER_PC(), s1, s2, n, result); in DEFINE_REAL() 163 __sanitizer_weak_hook_memcmp(GET_CALLER_PC(), s1, s2, n, result); in memcmp() 171 __sanitizer_weak_hook_strncmp(GET_CALLER_PC(), s1, s2, n, result); in strncmp() 179 __sanitizer_weak_hook_strcmp(GET_CALLER_PC(), s1, s2, result); in strcmp() 186 __sanitizer_weak_hook_strncasecmp(GET_CALLER_PC(), s1, s2, n, result); in strncasecmp() 193 __sanitizer_weak_hook_strcasecmp(GET_CALLER_PC(), s1, s2, result); in strcasecmp() 201 __sanitizer_weak_hook_strstr(GET_CALLER_PC(), s1, s2, result); in strstr() 208 __sanitizer_weak_hook_strcasestr(GET_CALLER_PC(), s1, s2, result); in strcasestr() 216 __sanitizer_weak_hook_memmem(GET_CALLER_PC(), s1, len1, s2, len2, result); in memmem()
|
H A D | FuzzerTracePC.cpp | 477 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_pc_indir() 485 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp8() 496 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp8() 504 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp4() 512 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp4() 520 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp2() 528 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp2() 536 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp1() 544 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp1() 563 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_switch() [all …]
|
H A D | FuzzerBuiltins.h | 19 #define GET_CALLER_PC() __builtin_return_address(0) macro
|
H A D | FuzzerBuiltinsMsvc.h | 24 #define GET_CALLER_PC() _ReturnAddress() macro
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan_minimal/ |
H A D | ubsan_minimal_handlers.cpp | 101 uintptr_t caller = GET_CALLER_PC(); \ 111 decorate_msg(MSG_TMPL_END(msg_buf, msg), GET_CALLER_PC()); \
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_stack.h | 43 stack.trace_buffer[1] = GET_CALLER_PC(); \
|
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan.cpp | 606 GET_CALLER_PC()); in __msan_set_alloca_origin() 614 GET_CALLER_PC()); in __msan_set_alloca_origin4() 619 SetAllocaOrigin(a, size, id_ptr, descr, GET_CALLER_PC()); in __msan_set_alloca_origin_with_descr() 623 SetAllocaOrigin(a, size, id_ptr, nullptr, GET_CALLER_PC()); in __msan_set_alloca_origin_no_descr()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/stats/ |
H A D | stats_client.cpp | 71 s->addr = GET_CALLER_PC(); in __sanitizer_stat_report()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_stack.h | 43 stack.trace_buffer[1] = GET_CALLER_PC(); \
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_interceptors.h | 53 ScopedInterceptor si(thr, #func, GET_CALLER_PC()); \
|
H A D | tsan_interceptors_posix.cpp | 452 return setup_at_exit_wrapper(thr, GET_CALLER_PC(), (void (*)())f, 0, 0); in TSAN_INTERCEPTOR() 460 return setup_at_exit_wrapper(thr, GET_CALLER_PC(), (void (*)())f, arg, dso); in TSAN_INTERCEPTOR() 515 ctx->pc = GET_CALLER_PC(); in TSAN_INTERCEPTOR() 2719 syscall_access_range(GET_CALLER_PC(), (uptr)(p), (uptr)(s), false) 2722 syscall_access_range(GET_CALLER_PC(), (uptr)(p), (uptr)(s), true) 2737 syscall_acquire(GET_CALLER_PC(), (uptr)(addr)) 2740 syscall_release(GET_CALLER_PC(), (uptr)(addr)) 2742 #define COMMON_SYSCALL_FD_CLOSE(fd) syscall_fd_close(GET_CALLER_PC(), fd) 2744 #define COMMON_SYSCALL_FD_ACQUIRE(fd) syscall_fd_acquire(GET_CALLER_PC(), fd) 2746 #define COMMON_SYSCALL_FD_RELEASE(fd) syscall_fd_release(GET_CALLER_PC(), fd) [all …]
|
H A D | tsan_interface_atomic.cpp | 494 return Atomic##func(thr, GET_CALLER_PC(), __VA_ARGS__);
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_internal_defs.h | 403 # define GET_CALLER_PC() \ macro 415 # define GET_CALLER_PC() ((__sanitizer::uptr)_ReturnAddress()) macro
|
H A D | sanitizer_stacktrace.cpp | 57 return GET_CALLER_PC(); in GetCurrentPc()
|
H A D | sanitizer_stacktrace.h | 180 uptr pc = GET_CALLER_PC();
|
H A D | sanitizer_coverage_fuchsia.cpp | 221 __sancov::pc_guard_controller.TracePcGuard(guard, GET_CALLER_PC() - 1); in SANITIZER_INTERFACE_WEAK_DEF()
|
H A D | sanitizer_coverage_libcdep_new.cpp | 228 guard, StackTrace::GetPreviousInstructionPc(GET_CALLER_PC())); in SANITIZER_INTERFACE_WEAK_DEF()
|
H A D | sanitizer_mutex.h | 129 LockImpl(GET_CALLER_PC()); in Lock()
|
H A D | sanitizer_common_interceptors.inc | 474 CALL_WEAK_INTERCEPTOR_HOOK(__sanitizer_weak_hook_strcmp, GET_CALLER_PC(), s1, 504 CALL_WEAK_INTERCEPTOR_HOOK(__sanitizer_weak_hook_strncmp, GET_CALLER_PC(), s1, 539 CALL_WEAK_INTERCEPTOR_HOOK(__sanitizer_weak_hook_strcasecmp, GET_CALLER_PC(), 567 CALL_WEAK_INTERCEPTOR_HOOK(__sanitizer_weak_hook_strncasecmp, GET_CALLER_PC(), 602 CALL_WEAK_INTERCEPTOR_HOOK(__sanitizer_weak_hook_strstr, GET_CALLER_PC(), s1, 623 CALL_WEAK_INTERCEPTOR_HOOK(__sanitizer_weak_hook_strcasestr, GET_CALLER_PC(), 693 CALL_WEAK_INTERCEPTOR_HOOK(__sanitizer_weak_hook_memmem, GET_CALLER_PC(), 829 CALL_WEAK_INTERCEPTOR_HOOK(__sanitizer_weak_hook_memcmp, GET_CALLER_PC(), 835 CALL_WEAK_INTERCEPTOR_HOOK(__sanitizer_weak_hook_memcmp, GET_CALLER_PC(), a1,
|
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_custom.cpp | 325 CALL_WEAK_INTERCEPTOR_HOOK(dfsan_weak_hook_memcmp, GET_CALLER_PC(), s1, s2, n, in DECLARE_WEAK_INTERCEPTOR_HOOK() 335 CALL_WEAK_INTERCEPTOR_HOOK(dfsan_weak_hook_origin_memcmp, GET_CALLER_PC(), s1, in __dfso_memcmp() 382 CALL_WEAK_INTERCEPTOR_HOOK(dfsan_weak_hook_strcmp, GET_CALLER_PC(), s1, s2, in DECLARE_WEAK_INTERCEPTOR_HOOK() 394 CALL_WEAK_INTERCEPTOR_HOOK(dfsan_weak_hook_origin_strcmp, GET_CALLER_PC(), s1, in __dfso_strcmp() 460 CALL_WEAK_INTERCEPTOR_HOOK(dfsan_weak_hook_strncmp, GET_CALLER_PC(), s1, s2, in DECLARE_WEAK_INTERCEPTOR_HOOK() 479 CALL_WEAK_INTERCEPTOR_HOOK(dfsan_weak_hook_origin_strncmp, GET_CALLER_PC(), in __dfso_strncmp()
|