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 658733839BD; Thu, 6 Aug 2026 15:21:43 +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=1786029704; cv=none; b=AqdC1+7ZFEjhYE80g1Z3JWBjKjMNuDCI/VXJpgZa70L442sHL2+qmPRdi51MJRb7FDk6gAmg+R6nfvWAw9iBRe80hVS4n3DqcgOQtEFajvdyrxInE+McgzDoex4EW5YnK1fu7E+UycloZT/4BvNTRv+VVvDunA5xYJnmgayGeAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786029704; c=relaxed/simple; bh=If94aqDMfUhqHZbf0eoe4fgpsQJQfmn3Y15jw7TnSqs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dtCxYrR7qB5eQrrb73JvXFd8wA1XewVN//zBl0PP0As0G7IJHRAeI855EWk4sTXXDu0A/WaRPpDi63dLPXT79Vn7vJDl4dSt30t/no5y1pgxeqItkaCbzIKeScn0cWiwNF5K1x54ZVmHvUuHajFQzuwbhQkiym/vLAdHKHorT/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kj6SV/f8; 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="kj6SV/f8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DD2A1F000E9; Thu, 6 Aug 2026 15:21:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786029703; bh=AR3+Gfeim1gth5wk3IdJHMpUv87QCXqfBE3YsoXite4=; h=From:To:Cc:Subject:Date; b=kj6SV/f8Jz3lDjU87yK7Z4ZiPTX/SVnrx+7dUxFVCGuOtCvZWSsU0NZl34/4LE/gP UTrhtJhPq3+83aasb3ySOHoja1srW/0TDswc/33rJVLJBYSDPArVIPuYRp0DTa4qHs KL1M0QZhO3tz678oocm6Op/JWzDSZBiVPVKLsncNPzzRyFabTdlJkqf4rFn7rmzcm1 DKwRdbXjHVbWT305+n1CFkScb3CkS32kkRra0wFT01Yi+I7yVJNi7uN5sA1Ko759V0 eBdI+oy5Nj67AhT9go23t1oqDbyQAviwzDGXe26Cwu1ZpDNGgPoBUwTzM2MOK+y/kl 2UaCH4Wcr9bdQ== From: "Masami Hiramatsu (Google)" To: Steven Rostedt , Masami Hiramatsu , Jonathan Corbet , Shuah Khan Cc: Mathieu Desnoyers , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 0/2] tracing/boot: Support eprobe, fprobe, and tprobe events and add test framework Date: Fri, 7 Aug 2026 00:21:38 +0900 Message-ID: <178602969872.141946.3932041319962687996.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 2nd version of series to extend kernel boot-time tracing to support newly added dynamic event types (eprobes, fprobes, and tracepoint probes) and introduces an automated QEMU-based test suite under tools/tracing/boottime/. Previous version is here: https://lore.kernel.org/all/178597841107.123558.13065821394773752510.stgit@devnote2/ This version fixes some issues reported by Sashiko [1], simplifying code, and improve test program. [1/2] - Fix raw command detection logic for eprobes, fprobes, and tprobes by requiring ':' or isspace() after type prefix. - Consolidate duplicate loop logic into trace_boot_add_probe_event() helper function. [2/2] - Copy shared library dependencies using ldd if busybox is dynamically linked. - Wrap QEMU execution with timeout command and add -T/--timeout CLI option. - Add pre-flight checks for busybox architecture compatibility and cpio tool in run_boottime_test.sh. - Fix POSIX syntax compatibility and allow bypassing HOST_ARCH skip when custom kernel/QEMU parameters are passed. - Add boottime/run_boottime_test.sh to TEST_PROGS_EXTENDED in selftests/ftrace/Makefile. [1] https://sashiko.dev/#/patchset/178597841107.123558.13065821394773752510.stgit%40devnote2 Thanks, --- base-commit: ea694cdd92b6bfa123b3f5c563e47b4cf968046a Masami Hiramatsu (Google) (2): tracing/boot: Add support for eprobe, fprobe, and tprobe events selftests/ftrace: Add boot-time tracing test framework Documentation/trace/boottime-trace.rst | 18 + kernel/trace/trace_boot.c | 86 +++++++ kernel/trace/trace_dynevent.c | 5 tools/testing/selftests/ftrace/Makefile | 4 tools/testing/selftests/ftrace/boottime/Makefile | 10 + tools/testing/selftests/ftrace/boottime/README | 58 ++++ .../ftrace/boottime/bootconfigs/01-kprobe.bconf | 5 .../ftrace/boottime/bootconfigs/02-synth.bconf | 4 .../ftrace/boottime/bootconfigs/03-eprobe.bconf | 4 .../ftrace/boottime/bootconfigs/04-fprobe.bconf | 4 .../ftrace/boottime/bootconfigs/05-tprobe.bconf | 4 .../ftrace/boottime/bootconfigs/06-instance.bconf | 5 .../selftests/ftrace/boottime/run_boottime_test.sh | 264 ++++++++++++++++++++ .../selftests/ftrace/boottime/tests/01-kprobe.sh | 18 + .../selftests/ftrace/boottime/tests/02-synth.sh | 18 + .../selftests/ftrace/boottime/tests/03-eprobe.sh | 18 + .../selftests/ftrace/boottime/tests/04-fprobe.sh | 18 + .../selftests/ftrace/boottime/tests/05-tprobe.sh | 18 + .../selftests/ftrace/boottime/tests/06-instance.sh | 23 ++ tools/testing/selftests/ftrace/config | 4 20 files changed, 583 insertions(+), 5 deletions(-) create mode 100644 tools/testing/selftests/ftrace/boottime/Makefile create mode 100644 tools/testing/selftests/ftrace/boottime/README create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/01-kprobe.bconf create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/02-synth.bconf create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/03-eprobe.bconf create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/04-fprobe.bconf create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/05-tprobe.bconf create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/06-instance.bconf create mode 100755 tools/testing/selftests/ftrace/boottime/run_boottime_test.sh create mode 100755 tools/testing/selftests/ftrace/boottime/tests/01-kprobe.sh create mode 100755 tools/testing/selftests/ftrace/boottime/tests/02-synth.sh create mode 100755 tools/testing/selftests/ftrace/boottime/tests/03-eprobe.sh create mode 100755 tools/testing/selftests/ftrace/boottime/tests/04-fprobe.sh create mode 100755 tools/testing/selftests/ftrace/boottime/tests/05-tprobe.sh create mode 100755 tools/testing/selftests/ftrace/boottime/tests/06-instance.sh -- Masami Hiramatsu (Google)