Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1117919rdg; Fri, 11 Aug 2023 10:13:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6AoAQWqJrfJ8fohkNoqS2THqiB3/nRZIvRfLvccttMAPgF8WLdiOSio36MiDo5J/OsaIB X-Received: by 2002:a17:906:8a6c:b0:99c:a93a:432f with SMTP id hy12-20020a1709068a6c00b0099ca93a432fmr2252677ejc.1.1691774021185; Fri, 11 Aug 2023 10:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691774021; cv=none; d=google.com; s=arc-20160816; b=YJPHaprf7zbGQJ+GuuyvP3+HTivaM7sIiOQ3I7BowHcCVj7lZTiJG7jjPBvoIQhN/w +KY0j+xC3mt4CdqZM3Tp4ZqB49lkZv/QMwVSC6m81K2BVhmeGMZTn3knev2kXn6xcjsg SJw1kLrJebvWzlS1km/IxqchrxHRjOW2AdkolZj+MaqQ8jw/xDt1Ns3gGYWVLIf3HgGH 4KE91u99+1epX4Be6BkmPtC6aut+VaTfnLy8iZ/PYZUbz04WVGuFe1C1ZMNXyge/kWER G4Rvj0ppFTavrwEzLwYPHBg05Wu7B5k/cEymo3Zdu8S0c5st2l+KO3SFsdWxL29yWgrZ AVhA== 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=wuYgeb3ZpE6qCNyXPLRDDHu3cvSmCIHj77Dci3D7FFI=; fh=LJjWEvAi3E4m5vEzAyNt6pdAhkVC+adskurqHZBx4Mw=; b=MbQJMijBFdTRbI7nIAy5CSi2yx8/voB7ZbGy+Osz5CAm7x4mz5ATtr+jsojaRgZ8zw u67PNqA7JzVBX8L6JZ5FzWs3cNgEXjOhD1PA3/6BGV8v06xNGuWs+SMct94OwRiQ5MZu ZH0omwqdSTZniDxVDfmx6CvIxaFekae78xL7FuZ+Mqlo6LAWgl87acHzqpLs1gGPbLJ4 MNecePTnojWYwyCUU8IG+ZNJ0ikuBxc3og8W2vQIeh1cedCHg8RavoAcEiBy+RD71Bn5 zrlBjst6qqkfvr5ZUUgvSfn+Q5jKYVkIBK8oplpaMy8ND/JaGVlPQP1VuP7IUtBcXHxQ XhBg== 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 dt5-20020a170906b78500b00992969da8d7si3936919ejb.373.2023.08.11.10.13.16; Fri, 11 Aug 2023 10:13:41 -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 S236506AbjHKRKw (ORCPT + 99 others); Fri, 11 Aug 2023 13:10:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235270AbjHKRKv (ORCPT ); Fri, 11 Aug 2023 13:10:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A34AC26BC; Fri, 11 Aug 2023 10:10:25 -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 B5B49677D5; Fri, 11 Aug 2023 17:10:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BF09C433C8; Fri, 11 Aug 2023 17:10:03 +0000 (UTC) Date: Fri, 11 Aug 2023 13:10:01 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Florent Revest , 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 , Peter Zijlstra , Thomas Gleixner Subject: Re: [RFC PATCH v2 1/6] fprobe: Use fprobe_regs in fprobe entry handler Message-ID: <20230811131001.7b22a17d@gandalf.local.home> In-Reply-To: <20230810071330.d41a728f996f76e3243f469e@kernel.org> References: <169139090386.324433.6412259486776991296.stgit@devnote2> <169139091575.324433.13168120610633669432.stgit@devnote2> <20230809231011.b125bd68887a5659db59905e@kernel.org> <20230810071330.d41a728f996f76e3243f469e@kernel.org> X-Mailer: Claws Mail 3.19.1 (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.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS 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 Thu, 10 Aug 2023 07:13:30 +0900 Masami Hiramatsu (Google) wrote: > > > > I hope that makes my thoughts clearer? It's a hairy topic ahah > > Ah, I see your point. > > static void fprobe_init(struct fprobe *fp) > { > fp->nmissed = 0; > if (fprobe_shared_with_kprobes(fp)) > fp->ops.func = fprobe_kprobe_handler; > else > fp->ops.func = fprobe_handler; > fp->ops.flags |= FTRACE_OPS_FL_SAVE_REGS; <---- This flag! > } > > So it should be FTRACE_OPS_FL_ARGS. Let me fix that. Yes, this was the concern that I was bringing up, where I did not see an advantage of fprobes over kprobes using ftrace, because they both were saving all registers. -- Steve