Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp959459imu; Fri, 9 Nov 2018 08:42:43 -0800 (PST) X-Google-Smtp-Source: AJdET5cRqHNLZMbPvcO+a74g/WBmy8wY+7KllAXDP3qQhTHuXH0PnKrtER0HPR6rFXB0uJAL1jF/ X-Received: by 2002:a62:6d83:: with SMTP id i125-v6mr9903735pfc.184.1541781763452; Fri, 09 Nov 2018 08:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541781763; cv=none; d=google.com; s=arc-20160816; b=X4I4KwJ+3wPfjLA4djdD3K/NXyl6GXQVIN+T8Iq5DRWBCddUrsnvULmrEE8Auu4oAQ oEcBXQNGob6eYMLfNWZ1h8cv0A0cbXlj91RtMT0X3WuakVPyH7bK0xVLOTHCE8T1SM36 YyYgZOprkzF96Ou5v/augzhV67Y6hSf6DATJx5PC4xqk7XiZHJ8N1BvzbR53R8kQU21N OG2iFZrpFlxB/1N1o2hQMbPRyL6a6OxptfiDzLpx2w1kBUI47pqwzDasz2zjiQaR3t9p GruY1pRPnds+cz/O2GYvv52kvOZULMsdb/K3dyv72F3qgSMQlZ0or3vDUUM7wQyq3jcz NZ8A== 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=E6MnPOv10fg7wvMgYT1vGo9by7uGzbBfz+ShcYDHCOY=; b=bL9DC/JTka7JgK99pitNM+pydaRr4bcSz47evtRW2CbHVoriEWlygtfXxmf924mxXU +4qBb8twJw+1zdagXWY6mNOBg/TzkLOyz152tFsLTmr9XynBHOgPxECj3d4d/QD5l+Lg 6zIfN0penDpVcNnQwT1tdPqi/715DsMgFObHwmxjYulmZmmOcRAfPBtZBR+dVnM+yVe9 TZVM/TZ1qInAeik7IZk0wp4/sQj42NaYm6kf0YL+QRY40EHoD9UzBETMQ2fkTS0LU5nm A5d+NYHmA0FulkxUfZiM83YDbYh6sLSqBe4AdZ9QOHr//qCck/+Fd0m98vMpOYklSEva 8+Xw== 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 l12-v6si7802321pff.126.2018.11.09.08.42.17; Fri, 09 Nov 2018 08:42:43 -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 S1728455AbeKJCXC (ORCPT + 99 others); Fri, 9 Nov 2018 21:23:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54074 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727995AbeKJCXB (ORCPT ); Fri, 9 Nov 2018 21:23:01 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DE16530024FE; Fri, 9 Nov 2018 16:41:40 +0000 (UTC) Received: from treble (ovpn-124-61.rdu2.redhat.com [10.10.124.61]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1EC7F5C219; Fri, 9 Nov 2018 16:41:39 +0000 (UTC) Date: Fri, 9 Nov 2018 10:41:37 -0600 From: Josh Poimboeuf To: Andy Lutomirski Cc: Ingo Molnar , LKML , X86 ML , Ard Biesheuvel , Steven Rostedt , 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: <20181109164137.5cngbfrkm4ihj4ra@treble> References: <20181109072811.GB86700@gmail.com> <20181109152139.zig45f6gp24btfbc@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181109152139.zig45f6gp24btfbc@treble> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Fri, 09 Nov 2018 16:41:41 +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 09:21:39AM -0600, Josh Poimboeuf wrote: > On Fri, Nov 09, 2018 at 07:16:17AM -0800, Andy Lutomirski wrote: > > On Thu, Nov 8, 2018 at 11:28 PM Ingo Molnar wrote: > > > > > > > > > All other usecases are bonus, but it would certainly be interesting to > > > investigate the impact of using these APIs for tracing: that too is a > > > feature enabled everywhere but utilized only by a small fraction of Linux > > > users - so literally every single cycle or instruction saved or hot-path > > > shortened is a major win. > > > > For tracing, we'd want static_call_set_to_nop() or something like that, right? > > Are we talking about tracepoints? Or ftrace? Since ftrace changes calls to nops, and vice versa, I assume you meant ftrace. I don't think ftrace is a good candidate for this, as it's inherently more flexible than this API would reasonably allow. -- Josh