cleanup: include/: move misc/gcov.h to debug/gcov.h

move misc/gcov.h to debug/gcov.h and
create a shim for backward-compatibility.

No functional changes to the headers.
A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES.

Related to #16539

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-06-26 10:38:42 -04:00
commit fa1c60014b
3 changed files with 26 additions and 11 deletions

19
include/debug/gcov.h Normal file
View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2018 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEBUG_GCOV_H_
#define ZEPHYR_INCLUDE_DEBUG_GCOV_H_
#ifdef CONFIG_COVERAGE_GCOV
void gcov_coverage_dump(void);
void gcov_static_init(void);
#else
void gcov_coverage_dump(void) { }
void gcov_static_init(void) { }
#endif /* CONFIG_COVERAGE */
#endif /* ZEPHYR_INCLUDE_DEBUG_GCOV_H_ */