From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-183.mta1.migadu.com (out-183.mta1.migadu.com [95.215.58.183]) (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 24D5A84039 for ; Thu, 4 Sep 2025 01:13:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756948394; cv=none; b=s3qaTiMHOdojsW7KbpcKJpOJfnSQe5t1rEIUtBtoUb5tNjbRK8OzGqtjpVqwGk4qod4W1g60C4h4mpt16DA2qKvlXOgDqTusL6doruvMQdn+3vmQkDiU1fZRF1ORKjIoQ2HdXFOPVA0Jo60X9SXcNB+EZT6bGSyS+FDta3tcJhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756948394; c=relaxed/simple; bh=EztcU3I2jQu/JANSrFiQs6YdssHNrEuZtzcIEgzOo50=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YJzDPOpq/gATH5NAqDq1HYXzHU51mNdEmTAh5osR8Sz+mjMQ7omCM+cQFv56lxqm55jg1Ok28xhtMvYJPi20K43GOpGxVSxBQ/6ZcfjDQyZk2QuBsApIG2JOWg5yuUhi4ZOcCqcTrLS8WIBsQXLby3YZ62QYa91kLzURLkWopaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Kfue+q4u; arc=none smtp.client-ip=95.215.58.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Kfue+q4u" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1756948380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T/YdEdpdY6Oro8d1rFM7+q7LaJ8Hyug3oWsbG3ERi6U=; b=Kfue+q4urULTY/Sv4Jusx10FkSy7wsftg2H7iFLQgu5BAnzsUwZKOliqNMWYet95ck94M1 RFN69Bwv6howDbyF2Jy2bnhXr9ZmDxmRUSfzcPkuwxth+WHLLSi98e44xaggv9GmNITXtG KBMnAz1skKwEZTrZaKmvPE3kigtD/JI= From: Menglong Dong To: Menglong Dong , Andrii Nakryiko Cc: andrii@kernel.org, olsajiri@gmail.com, eddyz87@gmail.com, mykolal@fb.com, ast@kernel.org, daniel@iogearbox.net, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, jolsa@kernel.org, shuah@kernel.org, yikai.lin@vivo.com, memxor@gmail.com, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next v3 0/3] selftests/bpf: benchmark all symbols for kprobe-multi Date: Thu, 04 Sep 2025 09:12:18 +0800 Message-ID: <2797578.mvXUDI8C0e@7940hx> In-Reply-To: References: <20250901034252.26121-1-dongml2@chinatelecom.cn> Precedence: bulk X-Mailing-List: linux-kselftest@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" X-Migadu-Flow: FLOW_OUT On 2025/9/4 07:50 Andrii Nakryiko write: > On Sun, Aug 31, 2025 at 8:43=E2=80=AFPM Menglong Dong wrote: > > > > Add the benchmark testcase "kprobe-multi-all", which will hook all the > > kernel functions during the testing. > > > > This series is separated out from [1]. > > > > Changes since V2: > > * add some comment to attach_ksyms_all, which notes that don't run the > > testing on a debug kernel > > > > Changes since V1: > > * introduce trace_blacklist instead of copy-pasting strcmp in the 2nd > > patch > > * use fprintf() instead of printf() in 3rd patch > > > > Link: https://lore.kernel.org/bpf/20250817024607.296117-1-dongml2@china= telecom.cn/ [1] > > Menglong Dong (3): > > selftests/bpf: move get_ksyms and get_addrs to trace_helpers.c > > selftests/bpf: skip recursive functions for kprobe_multi > > selftests/bpf: add benchmark testing for kprobe-multi-all > > >=20 > this doesn't apply cleanly over bpf-next, can you please rebase and > resend to let CI run? Yeah, I just notice that. I'll rebase and resend it now. Thanks! Menglong Dong >=20 > > tools/testing/selftests/bpf/bench.c | 4 + > > .../selftests/bpf/benchs/bench_trigger.c | 61 +++++ > > .../selftests/bpf/benchs/run_bench_trigger.sh | 4 +- > > .../bpf/prog_tests/kprobe_multi_test.c | 220 +--------------- > > .../selftests/bpf/progs/trigger_bench.c | 12 + > > tools/testing/selftests/bpf/trace_helpers.c | 234 ++++++++++++++++++ > > tools/testing/selftests/bpf/trace_helpers.h | 3 + > > 7 files changed, 319 insertions(+), 219 deletions(-) > > > > -- > > 2.51.0 > > >=20 >=20