[dtrace-discuss] all open files
Zhou Aaron
aaron.zhou1018 at hotmail.com
Tue Jul 10 01:15:58 PDT 2007
Hello Dan,
Thanks. According to this email subject line, I think there isn't a way can
list all open files, because some application can use other way (such as
ioctl()) to open file, or directly open file from kernel area(such VOP_OPEN
or other way implemented by himself) in a module,isn't it?
>From: Dan Mick <dan.mick at sun.com>
>To: Zhou Aaron <aaron.zhou1018 at hotmail.com>
>CC: bart.smaalders at sun.com, venkatesh_ch at yahoo.com,
dtrace-discuss at opensolaris.org
>Subject: Re: [dtrace-discuss] all open files
>Date: Tue, 10 Jul 2007 01:03:58 -0700
>
>Zhou Aaron wrote:
> > Thanks for your correcting.
> > Another question: In userland, is there any other way to open file
> > except for the open()/creat() syscall?
>
>I'm not sure. There may be other variants of open/creat.
>
> > of course, in kernel area, don't
> > need to care open or not, just reference to vnode,then can do any
> > operation for associated file.
>
>Well, that vnode has to get created and initialized somehow. But how
>are these questions helpful to the problem?
>
> >
> >
> >> From: Dan Mick <dan.mick at sun.com>
> >> To: Zhou Aaron <aaron.zhou1018 at hotmail.com>
> >> CC: bart.smaalders at sun.com, venkatesh_ch at yahoo.com,
> > dtrace-discuss at opensolaris.org
> >> Subject: Re: [dtrace-discuss] all open files
> >> Date: Mon, 09 Jul 2007 19:09:31 -0700
> >>
> >> That'll show you all the open() system calls, but not the currently
> >> open files...
> >>
> >> Zhou Aaron wrote:
> >> > dtrace -n 'syscall::open*:entry {printf("%s %s %d",
> >> > execname,copyinstr(arg0),pid);}'
> >> >
> >> >
> >> >> From: Bart Smaalders <bart.smaalders at Sun.COM>
> >> >> To: Venkat C <venkatesh_ch at yahoo.com>
> >> >> CC: dtrace-discuss at opensolaris.org
> >> >> Subject: Re: [dtrace-discuss] all open files
> >> >> Date: Mon, 09 Jul 2007 17:52:05 -0700
> >> >>
> >> >> Venkat C wrote:
> >> >>> Hi All,
> >> >>>
> >> >>> Is there a simple way to list all currently open file descriptors
?
> >> >>
> >> >> # ls -l /proc/*/path
> >> >>
> >> >> :-)
> >> >>
> >> >> - Bart
> >> >>
> >> >> --
> >> >> Bart Smaalders Solaris Kernel Performance
> >> >> barts at cyber.eng.sun.com http://blogs.sun.com/barts
> >> >> _______________________________________________
> >> >> dtrace-discuss mailing list
> >> >> dtrace-discuss at opensolaris.org
> >> >
> >> > _________________________________________________________________
> >> > 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
> >> >
> >> > _______________________________________________
> >> > dtrace-discuss mailing list
> >> > dtrace-discuss at opensolaris.org
> >>
> >
> > _________________________________________________________________
> > 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
>
>
_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/
More information about the dtrace-discuss
mailing list