From: Otavio Salvador <otavio@ossystems.com.br>
To: "Shan, Haitao" <haitao.shan@intel.com>
Cc: xen-devel@lists.xensource.com, "Jiang,
Yunhong" <yunhong.jiang@intel.com>
Subject: Re: Re: [PATCH] Enable Core 2 Duo PerformanceCounters inHVM guest
Date: Fri, 14 Dec 2007 17:05:27 -0200 [thread overview]
Message-ID: <87odct14i0.fsf@lab.ossystems.com.br> (raw)
In-Reply-To: <823A93EED437D048963A3697DB0E35DEF7A949@pdsmsx414.ccr.corp.intel.com> (Haitao Shan's message of "Fri\, 14 Dec 2007 23\:43\:48 +0800")
"Shan, Haitao" <haitao.shan@intel.com> writes:
Hello Haitao,
I've done a look on the patch and found two places with wrong coding
style. Take a look bellow:
> diff -r 8f0cbfc478d6 xen/arch/x86/oprofile/op_model_ppro.c
> --- a/xen/arch/x86/oprofile/op_model_ppro.c Thu Dec 13 09:31:03 2007 +0000
> +++ b/xen/arch/x86/oprofile/op_model_ppro.c Fri Dec 14 07:21:43 2007 +0800
> @@ -126,6 +127,11 @@ static void ppro_start(struct op_msrs co
> CTRL_READ(low, high, msrs, 0);
> CTRL_SET_ACTIVE(low);
> CTRL_WRITE(low, high, msrs, 0);
> + /* Global Control MSR is enabled by default when system power on.
> + * However, this may not hold true when xenoprof starts to run.
> + */
> + if ( ppro_has_global_ctrl )
> + wrmsrl(MSR_CORE_PERF_GLOBAL_CTRL, 1);
> }
>
>
> @@ -135,6 +141,8 @@ static void ppro_stop(struct op_msrs con
> CTRL_READ(low, high, msrs, 0);
> CTRL_SET_INACTIVE(low);
> CTRL_WRITE(low, high, msrs, 0);
> + if ( ppro_has_global_ctrl )
> + wrmsrl(MSR_CORE_PERF_GLOBAL_CTRL, 0);
> }
Cheers,
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
next prev parent reply other threads:[~2007-12-14 19:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 10:06 [PATCH] Enable Core 2 Duo Performance Counters in HVM guest Shan, Haitao
2007-12-11 10:37 ` Keir Fraser
2007-12-11 13:32 ` Shan, Haitao
2007-12-11 15:01 ` Keir Fraser
2007-12-14 7:49 ` Re: [PATCH] Enable Core 2 Duo Performance Counters inHVM guest Shan, Haitao
2007-12-14 8:31 ` Keir Fraser
2007-12-14 9:32 ` Shan, Haitao
2007-12-14 9:54 ` Keir Fraser
2007-12-14 10:01 ` Re: [PATCH] Enable Core 2 Duo PerformanceCounters " Shan, Haitao
2007-12-14 15:43 ` Shan, Haitao
2007-12-14 19:05 ` Otavio Salvador [this message]
2007-12-15 1:09 ` Shan, Haitao
2007-12-17 7:22 ` Re: [PATCH] Enable Core 2 Duo PerformanceCountersinHVM guest Shan, Haitao
2007-12-17 8:55 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87odct14i0.fsf@lab.ossystems.com.br \
--to=otavio@ossystems.com.br \
--cc=haitao.shan@intel.com \
--cc=xen-devel@lists.xensource.com \
--cc=yunhong.jiang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.