Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
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
0
Merge Requests
0
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
Kirill Smelkov
bcc
Commits
4aab95ee
Commit
4aab95ee
authored
Jun 08, 2018
by
dpayne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating example for funcslower
parent
8193c3af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
26 deletions
+34
-26
tools/funcslower_example.txt
tools/funcslower_example.txt
+34
-26
No files found.
tools/funcslower_example.txt
View file @
4aab95ee
...
@@ -75,34 +75,42 @@ This shows the first two arguments to __kmalloc -- the first one is the size
...
@@ -75,34 +75,42 @@ This shows the first two arguments to __kmalloc -- the first one is the size
of the requested allocation. The return value is also shown (null return values
of the requested allocation. The return value is also shown (null return values
would indicate a failure).
would indicate a failure).
# ./funcslower.py -U -u 100 'c:open'
# ./funcslower -U -m 30 '/usr/sbin/nginx:database_write'
Tracing function calls slower than 100 us... Ctrl+C to quit.
Tracing function calls slower than 30 ms... Ctrl+C to quit.
COMM PID LAT(us) RVAL FUNC
COMM PID LAT(ms) RVAL FUNC
ranlib 23857 910.01 6 c:open
nginx 1617 30.15 9 /usr/sbin/nginx:database_write
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)'
DataBaseProvider::setData(std::string const&, record_s&)
b'[unknown]'
UserDataProvider::saveRecordData(RecordData const&)
b'[unknown]'
RequestProcessor::writeResponse(int)
ar 24259 17460.29 8 c:open
RequestProcessor::processRequest()
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)'
RequestRouter::processRequest(RequestWrapper*, ResponseWrapper*)
b'[unknown]'
ngx_http_core_content_phase
b'[unknown]'
ngx_http_core_run_phases
ranlib 24268 1105.09 7 c:open
ngx_http_process_request
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)'
ngx_process_events_and_timers
b'[unknown]'
ngx_spawn_process
b'[unknown]'
ngx_master_process_cycle
sh 25222 100.56 3 c:open
main
b'[unknown]'
__libc_start_main
b'[unknown]'
[unknown]
sh 26321 103.44 3 c:open
nginx 1629 30.14 9 /usr/sbin/nginx:database_write
b'[unknown]'
DataBaseProvider::setData(std::string const&, record_s&)
b'[unknown]'
UserDataProvider::saveRecordData(RecordData const&)
ar 29657 16472.37 9 c:open
RequestProcessor::writeResponse(int)
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)'
RequestProcessor::processRequest()
b'[unknown]'
RequestRouter::processRequest(RequestWrapper*, ResponseWrapper*)
b'[unknown]'
ngx_http_core_content_phase
ngx_http_core_run_phases
ngx_http_process_request
ngx_process_events_and_timers
ngx_spawn_process
ngx_master_process_cycle
main
__libc_start_main
[unknown]
^C
^C
Shows the user space stack trace of calls to the
libc function call open taking longer than 100 u
s.
Shows the user space stack trace of calls to the
user space function call open taking longer than 30 m
s.
USAGE message:
USAGE message:
...
...
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