]>
git.saurik.com Git - apple/xnu.git/blob - EXTERNAL_HEADERS/corecrypto/fipspost_trace.h
5 * Created on 01/25/2017
7 * Copyright (c) 2017 Apple Inc. All rights reserved.
11 #ifndef _CORECRYPTO_FIPSPOST_TRACE_H_
12 #define _CORECRYPTO_FIPSPOST_TRACE_H_
17 * Use this string to separate out tests.
19 #define FIPSPOST_TRACE_TEST_STR "?"
21 int fipspost_trace_is_active(void);
22 void fipspost_trace_call(const char *fname
);
24 /* Only trace when VERBOSE is set to avoid impacting normal boots. */
25 #define FIPSPOST_TRACE_EVENT do { \
26 if (fipspost_trace_is_active()) { \
27 fipspost_trace_call(__FUNCTION__); \
31 #define FIPSPOST_TRACE_MESSAGE(MSG) do { \
32 if (fipspost_trace_is_active()) { \
33 fipspost_trace_call(MSG); \
39 /* Not building a CC_FIPSPOST_TRACE-enabled, no TRACE operations. */
40 #define FIPSPOST_TRACE_EVENT
41 #define FIPSPOST_TRACE_MESSAGE(X)