On Fri, May 27, 2011 at 05:53:41PM -0400, Vince Weaver wrote:
> Hello
> 
> a while back it was mentioned it would be nice to have some perf_event 
> validation tests.
> 
> I've posted some here:
>    http://web.eecs.utk.edu/~vweaver1/projects/perf-events/validation.html
> 

cache-references.c:

  pe.config=PERF_COUNT_HW_CACHE_REFERENCES;
  ...
      for(i=0; i<ARRAYSIZE; i++) {
        array[i]=(double)i;
      }
  ...
  if (!quiet) printf("\tL1 D accesseses: %lld %lf\n",count,aSumm);

PERF_COUNT_HW_CACHE_REFERENCES is counting LLC references on many
platforms. Did you mean to use PERF_COUNT_HW_CACHE_L1D here?

 -Arun
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to