CONFIG_SCHED_INSTRUMENTATION_SYSCALL should not available if the architecture does not support the required system hook note hooks.

This commit is contained in:
Gregory Nutt
2020-06-16 08:02:03 -06:00
committed by Alan Carvalho de Assis
parent df2bc1e4c3
commit ed9532e31f
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -284,6 +284,14 @@ config ARCH_GLOBAL_IRQDISABLE
interrupts as well so that no context switches can occur on the CPU interrupts as well so that no context switches can occur on the CPU
that disabled "local" interrupts. 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 config ARCH_FPU
bool "FPU support" bool "FPU support"
default y default y
+1
View File
@@ -975,6 +975,7 @@ config SCHED_INSTRUMENTATION_SPINLOCKS
config SCHED_INSTRUMENTATION_SYSCALL config SCHED_INSTRUMENTATION_SYSCALL
bool "System call monitor hooks" bool "System call monitor hooks"
default n default n
depends on LIB_SYSCALL && ARCH_HAVE_SYSCALL_HOOKS
---help--- ---help---
Enables additional hooks for entry and exit from system call. Enables additional hooks for entry and exit from system call.
Board-specific logic must provide this additional logic. Board-specific logic must provide this additional logic.