From: Chen Pei <cp0613@linux.alibaba.com>
To: martin@kaiser.cx
Cc: cp0613@linux.alibaba.com, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org, mhiramat@kernel.org,
palmer@dabbelt.com, pjw@kernel.org, rostedt@goodmis.org
Subject: Re: [PATCH] riscv: ftrace: sorttable: fix mcount sorting
Date: Tue, 9 Jun 2026 09:30:08 +0800 [thread overview]
Message-ID: <20260609013008.6868-1-cp0613@linux.alibaba.com> (raw)
In-Reply-To: <20260608201904.715374-1-martin@kaiser.cx>
On Mon, 8 Jun 2026 22:18:27 +0200, martin@kaiser.cx wrote:
> The sorttable helper program does not take into account that the
> -fpatchable-function-entry compiler flag reserves an additional 8 bytes
> before each traceable function. (The size in bytes is the same for
> RV32/64 or compressed/uncompressed instructions).
>
> Define before_func = 8 to fix the mcount sorting for risc-v, share this
> setting with arm64.
>
> Fixes: de04fca5d2f8 ("riscv: ftrace: select HAVE_BUILDTIME_MCOUNT_SORT")
Hi Martin,
Thanks for the patch.
This has already been addressed by Wang Han here:
https://lore.kernel.org/linux-riscv/20260527123530.2593918-2-wanghan@linux.alibaba.com/
Thanks,
Pei
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
prev parent reply other threads:[~2026-06-09 1:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-08 20:18 [PATCH] riscv: ftrace: sorttable: fix mcount sorting Martin Kaiser
2026-06-09 1:30 ` Chen Pei [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260609013008.6868-1-cp0613@linux.alibaba.com \
--to=cp0613@linux.alibaba.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=martin@kaiser.cx \
--cc=mhiramat@kernel.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox