Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp332725rwo; Tue, 1 Aug 2023 18:17:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFcyEoC3MuZV1XDaIL/hq6Jlysv0nvl84+MWgsCxEb333+Mu2rQTQFQTyRrOYT9s+VBOwNn X-Received: by 2002:a05:6a21:3e01:b0:134:80b3:896 with SMTP id bk1-20020a056a213e0100b0013480b30896mr13490043pzc.17.1690939041020; Tue, 01 Aug 2023 18:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690939041; cv=none; d=google.com; s=arc-20160816; b=lX9SedI5DH5HPGmeZ4z8JuV0N+NezUF1twtJXR+ReC74WY/3N6w0rabz4+42xbimB2 XuMbTIA618wI4ONRtaz5S4UZOx+8sBXdfGaYrNyPV3HKKOYlOWb0HB/S4xvE6I48+1HM 7Gtk5TXTwdsNseHdpWzoe1AKL0o/IPU5zpJGn2k4UUC9ioAYdFL+RwqrYF6Vq+P9VIu3 OGsAU40SBc7Wu5vq7LHk3DbE+4pLP4xBrxCvgfKVH9qonD83YUJIvggA60Pa8s80qI4y dL/Q+25h/4fJVdE3kow95+vUZLLjfEW9nkpdbUXtJMfhSvT+5joqZNDqYCWbq2jsOlLJ 86tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=c7F8wOnOKki8XA+lBpx8cW13F1XpuAIbD15XUmA5Aog=; fh=DxEca6Ysed6Txex4Byzfls6xJRMU0QVfmJg+VzFx7AM=; b=NDbzBEo5TkRCKGFu4BNf2OO6ezTbQmi/iSQBtSmruMccooHhGeXgxFXezu/1D4XfNc SIPaNaKF/rluuoh85KvSlrx5gssiN7NDesNxvcJy3Y3dLd9yHNlq9CZBL3ZrqRviOVeC FgZcTyWS+fzaZW/TyMVughiCLnt0HYYZMEXRj/qqo9OcqeBwr1lTJs3IGiNOKm/qllPm ZxgnpgLWgG9gEmkS84O5beT1qfaIBdLFQkpHRSI5Yduic3y3nRXe1u97Ure28YGt+ptd xCtSk715zKVBt/Onj+Vd4nr3TuXHYhl+m8SLv+DkJvh0al4UylRBrwaxB6gHLqkGxwv3 KQTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a170903230300b001b8a56b989fsi10019778plh.303.2023.08.01.18.17.08; Tue, 01 Aug 2023 18:17:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230253AbjHBAoO (ORCPT + 99 others); Tue, 1 Aug 2023 20:44:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjHBAoN (ORCPT ); Tue, 1 Aug 2023 20:44:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2441710C7; Tue, 1 Aug 2023 17:44:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A5C0761780; Wed, 2 Aug 2023 00:44:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C2DDC433C7; Wed, 2 Aug 2023 00:44:09 +0000 (UTC) Date: Tue, 1 Aug 2023 20:44:07 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Alexei Starovoitov , linux-trace-kernel@vger.kernel.org, LKML , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Jiri Olsa , Arnaldo Carvalho de Melo , Daniel Borkmann , Alan Maguire , Mark Rutland , Florent Revest , Peter Zijlstra , Thomas Gleixner Subject: Re: [PATCH v4 3/9] bpf/btf: Add a function to search a member of a struct/union Message-ID: <20230801204407.7b284b00@rorschach.local.home> In-Reply-To: <20230801204054.3884688e@rorschach.local.home> References: <169078860386.173706.3091034523220945605.stgit@devnote2> <169078863449.173706.2322042687021909241.stgit@devnote2> <20230801085724.9bb07d2c82e5b6c6a6606848@kernel.org> <20230802000228.158f1bd605e497351611739e@kernel.org> <20230801112036.0d4ee60d@gandalf.local.home> <20230801113240.4e625020@gandalf.local.home> <20230801190920.7a1abfd5@gandalf.local.home> <20230802092146.9bda5e49528e6988ab97899c@kernel.org> <20230801204054.3884688e@rorschach.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 1 Aug 2023 20:40:54 -0400 Steven Rostedt wrote: > Maybe we can add a ftrace_partial_regs(fregs) that returns a > partially filled pt_regs, and the caller that uses this obviously knows > its partial (as it's in the name). But this doesn't quite help out arm64 > because unlike x86, struct ftrace_regs does not contain an address > compatibility with pt_regs fields. It would need to do a copy. > > ftrace_partial_regs(fregs, ®s) ? Well, both would be pointers so you wouldn't need the "&", but it was to stress that it would be copying one to the other. void ftrace_partial_regs(const struct ftrace_regs *fregs, struct pt_regs regs); -- Steve