The kstat konundrum

djberg96 on 2004-11-15T17:02:19

I recently discovered, I think, that kstat on my Solaris 9 box is broken. Specifically, it appears that the data returned from 'kstat -m cpu_stat' is wrong. I posted a specific example comparing the kstat command line results with the results of using kstat.h directly. Since the snarky folks on comp.unix.solaris will usually jump all over anyone who incorrectly yells "bug!", I found the complete lack of any response to be disquieting.

I double checked sunsolve to make sure there weren't any patches I missed but I didn't see anything. I would take a look at the source, but it isn't available afaict. The Solaris::Kstat module you'll find on CPAN is for 2.7 and earlier. I once sent an email to Alan for the source but never heard back.

I'd also love to know how he was able to build his source using the mntinfo_kstat struct, since the header file in which it's defined, nfs/nfs_clnt.h, appears to be busted.