2016-05-26 01:49:00 +08:00
|
|
|
//===-- cache_frag.h --------------------------------------------*- 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.
|
|
|
|
//
|
|
|
|
// Header for cache-fragmentation-specific code.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef CACHE_FRAG_H
|
|
|
|
#define CACHE_FRAG_H
|
|
|
|
|
|
|
|
namespace __esan {
|
|
|
|
|
|
|
|
void processCacheFragCompilationUnitInit(void *Ptr);
|
|
|
|
void processCacheFragCompilationUnitExit(void *Ptr);
|
|
|
|
|
|
|
|
void initializeCacheFrag();
|
|
|
|
int finalizeCacheFrag();
|
2016-07-09 12:13:25 +08:00
|
|
|
void reportCacheFrag();
|
2016-05-26 01:49:00 +08:00
|
|
|
|
|
|
|
} // namespace __esan
|
|
|
|
|
|
|
|
#endif // CACHE_FRAG_H
|