[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <A5ED84D3BB3A384992CBB9C77DEDA4D41B0113FE@USINDEM103.corp.hds.com>
Date: Tue, 4 Jun 2013 18:37:03 +0000
From: Seiji Aguchi <seiji.aguchi@....com>
To: Steven Rostedt <rostedt@...dmis.org>,
"H. Peter Anvin" <hpa@...or.com>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"x86@...nel.org" <x86@...nel.org>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"mingo@...e.hu" <mingo@...e.hu>, "bp@...en8.de" <bp@...en8.de>,
"linux-edac@...r.kernel.org" <linux-edac@...r.kernel.org>,
"tony.luck@...el.com" <tony.luck@...el.com>,
"dle-develop@...ts.sourceforge.net"
<dle-develop@...ts.sourceforge.net>,
Tomoki Sekiyama <tomoki.sekiyama@....com>
Subject: RE: [PATCH v13 3/3] trace,x86: Add irq vector tracepoints
> > The point is that the IDT address itself should not be mutable state if
> > it can be at all avoided.
>
> Hmm, maybe we can do it. Have two counters, a debug_idt_ctr and a
> trace_idt_ctr, then have a function that basically does this:
>
> if (this_cpu_read(debug_idt_ctr))
> load_idt(&nmi_idt_descr); /* probably should rename to debug_idt_descr) */
> else if (trace_idt_ctr)
> load_idt(&trace_idt_descr);
> else
> load_idt(&idt_descr);
>
> Then all modifications of the idt would call this function.
I think it will work.
I will make the patch.
Seiji
>
> -- Steve
>
>
Powered by blists - more mailing lists