Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1205785imu; Fri, 9 Nov 2018 12:38:29 -0800 (PST) X-Google-Smtp-Source: AJdET5fu8Tnup69PpskkohgQdVgxCSyCpNN1S96RLLdumfuJkcRmqh1bw4AHTH3a/JP4vBJpF19R X-Received: by 2002:a62:1bcf:: with SMTP id b198-v6mr10587123pfb.102.1541795908958; Fri, 09 Nov 2018 12:38:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541795908; cv=none; d=google.com; s=arc-20160816; b=gkIfX4BoxtKtPrx43z4tdZSX6Mp1NGv6ohH/7O5xMrQTsKmenLJed/fJI0/QUMNqkA dDZLJesFIwxaLpIsBbkmsIp5tu+ZgiFVDgqn4JH9IsMf2QMgCm9M0h+j3PQEhCEVxlbD BXygLgcVAlUzPJRtLZTjoSm7udVIK/HFdPBLSquhN0Nb0qRbGVRlKRRbtL/3KKLL6s1J K6P32pOGhtVz/0rrjE/FNz1j+fLWI8ZgXezUnbzlTwOCL/ou7lfIMJXTJgZSDGZou+7O UPrnGyxgSskstXSa2Up90aAdXho0fBqAO06gstdmxhHT6fpqpBDiS4Xz9aUHcXtKL/6e z+/Q== 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=KFo4/ZuQGvGmiVw1t/Oze1DCUM7JqFMWPu0Ukz0cE5E=; b=wyFSuKkk1kgcigfrpGHQJe1jMWs/7gmpZJF7oJSsZitwbYOly8XiDJe+bMitABm+r2 YgXQY9F+YsZGME24efSQFFIlxR1u+VAnAWk6jSohaRQziUhbIrJATgLL9579jsOKfrMS 61/9K9ARVR6bFOxecqYDMhdBQBxRxstkOSzjZxcvMRoRklgVg3IS5N3SoA+wyC4QsdSf Umraq2RURFnRi0OdmbjDuKa685+1ziJD9xJwNue6gFc4CiHGSrOVjp8OYK4KRJqtR1wC PHDN7eDW99k5/vHMbAZ8LtV2fF2ETxjk+KZF0cvrI08WgB/HFiKw2URcx7Qf29unBXOL teMQ== 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 c15si5427802pgg.446.2018.11.09.12.38.13; Fri, 09 Nov 2018 12:38:28 -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 S1728368AbeKJGSl (ORCPT + 99 others); Sat, 10 Nov 2018 01:18:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50858 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726110AbeKJGSk (ORCPT ); Sat, 10 Nov 2018 01:18:40 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6828E3DE04; Fri, 9 Nov 2018 20:36:28 +0000 (UTC) Received: from treble (ovpn-124-61.rdu2.redhat.com [10.10.124.61]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 45F871019627; Fri, 9 Nov 2018 20:36:26 +0000 (UTC) Date: Fri, 9 Nov 2018 14:36:24 -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: <20181109203624.ubfvpfunaydnjkjk@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> <20181109194409.mnrzdee6gh4ujutm@treble> <20181109145918.28df6616@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181109145918.28df6616@gandalf.local.home> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 09 Nov 2018 20:36:28 +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:59:18PM -0500, Steven Rostedt wrote: > On Fri, 9 Nov 2018 13:44:09 -0600 > Josh Poimboeuf wrote: > > > 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). > > > > Yes, because I haven't applied that third patch yet ;-) > > Then I'll apply it and see how much that improves things. Ah, good. That will be interesting to see the difference between optimized/unoptimized. -- Josh