Skip to content

Commit

Permalink
simplified example by removing xdp and batch hash map delete
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Magnani <simonemagnani.96@gmail.com>
  • Loading branch information
smagnani96 committed May 6, 2024
1 parent c0b9cf8 commit 3abb86c
Show file tree
Hide file tree
Showing 11 changed files with 277 additions and 306 deletions.
4 changes: 2 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
Like kprobes, but with better performance and usability, for kernels 5.5 and later.
* [tcp_connect](fentry/) - Trace outgoing IPv4 TCP connections.
* [tcp_close](tcprtt/) - Log RTT of IPv4 TCP connections using eBPF CO-RE helpers.
* TC and XDP - Attach a program to a network interface to process incoming (XDP) and outgoing (TC) packets.
* [shared_xdp_tc](./shared_xdp_tc/) - monitor and periodically reset the number of incoming and outgoing packets for each network flow identified with the traditional 5-tuple session identifier (IP addresses, L4 Ports, IP protocol).
* TCx - Attach a program to Linux TC (Traffic Control) to process incoming and outgoing packets.
* [tcx](./tcx/) - monitor the number of incoming and outgoing packets for each network flow identified with the traditional 5-tuple session identifier (IP addresses, L4 Ports, IP protocol).
* XDP - Attach a program to a network interface to process incoming packets.
* [xdp](xdp/) - Print packet counts by IPv4 source address.
* Add your use case(s) here!
Expand Down
Binary file removed examples/shared_xdp_tc/bpf_bpfeb.o
Binary file not shown.
Binary file removed examples/shared_xdp_tc/bpf_bpfel.o
Binary file not shown.
155 changes: 0 additions & 155 deletions examples/shared_xdp_tc/main.go

This file was deleted.

149 changes: 0 additions & 149 deletions examples/shared_xdp_tc/xdp_tcx.c

This file was deleted.

File renamed without changes.
Binary file added examples/tcx/bpf_bpfeb.o
Binary file not shown.
File renamed without changes.
Binary file added examples/tcx/bpf_bpfel.o
Binary file not shown.
Loading

0 comments on commit 3abb86c

Please sign in to comment.