Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3139124imm; Fri, 20 Jul 2018 10:48:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeMtl5yW3ESOh8rgxx62pMwpcn7iCduh3080bRX0EmYdjzlgGNBx4ALW+dWKycB+smhsvZ4 X-Received: by 2002:a62:225d:: with SMTP id i90-v6mr3097072pfi.246.1532108906008; Fri, 20 Jul 2018 10:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532108905; cv=none; d=google.com; s=arc-20160816; b=CxmE8RGbRqfavtH78uvwQQ3rxqxwn1+0ztLa6/+oXClyujYAmwvvDMxEOiX199nHa9 CcsMNNQcnImk3xBWZm0PGGy7H8Tx7TelYOkYEm0deV4mLonZ+QX9vQb1UmI3MQFnefoV JPr6K7WOpx+Z2e1FW/iCeDNQyxvg8R7TqJpOCAPdzVf+M4GQMTNRUVZ2n4c64vSao7CU y5/y8Xq7X2Yaum9NLOiTYkvemFi1AWplXdACWUb4kxU7Sce8pKjCYnynB6qaLyEVH4W/ ES/L0CZ4wWTI9Md4YVUcYmo9u2fG8x1HF4UUKNXKPLXm4Vsz9UQrfU4geS1T4Mq+BY4R nXhw== 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=PhR/xlbeiqF/vPQucmBmPxNrNch58rDdW7OXsqEZZVU=; b=gevDbXHl1Ef4Qf2LwQaYdgTjltstWkcxl4Ukax21Ef8okSJauJ68C47mOqp4sUAo3L y4B0SPG34FO8O+pSJbEt3Mxnl2Z4AY+nai6Wtb4PlmiJDjFyr/7gdw7JEvZvEpp3phuf AlCLLddJM/uTiyWpjyBA1mwKs0rmWCYGGO2rOthpxctN2VoKkOuT2NmHhpjyq91wijNE tSAplS7tHv39+qYENAmtfX5JTRlM/qjLJnuDb9rBTeihau4bWOINfFkSnIxLHH/9lr7l 0LIzv3UVoeJAJXZjIuhRXGbC96aQeMORkMH0wav6tH9NxkfENqYrpuNrCUcvBIt5R7i+ kxQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=NwA+CrzI; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=SMf9X2TQ; 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 8-v6si2602323pfw.89.2018.07.20.10.48.11; Fri, 20 Jul 2018 10:48:25 -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=NwA+CrzI; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=SMf9X2TQ; 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 S2388521AbeGTSgg (ORCPT + 99 others); Fri, 20 Jul 2018 14:36:36 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:48076 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388248AbeGTSgH (ORCPT ); Fri, 20 Jul 2018 14:36:07 -0400 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6KHhnse025347; Fri, 20 Jul 2018 10:46:29 -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=PhR/xlbeiqF/vPQucmBmPxNrNch58rDdW7OXsqEZZVU=; b=NwA+CrzIhYxgnlKZNm1wp8RaPZbnww2cguEdm8EcsiPiZsm+j2ZOCcSnHXsvghi7LTis wwxlQhimOPFz9oiCigWzU91FFO9BeumgOqK5lbRvEMIA8uezrCnM73Tc0ei1VOEVzGvW sx+7G3yeNh2vcIBPjWDVogLnEKEN/YEvFfk= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2kbjxmrbv6-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 20 Jul 2018 10:46:28 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 20 Jul 2018 13:46:27 -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=PhR/xlbeiqF/vPQucmBmPxNrNch58rDdW7OXsqEZZVU=; b=SMf9X2TQfjebi9Z+gyuQJIFg3quzfevhoR85XU8MFdprVi1yApp3kbYzWSmrDKvYBILAA7w0GW4k84DPukbtIRbAgRHYlRM03tSTmhdHlesp/iWK0Rt9osc9ss9MTPTTWJtC6xannAd8Z+Flz6n2FSo8r1q9xzmOrCFPLfcjo8o= Received: from castle.thefacebook.com (2620:10d:c090:200::6:ca05) by SN1PR15MB0175.namprd15.prod.outlook.com (2a01:111:e400:58cf::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Fri, 20 Jul 2018 17:46:24 +0000 From: Roman Gushchin To: CC: , , Roman Gushchin , Alexei Starovoitov , Daniel Borkmann Subject: [PATCH v3 bpf-next 10/14] bpftool: add support for CGROUP_STORAGE maps Date: Fri, 20 Jul 2018 10:45:54 -0700 Message-ID: <20180720174558.5829-11-guro@fb.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180720174558.5829-1-guro@fb.com> References: <20180720174558.5829-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c090:200::6:ca05] X-ClientProxiedBy: MWHPR17CA0096.namprd17.prod.outlook.com (2603:10b6:300:c2::34) To SN1PR15MB0175.namprd15.prod.outlook.com (2a01:111:e400:58cf::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7f012e30-86f1-4f86-581f-08d5ee68b6c8 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600067)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:SN1PR15MB0175; X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0175;3:gAeBPivIQurXQan2kTG4/KD3KKTkZDVRmB5xC3jNUU7ankr9pOwyOLZSUGH7VU9WVXksLqKQDoez4OsxSiUiTiv180i6lrdn3boneoUXljtjAD7xfFVhC9Cr0qHVcaky702avxj9GLKF74J7vqzSXvafPVnO7/IM1Y/n+OUUg46Ura8UkgXNnb+cYRwVFunWiHhcWJfkS/cb9QeKXtUykvijQRTziX7gPxHM51jf9CHgY+SiI/zgzjGW4YU44UMY;25:UHOb137Pzp7UiHndRaIwsv9APCmG8Zz6WR9m/6gSJWlBiTWP50T/kuZ5voFIa68jKuSw71Ta0Q0QLrjfXCt3+K8izdJ3Ir657rsX2dXap2KLCPxt8XAA8CHWX8v+JzbWBTJ1UQztEHRp1Z12PaPyjLbaElA7EL6wRMFqwRHUD8vO1+heg61lmjRysrEdHB7z3nB4vtGK1si6l70ti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fnEbjNGEY7NekgEpSCIbOLjS+XytebR53R/noLbbTJizIAFkRFQ21ao0d8hgdScZxfzOsmWuC/5GeOwaqa3VKl8pRzt+paaRsLEylXLvjYlun8Xuyuq8e0tMdRhCM8rWeglYBqDSbE1H7kpFBXkBcAl6D4CM5CYdMxSoVOlZrUB2MeAkhniXSNTa 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)(93006095)(93001095)(3231311)(11241501184)(944501410)(52105095)(10201501046)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:SN1PR15MB0175;BCL:0;PCL:0;RULEID:;SRVR:SN1PR15MB0175; X-Forefront-PRVS: 073966E86B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(346002)(39860400002)(366004)(136003)(376002)(396003)(189003)(199004)(2906002)(6666003)(50466002)(81166006)(53416004)(8676002)(48376002)(2351001)(68736007)(81156014)(106356001)(8936002)(25786009)(105586002)(1076002)(5660300001)(6512007)(6486002)(36756003)(478600001)(86362001)(69596002)(7736002)(6116002)(305945005)(97736004)(2361001)(16586007)(316002)(52116002)(51416003)(52396003)(446003)(50226002)(46003)(54906003)(14444005)(47776003)(2616005)(476003)(486006)(6916009)(11346002)(386003)(76176011)(16526019)(53936002)(6506007)(186003)(4326008)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR15MB0175;H:castle.thefacebook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR15MB0175;23:sSGEmCVjtmqtD4OjjeObQHdGjHe5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5GNgfCxs9PqhM8jWM7n9+liHO0Zv6c0UA8rH0?= =?us-ascii?Q?9wQ1s9U1gY9UqYxO0tBCRLKXzlHOdatPRO5myy/C1YsptzicbyXFGBlgvOol?= =?us-ascii?Q?4PZh1+9wWz6X8U+1DWhbG0Mxn2vNMmW6LBLUy+JKK3AODCSDPndaEvNqoIgZ?= =?us-ascii?Q?OGhJ0XSergOvmb/m0DqssASDg1O3vPLzk5vME1ZFamRRgs0SscH4aiezAsAK?= =?us-ascii?Q?d6ZNvruHrXmo20yVfpx88IMFEr2G/syUaURUw8EbYhqIv8fkcxXnfliqpxzA?= =?us-ascii?Q?17FmcRfl7KtZpv2rI59HjP5/9GXue+dyww4QBdUfPum0bzhhflCEC9dANBNK?= =?us-ascii?Q?gRYPc9pht5mBA8nxwHgw8wW4MxT9bNenV/4KdAg/9worTk7cPZNBiGUII+XB?= =?us-ascii?B?dz09?= X-Microsoft-Antispam-Message-Info: nlbB5cJA0F5RxcD1mtjeWuTFOaYDFdQJ7cDwD48XSmoQZwlPUdcY2dYrqIM7kyqUk1MpTgC2nsxVUa+z80jIQTumwQqcOfVyA2I8m/GbNb6igB6S7WE/les3mR/NdXiijXT035qKoCwD2Tv/qZDL2eF8hQLmBWvWa5o6V+at6VKob5ybl9yr7BHkA/KR0v4V0yau2vb3ULf0g0eiqOFOQ5uegML1ULmMhc+2sobu/ETaxlLRhHXQT9bWdoPTPc5mpCzsLhIXHdhyvcy37UOJ2eLoCvs1P/eC+YzdACQfi58nAVocQsv4uX7HkKlHSe3fNAjEkJN1Q2HubjWr1rIy1vUVrOvPiu/G5KpzXziWbDQ= X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0175;6:txz2H8LtEUdX+nYQOebQNYeWK7TWUaYz8Y3VXgEEey6G6y3Sw8znEc2vnuRoAkIFno8pTGz+fj+0ajGv4hqF1cDJgzTWbisJgWDoree0o0cnLGhURuOzZm8uGpRucuqJ8+tbIArfaG3lDLGjmV8TFwaITP770Xuk7Cz4uOAd3hh/IQIh05uq7JkwDSYA+lwOdAby4CeXD5KMo+Bf1FDv6dBZN/bDsfULZMJSRAJLhqJXFwOSlUe0xN0+jirXgn5xjm1P+2JeLTXl/p6qzLilE9SRhmeMFtLgsadr0PqZdaLPiupy4O2Wx71dmcZZDb6H3avL89dj4OAmwkUuCzDWgL94M34CZqshTuqKEUas/ehFYOVqSM+/47j959FMgT44wbzsBJg4xeAKKDSluDsq5aCu7JidB3rPxNwVXz5cbYlWULCjqmdwzR2th3UQ3aF3Cf4vxNPGNJ/Yd2w1EptpiQ==;5:778r8BxZ1ShkUBQApG4Yc1m++SzTz5tTgB+hkV5yyxxgwkqQTmJzCxd+65PDDU8yYcQanyR+unenx+S1XDAXquw3pf1Wr8QwVyu5FtzmSyNuz/hEWy6OAxqyauBhT29GZfT27suQjZzP5AmJ/Xw7dksfSEaeZCBYTm9S37ZBD1w=;7:ncKPDcE4YSpO83zWuAvQv710/6tlCsjSnC3kShoelbgATUcUgd8mfwHLM90Y7ARBZ9G8I67QgiUPU9sOR/7VELuDF/VCWRpbHAt8+ImcEfZm5WSo1WxUDrlxFZajV9EU9ov81TPLTW5mNAquS/MXCcKqaouYHlHNuAfmW8pK9md5jpWWOw4sG7AQHpl0noFdTgeuaXstSsODL3kaqzQTcY7V4T+2YfHtQ0/lQ6cqQAoO4CbUFvUxRRMLp8a38Vq1 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0175;20:ebRBxLk3nw+XzcEyPFnce9BABR3pwSWCuxwtnw235rq1E2JeCCjIZaERQhb+Tfqh/uT7K+I288G/0D5ytDOnDJ766wVpb4To4/cVNNuHZfJGbPb6Yeh/J9JDj7Ul5HuHIBe/F824JVGI0m8gnV7ofsYCMfK4likfAmHZkYbseqw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2018 17:46:24.6350 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f012e30-86f1-4f86-581f-08d5ee68b6c8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR15MB0175 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-20_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 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 9c8191845585..2ff02d319c02 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