Kconfig (fdde5f3b6ba402908b9e289626e6d817852e8300) | Kconfig (68e76e034b6b1c1ce2eece1ab8ae4008e14be470) |
---|---|
1# 2# Architectures that offer an FUNCTION_TRACER implementation should 3# select HAVE_FUNCTION_TRACER: 4# 5 6config USER_STACKTRACE_SUPPORT 7 bool 8 --- 341 unchanged lines hidden (view full) --- 350 in the kernel. It will display the results in: 351 352 /sys/kernel/debug/tracing/trace_stat/branch_annotated 353 354 Note: this will add a significant overhead; only turn this 355 on if you need to profile the system's use of these macros. 356 357config PROFILE_ALL_BRANCHES | 1# 2# Architectures that offer an FUNCTION_TRACER implementation should 3# select HAVE_FUNCTION_TRACER: 4# 5 6config USER_STACKTRACE_SUPPORT 7 bool 8 --- 341 unchanged lines hidden (view full) --- 350 in the kernel. It will display the results in: 351 352 /sys/kernel/debug/tracing/trace_stat/branch_annotated 353 354 Note: this will add a significant overhead; only turn this 355 on if you need to profile the system's use of these macros. 356 357config PROFILE_ALL_BRANCHES |
358 bool "Profile all if conditionals" | 358 bool "Profile all if conditionals" if !FORTIFY_SOURCE |
359 select TRACE_BRANCH_PROFILING 360 help 361 This tracer profiles all branch conditions. Every if () 362 taken in the kernel is recorded whether it hit or miss. 363 The results will be displayed in: 364 365 /sys/kernel/debug/tracing/trace_stat/branch_all 366 --- 158 unchanged lines hidden (view full) --- 525 in debugfs called function_profile_enabled which defaults to zero. 526 When a 1 is echoed into this file profiling begins, and when a 527 zero is entered, profiling stops. A "functions" file is created in 528 the trace_stats directory; this file shows the list of functions that 529 have been hit and their counters. 530 531 If in doubt, say N. 532 | 359 select TRACE_BRANCH_PROFILING 360 help 361 This tracer profiles all branch conditions. Every if () 362 taken in the kernel is recorded whether it hit or miss. 363 The results will be displayed in: 364 365 /sys/kernel/debug/tracing/trace_stat/branch_all 366 --- 158 unchanged lines hidden (view full) --- 525 in debugfs called function_profile_enabled which defaults to zero. 526 When a 1 is echoed into this file profiling begins, and when a 527 zero is entered, profiling stops. A "functions" file is created in 528 the trace_stats directory; this file shows the list of functions that 529 have been hit and their counters. 530 531 If in doubt, say N. 532 |
533config BPF_KPROBE_OVERRIDE 534 bool "Enable BPF programs to override a kprobed function" 535 depends on BPF_EVENTS 536 depends on FUNCTION_ERROR_INJECTION 537 default n 538 help 539 Allows BPF to override the execution of a probed function and 540 set a different return value. This is used for error injection. 541 | |
542config FTRACE_MCOUNT_RECORD 543 def_bool y 544 depends on DYNAMIC_FTRACE 545 depends on HAVE_FTRACE_MCOUNT_RECORD 546 547config FTRACE_SELFTEST 548 bool 549 --- 180 unchanged lines hidden --- | 533config FTRACE_MCOUNT_RECORD 534 def_bool y 535 depends on DYNAMIC_FTRACE 536 depends on HAVE_FTRACE_MCOUNT_RECORD 537 538config FTRACE_SELFTEST 539 bool 540 --- 180 unchanged lines hidden --- |