From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: tglx@linutronix.de
Cc: nicolas.pitre@linaro.org, shreyas@linux.vnet.ibm.com,
linux-kernel@vger.kernel.org, peterz@infradead.org,
rafael@kernel.org, vincent.guittot@linaro.org
Subject: Re: [PATCH V4] irq: Track the interrupt timings
Date: Tue, 3 May 2016 15:44:03 +0200 [thread overview]
Message-ID: <20160503134403.GB19298@linaro.org> (raw)
In-Reply-To: <1460545556-15085-1-git-send-email-daniel.lezcano@linaro.org>
On Wed, Apr 13, 2016 at 01:05:56PM +0200, Daniel Lezcano wrote:
> The interrupt framework gives a lot of information about each interrupt.
>
> It does not keep track of when those interrupts occur though.
>
> This patch provides a mean to record the elapsed time between successive
> interrupt occurrences in a per-IRQ per-CPU circular buffer to help with the
> prediction of the next occurrence using a statistical model.
>
> A new function is added to browse the different interrupts and retrieve the
> timing information stored in it.
>
> A static key is introduced so when the irq prediction is switched off at
> runtime, we can reduce the overhead near to zero. The irq timings is
> supposed to be potentially used by different sub-systems and for this reason
> the static key is a ref counter, so when the last use releases the irq
> timings that will result on the effective deactivation of the irq measurement.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
> ---
> V4:
> - Added a static key
> - Added more comments for irq_timings_get_next()
> - Unified some function names to be prefixed by 'irq_timings_...'
> - Fixed a rebase error
Hi Thomas,
I believe all the comments were addressed.
I can imagine you are very busy at the moment. Is there something else I
should fix or is the patch ok for you ?
Thanks.
-- Daniel
next prev parent reply other threads:[~2016-05-03 13:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-13 11:05 [PATCH V4] irq: Track the interrupt timings Daniel Lezcano
2016-04-22 18:21 ` Daniel Lezcano
2016-05-03 13:44 ` Daniel Lezcano [this message]
2016-06-10 14:52 ` Thomas Gleixner
2016-06-10 15:11 ` Nicolas Pitre
2016-06-10 15:20 ` Thomas Gleixner
2016-06-10 15:29 ` Nicolas Pitre
2016-06-14 13:36 ` Daniel Lezcano
2016-06-14 15:10 ` Nicolas Pitre
2016-06-14 15:38 ` Daniel Lezcano
2016-06-14 16:36 ` Thomas Gleixner
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=20160503134403.GB19298@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas.pitre@linaro.org \
--cc=peterz@infradead.org \
--cc=rafael@kernel.org \
--cc=shreyas@linux.vnet.ibm.com \
--cc=tglx@linutronix.de \
--cc=vincent.guittot@linaro.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).