1 //===-- xray_inmemory_log.h
2 //------------------------------------------------===//
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 // This file is a part of XRay, a function call tracing system.
13 //===----------------------------------------------------------------------===//
14 #ifndef XRAY_XRAY_INMEMORY_LOG_H
15 #define XRAY_XRAY_INMEMORY_LOG_H
17 #include "xray/xray_log_interface.h"
19 /// Basic (Naive) Mode
20 /// ==================
22 /// This implementation hooks in through the XRay logging implementation
23 /// framework. The Basic Mode implementation will keep appending to a file as
24 /// soon as the thread-local buffers are full. It keeps minimal in-memory state
25 /// and does the minimum filtering required to keep log files smaller.
29 XRayLogInitStatus basicLoggingInit(size_t BufferSize, size_t BufferMax,
30 void *Options, size_t OptionsSize);
31 XRayLogInitStatus basicLoggingFinalize();
33 void basicLoggingHandleArg0RealTSC(int32_t FuncId, XRayEntryType Entry);
34 void basicLoggingHandleArg0EmulateTSC(int32_t FuncId, XRayEntryType Entry);
35 void basicLoggingHandleArg1RealTSC(int32_t FuncId, XRayEntryType Entry,
37 void basicLoggingHandleArg1EmulateTSC(int32_t FuncId, XRayEntryType Entry,
39 XRayLogFlushStatus basicLoggingFlush();
40 XRayLogInitStatus basicLoggingReset();
44 #endif // XRAY_XRAY_INMEMORY_LOG_H