From nobody Sun Feb 8 20:12:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5D0E51A2C06; Fri, 17 Jan 2025 17:59:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737136795; cv=none; b=Tjz0wUOrVDnUSVNfSXLqjnEUVX81xSuSPo5JAgbgnr1tLaN6vWN/Yn9HntrDhHRCrJjfjtFYPw16QHwcfFqyDVq5UXiZ52HZmpUVmjnrZ4vW3dXD5v6mQGRy7LP/tCRRx74RX9NLG3DcWxnTpY9gmlwz7VGMP3x+Lb/GP0uZ/48= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737136795; c=relaxed/simple; bh=/H+OLoZ2kSlBBHpxEGHakZW6kJ82w76RHhbP2QrkPCg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sSa8HlbUifwhJ5SK+q1dghUPKbhvD59K4QYWOCvn0DHgBO3knMDXfVd0LW07n31pXZfXn0Xpw1CH09Z2+t7IlQlA99bQnkfYS68CVJvk4YVux7BZIOFH7IY/0oNpg2/7T/xbpAlJ6L9QmNGeIe4r5pswD1J0Bf7Pr72F8MPcbUI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dG+Xd8mZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dG+Xd8mZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0A37C4AF09; Fri, 17 Jan 2025 17:59:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737136795; bh=/H+OLoZ2kSlBBHpxEGHakZW6kJ82w76RHhbP2QrkPCg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dG+Xd8mZFVXg4fa5H++CKRhsZ+liEdeBWougxx6Ap+TiFx0hAyU0ekKs92BE9oZRl 4Se7/zbmfVUHSwpGtM9EQz7Da0dVGB+EixQJvxd/j/hp0HPveGU9K1SVk55T06seZd yKpb/a6gLZFljuBYuiVReDQIn0X8tej2/OcDXoZqHmHBUGiOvJ4rDmabSahbZFB4aw VdXdW43VQUPmYrxSaJQdP22VbhqG4DxUHu6KKp1Kq2wpca5Jr+0DJHxWkMlPzNrcXd DYbKuVjLyQa2juBlAhBK8NMycYn1+TaAh28f2Av3hOFRwC6PPkHORsn6uscxtiXTst VcUDYVq2JUfrw== Received: from mchehab by mail.kernel.org with local (Exim 4.98) (envelope-from ) id 1tYqdM-00000006AjX-1Yq4; Fri, 17 Jan 2025 18:59:52 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , "Mauro Carvalho Chehab" , linux-kernel@vger.kernel.org Subject: [PATCH RFC 01/10] scripts/get_abi.pl use label to better sort ABI symbols and files Date: Fri, 17 Jan 2025 18:59:30 +0100 Message-ID: X-Mailer: git-send-email 2.47.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" Currently, not all symbols are in labeled alphabetic order. That's because they are using the hash table key, which doesn't necessarely are identical to the label displayed for each symbol/file. Add labels to file as well and use labels instead of key names to sort them. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index de1c0354b50c..2311d4e3f3ef 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -108,6 +108,7 @@ sub parse_abi { $data{$nametag}->{filepath} =3D $file; $data{$nametag}->{is_file} =3D 1; $data{$nametag}->{line_no} =3D 1; + $data{$nametag}->{label} =3D "abi_file_$fn"; =20 my $type =3D $file; $type =3D~ s,.*/(.*)/.*,$1,; @@ -320,7 +321,7 @@ sub output_rest { =20 foreach my $what (sort { ($data{$a}->{type} eq "File") cmp ($data{$b}->{type} eq "File") || - $a cmp $b + $data{$a}->{label} cmp $data{$b}->{label} } keys %data) { my $type =3D $data{$what}->{type}; =20 --=20 2.47.1