Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1025428lqj; Mon, 3 Jun 2024 08:06:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwypKtNALyfuAOt3opJpuRq97JICqrfop8HC46u9bJUhOXM/s4u/RrLZ78BV2fH2VQkmhuMtJqUiyqB5Eh+ir9Kf3lyGpAzXjJBzVvLQ== X-Google-Smtp-Source: AGHT+IEbTxWkks73jCtJwGe8ydxVB+W/fscfN0SAIDtKErWkeoaemrajyl4hMUTqibZj5gp5lys6 X-Received: by 2002:a05:6102:2a76:b0:47f:3557:84f9 with SMTP id ada2fe7eead31-48bc2405114mr7917127137.35.1717427213493; Mon, 03 Jun 2024 08:06:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717427213; cv=pass; d=google.com; s=arc-20160816; b=dL1Kh+HXnfpt2zWzTUTcghStOe8cfOJZA5ZJuyFyruTKo+8pxivcxKsqGiUvkClPPB usHV+GZL136pT/ZibRshpsZAC8V44jaHd259yAwAGDJmKWM4TwAmXkYbaKNBKEo649vQ nWRxm96tEA8GM+zK8IhYWxqRBir4Pno4PGYElkMOmRu8Itbbr28CrA/DaYuqdftz6FBs vNPWxIJh4nypI2LbyMNiFKxOqou7RrfaSGyS94P/MtPMV2ahqhcgvE0NhqxqOUhhzcdU SP9qrVoJDBNdIo0q/HKNZaIAGStMouzO24IYAOlN7wXojkxM5m8rmkWBUNEQeZeB7pE0 4SRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=iUbp+NolNrOyeGaLe38w93IfAyLn+xoITcXsa+1tWFs=; fh=CONbk9IM1KeoX7M3ojYzAuH3rM9roTZPm7jJ9UBDXA8=; b=nyhvbdNH2oy5qYzOIf2XlIZbGpIDMz9NjZgsG+dC/3ZnYPo3U7nyxOWEbRe/Q748k7 IWMyRDDoeTC70iqULH44QSQdC6cyhXFXH7w7SvjSF1Wii7L/cjeVZEGPwc0UcKfByNTR jS/aHN7JCwUP74kEiXKabTxjvaokbdC8QdZBQ1R1ToLRaJMObCiGsbqAbCeBHcjvXDwW kpC/yROuqsKwhOoBddy/Rwz8Gheq4W/K7gfkiVBez1hQ04mEwnkh8Uyt32tZfUBagBHh YVxW5XIOh52VhWi9Wz4zhhMb5q5eWwr9IHUcV4X6nlch+CZ3qAqkmEQgcK3sPb5jZJD7 3iCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-199337-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199337-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-48bbce0734asi1351974137.134.2024.06.03.08.06.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 08:06:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199337-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-199337-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199337-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 3414E1C21D6D for ; Mon, 3 Jun 2024 15:06:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6884512FF73; Mon, 3 Jun 2024 15:06:45 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D3F76B65F; Mon, 3 Jun 2024 15:06:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717427204; cv=none; b=bIK3OLEV29eTIuTrqnx/TGlQWZsWHSxKWcT2a98WaNMMAi2+pRWmx4O5yqvxB/rcCyyV7IEXHLils9hDrwMqFJB/0+v1VN/uuKgYafBPjYYpqFlCmVhmWTN/7mmQCcByF4ECr4mWjJujYPNKmIziOeyBCiaecLgXBpcxL2Q1fZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717427204; c=relaxed/simple; bh=iUbp+NolNrOyeGaLe38w93IfAyLn+xoITcXsa+1tWFs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RsObjngHzkVN2KmG9jXos8dyUkh1Nw4ETMTC+R5HSiegZO97iWVygsVKgmGJa+nyuzp2jioOipC/PS76wo1y9nxqD2v6eMAs9ZBVYA0m45rPuRCnXA2Nkjd0xmqsEpa22ArkT5Q307GbQLJ6d9tr3cSZ4zL8b7p3EDyEKVHtDeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78388C2BD10; Mon, 3 Jun 2024 15:06:42 +0000 (UTC) Date: Mon, 3 Jun 2024 11:07:52 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Mark Rutland , Mathieu Desnoyers , Andrew Morton , Alexei Starovoitov , Florent Revest , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Jiri Olsa , Arnaldo Carvalho de Melo , Daniel Borkmann , Alan Maguire , Peter Zijlstra , Thomas Gleixner , Guo Ren Subject: Re: [PATCH v2 24/27] function_graph: Use static_call and branch to optimize entry function Message-ID: <20240603110752.6b722aac@gandalf.local.home> In-Reply-To: <20240603110018.1cdd6746@gandalf.local.home> References: <20240602033744.563858532@goodmis.org> <20240602033834.997761817@goodmis.org> <20240603121107.42f98858ebb790805f75c9b1@kernel.org> <20240603110018.1cdd6746@gandalf.local.home> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Mon, 3 Jun 2024 11:00:18 -0400 Steven Rostedt wrote: > Yes, but that gets a bit complex, and requires the changing of all archs. > If it starts to become a problem, I rather add that as a feature. That is, > we can always go back to it. But for now, lets keep the complexity down. And if we were to go the route of calling a single fgraph_ops caller, I would want it choreographed with ftrace, such that the direct caller calls a different fgraph function only if it has only one graph caller on it and the fgraph loop function if a function has more than one. Just like the ftrace code does. If we are going to go that route, let's do it right. -- Steve