-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
3 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
/* | ||
* Copyright (c) 2018 Intel Corporation | ||
* Copyright (c) 2019 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef ZEPHYR_INCLUDE_MISC_GCOV_H_ | ||
#define ZEPHYR_INCLUDE_MISC_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) { } | ||
#ifndef CONFIG_COMPAT_INCLUDES | ||
#warning "This header file has moved, include <debug/gcov.h> instead." | ||
#endif | ||
|
||
#endif /* CONFIG_COVERAGE */ | ||
#include <debug/gcov.h> | ||
|
||
#endif /* ZEPHYR_INCLUDE_MISC_GCOV_H_ */ | ||
#endif /* ZEPHYR_INCLUDE_MISC_GCOV_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters