On Thu, 20 Mar 2014, Martin Ichilevici de Oliveira wrote: > That program measures the counter for all processes, but I'm > interested in measuring it only for my program. Since the other > examples were not working (out of the box) with that event, I decided > to modify the perf_event_open() call, which was > > perf_event_open(&fds[i].hw, -1, 0, -1, 0);
NorthBridge and Uncore counters are socket-wide. You cannot measure the values per-process or per-thread. This is a hardware limitation. Vince ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel