]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/esan/esan_sideline_bsd.cpp
Vendor import of compiler-rt trunk r351319 (just before the release_80
[FreeBSD/FreeBSD.git] / lib / esan / esan_sideline_bsd.cpp
1 //===-- esan_sideline_bsd.cpp -----------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file is a part of EfficiencySanitizer, a family of performance tuners.
11 //
12 // Support for a separate or "sideline" tool thread on FreeBSD.
13 //===----------------------------------------------------------------------===//
14
15 #include "sanitizer_common/sanitizer_platform.h"
16 #if SANITIZER_FREEBSD
17
18 #include "esan_sideline.h"
19
20 namespace __esan {
21
22 static SidelineThread *TheThread;
23
24 bool SidelineThread::launchThread(SidelineFunc takeSample, void *Arg,
25                                   u32 FreqMilliSec) {
26   return true;
27 }
28
29 bool SidelineThread::joinThread() {
30   return true;
31 }
32
33 } // namespace __esan
34
35 #endif // SANITIZER_FREEBSD