[esan] EfficiencySanitizer libc interceptors
authorDerek Bruening <bruening@google.com>
Sat, 23 Apr 2016 16:41:24 +0000 (16:41 +0000)
committerDerek Bruening <bruening@google.com>
Sat, 23 Apr 2016 16:41:24 +0000 (16:41 +0000)
commit8d97011eb275d0f803c26a45d20a64d1b12826b0
treec599cf99b09028346bb8388b9626c523b16db6c8
parent85ce0f1f1fbf238001adbcda622586777e5c01d6
[esan] EfficiencySanitizer libc interceptors

Summary:
Adds libc interceptors to the runtime library for the new
EfficiencySanitizer ("esan") family of tools.  The interceptors cover
the memory operations in most common library calls and will be shared
among all esan tools.

Reviewers: aizatsky

Subscribers: zhaoqin, tberghammer, danalbert, srhines, llvm-commits, vitalybuka, eugenis, kcc

Differential Revision: http://reviews.llvm.org/D19411

llvm-svn: 267293
compiler-rt/lib/esan/CMakeLists.txt
compiler-rt/lib/esan/esan.cpp
compiler-rt/lib/esan/esan.h
compiler-rt/lib/esan/esan_interceptors.cpp [new file with mode: 0644]
compiler-rt/test/esan/TestCases/libc-intercept.c [new file with mode: 0644]
compiler-rt/test/esan/TestCases/verbose-simple.c