aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJordan Rife <jordan@jrife.io>2025-05-02 09:15:24 -0700
committerMartin KaFai Lau <martin.lau@kernel.org>2025-05-02 12:07:46 -0700
commit5668f73f09aef16755da4453dc0b5b725469878a (patch)
tree73b19b0d6c5c329a159cf1541f76f83981f0fb06 /tools/perf/scripts/python/export-to-postgresql.py
parentbpf: udp: Use bpf_udp_iter_batch_item for bpf_udp_iter_state batch items (diff)
downloadwireguard-linux-5668f73f09aef16755da4453dc0b5b725469878a.tar.xz
wireguard-linux-5668f73f09aef16755da4453dc0b5b725469878a.zip
bpf: udp: Avoid socket skips and repeats during iteration
Replace the offset-based approach for tracking progress through a bucket in the UDP table with one based on socket cookies. Remember the cookies of unprocessed sockets from the last batch and use this list to pick up where we left off or, in the case that the next socket disappears between reads, find the first socket after that point that still exists in the bucket and resume from there. This approach guarantees that all sockets that existed when iteration began and continue to exist throughout will be visited exactly once. Sockets that are added to the table during iteration may or may not be seen, but if they are they will be seen exactly once. Signed-off-by: Jordan Rife <jordan@jrife.io> Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions