Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1056731imm; Thu, 5 Jul 2018 13:56:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdhNkbfPdExw0bv68kUnpHutWpgTaqxUD6fSLnLQrNWanbS/umlQnRiwip1NHalEJpHac1q X-Received: by 2002:a63:68c1:: with SMTP id d184-v6mr6938936pgc.239.1530824167380; Thu, 05 Jul 2018 13:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530824167; cv=none; d=google.com; s=arc-20160816; b=ch+9JnA56W97qAKaWLdF6FZPN+MmUT3VErfOlfeJvzlVAEZfYWsDsTwt/II/NCQiqH XbA4+LeyIhpcyrqU2EwWwtsSKoy/d7QYcP90OFIaou6aZRdezGr2xYd82CGGIfNNnESN EV799EhafraVb7TtRyDPbPLQwjK9S62nH3Onm57b4tW0M+unNM9NY3F49SDQM17d/yqQ Fn0tctb4nCgz5Cwvnk+A6iNGsfjdYEz7iuGvDcvv56yL+UO4ddv2Wq3cn94u68Vq0Jj+ FmDYQHhRWnBq2hO/EfrLLC/RQlrGvcoxdQgxE626/ppTOPU63w5F/Mzo4W4qvlG5V7Eh znVA== 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=HPIsZak8jSoibuxtYIdHwIpLrNgrA8kygXJ18pHJlMM=; b=Oeh+1GVFk41Fkt9JLntAa6wiwPXbiggQ+ex8ovTFcb8k1wS05TsCn1QNHohYTND0Xp 6ioJqqHVwr5jkA5/ylrdB2Wf+KirZgCxmRDBAAht4xeJc4mhZPI8fKZQV1MKWKYz4+ij 98n5ZnAgXIeWug0oC3jl3uRuPMWhWfvqw3PyMkhFfNZwGc/TvyxrlgcKyPChQei6cS3w SFJubbuw+U2+6e14bUBV68+F/dvDPKaouAR21wSwQvyzNJGrE+3VQJlk2RpP2iIiRO20 hKv14zpqhE/baSfxZ+Go5rllneL55Do5oTsdsjPObyXXrZfD4EFFed33P4OgHBORZ+Rc zbxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=GQdZIJ3b; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=KoOPTVD1; 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 h1-v6si6212703pgs.221.2018.07.05.13.55.53; Thu, 05 Jul 2018 13:56:07 -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=GQdZIJ3b; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=KoOPTVD1; 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 S932518AbeGEUxr (ORCPT + 99 others); Thu, 5 Jul 2018 16:53:47 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:44128 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754356AbeGEUwn (ORCPT ); Thu, 5 Jul 2018 16:52:43 -0400 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w65KmMgq015406; Thu, 5 Jul 2018 13:52:22 -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=HPIsZak8jSoibuxtYIdHwIpLrNgrA8kygXJ18pHJlMM=; b=GQdZIJ3b6eKNsGErDu7I2xloU9ZYuvCpo56HcvFTWe1UkH3Tq3UQe6cuBVwwVuenjIPs NfRKWXLwjb+qIkMCCDapoJuNkn8c9+INWv9tXCdGPb2q0rG9TjRibhKLjOma+dmcTOSs h8kZosS4eM/gkU+R4upiorPrzAR+r2TsBy8= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2k1r3m0eus-2 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 05 Jul 2018 13:52:22 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.19) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 5 Jul 2018 13:52:21 -0700 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=HPIsZak8jSoibuxtYIdHwIpLrNgrA8kygXJ18pHJlMM=; b=KoOPTVD1FCWeetr4d4nI7Ob5Gs+olK2exBxPQ2dhblXBW781mNWS5jjTbBJD9eqHVzgkKtYGkIYK84QiKtCbXh4YFNj4s1NCmpFXPeuOe/LyBCnDkATTrf/UvsK0kjDoQtHQwr0B755xJoyV/7o23iyRrqbIJubJLMmKS/WnPug= Received: from castle.thefacebook.com (2620:10d:c090:200::4:9a3d) by BY2PR15MB0166.namprd15.prod.outlook.com (2a01:111:e400:58e0::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.26; Thu, 5 Jul 2018 20:52:17 +0000 From: Roman Gushchin To: CC: , , , Roman Gushchin , Alexei Starovoitov , Daniel Borkmann Subject: [PATCH v2 bpf-next 10/14] bpftool: add support for CGROUP_STORAGE maps Date: Thu, 5 Jul 2018 13:51:35 -0700 Message-ID: <20180705205139.3462-11-guro@fb.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180705205139.3462-1-guro@fb.com> References: <20180705205139.3462-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c090:200::4:9a3d] X-ClientProxiedBy: MWHPR13CA0025.namprd13.prod.outlook.com (2603:10b6:300:95::11) To BY2PR15MB0166.namprd15.prod.outlook.com (2a01:111:e400:58e0::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c475be29-c64f-4aff-89a2-08d5e2b93226 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:BY2PR15MB0166; X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0166;3:TY7kvM8yIP+ZpErbH4KgtuI5j26J3qqAlcOEShz3Xecio9wQrFV9fy8A8MuemeHzIn1f1l5iI5S6+Sw4btmxQeq/OBn7ctbl3KZFPdDO4vSCfyLJ+6jD/fRd5P2rOd5n8LOQzLTigCb+56GRZjwj3rCwT5QZPn5U8ow59p/9KWleI0f4K8tcnaGyqL4Evxq3nG7xZUvv0w2MQIWnWxLUyNrducePaFdlGb6YxwdufcXWlEO3SXGgvrzFf2SPh6gX;25:CV+6mn0N/EidoK+ixGuPv6zkBE+cBLZiTGDYoTTnZIVYj4aFJd6E46qo7JrsaTyPYeWE/2vL8+ZZhG56ZvLiVOXdgWc7O3hKcJaUgvkO1SEY6utZ4RoVwByWRuocpiRj4IkhFaCCL4OVYHH7LKrnowVgmpGs97OvYxooGNSlHUZ0mL+0ZqjUbsai6vfpH07ny56YUXI/XpH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Ezya51VQFrSNEMokP6gG+m3Iju8jwzdNl5tEM/e4yawNxl+VdtKMO++RYara9mZMl5SUCyF2hLVAVbnyA4XuvEidf8jQkJ2KYvdM47nPMI9nMaytN6ls2jw+uUBvYc+CO+eW0lmp0l4Ql2A7hIMAG25xxr+4ymLYojKbm4JsmooAZc/KK/HRAPZYvg+Ihshhg7kTOUB5kW 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)(93006095)(93001095)(3002001)(3231254)(11241501184)(944501410)(52105095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:BY2PR15MB0166;BCL:0;PCL:0;RULEID:;SRVR:BY2PR15MB0166; X-Forefront-PRVS: 0724FCD4CD X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(136003)(376002)(346002)(366004)(396003)(39860400002)(189003)(199004)(11346002)(446003)(5660300001)(25786009)(6512007)(4326008)(53936002)(6916009)(6666003)(6116002)(7736002)(16526019)(50466002)(8936002)(48376002)(105586002)(53416004)(486006)(316002)(54906003)(68736007)(1076002)(186003)(16586007)(47776003)(476003)(2616005)(478600001)(106356001)(81166006)(69596002)(8676002)(81156014)(305945005)(14444005)(97736004)(51416003)(86362001)(2906002)(46003)(2351001)(50226002)(6506007)(2361001)(52396003)(36756003)(6486002)(76176011)(52116002)(386003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR15MB0166;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;BY2PR15MB0166;23:/gpPG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1l8jviRJJkkeSFulSx1BJTYgBjYG7m2YkINIHZ0d1wcf3mRnw2lrMSxvMiFBTDFw4NTmdrNxRzulsZgG1M= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2018 20:52:17.5171 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c475be29-c64f-4aff-89a2-08d5e2b93226 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR15MB0166 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-05_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 5989e1575ae4..14bef5855d8c 100644 --- a/tools/bpf/bpftool/map.c +++ b/tools/bpf/bpftool/map.c @@ -65,6 +65,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