Hi,

I want to count the uncore events on a specified process id (Intel Xeon E5-2667
machine). I tried the following perf command to count the CAS_COUNT.RD for 
process 3460, but it gets stuck with the following output:

#perf stat -e 
uncore_imc_0/event=0x4,umask=0x3/,uncore_imc_1/event=0x4,umask=0x3/,uncore_imc_2/event=0x4,umask=0x3/,uncore_imc_3/event=0x4,umask=0x3/
 -p 3460 sleep 1

Performance counter stats for process id '3460':

                 0 uncore_imc_0/event=0x4,umask=0x3/
                 0 uncore_imc_1/event=0x4,umask=0x3/
                 0 uncore_imc_2/event=0x4,umask=0x3/
                 0 uncore_imc_3/event=0x4,umask=0x3/

       1.000750918 seconds time elapsed

*** glibc detected *** /usr/lib/linux-tools/3.13.0-32-generic/perf: free(): 
invalid next size (fast): 0x0000000000aaee20 ***
*** glibc detected *** /usr/lib/linux-tools/3.13.0-32-generic/perf: malloc(): 
memory corruption: 0x0000000000aaf3d0 ***

However, if I switched the perf to the system-wide counting mode, it works:

#perf stat -e 
uncore_imc_0/event=0x4,umask=0x3/,uncore_imc_1/event=0x4,umask=0x3/,uncore_imc_2/event=0x4,umask=0x3/,uncore_imc_3/event=0x4,umask=0x3/
 -a sleep 1

 Performance counter stats for 'system wide':

             4,487 uncore_imc_0/event=0x4,umask=0x3/
             3,721 uncore_imc_1/event=0x4,umask=0x3/
             4,885 uncore_imc_2/event=0x4,umask=0x3/
           212,513 uncore_imc_3/event=0x4,umask=0x3/

       1.000788447 seconds time elapsed

Can anyone help me with this problem?

Thank you very much.

--Tianwei

--
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