Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp92585lqp; Tue, 11 Jun 2024 16:11:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/aFpXU8j+FvfzUtjQDaOGg3TRjyUPuaBcwrtvwUvJTGvftCujVLgCgrIRPjIL4XrYeUJAZ4TxSggkdzQ/Mcf/Cn8bniJiC66k1Cw5zQ== X-Google-Smtp-Source: AGHT+IG2IZgv6SxQ/putwUE0S+ug7c5qcwrnWHkhci/dD8G2AhebVOPeWU6D5Ocu1w7r2ySx5YNV X-Received: by 2002:a05:6a21:99a4:b0:1b6:7a70:d46a with SMTP id adf61e73a8af0-1b8a9bb45bcmr460042637.18.1718147475088; Tue, 11 Jun 2024 16:11:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718147475; cv=pass; d=google.com; s=arc-20160816; b=ieESz610PcmC/1edCkV4Vns74GkMdWDr/vjJLKDFe+ghxChBuSGWKXdx4FSPvENh1j gH5mSyMqFQEOl399FreVEByJOXtnUbeDJ8wGLEqOH0p6lhOSmu0z8sNL2ZIer58F89xH ECEsDpVVZuLTOW0cbkVKP88BpEg2nOiyiHw7dlWJmHFCaa/FUB3gwaU4L6+nUWQ1QxE3 oT6UL6uOe5gBc7uLEAQhDDYE4QaAH5WDvdt0u2Pp5zI6qYTnRgL4vWLtlvjJnUj8RQ31 ALtWRofpRL6p2ebJ14GejqMFbWNyrcSikfYkI260pkgYk/3zP84PfmAykIkWZzkNIzHG M/9g== 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:dkim-signature; bh=t35k9eYHV3upIaZ83iDJ5vPGpRl5OvVG/eN0OYgYmvY=; fh=Bxm27zDBVIDivezMEq4j3k/WorpWi0MMMGiFopD61OE=; b=YZaOgVwPfWeeAmBoVt+/TuDFcDkWUrGEQApSxtCpZIlfWelpvvBf/q/ZGt0yVlVhRx fgUtToIjAap5wnHKB+EmCbJBfI+Lwv4EmHp/fCZj9CJELHMTKEC317zAg9r5I/5gz0g3 2fjuvxQK0ieF0dlHX65yHZ+qIuzEXYsuxpzutsFfte2JlgTI1FcYSIukulnzuSzVzpGt GgAybDAQQSucYCLv/W53U444Ui74EkZl5YCriY98xFUrbRYRotUJzkPAfnplN1UExPBU 9wRaNY0aF1iu5QSxtCV++KuSdqKsxR3/s0h5Gdyy4j1Wx31Ein+ku+oTbblCONTqKMak +Ylg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTAkRYBv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210694-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. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a7729ffesi226925a91.166.2024.06.11.16.11.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 16:11:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTAkRYBv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210694-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 C129D286EEC for ; Tue, 11 Jun 2024 23:11:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4688A155CAA; Tue, 11 Jun 2024 23:11:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XTAkRYBv" 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 6AAAD1553B5; Tue, 11 Jun 2024 23:11:09 +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=1718147469; cv=none; b=WMzZ/qS/aFhH7oz6EY7sI8v1HbBiAwCDzWrqavEqFqnr4GxRLYVYqIOZwRoTfoMPXbL83LT4ybzdGDMpsOzqzZWtAJeZptqUnoi5wmS9lLisYQ9/jE3fIKQzBB/LXEAtCg1DilsbPPS4rzR5jlx7cDg6PXtekqPWvd17P94ip4w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718147469; c=relaxed/simple; bh=xvhHnmrvk2xymlEu8vY7mr2+y/6ekkGuhOrg4CBKlP8=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=E9nIV04L8WELH2Mt+0Hrkx3x5vXRqVLlrUx6h3VnZTbCfea0OepLd5AG/hRfYwoi0MfUgTLVfPQRmg4r2txTZMlUpbAUSAF1e5YGjrZJVooVw7Hh1H29bIt5lM6ahZUXGe1hBrkCzw7lKfzulxeRjBIzlTqOK0PR/Jq35eAUoks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XTAkRYBv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C3C7C2BD10; Tue, 11 Jun 2024 23:11:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718147468; bh=xvhHnmrvk2xymlEu8vY7mr2+y/6ekkGuhOrg4CBKlP8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XTAkRYBvY4usQZ1W9lbEwH6Oq1EacduyFVbTLlRq8gqTA/md7WwGZYBNd7dXLg3xF CoK1FlGCIPAeBgbwvECqh/2dp76E8lXcsA/m7uiDW5eMiGZDkHdZ9eA8eulfDr8Ptw Zoy3iqRjnUj7XcgKwwSneerdLxhRvFO1dk7Sh9k3tkw59G4UKZPtu4lBxW0Py9Qx0M 0NksLUFEMjApmnhlI7DTfzci6KDSJwNFGLa7/yQP6myWaKzBS/jzrYB7vwPcS+uPeQ Qh2B3DqbwgmQymY5V5zxJ0pLk1PDM7m1wTpjIeXdHQKbO7xR1+oxa0erpUHulgcK6u apYQlUa3sQ1MQ== Date: Wed, 12 Jun 2024 08:11:05 +0900 From: Masami Hiramatsu (Google) To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Tom Zanussi Subject: Re: [PATCH v3 3/3] tracing/kprobe: Remove cleanup code unrelated to selftest Message-Id: <20240612081105.7fa1280d38e57d2fb0905e80@kernel.org> In-Reply-To: <20240611102500.27493dd2@gandalf.local.home> References: <171811262833.85078.12421348187962271050.stgit@devnote2> <171811265627.85078.16897867213512435822.stgit@devnote2> <20240611102500.27493dd2@gandalf.local.home> X-Mailer: Sylpheed 3.7.0 (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 10:25:00 -0400 Steven Rostedt wrote: > 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) Thanks for review! > > -- 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. > > -- Masami Hiramatsu (Google)