| 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | /// |
| 9 | /// \file |
| 10 | /// Internal declarations for host-side ConcurrencySanitizer offload reporting. |
| 11 | /// |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef CSAN_OFFLOAD_H |
| 15 | #define CSAN_OFFLOAD_H |
| 16 | |
| 17 | #include "csan_defs.h" |
| 18 | #include "csan_offload_packet.h" |
| 19 | #include "sanitizer_common/sanitizer_internal_defs.h" |
| 20 | |
| 21 | namespace __csan { |
| 22 | |
| 23 | u32 HandleOffloadReport(void *Port, u32 Lanes); |
| 24 | |
| 25 | } // namespace __csan |
| 26 | |
| 27 | extern "C" { |
| 28 | SANITIZER_INTERFACE_ATTRIBUTE void __csan_offload_init(); |
| 29 | } |
| 30 | |
| 31 | #endif // CSAN_OFFLOAD_H |
| 32 | |