RE: [PATCH v13 3/3] trace,x86: Add irq vector tracepoints

From: Seiji Aguchi
Date: Tue Jun 04 2013 - 14:38:17 EST


> > 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
>
>

N‹§²æìr¸›yúèšØb²X¬¶ÇvØ^–)Þ{.nÇ+‰·¥Š{±‘êçzX§¶›¡Ü}©ž²ÆzÚ&j:+v‰¨¾«‘êçzZ+€Ê+zf£¢·hšˆ§~†­†Ûiÿûàz¹®w¥¢¸?™¨è­Ú&¢)ßf”ù^jÇy§m…á@A«a¶Úÿ 0¶ìh®å’i