Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp592350lqt; Thu, 6 Jun 2024 12:09:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeoOZZEP2e6vVsaRVJ6QM+w2wp26MWanH2V66JUX4bvXBOVQ+Tl+ZjeOjxMAo5nrz+8p6S/A9TblrjyLTIcblx3i8oddQmePN7TeoN4A== X-Google-Smtp-Source: AGHT+IHsRg6NNd+lPJBXChWSSl78f6EfuaDJctBfiwHpWjHH69/JUtR5FZSSEkUZvWPFc8fGVGdc X-Received: by 2002:a50:8716:0:b0:578:695d:d78f with SMTP id 4fb4d7f45d1cf-57c508f9628mr171402a12.15.1717700971219; Thu, 06 Jun 2024 12:09:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717700971; cv=pass; d=google.com; s=arc-20160816; b=OYEe++RXs4bprVAWxQXvAafsBnsB7gF2iBGlPy4kxZEGN9oYkAf14Ym61yS3FU2mcz QbWU2tmG3MjZwLGtcILYeomb63BWcnHa11DFtlKCrNf6wikJpm7eyINEBbkxAMMHoWss rxPjPGqeuUWSzL3fCYVrIu7q6hz0Rnlllzxu3NrCen2RgpDlZh11nuYIOM95fJFV2bnz OobkqCzsBi2eumJDjeouN+zuQ68Gl5PF1CvBn2yF6bzjFiWB42UHYNEI23OCNLaiqVnf MxAjw3VSYY/0ufesu0DTtc7SyQa0ajtCJceJ6yOmm+vsfE2XhEOhGfZTbObpIvtK5YJd 9guA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=cwKtlfrp18sije7X+ZFRSL0ktHjGOAoWT9mG1MN19/Y=; fh=Hvqqz/WIo2njuY5WONWTegi8RHQRMt6E2AblA8TOwwg=; b=xdBOCXCky1ORL3unC5ulZNRh/EYQexU7QrM8ioU1QU2KbDXmxtTPM5MP1a3UEudexf +6e6KjzlhNKi/rKxHeqc0Ezq0xokBMAnl2hUuxTwfuuQgBwwEi46h4lD5JC/ULCCljyk ddFlw2RGg2hVbN4hjRUWppUpQYAQp9138xCeAa1DsJ+M4QTssa7fJX+MygHPqdbYYZhk tqu7EBd/4XiWg4BPdVcIcp+ccEJgLRIslYHUv5fq/N8Douyf1/ypri5iqh+KfKD48tNK IllUKH7ionwWVTahbvOL7gPExKSqIjainoTMFBYjwqj7mema0nVCEAqEwnhdFBya4hFQ qAtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IiZOw4sL; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-204933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae264ffcsi974289a12.548.2024.06.06.12.09.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 12:09:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IiZOw4sL; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-204933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id DFA901F2439E for ; Thu, 6 Jun 2024 19:09:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85F9154654; Thu, 6 Jun 2024 19:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IiZOw4sL" Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C25A6487BE; Thu, 6 Jun 2024 19:09:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717700958; cv=none; b=kwnBgJQpv3j7XiHc6B7sX55V4lNsV48n6jMQE0TpgTUDT5w8J9+1lizst5Pj7eMGUIl7u2AdxtEjT8h4WpCn7hMmRa8Iqn4uJ57hF0JmkO8swwqpBSvGzhRLIKIDvoxXm40bU7VZ3MNsaXpipXhZ/apB+e3A668ZEibz1ukdHeg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717700958; c=relaxed/simple; bh=cwKtlfrp18sije7X+ZFRSL0ktHjGOAoWT9mG1MN19/Y=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=CfepMxsHQs7rDeAUMq/samX23IrrhQbFB5wfXg6esrjDMqrl7791D47f4B+PG3uCX5/V6bq7SFmPp0HcW7DAZUpG6sezFwVFzKNwX0RYz64McmcLImyGHhr8zTlVJv6yHhVJns3DJqyTndiaRf6P5EEfLNq5sivLvUU/xkbdy4c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IiZOw4sL; arc=none smtp.client-ip=209.85.216.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-2c1b542ae9eso1017830a91.1; Thu, 06 Jun 2024 12:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717700953; x=1718305753; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cwKtlfrp18sije7X+ZFRSL0ktHjGOAoWT9mG1MN19/Y=; b=IiZOw4sL2OOL8wQsjPPptSW3Ac+OZlVxery5Hx9P7IwkL2qoVyA2HMyVpLcp3y/XmX MasukB3B5VXgHk7PWwQpS6xP5sE7ltV+TSPBiCzXfK18DD6RmjbL/KZqnHEPhIpOl2Qv eio7d0YczLRxEhfszOUbxLMjeyP0r21YOCL6BC+/rI7YAvmL9H61WjgxxmUu/LFqcIDn 58duMt285c/O7/lK+o0USYhC0H7BY2wWaFz4CnTgpBHpHktGniUr5jgxsBxRLHbjWOB4 0GZfr/TJMDfplGU7VW2klU0wrmo3nc8BQ9SQQs48CVGrV27DdCKUN6b09Jn0wTYl8hcH s2Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717700953; x=1718305753; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cwKtlfrp18sije7X+ZFRSL0ktHjGOAoWT9mG1MN19/Y=; b=CwZenKScLOsPbz8hPS2NcQ/17t7SGo9KqGLcZKe7Rwtmb6fmEzqzFbIiEB6Obvhhvr IXHkYqv2mW9OqSCdJqnvKQN/IMxC3GA5D7WN5yZEaZWO9t0PNF5vyIs33XAKjCrBFedD U9yiTV5Ae54EokQ2+KJyom23ZDE0fFSeZE1aIoSUhZJncTHUCSK4b47Z7dM0kby49SY1 yWwGbotDdeI24bO69zij1bhkHEBuPXXNFxBlCj+AqvvQh2kQYik3vrf4y6vy0ADQMUjs me4MVaU5q0l5nRkXBbZtSBW7vKQlfFXbkwB+swzidxUfQ9GGgeTDcji7/ONNjt1CCeKz S6+w== X-Forwarded-Encrypted: i=1; AJvYcCUVS2HMPjy/F+N8/Uqy8lqlqJ6OxajIvHmFOR7bmoUMSRh6NO7lbC6K6r6BhXGwgNTyJBnOvnttc4YcM7dFJhNOqIi4aPSmxnauhbTX65Iqx9C0bz6goEDQ4qY33fP+JAQVYIBShTs5E13zU6To1IuyqgZDY43+aQOJB9aZkSYSyhQwHsr9uSCqZIZTlMBIcWQ= X-Gm-Message-State: AOJu0YyBDKHVC7+7Lf2HGJAP08hwllFktySlQEgUbMJ3IFZ6mf1aKcgl Qj0o6cEONtBBhLEHHdeO89oo65k4+J/+jiBDKbHfkCvpCghuI8sSLs3m+CoRl1Ih6vAbL9XxNzY XQ3fv2Y/1YF2eFtbq19UvugX+XJw= X-Received: by 2002:a17:90a:2ec2:b0:2bf:8824:c043 with SMTP id 98e67ed59e1d1-2c2bcacb8e7mr461250a91.18.1717700952929; Thu, 06 Jun 2024 12:09:12 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240606-tracepoint-v1-0-6551627bf51b@google.com> <20240606-tracepoint-v1-1-6551627bf51b@google.com> <20240606171845.GE8774@noisy.programming.kicks-ass.net> In-Reply-To: <20240606171845.GE8774@noisy.programming.kicks-ass.net> From: Miguel Ojeda Date: Thu, 6 Jun 2024 21:09:00 +0200 Message-ID: Subject: Re: [PATCH 1/3] rust: add static_call support To: Peter Zijlstra Cc: Alice Ryhl , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Josh Poimboeuf , Jason Baron , Ard Biesheuvel , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , linux-trace-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 6, 2024 at 7:19=E2=80=AFPM Peter Zijlstra wrote: > > This is absolutely unreadable gibberish -- how am I supposed to keep > this in sync with the rest of the static_call infrastructure? Yeah, they are macros, which look different from "normal" Rust code. Is there something we could do to help here? I think Alice and others would be happy to explain how it works and/or help maintain it in the future if you prefer. Cheers, Miguel