Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <[email protected]>
  • Loading branch information
Andreagit97 committed Dec 2, 2024
1 parent c85f219 commit 1fbbe87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions userspace/libscap/engine/savefile/converter/converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ limitations under the License.
#include <string>
#include <stdexcept>
#include <memory>
#include <converter/converter.h>

typedef std::shared_ptr<scap_evt> safe_scap_evt_t;

Expand All @@ -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<uint64_t, safe_scap_evt_t> 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;
Expand Down
3 changes: 3 additions & 0 deletions userspace/libscap/engine/savefile/converter/converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ extern "C" {
#include <libscap/engine/savefile/converter/results.h>

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
Expand Down

0 comments on commit 1fbbe87

Please sign in to comment.