From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by sourceware.org (Postfix) with ESMTPS id 3F282385480F for ; Mon, 22 Mar 2021 13:21:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3F282385480F Received: by mail-qk1-x72d.google.com with SMTP id y5so8880427qkl.9 for ; Mon, 22 Mar 2021 06:21:49 -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:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CHzqmck+9xrpADY6nyQaapM/ieWp+sUcfWaLL77Sa74=; b=YVyb4N8AyetEn5C8xi+6xkf8XPT5EuyrL9eHrETwsMUdOCgBd8fz9vTlu+ufMYv25U fFLcEpk9ploSHW4Wx4clW1JuhhNeWRzOGWZcX6I04JZHu+RPhhDjWTB4J7QB1k88A1x2 ct0gy/P/sUwioDOTFMkPos70wJZ8tKrpziRYeNuWTKOuEbmDmNTtXydmzUDp+vuINV8q SXZC8v0t7maZXYlNm+2xl2ajL6uBMNVf9pHx6iIrswFOZ8BjBt2zSLAFlj0H69xJBJem uJjrArlIUTDRzwuuHRnDNAVMYOody8Hz0jDv/ZcpWZ3invfaDIkDlgJpvV+cctZRN/Yt JrUA== X-Gm-Message-State: AOAM530JPV7Xb0dQWzhpE5igoI3HQZeiLSAAcc6GAW3h41SxZ8K9aCoC MEA5t+cBuaB9yygh8BzViVmS4XqkXBCgvg== X-Google-Smtp-Source: ABdhPJyE8C50UaSMsRVyinWZyt7Ec0e+7yuZXiDr7kuSjE5xC6qyxWo2ZXh+hCyuEaXd1lGmREVM5A== X-Received: by 2002:a37:46d5:: with SMTP id t204mr10577926qka.211.1616419308820; Mon, 22 Mar 2021 06:21:48 -0700 (PDT) Received: from localhost.localdomain ([2804:7f0:4841:2841:2c21:ec8a:30f3:55a6]) by smtp.gmail.com with ESMTPSA id r35sm7364575qtd.95.2021.03.22.06.21.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 06:21:48 -0700 (PDT) From: Luis Machado To: gdb-patches@sourceware.org Subject: [PATCH v6 11/25] AArch64: Add MTE ptrace requests Date: Mon, 22 Mar 2021 10:21:05 -0300 Message-Id: <20210322132120.1202230-12-luis.machado@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210322132120.1202230-1-luis.machado@linaro.org> References: <20210322132120.1202230-1-luis.machado@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.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: , X-List-Received-Date: Mon, 22 Mar 2021 13:21:50 -0000 Updates on v6: - Updated makefile file ordering. - Updated copyright year. -- 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 49202d4653d..7943a3c0d5a 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1510,6 +1510,7 @@ HFILES_NO_SRCDIR = \ mi/mi-parse.h \ nat/aarch64-linux.h \ nat/aarch64-linux-hw-point.h \ + nat/aarch64-mte-linux-ptrace.h \ nat/aarch64-sve-linux-ptrace.h \ nat/amd64-linux-siginfo.h \ nat/gdb_ptrace.h \ diff --git a/gdb/nat/aarch64-mte-linux-ptrace.h b/gdb/nat/aarch64-mte-linux-ptrace.h new file mode 100644 index 00000000000..65ac1415e55 --- /dev/null +++ b/gdb/nat/aarch64-mte-linux-ptrace.h @@ -0,0 +1,33 @@ +/* Common native Linux definitions for AArch64 MTE. + + Copyright (C) 2021 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