Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp107550lqm; Mon, 10 Jun 2024 14:29:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlXBGkqnE3PS8F+nouQu4OK0LqAqrxvC9ye0/DHGKH8jzvXhR7djrBG7kMs7ByGGIP+xVmi1OdPb+DbqPm69IZQ2ay2KA/lvek7qlS+w== X-Google-Smtp-Source: AGHT+IGjwbd+B0YryGfX+Qix3HOAOkeb+qsDJDBW/AqnNhNtRC+lhhtVYqG2TnSaAQG3AdueHNLX X-Received: by 2002:a17:903:18b:b0:1f6:f814:d542 with SMTP id d9443c01a7336-1f6f814d672mr71520535ad.68.1718054948147; Mon, 10 Jun 2024 14:29:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718054948; cv=pass; d=google.com; s=arc-20160816; b=eMY1j8IrXLR5nGH98Pq2GU/y2DBlklYBNBeTIkr18n+qjnIdWMj+1gFirQ/VuhBIEN tIE+FU8kXZRRovVycs/2LNFsDM8Z+41avQSRw4RtctJY7OndwCweP59Eh/ve/QfKdVZ0 dFAkFJn8pRaUXsdc3HbOQvAPSyVxgOx87spybCIZoEF936E2mK24md6XKIrbW0yJprm2 s6AOwaPLOtPOvptmV8WO4LzoiRwgaVeiGEmCzpK3KVAJsRRG7Mwg0U+jxN18zxuC/UOb 9J7fh9pdMMKQvbVb0Md76uXfHpkb0rDulGPl3MY5K3rVdrZmQD0qS5AGvsJFxrDEpx6W kaxg== 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:user-agent:message-id:date :subject:cc:to:from:dkim-signature; bh=QZrxx/iWQEBR2HXAjYrV6cb/wQ15MJjgIcCIp3JIwbQ=; fh=OXmnF2IabCVhttS9M0uF5EzWe+EI+vV+JgHilYyZTJA=; b=TmoPSG9HYaGEDqulw63Ntc9LVzise6GARh+7NEA4Z+IhKdSr/xZfpVQQHGQ4XfPHd7 qDy2NE7p43Gk558WL3J7P0ueFntqB4LpePpRb9EvB45sNb6+2Y6zoh/A6rxlyQZBxDvW MWmXf1VlfotAwNjkQSXxyk5sKNZFM6uQLHn7/zj934BkZq1rD74jRVZ3gTiT+A40b5Aw uAxQTZsi6vLoH4ODnZ5ux7w57vYwfE0VJ/zUqsRsiAo6ycQxGfdnPvdhuUCkeU9BfggI xT5/prb8rO4LycUQfnOaU+Npv5lQwpdpjfEaa8PhfdkvNlI+/Sq+IdWYO44rOx/eq5Ss 3rjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wz4G6WvS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-208911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208911-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f72d992f3bsi1691615ad.402.2024.06.10.14.29.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 14:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wz4G6WvS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-208911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208911-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 3AD53B20A9E for ; Mon, 10 Jun 2024 21:26:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B87FE5B1F8; Mon, 10 Jun 2024 21:26:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Wz4G6WvS" 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 DA89D1B7FD; Mon, 10 Jun 2024 21:26:29 +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=1718054790; cv=none; b=H48xrVcEkLr5Tm12Tl/j6Ab4tWimtls2I6Lig6LN+yzIBfhAz1OWQsNafHpgvZa33I20dNfK3xluZo1di9PDuxPjyVCoqyfjzl4NRRKjsV90t55y9Nb7A5ClWpPq/i5G5GHm9jJz9Xg5YDL4mHoVu9jLHiqtk1hgF48qC7er3Fw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718054790; c=relaxed/simple; bh=I9dQxF7evrDdKUiLRYHLxwMlUHRxYsTQCbEh4GfJZEY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=J5xs1ZLD35ujf5FPz0NEgjFEDM3dkxJngWQOisfGsq3v/v86nuKpQQXF04Q508STNOuVa1gPuYQmRg0QjrgTjzSHtTuiZZ2Aat6dCvU4xS/I9Af480HDetVTGnxmSl5DPxDc/KFXljVH2U0WCvPzDiY3zlnV1XpH9iMsym57B2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Wz4G6WvS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16008C2BBFC; Mon, 10 Jun 2024 21:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718054789; bh=I9dQxF7evrDdKUiLRYHLxwMlUHRxYsTQCbEh4GfJZEY=; h=From:To:Cc:Subject:Date:From; b=Wz4G6WvStABHFDrBUDRnd/8naxNlazFGFIY1Cjcyrihp4qe8xKMkS8evxk6NQZ6ar nvpeg6Sc1CqbH8ef9BFwou7byuX/pQmXXDsG1YlLsbZJBF5k8IX2uRFFD2/rRZ+f2Q m1sdd7oJC/0FV7nUkKTeoF/ZpAPq87BiBJyNtR4O7y4HmT3PXX9pRQrK1EJIUoQklv 0VqthTfrCQvc51e+MOlSFsi2x8Mj7/R3qN6jTxBcvuc2Y2JQsKetFFIDFR/Ed6wU9X EBZk6XlOH7NGO+dh0yMCEDlMAG/AYgoQUzFbZl02N9gQVKbB9MK7v+q5k2E9KbQeYI k2YkrxvGGFfig== From: "Masami Hiramatsu (Google)" To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Tom Zanussi Subject: [PATCH 0/3] tracing: Fix some selftest issues Date: Tue, 11 Jun 2024 06:26:25 +0900 Message-Id: <171805478534.52471.6269290579314514778.stgit@devnote2> X-Mailer: git-send-email 2.34.1 User-Agent: StGit/0.19 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="utf-8" Content-Transfer-Encoding: 8bit Hi, Here is v2 of a series of some fixes/cleanups for the test modules and boot time selftest of kprobe events. The previous version is here; https://lore.kernel.org/all/171671825710.39694.6859036369216249956.stgit@devnote2/ In this version, I just update the description of the first patch to add what bad things happen when the modules are built in. 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. Since kprobe and synthetic event generation API test modules add new events and lock it. Thus dynamic event remove-all operation failes. This also causes all ftracetest failed because it tries to cleanup all dynamic events before running test cases. The main problem is that these modules 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. 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 kernel/trace/Kconfig | 4 ++-- kernel/trace/trace_kprobe.c | 29 ++++++++++++----------------- 2 files changed, 14 insertions(+), 19 deletions(-) -- Masami Hiramatsu (Google)