From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.30.119 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796199327; b=grnBG2Mf7kBlgGszelHWHDn/1rbslqsBV4KD+2VpyLEmh/7X4w6WQm1QlJCjLuQjlQSa EEnjNqDlRlHBvG+iwtb8DT9RX62sDzcKih/+4SpE2FjRS4T1wORv2KVzJ5VISztZiCWXK E0KhxBXN+eStinsBXqBLwncuszGhllW2t7z2NUOsxechI4/YmOipSDzqB6tuJQ0Lx7PiF 3uPH7qAbmTinUd+71VG8QXixMETnjKL1/mGjD+GD75ALieA4Nzp3cF7AWzIYM8CRKfrGW JQEkPZdIvyiTusjR1CACszovSjC96EcIbk0lMQnBSgx1UwXp7FZ4oWxcE/SuSbvj4NA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796199327; h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=jaZXeo9YPfvVWWw/y2tCtP/Gxkbwv8NinUZhcm61ehU=; b=NAosoSadqovd1c7ExbP3ZCLnHCSAzClaImwEdJLam5rbzwhxoLnTJsebdjK/Opx/Je2t yFVNDVFHKiUciB3FKRfsTB6B56FBJ7bInoAkv6yVW6QjAcvwdSTK4oj0rXj07861GP+I4 F2n4NgyRHmp1cTFV9lnokahw3ATFyKTxkqqEZ0KgVd63HKec8S2Uz9QYaFpRq3aIz6IY1 fR3xs+O0FrEUyhtMPvtWdhg+R6Psv5AiVhvABYHZJQzT9iw8joeq4obihT99lAr+OoY8c yuyfBSkBujwCHJwvM4mXde4n2s4prZc4w1yTi+hW6eERNJLrlATHRRgkQd8seGHFeZg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b="MiLCR/c2"; arc=none smtp.remote-ip=115.124.30.119 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C2A8606A69B; Wed, 2 Dec 2026 08:15:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6C2A8606A69B Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=MiLCR/c2 DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1796199323; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=jaZXeo9YPfvVWWw/y2tCtP/Gxkbwv8NinUZhcm61ehU=; b=MiLCR/c23kfsgVAEe9/arNmTl3hHSGotcnrXBZgzTn1iBZGS7XR2jiYvxrlalK1Z9DUbfkgbbZ/sCinZ3LX/rFM1tbgyzzyEZaohtv6geH5s93FXoP/gijFhBJaXJflJZFAC49UIMit4wEnZ8nl7LP5hy3kRH3MlktXY8pHRK58= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033040069076;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=33;SR=0;TI=SMTPD_---0XG8NjDw_1796199319; Received: from 30.246.164.13(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0XG8NjDw_1796199319 cluster:ay36) by smtp.aliyun-inc.com; Wed, 02 Dec 2026 16:15:21 +0800 Message-ID: <5e58068b-3af7-4eee-858f-e8b1e0a82ee9@linux.alibaba.com> Date: Wed, 2 Dec 2026 16:15:19 +0800 X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 02/10] riscv: Add KUnit test for stack trace start frames To: sashiko-reviews@lists.linux.dev, palmer@dabbelt.com, pjw@kernel.org, aou@eecs.berkeley.edu Cc: alex@ghiti.fr, oleg@redhat.com, rostedt@goodmis.org, mhiramat@kernel.org, mark.rutland@arm.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, james.clark@linaro.org, jpoimboe@kernel.org, jikos@kernel.org, mbenes@suse.cz, pmladek@suse.com, joe.lawrence@redhat.com, shuah@kernel.org, mpdesouza@suse.com, martin@kaiser.cx, kmehltretter@gmail.com, oliver.yang@linux.alibaba.com, zhuo.song@linux.alibaba.com, jkchen@linux.alibaba.com, linux-trace-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, live-patching@vger.kernel.org References: <20260914092648.51254-1-xueshuai@linux.alibaba.com> <20261110013750.36800-1-xueshuai@linux.alibaba.com> <20261110013750.36800-3-xueshuai@linux.alibaba.com> From: Shuai Xue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/10/26 9:50 AM, sashiko-bot@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 1 potential > issue to consider: > - [Medium] riscv: vmlinux link failure when CONFIG_KUNIT=m with > RISCV_STACKTRACE_KUNIT_TEST > -- > > commit 88e1ac2e959d970cabee9d276d02925cc3d44f40 > Author: Karl Mehltretter > > riscv: Add KUnit test for stack trace start frames > > This commit adds a KUnit test suite to verify the starting frame and skip > counts of stack_trace_save() and ftrace_return_address() on RISC-V. > > Link: https://lore.kernel.org/r/20261010132712.46931-2-kmehltretter@gmail.com > >> diff --git a/arch/riscv/kernel/tests/Kconfig.debug b/arch/riscv/kernel/tests/Kconfig.debug >> index 40f8dafffa0ab..eb79df5b2c5a4 100644 >> --- a/arch/riscv/kernel/tests/Kconfig.debug >> +++ b/arch/riscv/kernel/tests/Kconfig.debug >> @@ -42,6 +42,18 @@ config RISCV_KPROBES_KUNIT >> >> If unsure, say N. >> >> +config RISCV_STACKTRACE_KUNIT_TEST >> + bool "KUnit tests for RISC-V stack trace start frames" >> + depends on KUNIT && STACKTRACE && FRAME_POINTER && KALLSYMS > > [Severity: Medium] > Does declaring RISCV_STACKTRACE_KUNIT_TEST as bool while depending on > tristate KUNIT break the vmlinux link when CONFIG_KUNIT=m and > CONFIG_RISCV_STACKTRACE_KUNIT_TEST=y (such as under allmodconfig)? > > In that configuration, stacktrace_test.o is built into vmlinux while the > KUnit core symbols it calls (__kunit_do_failed_assertion, kunit_log_append, > etc.) live in kunit.ko, similar to the issue fixed for RISCV_KPROBES_KUNIT > in 5fada1605733 ("riscv: tests: Make RISCV_KPROBES_KUNIT tristate"). > > Should this depend on KUNIT=y instead (since building stacktrace_test as a > module would also cause sprint_symbol_no_offset() in > riscv_stacktrace_check_skip() and riscv_return_address_check() to append > " [stacktrace_test]" to the symbol names)? > Yes. Will fix in next version. Thanks. Shuai