Qin Zhao | 7e4933f | 2016-05-25 17:49:00 +0000 | [diff] [blame^] | 1 | //===-- cache_frag.cpp ----------------------------------------------------===// |
| 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 | // This file contains cache fragmentation-specific code. |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #include "esan.h" |
| 16 | |
| 17 | namespace __esan { |
| 18 | |
| 19 | //===-- Init/exit functions -----------------------------------------------===// |
| 20 | |
| 21 | void processCacheFragCompilationUnitInit(void *Ptr) { |
| 22 | VPrintf(2, "in esan::%s\n", __FUNCTION__); |
| 23 | } |
| 24 | |
| 25 | void processCacheFragCompilationUnitExit(void *Ptr) { |
| 26 | VPrintf(2, "in esan::%s\n", __FUNCTION__); |
| 27 | } |
| 28 | |
| 29 | void initializeCacheFrag() { |
| 30 | VPrintf(2, "in esan::%s\n", __FUNCTION__); |
| 31 | } |
| 32 | |
| 33 | int finalizeCacheFrag() { |
| 34 | VPrintf(2, "in esan::%s\n", __FUNCTION__); |
| 35 | // FIXME: add the cache fragmentation final report. |
| 36 | Report("%s is not finished: nothing yet to report\n", SanitizerToolName); |
| 37 | return 0; |
| 38 | } |
| 39 | |
| 40 | } // namespace __esan |