[compiler-rt] r343815 - Esan for FreeBSD, forgotten file.

David Carlier via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 4 14:07:21 PDT 2018


Author: devnexen
Date: Thu Oct  4 14:07:21 2018
New Revision: 343815

URL: http://llvm.org/viewvc/llvm-project?rev=343815&view=rev
Log:
Esan for FreeBSD, forgotten file.

Added:
    compiler-rt/trunk/lib/esan/esan_sideline_bsd.cpp

Added: compiler-rt/trunk/lib/esan/esan_sideline_bsd.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/esan/esan_sideline_bsd.cpp?rev=343815&view=auto
==============================================================================
--- compiler-rt/trunk/lib/esan/esan_sideline_bsd.cpp (added)
+++ compiler-rt/trunk/lib/esan/esan_sideline_bsd.cpp Thu Oct  4 14:07:21 2018
@@ -0,0 +1,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




More information about the llvm-commits mailing list