Software APIs
coverage.h
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_COVERAGE_H_
6 #define OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_COVERAGE_H_
7 
8 /**
9  * Sends the LLVM profile buffer along with its length and CRC32.
10  *
11  * This function must be called at the end of a test. Note that this profile
12  * data is raw and must be indexed before it can be used to generate coverage
13  * reports.
14  */
15 void coverage_send_buffer(void);
16 
17 #endif // OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_COVERAGE_H_