diff options
Diffstat (limited to 'src/collectors/ebpf.plugin/ebpf_shm.h')
-rw-r--r-- | src/collectors/ebpf.plugin/ebpf_shm.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/collectors/ebpf.plugin/ebpf_shm.h b/src/collectors/ebpf.plugin/ebpf_shm.h index 6b45d5c539..6f89faa9e8 100644 --- a/src/collectors/ebpf.plugin/ebpf_shm.h +++ b/src/collectors/ebpf.plugin/ebpf_shm.h @@ -28,16 +28,28 @@ #define NETDATA_SYSTEMD_SHM_DT_CONTEXT "systemd.service.shmdt" #define NETDATA_SYSTEMD_SHM_CTL_CONTEXT "systemd.service.shmctl" -typedef struct netdata_publish_shm { +typedef struct __attribute__((packed)) netdata_publish_shm { uint64_t ct; - char name[TASK_COMM_LEN]; - uint64_t get; - uint64_t at; - uint64_t dt; - uint64_t ctl; + uint32_t get; + uint32_t at; + uint32_t dt; + uint32_t ctl; } netdata_publish_shm_t; +typedef struct netdata_ebpf_shm { + uint64_t ct; + uint32_t tgid; + uint32_t uid; + uint32_t gid; + char name[TASK_COMM_LEN]; + + uint32_t get; + uint32_t at; + uint32_t dt; + uint32_t ctl; +} netdata_ebpf_shm_t; + enum shm_tables { NETDATA_PID_SHM_TABLE, NETDATA_SHM_CONTROLLER, |