[dtrace-discuss] Re: How to get absolute path?
Steve Peters
scp at mac.com
Mon Jan 8 15:21:11 PST 2007
Ian,
You'll find fewer "missing pieces" in the next Mac OS X Leopard Seed
Release (I take it you're a registered Apple developer eligible for
seeding.) And you'll find fewer yet in the GM Leopard. The challenge
in constructing a full path from a DTrace action comes when you try to
traverse vnodes -- that usually requires taking a lock.
SCP
On Jan 8, 2007, at 3:07 PM, Ian wrote:
> Assuming we lack access to the fds structure, what would an
> alternative be? I ask because I'm using an implementation of dtrace
> on Mac OS X, which seems to be a mostly complete port with a few
> missing pieces.
>
> I'm comfortable building and maintaining my own fds structure,
> populating it with the path argument to open that precedes reads and
> writes on the fd. This approach has been met with some success.
> However, open accepts relative paths, meaning sometimes the file
> name will not be useful.
>
> I tried to bypass this by using the cwd of the accessing process,
> but even this was often incomplete! Is there any way around this?
>
>
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
Steve Peters
scp at mac.com
More information about the dtrace-discuss
mailing list