From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) (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 07CFE2BDC28 for ; Tue, 9 Jun 2026 01:30:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.112 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780968616; cv=none; b=jROEOUVA0DzSCAGhAw1UT2F5plT+2FQ//WW7k8Pq+GHWRzSkpuK3pwO8tPWaLc34rRMT2vwMfG0tVwAM5wvOXxZ3hZPrQWts5hYXOsWXcC4gbrs4RE5qAt24EHYKetlNDjzzHSWyRLXiEcjM/C5W7k95bmKFt55nWokYPck5whQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780968616; c=relaxed/simple; bh=0aiZWVIdeS6lTKqR3ylod2SrYB9p5ofrs12QGGmJAcU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j9cCJhpqVUyEwO1Bv1cDAqJRr7SvzG5BsrYZzKPVm5Eb54htP/MLNfNWnuaCTeZICozP8PJDG6FrHcrD4SfgxgjxgBXf2dav5g0cjswXYPBr16WUgFACDuZ0QSK6+JbucVEVNl6xfSQvGj7xLvpxor93HjVbKBZR5TrWNUtAEeg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=XbX8/gPz; arc=none smtp.client-ip=115.124.30.112 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.b="XbX8/gPz" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1780968612; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=S8CasrBqDcSvnwLoPc7FFTVmuO9W7HXHe082ZFLE2Nk=; b=XbX8/gPzRNLL57tZjPApguYTSsK3s3hq3CdYUPidoUTEb+AgYq47jumnE1N3Ns8bEfDfdRZaZIAIQmJqnSvk3+lCHB/5b4+mDgawiHZ4+SN+qI14p55n9M6FnKkfZYe4B/Zg3hNfXMEU3leennopb4pAWMEaheBLM17UWK+8drs= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam011083073210;MF=cp0613@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0X4UCqPr_1780968608; Received: from DESKTOP-S9E58SO.localdomain(mailfrom:cp0613@linux.alibaba.com fp:SMTPD_---0X4UCqPr_1780968608 cluster:ay36) by smtp.aliyun-inc.com; Tue, 09 Jun 2026 09:30:12 +0800 From: Chen Pei 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 Message-ID: <20260609013008.6868-1-cp0613@linux.alibaba.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260608201904.715374-1-martin@kaiser.cx> References: <20260608201904.715374-1-martin@kaiser.cx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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