Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1149609imu; Fri, 9 Nov 2018 11:45:09 -0800 (PST) X-Google-Smtp-Source: AJdET5cUK4YPs6jfXt3vR9veYuaBZUcKsnDaYrqU7+ECqD2bDgbWH+k+thkDLTsDQcKEGd6uah3S X-Received: by 2002:a63:4706:: with SMTP id u6mr8150158pga.95.1541792709011; Fri, 09 Nov 2018 11:45:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541792708; cv=none; d=google.com; s=arc-20160816; b=VAbuX/tZA76veryA4NMpeqNBc5YH7ZrFu7A3gtwuFDHA8iX0d0bFs2+/DfbkLqe1Pu KFK3efHzGFtDrgyE0eMpXA0IXaBrj6DOS7SdC907jyXKqG63ey2usqUt4UQEFlNJH+rQ +AIPZXFLJ7NsM6N0KKi3TisZs/0RLVIFcOv++foq7ju2EWb/sJIeEkrP2bRo+TOAoR63 swRpG9fdJ1rhlCUXd7ZbhlN50uXGIeXjd9tC5Bc0FBcF/B2u9JTw8yM5fDo3u3ZmtsPy AFIV1o1BwoB4NM9NFzMfsUPPc24CgpDkSQ6ip2NRkKs0MuhFFjCBZfFO0P4PJshIT1Id 2cKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Z9KtD5IAsYrb9qnW5bwvnVfSfgUXuSSG5qM3fCnsedc=; b=Joyx7SznR07oe6nSRVOxjNVp/6QIIXgnpZwfY6j6w5xt811eAn3s3LBJe+vTurrM+x BuUR1VBAZKKH9ct1oUTGsDUhTtrpc4+eTPlxgqVUbc09p8QIPCJoxBiTmxUuMlxxHJw3 8CIAGknuFNoY6HtpVNpVvuRJ74UX5/oZQJO78z34sWQtYD5E6GuLMfXSxK6x4l3KsNu1 HCfSDi2dmbs0J7KrS9xgp4PHcB9nKc3RgSygZ+9KU1hra2PDn94Vf5KdLX8DPLOmgnQF J2s9onfaPvNDmzhIlwTTGJCBPD1MGEiBKN+aPHOf/1VM3MoRXPvGhd8pjwOxFXPhvDxc RRHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v189si7676878pgb.398.2018.11.09.11.44.47; Fri, 09 Nov 2018 11:45:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727568AbeKJF0P (ORCPT + 99 others); Sat, 10 Nov 2018 00:26:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42100 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725752AbeKJF0P (ORCPT ); Sat, 10 Nov 2018 00:26:15 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D48C811D5; Fri, 9 Nov 2018 19:44:13 +0000 (UTC) Received: from treble (ovpn-124-61.rdu2.redhat.com [10.10.124.61]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5DBDD5D736; Fri, 9 Nov 2018 19:44:11 +0000 (UTC) Date: Fri, 9 Nov 2018 13:44:09 -0600 From: Josh Poimboeuf To: Steven Rostedt Cc: Andy Lutomirski , Andy Lutomirski , Ingo Molnar , LKML , X86 ML , Ard Biesheuvel , Peter Zijlstra , Thomas Gleixner , Linus Torvalds , Masami Hiramatsu , Jason Baron , Jiri Kosina , David Laight , Borislav Petkov Subject: Re: [PATCH RFC 0/3] Static calls Message-ID: <20181109194409.mnrzdee6gh4ujutm@treble> References: <20181109072811.GB86700@gmail.com> <20181109152139.zig45f6gp24btfbc@treble> <20181109164137.5cngbfrkm4ihj4ra@treble> <20181109134241.5f4ce3be@gandalf.local.home> <979DB163-EFBD-41BB-8481-155AAF526E72@amacapital.net> <20181109143703.5f2205bf@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181109143703.5f2205bf@gandalf.local.home> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 09 Nov 2018 19:44:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 09, 2018 at 02:37:03PM -0500, Steven Rostedt wrote: > On Fri, 9 Nov 2018 11:05:51 -0800 > Andy Lutomirski wrote: > > > > Not sure what Andy was talking about, but I'm currently implementing > > > tracepoints to use this, as tracepoints use indirect calls, and are a > > > prime candidate for static calls, as I showed in my original RFC of > > > this feature. > > > > > > > > > > Indeed. > > > > Although I had assumed that tracepoints already had appropriate jump label magic. > > It does. But that's not the problem I was trying to solve. It's that > tracing took a 8% noise dive with retpolines when enabled (hackbench > slowed down by 8% with all the trace events enabled compared to all > trace events enabled without retpoline). That is, normal users (those > not tracinng) are not affected by trace events slowing down by > retpoline. Those that care about performance when they are tracing, are > affected by retpoline, quite drastically. > > I'm doing another test run and measurements, to see how the unoptimized > trampolines help, followed by the trampoline case. Are you sure you're using unoptimized? Optimized is the default on x86-64 (with my third patch). -- Josh