blob: 3e3b087b11ad0efa3eb9ab9cb19df8742cc59b30 [file] [log] [blame]
/*
* Copyright (c) 2018, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef __TFM_LOG_SVC_HANDLER_H__
#define __TFM_LOG_SVC_HANDLER_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "tfm_log_defs.h"
/**
* \brief Retrieves the audit log (SVC function)
*
* \param[in] size Maximum number of bytes to retrieve from the log
* \param[out] buffer Pointer to the buffer that will hold the log
* \param[out] log_size Pointer to the actual size of the log retrieved
*
* \return Returns TFM_LOG_ERR_SUCCESS if retrieval has been completed,
* otherwise error as specified in \ref tfm_log_err
*/
enum tfm_log_err tfm_log_svc_retrieve(uint32_t size,
uint8_t *buffer,
uint32_t *log_size);
#ifdef __cplusplus
}
#endif
#endif /* __TFM_LOG_SVC_HANDLER_H__ */