Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1481809lqb; Sun, 26 May 2024 03:11:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXC3x/hbVO6jdePoY2cM/nH502S3l/767kn/XpDqSOfAPQGzMLEenRCl2sPAXnJ1krFA0lRpj5HW2hoCvGrGPMUQ41MjsrBH+h6t4lnmw== X-Google-Smtp-Source: AGHT+IFWxBdzlApK1vIZ41MJ/fJxGpG9AniKb50mh3QxSmAsX89Rbf+VLXROwEnHWBKHJEnzvfwu X-Received: by 2002:a05:6a00:6c9f:b0:6f8:ec8e:a273 with SMTP id d2e1a72fcca58-6f8f38f9588mr8119415b3a.19.1716718305186; Sun, 26 May 2024 03:11:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716718305; cv=pass; d=google.com; s=arc-20160816; b=pDqC2TrR27YswDxGSNPP6wSbfyg68R0O2Wu5gsr3WLExP1atE3yHSPYlFFIz9YsER+ AQC0edRjHCa3cunoc3jcHR9oEbb3bKnZpesExUcysu4L4Sir9YiW4c/+paX/JsPOAp1E BhLVkhvNH3iPYV/bNj0b+2XLc30WUKm3BOtjeZ0dLSYBTn86tRnD5YrkhcIEx1GNF9Uc Nfp7TYsu4MbR9p/Jq978z6NG/0q5dF1rZPNxUTgs/pARhlkuK0SC4OcAozFJlYpdJGAU 31JirfxUoDGAw7mtiJ+QvnwzQS1hD7diFE7jJGS36x/YpFqN5jpIjWc/Co7Fcr+nMSwh WqNA== 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=YLtlOhra0/ZTDaaMhKfAKfxIdVDa06OKQVWU1H1tot4=; fh=OXmnF2IabCVhttS9M0uF5EzWe+EI+vV+JgHilYyZTJA=; b=f70UEkkaVWnuN9DpQo5t5wRy4DCRL5qzymiYLrK5WNe+PoFWNtlMjY+pvVrdMfadnz yAKxGj7K0Gymgnfawi4X4o2poxMJarnPEujlHIkiFamAz2+MWRT/jTLBDZBlxu0lNLEZ re/LZmr9lMGRbeA8kMcdHehEIQN52CqGzwtQ0OUDPagVNefOTe1kZVW7QL2Xk6J/pRTr /FEPbu9r6P/oImbVu1PjH+UVovudHN+ZgLD4hECrAWJPKP+ke8UbDo4SYre5OEy7jKFo lS6lNEvhb2O7QRxDOdsL/jCXBEl1YJvqhZm80jWQkk/th6pQ+l4yITHaQ9bIalpAFsEY GSPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uRFXsUd5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189710-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 41be03b00d2f7-682288e7a30si4363668a12.518.2024.05.26.03.11.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 03:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189710-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=uRFXsUd5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189710-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 B9DC4281360 for ; Sun, 26 May 2024 10:11:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E963C8DD; Sun, 26 May 2024 10:11:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uRFXsUd5" 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 34EA4E572; Sun, 26 May 2024 10:11:27 +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=1716718287; cv=none; b=evlGDnCAo7rxdeLWqqYDScFkecvsXpCFGAB9bHOWIfrsyDTJherCxAEK3plskgn6LiUEMMXblW7MQ4FzoWRA9l/9etL6653mxrxiDBx6tAw8xwDNrfVDb9WUQ8avT3WXBdpNhb7FV683+X/zqHwR7KB+AjmGvD9YVP2iHe9lgtc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716718287; c=relaxed/simple; bh=RiDiiRL4D9ZYJMcdrUXWd2Q9FPZ3gwM3t30z+w+Axb0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Hc4kfbI6FCCp66T6s8d6ORCgNhlbYu4HH/WHGviHDyjdx0zMCObL6df03zyI3nplRqkYl08PA4XRL8ZTEzgpZHZ5MZ1PYPKDUXn/bJQggtSG5GVDo8BL5GAqkiiWhMfX2WFIcCcFvkJVHXrCv6mVbCGUx7GnQqC+W6ONv1bjBdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uRFXsUd5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7F92C2BD10; Sun, 26 May 2024 10:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716718287; bh=RiDiiRL4D9ZYJMcdrUXWd2Q9FPZ3gwM3t30z+w+Axb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uRFXsUd5iaQ0e1CD4VyDidVjGIpHr+UQFLkCZqKFg/YABE7Evvp04U0bgcMQAWqLW Snb7/AEsNSwE8sJI44rxLvWfRZt5slxI1EkREL1hC5l8uXTkY4vbkVbdJRkAZsXVTw 9rhZ6ys848pS7UhB0+9D68801I2NI6UtzHxlu6g5U3paSVdzxO/SX520r1Nj2gGEJa 5FlhF1ILuyNGGUMDL3mDB4Ex6kLSNuh3aacH4U7uJscvLF/bd/zJ2E5lWPekMt/+0n NKyW/KNzo/8LI663Y2TY/3zGe2OvYHKfxG88fyrVH/sJ/BxB/Zzr5Vct0CcP+zNNC/ 19I+vXqm60K8w== From: "Masami Hiramatsu (Google)" To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Tom Zanussi Subject: [PATCH 3/3] tracing/kprobe: Remove cleanup code unrelated to selftest Date: Sun, 26 May 2024 19:11:23 +0900 Message-Id: <171671828374.39694.1028722916245719966.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <171671825710.39694.6859036369216249956.stgit@devnote2> References: <171671825710.39694.6859036369216249956.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 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 4abed36544d0..f94628c15c14 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c @@ -2129,11 +2129,6 @@ static __init int kprobe_trace_self_tests_init(void) } end: - ret = dyn_events_release_all(&trace_kprobe_ops); - if (ret) { - pr_warn("error on cleaning up probes.\n"); - warn++; - } /* * Wait for the optimizer work to finish. Otherwise it might fiddle * with probes in already freed __init text.