Skip to content

[PW_SID:1079303] riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT#1745

Closed
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw1079303
Closed

[PW_SID:1079303] riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT#1745
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw1079303

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 1079303 applied to workflow__riscv__fixes

Name: riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1079303
Version: 1

RISC-V already satisfies all prerequisites for build-time mcount sorting:
the sorttable host tool handles EM_RISCV in its machine-type dispatch, and
the __mcount_loc section entries are stored as direct virtual addresses in
the final vmlinux binary, so no relocation processing is required during
the sort step.

Select HAVE_BUILDTIME_MCOUNT_SORT so that BUILDTIME_MCOUNT_SORT is
automatically enabled when DYNAMIC_FTRACE is configured.  This allows
sorttable to sort the __mcount_loc section at link time, making the
run-time ftrace initialisation path skip the software sort and reducing
kernel startup overhead.

Verified with CONFIG_FTRACE_SORT_STARTUP_TEST=y, which confirms that
the section produced by the build is already in ascending order:

  [    0.000000] ftrace section at ffffffff81015a60 sorted properly

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 136.19 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1127.41 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1645.81 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 24.68 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 26.10 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.69 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 84.05 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
kdoc
Desc: Detects for kdoc errors
Duration: 0.89 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot deleted the pw1079303 branch April 17, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants