Skip to content
Permalink
Browse files

kernel: offsets: exclude from coverage

None of this is runtime code.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie committed Jun 25, 2019
1 parent 814bc7b commit aade2b5a200fb96500558c3035f12edca77930b1
Showing with 7 additions and 0 deletions.
  1. +7 −0 kernel/include/kernel_offsets.h
@@ -10,6 +10,12 @@

#include <syscall_list.h>

/* All of this is build time magic, but LCOV gets confused. Disable coverage
* for this whole file.
*
* LCOV_EXCL_START
*/

/*
* The final link step uses the symbol _OffsetAbsSyms to force the linkage of
* offsets.o into the ELF image.
@@ -78,4 +84,5 @@ GEN_ABSOLUTE_SYM(K_THREAD_SIZEOF, sizeof(struct k_thread));
/* size of the device structure. Used by linker scripts */
GEN_ABSOLUTE_SYM(_DEVICE_STRUCT_SIZEOF, sizeof(struct device));

/* LCOV_EXCL_STOP */
#endif /* ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_ */

0 comments on commit aade2b5

Please sign in to comment.
You can’t perform that action at this time.