From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iK42C13LEWA2TwAAWB0awg (envelope-from ) for ; Wed, 27 Jan 2021 15:21:49 -0500 Received: by simark.ca (Postfix, from userid 112) id 228821EF86; Wed, 27 Jan 2021 15:21: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 18F711E590 for ; Wed, 27 Jan 2021 15:21:48 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7513C398B845; Wed, 27 Jan 2021 20:21:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7513C398B845 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1611778905; bh=0UyNBOS/nXY8qr0xK6L794MkfSuAbNQGwVUWZzQaXW8=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=l73bUQsyWrdIj6/s6I43mLrfjxMZda7HG20mUWblyXeSdHzcS/kvD9RvYx6Luzz4F i+UCqYeewQm3w1wvSsk+CLtwrZbEFAtbnbndYAubJtH1VDQPQgMvV9zgMwM8z/VvmZ JfE5jZYAwkuA83vbCf0CEgUqdjjjXx9n9gBWEGo0= Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by sourceware.org (Postfix) with ESMTPS id 569C6398B844 for ; Wed, 27 Jan 2021 20:21:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 569C6398B844 Received: by mail-qt1-x82b.google.com with SMTP id e17so2440247qto.3 for ; Wed, 27 Jan 2021 12:21:42 -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:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0UyNBOS/nXY8qr0xK6L794MkfSuAbNQGwVUWZzQaXW8=; b=qwgjf0KQxdUiC2YdjR4He0SJgvy0Lvb8xRy1gfX9Bkt2GTcFynNBB8nrbJsBQpBRQ4 c7QshrlGE5MHl8FXoqyCaJefyZyWY6Wp/oPJz8Z01ybjRVl1Dh0MtDiD+QeaKXPYW/Qa A+AvEseSUq3Yig+2NEzUPFQuGSQoKXt/D21OcvMjlf+yWum0QAhnhMTNjx8UbzpugRcB +mQD4/AU+WHqkQL0Fe2BgI9r3qnZ8OKi/HvIw/36IDq872SFAZLlX8uSEpKAb0sgmyAm a7K6BlyexQmmpx5aYsprun+t6k18oIxFWJ0Nl8fRIz3GKpRXHe7JQPTnvaC/5nHeAhIQ N14A== X-Gm-Message-State: AOAM532Ht6OnpGYYMNMULCzb9biq6/MhaUAzAUXEXsJptMWDMwjbieS6 u9Lcp1ws+9nDYODnTNKRZLLunbCnm+Ck7w== X-Google-Smtp-Source: ABdhPJzxSfoAs7IHKKd8QI9nnTvSucOpp5hUj01e/LZ25p1gLoBa9KLaqYRZwY/zouytmrwfVuMPzA== X-Received: by 2002:ac8:728c:: with SMTP id v12mr11286267qto.133.1611778896942; Wed, 27 Jan 2021 12:21:36 -0800 (PST) Received: from localhost.localdomain ([2804:7f0:8284:874d:b82c:87fc:4324:adab]) by smtp.gmail.com with ESMTPSA id b194sm1854531qkc.102.2021.01.27.12.21.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 12:21:36 -0800 (PST) To: gdb-patches@sourceware.org Subject: [PATCH v5 11/25] AArch64: Add MTE ptrace requests Date: Wed, 27 Jan 2021 17:20:58 -0300 Message-Id: <20210127202112.2485702-12-luis.machado@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210127202112.2485702-1-luis.machado@linaro.org> References: <20210127202112.2485702-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 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 4e1e6da88d..b763351912 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1506,6 +1506,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