Skip to content

Commit a8d6f40

Browse files
committed
chore!: mark PPME_SCAPEVENT_X with EC_UNKNOWN and set name to NA
BREAKING CHANGE: change `PPME_SCAPEVENT_X` flags and name Signed-off-by: Leonardo Di Giovanna <[email protected]>
1 parent 40fcb8d commit a8d6f40

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

driver/event_stats.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ or GPL2.txt for full copies of the license.
1212
/* These numbers must be updated when we add new events in the event table */
1313
#define SYSCALL_EVENTS_NUM 382
1414
#define TRACEPOINT_EVENTS_NUM 6
15-
#define METAEVENTS_NUM 19
15+
#define METAEVENTS_NUM 18
1616
#define PLUGIN_EVENTS_NUM 1
17-
#define UNKNOWN_EVENTS_NUM 22
17+
#define UNKNOWN_EVENTS_NUM 23

driver/event_table.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ const struct ppm_event_info g_event_info[] = {
13501350
2,
13511351
{{"event_type", PT_UINT32, PF_DEC},
13521352
{"event_data", PT_UINT64, PF_DEC}}},
1353-
[PPME_SCAPEVENT_X] = {"scapevent", EC_INTERNAL | EC_METAEVENT, EF_UNUSED, 0},
1353+
[PPME_SCAPEVENT_X] = {"NA", EC_UNKNOWN, EF_UNUSED, 0},
13541354
[PPME_SYSCALL_SETUID_E] = {"setuid",
13551355
EC_USER | EC_SYSCALL,
13561356
EF_OLD_VERSION | EF_MODIFIES_STATE | EF_CONVERTER_MANAGED,

driver/modern_bpf/definitions/events_dimensions.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
#define SETRESUID_X_SIZE HEADER_LEN + sizeof(int64_t) + sizeof(uint32_t) * 3 + PARAM_LEN * 4
6565
#define SETRESGID_X_SIZE HEADER_LEN + sizeof(int64_t) + sizeof(uint32_t) * 3 + PARAM_LEN * 4
6666
#define SCAPEVENT_E_SIZE HEADER_LEN + sizeof(uint32_t) + sizeof(uint64_t) + PARAM_LEN * 2
67-
#define SCAPEVENT_X_SIZE HEADER_LEN
6867
#define SETUID_X_SIZE HEADER_LEN + sizeof(int64_t) + sizeof(uint32_t) + PARAM_LEN * 2
6968
#define SETGID_X_SIZE HEADER_LEN + sizeof(int64_t) + sizeof(uint32_t) + PARAM_LEN * 2
7069
#define GETUID_X_SIZE HEADER_LEN + sizeof(uint32_t) + PARAM_LEN

userspace/libsinsp/test/public_sinsp_API/ppm_sc_codes.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ const libsinsp::events::set<ppm_event_code> expected_unknown_event_set = {
251251
PPME_TRACER_X, PPME_CPU_HOTPLUG_X,
252252
PPME_PROCINFO_X, PPME_SIGNALDELIVER_X,
253253
PPME_CONTAINER_X, PPME_ASYNCEVENT_X,
254+
PPME_SCAPEVENT_X,
254255
};
255256

256257
/// todo(@Andreagit97): here we miss static sets for io, proc, net groups

0 commit comments

Comments
 (0)