This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linux VFS cache hit rate script


On 04/22/2011 12:16 PM, Jake Maul wrote:
> No problem... seems to have no effect though:
> 
>  339869 	dev: 16	devname: N/A
>     345 	dev: 18	devname: N/A
>    4569 	dev: 22	devname: N/A
>       5 	dev: 23	devname: N/A
>     798 	dev: 265289728	devname: dm-0
>     640 	dev: 3	devname: N/A
>    2594 	dev: 5	devname: N/A
>  250861 	dev: 6	devname: N/A
> 
> I just commented out the existing version in
> /usr/share/systemtap/tapsets/vfs.stp, and put your function in
> instead. Do I need to do anything more than that, like rebuild
> something? (not a systemtap dev)

That should do it.  I should have been more clear - the effect I
intended was just to relieve the need for MAXMAPENTRIES.  The
"__devnames" map should now only contain the real device names, and not
waste any time/space on "N/A" entries.  Your script's output would not
be affected though.

Josh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]