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