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
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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t