From ed9532e31f8d2b41d66e865fe59d76ca9ea789c7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 16 Jun 2020 08:02:03 -0600 Subject: [PATCH] CONFIG_SCHED_INSTRUMENTATION_SYSCALL should not available if the architecture does not support the required system hook note hooks. --- arch/Kconfig | 8 ++++++++ sched/Kconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index eaebb89a78..21e3f5d10d 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -284,6 +284,14 @@ config ARCH_GLOBAL_IRQDISABLE interrupts as well so that no context switches can occur on the CPU that disabled "local" interrupts. +config ARCH_HAVE_SYSCALL_HOOKS + bool + default n + ---help--- + Indicates that the architecture supports the system call hooks as + required if CONFIG_SCHED_INSTRUMENTATION_SYSCALL is enabled. Refer + to sched/Kconfig for additional information. + config ARCH_FPU bool "FPU support" default y diff --git a/sched/Kconfig b/sched/Kconfig index a1d66dd36c..a534969d87 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -975,6 +975,7 @@ config SCHED_INSTRUMENTATION_SPINLOCKS config SCHED_INSTRUMENTATION_SYSCALL bool "System call monitor hooks" default n + depends on LIB_SYSCALL && ARCH_HAVE_SYSCALL_HOOKS ---help--- Enables additional hooks for entry and exit from system call. Board-specific logic must provide this additional logic.