Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp86367imm; Thu, 2 Aug 2018 14:29:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcEpuuffxxZ6L4pkR4QTt8yAlFRzfrHRyyc9zLJXvpRZsAxNmc2Rltj+H5JNqZDKpECRjAU X-Received: by 2002:a63:1063:: with SMTP id 35-v6mr1032618pgq.249.1533245387317; Thu, 02 Aug 2018 14:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533245387; cv=none; d=google.com; s=arc-20160816; b=AzM5iVsCT+rsgnhivY1+auFbwZGZ0fdOD/um3WXSiwJSt6HRH4bRtKk0iyj+p6rPxN byNj8m5PJ7i9JWw4ifavLvlkNSOBmsJLP5fOtLXHdOLEpEbU1Ij31gXxnpP74PkiIQtt sP0xMidTxDO6Yc8B7BV4n5/uU5/NepU97IlO/isGu29usGBYgJfrVuAfU+U0WCmjbWLf sF79GCKY4A/CLLBz0I8yMVnL8cYsgcU9d29IHQ+nRldA2hC+UWDjUI7oJBuSeejM6Upf K1Pwj0CYRH+nbba7F7CHL/Nk55bl2e+eFb5dCoLn/qZlnWkS90JCUUDv9CiXOuiA7urN JR8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=CEOKcUFZGpGhEHi3JMHvbEOG9CE3U4TfGlKXBGbmyJI=; b=XY6aEWBmRUpcK1j+HViU6mV7q7iUIuRRRm7iGtDrC3EkpwvGtoNy6lztP37G6/lIib M/gNFamkflO+uAdLyFvYfVo0CKFCZ+0Z+IuoLV2pG0UK/F3iVgPIr6bxbpG1t2pSvSaL CVclBa1I/clSyxQ3wyWF4Jd9dj9W68abV7RbeJA4NPf5a0arCYwQNp+QBrl+l7tH6UuK XpCRwO1ZijkZvBA+gBL39PsdfOSZEDRlD0R7STIIZzw3jpuuzS3Uv1u5bTUXtdR/1vDO pATguJ0w81RRkfC15qobWZ+Jr8xSKvvZTE3jFnj15CTV4eaFHWafTi111eHrbLru3fgz g4mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=P85GP3su; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=PT8Rbxis; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5-v6si2381986pls.431.2018.08.02.14.29.32; Thu, 02 Aug 2018 14:29:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=P85GP3su; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=PT8Rbxis; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732313AbeHBXVc (ORCPT + 99 others); Thu, 2 Aug 2018 19:21:32 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:46214 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727262AbeHBXVc (ORCPT ); Thu, 2 Aug 2018 19:21:32 -0400 Received: from pps.filterd (m0001303.ppops.net [127.0.0.1]) by m0001303.ppops.net (8.16.0.22/8.16.0.22) with SMTP id w72LS1n4030187; Thu, 2 Aug 2018 14:28:14 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=facebook; bh=CEOKcUFZGpGhEHi3JMHvbEOG9CE3U4TfGlKXBGbmyJI=; b=P85GP3suLpQymKdxuJTFBHRdU8FzPYcwAcjpwgXV8+Wvti2Z8Q30UbFFQwCxd1ELLYel JKO+7b2N7wbOQAAaoOX2IMMTRzV8qsJLVapHuYdEWRUAzhVGL3YkkUMdZ7/TYh2o2z0i RgqbIVf0oo4X+BahtHSpEpFiRj5xeun7zSA= Received: from maileast.thefacebook.com ([199.201.65.23]) by m0001303.ppops.net with ESMTP id 2km6kmrnd9-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 02 Aug 2018 14:28:14 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.32) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 2 Aug 2018 17:28:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CEOKcUFZGpGhEHi3JMHvbEOG9CE3U4TfGlKXBGbmyJI=; b=PT8RbxiscZRFiphxPOlQtEbH5nHwigD1lZm9jqv1uf/PyNcCJDm8ZHmfpKnCKJKyjz3Mz8zjZe18L9tnOuhTGBIU67xM4SYcfMonxWbMSX60L9ph3liKyLxetaTgc9ltkfbL4RcXfxlKPnOTopjCfztY46TUG0riuwKrVAVZmWw= Received: from castle.thefacebook.com (2620:10d:c090:200::4:6653) by BY2PR15MB0167.namprd15.prod.outlook.com (2a01:111:e400:58e0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.19; Thu, 2 Aug 2018 21:28:02 +0000 From: Roman Gushchin To: CC: , , Roman Gushchin , Alexei Starovoitov , Daniel Borkmann Subject: [PATCH v7 bpf-next 09/14] bpf: sync bpf.h to tools/ Date: Thu, 2 Aug 2018 14:27:25 -0700 Message-ID: <20180802212730.18579-10-guro@fb.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180802212730.18579-1-guro@fb.com> References: <20180802212730.18579-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c090:200::4:6653] X-ClientProxiedBy: MWHPR19CA0058.namprd19.prod.outlook.com (2603:10b6:300:94::20) To BY2PR15MB0167.namprd15.prod.outlook.com (2a01:111:e400:58e0::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d7aa949d-1038-4ae2-bda1-08d5f8bed487 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:BY2PR15MB0167; X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0167;3:R0jd+9/VZaCwCjbLNHYFnL7+xwNC/YG9i9Vf7dDP1sM4qdwHkQGN95flFvs9NroOhKk2F2rtKab5xrb+g1fdKhbCOaHLq9sEByOHA0ND0EKyvUeTXOMUPkAbBIFpMmfLpthsrTV54M1ai1f7mZ2HAWqPjpNRkw3N0sjJ5iTZFtRCfSFJO52DGVoRrqlgvlD+FV4RULYv30FMwm+RqpyCuFGNjDgh4HbVf2ZSRCBoJufdriRfb/RjyCNy9DpRKrhh;25:chqNJ1FahZpFzab+4M3UhK4tXrXCxdsnOh3BbK0XVYbBWEIgjlR0qnHv1YAeyuIIPtL2E3dL980ODVv0enpISfRCvareNUY+XNOQ8wyn/eE9edtGU3oJLJH94KQqMfLFZzCB/SEpWUyUMIMqpqjgYj0vteEk32bzWy8Xi2gwEYYLYoqz5XfdaP3wK1hwsGRyNEtGTPbNsZJ5DSJI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sBZyuFxPxN2iIro26AxbExUUdCI+MkANaFEza6MnskCLJNrSkS9pa2DfoWsjLjue37xkoWRjfKXZBD2jupyJm5bwQXUnnTtrZumBzPQDsCfQBJBkau2Q2R1fJRDF/hSgCmZLaIdSZU9Lgs3F4lmtoXO1FbQJB3YwidNPGGlAR37vWXeoUPO4yPNaMPEhwz1cZEimFo X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(11241501184)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016);SRVR:BY2PR15MB0167;BCL:0;PCL:0;RULEID:;SRVR:BY2PR15MB0167; X-Forefront-PRVS: 07521929C1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(136003)(346002)(376002)(366004)(39860400002)(199004)(189003)(446003)(48376002)(2906002)(97736004)(86362001)(1076002)(305945005)(8676002)(186003)(8936002)(11346002)(6916009)(6666003)(7736002)(486006)(6116002)(2351001)(476003)(14444005)(106356001)(5024004)(81156014)(2616005)(2361001)(105586002)(16526019)(478600001)(81166006)(69596002)(47776003)(46003)(53416004)(36756003)(316002)(53936002)(51416003)(4326008)(52116002)(50226002)(16586007)(68736007)(54906003)(50466002)(52396003)(386003)(6506007)(5660300001)(76176011)(6486002)(25786009)(6512007)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR15MB0167;H:castle.thefacebook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR15MB0167;23:+s5XojPv2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=?us-ascii?Q?092MYweDb9JTWkFx1FPb6J54AgOEElA7dWuXtZ6iU1LuLJfqN9MFrISAQi34?= =?us-ascii?Q?raYhOvJcUfuEaKcTBh502RaosA9ltF3RvDys7mK5RTrrEOSxL/POrOnz+8w+?= =?us-ascii?Q?07MvBULujFnWaQSEEx+6L+Gh1zxlawfsq7o/qOZ+SVYFbl5xp4CZg5xiDazM?= =?us-ascii?Q?vf1CuAFVhAGWxeB80qasGcGKLrUI8Sntgc6oc8S+1c8TxjBtuQxpDyfdK1RI?= =?us-ascii?Q?ayGnsuconjpO0lXckDd2DoCYxwYaGOfJZC+LLRr4Eu6dFVtIuIYhCb3VCJUc?= =?us-ascii?Q?UMbpd7FFr+zGLo2jq8f3gynXc0/ONOSKkZ6sydEx0PAsJTdjUj+F2xSj3fX+?= =?us-ascii?Q?TC9C6ZYDu4VtFc3gmSSks5PICndIbVPfqXzXVDn2uXDQQwk5RRdkty/GfMAP?= =?us-ascii?Q?a6FbtonTbncfhS0Lz9sJek=3D?= X-Microsoft-Antispam-Message-Info: a1rbNaEWA9IJlPxhHbvKmNOBiMC5umldq2IkeV1ap1DShL8rtNHmvwvPwQ8d0I3FCz0jTjw1XFBbK7FvQpGgBfYZWYfLxPmHFACl3OCA9HfAy58prYxRfIicYpE71pAuzn3/KH/oQBDBc8rch9AE9XoPM53cW7cvStPbvcHi9zADpbcTs7snoperagiil7UQ7dinRgIGsbpcYNC+7g16WoYrCRU+XzPEmzEyE4OmpTaZduuxSKG2qQnbQR2D1DCp0sjSWZ5ceRg34FQ6tmhAW0+4NANP6rGXS2sm7EQPLNnjM3UV/WfySvLgyWiyR5tiXCUsKLWZexCuGEgF75ZlMXB2LenwM8hqpjmpV+OEwEE= X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0167;6:jqfHdJf/u5PgX9bc7v2Qs4XtO77jb9aVPhnU7dzfNcGrcTs0O7AXrmRiCe/U/NYgH0M36VZPpANLBT8d9aGhuHJB3h62Dx5CRksXij0/QK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ime: 02 Aug 2018 21:28:02.4252 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d7aa949d-1038-4ae2-bda1-08d5f8bed487 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR15MB0167 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-02_05:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sync cgroup storage related changes: 1) new BPF_MAP_TYPE_CGROUP_STORAGE map type 2) struct bpf_cgroup_sotrage_key definition 3) get_local_storage() helper Signed-off-by: Roman Gushchin Cc: Alexei Starovoitov Cc: Daniel Borkmann Acked-by: Martin KaFai Lau --- tools/include/uapi/linux/bpf.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 0ebaaf7f3568..dd5758dc35d3 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -75,6 +75,11 @@ struct bpf_lpm_trie_key { __u8 data[0]; /* Arbitrary size */ }; +struct bpf_cgroup_storage_key { + __u64 cgroup_inode_id; /* cgroup inode id */ + __u32 attach_type; /* program attach type */ +}; + /* BPF syscall commands, see bpf(2) man-page for details. */ enum bpf_cmd { BPF_MAP_CREATE, @@ -120,6 +125,7 @@ enum bpf_map_type { BPF_MAP_TYPE_CPUMAP, BPF_MAP_TYPE_XSKMAP, BPF_MAP_TYPE_SOCKHASH, + BPF_MAP_TYPE_CGROUP_STORAGE, }; enum bpf_prog_type { @@ -2089,6 +2095,24 @@ union bpf_attr { * Return * A 64-bit integer containing the current cgroup id based * on the cgroup within which the current task is running. + * + * void* get_local_storage(void *map, u64 flags) + * Description + * Get the pointer to the local storage area. + * The type and the size of the local storage is defined + * by the *map* argument. + * The *flags* meaning is specific for each map type, + * and has to be 0 for cgroup local storage. + * + * Depending on the bpf program type, a local storage area + * can be shared between multiple instances of the bpf program, + * running simultaneously. + * + * A user should care about the synchronization by himself. + * For example, by using the BPF_STX_XADD instruction to alter + * the shared data. + * Return + * Pointer to the local storage area. */ #define __BPF_FUNC_MAPPER(FN) \ FN(unspec), \ @@ -2171,7 +2195,8 @@ union bpf_attr { FN(rc_repeat), \ FN(rc_keydown), \ FN(skb_cgroup_id), \ - FN(get_current_cgroup_id), + FN(get_current_cgroup_id), \ + FN(get_local_storage), /* integer value in 'imm' field of BPF_CALL instruction selects which helper * function eBPF program intends to call -- 2.14.4