From 6bf09c3d8bd272e1a4f4187e98315616f1d7337f Mon Sep 17 00:00:00 2001 From: Mauro Ezequiel Moltrasio Date: Tue, 30 Apr 2024 12:42:14 +0200 Subject: [PATCH] fix(build): remove OUT references in the modern bpf engine Signed-off-by: Mauro Ezequiel Moltrasio --- userspace/libscap/engine/modern_bpf/scap_modern_bpf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/userspace/libscap/engine/modern_bpf/scap_modern_bpf.c b/userspace/libscap/engine/modern_bpf/scap_modern_bpf.c index 50826401e53..cc338de9b9c 100644 --- a/userspace/libscap/engine/modern_bpf/scap_modern_bpf.c +++ b/userspace/libscap/engine/modern_bpf/scap_modern_bpf.c @@ -49,8 +49,8 @@ static void scap_modern_bpf__free_engine(struct scap_engine_handle engine) /* The third parameter is not the CPU number from which we extract the event but the ring buffer number. * For the old BPF probe and the kernel module the number of CPUs is equal to the number of buffers since we always use a per-CPU approach. */ -static int32_t scap_modern_bpf__next(struct scap_engine_handle engine, OUT scap_evt** pevent, OUT uint16_t* buffer_id, - OUT uint32_t* pflags) +static int32_t scap_modern_bpf__next(struct scap_engine_handle engine, scap_evt** pevent, uint16_t* buffer_id, + uint32_t* pflags) { pman_consume_first_event((void**)pevent, (int16_t*)buffer_id); @@ -250,7 +250,7 @@ static uint32_t scap_modern_bpf__get_n_devs(struct scap_engine_handle engine) return pman_get_required_buffers(); } -int32_t scap_modern_bpf__get_stats(struct scap_engine_handle engine, OUT scap_stats* stats) +int32_t scap_modern_bpf__get_stats(struct scap_engine_handle engine, scap_stats* stats) { if(pman_get_scap_stats(stats)) { @@ -259,7 +259,7 @@ int32_t scap_modern_bpf__get_stats(struct scap_engine_handle engine, OUT scap_st return SCAP_SUCCESS; } -const struct metrics_v2* scap_modern_bpf__get_stats_v2(struct scap_engine_handle engine, uint32_t flags, OUT uint32_t* nstats, OUT int32_t* rc) +const struct metrics_v2* scap_modern_bpf__get_stats_v2(struct scap_engine_handle engine, uint32_t flags, uint32_t* nstats, int32_t* rc) { struct modern_bpf_engine* handle = engine.m_handle; if (!(handle->m_flags & ENGINE_FLAG_BPF_STATS_ENABLED)) @@ -270,7 +270,7 @@ const struct metrics_v2* scap_modern_bpf__get_stats_v2(struct scap_engine_handle return pman_get_metrics_v2(flags, nstats, rc); } -int32_t scap_modern_bpf__get_n_tracepoint_hit(struct scap_engine_handle engine, OUT long* ret) +int32_t scap_modern_bpf__get_n_tracepoint_hit(struct scap_engine_handle engine, long* ret) { if(pman_get_n_tracepoint_hit(ret)) {