Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1163306imu; Fri, 9 Nov 2018 12:00:15 -0800 (PST) X-Google-Smtp-Source: AJdET5ezx1P+I7Gw37AK4Y3Y8LjyifhC2e6Q5dW70Cj/ouMUf9PCxdbi1pwMfRqenidFNzLCVWfS X-Received: by 2002:a17:902:b943:: with SMTP id h3-v6mr9571946pls.124.1541793615915; Fri, 09 Nov 2018 12:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541793615; cv=none; d=google.com; s=arc-20160816; b=fjVeNlz0nSswl+Twf68r6VuiEd9MojP/9Y4nuQbZtj5tvFE96UtZHrqqxNRVitPSrB FcgCdTqQUsJ2eGySyS94MEKn5HlCRf43c43Yo91OIeX8kkZz1S7UQxAX6lhqdrQ1TU4p FNRQqRDsN8ae6JDXqTHdsdYqa7PM86oDGosepxkTUZb3gczBvqym8BrQsy+H6Gqfovdn 4gbRn0Vlw5aNEnJ0wjh4covub5WMZ3/Iam01zrWZVZVIniTUsyc410MH/NbViYT32kFe 8X6PRiGMviI7J+jKs4E5v/lnRM+OGlCx3ls0wgqzVrDtHLihiILjWIrPw9XGGoKjug+o O0Ig== 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=nUyb5Yp2nMGmFYL+o7QoGspDT3ChwhC8oMCexvtsYYg=; b=J75tloKHVU1jqxCiFWf9VtYjWxzahFtr7AddZD7+zW7M02HG8b4jokPk2SV3YBkll8 yugT6q23jL0w8k+cYtOpmD3XvI0+kudZAOQO2Bzso9ZIJ7w2xFXRMTC15Cd3H2b6K0pI egtzXRpf5g6R5Ij/nKDED6gZuv87IvUFJIkFXmBjkT3Q9uBcLPtIRMv9x1GEppeitb38 Ls5md8882RqzRC8XEJfEvxTeSpBtSMDz28Rw6v2VJAdYPxD7I8H2ZSstt4Y74BXEfrdq Mw7cJ/d+g+tLamE1eSnGE9kUucIYPMI6tq2ZPx6Tx6EzvW7wclqOG/WgrLIxE2a7KTG1 czJg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w22-v6si7260278pgk.214.2018.11.09.12.00.00; Fri, 09 Nov 2018 12:00:15 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727402AbeKJFl0 (ORCPT + 99 others); Sat, 10 Nov 2018 00:41:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:52032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbeKJFl0 (ORCPT ); Sat, 10 Nov 2018 00:41:26 -0500 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (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 7A59020825; Fri, 9 Nov 2018 19:59:19 +0000 (UTC) Date: Fri, 9 Nov 2018 14:59:18 -0500 From: Steven Rostedt To: Josh Poimboeuf 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: <20181109145918.28df6616@gandalf.local.home> In-Reply-To: <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> <20181109194409.mnrzdee6gh4ujutm@treble> X-Mailer: Claws Mail 3.16.0 (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 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. -- Steve