From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yHUrMsl2qV/vbwAAWB0awg (envelope-from ) for ; Mon, 09 Nov 2020 12:05:13 -0500 Received: by simark.ca (Postfix, from userid 112) id C7DFF1F08D; Mon, 9 Nov 2020 12:05:13 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (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 simark.ca (Postfix) with ESMTPS id ADDDC1E552 for ; Mon, 9 Nov 2020 12:05:12 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9250E3896C24; Mon, 9 Nov 2020 17:05:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9250E3896C24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1604941510; bh=KHmsdMHyxC205FHTZGqsJU9XNulBgxuNboWdw+PDMk8=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Q2tFIMdGxiJ0+e7Kjx4cS0ssTU2GrMQDNdPbLGf/k55/GNnTvRy1ymm9ganJHg7c+ N5xjySxg9TUgje3jjsL/I9KGI4lJb7mIak6BoHjW6sXZpigUwmXK8ztbMyXnHwC/dp bCnAYGSJM3oAtXTn5aJub4z+iNo7QZS/yHA2XJPs= Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by sourceware.org (Postfix) with ESMTPS id AD05E3896C26 for ; Mon, 9 Nov 2020 17:05:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AD05E3896C26 Received: by mail-qt1-x844.google.com with SMTP id n63so6477438qte.4 for ; Mon, 09 Nov 2020 09:05:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KHmsdMHyxC205FHTZGqsJU9XNulBgxuNboWdw+PDMk8=; b=Wd+KzKovapa7rioJC1jZBwd07SAn4sdj1SHfFQF1eMS+dyIogV0/c904Mmtqd/9TaL /B9o9DTOWfj1+uzM+XeDQwhwVuvimE2lLpRbRn+E/78scE03fKbNa4hfwK4IP/Rea7j8 Vd0w6P/oVnGwXOl+e6taxqVvpbwrgUrgLLjWlBsJgEWBwtyd2WjluUEbcAUGQj5MhkSY c7JyidJKucYPXE8wkHmcfPa+3KIObHhROlSBiyqO4SA5K4/oUWovPsfuxcMrFwV3eI05 infD5hs0YI5qRFrc3H3EhTOgXcfunzfNbP53r57W2boAuc6+YzKyuJokG0ij2AyaLxjN jkhw== X-Gm-Message-State: AOAM530z4eZOxkQBSXc4tKaZ0RvCQaFtvtn61lvUG8G6uC7ditZaDg21 bmprJPbAFQBm2lgCtYkRGrU0IO8FvQUKEw== X-Google-Smtp-Source: ABdhPJwbiPGGOGWgGj1+FZxmI1CtCPdHzoWDcb5GXzXWRZlONF9KQ6Mov4eIMxl6jMdiT2gpJuYDrA== X-Received: by 2002:ac8:5649:: with SMTP id 9mr13705546qtt.379.1604941506918; Mon, 09 Nov 2020 09:05:06 -0800 (PST) Received: from localhost.localdomain ([2804:7f0:8284:1487:5c3b:b268:ad95:5f37]) by smtp.gmail.com with ESMTPSA id s2sm5948358qtw.44.2020.11.09.09.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 09:05:06 -0800 (PST) To: gdb-patches@sourceware.org Subject: [PATCH v3 11/24] AArch64: Add MTE ptrace requests Date: Mon, 9 Nov 2020 14:04:22 -0300 Message-Id: <20201109170435.15766-12-luis.machado@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201109170435.15766-1-luis.machado@linaro.org> References: <20201109170435.15766-1-luis.machado@linaro.org> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Luis Machado via Gdb-patches Reply-To: Luis Machado Cc: david.spickett@linaro.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" This patch adds the required ptrace request definitions into a new include file that will be used by the next patches. They are PTRACE_PEEKMTETAGS and PTRACE_POKEMTETAGS. gdb/ChangeLog: YYYY-MM-DD Luis Machado * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h. * nat/aarch64-mte-linux-ptrace.h: New file. --- gdb/Makefile.in | 1 + gdb/nat/aarch64-mte-linux-ptrace.h | 33 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 gdb/nat/aarch64-mte-linux-ptrace.h diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 4fd0c1d8e5..4f08beea44 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1497,6 +1497,7 @@ HFILES_NO_SRCDIR = \ nat/aarch64-linux.h \ nat/aarch64-linux-hw-point.h \ nat/aarch64-sve-linux-ptrace.h \ + nat/aarch64-mte-linux-ptrace.h \ nat/amd64-linux-siginfo.h \ nat/gdb_ptrace.h \ nat/gdb_thread_db.h \ diff --git a/gdb/nat/aarch64-mte-linux-ptrace.h b/gdb/nat/aarch64-mte-linux-ptrace.h new file mode 100644 index 0000000000..099b6440ca --- /dev/null +++ b/gdb/nat/aarch64-mte-linux-ptrace.h @@ -0,0 +1,33 @@ +/* Common native Linux definitions for AArch64 MTE. + + Copyright (C) 2018-2020 Free Software Foundation, Inc. + + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef NAT_AARCH64_MTE_LINUX_PTRACE_H +#define NAT_AARCH64_MTE_LINUX_PTRACE_H + +/* MTE allocation tag access */ + +#ifndef PTRACE_PEEKMTETAGS +#define PTRACE_PEEKMTETAGS 33 +#endif + +#ifndef PTRACE_POKEMTETAGS +#define PTRACE_POKEMTETAGS 34 +#endif + +#endif /* NAT_AARCH64_MTE_LINUX_PTRACE_H */ -- 2.17.1