From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org
Subject: Re: [PATCH] xen: arm: enable perf counters
Date: Thu, 15 May 2014 16:52:16 +0100 [thread overview]
Message-ID: <5374E2B0.30303@linaro.org> (raw)
In-Reply-To: <1400167854.19926.26.camel@kazak.uk.xensource.com>
On 05/15/2014 04:30 PM, Ian Campbell wrote:
>> But we might want perf counter in p2m_lookup because this function is
>> costly.
>>
>> I would also add one in flush_tlb_* functions, such as flush_tlb_domain.
>> It will help us optimizing TLBs.
>
> Please do add more if you think they will be useful, this is just a
> starting point. I think this applies to most of your comments, if you
> are doing some debugging or performance measurement and you find that
> you want an extra perfc or a more granular one or whatever then please
> add it and send a patch. Otherwise than that I don't think there is much
> need to bikeshed what exactly is being added here.
I agree it's a starting point and I took the opportunity to give some
feedback on what kind of perf counter it would be nice to have on Xen.
IHMO, p2m_lookup and flush_tlb_domain should have the own perf counter
because they are used in hot patch. I'm fine to create a follow-up but
as you were working on it...
>
>>> case HSR_EC_CP15_64:
>>> if ( !is_32bit_domain(current->domain) )
>>> goto bad_trap;
>>> + perfc_incr(trap_cp15_32);
>>
>> Did you mean trap_cp15_64?
>
> Yes.
>
>>> diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h
>>> index ef291ff..0de6f7e 100644
>>> --- a/xen/include/asm-arm/config.h
>>> +++ b/xen/include/asm-arm/config.h
>>> @@ -178,6 +178,8 @@
>>> #define PAGE_MASK (~(PAGE_SIZE-1))
>>> #define PAGE_FLAG_MASK (~0)
>>>
>>> +#define NR_hypercalls 64
>>> +
>>
>> Should not it be define in common code?
>
> Could be, but it's not. Since different architectures can implement
> different subsets of hypercalls I'm not too bothered about moving this.
Oh ok. Thanks.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-05-15 15:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-15 14:17 [PATCH] xen: arm: enable perf counters Ian Campbell
2014-05-15 14:53 ` Julien Grall
2014-05-15 15:30 ` Ian Campbell
2014-05-15 15:52 ` Julien Grall [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-05-15 15:29 Ian Campbell
2014-05-15 15:48 ` Ian Campbell
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=5374E2B0.30303@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--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 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.