mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@osdl.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Pozsar Balazs <pozsy@uhulinux.hu>, linux-kernel@vger.kernel.org
Subject: Re: start_kernel / local_irq_enable() can be very slow
Date: Mon, 14 Nov 2005 07:42:22 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0511140740260.3263@g5.osdl.org> (raw)
In-Reply-To: <20051113234451.73f2527b.akpm@osdl.org>



On Sun, 13 Nov 2005, Andrew Morton wrote:
> 
> You could do something like:
> 
> int trace_irqs;
> 
> 	trace_irqs = 1;
> 	local_irq_enble();
> 	trace_irqs = 0;

Do "trace_irqs = 10" first.

> then, over in handle_IRQ_event():
> 
> 	if (trace_irqs)
> 		print_symbol("calling %s\n", (unsigned long)action->handler);

And decrement it here somewhere.

If it's delayed by up to three seconds, it sounds like there's a _lot_ of 
interrupts happening, and I don't think there's any point in showing all 
of them.

			Linus

  reply	other threads:[~2005-11-14 15:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-12 15:54 Pozsar Balazs
2005-11-14  7:44 ` Andrew Morton
2005-11-14 15:42   ` Linus Torvalds [this message]
2005-11-14 15:55     ` Pozsar Balazs

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=Pine.LNX.4.64.0511140740260.3263@g5.osdl.org \
    --to=torvalds@osdl.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pozsy@uhulinux.hu \
    /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

all inboxes | Powered by JetHome®