From 1fbbe874c2942dce00b9a0f2cee30c4e33922c63 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Mon, 2 Dec 2024 17:09:36 +0100 Subject: [PATCH] tmp Signed-off-by: Andrea Terzolo --- userspace/libscap/engine/savefile/converter/converter.cpp | 3 +-- userspace/libscap/engine/savefile/converter/converter.h | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/userspace/libscap/engine/savefile/converter/converter.cpp b/userspace/libscap/engine/savefile/converter/converter.cpp index 70e6283ff63..774c28c0b64 100644 --- a/userspace/libscap/engine/savefile/converter/converter.cpp +++ b/userspace/libscap/engine/savefile/converter/converter.cpp @@ -26,6 +26,7 @@ limitations under the License. #include #include #include +#include typedef std::shared_ptr safe_scap_evt_t; @@ -36,8 +37,6 @@ static inline safe_scap_evt_t safe_scap_evt(scap_evt *evt) { // use a shared pointer to store the events static std::unordered_map evt_storage = {}; -extern const struct ppm_event_info g_event_info[]; - static const char *get_event_name(ppm_event_code event_type) { const struct ppm_event_info *event_info = &g_event_info[event_type]; return event_info->name; diff --git a/userspace/libscap/engine/savefile/converter/converter.h b/userspace/libscap/engine/savefile/converter/converter.h index 338486b1031..7c8cab11db2 100644 --- a/userspace/libscap/engine/savefile/converter/converter.h +++ b/userspace/libscap/engine/savefile/converter/converter.h @@ -25,6 +25,9 @@ extern "C" { #include typedef struct ppm_evt_hdr scap_evt; +struct ppm_event_info; + +extern const struct ppm_event_info g_event_info[]; // 50 consecutive conversions on the same event should be more than enough #define MAX_CONVERSION_BOUNDARY 50