Home
last modified time | relevance | path

Searched refs:GET_CALLER_PC (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerInterceptors.cpp16 #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 DFuzzerTracePC.cpp477 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 DFuzzerBuiltins.h19 #define GET_CALLER_PC() __builtin_return_address(0) macro
H A DFuzzerBuiltinsMsvc.h24 #define GET_CALLER_PC() _ReturnAddress() macro
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan_minimal/
H A Dubsan_minimal_handlers.cpp101 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 Dmemprof_stack.h43 stack.trace_buffer[1] = GET_CALLER_PC(); \
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan.cpp606 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 Dstats_client.cpp71 s->addr = GET_CALLER_PC(); in __sanitizer_stat_report()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_stack.h43 stack.trace_buffer[1] = GET_CALLER_PC(); \
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors.h53 ScopedInterceptor si(thr, #func, GET_CALLER_PC()); \
H A Dtsan_interceptors_posix.cpp452 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 Dtsan_interface_atomic.cpp494 return Atomic##func(thr, GET_CALLER_PC(), __VA_ARGS__);
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_internal_defs.h403 # define GET_CALLER_PC() \ macro
415 # define GET_CALLER_PC() ((__sanitizer::uptr)_ReturnAddress()) macro
H A Dsanitizer_stacktrace.cpp57 return GET_CALLER_PC(); in GetCurrentPc()
H A Dsanitizer_stacktrace.h180 uptr pc = GET_CALLER_PC();
H A Dsanitizer_coverage_fuchsia.cpp221 __sancov::pc_guard_controller.TracePcGuard(guard, GET_CALLER_PC() - 1); in SANITIZER_INTERFACE_WEAK_DEF()
H A Dsanitizer_coverage_libcdep_new.cpp228 guard, StackTrace::GetPreviousInstructionPc(GET_CALLER_PC())); in SANITIZER_INTERFACE_WEAK_DEF()
H A Dsanitizer_mutex.h129 LockImpl(GET_CALLER_PC()); in Lock()
H A Dsanitizer_common_interceptors.inc474 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 Ddfsan_custom.cpp325 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()