Skip to content

Commit

Permalink
update name
Browse files Browse the repository at this point in the history
  • Loading branch information
fearful-symmetry committed Sep 17, 2024
1 parent 72b356c commit 43f126a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions GPL/Events/EbpfEventProto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion GPL/Events/Network/Probe.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion non-GPL/Events/Lib/EbpfEvents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 43f126a

Please sign in to comment.