Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp275656lqh; Fri, 31 May 2024 00:25:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjHLAe3KKV5Xu++Lm+zjzfwa49Q3cbw7tsJoTrNvGzRCULEKo6c3/5EjhJSGYxQTcTFCEnihusGn04Ig7Yx2fgKpBtSwqO01AedXzjuQ== X-Google-Smtp-Source: AGHT+IGBnCD40YywNjrT2sIOLeLuYx+1M4e+OmiO2H+GyPkb8BtS7Ut+plVDaVV+Tj6tgZbpC3pd X-Received: by 2002:a17:907:3345:b0:a5d:15ec:7793 with SMTP id a640c23a62f3a-a68209ff279mr71738266b.35.1717140306336; Fri, 31 May 2024 00:25:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717140306; cv=pass; d=google.com; s=arc-20160816; b=dOJPum+gqvVQrTvhLssSao8cVDX81dIVaFvVfNDIhjgPZ10VeRF/cL/VbiKPPd+CEx qx2YU1uhc3BU7+9cOzKsElSQsgjq06kA2aHoUm8yAw+3goRRWrw8ex0vx6cHbqPplgPw JGJlIv4Hhk3b+eKHCPkL//d60y6CBKNDVfudKwEbSYc7EZ+Wo5EGQReAtTehuCxcHdZc GIjUZtlnAJHduh1FfozW57mSb3UOSCsxTBxs4S3kSxMfTVBt3zkGWGkjsVKY4Y0kwGUu et5G77mFCickgE506WyGft+YtQQRF5ZG73VdxF+qeO4xhyC15TbmxgLqDmO8Xw5l0c0r iKRg== 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=MIiWklbWkvDgPmwDH+ySuJPGz7XdRkEn7RjgmIYdr9A=; fh=EgDnBVNFpkahDe3lyTiewyNckmuoGLBC3pOrQoNG6v0=; b=cPHRNROOBAxug5DcJWDLd26KPH5lzz+Nw6T2tH8mI2LWpd6McXBHMxSyNh1Bx0PLQH AkDRUqHeiyMOLDtiLppdGJDpS5VcEAiJUZXx92rVRcgGqBnJDIBUETvqQIa2oZLoa5B7 9nIR9ZyIxdRA8aAdmx12/ARUv8Nex/fyNxhE56nAfDIOBjh4Lpah1DS+IgoRQJcQ7GCm E2Y2beSLLXDrGr6UeeQhF6wgyclR17+7nENWIgmo1OA7dZHcT/xZ+2Ysfyk8z6+5UGGl 5e9CWP5mBKQbKEXHqyY8yVisl637GagFfEpa/iId6XjwmyPICnCKql0D7ktbbFw+sR8Z xebg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-196401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196401-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a67eaf65372si61459566b.847.2024.05.31.00.25.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 00:25:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-196401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196401-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 am.mirrors.kernel.org (Postfix) with ESMTPS id EE3281F26269 for ; Fri, 31 May 2024 07:25:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8E8181205; Fri, 31 May 2024 07:24:59 +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 5E3747FBDA; Fri, 31 May 2024 07:24: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=1717140299; cv=none; b=HCrYWVa183QucSZ+aYWYZyRYord2YCPxqqjX7A4NO2RUSfhTCGywnApZORqNmesVMhMfBqCBbHVbfbWqC4h8MA8A3EiP7jMqnPayqZf4vjxGEZbcZyDy1yen82SRlGbs9QBkGRmMOxVh/zWlmw8SPSXSqMYV4692sXb///61O6I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717140299; c=relaxed/simple; bh=V35cqtk9XTo/2IpnTDToiE7mqkZ1wlRTu8Z37svt7cY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cZSMfJrImO7zOWu57pX7a726Cbm3DSRupxXpRsQCKhIiKqvi8vIBRW5BRT9mXTFxd/LU/rVpWZEZLW4EfHF4HJ3UnCWWGwE9GOmJiRX/cD+NdNi03fJ8lAcbtTijSWriTe8yH448T/FI3JTGJ9zVLsCyMz61EEVoxVIY46uregs= 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 C2C7CC116B1; Fri, 31 May 2024 07:24:57 +0000 (UTC) Date: Fri, 31 May 2024 03:24:25 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Tom Zanussi , LKML , Linux Trace Kernel Subject: Re: [PATCH 0/3] tracing: Fix some selftest issues Message-ID: <20240531032425.3635dc93@rorschach.local.home> In-Reply-To: <20240531113721.c0314e0cdb3beb70c1a6ba7d@kernel.org> References: <171671825710.39694.6859036369216249956.stgit@devnote2> <20240527192907.49c9220f@rorschach.local.home> <20240529014640.3a04f7301f12eb44738f9f2d@kernel.org> <20240529083818.b7835de167191d4567405ce6@kernel.org> <3a7e679712fb47b6c75af84163b5d3ea252f4da9.camel@linux.intel.com> <20240531113721.c0314e0cdb3beb70c1a6ba7d@kernel.org> X-Mailer: Claws Mail 3.17.8 (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 Fri, 31 May 2024 11:37:21 +0900 Masami Hiramatsu (Google) wrote: > So, in summary, it is designed to be a module. Steve, I think these tests > should be kept as modules. There are many reason to do so. > > - This test is designed to be used as module. > - This can conflict with other boot time selftest if it is embedded. > - We can make these tests and boot time selftest mutable exclusive but > if we make these tests as modules, we can build and run both tests > safely. > - Embedding these tests leave new events when the kernel boot, which > user must be cleaned up by manual. > > What would you think? I was mostly following what Ingo told me long ago, where having it built in is just one more way to test it ;-) But that said, from your first patch, you show the stack dump and mention: > Since the kprobes and synth event generation tests adds and enable > generated events in init_module() and delete it in exit_module(), > if we make it as built-in, those events are left in kernel and cause > kprobe event self-test failure. But you don't explain what exactly the conflict is. What about those events causes kprobe selftests to fail? -- Steve