Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2870942imu; Thu, 29 Nov 2018 11:32:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/XVsBPlquzAYBhbYYFjmU7Pd8URNazQgaSpc4UU7OpCaNRmD9G6Z00VCP/G+07hiwv84MLg X-Received: by 2002:a65:4142:: with SMTP id x2mr2281424pgp.356.1543519977609; Thu, 29 Nov 2018 11:32:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543519977; cv=none; d=google.com; s=arc-20160816; b=EROvwJLjEPog+d76dHh0fZ1ONNSdAFph5gC26li8c7MBPUzwuovKKQ/nnm3gaMb90R ITobxD6xXxKTWnmFgja11BEg091CAyGa6NQ2s4+a3LzLEXoLw1nvMYr0pKr6jBLmQzWT EZOCbA3UTmrjVOjLU+EallYKE6Mn5B/0y9DJVf5yOxzuoz+/OUgwvZtPATXkPE/2bCAA Aj+v34F+kNaGrHjCdnt/RNhELG9m329FBJbk1yd/wLGICzlINZ68aKZq6geFWAywy62k eRsT36SDKu6whWR/s/QenMSXRPeSnM/5/+GJOmSeOtXf+zF6ijDflRl0A2ehQaRFvqDU m/jQ== 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=RkrRlB8h9pa7YZmeloMsQzmAHqIESE0ahvrR8Zgbiiw=; b=PJrWU1GECOBaff16VQeDo1ME3xbeatCQR9wE4svglN1KnLGkjfZy7SlhhrIUn5D8MM RrLfaAuVmPeORRooMvHe2bFntlYAWDSIFZL22hGQghRfYM4hYjpvE/Xl2tX5M3ukmCJS I7g4A1DyCm50nazUJUSCVBJYZdDLNw2wTS4/9THUU44k+8cAyBRhkoxQq/ZEcncph/qL unMwyyqMUCqB286TDcxgM9AY95SlwEoe7/HVLGDx3Xf9beILoleosy/brD1TN2dN6oXm bsHQF0sv7WvuXZLosvZtSibglyvs1Uohwl081XZp8sZg3/iL38rM1LQNT8FEGXSAxlzX xSdA== 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 v185si2904868pfb.65.2018.11.29.11.32.42; Thu, 29 Nov 2018 11:32:57 -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 S1726528AbeK3GiG (ORCPT + 99 others); Fri, 30 Nov 2018 01:38:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:35660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbeK3GiG (ORCPT ); Fri, 30 Nov 2018 01:38:06 -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 91CE220868; Thu, 29 Nov 2018 19:31:34 +0000 (UTC) Date: Thu, 29 Nov 2018 14:31:33 -0500 From: Steven Rostedt To: Linus Torvalds Cc: Andy Lutomirski , Josh Poimboeuf , Peter Zijlstra , Andrew Lutomirski , "the arch/x86 maintainers" , Linux List Kernel Mailing , Ard Biesheuvel , Ingo Molnar , Thomas Gleixner , mhiramat@kernel.org, jbaron@akamai.com, Jiri Kosina , David.Laight@aculab.com, bp@alien8.de, julia@ni.com, jeyu@kernel.org, Peter Anvin Subject: Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64 Message-ID: <20181129143133.2b38bc76@gandalf.local.home> In-Reply-To: References: <20181126160217.GR2113@hirez.programming.kicks-ass.net> <20181129094210.GC2131@hirez.programming.kicks-ass.net> <20181129143853.GO2131@hirez.programming.kicks-ass.net> <20181129163342.tp5wlfcyiazwwyoh@treble> <0A629D30-ADCF-4159-9443-E5727146F65F@amacapital.net> <20181129121307.12393c57@gandalf.local.home> <20181129124404.2fe55dd0@gandalf.local.home> <20181129125857.75c55b96@gandalf.local.home> <20181129134725.6d86ade6@gandalf.local.home> <20181129141648.6ef944a9@gandalf.local.home> 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 Thu, 29 Nov 2018 11:24:43 -0800 Linus Torvalds wrote: > On Thu, Nov 29, 2018 at 11:16 AM Steven Rostedt wrote: > > > > But then we need to implement all numbers of parameters. > > Oh, I agree, it's nasty. > > But it's actually a nastiness that we've solved before. In particular, > with the system call mappings, which have pretty much the exact same > issue of "map unknown number of arguments to registers". > > Yes, it's different - there you map the unknown number of arguments to > a structure access instead. And yes, the macros are unbelievably ugly. > See > > arch/x86/include/asm/syscall_wrapper.h Those are not doing inline assembly. > > and the __MAP() macro from > > include/linux/syscalls.h > > so it's not pretty. But it would solve all the problems. > Again, not inline assembly, and those only handle up to 6 parameters. My POC started down this route, until I notice that there's tracepoints that have 13 parameters! And I need to handle all tracepoints. Yes, we can argue that we need to change those (if that doesn't break the API of something using it). -- Steve