From 4bd5a5c6f4cccc5903255d36d5fab3d766db876c Mon Sep 17 00:00:00 2001 From: Michal Stanek Date: Fri, 24 May 2024 18:58:23 +0000 Subject: [PATCH] clang format --- GPL/Events/EbpfEventProto.h | 6 +++--- GPL/Events/Process/Probe.bpf.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/GPL/Events/EbpfEventProto.h b/GPL/Events/EbpfEventProto.h index 404b5e35..e6ad5aa0 100644 --- a/GPL/Events/EbpfEventProto.h +++ b/GPL/Events/EbpfEventProto.h @@ -226,9 +226,9 @@ struct ebpf_process_fork_event { struct ebpf_varlen_fields_start vl_fields; } __attribute__((packed)); -#define EXEC_F_SETUID (1 << 0) -#define EXEC_F_SETGID (1 << 1) -#define EXEC_F_MEMFD (1 << 2) +#define EXEC_F_SETUID (1 << 0) +#define EXEC_F_SETGID (1 << 1) +#define EXEC_F_MEMFD (1 << 2) struct ebpf_process_exec_event { struct ebpf_event_header hdr; diff --git a/GPL/Events/Process/Probe.bpf.c b/GPL/Events/Process/Probe.bpf.c index 0f5f9287..9ed8354d 100644 --- a/GPL/Events/Process/Probe.bpf.c +++ b/GPL/Events/Process/Probe.bpf.c @@ -372,7 +372,7 @@ int tracepoint_syscalls_sys_enter_shmget(struct trace_event_raw_sys_enter *ctx) size_t size; long shmflg; }; - struct shmget_args *ex_args = (struct shmget_args *)ctx; + struct shmget_args *ex_args = (struct shmget_args *)ctx; const struct task_struct *task = (struct task_struct *)bpf_get_current_task(); if (is_kernel_thread(task))