Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1409960imm; Wed, 1 Aug 2018 15:42:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdgi9Eq9Pt8P1X46Af00tlZumy1NBdJMS2LXyhFEDnuv5OBxVkfIx6mW3aLkFQi7V1jHFJI X-Received: by 2002:a63:d351:: with SMTP id u17-v6mr233547pgi.366.1533163320039; Wed, 01 Aug 2018 15:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533163320; cv=none; d=google.com; s=arc-20160816; b=SYEghhWtHVkaqVGg7afpwQAEU4n2q9SMlo2tuaUuFCLNvpUclZko5NXHASKtF3wmIH vxQlqNVXXwUdA0TrwqezGXd7DkEHWdpEWwvDNqGQAhy3r84SJZ8v+NBGIZkfAVoefim6 3E+DSvxMsBcsehBKe03W9NnWTU1XN+b+F5a018VKPBs5qU7Ky+jXWzRsJioxyL65ozMT htG8G6t5PGJn8aTUSMGQH1sZl84hvLY0u+2BW7fJMQMOVgcMFEQHlbtibp6GGaeXZBaP 59CP2HtX8q69POoSlkspA6dA1lfACNQlOKQTwjlH3GretbRBbewYKCOwsvU2xuzURpjg LC8Q== 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=R6SL8MWP0Mf6kG/U0G20BLxim8z8t80VeHH9u/nOJrs=; b=q9sbq3WRcI/3i3vXfvYB2AY6lMzgaPI5i80BaVhwUa3ujkVftITOnhwIuINNQwLdqY 7TTuhlYe+LivYdh5KgNtOs+FI3I/Pr0ITsmR38qulWNjPcg0FidcC2GJnPTk95nA8xAO gzYdEQ5YYQc9HeSMMFsK8H/wZ7Mg8b46bwOtaY9bTugFcBI0cSAo02qhj+tmTt6cFAVk zjVd4dm+js18iFrIHgnzysnmkmAZp7NNZwuES3sYk4lR4o8j20E3Xq+9qjlmmtLaoo0B WCo8WcDpIPQFBAYsxUSYlAYLOGuB/Ouh7CQLhT0P3HKD/2s6533tCgiApuFskaYtsDNi Wupw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=im9pKlEI; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=S1oVP4cq; 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 e15-v6si169444pli.149.2018.08.01.15.41.45; Wed, 01 Aug 2018 15:42:00 -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=im9pKlEI; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=S1oVP4cq; 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 S1732466AbeHBA1y (ORCPT + 99 others); Wed, 1 Aug 2018 20:27:54 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:59478 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732409AbeHBA0v (ORCPT ); Wed, 1 Aug 2018 20:26:51 -0400 Received: from pps.filterd (m0109331.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w71MZSKj003989; Wed, 1 Aug 2018 15:38:28 -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=R6SL8MWP0Mf6kG/U0G20BLxim8z8t80VeHH9u/nOJrs=; b=im9pKlEI8oMapPFNIoH8qX53S1i6SI4sHtMvlqqyy5htXrGsU1wFgd2S8Ts5HuRpqBi3 aak4fmvZxmcWxta8pbWH7M9kIssSzwcbw9QTx9oVhai2o83jH7l8SYj9N4+cX/dKASpY i6T+jGLMBOuube2KieD4oJOJbh0IRdyLDy0= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2kknssr07m-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 01 Aug 2018 15:38:28 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.21) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 1 Aug 2018 18:38:26 -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=R6SL8MWP0Mf6kG/U0G20BLxim8z8t80VeHH9u/nOJrs=; b=S1oVP4cqzKWfWXInsQcKLLEIbghgzJWGcbM3p9DjnWwF8JQMXxrjuF91jPja/4jPPoclncygDviGST2v+KWBzYH7K8t+jX0lO3ecHtK5cx4b86gWbxj7qzXKWUe1KXc3MuhsFrS2sKDtoZxARHd6kAF6HxD7pJLu3OuZZB8JcMk= Received: from castle.thefacebook.com (2620:10d:c090:200::5:7cca) by SN1PR15MB0176.namprd15.prod.outlook.com (2a01:111:e400:58cf::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.19; Wed, 1 Aug 2018 22:38:24 +0000 From: Roman Gushchin To: CC: , , Roman Gushchin , Alexei Starovoitov , Daniel Borkmann Subject: [PATCH v6 bpf-next 10/14] bpftool: add support for CGROUP_STORAGE maps Date: Wed, 1 Aug 2018 15:37:36 -0700 Message-ID: <20180801223740.11252-11-guro@fb.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180801223740.11252-1-guro@fb.com> References: <20180801223740.11252-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c090:200::5:7cca] X-ClientProxiedBy: MWHPR1601CA0016.namprd16.prod.outlook.com (2603:10b6:300:da::26) To SN1PR15MB0176.namprd15.prod.outlook.com (2a01:111:e400:58cf::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3f56311e-063c-4fe6-8527-08d5f7ff7e25 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:SN1PR15MB0176; X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0176;3:6A8By4DWtyo3Bp0WjgdpfF+xI38Rvj1NR068JKAuI0+j3vDTzS3x5nVMCnw2F7ejQbe110+JNwSiMBiSRWjRaxagXNBin3yVTAyDPla9idkgDxbN9HlXRSGL/ALytBseJ4DCx7xlkBxz3Vm/Em9V3BtswwZ1ISf4G6tklbPlpIY02XcY/IOQjAbuUfbe7/ubhStXXDxFFTwvj4Whu152fXBdMILDXTFF51gsdYPEYubuXijrU8Ha1eAB21tsOtHu;25:WgCsh1+Nh6RxH8Kxzdeh04c/dWCmZlAxqNZ7PtD8oa+tgwLWeC2ufYXx+DNZvWdohBzhUVX79MI3d0zjeNgzBIQUqy7j8ybxnDBw8JkHu6c+N7Kv7n+9aMzWp1nKUv1g6YT+Egu8ndWflzKkBMrxaTGmiagqAYpTzxaEGQEDsjLkTr6w4FC1Y+ApOc+PZgjw6bx8OOVynOt7CV5AJy/x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ZkLo+CsXxN+CeDPbBz1b5FzunPGt2/Mu1OVIfo2NE9o6iRb37pD+DMinKCDFsyNkkOHwLsoA0OBESIm7MFYxMri+RzTtEoL9Uq8+aYGQu6+JGfPrJz23KlSmbJm7JXMa5XpHOT06ADbqsRlZaB6n8EeqDlnTtX1R6DcmOExKHauKG7iJX/5Ln808y3sgTxfG2Jwkq0vv+cK 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)(5005006)(8121501046)(10201501046)(3231311)(11241501184)(944501410)(52105095)(3002001)(93006095)(93001095)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:SN1PR15MB0176;BCL:0;PCL:0;RULEID:;SRVR:SN1PR15MB0176; X-Forefront-PRVS: 0751474A44 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(366004)(376002)(39860400002)(346002)(396003)(136003)(199004)(189003)(11346002)(6486002)(6512007)(50226002)(6916009)(2361001)(5660300001)(53416004)(68736007)(6666003)(386003)(106356001)(6506007)(76176011)(105586002)(52116002)(51416003)(86362001)(36756003)(486006)(2616005)(8936002)(81166006)(16586007)(54906003)(478600001)(50466002)(316002)(81156014)(6116002)(2351001)(69596002)(7736002)(1076002)(52396003)(14444005)(16526019)(46003)(8676002)(4326008)(476003)(97736004)(47776003)(305945005)(446003)(186003)(2906002)(48376002)(25786009)(53936002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR15MB0176;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;SN1PR15MB0176;23:Y31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us-ascii?Q?oqONkuc8EFxJUDNg9RZmEKBvAnXy7r5M0FiYYBiMGXKX+3GTPVSlHGgGiLqI?= =?us-ascii?Q?DfG5LegVkO1LQb5adD7wVweZyv46CkVMRpEOTvWfoheZaQFnpFJrYPLMUOW2?= =?us-ascii?Q?SEF0nd2j5RvbzLdJT1oUVszCth7fJZr3L5+q8toDEOq9/WWvEDjFoCgVAPgn?= =?us-ascii?Q?kU2F6mPhjUtxMLNk+SSoD200MzJcwvvzZP7CsJAP8eMvPrZsb1gUiRMycPFB?= =?us-ascii?Q?dXXtP5IQzzN0K8yvYb0UD4/KyGS984BzRz5vbur14WI+vbIaFLY6YWoskzqO?= =?us-ascii?Q?63SVdkO4YsxWRhahUfquV9Gczh/TQ7lqVvDSiJ1mf5T/5RsLDX4mlqd47Alc?= =?us-ascii?Q?iJnGr/EyWL2N8038oxAA7gUyATeHX/EOjJMsR7jgQibx5g1eMScwTgM/Nnlt?= =?us-ascii?B?dz09?= X-Microsoft-Antispam-Message-Info: 1A/6M2QeFtNu1VlJSMLHowcVF+ALzipV+rffYgaqcVMe3lrb6+oEnRufs42t24eunbqAwyH8Tw6q87XFaqyGuVhJWktOFgsaf+vrLgrDxgM8hKD+CLf0YL2tFfYtkAEcQ4/4rV7yXGImpOWOE3NyMAMPsdfsNjWa4txhq8Cx48NZCItvbCydolk/6gYvm+33XVPlR28kTkzXpKfIf9UJu4wAonPm7KJPMBx9RGJQOahbS0lqRNFBqOMGmmv6ga3VOsDSEmhy2yXQN0xIkdlnw4Rb6x5S9p4rr9yiCmyh7WyPuazn7YGryF/yPVY76oe6rzXixMY0S/VLpjkWSciwqK0Pr13QvHhLCTnwjxZJ8Uc= X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0176;6:VhPSgMXi872LTiTotLy7U2FSlc/ZmcuEu/yzWdkvWcr2QsaAqIZrIytGhSnv36a8R2iCHR5LBIdqdI2O7mDzvFVW1myxxjkCOOTcHuZ+MGVPW/uGIMMko+yOvXmcC/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38:24.1716 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3f56311e-063c-4fe6-8527-08d5f7ff7e25 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR15MB0176 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-01_08:,, 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 Add BPF_MAP_TYPE_CGROUP_STORAGE maps to the list of maps types which bpftool recognizes. Signed-off-by: Roman Gushchin Cc: Alexei Starovoitov Cc: Daniel Borkmann Acked-by: Jakub Kicinski Acked-by: Martin KaFai Lau --- tools/bpf/bpftool/map.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c index 0ee3ba479d87..2dd1f8d9cc2d 100644 --- a/tools/bpf/bpftool/map.c +++ b/tools/bpf/bpftool/map.c @@ -68,6 +68,7 @@ static const char * const map_type_name[] = { [BPF_MAP_TYPE_SOCKMAP] = "sockmap", [BPF_MAP_TYPE_CPUMAP] = "cpumap", [BPF_MAP_TYPE_SOCKHASH] = "sockhash", + [BPF_MAP_TYPE_CGROUP_STORAGE] = "cgroup_storage", }; static bool map_is_per_cpu(__u32 type) -- 2.14.4