Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b39dbc5f
Commit
b39dbc5f
authored
Apr 10, 2020
by
Will Chandler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `-yy` to strace command
parent
9d0e91a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
doc/administration/troubleshooting/linux_cheat_sheet.md
doc/administration/troubleshooting/linux_cheat_sheet.md
+4
-2
No files found.
doc/administration/troubleshooting/linux_cheat_sheet.md
View file @
b39dbc5f
...
...
@@ -159,7 +159,7 @@ top -o %CPU
```
shell
# strace a process
strace
-tt
-T
-f
-y
-s
1024
-p
<pid>
strace
-tt
-T
-f
-y
-
yy
-
s
1024
-p
<pid>
# -tt print timestamps with microsecond accuracy
...
...
@@ -169,12 +169,14 @@ strace -tt -T -f -y -s 1024 -p <pid>
# -y print the path associated with file handles
# -yy print socket and device file handle details
# -s max string length to print for an event
# -o output file
# run strace on all unicorn processes
ps auwx |
grep
unicorn |
awk
'{ print " -p " $2}'
| xargs strace
-tt
-T
-f
-y
-s
1024
-o
/tmp/unicorn.txt
ps auwx |
grep
unicorn |
awk
'{ print " -p " $2}'
| xargs strace
-tt
-T
-f
-y
-
yy
-
s
1024
-o
/tmp/unicorn.txt
```
See the
[
strace zine
](
https://wizardzines.com/zines/strace/
)
for a quick walkthrough.
...
...
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