Stephane

We are interested in using pfmon to track memory references on an Intel
nehalem cpu.

It appears that the event UNC_QHL_REQUESTS may provide what we are
interested in but we noticed that pfmon/libpfm only allow 4 of the 6 unit
masks specified in the latest Intel hardware spec.  The unit masks for
REMOTE_WRITES and IOH_WRITES are not supported by pfmon (we are running 3.9
and I checked your CVS but do not see any change in this area).

I have added these unit masks to the libpfm file intel_corei7_unc_events.h"
and they seem to work ok.  The updated code looks like this:

      { .pme_name   = "UNC_QHL_REQUESTS",
            .pme_desc   = "Quickpath Home Logic local read requests",
            .pme_code   = 0x20,
            .pme_flags  = PFMLIB_NHM_UNC,
            .pme_umasks = {
                  { .pme_uname  = "LOCAL_READS",
                        .pme_udesc  = "Quickpath Home Logic local read
requests",
                        .pme_ucode  = 0x10,
                        .pme_uflags = 0,
                  },
                  { .pme_uname  = "LOCAL_WRITES",
                        .pme_udesc  = "Quickpath Home Logic local write
requests",
                        .pme_ucode  = 0x20,
                        .pme_uflags = 0,
                  },
                  { .pme_uname  = "REMOTE_READS",
                        .pme_udesc  = "Quickpath Home Logic remote read
requests",
                        .pme_ucode  = 0x04,
                        .pme_uflags = 0,
                  },
                  { .pme_uname  = "REMOTE_WRITES",
                        .pme_udesc  = "Quickpath Home Logic remote write
requests",
                        .pme_ucode  = 0x08,
                        .pme_uflags = 0,
                  },
                  { .pme_uname  = "IOH_READS",
                        .pme_udesc  = "Quickpath Home Logic IOH read
requests",
                        .pme_ucode  = 0x01,
                        .pme_uflags = 0,
                  },
                  { .pme_uname  = "IOH_WRITES",
                        .pme_udesc  = "Quickpath Home Logic IOH write
requests",
                        .pme_ucode  = 0x02,
                        .pme_uflags = 0,
                  },
            },
            .pme_numasks = 6
      },

I am guessing these were missing because they may not have appeared in an
earlier version of the Intel spec.

In any case would you agree they should be allowed ??

Thanks
Gary


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to