From 43f126aeb8453c43d5348f6c2da0344dbe04ea16 Mon Sep 17 00:00:00 2001 From: fearful-symmetry Date: Tue, 17 Sep 2024 10:20:10 -0700 Subject: [PATCH] update name --- GPL/Events/EbpfEventProto.h | 7 ++++--- GPL/Events/Network/Probe.bpf.c | 2 +- non-GPL/Events/Lib/EbpfEvents.c | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/GPL/Events/EbpfEventProto.h b/GPL/Events/EbpfEventProto.h index bb51b1c9..3def56ae 100644 --- a/GPL/Events/EbpfEventProto.h +++ b/GPL/Events/EbpfEventProto.h @@ -404,9 +404,10 @@ struct ebpf_dns_event { // Basic event statistics struct ebpf_event_stats { - uint64_t lost; // lost events due to a full ringbuffer - uint64_t sent; // events sent through the ringbuffer - uint64_t paged_out; // indicates that that a given sk_buff event contained no non-paged data + uint64_t lost; // lost events due to a full ringbuffer + uint64_t sent; // events sent through the ringbuffer + uint64_t + dns_body_paged_out; // indicates that an sk_buff for a DNS event contained no non-paged data }; #endif // EBPF_EVENTPROBE_EBPFEVENTPROTO_H diff --git a/GPL/Events/Network/Probe.bpf.c b/GPL/Events/Network/Probe.bpf.c index ac8a6642..65ca84a5 100644 --- a/GPL/Events/Network/Probe.bpf.c +++ b/GPL/Events/Network/Probe.bpf.c @@ -134,7 +134,7 @@ static int udp_skb_handle(struct sk_buff *skb, enum ebpf_net_udp_info evt_type) u32 zero = 0; struct ebpf_event_stats *es = bpf_map_lookup_elem(&ringbuf_stats, &zero); if (es != NULL) { - es->paged_out++; + es->dns_body_paged_out++; } goto out; } diff --git a/non-GPL/Events/Lib/EbpfEvents.c b/non-GPL/Events/Lib/EbpfEvents.c index 87f3181e..4b93f06f 100644 --- a/non-GPL/Events/Lib/EbpfEvents.c +++ b/non-GPL/Events/Lib/EbpfEvents.c @@ -820,7 +820,7 @@ int ebpf_event_ctx__read_stats(struct ebpf_event_ctx *ctx, struct ebpf_event_sta for (i = 0; i < libbpf_num_possible_cpus(); i++) { ees->lost += pcpu_ees[i].lost; ees->sent += pcpu_ees[i].sent; - ees->paged_out += pcpu_ees[i].paged_out; + ees->dns_body_paged_out += pcpu_ees[i].dns_body_paged_out; } return 0;