From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5633630BF4F; Wed, 12 Aug 2026 00:43:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786495414; cv=none; b=me3bKlRcsmM4ZzyJUlnOcqddba7vx+3PpbizqY3WeIQk3QnuM8VpKp8+udsuGD4i9n9XSvR0JpckbE3TczteuBbDFc3JvObx/UPDZRqe+ekMji+seNmWdLfe85Y4qMYmKOdTjbNf6W4bVoP7k2J7TEK+TnSTaUC7mAfi+r/MGRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786495414; c=relaxed/simple; bh=yxqI239Cq/y/EzT2ujWrFEfoVGSzZFr9h5a5BMHW9GQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=V5hoF6LYzWeynp/ABpKy813aYNeGyokogUVC000TrL5tiUH+mY5zebNZLXxYYpcrH3FmX0bcuZEmO6XgHJFwoymuVd7pmXhU73OyDpVjZuE5nqdjZNCHPaCJNPqMwLzxWqREOZtQJSAdejtqWUNX+U07HU8sGWjxeKMyeMSDIoQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dvBtKgcX; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dvBtKgcX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4678F1F000E9; Wed, 12 Aug 2026 00:43:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786495413; bh=J17jrHsge+qNBI+rbUG4+bxq24hY1wYvBFXoMUSbp+4=; h=From:To:Cc:Subject:Date; b=dvBtKgcXG8Hh7A25TOV7tPpSiKhJcnkLFCQagtTAJ15GAeatgyArkpalCMkiKOY9f IrnONZm9WGZNjwsFYq5YvvRmIJ5TXJAf3KlyampwD1+X8trq0xv+Qzfr/serhlC/cZ EW1YyphUZ/brVJLihH1wzH49xAxKvOKPuuUMwC8om/vLYpWKD7oaU6JHUubBWC0PBb W9wZS/VcRg0JXietozxZtQ5x4CfCuFgHllsxUny9GHlDsw9H3oHBfCscyNTrVkVrur eDMiFDIwOCFgLA/CEK75zy4AMbDJd66xhRiGJMDQjZ9tDDqaWv9u3opNvMB+MIQXd2 rMjmdELG51tCA== From: "Masami Hiramatsu (Google)" To: Steven Rostedt , Masami Hiramatsu , Shuah Khan Cc: Mathieu Desnoyers , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v3 0/4] selftests/ftrace: Add a boottime tracing test framework Date: Wed, 12 Aug 2026 09:43:28 +0900 Message-ID: <178649540853.438282.4271870161169100680.stgit@devnote2> X-Mailer: git-send-email 2.43.0 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, This is the v3 series of the boottime tracing test framework to selftests/ftrace. This test builds initramfs from busybox binary and test scripts, and run it on QEMU with modified cmdline and bootconfig. The previous version is here: https://lore.kernel.org/all/178646245730.428104.4400499381224001727.stgit@devnote2/ In this version, I fixed some issues pointed by Sashiko[1] and add "# APPLETS:" line support for test script. See below changelog for details. [1] https://sashiko.dev/#/patchset/178646245730.428104.4400499381224001727.stgit%40devnote2 Changes in v3: [1/4] - Require file command and check kernel binary architecture via file -bL instead of matching kernel path string in run_boottime_test.sh. - Use 'cp -L' when copying BUSYBOX into initramfs to dereference symbolic links. - Use 'ln -sf' when creating BusyBox applet symlinks in initramfs. - Add support for '# APPLETS: ' header in test scripts to dynamically create BusyBox applet symlinks in initramfs. - Update boottime test README to document file command dependency and '# APPLETS:' header syntax. [3/4] - Add '# APPLETS: awk' header to cmdline-03-trace-buf-size.sh to request awk applet in initramfs. Changes in v2: [1/4] - Add top-level boottime-ktap wrapper script and include it in TEST_PROGS in Makefile. - Define BUSYBOX_APPLETS as a global array variable including sleep and sed. - Require timeout tool in run_boottime_test.sh and README, and always invoke QEMU under timeout command to prevent infinite execution loops. - Add fallback sleep loop safeguard (sleep 100 || break) in guest init script. - Support multi-line .qemuopts files using read -r -d '' -a qemu_args. [3/4] - Fix buffer_size_kb parsing in cmdline-03-trace-buf-size.sh to handle unexpanded buffer string output '1 (expanded: 2048)'. - Use grep -qw in cmdline-04-trace-options.sh to match word options and avoid matching disabled 'no