Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp384875lqp; Tue, 11 Jun 2024 07:24:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXnQTItrXklV38oe8zuCNuJ/OfLx9rxDTVcEc/oqxx818/u9sS/a22jLqSjz7zIAJEADeV++haKF6FI0Hc+HoCqKQA13hilt2axDKwJEQ== X-Google-Smtp-Source: AGHT+IE7D5dRL0wBi7PJVb2Q147pJ5q4LLNdSTmRSqCS3hr2ktjiLleLX2euRy7TgdrqCgerUMAM X-Received: by 2002:a05:6214:1788:b0:6b0:6ad9:1fd3 with SMTP id 6a1803df08f44-6b06ad9212fmr84872496d6.2.1718115847544; Tue, 11 Jun 2024 07:24:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718115847; cv=pass; d=google.com; s=arc-20160816; b=sYS5woqIkYol2ZqQSiZMcbVdfqHDDhp/qdkfE1vykoXH9doDC3lsCCf1D+ZDvtFK/9 g6sWbtEuKs5IKykZ2Jjh0v9TskIcT52gQViD3mt95FVMzVaW81aDybqREntBREmUcC9A x4KTqW1J0W6ml45RZIq2LTziBiiYQFiZP0DkNc/9JbqGrVipdgCkXzzhHKnOGvqoKmSu mzChK2ezlts5LJ5bEqA41L6Df/T/ZGwNl1EPBUdOE+iGuHWGAVFy14PnwkmG696mqpyA IbOcZ2BRfBdk2vETeh4tempJS1ihFARO1db7qI4g/0j+L7xGQHvBYpJ6EE4yHB9ge5pA +zFA== 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=ZWPgzmINeXbeIy8bpGMbeCBr+2XS++6eaicBXhc68w4=; fh=jWedx90aG04v81jZgAk2DtjiPjSqMS52v79a3H+odOE=; b=FsizLxeyrTAqLA80q18+EbIgx3dULzVgFNuc4RbgXsqoEVpAmYfd/746GnUsW6c1Dt Ic8OCYpyLVVkdxmnabXKnpWMJ83+jk42JlXR1x0VZSOMeqxdo+06xP39LsOYzJdD1pmL l127413dlp+L4DRzDxvfb7mU83w3ePnqmGFMoJDHoVMtt3BDh6dPrSZJngJtk6jAllGH UXW2C18kf7mG41PkU3CuQ2swi5rWL/PAYurweKJxIVisT/3/r2A3b+UJacPwcT6ThEqF YwBWGXahnYmGhPSeh+GyA7IS+aX2iRgYdE8ZYy4xXI8bLL5X6710kkLC8EOZEkSdtOqy xEOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-210056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210056-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b088304096si28234776d6.365.2024.06.11.07.24.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-210056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210056-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 43E991C21FF4 for ; Tue, 11 Jun 2024 14:24:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 776A017D896; Tue, 11 Jun 2024 14:24:00 +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 0021C17C7DA; Tue, 11 Jun 2024 14:23:59 +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=1718115840; cv=none; b=EJBh0gT65Td58urjlmATXJflOvqrthii5SPRnKo2ISVNS4pJFqMid5s1Qchhp6KbLtcoEtqmxIPudXq12gBbXNlu2W+tB7S+cQ7nwyomH7ScA0JzdTN/oeh++bJavRkfBt87WBL7NCXL82rEUwtPwpWKsISt2draD1B0+cKjrhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718115840; c=relaxed/simple; bh=zQSUZDf9BA6axvEmuxkge4ZvqblG70QClCm0SBwZzhc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SGbG0sz6246ye1zQS+Zdcy3xzphLaI163tPhkE1NxHD7F0jxBDJk44/X2Rfa77rJ+g+3Ww93mPzUHZMVlEGTYzeEHqHU6ImRzryaoS4Fs+SVS14LBoA3DNONlZXTu77twd5yy00J8i/d2HaTBYgDCUEVgHHxRrrM0D41itaD3MA= 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 F3763C2BD10; Tue, 11 Jun 2024 14:23:58 +0000 (UTC) Date: Tue, 11 Jun 2024 10:24:14 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: LKML , Linux Trace Kernel , Tom Zanussi Subject: Re: [PATCH v3 2/3] tracing/kprobe: Integrate test warnings into WARN_ONCE Message-ID: <20240611102414.203b95bd@gandalf.local.home> In-Reply-To: <171811264685.85078.8068819097047430463.stgit@devnote2> References: <171811262833.85078.12421348187962271050.stgit@devnote2> <171811264685.85078.8068819097047430463.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:46 +0900 "Masami Hiramatsu (Google)" wrote: > From: Masami Hiramatsu (Google) > > Cleanup the redundant WARN_ON_ONCE(cond) + pr_warn(msg) into > WARN_ONCE(cond, msg). Also add some WARN_ONCE() for hitcount check. > These WARN_ONCE() errors makes it easy to handle errors from ktest. > > Suggested-by: Steven Rostedt > Signed-off-by: Masami Hiramatsu (Google) > --- > Changes in v3: > - integrate WARN_ON_ONCE() and pr_warn() instead of remove > WARN_ONCE(). Reviewed-by: Steven Rostedt (Google) -- Steve