Skip to content

Commit

Permalink
Updating example for funcslower
Browse files Browse the repository at this point in the history
  • Loading branch information
dpayne committed Jun 8, 2018
1 parent 8193c3a commit 4aab95e
Showing 1 changed file with 34 additions and 26 deletions.
60 changes: 34 additions & 26 deletions tools/funcslower_example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
would indicate a failure).

# ./funcslower.py -U -u 100 'c:open'
Tracing function calls slower than 100 us... Ctrl+C to quit.
COMM PID LAT(us) RVAL FUNC
ranlib 23857 910.01 6 c:open
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)'
b'[unknown]'
b'[unknown]'
ar 24259 17460.29 8 c:open
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)'
b'[unknown]'
b'[unknown]'
ranlib 24268 1105.09 7 c:open
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)'
b'[unknown]'
b'[unknown]'
sh 25222 100.56 3 c:open
b'[unknown]'
b'[unknown]'
sh 26321 103.44 3 c:open
b'[unknown]'
b'[unknown]'
ar 29657 16472.37 9 c:open
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)'
b'[unknown]'
b'[unknown]'
# ./funcslower -U -m 30 '/usr/sbin/nginx:database_write'
Tracing function calls slower than 30 ms... Ctrl+C to quit.
COMM PID LAT(ms) RVAL FUNC
nginx 1617 30.15 9 /usr/sbin/nginx:database_write
DataBaseProvider::setData(std::string const&, record_s&)
UserDataProvider::saveRecordData(RecordData const&)
RequestProcessor::writeResponse(int)
RequestProcessor::processRequest()
RequestRouter::processRequest(RequestWrapper*, ResponseWrapper*)
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]
nginx 1629 30.14 9 /usr/sbin/nginx:database_write
DataBaseProvider::setData(std::string const&, record_s&)
UserDataProvider::saveRecordData(RecordData const&)
RequestProcessor::writeResponse(int)
RequestProcessor::processRequest()
RequestRouter::processRequest(RequestWrapper*, ResponseWrapper*)
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

Shows the user space stack trace of calls to the libc function call open taking longer than 100 us.
Shows the user space stack trace of calls to the user space function call open taking longer than 30 ms.

USAGE message:

Expand Down

0 comments on commit 4aab95e

Please sign in to comment.