History

tracing: Disable kcov on trace_preemptirq.c

Functions in trace_preemptirq.c could be invoked from early interrupt code that bypasses kcov trace function's in_task() check. Disable kcov on this file to reduce random code coverage. Link: https://lkml.kernel.org/r/20220523063033.1778974-1-liu3101@purdue.edu

Congyu Liu committed 4 years ago

Commit bb5eb8f1 parent 154827f1 file · +4 −0Browse files

Showing the changes to kernel/trace (1 of 1 file). Show all

Unified · Split

kernel/trace/Makefile+4−0
@@ -31,6 +31,10 @@ ifdef CONFIG_GCOV_PROFILE_FTRACE · 30 unmodified lines
3131 GCOV_PROFILE := y
3232 endif
3333
34+# Functions in this file could be invoked from early interrupt
35+# code and produce random code coverage.
36+KCOV_INSTRUMENT_trace_preemptirq.o := n
37+
3438 CFLAGS_bpf_trace.o := -I$(src)
3539
3640 CFLAGS_trace_benchmark.o := -I$(src)