Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
59abd0fd
"vscode:/vscode.git/clone" did not exist on "0a1c281ac36fc24f94f3156ddbe1092ff501cd3b"
Commit
59abd0fd
authored
Aug 24, 2021
by
Antoine Kaufmann
Browse files
dist/common: add last_sent_pos for debugging
parent
aeec71c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
dist/common/net.c
dist/common/net.c
+1
-0
dist/common/net.h
dist/common/net.h
+1
-0
No files found.
dist/common/net.c
View file @
59abd0fd
...
...
@@ -97,6 +97,7 @@ bool NetPeerAdd(const char *path, bool dev) {
peer
->
is_dev
=
dev
;
peer
->
sock_fd
=
-
1
;
peer
->
shm_fd
=
-
1
;
peer
->
last_sent_pos
=
-
1
;
return
true
;
}
...
...
dist/common/net.h
View file @
59abd0fd
...
...
@@ -42,6 +42,7 @@ struct Peer {
uint32_t
local_pos_reported
;
// last position cleaned
volatile
uint32_t
local_pos_cleaned
;
uint32_t
last_sent_pos
;
// rkey and base address of the remote queue to write to
uint64_t
remote_rkey
;
...
...
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