forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tcptop: fix display of received bytes, reduce syscalls (fixes iovisor…
…#1871) the keys variable was a reference to ipv4_recv_bytes, and after merging the keys of ipv4_send_bytes the original ipv4_recv_bytes BPF table also contained all keys, therefore the `if k in ipv4_recv_bytes` check a few lines below always evaluates to true with this commit all BPF tables are copied to userspace as dicts once (to reduce the number of syscalls) and the keys are merged in a new dict
- Loading branch information
1 parent
4ac6307
commit c64f487
Showing
1 changed file
with
50 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters