1config KERNEL_PERF 2 bool "Enable Perf Feature" 3 default n 4 depends on KERNEL_EXTKERNEL 5 select KERNEL_SMP_CALL if KERNEL_SMP 6 help 7 If you wish to build LiteOS with support for perf. 8 9choice 10 prompt "Time-consuming Calc Methods" 11 depends on KERNEL_PERF 12 13config PERF_CALC_TIME_BY_TICK 14 bool "By Tick" 15 16config PERF_CALC_TIME_BY_CYCLE 17 bool "By Cpu Cycle" 18endchoice 19 20config PERF_BUFFER_SIZE 21 int "Perf Sampling Buffer Size" 22 default 20480 23 depends on KERNEL_PERF 24 25config PERF_HW_PMU 26 bool "Enable Hardware Pmu Events for Sampling" 27 default n 28 depends on KERNEL_PERF 29 30config PERF_TIMED_PMU 31 bool "Enable Hrtimer Period Events for Sampling" 32 default n 33 depends on KERNEL_PERF && HRTIMER_ENABLE 34 35config PERF_SW_PMU 36 bool "Enable Software Events for Sampling" 37 default y 38 depends on KERNEL_PERF && KERNEL_HOOK