From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933603AbdHYPYF (ORCPT ); Fri, 25 Aug 2017 11:24:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:34038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933386AbdHYPYE (ORCPT ); Fri, 25 Aug 2017 11:24:04 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 67C4521A1B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Fri, 25 Aug 2017 11:24:01 -0400 From: Steven Rostedt To: Thomas Gleixner Cc: LKML , Ingo Molnar , Peter Anvin , Peter Zijlstra , Andy Lutomirski , Borislav Petkov Subject: Re: [patch 05/41] x86/tracing: Introduce a static key for exception tracing Message-ID: <20170825112401.62fc3d76@gandalf.local.home> In-Reply-To: <20170825104413.356285960@linutronix.de> References: <20170825103103.287814238@linutronix.de> <20170825104413.356285960@linutronix.de> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Aug 2017 12:31:08 +0200 Thomas Gleixner wrote: > Switching the IDT just for avoiding tracepoints creates a complete > impenetrable macro/inline/ifdef mess. > > There is no point in avoiding tracepoints for most of the traps/exceptions. > For the more expensive tracepoints, like pagefaults, this can be handled with > an explicit static key. > > Preparatory patch to remove the tracing idt. > > Signed-off-by: Thomas Gleixner > --- > arch/x86/include/asm/trace/common.h | 15 +++++++++++++++ > arch/x86/include/asm/trace/exceptions.h | 4 +--- > arch/x86/include/asm/trace/irq_vectors.h | 4 +--- > arch/x86/kernel/tracepoint.c | 9 ++++++++- > 4 files changed, 25 insertions(+), 7 deletions(-) > > --- /dev/null > +++ b/arch/x86/include/asm/trace/common.h Reviewed-by: Steven Rostedt (VMware) -- Steve