Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp106938lqm; Mon, 10 Jun 2024 14:27:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWH0h9TFgJfwC+jS+QxqPU/eXyIxob6KVUK3btU6ulujUv5JwG/FfZifYkc1WLMMMADRvDZPmqLA4lUFpNrGlreuY5wQBstOs+GPlInOw== X-Google-Smtp-Source: AGHT+IFayqQTVxnL3rS/cuXPTlx6BdBb9JeKFhncMNDT5tLWC4voDa4UpkoaK8+zvT3Y3GC9zLcn X-Received: by 2002:a17:906:f9c4:b0:a61:9c28:f172 with SMTP id a640c23a62f3a-a6cdaa0fa7amr633097266b.51.1718054838911; Mon, 10 Jun 2024 14:27:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718054838; cv=pass; d=google.com; s=arc-20160816; b=uPz1SCW2DEpUZC8z4Nx5Ynf9vnjikIsAdwbzb3ioetA1qZ3bP/OsZv6D188Fv/iRQW jhJKqGerqcsQLZe8UNc6Ka1KUdRJF7aMQqP3TOM+vx0CAyECweJ2eT0DHsaTE327fP2S IGcf9j/uKOwqREUUsD9NE76inYJfkyRgcwBwxsWViIJu3/EDhzVxDZ/lmWjkL3DTphjp SVcQjgFuvbZL7wCJd7XHFVusOf4Ab6m0GW03gC7yPF5Jor5ZcG3tsakQDfc14bSBMrou q9H+HHRvyqNPyr/c8kUiG2sPfA2UMKu1r56QotxUTvlZHFRJAdMQc1h+LHCvfsytKGCn rGpQ== 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=dEqTGrBjo8DfWN9dcCaauq20yfy4jDZEjqUbnJq4yWviNN6dhNUJXkaZmHHIWn50vC uCicmKf4IW1V8crReK+TPqbQOHCCZin0oEezGRfRquFtNN9cdB/u72h0xDtSW1uNERqS a/3nM0lOl8MuIT5HYtts0Rm1/pUWQWZKV93Gm9Gy4nmGQg22hEdVf1OJ4TGPBptjs77o lfeG1PXVoPBlu2Lc9fv5osZ7cmepy+bo9CA57z125T4a3TQpAr91X4dEtjPEdTWj/GZD 8ZwqsciX3VaVpZSMa4SoOHAZj37QZ2/+6Mrq6IpJ9xmdK+tYiLR92ipMbvSfoytolNJY vpuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KZZGcinO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-208914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208914-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f12bb39b9si210197766b.918.2024.06.10.14.27.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 14:27:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KZZGcinO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-208914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208914-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 82A3B1F233D6 for ; Mon, 10 Jun 2024 21:27:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DA516F30A; Mon, 10 Jun 2024 21:26:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KZZGcinO" 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 8FD906F303; Mon, 10 Jun 2024 21:26:57 +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=1718054817; cv=none; b=MQu7KQ9MDsarjTxK0pCQD51EJ7C5EP0vSCgPofEqyGfOoU0dgTiUfR7ES/3grE/aRy56ePvcGlaeGh5DgcKhcxAuncIfMHl6nPIoj4Te340fRQuqlDmF+YPVdAHoyBv8J5wuFjpxDFC7tufWhiW/aA1WBEBADAwRZKkig/P2Qww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718054817; c=relaxed/simple; bh=RiDiiRL4D9ZYJMcdrUXWd2Q9FPZ3gwM3t30z+w+Axb0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=UoJAp9EIfN5UCZlMsVcD6OR0DrqlEXtR0dbFBfPpoIJLR4trraJhoH6UVI+61GubVpP451X+/9Wljp/x5x5DLJgRIVBdJjtep5kC3oNaoBge3RwMrAlqVKTgRIhUNDs1VcZFz7WiIFlG+OUR5ymv4r0uElU0km8FoEecmcmztx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KZZGcinO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD8EBC2BBFC; Mon, 10 Jun 2024 21:26:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718054817; bh=RiDiiRL4D9ZYJMcdrUXWd2Q9FPZ3gwM3t30z+w+Axb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KZZGcinOBeX/yub55aZO3L1pdptNHFAtcBw12B5aDJvjHIvNE9Y1LLJswmEuI2fan haS6N5HtCUVs/OB1NrqHeRuEBN9BMm8wKuVNil1c6Won67BlKrde2eng41RiVMLjSy 7H5CCUN2wdsW++d7RVgxN2wKrPb/t70lGKMhQ8HesGP82aaWs9pvc3o9C9oLLUHoJV jACjU3mc6GV7i75iLIf1FRF68764rywrQGfRYi/ui6NOPLvWqGJhsx+/KB+Eb0QE01 S9juSyKB2K8CCFBlU+THeJTIy32TWvu4MM4r94r2UJcMaIGQYDnvFOz72XpjOohipG b7CYPCoAxBtyw== 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: Tue, 11 Jun 2024 06:26:53 +0900 Message-Id: <171805481328.52471.14726358281044398289.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <171805478534.52471.6269290579314514778.stgit@devnote2> References: <171805478534.52471.6269290579314514778.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.