From patchwork Fri Feb 10 21:50:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Roesch X-Patchwork-Id: 13136525 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32DB1C64ED8 for ; Fri, 10 Feb 2023 22:04:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B92DF280030; Fri, 10 Feb 2023 17:04:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AF54728002F; Fri, 10 Feb 2023 17:04:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 96FD3280030; Fri, 10 Feb 2023 17:04:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 6D475280021 for ; Fri, 10 Feb 2023 17:04:01 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3B753A05CD for ; Fri, 10 Feb 2023 22:04:01 +0000 (UTC) X-FDA: 80452760682.01.DC1995E Received: from 66-220-144-178.mail-mxout.facebook.com (66-220-144-178.mail-mxout.facebook.com [66.220.144.178]) by imf16.hostedemail.com (Postfix) with ESMTP id 90741180018 for ; Fri, 10 Feb 2023 22:03:59 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; dmarc=none; spf=neutral (imf16.hostedemail.com: 66.220.144.178 is neither permitted nor denied by domain of shr@devkernel.io) smtp.mailfrom=shr@devkernel.io ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676066639; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M6Oo6aoakYXCEgYPgkANDFzHLQCHHEya9CaFxZk6M78=; b=RL7naguGJH/xULqGtnkOiYnvIdiTnVdTxs3Pcc3CASt4JFwXUySqELHxjDdBt3qdepSUhj Pk+HzFg0VkYGvHDtvBXuQTJib2IjrsUxTrWt8xKCAdPkpPFqfE8YoEBdFd0cAbxIv5KZHF kMwvlIKuR4u7t78x96TJaQqAICvQlbk= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; dmarc=none; spf=neutral (imf16.hostedemail.com: 66.220.144.178 is neither permitted nor denied by domain of shr@devkernel.io) smtp.mailfrom=shr@devkernel.io ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676066639; a=rsa-sha256; cv=none; b=a7WnNZKHqN16FZf9X3fAq66jbhjhef8MYwhw5nKRNBckHn0gy2QIDQO+u9hjyjB4as3Gn2 MImVJ0CeTt4KbhJ4bjimx3NqESR4sNnpBmLzK3DDSnR4gmqmlrGu0Qmh/RTDIv5MBmIX+6 sBy2DBfec/Oqr3oqOGwvU6VVxhP65g4= Received: by dev0134.prn3.facebook.com (Postfix, from userid 425415) id A31F86BFC2E5; Fri, 10 Feb 2023 13:50:33 -0800 (PST) From: Stefan Roesch To: kernel-team@fb.com Cc: shr@devkernel.io, linux-mm@kvack.org, riel@surriel.com, mhocko@suse.com, david@redhat.com, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, akpm@linux-foundation.org Subject: [RFC PATCH v2 15/19] tools: add new prctl flags to prctl in tools dir Date: Fri, 10 Feb 2023 13:50:19 -0800 Message-Id: <20230210215023.2740545-16-shr@devkernel.io> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230210215023.2740545-1-shr@devkernel.io> References: <20230210215023.2740545-1-shr@devkernel.io> MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-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S1HfDrtXXRhV9Gp0M7QRi9JvozTmR/HSXGYFAVlpGUuwQP6A== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This adds the new prctl flags to the include file prct.h in the tools directory. This makes sure they are available for testing. Signed-off-by: Stefan Roesch --- tools/include/uapi/linux/prctl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/include/uapi/linux/prctl.h b/tools/include/uapi/linux/prctl.h index a5e06dcbba13..e4c629c1f1b0 100644 --- a/tools/include/uapi/linux/prctl.h +++ b/tools/include/uapi/linux/prctl.h @@ -284,4 +284,6 @@ struct prctl_mm_map { #define PR_SET_VMA 0x53564d41 # define PR_SET_VMA_ANON_NAME 0 +#define PR_SET_MEMORY_MERGE 67 +#define PR_GET_MEMORY_MERGE 68 #endif /* _LINUX_PRCTL_H */