aboutsummaryrefslogtreecommitdiff
path: root/contrib/compiler-rt/lib/esan/esan_sideline_bsd.cpp
blob: 3134d3776730258fdc8bdb5689d46f24884f0549 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//===-- esan_sideline_bsd.cpp -----------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file is a part of EfficiencySanitizer, a family of performance tuners.
//
// Support for a separate or "sideline" tool thread on FreeBSD.
//===----------------------------------------------------------------------===//

#include "sanitizer_common/sanitizer_platform.h"
#if SANITIZER_FREEBSD

#include "esan_sideline.h"

namespace __esan {

static SidelineThread *TheThread;

bool SidelineThread::launchThread(SidelineFunc takeSample, void *Arg,
                                  u32 FreqMilliSec) {
  return true;
}

bool SidelineThread::joinThread() {
  return true;
}

} // namespace __esan

#endif // SANITIZER_FREEBSD