From nobody Fri Feb 13 11:10:51 2026 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 6C71C71743; Mon, 15 Apr 2024 12:55:43 +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=1713185743; cv=none; b=cERI9aVFVa527L+7VGJBnxb1NVkxIWG6FdRCto7DBU7nPwxm6wtlUzGACaCioW4Y0xfl06fwYZ3Ufo5SjsR3mUGi/+1nItMeEKjsTJumDo20GGqEPZf+5IPrLgmsNyohuz/X0TZsueyCaxV51L/wI/IzHQW8HgSFNusq76obzK0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713185743; c=relaxed/simple; bh=MTl3WOEWmkU7N1ZYT3IdZA3wW+cclx8nbkw1UKe91tQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=gtj1zO+MkajHjoOaqb+XIGElj+NH3nLS3RfEzS7YXwZckRzT8p4QFCWTE7Bd+cIa5bCwqrO3jVeTVcEfacM3c2HKGMiRumbFdunAqKVEPzSB0H9PE8avKTgPGYsdNmPA4GE0tpHhnlLKNlecpKJcNfS3JREOfaIYVt7gxywrAo4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aWYJJHi2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aWYJJHi2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD880C113CC; Mon, 15 Apr 2024 12:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713185743; bh=MTl3WOEWmkU7N1ZYT3IdZA3wW+cclx8nbkw1UKe91tQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aWYJJHi2t+orKfhSNG+IHnPiMPNkzL/ZN5HnX0rTTbuOteeJGbTfKNLKwWJiW6pzG kKyQayGbu67LN4s6HBEdn0SzzXwwvm+dpcFEUIW3WPFxKbGlHnxGzXFnWgDnP0U3Yo wEMGwGCeKrpgE64cVbgCVfbbphs+D2PZsXxZPquqqBZWL3DTYBd7w73nwknbKxNomX ObOQ4s5oj83lqLaSevWNPMGM9K48chCMvt+41QUVWnGp8Id38Dn67X1Ga+RiL2MAzt ej/zqpP8nhBkFBxQdUpESkcIxZxU/IoutM83qz1x+Rx7CZ/PQOubx5Q3KpPPZerwYF 4qOVUwQbvkwAw== From: "Masami Hiramatsu (Google)" To: Alexei Starovoitov , Steven Rostedt , Florent Revest Cc: 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 Subject: [PATCH v9 34/36] selftests/ftrace: Add a test case for repeating register/unregister fprobe Date: Mon, 15 Apr 2024 21:55:37 +0900 Message-Id: <171318573735.254850.12911788069293216933.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <171318533841.254850.15841395205784342850.stgit@devnote2> References: <171318533841.254850.15841395205784342850.stgit@devnote2> User-Agent: StGit/0.19 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="utf-8" Content-Transfer-Encoding: quoted-printable From: Masami Hiramatsu (Google) This test case repeats define and undefine the fprobe dynamic event to ensure that the fprobe does not cause any issue with such operations. Signed-off-by: Masami Hiramatsu (Google) --- .../test.d/dynevent/add_remove_fprobe_repeat.tc | 19 ++++++++++++++++= +++ 1 file changed, 19 insertions(+) create mode 100644 tools/testing/selftests/ftrace/test.d/dynevent/add_remo= ve_fprobe_repeat.tc diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_fpro= be_repeat.tc b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_fp= robe_repeat.tc new file mode 100644 index 000000000000..b4ad09237e2a --- /dev/null +++ b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_fprobe_repe= at.tc @@ -0,0 +1,19 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 +# description: Generic dynamic event - Repeating add/remove fprobe events +# requires: dynamic_events "f[:[/][]] [%return] [= ]":README + +echo 0 > events/enable +echo > dynamic_events + +PLACE=3D$FUNCTION_FORK +REPEAT_TIMES=3D64 + +for i in `seq 1 $REPEAT_TIMES`; do + echo "f:myevent $PLACE" >> dynamic_events + grep -q myevent dynamic_events + test -d events/fprobes/myevent + echo > dynamic_events +done + +clear_trace