From 131601ae14805c62961e1abb577d71a336849b65 Mon Sep 17 00:00:00 2001 From: Filip Szweda Date: Thu, 22 Feb 2024 10:46:17 +0100 Subject: [PATCH] Rename handleNoMoreData to handleNoMoreDataForReading --- libebpfdiscoveryskel/src/Handlers.h | 2 +- libebpfdiscoveryskel/src/SyscallProbes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libebpfdiscoveryskel/src/Handlers.h b/libebpfdiscoveryskel/src/Handlers.h index ecc667f1..6e1bff69 100644 --- a/libebpfdiscoveryskel/src/Handlers.h +++ b/libebpfdiscoveryskel/src/Handlers.h @@ -229,7 +229,7 @@ __attribute__((always_inline)) inline static void handleClose( pushEventToUserspace(ctx, globalStatePtr, &event); } -__attribute__((always_inline)) inline static void handleNoMoreData( +__attribute__((always_inline)) inline static void handleNoMoreDataForReading( struct pt_regs* ctx, struct DiscoveryGlobalState* globalStatePtr, struct DiscoveryAllSessionState* allSessionStatePtr, diff --git a/libebpfdiscoveryskel/src/SyscallProbes.h b/libebpfdiscoveryskel/src/SyscallProbes.h index e06d5ada..1f71e6ff 100644 --- a/libebpfdiscoveryskel/src/SyscallProbes.h +++ b/libebpfdiscoveryskel/src/SyscallProbes.h @@ -300,7 +300,7 @@ __attribute__((always_inline)) inline static int handleSysRecvmsgExit(struct pt_ bpf_probe_read(&readSyscallScalarArgs.buf, sizeof(void*), &readSyscallVectorArgsPtr->iov[i].iov_base); if (readSyscallScalarArgs.buf == NULL) { - handleNoMoreData(ctx, globalStatePtr, allSessionStatePtr, readSyscallScalarArgs.fd, pidTgid); + handleNoMoreDataForReading(ctx, globalStatePtr, allSessionStatePtr, readSyscallScalarArgs.fd, pidTgid); return 0; }