| Message ID | 20240814085134.109500-1-kuan-ying.lee@canonical.com |
|---|---|
| Headers |
Return-Path: <elfutils-devel-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B2B93385B532 for <patchwork@sourceware.org>; Wed, 14 Aug 2024 08:52:05 +0000 (GMT) X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by sourceware.org (Postfix) with ESMTPS id 7F5C53858C52 for <elfutils-devel@sourceware.org>; Wed, 14 Aug 2024 08:51:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F5C53858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=canonical.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7F5C53858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=185.125.188.123 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723625512; cv=none; b=gX725WrTjk6rZZri9tDj3Hq0b6DRwoDkLSFVknMmA9ICc3VNEX5KMKx7yVDjLrc0KdsETsS5osNxpLjqywYZVTN4b45mbRuW4lm1Axqw0jINMNRJPHyo/gOTRRLWGnIZ9liqNqqZPPo4wIf+63vaialcQUsIYcUDkpSQzq6uiKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723625512; c=relaxed/simple; bh=LILsE4c6Jgll6R/F2nSc81zyDTHbKCRz8SttOwG5a5E=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=a9OE38XNDO/xSU+SJjY0LakYy0pFHN9Zk0wKwqeRONVcCHCG/A13ElV2afvwaUJp+9iXPGoGYoxQ27VrI6U1+xh5qprsZMbFKx/wmHnB1lfXnVvnzgjz2y91rfznw0NpXNv50o3h02W5zLU9Erc+JnMVeLLDPSfANXeKFR0xqZY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 571743F0F8 for <elfutils-devel@sourceware.org>; Wed, 14 Aug 2024 08:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1723625504; bh=+PONW+7y82u7T8zyWOfBFTsb5dEf7X3iZYaM/98PDrw=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=EbsLIXUIdfvDa5LaueyO51Rg2nYbL8V19oPHf6PBZE/ThlTe6uCuHhONAXb93EP/9 h3JscTmzrsA26DQ9IHBc2XwU/NtKVE5655BecfLtO1e4gBmlj5g2yHXEpIJHqop6+F sGLF5rjhAJK79kNNKgDnzGoKFqOHmlwq8RzbWUt58k7Uys7zJAVHSy+QEJevnQJeFv OnSchx7RIwV4v4jozfOdx68I83/37GHpY0M8o4Ud10bWZFMM1YxZ1CjnVF/MdZE1sI IEpCfBqAamW4RZVo2z7Nk4ptgY1FMaWNf+InGewYaFy/jg033dL7gPJxtuQf2x1onQ gLBLdi2WQTdBg== Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-3dc16d65a58so7436160b6e.1 for <elfutils-devel@sourceware.org>; Wed, 14 Aug 2024 01:51:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723625502; x=1724230302; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+PONW+7y82u7T8zyWOfBFTsb5dEf7X3iZYaM/98PDrw=; b=K+xO8C6R25DiGc49oADZC/RE8e2ArhIumKM3NIWzOuTbwoRfB4BXSE7ReXdTUjMzqG QSEjNQ3lfVW2bh8mAYQcYSS6OQW1s2MIKvHGIloBhdZPaOf0aiyOLfe3Y40796GAfzrx 8sjSq2264igHCYC+ZSlcXHEi0fpDKHixOBnPQnqCBwXpSkYKtBhiXl1rm0pTiwgLtIYT 2svhC1qFQbTEae85eyM7wREERyPqd90HgGz5C/GG5HoH2H2xS3bmopgzr+vXa7ef7EQY WWjz+0UNLQF141woWHhzaRDMie6UQlMeBx6TDk/m0j1Jeoqqabrp1MR0rQUhqrfREFu6 hLaw== X-Forwarded-Encrypted: i=1; AJvYcCUTW+fo2jut+aALoWNZHIPlsbEXFwFKwsHW9c0owXMauFD9roSrM6eHPLeHjt2ENLa4TP4uwgtLKKmLjA6p1WeCTAsM0JC4Fcv9hFycOg== X-Gm-Message-State: AOJu0YwYCiYG1161MDVS2PAt1f6J6mhwKV2OelzXhKCYQL6Uj/F7d7SF i2lNy/7xHtYspCZf1k1wQPakjjS2iqd1cb844lYnrG4DJ2be/eU5Tdd017VHM0THVqk/CT7kWu1 /sqmuexGqs5/2ZhSBuRJsXiF5mCP1pAu7JoEcf0CrXwaumPLz2Dyo7KRjH1qU8fh6kZc2RnQiz7 Tn6auoNFElO1g= X-Received: by 2002:a05:6808:2f12:b0:3d9:3f3f:9cd0 with SMTP id 5614622812f47-3dd2964d86emr2838482b6e.0.1723625502522; Wed, 14 Aug 2024 01:51:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrPZRHjkcW1Jtm3JWwreQRqAZYEuISUDohTQAUv2YCHVxcrlYlnAvYVVuAQGWXugufV5+Qlw== X-Received: by 2002:a05:6808:2f12:b0:3d9:3f3f:9cd0 with SMTP id 5614622812f47-3dd2964d86emr2838463b6e.0.1723625502194; Wed, 14 Aug 2024 01:51:42 -0700 (PDT) Received: from kylee-ThinkPad-E16-Gen-1.. ([122.147.171.160]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7c697a6c701sm2706943a12.77.2024.08.14.01.51.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 01:51:41 -0700 (PDT) From: Kuan-Ying Lee <kuan-ying.lee@canonical.com> To: kuan-ying.lee@canonical.com, elfutils-devel@sourceware.org Subject: [PATCH 0/3] aarch64: add some core note types name Date: Wed, 14 Aug 2024 16:51:17 +0800 Message-ID: <20240814085134.109500-1-kuan-ying.lee@canonical.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Elfutils-devel mailing list <elfutils-devel.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/elfutils-devel/> List-Post: <mailto:elfutils-devel@sourceware.org> List-Help: <mailto:elfutils-devel-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=subscribe> Errors-To: elfutils-devel-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
aarch64: add some core note types name
|
|
Message
Kuan-Ying Lee
Aug. 14, 2024, 8:51 a.m. UTC
Patch 1: - Add MTE related regset in core note Patch 2: - Add PAC related regset in core note Patch 3: - Add some core note types name Kuan-Ying Lee (3): aarch64: Add NT_ARM_TAGGED_ADDR_CTRL regset aarch64: Add NT_ARM_PAC_* regset aarch64: add some new core note types name backends/aarch64_corenote.c | 33 ++++++++++++++++++++++++++++++++- libebl/eblcorenotetypename.c | 6 ++++++ libelf/elf.h | 2 ++ 3 files changed, 40 insertions(+), 1 deletion(-)
Comments
Hi, On Wed, Aug 14, 2024 at 04:51:17PM +0800, Kuan-Ying Lee wrote: > Patch 1: > - Add MTE related regset in core note > Patch 2: > - Add PAC related regset in core note > Patch 3: > - Add some core note types name This look good. Thanks. For elf.h we try to keep it in sync with the glibc elf/elf.h. Since they recently added the same (and more) NT_ARM_* constants I'll sync that file seperately before incorporating your patch. Did you test the output on a core file that has these new regsets and core notes with eu-readelf to see if it looks correct? Thanks, Mark
On Sat, Aug 17, 2024 at 12:47:03AM +0200, Mark Wielaard wrote: > Hi, > > On Wed, Aug 14, 2024 at 04:51:17PM +0800, Kuan-Ying Lee wrote: > > Patch 1: > > - Add MTE related regset in core note > > Patch 2: > > - Add PAC related regset in core note > > Patch 3: > > - Add some core note types name > > This look good. Thanks. For elf.h we try to keep it in sync with the > glibc elf/elf.h. Since they recently added the same (and more) > NT_ARM_* constants I'll sync that file seperately before incorporating > your patch. > > Did you test the output on a core file that has these new regsets and > core notes with eu-readelf to see if it looks correct? > Thank you for the review. Yes, I have tested the output on a core file that has these new regsets. Output is as following: ... LINUX 544 ARM_SVE LINUX 544 ARM_SSVE LINUX 16 ARM_ZA LINUX 16 ARM_PAC_MASK pauth_dmask: 0x007f800000000000, pauth_cmask: 0x007f800000000000 LINUX 8 ARM_PAC_ENABLED_KEYS enabled_keys: 0x000000000000000f LINUX 8 ARM_TAGGED_ADDR_CTRL tag_ctrl: 0x000000000007fff3 Thank you, Kuan-Ying Lee > Thanks, > > Mark