Skip to content

Commit aade2b5

Browse files
Andrew Boieandrewboie
authored andcommitted
kernel: offsets: exclude from coverage
None of this is runtime code. Signed-off-by: Andrew Boie <[email protected]>
1 parent 814bc7b commit aade2b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kernel/include/kernel_offsets.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111
#include <syscall_list.h>
1212

13+
/* All of this is build time magic, but LCOV gets confused. Disable coverage
14+
* for this whole file.
15+
*
16+
* LCOV_EXCL_START
17+
*/
18+
1319
/*
1420
* The final link step uses the symbol _OffsetAbsSyms to force the linkage of
1521
* offsets.o into the ELF image.
@@ -78,4 +84,5 @@ GEN_ABSOLUTE_SYM(K_THREAD_SIZEOF, sizeof(struct k_thread));
7884
/* size of the device structure. Used by linker scripts */
7985
GEN_ABSOLUTE_SYM(_DEVICE_STRUCT_SIZEOF, sizeof(struct device));
8086

87+
/* LCOV_EXCL_STOP */
8188
#endif /* ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_ */

0 commit comments

Comments
 (0)