Skip to content

Commit

Permalink
libsel4: def. CONFIG_KERNEL_LOG_BUFFER in autoconf
Browse files Browse the repository at this point in the history
Define CONFIG_KERNEL_LOG_BUFFER in the same way as all other kernel
config options so that it is present in autoconf.h

Signed-off-by: Kent McLeod <kent@kry10.com>
  • Loading branch information
kent-mcleod committed Jul 9, 2021
1 parent b762ba7 commit 5b14257
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,14 @@ if(NOT (KernelBenchmarks STREQUAL "none"))
else()
config_set(KernelEnableBenchmarks ENABLE_BENCHMARKS OFF)
endif()

# Reflect the existance of kernel Log buffer
if(KernelBenchmarksTrackKernelEntries OR KernelBenchmarksTracepoints)
config_set(KernelLogBuffer KERNEL_LOG_BUFFER ON)
else()
config_set(KernelLogBuffer KERNEL_LOG_BUFFER OFF)
endif()

config_string(
KernelMaxNumTracePoints MAX_NUM_TRACE_POINTS
"Use TRACE_POINT_START(k) and TRACE_POINT_STOP(k) macros for recording data, \
Expand Down
6 changes: 0 additions & 6 deletions libsel4/include/sel4/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@
/* Compile-time configuration parameters. Might be set by the build system. */

#include <autoconf.h>

/* Configurations requring the kernel log buffer */
#if defined CONFIG_BENCHMARK_TRACK_KERNEL_ENTRIES || \
defined CONFIG_BENCHMARK_TRACEPOINTS
#define CONFIG_KERNEL_LOG_BUFFER
#endif

0 comments on commit 5b14257

Please sign in to comment.