Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
1e650bb6
Commit
1e650bb6
authored
May 25, 2018
by
yonghong-song
Committed by
GitHub
May 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1779 from iovisor/yhs_dev
fix tcplife.py rewriter issue
parents
eee383cf
cb136c15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/tcplife.py
tools/tcplife.py
+2
-2
No files found.
tools/tcplife.py
View file @
1e650bb6
...
...
@@ -311,8 +311,8 @@ TRACEPOINT_PROBE(sock, inet_sock_set_state)
// get throughput stats. see tcp_get_info().
u64 rx_b = 0, tx_b = 0, sport = 0;
struct tcp_sock *tp = (struct tcp_sock *)sk;
bpf_probe_read(&rx_b, sizeof(rx_b), &tp->bytes_received)
;
bpf_probe_read(&tx_b, sizeof(tx_b), &tp->bytes_acked)
;
rx_b = tp->bytes_received
;
tx_b = tp->bytes_acked
;
if (args->family == AF_INET) {
struct ipv4_data_t data4 = {.span_us = delta_us,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment