Skip to content

Commit 5bbae10

Browse files
Andrew Boienashif
authored andcommitted
kernel: offsets: exclude from coverage
None of this is runtime code. Signed-off-by: Andrew Boie <[email protected]>
1 parent 24d7e9e commit 5bbae10

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.
@@ -80,4 +86,5 @@ GEN_ABSOLUTE_SYM(K_THREAD_SIZEOF, sizeof(struct k_thread));
8086
/* size of the device structure. Used by linker scripts */
8187
GEN_ABSOLUTE_SYM(_DEVICE_STRUCT_SIZEOF, sizeof(struct device));
8288

89+
/* LCOV_EXCL_STOP */
8390
#endif /* ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_ */

0 commit comments

Comments
 (0)