On Thu, Jul 15, 2010 at 9:44 AM, lulu he <lolos...@gmail.com> wrote: > Hi stephane, > I think I don't explain my problem clear. > According to the pfmon usersguide, if I do as you say like this, > pfmon --verbose --smpl-show-top=20 > --no-cmd-output -eINSTRUCTIONS_RETIRED,LAST_LEVEL_CACHE_MISSES > --long-smpl-periods=10000,4000 --follow-all -- > samples is recorder every X instrctions OR Y last_level_cache_misses. > But , I want to know how many last_level_cache_misses is since every > interval of X instructions eclapsed. > According to userguide , section10.12 miscellaneous sampling option, > this can be done using pfmon.
> pfmon --verbose --smpl-show-top=20 > --no-cmd-output -eINSTRUCTIONS_RETIRED,LAST_LEVEL_CACHE_MISSES > --long-smpl-periods=10000,4000 --follow-all -- pfmon -eINSTRUCTIONS_RETIRED,LAST_LEVEL_CACHE_MISSES \ --long-smpl-period=10000 --reset-non-smpl --follow-all --smpl-compact --with-header ..... With the default output, you cannot visualize the data you've collected. The --smpl-compact option prints one sample/line in ASCII. Look at the header part to figure out which column you are interested in. As for --reset-non-smpl, it will cause the kernel to reset the non-sampling event, here LLC_MISSES, between each sample, thereby giving you the number of misses during the sampling period. > Thanks. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel