mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Seiji Aguchi <seiji.aguchi@hds.com>
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de,
	mingo@elte.hu, bp@alien8.de, linux-edac@vger.kernel.org,
	tony.luck@intel.com, dle-develop@lists.sourceforge.net,
	tomoki.sekiyama@hds.com
Subject: Re: [PATCH v14 3/3] trace,x86: Add irq vector tracepoints
Date: Thu, 06 Jun 2013 15:18:19 -0400	[thread overview]
Message-ID: <1370546299.9844.40.camel@gandalf.local.home> (raw)
In-Reply-To: <51B0A9B4.4080703@hds.com>

On Thu, 2013-06-06 at 11:24 -0400, Seiji Aguchi wrote:

> --- a/arch/x86/include/asm/desc.h
> +++ b/arch/x86/include/asm/desc.h
> @@ -36,8 +36,8 @@ static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *in
>  
>  extern struct desc_ptr idt_descr;
>  extern gate_desc idt_table[];
> -extern struct desc_ptr nmi_idt_descr;
> -extern gate_desc nmi_idt_table[];
> +extern struct desc_ptr debug_idt_descr;
> +extern gate_desc debug_idt_table[];
>  
>  struct gdt_page {
>  	struct desc_struct gdt[GDT_ENTRIES];
> @@ -316,7 +316,20 @@ static inline void set_nmi_gate(int gate, void *addr)
>  	gate_desc s;
>  
>  	pack_gate(&s, GATE_INTERRUPT, (unsigned long)addr, 0, 0, __KERNEL_CS);
> -	write_idt_entry(nmi_idt_table, gate, &s);
> +	write_idt_entry(debug_idt_table, gate, &s);
> +}
> +#endif
> +
> +#ifdef CONFIG_TRACING
> +extern struct desc_ptr trace_idt_descr;
> +extern gate_desc trace_idt_table[];
> +static inline void write_trace_idt_entry(int entry, const gate_desc *gate)
> +{
> +	write_idt_entry(trace_idt_table, entry, gate);
> +}
> +#else
> +static inline void write_trace_idt_entry(int entry, const gate_desc *gate)
> +{
>  }
>  #endif

Since we are basically down to cosmetic changes, can you make the
renames of these variables into a separate patch. As they are now more
about the debug IDT than a NMI idt, it should have been done before, and
is a separate change to what you are doing here.


>  
> @@ -331,6 +344,7 @@ static inline void _set_gate(int gate, unsigned type, void *addr,
>  	 * setup time
>  	 */
>  	write_idt_entry(idt_table, gate, &s);
> +	write_trace_idt_entry(gate, &s);
>  }
>  
>  /*
> @@ -360,12 +374,39 @@ static inline void alloc_system_vector(int vector)
>  	}
>  }
>  

-- Steve



  reply	other threads:[~2013-06-06 19:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-06 15:21 [PATCH v14 0/3] trace,x86: irq vector tracepoint support Seiji Aguchi
2013-06-06 15:22 ` [PATCH v14 1/3] tracing: Add DEFINE_EVENT_FN() macro Seiji Aguchi
2013-06-06 15:23 ` [PATCH v14 2/3] trace,x86: Introduce entering/exiting_irq() Seiji Aguchi
2013-06-06 18:26   ` Steven Rostedt
2013-06-06 20:51     ` Seiji Aguchi
2013-06-06 15:24 ` [PATCH v14 3/3] trace,x86: Add irq vector tracepoints Seiji Aguchi
2013-06-06 19:18   ` Steven Rostedt [this message]
2013-06-06 20:00     ` Steven Rostedt
2013-06-06 20:52       ` Seiji Aguchi
2013-06-06 21:02         ` Steven Rostedt

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=1370546299.9844.40.camel@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=bp@alien8.de \
    --cc=dle-develop@lists.sourceforge.net \
    --cc=hpa@zytor.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=seiji.aguchi@hds.com \
    --cc=tglx@linutronix.de \
    --cc=tomoki.sekiyama@hds.com \
    --cc=tony.luck@intel.com \
    /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®