From: "Chulmin Kim" Subject: Questions about xenoprof cpu support (intel xeon x5650, model# : 44) Date: Tue, 23 Nov 2010 12:33:21 +0900 Message-ID: <029901cb8abf$2d427db0$87c77910$@core.kaist.ac.kr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0328292283==" Return-path: Content-Language: ko List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multipart message in MIME format. --===============0328292283== Content-Type: multipart/alternative; boundary="----=_NextPart_000_029A_01CB8B0A.9D2F7CE0" Content-Language: ko This is a multipart message in MIME format. ------=_NextPart_000_029A_01CB8B0A.9D2F7CE0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, All. Currently, I'm trying to use xenoprof in my environment (intel xeon x5650, 2 socket, 6core/socket, model#: 44, westmere). According to the source code of xenoprof, my cpu is not in the supported list. So, currently, only timer mode is available for me. However, I need some information of my vm's behavior such as cache misses which can be obtained in the NMI mode. I saw a document saying that all the pmu hardware event of my cpu is same with i386/core_i7 . Thus, I added my model number like below. static int __init ppro_init(char **cpu_type) { . switch (cpu_model) { . case 15: case 23: *cpu_type = "i386/core_2"; break; case 0x2e: //cmkim case 0x2c: case 26: spec = &op_arch_perfmon_spec; *cpu_type = "i386/core_i7"; break; .. } . } In the xen source code, I changed similar path with similar way to set my cpu model as i386/core_i7. Now I'm possible to run NMI mode in my xen environment. However, I cannot see any event received by xenoprof. Opreport and log file always return that there is no event captured. Does anyone has solved or patched this issue? I cannot find anything related with it. (Naresh posting wanted to get the solution, however it was ended with no solution at that time.) ------=_NextPart_000_029A_01CB8B0A.9D2F7CE0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi, All.

 

Currently, I’m trying to use xenoprof in my = environment (intel xeon x5650, 2 socket, 6core/socket, model#: 44, = westmere).

According to the source code of xenoprof, my cpu is not in = the supported list.

So, currently, only timer mode is available for me. =

However, I = need some information of my vm’s behavior such as cache misses = which can be obtained in the NMI mode.

I saw a document saying that all = the pmu hardware event of my cpu is same with i386/core_i7 . =

 

Thus, I added my model number like = below.

 

static int __init ppro_init(char = **cpu_type)

{

…

        switch = (cpu_model) {

…

        case 15: case = 23:

          =       *cpu_type =3D = "i386/core_2";

=             &= nbsp;  break;

        case = 0x2e:

        = //cmkim

        case = 0x2c:

        case = 26:

          =       spec =3D = &op_arch_perfmon_spec;

          =       *cpu_type =3D = "i386/core_i7";

          =       break;

        = ….

        = }

…

}

In the xen source code, I changed similar path with similar = way to set my cpu model as i386/core_i7.

 

Now I’m possible to run NMI = mode in my xen environment.

However, I cannot see any event = received by xenoprof.

Opreport and log file always return that there is no event = captured.

 

Does anyone has solved or patched this issue? I cannot find = anything related with it. (Naresh posting wanted to get the solution, = however it was ended with no solution at that = time.)

 

 

------=_NextPart_000_029A_01CB8B0A.9D2F7CE0-- --===============0328292283== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0328292283==--