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

Unified · Split

kernel/trace/Makefile+4−0
@@ -31,6 +31,10 @@ ifdef CONFIG_GCOV_PROFILE_FTRACE · 30 unmodified lines
31GCOV_PROFILE := y31GCOV_PROFILE := y
32endif32endif
33 33
34# Functions in this file could be invoked from early interrupt
35# code and produce random code coverage.
36KCOV_INSTRUMENT_trace_preemptirq.o := n
37
34CFLAGS_bpf_trace.o := -I$(src)38CFLAGS_bpf_trace.o := -I$(src)
35 39
36CFLAGS_trace_benchmark.o := -I$(src)40CFLAGS_trace_benchmark.o := -I$(src)