Re: Tracing files that opens.

2000-11-13 Thread Catalin BOIE
On Sat, 11 Nov 2000, Magnus Naeslund(b) wrote: > Is there a nice way to trap on file open() and stat() ? > That way i could have nice file statistics. Look for a kernel module that replace the open syscall. I don't have an url right now but search for my name in the lk archives. I put a question

Re: Tracing files that opens.

2000-11-11 Thread willy tarreau
> Is there a nice way to trap on file open() and stat() ? a few months ago, I helped a friend in writing a generic syscall wrapper because he needed exactly this. You should take a look at the section "overloader" on http://bdolez.free.fr/ Regards, willy

Re: Tracing files that opens.

2000-11-11 Thread Karim Yaghmour
It seems that no one on that thread thought about using the Linux Trace Toolkit which would allow you to do exactly what is asked for. Plus, there's a basic hooking mechanism than enables you to hook onto any file-system events and then do what you want with that. In the case of trapping open()

Re: Tracing files that opens.

2000-11-11 Thread Michael Vines
On Sat, 11 Nov 2000, Magnus Naeslund(b) wrote: > Is there a nice way to trap on file open() and stat() ? > That way i could have nice file statistics. There was a thread about this a couple days ago. http://x52.deja.com/threadmsg_ct.xp?AN=690272012.1&mhitnum=0&CONTEXT=973965178.1986985995