Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp385404lqp; Tue, 11 Jun 2024 07:24:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlok6aRjj9TWCXE5lm2b/rW1B4mXiq6gq3u7vem82Thv4jJsfYZ4dzER2dNKhX1m0J5VXTNYbDBuBghtiN3GCUUMvS2qkBjew198ZPzQ== X-Google-Smtp-Source: AGHT+IERZPK1S+T4eD83dbUc5FPgdTZxlJcem7iZx6DJ7C0gxpEOVs9iMSmBGP2OKzwXWki22or9 X-Received: by 2002:a17:906:2b57:b0:a6f:1d8c:f22f with SMTP id a640c23a62f3a-a6f1d8cf68emr414476466b.26.1718115893834; Tue, 11 Jun 2024 07:24:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718115893; cv=pass; d=google.com; s=arc-20160816; b=DLnlQkH5LEYNpcJ7kOgT9NojlH2FYnlFO+qc/JGelSoi9KWQhHekQqr8TekJMKZWcL iIG3/aAWJH4I9MtllLWyw5wltr9/yIQhn8dGYBYcjKd9jFZc3oifiCbKVs+xpE0HXlMn eUTMl3TCCQEbMfkKICLGY6I47NXZBdkbOm0Uf7WXOpWjX2X5WKFjw152mEyh/8NLBPZB +/jgXa145t1UX6+p5fO9XdaosWGnXq/Mzknf8qUHgKpqNc4KLeJByaQjlV6shKCBbRGb v8vE/N52V8l1QhQk6qWMgDPtpMwmzCcwEJQzD0E3o7cljEsm7xqHBn+kH7mYg3GGiZxe N9xA== 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:references:in-reply-to:message-id :subject:cc:to:from:date; bh=+Lgm3JKA3Kmz4KDkII1IprGCnNuVLxZ24pwcq5yLvm4=; fh=jWedx90aG04v81jZgAk2DtjiPjSqMS52v79a3H+odOE=; b=fU1CwJeT/zimpI7tRKIPd3S+oT02l/OJ+wohSzl/5JAsJ2AMqy3u9ZKs315KaDTRzh u3zDy2P8MKJvSpUTuEWHLUgnCArA9YzkbQoamQYXCnKfF8PzfpBf078fIMTsY6c9jnvj VoHbMJ3aWr1R+qGDkI2rcut0/VvvHGjK8Q31lQfuKy5L/I7h5j/wmuSvgYaGA7BG/YhA e4f5SD4HqmF5W2xe9Fp1Abp7PZhjVTxG8OGxf8/FRMo4wMI8kx2W44tJMKf1asRn/vMe oFGu3ZpbCOa1GxU4aQym4HIBZ596GUgiXEeoTi8H1mWi0x6pu+ft5SBTHVtt7XqzYW+f 2BKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-210058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210058-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f0e51082dsi317341566b.946.2024.06.11.07.24.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:24:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-210058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210058-linux.lists.archive=gmail.com@vger.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 367AC1F234B3 for ; Tue, 11 Jun 2024 14:24:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4F6C17D8A1; Tue, 11 Jun 2024 14:24:46 +0000 (UTC) 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 3AD1317D894; Tue, 11 Jun 2024 14:24:45 +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=1718115886; cv=none; b=AGOF0MD+GiJ2XDtp6VOUvRk4jwVcrDkdsMKolS3/fEjcH4vwRlC+/0kUo8wXMRLufquri/aUZhY/hKtRTypoMW5nNTxBln7Ey6Ijmj6+QPbpVFbOjQPg1zOA1JvGpMQCkBwuNKQsoTtg6yw3AU71pe5xe6YoW/YKeG1MUMkLlKs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718115886; c=relaxed/simple; bh=1CKuk9B0FuPJf1djCoC4PuFEIJtP/VlYB88UvPspDbU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=E3OiIV6DQJ789LVbyYldL4HsCC2gFKGFtAxs2eU0BNSbvI8aZxUtTCAzdEpKP39BFClrzhXU8Hhpr1t+mwhdi5D6lnP+rdGsPQIKjioZPpSl9QoJmaNz+dzMt28ygq8tFaRN3h1EKsFa83Cq/m7Ck4DXob4vCCqjo0TyiLs6lRM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C7AAC2BD10; Tue, 11 Jun 2024 14:24:45 +0000 (UTC) Date: Tue, 11 Jun 2024 10:25:00 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: LKML , Linux Trace Kernel , Tom Zanussi Subject: Re: [PATCH v3 3/3] tracing/kprobe: Remove cleanup code unrelated to selftest Message-ID: <20240611102500.27493dd2@gandalf.local.home> In-Reply-To: <171811265627.85078.16897867213512435822.stgit@devnote2> References: <171811262833.85078.12421348187962271050.stgit@devnote2> <171811265627.85078.16897867213512435822.stgit@devnote2> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 11 Jun 2024 22:30:56 +0900 "Masami Hiramatsu (Google)" wrote: > 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) Reviewed-by: Steven Rostedt (Google) -- Steve > --- > 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.