Go to lxr.linux.no/source. It makes finding stuff easy.
Seth
> Hi guys,
> I want to bench mark the performance of a file system (minix). I
> basically want to keep track of how many times certain functions get
> called (and how much total time they take) --- ie the inode_operations
> defined in file.c in the /minix directory under /usr/src/fs.
> I want these statistics to be available in a file in /proc for viewing
> on demand.
> My problem is: How can you determine when an inode_operation is called.
> My idea was to redefine all the inode_operations (in the
> inode_operations structure in file.c) to point to functions I define and
> have those functions call the actual inode_operations (so I can do the
> benchmarking in between).
> The problem I am having is that not all the inode_operations are defined
> (they are NULL) meaning that they default to some default
> inode_operation defined somewhere in /fs. My question is, how do I find
> out where these default operations are. I don't really know which file
> to look in. If I cant find them then I can't get my functions to call
> the appropriate inode_operation, cause I don't know their name!.
> Hope this makes sense.
> thanks in advance,
> Vij.