Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp98218lqb; Tue, 28 May 2024 09:49:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqtkzzJgkn0OZl3UoQC/p9JVK7EpPi/JknJryYA4buRMnaYdsQkribKEQ5qENNrvP8WIJDDpW117CfiDa9nW13AqQ3vMa8HjlnJq65kg== X-Google-Smtp-Source: AGHT+IG9TFtjN/U00x8Nz2MbhShWzrBlUQBFMcKAhcY2Be1OiQKFMCAsahvCQqNRrtoyN9z36W82 X-Received: by 2002:a05:6a20:d41f:b0:1b2:c64:7b3c with SMTP id adf61e73a8af0-1b212cc77b6mr11335792637.7.1716914942559; Tue, 28 May 2024 09:49:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716914942; cv=pass; d=google.com; s=arc-20160816; b=r9c/hVUD14lGsmV2D3p7mFAgxs3MkN8Fqyoj8kFhjmrAm8qO0HNT077Fk2Hjlt0H1e Popjew2Cc/3DNQhipZXjokvq+MjZ9YC6GmQC9o8WbMifaMa50FdKBb6HXoH6acbGmK0f AQOszgYu6/SBeIOw9rEiOlgKRauLHKnqH9/XvhgYA5qNIzsGaho3c1NGbdi1K8jwvLDj +F6IJjlC9T+4qhu2qoNd5kDUpFySfL1uPKhoxU3SIChr0FKcCDRuwdr3iqcKtKdmPQbL YZndyIJYHIEXc+ii/9PrZskk/1mcI9847yYQaxdOIU4W2TgZT4kYpy/0ddcUHaauR35o ZT6Q== 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=od5Yq1CriDFtHVofx+laMnUFRzBaOTgl6B6jxU2mbX8=; fh=Bxm27zDBVIDivezMEq4j3k/WorpWi0MMMGiFopD61OE=; b=JhaWLoOKRsJVKlHy8AsHDMlIwhKRL8Vk4R5YqBxLLvybwSB4qMTtvQTI7uduH1lKJF x7EMajA7ovV/4k/fw1IKUkPBGSOSHQW+PuS8OSkKh5eug7F9YPXp2j0SPMpTCOnbF2Dv aYPWHZbT+oJTsMVigoo2ObPvZsNq2SoA8q78HRFXM5QGVzsAVAe2YaGQ6L64gbZTcITC 5gUHLiaCMo0/R0iuuC8SSvX+V3sklbiY8ERQrkUmf1oIsWirhk7iCJ4CSwJdblRm5o5l cjjAFVA6IMVoD3s9jp0OV+U6wcMUKYxc+Zv16W0sh60mmYXmFb009tTlq9Dow/4qWRnf spsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KuG0ynIS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192774-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192774-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fc36e5d4si6240750b3a.109.2024.05.28.09.49.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 09:49:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192774-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KuG0ynIS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192774-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192774-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 E980228772D for ; Tue, 28 May 2024 16:46:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39E3F170836; Tue, 28 May 2024 16:46:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KuG0ynIS" 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 58BDC1DA4C; Tue, 28 May 2024 16:46:44 +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=1716914804; cv=none; b=coXfFdlbjSB1U/yFUqXPB/pIrYs+4T1jbXTTLXbwm6FDPHZYvcSePFrHEtxwiNfi/p8CUJBNslxjlCJoL6L/4hGLc0OsxgB5fdFThtBSu4gqx+1NXarccDyLWZdDz1QtMoZMRTSwWY6UPKTTpFJSZZuetOF9XP9clngnqW05UGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716914804; c=relaxed/simple; bh=nsvyyJAp9vAJQn1XGCoxQf6q+s/VlUohL8DTuvuEicQ=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=V6ZQW7b8ywbXMCcS0w7jw/WABMONtQcvqryTKSg3mpBcz+rsgRTWLXxtiAINuwWdhPlClofbRJ2j4V1qbpLInQXLTG8CBckDq6U79UvbHb+2vGHbXWK/6uzDHmoVtaxTMYClkgo4MLfEigTaLv2PivDEtu1nN9Toqmzd2TIKxUo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KuG0ynIS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82F8DC3277B; Tue, 28 May 2024 16:46:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716914803; bh=nsvyyJAp9vAJQn1XGCoxQf6q+s/VlUohL8DTuvuEicQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KuG0ynISXL13kFGjuQ/XtWx4rVnMgfg0lyUDEbdwErjPPnMMgBGt/5pDROc9VzTne q1qlb91xkCCSOlAfYzLA4KeERBymuo5i3KI+uUbjHWdrl9QX18kat468151JeYwUX2 bC3gyx4SzCzkdg15wc4O72uDgEdjMyqCiOpkV21PoNrUU+Bvh3s+hkUDjkbWg+9Ka6 EQhxShHzmsYXJeIYCzOP/n6A5pbbapxA3jU3Mm7jfO7QZLgo23SqjlE6m7Dag0vN6J /WZEbYYgZusttVdISWTBTStGq+OZ0/Z6RfsMirE38eC/osIzpfcjqpfi32JH7OJAvU aJNOCNqLHODUg== Date: Wed, 29 May 2024 01:46:40 +0900 From: Masami Hiramatsu (Google) To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Tom Zanussi Subject: Re: [PATCH 0/3] tracing: Fix some selftest issues Message-Id: <20240529014640.3a04f7301f12eb44738f9f2d@kernel.org> In-Reply-To: <20240527192907.49c9220f@rorschach.local.home> References: <171671825710.39694.6859036369216249956.stgit@devnote2> <20240527192907.49c9220f@rorschach.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 Mon, 27 May 2024 19:29:07 -0400 Steven Rostedt wrote: > On Sun, 26 May 2024 19:10:57 +0900 > "Masami Hiramatsu (Google)" wrote: > > > Hi, > > > > Here is a series of some fixes/improvements for the test modules and boot > > time selftest of kprobe events. I found a WARNING message with some boot > > time selftest configuration, which came from the combination of embedded > > kprobe generate API tests module and ftrace boot-time selftest. So the main > > problem is that the test module should not be built-in. But I also think > > this WARNING message is useless (because there are warning messages already) > > and the cleanup code is redundant. This series fixes those issues. > > Note, when I enable trace tests as builtin instead of modules, I just > disable the bootup self tests when it detects this. This helps with > doing tests via config options than having to add user space code that > loads modules. > > Could you do something similar? OK, in that case, I would like to move the test cleanup code in module_exit function into the end of module_init function. It looks there is no reason to split those into 2 parts. Thank you, > > -- Steve > > > > > > Thank you, > > > > --- > > > > Masami Hiramatsu (Google) (3): > > tracing: Build event generation tests only as modules > > tracing/kprobe: Remove unneeded WARN_ON_ONCE() in selftests > > tracing/kprobe: Remove cleanup code unrelated to selftest > > -- Masami Hiramatsu (Google)