Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 297905 Details for
Bug 243986
Divide by zero in _stp_gettimeofday_ns causes panic
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Syscall usage stap script
syscall-usage.stp (text/plain), 1.00 KB, created by
Matthew Booth
on 2008-03-13 09:49:29 UTC
(
hide
)
Description:
Syscall usage stap script
Filename:
MIME Type:
Creator:
Matthew Booth
Created:
2008-03-13 09:49:29 UTC
Size:
1.00 KB
patch
obsolete
># timers stores system call entry time indexed by thread id >global timers > ># syscalls stores total time spent in system call indexed by <app>.<syscall> >global syscalls > ># Called on entry to every system call >probe syscall.* { > exe = execname(); > > # Only monitor target processes > if(exe != "logger" && > exe != "syslogd" && > exe != "seq") next; > > timers[tid()] = gettimeofday_ms(); >} > ># Called on return of every system call >probe syscall.*.return { > tid = tid(); > > # If we didn't catch the entry, ignore the exit > if(!([tid] in timers)) next; > > # Record the total amount of time spent in this system call > duration = gettimeofday_ms() - timers[tid]; > > if(duration > 0) { > syscalls[execname().".".probefunc()] <<< duration; > } > > # Delete the system call entry time > delete timers[tid]; >} > ># Called when the script exits >probe end { > # Display the totals from syscalls > foreach (call in syscalls) { > printf("%s %i\n", call, @sum(syscalls[call])); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 243986
: 297905