From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by sourceware.org (Postfix) with ESMTPS id 6F990385084D for ; Fri, 24 Feb 2023 23:27:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F990385084D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f53.google.com with SMTP id bw19so793614wrb.13 for ; Fri, 24 Feb 2023 15:27:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HWAedcKLhcuXRVespkqjf7StNzwhSv3X+/Y4gLzXPso=; b=biy7/WbAL90BOBFwyeGxMYkavLk1Dbk47rNwPjnaRRjQULPvquMh9oCE4idHFp0v2y n8O2pVGcaV9VDKOA5CsmN6I8eiBjcOxBmYvbAch9oTRWH+x+dP0hcoaq9ag4bGs1ZVes EV9L2zZZG9EEOOEAcQbNN5xIP8aJqCntiBgZRB13D0V3z6RuVAsXZcDbneYGJnBQUKQJ 3ghqW56hi8UL9Yam2GH+sIf7yf7Fr0UPcXLCevVFWT1duWCApK1ZTNDLfXErYWuzJ3ue hEOOMtzFT8xYa+diVE0H1swOV1lfd1w8GhXEmczO8qwkwHaLbotIzEAK5s+CZRwiwh2W e/KQ== X-Gm-Message-State: AO0yUKVDow7T3xJJDNv30zNh8ujxvSFn7h6KGzC7y+T3fNP6f4Jl+UqQ U06dbFx15h6mo9h3EAFeVtxiSEcN3S0liw== X-Google-Smtp-Source: AK7set+trT9oKYbXPofeQbbL7krnNZfoyKFHQ02jjF/2Hif34go4DyM6j5KYzIM4swZ3V7C4hIQQog== X-Received: by 2002:a05:6000:50:b0:2c9:23c4:8f93 with SMTP id k16-20020a056000005000b002c923c48f93mr323559wrx.57.1677281218388; Fri, 24 Feb 2023 15:26:58 -0800 (PST) Received: from localhost ([2001:8a0:f92b:9e00::1fe]) by smtp.gmail.com with ESMTPSA id l8-20020adff488000000b002c557f82e27sm112434wro.99.2023.02.24.15.26.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Feb 2023 15:26:57 -0800 (PST) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 2/2] Regenerate Linux syscall group info Date: Fri, 24 Feb 2023 23:26:50 +0000 Message-Id: <20230224232650.4031472-3-pedro@palves.net> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20230224232650.4031472-1-pedro@palves.net> References: <20230224232650.4031472-1-pedro@palves.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This commit makes use of the new script to regenerate the Linux syscall group info against strace git hash e88e5e9ae6da68f22d15f9be3193b1412ac9aa02. Like so: $ cd gdb/syscalls/ $ ./update-linux-defaults.sh ~/strace.git/ Generating linux-defaults.xml.in $ make for f in aarch64-linux.xml amd64-linux.xml arm-linux.xml bfin-linux.xml \ i386-linux.xml mips-n32-linux.xml mips-n64-linux.xml \ mips-o32-linux.xml ppc64-linux.xml ppc-linux.xml s390-linux.xml \ s390x-linux.xml sparc64-linux.xml sparc-linux.xml; do \ xsltproc --output $f apply-defaults.xsl $f.in; \ done The result is that a lot more syscalls end up assigned to groups. Some lose their group info, but that just mirrors what strace does. The gdb/syscalls/linux-defaults.xml.in file shows a large diff because the new version is ASCII sorted, while the current version was somewhat (but not consistently) sorted by "family" of syscalls. If I sort the old file and diff against the new, the difference is like this: - + + + + + + + + + + + + + + + + + + + + + + + @@ -28,14 +52,17 @@ + + + @@ -57,7 +84,11 @@ + + + + @@ -72,16 +103,26 @@ + - + + + + + + - + + + + + @@ -98,19 +139,31 @@ + + + + + + + + + + + + @@ -126,45 +179,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + - + + @@ -172,12 +278,14 @@ + - + + @@ -198,38 +306,78 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + - + + - - + + + Change-Id: I679d59d42fb2a914bf7a99e4c558e9696e5adff1 --- gdb/syscalls/aarch64-linux.xml | 26 +- gdb/syscalls/amd64-linux.xml | 106 +++--- gdb/syscalls/arm-linux.xml | 26 +- gdb/syscalls/bfin-linux.xml | 26 +- gdb/syscalls/i386-linux.xml | 124 +++---- gdb/syscalls/linux-defaults.xml.in | 545 ++++++++++++++++++----------- gdb/syscalls/mips-n32-linux.xml | 122 +++---- gdb/syscalls/mips-n64-linux.xml | 100 +++--- gdb/syscalls/mips-o32-linux.xml | 122 +++---- gdb/syscalls/ppc-linux.xml | 124 +++---- gdb/syscalls/ppc64-linux.xml | 104 +++--- gdb/syscalls/s390-linux.xml | 122 +++---- gdb/syscalls/s390x-linux.xml | 102 +++--- gdb/syscalls/sparc-linux.xml | 114 +++--- gdb/syscalls/sparc64-linux.xml | 94 ++--- 15 files changed, 1001 insertions(+), 856 deletions(-) diff --git a/gdb/syscalls/aarch64-linux.xml b/gdb/syscalls/aarch64-linux.xml index e1cf14850fd..1daafaac814 100644 --- a/gdb/syscalls/aarch64-linux.xml +++ b/gdb/syscalls/aarch64-linux.xml @@ -7,8 +7,8 @@ notice and this notice are preserved. This file is offered as-is, without any warranty. --> - - + + @@ -34,7 +34,7 @@ - + @@ -104,7 +104,7 @@ - + @@ -136,16 +136,16 @@ - - - + + + - + @@ -187,12 +187,12 @@ - + - - - - + + + + diff --git a/gdb/syscalls/amd64-linux.xml b/gdb/syscalls/amd64-linux.xml index c0fba0f0073..445544ed3e5 100644 --- a/gdb/syscalls/amd64-linux.xml +++ b/gdb/syscalls/amd64-linux.xml @@ -73,7 +73,7 @@ - + @@ -140,7 +140,7 @@ - + @@ -169,7 +169,7 @@ - + @@ -192,8 +192,8 @@ - - + + @@ -211,14 +211,14 @@ - + - - + + @@ -245,18 +245,18 @@ - + - + - - - - + + + + @@ -265,7 +265,7 @@ - + @@ -283,7 +283,7 @@ - + @@ -327,50 +327,50 @@ - + - - - - - + + + + + - - - - - + + + + + - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - + diff --git a/gdb/syscalls/arm-linux.xml b/gdb/syscalls/arm-linux.xml index 419da0f4973..987bc8b16b9 100644 --- a/gdb/syscalls/arm-linux.xml +++ b/gdb/syscalls/arm-linux.xml @@ -50,7 +50,7 @@ - + @@ -191,7 +191,7 @@ - + @@ -247,13 +247,13 @@ - + - - + + @@ -275,18 +275,18 @@ - + - + - - - - + + + + @@ -324,7 +324,7 @@ - + @@ -344,7 +344,7 @@ - + diff --git a/gdb/syscalls/bfin-linux.xml b/gdb/syscalls/bfin-linux.xml index fc75edea96d..548726f198d 100644 --- a/gdb/syscalls/bfin-linux.xml +++ b/gdb/syscalls/bfin-linux.xml @@ -40,7 +40,7 @@ - + @@ -140,7 +140,7 @@ - + @@ -194,13 +194,13 @@ - + - - + + @@ -222,15 +222,15 @@ - + - + - - - - + + + + @@ -239,7 +239,7 @@ - + @@ -256,7 +256,7 @@ - + diff --git a/gdb/syscalls/i386-linux.xml b/gdb/syscalls/i386-linux.xml index 531e8980596..ff4c7f1fe4b 100644 --- a/gdb/syscalls/i386-linux.xml +++ b/gdb/syscalls/i386-linux.xml @@ -48,7 +48,7 @@ - + @@ -189,7 +189,7 @@ - + @@ -199,8 +199,8 @@ - - + + @@ -247,15 +247,15 @@ - + - - + + @@ -278,19 +278,19 @@ - + - + - - - - + + + + @@ -299,7 +299,7 @@ - + @@ -317,7 +317,7 @@ - + @@ -360,12 +360,12 @@ - + - - - + + + @@ -381,17 +381,17 @@ - + - - - - - + + + + + - - + + @@ -411,44 +411,44 @@ - - - - - + + + + + - - - - - + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - + diff --git a/gdb/syscalls/linux-defaults.xml.in b/gdb/syscalls/linux-defaults.xml.in index 3564b422516..30c59161cdd 100644 --- a/gdb/syscalls/linux-defaults.xml.in +++ b/gdb/syscalls/linux-defaults.xml.in @@ -5,239 +5,384 @@ are permitted in any medium without royalty provided the copyright notice and this notice are preserved. --> - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + + + - - + - - - - - - - - - - - - + + + + + - - - - - - + + - + + - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + + + + + + + - - + + + + - - + + - - - - + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gdb/syscalls/mips-n32-linux.xml b/gdb/syscalls/mips-n32-linux.xml index 9247b5c3e0b..5e77d729e46 100644 --- a/gdb/syscalls/mips-n32-linux.xml +++ b/gdb/syscalls/mips-n32-linux.xml @@ -71,7 +71,7 @@ - + @@ -138,7 +138,7 @@ - + @@ -185,8 +185,8 @@ - - + + @@ -202,15 +202,15 @@ - + - + - - + + @@ -238,17 +238,17 @@ - + - + - - - - + + + + @@ -256,7 +256,7 @@ - + @@ -274,7 +274,7 @@ - + @@ -323,22 +323,22 @@ - + - - - - + + + + - - - - - + + + + + - + @@ -348,43 +348,43 @@ - - - - - + + + + + - - - - - + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + diff --git a/gdb/syscalls/mips-n64-linux.xml b/gdb/syscalls/mips-n64-linux.xml index d6583a1eb07..89e57a1cb7e 100644 --- a/gdb/syscalls/mips-n64-linux.xml +++ b/gdb/syscalls/mips-n64-linux.xml @@ -71,7 +71,7 @@ - + @@ -138,7 +138,7 @@ - + @@ -185,8 +185,8 @@ - - + + @@ -202,15 +202,15 @@ - + - + - - + + @@ -234,17 +234,17 @@ - + - + - - - - + + + + @@ -252,7 +252,7 @@ - + @@ -270,7 +270,7 @@ - + @@ -319,47 +319,47 @@ - + - - - - + + + + - - - - - + + + + + - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + diff --git a/gdb/syscalls/mips-o32-linux.xml b/gdb/syscalls/mips-o32-linux.xml index 98235dbb513..01b815ad64d 100644 --- a/gdb/syscalls/mips-o32-linux.xml +++ b/gdb/syscalls/mips-o32-linux.xml @@ -46,7 +46,7 @@ - + @@ -152,7 +152,7 @@ - + @@ -202,7 +202,7 @@ - + @@ -212,8 +212,8 @@ - - + + @@ -239,13 +239,13 @@ - + - - + + @@ -269,17 +269,17 @@ - + - + - - - - + + + + @@ -287,7 +287,7 @@ - + @@ -305,7 +305,7 @@ - + @@ -353,22 +353,22 @@ - + - - - - + + + + - - - - - + + + + + - + @@ -388,43 +388,43 @@ - - - - - + + + + + - - - - - + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + diff --git a/gdb/syscalls/ppc-linux.xml b/gdb/syscalls/ppc-linux.xml index c4a79e82e0e..c3607e66e92 100644 --- a/gdb/syscalls/ppc-linux.xml +++ b/gdb/syscalls/ppc-linux.xml @@ -48,7 +48,7 @@ - + @@ -188,7 +188,7 @@ - + @@ -198,8 +198,8 @@ - - + + @@ -219,7 +219,7 @@ - + @@ -237,8 +237,8 @@ - - + + @@ -260,7 +260,7 @@ - + @@ -271,12 +271,12 @@ - + - - - - + + + + @@ -285,13 +285,13 @@ - + - + @@ -317,7 +317,7 @@ - + @@ -366,24 +366,24 @@ - + - - - + + + - + - - - - - - + + + + + + - + @@ -403,43 +403,43 @@ - - - - - + + + + + - - - - - + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + diff --git a/gdb/syscalls/ppc64-linux.xml b/gdb/syscalls/ppc64-linux.xml index 233c7c1b47c..1294e9f520d 100644 --- a/gdb/syscalls/ppc64-linux.xml +++ b/gdb/syscalls/ppc64-linux.xml @@ -48,7 +48,7 @@ - + @@ -188,7 +188,7 @@ - + @@ -198,8 +198,8 @@ - - + + @@ -212,7 +212,7 @@ - + @@ -229,8 +229,8 @@ - - + + @@ -252,7 +252,7 @@ - + @@ -262,12 +262,12 @@ - + - - - - + + + + @@ -276,13 +276,13 @@ - + - + @@ -308,7 +308,7 @@ - + @@ -357,24 +357,24 @@ - + - - - + + + - + - - - - - - + + + + + + - + @@ -388,30 +388,30 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + diff --git a/gdb/syscalls/s390-linux.xml b/gdb/syscalls/s390-linux.xml index 963e458e6ac..8ad9b878e4c 100644 --- a/gdb/syscalls/s390-linux.xml +++ b/gdb/syscalls/s390-linux.xml @@ -41,7 +41,7 @@ - + @@ -168,7 +168,7 @@ - + @@ -178,8 +178,8 @@ - - + + @@ -227,13 +227,13 @@ - + - - - + + + @@ -259,12 +259,12 @@ - + - - - - + + + + @@ -273,7 +273,7 @@ - + @@ -291,7 +291,7 @@ - + @@ -335,15 +335,15 @@ - + - - + + - - + + @@ -362,17 +362,17 @@ - - - - + + + + - + - + - + @@ -392,43 +392,43 @@ - - - - - + + + + + - - - - - + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + diff --git a/gdb/syscalls/s390x-linux.xml b/gdb/syscalls/s390x-linux.xml index b0f0cc46b73..75625ce9b1f 100644 --- a/gdb/syscalls/s390x-linux.xml +++ b/gdb/syscalls/s390x-linux.xml @@ -36,7 +36,7 @@ - + @@ -145,7 +145,7 @@ - + @@ -154,8 +154,8 @@ - - + + @@ -195,13 +195,13 @@ - + - - - + + + @@ -226,12 +226,12 @@ - + - - - - + + + + @@ -240,7 +240,7 @@ - + @@ -258,7 +258,7 @@ - + @@ -302,15 +302,15 @@ - + - - + + - - + + @@ -329,17 +329,17 @@ - - - - + + + + - + - + - + @@ -353,30 +353,30 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + diff --git a/gdb/syscalls/sparc-linux.xml b/gdb/syscalls/sparc-linux.xml index fc146faa392..1de4fbb990b 100644 --- a/gdb/syscalls/sparc-linux.xml +++ b/gdb/syscalls/sparc-linux.xml @@ -48,7 +48,7 @@ - + @@ -116,7 +116,7 @@ - + @@ -162,7 +162,7 @@ - + @@ -196,7 +196,7 @@ - + @@ -220,7 +220,7 @@ - + @@ -277,17 +277,17 @@ - - + + - + - - - - + + + + @@ -308,7 +308,7 @@ - + @@ -354,24 +354,24 @@ - + - - - + + + - + - - - - - + + + + + - + @@ -392,42 +392,42 @@ - - - - - + + + + + - - - - - + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + diff --git a/gdb/syscalls/sparc64-linux.xml b/gdb/syscalls/sparc64-linux.xml index d90f0d961ed..51371827fed 100644 --- a/gdb/syscalls/sparc64-linux.xml +++ b/gdb/syscalls/sparc64-linux.xml @@ -45,7 +45,7 @@ - + @@ -101,7 +101,7 @@ - + @@ -145,7 +145,7 @@ - + @@ -179,7 +179,7 @@ - + @@ -203,7 +203,7 @@ - + @@ -259,17 +259,17 @@ - - + + - + - - - - + + + + @@ -290,7 +290,7 @@ - + @@ -336,24 +336,24 @@ - + - - - + + + - + - - - - - + + + + + - + @@ -368,29 +368,29 @@ - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + -- 2.36.0