Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1528603ybk; Thu, 14 May 2020 11:09:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSwvTUACtmHkAGd+wOJ8pJBQltPjU3xsn1oValHGtjzg5d8rJ/Fwfh7mT5vBR4q8t7zHPX X-Received: by 2002:a17:906:c107:: with SMTP id do7mr5056989ejc.266.1589479796928; Thu, 14 May 2020 11:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589479796; cv=none; d=google.com; s=arc-20160816; b=GxKatLYksa7y4MZ84WDjLz+bFIBO+Lhjqrd/xGpp9NDrVWs7K1jvzPBAwq0D5YCHFZ GF15lF2fNJgrE27t5EpjQMryHBKYYhI7OiKpimZrNwte5XzgLH9qvXWqVYUniBc0quLl GWnnvgwCvf9kdPWRbYnjLin9k8xHm2nKb/II3ugwiW+++LpS6kJrir4UmUjXMOCW3MEt rSgPZZ0IOfvWSQ+Lj1gt1SAqyQJzHBWXrloP1pxTSzW1y9RKeXSvVuuz2V3m8HNieXJs KaNQ5pMmtDgjRtkwLMgebsgqBhrkSsoemsoNfmBAws/sqOeMWNePTTZCkPPDbhA0Y+H5 ky3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Lno11G8ByqiMu1NC2A0PxV3gpAfZBK9eJHSceLJZciw=; b=v6rPvAlS04GXmO2AaPuYCmwCV+zJBEqa+VWlabBqNYGl3E50NNvo2yfwb/RVuk8eJ9 1Jx86O03bv3fBG/2yPBqPFl+3CGyzU9POFOpUG1JSfcjLsDcSc3GAejFvrIaAJuvV7Sl Nvs5MFP/xP+i433XveKlNFfcT9kI8K6hhHEn2E6j6T7Q8tIEf/5/kyckQOuB+2MQidXl syQcVtYTkTvZZyr2+cZVNtvjYLwsVr+s5ySRGjuZ5BvJNFgy4+qRLcNjvpXgcpM9G7Tj yhLap1CoSXAEf9iQE2Ma40YpvCKjC0zBPHVcfEHGF3ksCtHI2blWjtz3le89blPyHDlF 90Jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si1877307edp.515.2020.05.14.11.09.34; Thu, 14 May 2020 11:09:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727819AbgENSGe (ORCPT + 99 others); Thu, 14 May 2020 14:06:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:56758 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727768AbgENSGd (ORCPT ); Thu, 14 May 2020 14:06:33 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7A35F20671; Thu, 14 May 2020 18:06:31 +0000 (UTC) Date: Thu, 14 May 2020 14:06:29 -0400 From: Steven Rostedt To: Mathieu Desnoyers Cc: Thomas Gleixner , linux-kernel , x86 , paulmck , Andy Lutomirski , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , "Joel Fernandes, Google" , Boris Ostrovsky , Juergen Gross , Brian Gerst , Josh Poimboeuf , Will Deacon , Peter Zijlstra Subject: Re: [patch V4 part 4 15/24] x86/db: Split out dr6/7 handling Message-ID: <20200514140629.7b3ac49a@gandalf.local.home> In-Reply-To: <552488029.20647.1589423096441.JavaMail.zimbra@efficios.com> References: <20200505134926.578885807@linutronix.de> <20200505135314.808628211@linutronix.de> <552488029.20647.1589423096441.JavaMail.zimbra@efficios.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 May 2020 22:24:56 -0400 (EDT) Mathieu Desnoyers wrote: > Also, considering that "inline" is not sufficient to ensure the compiler > does not emit a traceable function, I suspect you'll also want to mark > "native_get_debugreg" and "native_set_debugreg" always inline as well. I was thinking that the noinstr sections was more about not doing tracing and kprobes. As "inline" has been defined as "notrace" for some time, where any function marked as "inline" will not be available to ftrace even if the compiler decides not to honor the inline. in linux/compiler_types.h: #define inline inline __gnu_inline __inline_maybe_unused notrace -- Steve