From: "Luck, Tony" <tony.luck@intel.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] [PATCH] Support for alternative kernel profiler in a module
Date: Sat, 05 Jan 2002 01:03:35 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805742@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 497 bytes --]
To allow an alternative kernel profiler using the ia64
perfomance counters to be loaded as a module, a couple
of small changes are needed.
1) Define a new 'irqflags' bit (SA_PERCPU_IRQ) to allow a module
to request a per-cpu irq.
2) Export init_tasks[] so that the module can adjust the state
of psr.pp in the idle tasks for all CPUs.
I've attached the patch rather than inlining it in the hope that
outlook won't sabotage it by folding long lines or playing with
tabs and spaces.
-Tony Luck
[-- Attachment #2: DIFF --]
[-- Type: application/octet-stream, Size: 1542 bytes --]
diff -ru ../../REF/2.4.17-ia64-011226/arch/ia64/kernel/irq.c linux/arch/ia64/kernel/irq.c
--- ../../REF/2.4.17-ia64-011226/arch/ia64/kernel/irq.c Mon Dec 31 09:02:35 2001
+++ linux/arch/ia64/kernel/irq.c Fri Jan 4 16:17:35 2002
@@ -1010,6 +1010,11 @@
rand_initialize_irq(irq);
}
+ if (new->flags & SA_PERCPU_IRQ) {
+ desc->status |= IRQ_PER_CPU;
+ desc->handler = &irq_type_ia64_lsapic;
+ }
+
/*
* The following block of code has to be executed atomically
*/
diff -ru ../../REF/2.4.17-ia64-011226/include/asm-ia64/signal.h linux/include/asm-ia64/signal.h
--- ../../REF/2.4.17-ia64-011226/include/asm-ia64/signal.h Wed Oct 3 11:32:32 2001
+++ linux/include/asm-ia64/signal.h Fri Jan 4 16:23:52 2002
@@ -111,10 +111,12 @@
*
* SA_INTERRUPT is also used by the irq handling routines.
* SA_SHIRQ is for shared interrupt support on PCI and EISA.
+ * SA_PERCPU_IRQ is for processor internal interrupts
*/
#define SA_PROBE SA_ONESHOT
#define SA_SAMPLE_RANDOM SA_RESTART
#define SA_SHIRQ 0x04000000
+#define SA_PERCPU_IRQ 0x02000000
#endif /* __KERNEL__ */
diff -ru ../../REF/2.4.17-ia64-011226/kernel/ksyms.c linux/kernel/ksyms.c
--- ../../REF/2.4.17-ia64-011226/kernel/ksyms.c Mon Dec 31 09:02:39 2001
+++ linux/kernel/ksyms.c Fri Jan 4 16:22:11 2002
@@ -556,6 +556,7 @@
/* init task, for moving kthread roots - ought to export a function ?? */
EXPORT_SYMBOL(init_task_union);
+EXPORT_SYMBOL(init_tasks);
EXPORT_SYMBOL(tasklist_lock);
EXPORT_SYMBOL(pidhash);
next reply other threads:[~2002-01-05 1:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-05 1:03 Luck, Tony [this message]
2002-01-09 21:37 ` [Linux-ia64] [PATCH] Support for alternative kernel profiler Luck, Tony
2002-01-10 19:25 ` David Mosberger
2002-01-10 19:27 ` David Mosberger
2002-01-10 23:26 ` Luck, Tony
2002-01-10 23:37 ` David Mosberger
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=marc-linux-ia64-105590698805742@msgid-missing \
--to=tony.luck@intel.com \
--cc=linux-ia64@vger.kernel.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