From a1ddc0c782d3292f967a7d50da31cbf38234205d Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Tue, 7 May 2024 12:41:34 +0200 Subject: [PATCH] cleanup(modern): remove no more needed macro definition Now we use libbpf 1.3.0 and this definition is already included Signed-off-by: Andrea Terzolo --- driver/modern_bpf/helpers/base/common.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/driver/modern_bpf/helpers/base/common.h b/driver/modern_bpf/helpers/base/common.h index 2c3bf18123e..3e66c76880b 100644 --- a/driver/modern_bpf/helpers/base/common.h +++ b/driver/modern_bpf/helpers/base/common.h @@ -16,31 +16,6 @@ #include #include -/*=============================== LIBBPF MISSING TRACING DEFINITION ===========================*/ - -/* Look at bpf/bpf_tracing.h, this definition is similar - * to the others `PT_REGS_PARAM...` - */ - -#ifndef PT_REGS_PARM6_CORE_SYSCALL - -#if defined(bpf_target_x86) -#define __PT_PARM6_REG r9 -#elif defined(bpf_target_arm64) -#define __PT_PARM6_REG regs[5] -#elif defined(bpf_target_s390) -#define __PT_PARM6_REG gprs[7] -#elif defined(bpf_target_powerpc) -#define __PT_PARM6_REG gpr[8] -#endif - -#define PT_REGS_PARM6_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM6_REG) -#define PT_REGS_PARM6_CORE_SYSCALL(x) PT_REGS_PARM6_CORE(x) - -#endif - -/*=============================== LIBBPF MISSING TRACING DEFINITION ===========================*/ - /*=============================== DEBUG MACRO ===========================*/ /* For more info about this macro look at https://nakryiko.com/posts/bpf-tips-printk/