From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
Doug Goldstein <cardoe@cardoe.com>,
xen-devel@lists.xen.org
Cc: Kevin Tian <kevin.tian@intel.com>, Keir Fraser <keir@xen.org>,
Jan Beulich <jbeulich@suse.com>,
Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>,
Jun Nakajima <jun.nakajima@intel.com>,
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Subject: Re: [PATCH v2 1/2] xenoprof: fix up ability to disable it
Date: Tue, 9 Feb 2016 08:54:53 -0500 [thread overview]
Message-ID: <56B9EFAD.3070705@oracle.com> (raw)
In-Reply-To: <56B9B9E3.9000700@citrix.com>
On 02/09/2016 05:05 AM, Andrew Cooper wrote:
> On 09/02/16 04:15, Doug Goldstein wrote:
>> diff --git a/xen/include/asm-x86/vpmu.h b/xen/include/asm-x86/vpmu.h
>> index 67e73dc..4750a1f 100644
>> --- a/xen/include/asm-x86/vpmu.h
>> +++ b/xen/include/asm-x86/vpmu.h
>> @@ -89,10 +89,14 @@ static inline void vpmu_clear(struct vpmu_struct *vpmu)
>> {
>> vpmu->flags = 0;
>> }
>> +#ifdef CONFIG_XENOPROF
>> static inline bool_t vpmu_is_set(const struct vpmu_struct *vpmu, const u32 mask)
>> {
>> return !!(vpmu->flags & mask);
>> }
>> +#else
>> +#define vpmu_is_set(x, y) (!!0)
> Why vpmu_is_set()? this wasn't guarded in v1.
This looks wrong to me. vpmu_is_set() is almost exclusively used by VPMU
code.
>
>> +#endif
>> static inline bool_t vpmu_are_all_set(const struct vpmu_struct *vpmu,
>> const u32 mask)
>> {
>> @@ -121,8 +125,13 @@ static inline int vpmu_do_rdmsr(unsigned int msr, uint64_t *msr_content)
>> return vpmu_do_msr(msr, msr_content, 0, 0);
>> }
>>
>> +#ifdef CONFIG_XENOPROF
>> extern int acquire_pmu_ownership(int pmu_ownership);
>> extern void release_pmu_ownership(int pmu_ownership);
>> +#else
>> +#define acquire_pmu_ownership(x) (1)
>> +#define release_pmu_ownership(x)
Hmm... acquire_pmu_ownship() vs acquire_pmu_ownership() and
release_pmu_ownship() vs. release_pmu_ownership().
Since you are working with this code, can you also clean that up? It
looks to me that at some point names got messed up.
-boris
prev parent reply other threads:[~2016-02-09 13:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 4:15 [PATCH v2 1/2] xenoprof: fix up ability to disable it Doug Goldstein
2016-02-09 4:15 ` [PATCH v2 2/2] build: convert xenoprof to Kconfig Doug Goldstein
2016-02-09 12:03 ` Jan Beulich
2016-02-09 10:05 ` [PATCH v2 1/2] xenoprof: fix up ability to disable it Andrew Cooper
2016-02-09 10:07 ` Andrew Cooper
2016-02-09 13:54 ` Boris Ostrovsky [this message]
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=56B9EFAD.3070705@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=Aravind.Gopalakrishnan@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=cardoe@cardoe.com \
--cc=jbeulich@suse.com \
--cc=jun.nakajima@intel.com \
--cc=keir@xen.org \
--cc=kevin.tian@intel.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=xen-devel@lists.xen.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).