Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp863862rbb; Sun, 25 Feb 2024 07:24:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWs7TQjzSIIVKlhOpQdhPrwTeaWdLXeQLgziTj0hQ21heElDHtOci2/N3Ot9W5VjW0+5UTs6ahMfcGpNNnioY6To8CyvqQ2ri/BOEAVwQ== X-Google-Smtp-Source: AGHT+IFqfFbsjRiMsvRfwPmqFBy3SX12avU8EPUp3tPQ1xec2L0+g3Wu7M5MLRIaWl7NyIesy066 X-Received: by 2002:a05:620a:4485:b0:787:ccd8:74b7 with SMTP id x5-20020a05620a448500b00787ccd874b7mr2262591qkp.49.1708874656738; Sun, 25 Feb 2024 07:24:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708874656; cv=pass; d=google.com; s=arc-20160816; b=Jf3ndupBa9G+ynOy1N+uu3+xyIFSailp3khlfY/02aEg7ll4SrbAgzbT4xl6mQ5P1N 7oXWGOXTicsDZePMtjquV1y75rvdBmwivk63MfKP7AUJ0AAsxy4/5exWgVpU6VKlMzFm HnGL74SG6YRow6dsg2Qx/9wNECutxNWyeCtV1VxaXWdgSY6eqrZ7AYPwaJPNoXkpvfUi x1XgznKv/c59MefERoQ57WPR1yIAAsUlTk6EeaJPIMzBuvPelW63Tijm3WrEoxpH/m2K ju+UDX3jqHO9DG5Zs1jsMAYsJo7BqU0gdvoaUAf119rSztqedYzvFSZSmltzshPBMw/Q 7+Yw== 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:user-agent:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=mV5TwTTFofo7Hr0MUgPsm9fSGisdc/rZSPC/dKdQApI=; fh=SIgps5XdV0XNwjZfT2uAI7g3mrspDldK9Qs8qQAfoa4=; b=Oh1Xz7SevxZYpYNL8ijsTj5ilH3OIzGxfjLVwnWUZGSJat6LroR9tXquN60tWmItSY Pae7MKYoyhngPqIalMcQ0BIti7rPT+SrIDXMrR6v56jRen29snsr3ZHFOZXN9dlBee9X SbhGZxOPNnVG8RHN/s/RBgC3H+0bijbrpmnOLiObzouA6tBOu9w8+c0ykM7/RlhPlTyQ 8NVGOp1M5Yqjdn7kFukyToKxw0KWLFuylF0qcsy/nBiayPEzzJZnOF9Jyi/GBmrAqfJy sObq1Hmleap737p8CDyYzYiXnvpbu0Mu6xBUwyeLTN4U62pH5r0xre0uYzdGqVQyZWti H7JA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fw1AueGR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80162-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 wl14-20020a05620a57ce00b00787b118c401si3158415qkn.96.2024.02.25.07.24.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 07:24:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80162-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fw1AueGR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80162-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 7A7F71C20F1B for ; Sun, 25 Feb 2024 15:24:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9348119BA5; Sun, 25 Feb 2024 15:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Fw1AueGR" 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 B1A04200CC; Sun, 25 Feb 2024 15:21:21 +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=1708874481; cv=none; b=W61gRgG2DUdKeWGaVawg1czybVbA82ty6JOvvhuNOo+8RTyfqOKtibUfZh3YHfxbO50vzHd9DD0dBXo1dRoCNJ8yYvpiLOclDvtGL96PZY/6mJoAbYVHEiSuMSycaqKAufTieLqGcHx45ZZ7GQieCaOjt7LSwF3FFaAUpoxUyEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708874481; c=relaxed/simple; bh=MTl3WOEWmkU7N1ZYT3IdZA3wW+cclx8nbkw1UKe91tQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=JkSjyWCEg2G5AV7gW9H5uR7DwhUxIKhAJF3ae8VCg68R5eRdYOzXcCoackOuY9SEaVNhV6qWMWglCpMHU339Wb3zGIY5yFWlSzfCy26szk9kcMsY3J8VRpWJlb0cEX7tg4Xkl7n7f1+crT2vCXMzNhDd42wHqmqNMxlSET0MXC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Fw1AueGR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3598BC433C7; Sun, 25 Feb 2024 15:21:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708874481; bh=MTl3WOEWmkU7N1ZYT3IdZA3wW+cclx8nbkw1UKe91tQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fw1AueGRb2KQmS61rUO9jknGuHDwBG7LcUOwLUQUHYxY2vuhuI7l07Y/sKsT5cqMj dM/eVnB3YOBaj0zV2ggmDgTaptZjsfX+vNMnCLgYlNJMegoM0vaXVk0dOOV5ZFMy7i QVkgOZe+IgCDx6s5VBJcJkeiXg+oM1X0BnYDhAzkJHRxMKSVDMMn9G+S4MwW7MX5ks 3j7k3wOWvB0Y+TyW7/CJGuWliK2KJjwpA0ZgULriTmNZY2oS5Qm1ntlGP2981Z+GqB NBdEpF509lKjTCUu0W+jxulY53nLH0CYEduo62LFOQ5tyXH6BhtH7EY6rlcWDZjKJr CJwbRU8PtaN2A== 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 v8 34/35] selftests/ftrace: Add a test case for repeating register/unregister fprobe Date: Mon, 26 Feb 2024 00:21:15 +0900 Message-Id: <170887447585.564249.7419303589804062497.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <170887410337.564249.6360118840946697039.stgit@devnote2> References: <170887410337.564249.6360118840946697039.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: 8bit 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_remove_fprobe_repeat.tc diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_fprobe_repeat.tc b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_fprobe_repeat.tc new file mode 100644 index 000000000000..b4ad09237e2a --- /dev/null +++ b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_fprobe_repeat.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=$FUNCTION_FORK +REPEAT_TIMES=64 + +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