Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp157418lqh; Fri, 3 May 2024 17:31:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNzH4dAl/cw5lK/1GLACuTN2kDQnpt0yRbGSbid3j6Nr8Il3yzVEYAjlMJiTwujrVmBjbxtvEuO9a0A77qItULC6cjnPtGfLZuyGgjdg== X-Google-Smtp-Source: AGHT+IH4QAg74T2/8dr5X+aoZnkGBIvz6uQL/ReHlktVBj2mv/e4PZm1fTS7t+XhCsUuU1tIxfYC X-Received: by 2002:aca:2107:0:b0:3c5:e2dc:8a6a with SMTP id 7-20020aca2107000000b003c5e2dc8a6amr4897303oiz.24.1714782681547; Fri, 03 May 2024 17:31:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714782681; cv=pass; d=google.com; s=arc-20160816; b=cmSOyNTRCEckliliQbzS+08kSfE5EgwfF9fhh2Esk1/+NY2uU4VZ+b8JGZOQ75exPb XmuTs6FO12nCTiZCzNq2DOhHga15A2lbjy4LiI6AfHJ2nsxDCronJKHD58SJdE6qpmeo yQLpWm7zb+zvqHzFJXiUYBsL95i73S9vngyR2EFLtBmMx1JmHRkQAB7XmUmPTLaMCmvn Q3jBQA5wKgHlDep5uws5+79HaxMBpaXX2+4bhusXSK4oELTl9dcmENUvUGKX9jyfCWtc WDKXFmUA1Aw2j7NpqAHKOoHDct3gttGbd+UIW1ppEl9y3mqIOrvQT5DWu3LGanHij4nT vJxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=mvVGVT6MCss+2/h0HFTvcSkj9lK/aARweXx6f1UKJ7Y=; fh=RfPw7Llm8j6sRsJS3jErpV27cgSeeOoscbqGq4nLScQ=; b=E39+imLgGNdqKORTcwTBpCG+beqeUz03qfBBrVhGmAI58f0zrEHz2Qto45wMStJg6D hDLIIhUD7rA3VZcArXKJ1stFpNN5ophRwU9Oinr4m+ewqDgqZErjMxPGLSGm0eBGGf+i dgpzc+IoihVSh/tv6pTOnDESbS7GiY7O14ojG/9aywLTSaNDKrsWi1QCp22mae+k8w/F GQHdnN6+ZhjIy+1LuY9TnGdHQF2AdlnLMjZt7pZZM/EIp+9BuC7gsqWizAldB7uJFFjc P15BL87XGYeQiZ6ClNm8T5UNJ4ADRCeHgyWxoZLOn5Ghamt/vRymaKmvHbuXrg/pMtM3 LQxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mEFOCn6M; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168450-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168450-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jq6-20020ad45fc6000000b006a0c99a9260si4360561qvb.104.2024.05.03.17.31.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 17:31:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168450-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mEFOCn6M; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168450-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168450-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BA3FD1C22BD3 for ; Sat, 4 May 2024 00:31:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F84817578; Sat, 4 May 2024 00:30:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mEFOCn6M" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CC8A107B3; Sat, 4 May 2024 00:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714782618; cv=none; b=KwaFp7iFLQJp0+fofwC/kGaIAm6SsI0q8I7X83fz6wmXm9wGdOUQsEgTrAsnobGpBvUqDAYXsapUWETX7ObMKyxEzmw8IPNE6iIxiC/d7GQJaJDolvxAGk+ECcVRcJrGgXXAzJDKlHagAAuB0IeiDwZHunebqU4QLh5UpJyur1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714782618; c=relaxed/simple; bh=akE5P6xvZT48f5LRQWKFAyRAluTFD6SKWbtJB6gxXDE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BwNU+mmdmc3nwF+dQdhcgHkVGaqtuw0vf26fd+xsmPvzz3uJyZPPZQLTb6i056tNOPe4kBFa2yoh8waaOEpsKImE5tGph1Jj1iqUn74YD7pLQlV/Zr1H/DwGfCa9mPIV6tYZAi/axZMmf4wXRUFuyeyoqCn9KmeY38nBB/Z/AL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mEFOCn6M; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2A35C4AF1A; Sat, 4 May 2024 00:30:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714782618; bh=akE5P6xvZT48f5LRQWKFAyRAluTFD6SKWbtJB6gxXDE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mEFOCn6M0/9FUvNcIDMh645SuA6hG0akoQKvB+ogesqfmOVkkryzy317thFixlYaT jT0pIGyWZec5FtbBb2fvSdERaUl+MA2M1GiODZsWdBqLdR2zAzt2TR1GUqAn8TgJ6c jtGuzWWJ8q5/TpHhLac5Df+dU4ptxTmZiiBA1VOXmgXkQ0+5v8eSxYTuoLpj92koNh aLG4yZedRRylNI0sepW39uw9NDJcJBauAHNY0kq9ZhmbPUPAQ5HWjbrP+A/QWCMhh4 UlFI5mCAFWYuZr40FZlblG//YUIcPds3/uSqo0HtePPOViVrumGVaDLsbMz2j7riB+ zH166DwWwqaVw== From: Andrii Nakryiko To: linux-fsdevel@vger.kernel.org, brauner@kernel.org, viro@zeniv.linux.org.uk, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, bpf@vger.kernel.org, gregkh@linuxfoundation.org, linux-mm@kvack.org, Andrii Nakryiko Subject: [PATCH 3/5] tools: sync uapi/linux/fs.h header into tools subdir Date: Fri, 3 May 2024 17:30:04 -0700 Message-ID: <20240504003006.3303334-4-andrii@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240504003006.3303334-1-andrii@kernel.org> References: <20240504003006.3303334-1-andrii@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Keep them in sync for use from BPF selftests. Signed-off-by: Andrii Nakryiko --- .../perf/trace/beauty/include/uapi/linux/fs.h | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tools/perf/trace/beauty/include/uapi/linux/fs.h b/tools/perf/trace/beauty/include/uapi/linux/fs.h index 45e4e64fd664..fe8924a8d916 100644 --- a/tools/perf/trace/beauty/include/uapi/linux/fs.h +++ b/tools/perf/trace/beauty/include/uapi/linux/fs.h @@ -393,4 +393,36 @@ struct pm_scan_arg { __u64 return_mask; }; +/* /proc//maps ioctl */ +#define PROCFS_IOCTL_MAGIC 0x9f +#define PROCFS_PROCMAP_QUERY _IOWR(PROCFS_IOCTL_MAGIC, 1, struct procfs_procmap_query) + +enum procmap_query_flags { + PROCFS_PROCMAP_EXACT_OR_NEXT_VMA = 0x01, +}; + +enum procmap_vma_flags { + PROCFS_PROCMAP_VMA_READABLE = 0x01, + PROCFS_PROCMAP_VMA_WRITABLE = 0x02, + PROCFS_PROCMAP_VMA_EXECUTABLE = 0x04, + PROCFS_PROCMAP_VMA_SHARED = 0x08, +}; + +struct procfs_procmap_query { + __u64 size; + __u64 query_flags; /* in */ + __u64 query_addr; /* in */ + __u64 vma_start; /* out */ + __u64 vma_end; /* out */ + __u64 vma_flags; /* out */ + __u64 vma_offset; /* out */ + __u64 inode; /* out */ + __u32 dev_major; /* out */ + __u32 dev_minor; /* out */ + __u32 vma_name_size; /* in/out */ + __u32 build_id_size; /* in/out */ + __u64 vma_name_addr; /* in */ + __u64 build_id_addr; /* in */ +}; + #endif /* _UAPI_LINUX_FS_H */ -- 2.43.0