benchmark: Build osperf only when pipes and hpwork are enabled

Building osperf requires pipes and hpwork, which are disabled
by default. These features should be enabled before osperf is
built. The select directive could cause issues and should be
avoided, so we use the depends on directive.

Signed-off-by: Fukui Daichi <a.dog.will.talk@akane.waseda.jp>
This commit is contained in:
Fukui Daichi 2024-08-30 07:31:17 +00:00 committed by Xiang Xiao
parent 396290962f
commit 982636ac4a

View File

@ -6,6 +6,8 @@
config BENCHMARK_OSPERF config BENCHMARK_OSPERF
tristate "System performance profiling" tristate "System performance profiling"
default n default n
depends on PIPES
depends on SCHED_HPWORK
---help--- ---help---
Measure the performance of core system functions, such as thread Measure the performance of core system functions, such as thread
switching and the time required for semaphore execution switching and the time required for semaphore execution