Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
360c1c13
Commit
360c1c13
authored
Sep 19, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tcp: Show tcp queues contents when requested
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
008d3a98
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
cr-show.c
cr-show.c
+2
-1
cr-show.h
include/cr-show.h
+1
-0
sk-tcp.c
sk-tcp.c
+12
-0
No files found.
cr-show.c
View file @
360c1c13
...
...
@@ -23,6 +23,7 @@
#include "uts_ns.h"
#include "ipc_ns.h"
#include "pstree.h"
#include "cr-show.h"
#include "protobuf.h"
#include "protobuf/pstree.pb-c.h"
...
...
@@ -300,7 +301,7 @@ static struct show_image_info show_infos[] = {
SHOW_PLAIN
(
RLIMIT
),
SHOW_PLAIN
(
TUNFILE
),
{
TCP_STREAM_MAGIC
,
PB_TCP_STREAM
,
true
,
NULL
,
"1:%u 2:%u 3:%u 4:%u"
,
},
{
TCP_STREAM_MAGIC
,
PB_TCP_STREAM
,
true
,
show_tcp_stream
,
"1:%u 2:%u 3:%u 4:%u"
,
},
{
STATS_MAGIC
,
PB_STATS
,
true
,
NULL
,
"1.1:%u 1.2:%u 1.3:%u 1.4:%u 1.5:%Lu 1.6:%Lu 1.7:%Lu"
,
},
{
FDINFO_MAGIC
,
PB_FDINFO
,
false
,
NULL
,
"flags:%#o fd:%d"
,
},
{
UNIXSK_MAGIC
,
PB_UNIX_SK
,
false
,
NULL
,
"1:%#x 2:%#x 3:%d 4:%d 5:%d 6:%d 7:%d 8:%#x 11:S"
,
},
...
...
include/cr-show.h
View file @
360c1c13
...
...
@@ -16,4 +16,5 @@ extern void ipc_shm_handler(int fd, void *obj);
extern
void
ipc_msg_handler
(
int
fd
,
void
*
obj
);
extern
void
ipc_sem_handler
(
int
fd
,
void
*
obj
);
extern
int
cr_parse_fd
(
int
fd
,
u32
magic
);
extern
void
show_tcp_stream
(
int
fd
,
void
*
obj
);
#endif
/* __CR_SHOW_H__ */
sk-tcp.c
View file @
360c1c13
...
...
@@ -20,6 +20,7 @@
#include "namespaces.h"
#include "xmalloc.h"
#include "config.h"
#include "cr-show.h"
#include "protobuf.h"
#include "protobuf/tcp-stream.pb-c.h"
...
...
@@ -635,3 +636,14 @@ out:
return
ret
;
}
void
show_tcp_stream
(
int
fd
,
void
*
obj
)
{
TcpStreamEntry
*
e
=
obj
;
if
(
opts
.
show_pages_content
)
{
pr_msg
(
"In-queue:"
);
print_image_data
(
fd
,
e
->
inq_len
,
1
);
pr_msg
(
"Out-queue:"
);
print_image_data
(
fd
,
e
->
outq_len
,
1
);
}
}
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