[Bug tapsets/17920] File descriptor to pathname function

dsmith at redhat dot com sourceware-bugzilla@sourceware.org
Fri Oct 2 17:06:00 GMT 2015


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.



More information about the Systemtap mailing list