This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/17920] File descriptor to pathname function
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Fri, 02 Oct 2015 17:06:09 +0000
- Subject: [Bug tapsets/17920] File descriptor to pathname function
- Auto-submitted: auto-generated
- References: <bug-17920-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17920
David Smith <dsmith at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from David Smith <dsmith at redhat dot com> ---
Fixed in commit 1ffc2a8. Frank convinced me that I was being too pessimistic
about my original code.
Here's an example of how you call the new task_fd_lookup() function:
====
try {
file = task_fd_lookup(task_current(), 5)
printf("%d: %s\n", 5, fullpath_struct_file(task_current(), file))
} catch {
printf("%d: fail reading file\n", 5)
}
====
Also bug #9021 is now fixed, so task_dentry_path() should return the correct
pathnames for synthetic filesystems, like pipes, sockets, etc.
--
You are receiving this mail because:
You are the assignee for the bug.