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
Showing the changes to kernel/trace (1 of 1 file). Show all
Unified · Split
| @@ -31,6 +31,10 @@ ifdef CONFIG_GCOV_PROFILE_FTRACE · 30 unmodified lines | ||
| 31 | 31 | GCOV_PROFILE := y |
| 32 | 32 | endif |
| 33 | 33 | |
| 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 | + | |
| 34 | 38 | CFLAGS_bpf_trace.o := -I$(src) |
| 35 | 39 | |
| 36 | 40 | CFLAGS_trace_benchmark.o := -I$(src) |