From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (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 C9A9D3E024B for ; Tue, 30 Jun 2026 18:10:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782843045; cv=none; b=YlHk/WI/R35UnCAj1C0LmLZxUTwnOw1S8ZEoSXdjkBsGe+VGprZGybKfuQBDHVWp09xDZqLYFOyB8Yw439oZ/mTVBlyv1fVm3xYraMcVogCLXEEgYWEacB3gUuAMskNabCg8DGup2rXhzA8rtdzO6wPn42jdF3WCN/EkbVmf0To= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782843045; c=relaxed/simple; bh=0taPItc/ZhqwjMLwUT+K3EuCxI1p/7WtY50pAXfBKVs=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To:Cc: References:In-Reply-To; b=rWyq8GeBEoqyF5prmca3fEbsKm+hPVXb96dIt/pWXxYwczJ5j2IMckTOF8o67X7trf/yPPHZmBcCRXHBVyGXjlB0T5zV/4J8CwGVr6EmipgAaRyfSX1xBtjWAp2EDcXQyffBkXXE4A3rujf0DoPc4veODK84M+u6sf4FazFqQtE= 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=A5XaWGFT; arc=none smtp.client-ip=209.85.210.44 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A5XaWGFT" Received: by mail-ot1-f44.google.com with SMTP id 46e09a7af769-7e9b7dae39dso2940850a34.0 for ; Tue, 30 Jun 2026 11:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782843043; x=1783447843; darn=vger.kernel.org; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0taPItc/ZhqwjMLwUT+K3EuCxI1p/7WtY50pAXfBKVs=; b=A5XaWGFT418NF/Zh3H2IGTV9BuuS8WlOp9JIHqcbKT03PcrIOUMNCTzKq0ap/kqGfB Zt/JiZgdWBzD52J2BcodO6h9Z/d3ltCo5LpUJ+L8qo40YxaIDk9JsfgNd5sGxIj8oMUS 37MA5u/a9BS1lNlf9UdeTLOJejap6aC/STkn85180r5zcIHXgF2fW3vhxJJsFQNHEM1n 6Va5zsamYYgLXuBVv7EfEXvjYXXM92eqd8/Hi8B2GLh3BSbmMeOEEnLULYwQUaNmUlI1 JG8Q0WkkURk2u+svLagSoM5dVeArAGTbQzGWYgVt1INxcvUuM7yLF0kiQewW8be7AwrU Vd1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782843043; x=1783447843; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0taPItc/ZhqwjMLwUT+K3EuCxI1p/7WtY50pAXfBKVs=; b=fmJIRjJfv8PQXXsjY73+G0eK6mwarMSfbKh8Vke4yRnBVbHpFrSKgMGu7OOhL+IA+/ frhmb5rXZX9R6aj/zlW2yn3MWReb9qtIUA+MHCu/FFldRJDt6H/FJJ5amyPjF1mz6r0L EOv4Hga6w8PVL0Mpf2kM8yRq2oRGG2mDI2Q/ZpXjACI0bseTzXqeq5/BBOUQ5rjRMMsz 3RgfNlhDsgfHLxe3YlTRYQEdwyya4MYZ1tNTN7MDbru5Qq3W/NpD8sYhNX7ShUtoK0yK 0P4jAL0HimdqP+e6Ui1kY5D13Rpfh4jWEut94naKDQPPY0LOeghPiEZkk3mH7twUueHF yuqA== X-Forwarded-Encrypted: i=1; AFNElJ8/qXsH8UabKPuPi2YSBoJ2egiBHQPqeXiu4PCvVIasF3zcaOOXSzjXvW2WjyiN/WiXvLUsZpIzVwVY0Gw=@vger.kernel.org X-Gm-Message-State: AOJu0YziyT89f31fAug0jVC2fJmsOxifj4p1bip2HPE40O94FaI7XHBF YmHoZa9vFFoAHoBP6lvYe+gRPbVnFyLYW94CeTvyc/DQIrbnrezL/GFi X-Gm-Gg: AfdE7ck02/tqLv/XQD6q3EBCFooKpLx7HHLBR9ZwJEN1N19zS42PWOfhT6FahP7mLca Qs2LrY6zIDpaLz5QfbTkSYjGKOz/23Rs46C1LcgkUhT6dTeOvAzLf453W9ZFmq0RVGGcX8qxmKu f+fAxp84yqmzmIaBzkVxn5HEG7G1yjaMlJXqsV1X3YaNwFWORah6KNZUZAyDQk7Ha+SG8LzbwvK Mehq+v3dX3eUA8gJwBMsxrxAhd/7qa+8AanqlMwP08RjIyJ6Krs+qx4JhHh+4Eek+OffLN9utaz c7emP2JhDUzLOKYdMOMdenjhDzTSpmET6oych8tfyzFAPXxoa2UfpCtg4Q7TXTuMBV5dOanElTU /JGnm4xBl1l90Rs8Ocm1ZDj/3ySqtOvluWrgHzAml96jcVtTFzKBYCwg6n00yEqlDzM3AVw3Ncv x2YGu/1G1xwi3pJ2C5FBrHJlckup0aa8sXONDBxy5b82zLp/oq2IR8lkBhyzrjbjtOoD+x20sar NW6G90= X-Received: by 2002:a05:6808:1913:b0:495:e48c:4e42 with SMTP id 5614622812f47-495eb006eeemr4169487b6e.40.1782843042753; Tue, 30 Jun 2026 11:10:42 -0700 (PDT) Received: from localhost ([2a03:2880:10ff:5c::]) by smtp.gmail.com with ESMTPSA id 5614622812f47-4935536690esm8853280b6e.13.2026.06.30.11.10.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jun 2026 11:10:42 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 30 Jun 2026 11:10:41 -0700 Message-Id: Subject: Re: [PATCH bpf-next v1] selftests/bpf: Add benchmark for tail call performance From: "Alexei Starovoitov" To: "Tiezhu Yang" , "Andrii Nakryiko" , "Eduard Zingerman" Cc: , , X-Mailer: aerc References: <20260630022306.10017-1-yangtiezhu@loongson.cn> In-Reply-To: <20260630022306.10017-1-yangtiezhu@loongson.cn> On Mon Jun 29, 2026 at 7:23 PM PDT, Tiezhu Yang wrote: > --- /dev/null > +++ b/tools/testing/selftests/bpf/benchs/run_bench_tailcall.sh > @@ -0,0 +1,18 @@ > +#!/bin/bash > +# SPDX-License-Identifier: GPL-2.0 > + > +# 1. Load the official common benchmark utilities > +source ./benchs/run_common.sh > + > +# 2. Strict error handling configurations > +set -eufo pipefail > + > +# 3. Use default bench binary path if not exported by the framework > +BENCH_BIN=3D${BENCH:-./bench} > + > +# 4. Run with strict core affinity and isolation for reliable profiling > +RUN_BENCH=3D"numactl --physcpubind=3D0,2 --membind=3D0 nice -n -20 $BENC= H_BIN -w5 -d20 -a" > + > +# 5. Capture the output string and pass it straight into summarize_ops > +# This satisfies the framework's internal parameter bounds without trigg= ering set -u. Too much LLM smell here. In general, I don't think we need a bench for tail calls. tail calls are more or less deprecated and often in the way of implementing new features (like 6+ arguments). There is no need to work on improving their performance. pw-bot: cr