From nobody Tue Feb 10 01:19:24 2026 Received: from mail-yw1-f193.google.com (mail-yw1-f193.google.com [209.85.128.193]) (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 DA5452D7DF6 for ; Sun, 4 Jan 2026 12:30:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767529843; cv=none; b=H2Khb3pqsL+dWPgfSiY/WWjI5tZF3xXdGbyhPmmcu2VmKGKSv0Q8zcfBY0vNqS44zug3WE/lvxZKt+Q/Z/DIk3i9B6RC6obUjCwiysKP7BlPqVhMu4AFhM8+3fAanNW1rpbKjKoL2aPFIWaR9xUgHK+ZfoQ+0lANJ1TNelW3WV4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767529843; c=relaxed/simple; bh=ARq0/QucFj/sxPqr+22ybRos7rUcjBBi5nq/Y4PoAvU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dRSsTYYziBjea/h3PYBVb+C8Zv50XyfbSog3dqlZjDm8y+doVvR/jhLl4xThk0JRRNp92e+U/Of45tZL9i9MIoS/Ck8W3gKHmMV5Q4IAWpLy05thodMeBcCOc7FBtpvIu4oy2M/WsbODT0gkVZSE67TaJuOeheeciJhoyU9+fQ8= 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=TqPkms3U; arc=none smtp.client-ip=209.85.128.193 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="TqPkms3U" Received: by mail-yw1-f193.google.com with SMTP id 00721157ae682-7908ddad578so1309937b3.1 for ; Sun, 04 Jan 2026 04:30:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767529841; x=1768134641; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ki8yj47Ksf2sOkp6JBKCA9cB1ptX2Wx6sb0cvY7RlMA=; b=TqPkms3U+iW3ZtHfZVQjlxgEmv0kdW+TEc691Q1F9AVik7R1CxM07xU7sYmYBVdTut YvJEwRyigQ5XFg1f7RzDNSD3bh2JcV7WL/9BJ3LTQ0zYR6Vdk0j9pO8dneLnayedCXqc LEUM1gufSqq0uuveuXnxoag76AtvwEJ7x19FKID0Ls60Op0pCUIAQzJlHRBrGt/AkY8p e4Ct6NtYXCI14AdCF8c0n5JEOY6cIEWXviAQ9nfuSF+p7cY0AKDL+2Vh8fUPuJ9uZs7W vK4ovstoqjMQOr/l+xVySfCshB9DkSnht4D9YXD0x1xwbiNUOgBfzP+kpl+N1TlUZe5D ltpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767529841; x=1768134641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ki8yj47Ksf2sOkp6JBKCA9cB1ptX2Wx6sb0cvY7RlMA=; b=kcbeKO/qCHd6J1+TopkTq5QIPgTk10TAdF/kxikZdANawW/Uvm83wvXc6tsvwEuDtV 34w5/NmI/V7+1hWfs115LB1TOGRXvqdcvjCftusYabTTt4O/t2V0ZYLp0tQuco98skNk VOfjZ3fR65T+oLZYJpSbIzEQuU8pmYTkKDc9z9sIM6Y3ZAj2p7BqZ83DMnwsirXPS13d ZEgh06W55KiwyKxMu0rJYk7M470DJ2foQyMBr5KktbfleZwFtC8qsbKgEyUxrDU3+OQT CoVONt6BgTr355zqTTLVFfKtVtSvCyX+wWcr2dyW/JZSHIwE3uThu9CEisEPoMJmvnvg EYKg== X-Forwarded-Encrypted: i=1; AJvYcCUcLFiyIMcdZ7F/gJOF/gBxrqW6DA2o1hvtg+aEGGAB2wNMGOFhb/4i9CYuFIARDnjVnalq4R0rqz0ARhw=@vger.kernel.org X-Gm-Message-State: AOJu0YwMIGv8FyQNB+Rn5fOr64JxYXkuN15TdM+67pAFLjkgA7uXVLxI /eFhdtNX4aOXkzWJtBwyYdFPD/09s0GPIcn/fXOvUDumIy3Lhpd7ycQV X-Gm-Gg: AY/fxX6mVlbmMKSSZZwn9rQ4HRZ8a2winGnV7qmiionUlmruRb/iPcg+pxnu8GtHmtV PxfbJBe33Wb4JaDI38QtelHdhtPm1WIo01OofzXz160gXzBvsFQ5I2guKU35Iba+y7GhNHo6ZtN z3w9LWJbCD7PpSjXsAxLW0ofyNemLaW7bH87duzW/BQgj79j1m2K4M+poVzd4A/Gr6bRfHAFfYi Ceu2orb2fKnxv9aLHx98ruzv0Zd9WKzDvW1c7z+lWCW5+65h0BLK9yvkgT4e8xNFbgL8pynLO7N isjG66ZOayc0umh/vuLhp/ryICnNSKjIuQq3heOyW+mjjbw0HXTtL3yj7hqhFoLyoEVG4JHRgMb FuJSN/Qg96UWUYMtnF1+ZJsVZlCdhpR5L6yrw4IL7l6s5gaDjXCRaZ03LalLdQiRIRAex/iA2Gn S1HHxExc0= X-Google-Smtp-Source: AGHT+IHvmhNvokdhiDeZCaYjQcCM0epcPEZFOjtq+9XoutL8WlCTfktxFdlZD6VAvB+jQfPzwTGVbQ== X-Received: by 2002:a53:acdc:0:10b0:644:79fb:7db7 with SMTP id 956f58d0204a3-6466a87f95emr31497735d50.13.1767529840792; Sun, 04 Jan 2026 04:30:40 -0800 (PST) Received: from 7940hx ([23.94.188.235]) by smtp.gmail.com with ESMTPSA id 00721157ae682-78fb4378372sm175449427b3.12.2026.01.04.04.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jan 2026 04:30:40 -0800 (PST) From: Menglong Dong X-Google-Original-From: Menglong Dong To: ast@kernel.org, andrii@kernel.org Cc: daniel@iogearbox.net, martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, jolsa@kernel.org, davem@davemloft.net, dsahern@kernel.org, tglx@linutronix.de, mingo@redhat.com, jiang.biao@linux.dev, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH bpf-next v6 10/10] selftests/bpf: test fsession mixed with fentry and fexit Date: Sun, 4 Jan 2026 20:28:14 +0800 Message-ID: <20260104122814.183732-11-dongml2@chinatelecom.cn> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260104122814.183732-1-dongml2@chinatelecom.cn> References: <20260104122814.183732-1-dongml2@chinatelecom.cn> 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" Test the fsession when it is used together with fentry, fexit. Signed-off-by: Menglong Dong --- .../testing/selftests/bpf/progs/fsession_test.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/testing/selftests/bpf/progs/fsession_test.c b/tools/test= ing/selftests/bpf/progs/fsession_test.c index 5630cf3bbd8b..acf76e20284b 100644 --- a/tools/testing/selftests/bpf/progs/fsession_test.c +++ b/tools/testing/selftests/bpf/progs/fsession_test.c @@ -180,3 +180,19 @@ int BPF_PROG(test11, int a, int ret) *cookie =3D 0; return 0; } + +__u64 test12_result =3D 0; +SEC("fexit/bpf_fentry_test1") +int BPF_PROG(test12, int a, int ret) +{ + test12_result =3D a =3D=3D 1 && ret =3D=3D 2; + return 0; +} + +__u64 test13_result =3D 0; +SEC("fentry/bpf_fentry_test1") +int BPF_PROG(test13, int a) +{ + test13_result =3D a =3D=3D 1; + return 0; +} --=20 2.52.0