Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp35593lqp; Mon, 10 Jun 2024 17:18:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXh4B3sj1MFTWpZtYbANLe1XydHuro7+V6cG4Fg5fGPkG6EsdWXfITuSqUAfYE09MKNNi5hXtaXIqF2jeqWHINTx45jFyWutwirzWP4yQ== X-Google-Smtp-Source: AGHT+IHL9MC3+Tu4DQPj3pRvokChxtu67wSt1/4bjC5H9fVBUd6yLGzWXPaDTPo+i6AFQgR5dwgx X-Received: by 2002:a05:6358:3125:b0:19c:31be:ecb9 with SMTP id e5c5f4694b2df-19f1fe3f8aamr1429867955d.11.1718065123439; Mon, 10 Jun 2024 17:18:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718065123; cv=pass; d=google.com; s=arc-20160816; b=rkkKnPbChmHj8rKYQn5BTNocz3UsHsamt76/RjZsv2f6OdA2fCVn86v58e99wvvl3e WouzxummG4TTOwnyeiAjll7E+j+56H5ar+hXEVe7ZTYSP1z2Rl6mDGBDtzG9bEZNrQuc lDfemBXct+2Kg+8SqJl0tn+QcjuRNc/0LRhJzSRuw2iX/VjWWMOK+wpwiKJIf0wyTvm0 1gJUmFPQqcz3bah7Hs1BiS1Sl+5K9FxxxNS97eGm+yvEiwKvbzRS7wUihJTnZWcdqZdq yMX2hPidf2MosZkk6FsqPZ9cDMeHsWSIsZEqKG0fTO14kdyMAPt1yGZe5ceSsjxLszTT GSjQ== 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=YWUR/OVvI3Lum4NyDsk7OzIHx0gyrTctNVb4Er20KWI=; fh=Bxm27zDBVIDivezMEq4j3k/WorpWi0MMMGiFopD61OE=; b=HOFHjJQ3LDi8STZecZbinlmT0R9vy3JlK6xWekf7jFxirwrm3IrY4hEb14z8xPtcwo Iigj7wdgLcn/ZGZjYDHy+ZmsF/4TPh2RLoSTuzwnlayfU15OeW2Xl7F5N2dTcXQWOnLM h/F8MVvRcaMcYZP+RcgHdRyi69J0td0QJsKjkXPhqBwkdunEsqYJn2J40PUzPv+N7Utg nqf560Gl0E2bdVNrgVVBwuQiMJV/MXX2WHe5TR0faf+1aYROPeAxNH4cNq8qLwKw784U Z3sqFZX1r1CZ7SPeOc6i7Xnmi+xjPfUrQqBHRd+1oPUE0F8BITL2QOgBR31OQOy5q+pt dD9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YvXTE/yI"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de262bf369si8461857a12.276.2024.06.10.17.18.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 17:18:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YvXTE/yI"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209109-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DAC41B2120B for ; Tue, 11 Jun 2024 00:11:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C71D7F8; Tue, 11 Jun 2024 00:07:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YvXTE/yI" 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 8B26036D; Tue, 11 Jun 2024 00:07:11 +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=1718064431; cv=none; b=ERHCCMyiU91O8j2wFPJpsrd9LHsAp3wVgCeFUpSeoWsVaddgm7rjHNGdXyuurWC4zK8woHVmmZvRbqp4q/uVnrazzai5Miyn6ADtiZujJVbMzRuDEguqr2ZXStLAm5HR06MNiDOOsf7RNOQEzMNDlsqgAtbDx/mfr/fBWZNTnbQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718064431; c=relaxed/simple; bh=atyHicKZdMAHj/WLHQbktI55MDWwQjhtggNyC1vQN78=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=G7mfrPNoF0VQATAgFBhGYpGGZelGui1JJRbJDz98vIFa2/j3jXmwNH7fsH9uLDdeuxG8F56XbAadqU9Wso94DzF6ECCLdDfoiImv81aYvq+JtCDrPgke+vi+acVYES4s05bQv/N1cfHJN96cY/cYwZqD4GdFEr5D0LDtnrGNSUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YvXTE/yI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18069C32786; Tue, 11 Jun 2024 00:07:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718064431; bh=atyHicKZdMAHj/WLHQbktI55MDWwQjhtggNyC1vQN78=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YvXTE/yI0cihdrzYnjsyqEu8vwUkGEzrvKpbBSw0ioa5sdr+SmjOG4HbeXweMmtem Du/1njQq3MdgB5O6/h0HGKhYWfaThbSIDXdbwNMZ/YGaX7CiYO1gUHhBqFSOiMQL3t idx6eVTugDbRampqLr2gPhk9i2UmiUChik8JbAOYpTiDo5AYrAsP0eSfDwPBpg1g5h Dhx/KQI1aEN7POBePyICphL4fyG/XVdhuUgn2GwuT4etcDVGUs8wuFmlMt+pP+hhC/ uiYV0JDFQ3vmbldma8buDJSisRmJoCF9zY7/fUsqhdkH/5yV9N4psxF5F+7xsAolKv DjKwTkTEdialg== Date: Tue, 11 Jun 2024 09:07:07 +0900 From: Masami Hiramatsu (Google) To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Tom Zanussi Subject: Re: [PATCH 2/3] tracing/kprobe: Remove unneeded WARN_ON_ONCE() in selftests Message-Id: <20240611090707.58b663bf1d8659b3b76fc136@kernel.org> In-Reply-To: <20240610174052.0fd280f2@gandalf.local.home> References: <171805478534.52471.6269290579314514778.stgit@devnote2> <171805480405.52471.13982671291270977479.stgit@devnote2> <20240610174052.0fd280f2@gandalf.local.home> X-Mailer: Sylpheed 3.8.0beta1 (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 Mon, 10 Jun 2024 17:40:52 -0400 Steven Rostedt wrote: > On Tue, 11 Jun 2024 06:26:44 +0900 > "Masami Hiramatsu (Google)" wrote: > > > From: Masami Hiramatsu (Google) > > > > Since the kprobe-events selftest shows OK or NG with the reason, the > > WARN_ON_ONCE()s for each place are redundant. Let's remove it. > > Note, the ktests we run to validate commits, fail when it detects a WARN() > triggered. > > If this fails in any configuration, ktest will not detect it failed. Hmm, I think there are 2 options, - remove pr_warn() instead. (WARN_ON_ONCE + pr_warn is redundant) - Or, remove WARN_ON_ONCE() from each place, but add WARN_ON_ONCE() when `warn` is not zero. Thank you, > > -- Steve > > > > > > Signed-off-by: Masami Hiramatsu (Google) > > --- > > kernel/trace/trace_kprobe.c | 26 +++++++++++++------------- > > 1 file changed, 13 insertions(+), 13 deletions(-) > -- Masami Hiramatsu (Google)