diff --git a/CMakeLists.txt b/CMakeLists.txt index 40f52f3b..1c9b08df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,9 @@ if(NOT DEFINED FALCO_ETC_DIR) set(FALCO_ETC_DIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/falco") endif() +# This will be used to print the architecture for which Falco is compiled. +set(FALCO_TARGET_ARCH ${CMAKE_SYSTEM_PROCESSOR}) + if(NOT DRAIOS_DEBUG_FLAGS) set(DRAIOS_DEBUG_FLAGS "-D_DEBUG") endif() diff --git a/userspace/falco/app_actions/load_config.cpp b/userspace/falco/app_actions/load_config.cpp index b883ecf3..8a8b65ae 100644 --- a/userspace/falco/app_actions/load_config.cpp +++ b/userspace/falco/app_actions/load_config.cpp @@ -26,8 +26,9 @@ application::run_result application::load_config() falco_logger::set_time_format_iso_8601(m_state->config->m_time_format_iso_8601); // log after config init because config determines where logs go - falco_logger::log(LOG_INFO, "Falco version " + std::string(FALCO_VERSION) + "\n"); - falco_logger::log(LOG_INFO, "Falco initialized with configuration file " + m_options.conf_filename + "\n"); + falco_logger::log(LOG_INFO, "Falco version: " + std::string(FALCO_VERSION) + "\n"); + falco_logger::log(LOG_INFO, "Falco initialized with configuration file: " + m_options.conf_filename + "\n"); + falco_logger::log(LOG_INFO, "Falco compiled for: " + std::string(FALCO_TARGET_ARCH) + "\n"); } else { diff --git a/userspace/falco/config_falco.h.in b/userspace/falco/config_falco.h.in index 4b319c24..0b4d79ef 100644 --- a/userspace/falco/config_falco.h.in +++ b/userspace/falco/config_falco.h.in @@ -24,6 +24,7 @@ limitations under the License. #define FALCO_VERSION_PATCH @FALCO_VERSION_PATCH@ #define FALCO_VERSION_PRERELEASE "@FALCO_VERSION_PRERELEASE@" #define FALCO_VERSION_BUILD "@FALCO_VERSION_BUILD@" +#define FALCO_TARGET_ARCH "@FALCO_TARGET_ARCH@" #define FALCO_SOURCE_DIR "${PROJECT_SOURCE_DIR}" #define FALCO_SOURCE_CONF_FILE "${PROJECT_SOURCE_DIR}/falco.yaml" @@ -33,4 +34,4 @@ limitations under the License. #define FALCOSECURITY_LIBS_VERSION "${FALCOSECURITY_LIBS_VERSION}" #define DRIVER_NAME "@DRIVER_NAME@" -#define DRIVER_VERSION "@DRIVER_VERSION@" \ No newline at end of file +#define DRIVER_VERSION "@DRIVER_VERSION@"