This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Get filename from fd
- From: "Rob Donovan" <rob at proivrc dot com>
- To: <systemtap at sourceware dot org>
- Date: Tue, 7 Sep 2010 10:37:41 +0100
- Subject: Get filename from fd
Hi,
Is it possible to get from $fd to a filename in some way, in probes like
syscall.fcntl etc?
I know I can probe syscall.open() and then keep an array of FD / filenames,
but this doesn't help me when I need to trace a process that has already
been started some time ago, and already has opened files.
Ta,
Rob.