mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 10:31:35 +00:00
transfused: add a PING event for vsock RTT measurement
Signed-off-by: David Sheets <dsheets@docker.com>
This commit is contained in:
parent
85d42d5c03
commit
59310aec70
@ -31,6 +31,7 @@
|
||||
#define DEFAULT_SOCKET "v:_:1525"
|
||||
#define DEFAULT_SERVER "v:2:1524"
|
||||
|
||||
#define PING 128
|
||||
#define RMDIR_SYSCALL 0
|
||||
#define UNLINK_SYSCALL 1
|
||||
#define MKDIR_SYSCALL 2
|
||||
@ -509,6 +510,11 @@ void perform_syscall(connection_t * conn, uint8_t syscall, char path[]) {
|
||||
|
||||
switch (syscall) {
|
||||
|
||||
case PING:
|
||||
log_time(conn->params, "PONG");
|
||||
r = 0;
|
||||
break;
|
||||
|
||||
case RMDIR_SYSCALL:
|
||||
name = "rmdir";
|
||||
r = rmdir(path);
|
||||
|
Loading…
Reference in New Issue
Block a user