All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: adeos-main@gna.org
Subject: Re: [Adeos-main] [PATCH] fix irq statistics
Date: Sun, 23 Sep 2007 10:13:43 +0200	[thread overview]
Message-ID: <1190535223.6125.35.camel@domain.hid> (raw)
In-Reply-To: <46F60EF1.9030009@domain.hid>

On Sun, 2007-09-23 at 09:00 +0200, Jan Kiszka wrote:
> Philippe Gerum wrote:
> > On Wed, 2007-09-19 at 10:51 +0200, Jan Kiszka wrote:
> >> Hi,
> >>
> >> IRQ hit counters are broken in latest I-pipe 1.10-x for the wired path. 
> >> This patch moves the counter maintenance out of __ipipe_set_irq_pending 
> >> and instead makes it explicit at the required spots.
> > 
> > I would rather add the missing accounting code as below. Marking an
> > interrupt as pending using the __ipipe_set_irq_pending() interface
> > should implicitely be paired with proper accounting.
> 
> My original intention was to keep __ipipe_dispatch_wired compact.

Yes, but my intention in moving this code out of line is to gather
bitmap management and accounting.

> 
> But thinking about this again, I wonder if the whole thing makes sense
> as it is implemented right now: Given that I-pipe users like Xenomai now
> use this irqall counter as high-level hit counter, I'm not that sure we
> should also account for IRQ events on locked lines or in case of stalled
> receiver domains. Only _delivery_, ie. handler invocation, should be
> counted IMO (=>__ipipe_run_isr). What do you think?
> 

Now that the interrupt log is flat, we do not have any pending IRQ
counter anymore. So the only way to determine how many interrupts are
actually waiting for being processed is to substract the irq_all value
from a private dispatch counter maintained by the client code from its
own handlers. So regardless of what Xenomai does now, I would rather
keep this option open, so that domains may compute this information on
their own.

> Jan
> 
-- 
Philippe.




      reply	other threads:[~2007-09-23  8:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-19  8:51 [Adeos-main] [PATCH] fix irq statistics Jan Kiszka
2007-09-19 21:04 ` Philippe Gerum
2007-09-23  7:00   ` Jan Kiszka
2007-09-23  8:13     ` Philippe Gerum [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=1190535223.6125.35.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=adeos-main@gna.org \
    --cc=jan.kiszka@domain.hid \
    /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.