Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp649326lqt; Thu, 6 Jun 2024 14:13:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWldfvAh1x5NE8MaimwYaOHFgxvZDp6Xbx9HjOzJaBuxgYbyF+LUeXcuo4BHdEQZ56JwkgtZnQBSQJ/7GRP7LfV8g+vdqtyZ4VaqQXwgA== X-Google-Smtp-Source: AGHT+IEYHWvePHshvfZFgSy6Gfy3FS84giAL0YySwOo9u+gKQTEr8G9m6ZUWnUbdhWdFfrHuDP07 X-Received: by 2002:a05:6830:459:b0:6f9:3a39:fff1 with SMTP id 46e09a7af769-6f957270618mr653708a34.22.1717708392307; Thu, 06 Jun 2024 14:13:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717708392; cv=pass; d=google.com; s=arc-20160816; b=ugSP9GUYhcD20yU/Am8HFjTxd5fTsUk/uRgyxgNoeQCwplmbwV0TDtf3Bx6yzc0Sks RyCKJyUhN0LE6m+ZwF4TYErzTTbsYd8y4uOdBBCq5uklPAXDR0GZyNLW0Ps6HAKvhrvE Ku6tirWGdgQNOukU2xWr7HjG+cUy+eRjeBtogTREDYIyp3P38Hu28mVyoDjtYS99JJgU H8GOQziCjldwskySgfFYU7C2NpIOl7W+FCagftW4yZkdh0IaPjRtIv/NN9BQGH7oWWxW R9NOCc9+hidl930fSd4O43q7yufhvbv2Gj0mCWgyKrA0jn3UYv3P9/P/EQy5iedFgkC0 veUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Rey5qJ7BY13ky3bigo4MWBL8ulxyTtDItl78FrbFPQE=; fh=+4Ilwqssqpe+InCHsD2R4yu3s2A8k1OM0l/VO0zOva4=; b=ATn32zKyD/KFLdlsPwEJM2A5RqCaecBVx6WvtaYPj97aY6lyKL1qML7DWa72sq+Wgq Ym/mWpiZ/P8RPofOEEjU6SZJwPbliNpwHNKfs2Hr0pe7VPD1wluhr82WSUZmOILGO8gv /bPuoCmYNzXr3UJXtqpQDHcvb/NBKWNoEQ2VU+IDKyR0llcpS588YQ+jI/AB/+FPyxo/ EW6l8ebA+dLzqzfwfX/hL0OauhTQHRifAe3pukUhEH0VAipoPwKCFI4xC72KF3gvYL2c mEMMmWiK2ZEwVDlecQjplqGmKV1/NfdSHv1WWaYk7/0Y1fW82w/8zBrppxZeyHb38Gc7 vsrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=l0DHKAp9; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-204821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204821-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038a6ec64si23613671cf.93.2024.06.06.14.13.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 14:13:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=l0DHKAp9; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-204821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204821-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7060A1C277C7 for ; Thu, 6 Jun 2024 17:36:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC2A219938F; Thu, 6 Jun 2024 17:35:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="l0DHKAp9" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B50861991BD; Thu, 6 Jun 2024 17:35:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717695358; cv=none; b=jlwh9MiF5OJfPl1KR1Y6TvPTzOkkvwI7qUxgvMuaSx5pSsV4iE5l3f35WQJFij1st3AW9xOXqRd0V72xRmeSwjeE+iFZJ7X/PWLs9L7YN2yLnoUnw+IBvNwiISyCMCl7xr16VoW3p5NZT1h0OwQ+V4frl5/Z8NDTIGEL21EvEsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717695358; c=relaxed/simple; bh=K95UY5fmgibcQQ6sthv1S5/PdLYNFoyPKt9sEpSCbeg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WwqQIxUWXBQ3eeitP4IqhMunjStPnSqSgZefic71HNvFxu+P1+P+Tl8ynbYa06b5CP3SkbnIqHNYWVHUqaaxXilw0+qfGy15ub4DHCoRukPExjGoLXuVKzVApxU25XUffNmq5Pcj8Ir+6Pa14ojrMcLXE0nRYUXHchBMdOtOMv0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=l0DHKAp9; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Rey5qJ7BY13ky3bigo4MWBL8ulxyTtDItl78FrbFPQE=; b=l0DHKAp9pgwOYJGy6q17IxAKYk InZ8CQSKwrYAb46Fg4KCTzN0hqcA6Dse+Q+x9G57PSijSP0134gUjHRdPavJ79WSIX7dEMkbz93QU Ak/4eVkq9cFudul86GtuBwn5f6BsMhNAi3HHmYdDU67cgiROZ0a3SOWbF8OmAPX7eBCh4sXDTBHeL mm9e72L3F2C0zI7Kz+v54fJUrG//TSU1Oqpp7LPaZany+XqCeWqqoO0omgFXfKSZxVZXFVu+Qvk1b OLlXB5X7JmZ4xv/eEK+EON/AXSs9gCkVe21PhVDJssmS+P9//zSPOLxhNuK798NJXn+tjo2u6HBEk XR4zCXiQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFH1g-00000001g1c-19xi; Thu, 06 Jun 2024 17:35:48 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id BBAD930047C; Thu, 6 Jun 2024 19:35:44 +0200 (CEST) Date: Thu, 6 Jun 2024 19:35:44 +0200 From: Peter Zijlstra To: Boqun Feng Cc: Mathieu Desnoyers , Alice Ryhl , Steven Rostedt , Masami Hiramatsu , Josh Poimboeuf , Jason Baron , Ard Biesheuvel , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , linux-trace-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] rust: add tracepoint support Message-ID: <20240606173544.GI8774@noisy.programming.kicks-ass.net> References: <20240606-tracepoint-v1-0-6551627bf51b@google.com> <20240606-tracepoint-v1-3-6551627bf51b@google.com> <389a8c55-a169-47ef-99c0-48f58003b40c@efficios.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Jun 06, 2024 at 08:49:06AM -0700, Boqun Feng wrote: > Long-term plan is to 1) compile the C helpers in some IR and 2) inline > the helpers with Rust in IR-level, as what Gary has: > > https://lore.kernel.org/rust-for-linux/20240529202817.3641974-1-gary@garyguo.net/ Urgh, that still needs us to maintain that silly list of helpers :-/ Can't we pretty please have clang parse the actual header files into IR and munge that into rust? So that we don't get to manually duplicate everything+dog.