From d5bcae95c1d1b013893bd3ca6cc04e7f7f5d5736 Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Fri, 3 Jun 2016 16:14:07 +0000 Subject: [esan] Add sideline itimer support Summary: Adds support for creating a separate thread for performing "sideline" actions on a periodic basis via an itimer. A new class SidelineThread implements this feature, exposing a sampling callback to the caller. Adds initial usage of sideline sampling to the working set tool. For now it simply prints the usage at each snapshot at verbosity level 1. Adds a test of this behavior. Adds a new option -record_snapshots to control whether we sample and a new option -sample_freq to control the periodicity of the sampling. Reviewers: aizatsky Subscribers: vitalybuka, zhaoqin, kcc, eugenis, llvm-commits, kubabrecka Differential Revision: http://reviews.llvm.org/D20751 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@271682 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/esan/Unit/circular_buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/esan/Unit') diff --git a/test/esan/Unit/circular_buffer.cpp b/test/esan/Unit/circular_buffer.cpp index a788418b7..00999a272 100644 --- a/test/esan/Unit/circular_buffer.cpp +++ b/test/esan/Unit/circular_buffer.cpp @@ -1,5 +1,5 @@ // RUN: %clangxx_unit -O0 %s -o %t 2>&1 -// RUN: %run %t 2>&1 | FileCheck %s +// RUN: %env_esan_opts="record_snapshots=0" %run %t 2>&1 | FileCheck %s #include "esan/esan_circular_buffer.h" #include "sanitizer_common/sanitizer_placement_new.h" -- cgit v1.2.3