From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DE303859EB for ; Tue, 10 Feb 2026 15:54:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770738863; cv=none; b=ZEDLhivqysuczlDbxFK5odADl0tslcOkxEt25WhC+x79PIMTXghrZWPQvnEewGLjXvG2RCbh3MifeCFucxhlfIikpMICqDYr0S7LH9A+GkD4U/sDVSyjKAW4H/Kgnfe0JDn1xchWbtHojI3YCh3YH/Edesfc/7j4Mi/B6tlf+R0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770738863; c=relaxed/simple; bh=ST2OYSUr/9BOxuSHmo6m8vzlEriASf+JxzHewy/ojBw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VEJgus44t60uV33No0ZOZnIteQ1JkxDEJ8hbgkO+BuCK4Ig7uMFK3qkBh5xtoifi/hAQeuujR6ZZEqYRitM3MZ6UjT989B/sQMuyZ3aDlGU17w1cki1ttvgtelGDNBpMCX5H4euvcG7t4uk6fIy7PRsu2FsVZ38l2rPgKfsYBek= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=plwfd2eA; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="plwfd2eA" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-482f454be5bso57610775e9.0 for ; Tue, 10 Feb 2026 07:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770738860; x=1771343660; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=uXRC/tAwqGKh/o1ifn7jOx1oKAbcp0FPsYzrynQiNbU=; b=plwfd2eAVC0V9X+tF+xaq4ZPgKfVzc/1WZXoln9uzlB7IripnJA/vsNhyAsG10mI0O 8aw/MCu2W6SCfsJdczcb2xT9RlZ0fuZmYsn+KV9jmAKX4tZma4VuxMCBBLP1PcVJeD4x A4asbbz5hWhImnIcbcUQZiBE5TL6mQb2pQVCktPUAs95CdTCKzsrTsouu26dlMOb1ZLq AvJOgZVUlCB6Zf7vREGfuAVp63D19mrE6tm/qVZSOiw0ov9leaVVwUo5MGDUTk+eIbU3 Se84MvL3UYgvsPsMp+O2ekGfBewuCalfmRRxwMiWj1PSxuA8tuhuMYvEsQgMWfc20Gu3 3aMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770738860; x=1771343660; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uXRC/tAwqGKh/o1ifn7jOx1oKAbcp0FPsYzrynQiNbU=; b=UgEn1OXyoPgubL2WCD0Q4E9btZjHAlKH1EF1ZSXK+xvhXC9uqv58xjOyGEzPuwX6di foLgBhGEHb22o+NexUQW8r2WLdXMum5kBh18SVnfGMeCwY8YQEXaPjbQuq7OnVj7E0io 2XDjtHFS3I/0Jp38vwamgdO24mqDKBuZQvNMYw5Wqxuxxas4yb5h+jogRa4Y8kVKeDVx 7HogILA0h2QWfwf9VDwdDTi47LbseGs34geUp5Pl3N4H4eVCLAPavdWwRC9WgKieArbR 6BYSGabZOSzRNQ5I+8g94/06H0/pNhBxJw++Nh8d/fkP5xZL8C7pcI2xxhg2P8UzHbRu HjFg== X-Forwarded-Encrypted: i=1; AJvYcCXT++25YsYwC6MpKgtl6u3y0n3Jbrp1GNcS4wL4DjxoGhIV5e+nhYLJNWkG8NjFNhZYYIz5dcIsXBtGKYo=@vger.kernel.org X-Gm-Message-State: AOJu0Yw1EifMIAKxrQ5A5M387XulDLippWTv/TgdgYZz0j3FZ2jtWMCE 2GXG9SICe8L1I49J1bL0wvBiWVweJakp9+9P2gWByA+F+Qv8RMajmRaGLPUuJUaFkw== X-Gm-Gg: AZuq6aIk+d2vKM2oKTa48c8dV2j8Uom8RjsHEWlsigqpBvw57uGDnMnOylcK8p6OfYs 6gqOay+Xr2RWngm0/eigXi5+ume+g1e2TpHwBi2oNIF8oXfJJERuKczi0K+oAZQ2Fa2qB0MaONn /TL3u/IxLkiPt467esnZiYLy3Ms6e4egiKvhTLiSiFijtJjl/irL/dxEoVW0R3xqsFbhPPT6jKm Hg+8UiAzm+tOxu0y5a1pHzixXV6L1qnS5Oyy+Ru8jiYr8oLC7mLWZIrqWDrVIvQROrHbsTWgm/N 4ogyb5f6MrHgP2mKP4YxPTFF2qT94Xt0y1vK4Lkt5v0Q6w876oXGCMXdFW5HjE4MvZyhKVklhq/ n2uPaHEz8pGLDlPoqDiYGTX19lBqe7Czglmk9Wm+tFo2tZ5tX1MqpMNcv21cxlNVxYocvKtKlwv yuJypyuww1Tjxd6+jRXR4FpN8DImbYzlMh/hxlDOO8v/Lv5pfIqqYbu7fi8w/q+SrIHI4= X-Received: by 2002:a05:600c:3b8b:b0:477:a289:d854 with SMTP id 5b1f17b1804b1-48350511771mr44119235e9.5.1770738860235; Tue, 10 Feb 2026 07:54:20 -0800 (PST) Received: from google.com (135.91.155.104.bc.googleusercontent.com. [104.155.91.135]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4834d5ebd34sm71526575e9.7.2026.02.10.07.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Feb 2026 07:54:19 -0800 (PST) Date: Tue, 10 Feb 2026 15:54:16 +0000 From: Vincent Donnefort To: Steven Rostedt Cc: mhiramat@kernel.org, mathieu.desnoyers@efficios.com, linux-trace-kernel@vger.kernel.org, maz@kernel.org, oliver.upton@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, jstultz@google.com, qperret@google.com, will@kernel.org, aneesh.kumar@kernel.org, kernel-team@android.com, linux-kernel@vger.kernel.org, Shuah Khan , linux-kselftest@vger.kernel.org Subject: Re: [PATCH v11 15/30] tracing: selftests: Add trace remote tests Message-ID: References: <20260131132848.254084-1-vdonnefort@google.com> <20260131132848.254084-16-vdonnefort@google.com> <20260205124208.2ed7cff8@gandalf.local.home> 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-Disposition: inline In-Reply-To: <20260205124208.2ed7cff8@gandalf.local.home> On Thu, Feb 05, 2026 at 12:42:08PM -0500, Steven Rostedt wrote: > On Sat, 31 Jan 2026 13:28:33 +0000 > Vincent Donnefort wrote: > > > Exercise the tracefs interface for trace remote with a set of tests to > > check: > > > > * loading/unloading (unloading.tc) > > * reset (reset.tc) > > * size changes (buffer_size.tc) > > * consuming read (trace_pipe.tc) > > * non-consuming read (trace.tc) > > > > Cc: Shuah Khan > > Cc: linux-kselftest@vger.kernel.org > > Signed-off-by: Vincent Donnefort > > This still fails: > > === Ftrace unit tests === > [1] Test trace remote buffer size [PASS] > [2] Test hypervisor trace buffer size [UNSUPPORTED] > [3] Test hypervisor trace buffer reset [UNSUPPORTED] > [4] Test hypervisor consuming trace read [UNSUPPORTED] > [5] Test hypervisor non-consuming trace read [UNSUPPORTED] > [6] Test hypervisor trace buffer unloading [UNSUPPORTED] > [7] Test trace remote reset [PASS] > [8] Test trace remote consuming read [FAIL] > [9] Test trace remote non-consuming read [FAIL] > [10] Test trace remote unloading [PASS] > > I added this patch and the two failed tests now pass: > > diff --git a/tools/testing/selftests/ftrace/test.d/remotes/trace.tc b/tools/testing/selftests/ftrace/test.d/remotes/trace.tc > index 081133ec45ff..dfc954a6a380 100644 > --- a/tools/testing/selftests/ftrace/test.d/remotes/trace.tc > +++ b/tools/testing/selftests/ftrace/test.d/remotes/trace.tc > @@ -106,8 +106,10 @@ test_trace() > echo 0 > trace > > for cpu in $(get_cpu_ids); do > - echo 0 > /sys/devices/system/cpu/cpu$cpu/online > - break > + if [ -f /sys/devices/system/cpu/cpu$cpu/online ]; then > + echo 0 > /sys/devices/system/cpu/cpu$cpu/online > + break > + fi Hum weird, I have changed it in v11 to echo 0 > /sys/devices/system/cpu/cpu$cpu/online || return 0 That doesn't work? Because I would simply stop the test there if we can't offline the CPU. > done > > for i in $(seq 1 8); do > diff --git a/tools/testing/selftests/ftrace/test.d/remotes/trace_pipe.tc b/tools/testing/selftests/ftrace/test.d/remotes/trace_pipe.tc > index d28eaee10c7c..146f0a9fe311 100644 > --- a/tools/testing/selftests/ftrace/test.d/remotes/trace_pipe.tc > +++ b/tools/testing/selftests/ftrace/test.d/remotes/trace_pipe.tc > @@ -102,8 +102,10 @@ test_trace_pipe() > echo 0 > trace > > for cpu in $(get_cpu_ids); do > - echo 0 > /sys/devices/system/cpu/cpu$cpu/online > - break > + if [ -f /sys/devices/system/cpu/cpu$cpu/online ]; then > + echo 0 > /sys/devices/system/cpu/cpu$cpu/online > + break > + fi > done > > for i in $(seq 1 8); do > > -- Steve