From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CCTzOkWf7F8ACwAAWB0awg (envelope-from ) for ; Wed, 30 Dec 2020 10:39:49 -0500 Received: by simark.ca (Postfix, from userid 112) id EADD11F0B7; Wed, 30 Dec 2020 10:39:49 -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 2B14B1F075 for ; Wed, 30 Dec 2020 10:39:49 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D92C5388C02E; Wed, 30 Dec 2020 15:39:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D92C5388C02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1609342788; bh=dWeYAyAiqqlHSfzJDJgJ5qnNJF6sn2Y3jtvxMboDGwE=; 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=Ay9adfLBmXYQ7oCYqXzvPYmMEOAAog5xlcZJXem1Yk+6DHRQqJa7XJYn0jqCgLA+M 6SuOzzmieN7J0TDRhFb5npP2K9xM6PIzskpVFSNoyk9Q7pKqIQIX0p4NOqcXAqBoxm 3223aMx0bsMsWyvl7GsNHPaxJMDCrAAUXP/4z2wI= Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by sourceware.org (Postfix) with ESMTPS id 8E28B388CC08 for ; Wed, 30 Dec 2020 15:39:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8E28B388CC08 Received: by mail-qt1-x836.google.com with SMTP id v5so11117191qtv.7 for ; Wed, 30 Dec 2020 07:39:45 -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:mime-version:content-transfer-encoding; bh=dWeYAyAiqqlHSfzJDJgJ5qnNJF6sn2Y3jtvxMboDGwE=; b=GW3xK/4Ty+oBXu43eyUyCpxcahrc1J5OqO+mOemRiaRNTYCvq522LH/1268BbN4JJe A5Dgvmd3jBmz0BQmmMBKCNJbdsSylthSsLrsFM8V/i/AWHt6UY3OZN/hBxnGUMVAdUYW A9NK4hoDJNDkpDL4BExKzl/TbnzKo6qKunvdPkvVEOTlmzgo3sWg+waZFlL8u0YKsrzm 6Hbqrk0t5orRrQjCS7FZp8g/61pn6cSFRH6Vyrw4tSFZfg3J2Qf2J6cOwylSU6BM5f4i O0pEBnulhnGO6ojgTNoXYvZ+BOPQ72KkBLe1FORT+4P1Rb44UpT+qzIPCgjLK9Ipr879 03gg== X-Gm-Message-State: AOAM5320qFKziTCKlME9/tIHjJ+ZBRcsEUIVGZuithqbG6DAiJEiBNwC PGmTZNx3bZd3RgJLQLRN2WfnjjpKDpOeWg== X-Google-Smtp-Source: ABdhPJy7r191xXia5zt9Futgk6WPqDtXw2nD3+sKv1H4kwE+g5VEF4LSwqFyxb5fvH9Zmvuno+Pq6w== X-Received: by 2002:ac8:6f07:: with SMTP id g7mr53631863qtv.308.1609342784961; Wed, 30 Dec 2020 07:39:44 -0800 (PST) Received: from localhost.localdomain ([2804:7f0:8284:370e:c9ba:c4ec:737b:57da]) by smtp.gmail.com with ESMTPSA id f6sm28589336qkh.2.2020.12.30.07.39.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Dec 2020 07:39:44 -0800 (PST) To: gdb-patches@sourceware.org Subject: [PATCH v4 11/25] AArch64: Add MTE ptrace requests Date: Wed, 30 Dec 2020 12:39:02 -0300 Message-Id: <20201230153916.1586725-12-luis.machado@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201230153916.1586725-1-luis.machado@linaro.org> References: <20201230153916.1586725-1-luis.machado@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 0f2d2eb947..dbaa5e7d59 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1505,6 +1505,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.25.1