Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp109377rdb; Fri, 29 Sep 2023 19:29:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyO4hDOZuLFbAC9U+qW9C/SH48IdNOKY0ufzrCWHh1gI1oGkr/TiTXKtCimpqfzGzz87zV X-Received: by 2002:a05:6870:c115:b0:1d6:5fb5:1541 with SMTP id f21-20020a056870c11500b001d65fb51541mr5931481oad.35.1696040951541; Fri, 29 Sep 2023 19:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696040951; cv=none; d=google.com; s=arc-20160816; b=ulDRidtPaJcvYJ/wVMdEFxQkhghAPs87IumE6Ts6zdJ7eAhqVq6b7j8w7MewZanKAD jPOIncVqE+tVVcJGOq9TuYd0Ino29tSmb2nBZraAJEVjwOoN+pzeI8IKVZ7bEzqxLuqs WZ1g6xskC4xPbpFN9jKhNLw8cTE1wHj5tPhEYTHTZsSsVn0eg5rP+EJqbaRwTRwARn8d gSE4t7eAz4aUhKY852kbkqgLBsQvtYXYxFnQd+WpTcx2Q3MWSOLpMPE0oqjxpHHxUO59 622TpEDrpIvg0bFkUpUWoADyw5wR4bl0ZoGan7WMrnSxXuCxSn9ahYErnI8T6QqVLzI7 bYUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=SClv1LlI8wah9GUgl9MuVq3kI1Q7eEXuNLYhk0MpO5c=; fh=ldwIiQ2CVqWtEMUiXxlavcX2XdObL0c6FySuKGqy0yw=; b=XJHWXRPY46lseYy6vYn8EY7UyouX+KHLRITcVBdm+O4T3IzrR+ElPt+mCQJSzfrc8C EB6ipoo9nn9qD4LSVopZFHzDwxuaiO8mrN8ZqOTdNNuJ2at6XlomsjObUzHHI4qsWU3i O1VGBLjcOX8h2+EhK7ufkeZhFrQvpBgQCz4XD8dysgoO0pmTujb/0jgtmJHL7kmIloD5 0keJUscuCjWi0IomK5U2eH+i0A2pU3PDtFKA8DqwwCWJHwBLY7VynHChzLe703y0Pcv2 eAkCyGaOoY1ZZejxDttIFezft2BxtvDbO/xjoYxwJ0I4+UdNjGnflFBWbZdadTWdZrZF AtSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="i1ng1/Nq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l9-20020a654c49000000b00578b37ad24bsi22403355pgr.619.2023.09.29.19.29.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 19:29:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="i1ng1/Nq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 73AEC81896CD; Fri, 29 Sep 2023 17:12:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232410AbjI3AMX (ORCPT + 99 others); Fri, 29 Sep 2023 20:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjI3AMW (ORCPT ); Fri, 29 Sep 2023 20:12:22 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57A10AC; Fri, 29 Sep 2023 17:12:20 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-406650da82bso2157915e9.3; Fri, 29 Sep 2023 17:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696032739; x=1696637539; 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=SClv1LlI8wah9GUgl9MuVq3kI1Q7eEXuNLYhk0MpO5c=; b=i1ng1/NqxM88KnRaARjItv8/sTTYn7dgoJKBiZeHcm6ETZh5OkpfJ0Pi9npKWyowEJ A1kHmZUwKBW8p8NXqNK1h+hAvNA/u+BCo1zPzzmmUB4JmwlADmFWhRmXRQIADu2ONTjA SqKtiphG+zuuhA8XnvLRd9VHLgPgsOs7coPjvfKKh3/iofPJR2GPpF4u2upDPxTaGQEH Y/eaGbNdlgloTImBIxAJ+su9i+vENKQU1NyGkmJjmrWK5fheQluAEJfdf1ilEUTyBr1s aOXrA4XgcJYM0h/O/VRqv3oGGKVOJwOBdGEprqZmDZIvatgumMkh8+gYo4QiKJljweRX eQ+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696032739; x=1696637539; 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=SClv1LlI8wah9GUgl9MuVq3kI1Q7eEXuNLYhk0MpO5c=; b=A0mRLQyBpV/ixJYzTiM/oquPtRrCpxEGDp1UBSV1KrPoz2RgfkmmZ9xjeGeMrPvvGj evYgWRu5kiJxNZjwXs8EVKGuKIl2wwooIFTBNe+lSZ/z/lI/0b4B5bP7siO25UNFz5Dn AJUyFrW9TBkmgCVJlZwDwTOXpNyEV0Z7pmulNUOsvsBBSdRdsfJl7wkD3z8tmaMDBlnw GJseS+G2DkDIWJw3oKy5Lkie+EtGHaDM786omPuk4yGeYcBg67pmyUTaQgYyG4f9E3hc SUR70uIbfYZoceQISdCmPS2rgBsSQMAU1p5Lq6TtwJs0Vc+P5wQW5fDbVnCNXHYltkmV hi5g== X-Gm-Message-State: AOJu0YyLFfyDGonOiiJHurXDMu6DJeKLUYSbVrSQv32XDsAomgfUqBol wb4fc6dMdMTwuaNhKLTbSO8bb91x4IlPN9hosRA= X-Received: by 2002:a05:600c:d3:b0:401:bf56:8ba0 with SMTP id u19-20020a05600c00d300b00401bf568ba0mr4570782wmm.28.1696032738486; Fri, 29 Sep 2023 17:12:18 -0700 (PDT) MIME-Version: 1.0 References: <169556254640.146934.5654329452696494756.stgit@devnote2> <20230929102115.09c015b9af03e188f1fbb25c@kernel.org> In-Reply-To: <20230929102115.09c015b9af03e188f1fbb25c@kernel.org> From: Alexei Starovoitov Date: Fri, 29 Sep 2023 17:12:07 -0700 Message-ID: Subject: Re: [PATCH v5 00/12] tracing: fprobe: rethook: Use ftrace_regs instead of pt_regs To: Masami Hiramatsu Cc: Steven Rostedt , Florent Revest , 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 , Guo Ren Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 17:12:29 -0700 (PDT) On Thu, Sep 28, 2023 at 6:21=E2=80=AFPM Masami Hiramatsu wrote: > > > Thus, what I need is to make fprobe to use function-graph tracer's shadow > stack and trampoline instead of rethook. This may need to generalize its > interface so that we can share it between fprobe and function-graph trace= r, > but we don't need to involve rethook and kretprobes anymore. ... > And need to add patches > > - Introduce a generized function exit hook interface for ftrace. > - Replace rethook in fprobe with the function exit hook interface. you mean that rethook will be removed after that?