From 45230d46d5e5522233942b27f8adf0ef981e0490 Mon Sep 17 00:00:00 2001 From: Tolya Korniltsev Date: Mon, 7 Jul 2025 13:28:40 +0700 Subject: [PATCH] fix(tracemgmt): remove unnecessary errno check in rate limit reset condition --- support/ebpf/tracemgmt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/ebpf/tracemgmt.h b/support/ebpf/tracemgmt.h index b66200aad..cdfdf63de 100644 --- a/support/ebpf/tracemgmt.h +++ b/support/ebpf/tracemgmt.h @@ -173,7 +173,7 @@ static inline EBPF_INLINE bool report_pid(void *ctx, u64 pid_tgid, int ratelimit increment_metric(metricID_PIDEventsErr); return false; } - if (ratelimit_action == RATELIMIT_ACTION_RESET || errNo != 0) { + if (ratelimit_action == RATELIMIT_ACTION_RESET) { bpf_map_delete_elem(&reported_pids, &pid); }