From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 662973857015 for ; Wed, 15 Jul 2020 19:48:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 662973857015 Received: by mail-qt1-x843.google.com with SMTP id d27so2745643qtg.4 for ; Wed, 15 Jul 2020 12:48:08 -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=htGLDBF0ILEN9TXQhJGWeIDmAMYXRv7R0PSsqF4jCCU=; b=D/IMh54AU9L+iTN1yxSHmIA0hNqRN7oAxqbADsy0ymSiYoqrcF4lobQZAnGLs+6rnU jGxSDh3Sg3b4lk2QvRSLB4Xd8kbDssBwUzM9BBBpi1QYlV+nvaA4VMx+V4aW7RNreywp q0s4u/Cfh/DzeT4zHe6nn+Xe/fW1C7v51mkpPXJQtEkMcYNuMaMg0FnK1LLJO8O4+wqb nT3LWme/L1HsljAGxXWIfTiIfm/6/VKvnUhbDFHOUuRKdOAxUlTBFnkPie1+wjkCZXts iwrUS4hrP50oCZORhBq08ACofZlNzcRhcTsoncvmKo/LdTNKIrCbXOntpOaL1ZwvtLsW cxnA== X-Gm-Message-State: AOAM53101W+m1VinSpg2qiY6Jd71RoEu5Af4PWpDddeQsOY0rACVGiFY mMey6TDeuWqCxoV5StcbnI2DqmgXKioPqA== X-Google-Smtp-Source: ABdhPJz6EQ5QGk6Aisl8SLyzIDKwfyiLotiBQ9ShfNkJZkxU1n51oiRFXAPYxNPbfsaWiiLq+QC2RA== X-Received: by 2002:ac8:32fb:: with SMTP id a56mr1557645qtb.158.1594842487781; Wed, 15 Jul 2020 12:48:07 -0700 (PDT) Received: from localhost.localdomain ([2804:7f0:8283:82c3:9daa:7611:ebe6:931]) by smtp.gmail.com with ESMTPSA id z18sm4340537qta.51.2020.07.15.12.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 12:48:07 -0700 (PDT) From: Luis Machado To: gdb-patches@sourceware.org, Alan.Hayward@arm.com Cc: omair.javaid@linaro.org, catalin.marinas@arm.com, david.spickett@linaro.org, jose.marchesi@oracle.com Subject: [PATCH 11/23] AArch64: Add MTE ptrace requests Date: Wed, 15 Jul 2020 16:45:01 -0300 Message-Id: <20200715194513.16641-12-luis.machado@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200715194513.16641-1-luis.machado@linaro.org> References: <20200715194513.16641-1-luis.machado@linaro.org> X-Spam-Status: No, score=-10.6 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: Wed, 15 Jul 2020 19:48:09 -0000 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 dcd444136a..ac4b12c928 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1483,6 +1483,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