On Thu, Apr 12, 2007 at 07:13:07AM -0700, Peter C. Norton wrote:
>
> I think a system tap module could get you this, but it will take some
> time investment for you to find out how to use it.
>
> http://sourceware.org/systemtap/
And it also takes a bit of time to find probe points that have not
been optimized away, auto-inlined, etc. In any case, here's a working
(in FC5) probe that will tell you who requested a directory. It could
be improved to provide a full path, but I'm satisfied by it as is.
probe module("autofs4").function("autofs4_find_wait") {
printf("%s(%d) requested %s\n", execname(), pid(),
kernel_string($name))
}
The output is:
$ sudo stap autofs4_notify_daemon.stap
bash(5913) requested foobar
bash(5913) requested foobar
bash(5913) requested foobar
...
Maybe autofs4_find_wait is not the best place, but it works, and I
found the more obvious autofs4_notify_daemon to be auto-inlined.
Hope this helps!
Fábio
--
ex sed lex awk yacc, e pluribus unix, amem
_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs