Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp350147lqp; Tue, 11 Jun 2024 06:34:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlfkqGUouFjRtZ9HCrQ31/uchBadBSYxw/X+b26T+HUfFISRnaggWDThn46W7lRvSzSDMzaM6pIXuUi+1SB5bC5BQ4Lii/VQIOUDoApQ== X-Google-Smtp-Source: AGHT+IE6q4uNFCVj/DXiICaDgSdSFWIktcfMRmq3a2MUgThBZiILBie9LYpBacVW+wn1736PJipL X-Received: by 2002:a05:6a20:9f8c:b0:1b6:f34c:95b3 with SMTP id adf61e73a8af0-1b6f34c994amr6113976637.59.1718112880587; Tue, 11 Jun 2024 06:34:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718112880; cv=pass; d=google.com; s=arc-20160816; b=PtuhxzFmUmBxXIddJxN8s+dZLMdwqIEt23AweKF9ubobcbKvUTrQuAbbxWxLXWn+36 s8IG8deZME0pXiuwHsGFbRc+ghwO/EjQIHFWKVKURQ1+hHaUXOj2ZAwALKMpcOWus5yN //ARcRCEEEaD7FLzt+Xshqd5dh4owfr469ZlgtHE3jmiytdzZs6YnaVA1dMwmNp5uG5t qg/XGGemoB2qB4ELTuQEjSyASg7PQcigQw/Lkr1kcDo0/hHdiJc3YTfvBUEbcECB4VKB twsUMw+ETX4jKlflCSBaVEQEv0YaPHP8nO7jwBJIKbceOcZhgF/nCAjIt1JsMDRFAONu 5VNg== 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=5Qtam8Jruq1DDtMsBtUBWnm+x+YVbhzUgGZ9KJ1WOe8=; fh=OXmnF2IabCVhttS9M0uF5EzWe+EI+vV+JgHilYyZTJA=; b=ccZrimCdBrE/tLetFzqnreM23PBrkH084ywvGvAxxxCNCsuWZezigZwe5XLFBbHXe6 yy1jOQvRfnudxjIBjwRFXt3Jx+468NffqnE9RDdS/pLW0PBMaIWBZ6Qeemfhpri2lLCh 7fkmU/0IuwmkPsKueeZgWUzCS22E5TiLgOG+R5VuZ7vryeY2MnKFAS2CKuKzZn/2Py6K o68vpT+e+K6q4W7qI1j5+IF8qNCsI7jDtZI0/V7Xs8+8041NPqQ9DPEnq569qafLIaqu BKzag9RrAVm2WWuXsbEr8WLiQGOB0iTsogdl6Ha8ib87EAJWRI8s4lHVHARYh8ik5Ewo jxuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VQtLE4Z/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-70417cf3775si7281909b3a.268.2024.06.11.06.34.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 06:34:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VQtLE4Z/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209960-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8B9912899F5 for ; Tue, 11 Jun 2024 13:31:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC71D17CA10; Tue, 11 Jun 2024 13:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VQtLE4Z/" 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 0E6221EA71; Tue, 11 Jun 2024 13:31:00 +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=1718112660; cv=none; b=o4811k7Alcaw7i+m0tLTySKCYyx45j7TYr9dVej3/euo3+eOx5yHY4kxO7hoUUvBD8Tp8uBcl3sVxjD/c8jAb9/y+W5jWN5NIqDHRUr8WzMtPMG69gyYXgiOpm7OhnN4FeKgJWcEPgZD05jL3MlJ9OIosfV0hRbJtvnbfTc803E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718112660; c=relaxed/simple; bh=chQfDDDwE1HHIt/Tao3ujNwT5+s91AYPvAT7zRChhQg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=BATvht8dxWzhGXAV8TzNS0R41j/wx6i8wrmaydJXcdWwHKq0OcAazxAHG5aotJWovjD/IkWLPHHWgGCOu1W60d9L15w0hydIAdW0fLJ1q6nRVN/lwn2Tdvkh1j6IZumZW3/IZKMpZ8vxWKjh4UfQD1BMHoVDY9f2BEwRAMK/ey4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VQtLE4Z/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C88CC2BD10; Tue, 11 Jun 2024 13:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718112659; bh=chQfDDDwE1HHIt/Tao3ujNwT5+s91AYPvAT7zRChhQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VQtLE4Z/ukMuGnfHUBZAyuLG808oDUiXw+fyvmn5mrMAtvsRmap+Z2s5Lz8LQ5+wO Zw3aENhdaIy/jjbbIqwST6xYu2TkxYUV5Ez6tg6vAtkpbiv1Z2tFshwqbFAxp9CdSE S4TC2JvLyVADhQc+JBLSh6j4dyXJRKeiAA1Ny5b0kcH8iI2VxSWByLe18zXj+NaNgb fmHQGwLOqnW+/v+Vvy0P2y7YsCNojnBfs1SkYdV6ikDeKNnm3MkbcOec05csLv0Vps nm9TT1mVj+bBB/pxS657kz1kFLJf2lgM/UPiPun6eFdMr8n1ZiCRWUYifWSNwsSaKl 3zu8720wUHJMQ== From: "Masami Hiramatsu (Google)" To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Tom Zanussi Subject: [PATCH v3 3/3] tracing/kprobe: Remove cleanup code unrelated to selftest Date: Tue, 11 Jun 2024 22:30:56 +0900 Message-Id: <171811265627.85078.16897867213512435822.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <171811262833.85078.12421348187962271050.stgit@devnote2> References: <171811262833.85078.12421348187962271050.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 cleanup all kprobe events code is not related to the selftest itself, and it can fail by the reason unrelated to this test. If the test is successful, the generated events are cleaned up. And if not, we cannot guarantee that the kprobe events will work correctly. So, anyway, there is no need to clean it up. Signed-off-by: Masami Hiramatsu (Google) --- kernel/trace/trace_kprobe.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 8c5816c04bd2..7fd0f8576e4c 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c @@ -2114,10 +2114,6 @@ static __init int kprobe_trace_self_tests_init(void) end: - ret = dyn_events_release_all(&trace_kprobe_ops); - if (WARN_ONCE(ret, "error on cleaning up probes.")) - warn++; - /* * Wait for the optimizer work to finish. Otherwise it might fiddle * with probes in already freed __init text.