From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oOe+BP3kkV9pSAAAWB0awg (envelope-from ) for ; Thu, 22 Oct 2020 16:01:01 -0400 Received: by simark.ca (Postfix, from userid 112) id 0CC4E1E89B; Thu, 22 Oct 2020 16:01:01 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [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 EFCD81E776 for ; Thu, 22 Oct 2020 16:00:54 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 963D3398749F; Thu, 22 Oct 2020 20:00:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 963D3398749F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1603396854; bh=WfDLS+nz9Lu4NrheKlThMNI3tkfJ19YmlWIGlg7r5a0=; 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=pO6BOAPShmcnho7kYRGNfl6CgpN+x0N9v360qO+9wZeEgFWo5rq/RuhvVCMYFh06i ho05YZgYRL2xaELsSd4WHn+7INAQmErC2wox2uWw+MMM/R+SNimGAqqHjWBC0lAIyp 5ygQgK53jE6RRpH+ZBDQt5rvzY3ym9DBVXunyzg0= Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by sourceware.org (Postfix) with ESMTPS id 67DBC39874FD for ; Thu, 22 Oct 2020 20:00:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 67DBC39874FD Received: by mail-qt1-x843.google.com with SMTP id m65so2240684qte.11 for ; Thu, 22 Oct 2020 13:00:51 -0700 (PDT) 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=WfDLS+nz9Lu4NrheKlThMNI3tkfJ19YmlWIGlg7r5a0=; b=uXLtPKKN8ErMoG2FVkqqMOTI+bz27xXqtWyCnDw5Edqb0qxaYBCWgQjFLFmmRZCR0S dpdhWxEzb/0riiKgb7WIUTjSLqFMPlMVcazArrm06rHKaeLsQdifr0ULjDbIMu2pViGc RUNvOWmb1ACPD4RSlVyWMDXNUz52aNEFTgKAOzQCQMmYy/v36KZzwHZufosBdbrJUbFS PLY8wC1UXZcB3/2pWlI2xLDYolpiC6ScSmKueWvMHQ10aUJOyvXkRm+klt1Lm8G6Ajzy Q+m2HkI6ZEEdWPHrmaJ9yXNyQ+nHD3dQQuUvDI/qAp0PK3aiB1uiy4nT2HaVkndTE58h nQQg== X-Gm-Message-State: AOAM531YvrclA8pdvbDty4zIEsKGC6OJkbM3LTOZ4XU0po5ffQQZuJ8a a4/WpZO0FImrSybJGRVVkbFFTWQQXqXExA== X-Google-Smtp-Source: ABdhPJxk94zPUNVfdUaLICw7gZphAet8lNDGyg4HL02Fk1hasuCjDg86GvW4kgN/Gy+sZ9MLOlzDyA== X-Received: by 2002:aed:22d9:: with SMTP id q25mr3616783qtc.59.1603396850837; Thu, 22 Oct 2020 13:00:50 -0700 (PDT) Received: from localhost.localdomain ([2804:7f0:8284:1487:b9b1:f72a:8f1:600]) by smtp.gmail.com with ESMTPSA id a21sm1711208qkk.98.2020.10.22.13.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2020 13:00:50 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [PATCH v2 11/24] AArch64: Add MTE ptrace requests Date: Thu, 22 Oct 2020 17:00:01 -0300 Message-Id: <20201022200014.5189-12-luis.machado@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201022200014.5189-1-luis.machado@linaro.org> References: <20201022200014.5189-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 6c3066a59e..8c9e6c9f6c 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1495,6 +1495,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