Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
d13b0bf7
Commit
d13b0bf7
authored
Feb 22, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts: don't double-count SSH reads
parent
e4bc14b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
scripts/profile_ansible.d
scripts/profile_ansible.d
+14
-13
No files found.
scripts/profile_ansible.d
View file @
d13b0bf7
...
@@ -65,9 +65,9 @@ dtrace:::BEGIN
...
@@ -65,9 +65,9 @@ dtrace:::BEGIN
}
}
syscall
::
socket
:
entry
syscall
::
socket
:
entry
/
execname
==
SSH
&&
arg0
==
PF_INET
/
/
execname
==
SSH
/
{
{
self
->
is_inet
=
1
;
self
->
is_inet
=
(
arg0
==
PF_INET
)
;
}
}
syscall
::
socket
:
return
syscall
::
socket
:
return
...
@@ -76,27 +76,28 @@ syscall::socket:return
...
@@ -76,27 +76,28 @@ syscall::socket:return
self
->
inet_fds
[
arg0
]
=
1
;
self
->
inet_fds
[
arg0
]
=
1
;
}
}
syscall
::
write
*:
entry
syscall
::
write
:
entry
,
/
self
->
inet_fds
[
arg0
]/
syscall
::
write_nocancel
:
entry
{
{
self
->
write_fd
=
arg0
;
self
->
fd
=
arg0
;
self
->
write_nbyte
=
arg2
;
}
}
syscall
::
write
*:
return
syscall
::
write
:
return
,
/
self
->
write_fd
&&
arg0
>
0
/
syscall
::
write_nocancel
:
return
/
self
->
inet_fds
[
self
->
fd
]
&&
arg0
>
0
/
{
{
printf
(
"%d,WRITE,%d,,,\n"
,
walltimestamp
,
arg0
);
printf
(
"%d,WRITE,%d,,,\n"
,
walltimestamp
,
arg0
);
}
}
syscall
::
read
*:
entry
syscall
::
read
:
entry
,
/
self
->
inet_fds
[
arg0
]/
syscall
::
read_nocancel
:
entry
{
{
self
->
read_
fd
=
arg0
;
self
->
fd
=
arg0
;
}
}
syscall
::
read
*:
return
syscall
::
read
*:
return
,
/
self
->
read_fd
&&
arg0
>
0
/
syscall
::
read_nocancel
:
return
/
self
->
inet_fds
[
self
->
fd
]
&&
arg0
>
0
/
{
{
printf
(
"%d,READ,%d,,,\n"
,
walltimestamp
,
arg0
);
printf
(
"%d,READ,%d,,,\n"
,
walltimestamp
,
arg0
);
}
}
...
...
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