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 654929 Details for
Bug 877095
libvirt doesn't clean up open files for device assignment
[?]
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.
unclosed-fds.stp
unclosed-fds.stp (text/plain), 1.00 KB, created by
Jiri Denemark
on 2012-11-30 10:57:18 UTC
(
hide
)
Description:
unclosed-fds.stp
Filename:
MIME Type:
Creator:
Jiri Denemark
Created:
2012-11-30 10:57:18 UTC
Size:
1.00 KB
patch
obsolete
>#!/usr/bin/stap > >/* > * Usage: stap -d process_binarry --ldd unclosed-fds.stp process_name > * > */ > >global fds, bt > >probe begin >{ > printf("Tracking unclosed fds...\n"); >} > >function get_backtrace:string() >{ > return str_replace(sprint_ubacktrace(), "\n", "\n ") >} > >probe end >{ > printf("\nUnclosed fds:\n"); > foreach ([pid, fd] in fds) { > printf("%d: \"%s\" still open as %d from:\n %s\n", > pid, fds[pid, fd], fd, bt[pid, fd]) > } >} > >probe syscall.open.return >{ > if ($return >= 0 && execname() == @1) { > fds[pid(), $return] = user_string($filename) > bt[pid(), $return] = get_backtrace() > printf("%d(%s): open(\"%s\") = %d\n %s\n", > pid(), execname(), user_string($filename), $return, > bt[pid(), $return]) > } >} > >probe syscall.close >{ > if ([pid(), $fd] in fds) { > printf("%d(%s): fd %d closed\n %s\n", > pid(), execname(), $fd, get_backtrace()) > delete fds[pid(), $fd] > delete bt[pid(), $fd] > } >}
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 877095
: 654929 |
655169