Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1299760imm; Fri, 27 Jul 2018 14:54:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeW/tGaMMKW7kA/Jc+VnIN25xuHxe/VcsYDph0KdPhrr+smwv5xkJmmcmXdq/HhRXzlFbuB X-Received: by 2002:a65:4c02:: with SMTP id u2-v6mr7754203pgq.364.1532728482139; Fri, 27 Jul 2018 14:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532728482; cv=none; d=google.com; s=arc-20160816; b=OUSr25VJcbsyzxPMmelD6ixK4vSOTrQ8nbtw8NlibmWjrWNcXXdKi/wYHC006MNaFA UC3qR6WMnK6fFx1eQCAV7nxFe6tgnSfEiiUvXwHh7UF/XqXb/tmTD8OSgDxbx459LmGU TST17YvDnZvMd7zClOgJdUkzFkWgHiTeeCRhPGsOffXguzXE6Kat6KO+pRyHYn2P7OcR Zqd3JRDb0uWWwK2jHBHTrYzGDGpCeKQOI5TPpirL4K6atrrWw2BIZUi2NP5DfGzNu46K hngxUhs+4G5Zcg9wmUuZ/xrwhGdhXGiA+O3jCmGZ21RtlWTJz1jxqp6tl9haTo0UilWf JSkA== 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=BJm6O1/uOPhIoUMjsZvbPM1pKde4bsNiRlIK2htsq5fejZpTfv0pvt9nwoIPTwgpRl iRE4yRhYnNrOF/Ygypq8j3Uem1cTzcshzhFektj5yKmmNXm7CyOpskyjE2WMYE0KBJEs MfHpOrJUkDDO2/jLnZ37fQ+JoFH7oSoVkQ49jIPc4Bz4Qa6pSlo+StmiadF6umLEKjsl VGmJvBnHleCqHYbquCH7dqZo/1n4BlhhFpbszHqcXzbz1vWsTBKEVh9XE/eS/8okoQb3 LV+XijhpgAjoq+46QN1eVpNvUFJ82Jybaw6nvZbOBCfEaShuVGccW//7mU/BKRRcOAjr 1SZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Hh3mr24H; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=ZLnFLcwH; 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 k23-v6si4500112pgl.633.2018.07.27.14.54.27; Fri, 27 Jul 2018 14:54:42 -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=Hh3mr24H; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=ZLnFLcwH; 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 S2390021AbeG0XRY (ORCPT + 99 others); Fri, 27 Jul 2018 19:17:24 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:49346 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389963AbeG0XRY (ORCPT ); Fri, 27 Jul 2018 19:17:24 -0400 Received: from pps.filterd (m0044008.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6RLiNiw014649; Fri, 27 Jul 2018 14:53:12 -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=Hh3mr24HJvqBaav5ZaHDO/K87X4DbJtLMklOk3kb1pxxx6EnE6Uz8fQRETzoq9+Ok9U5 H8kPxUiAhH4jYhE2KBIj+Q0NOwgz4UAbNhmHtgwsE92dLKJ92f5mLH/+2GnrYyv5c6qP YvrL0pulolBmyJ6OHkbFeDbYCZwEVMsfu3Y= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2kgb59g2nd-2 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 27 Jul 2018 14:53:12 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.30) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 27 Jul 2018 17:53:11 -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=ZLnFLcwHJf2ldOjjyOrcKxQeCA/wpAOAUVUUK2emdYIUEcDdVqnrOmhQETsoFHTBuHzVN2svTBRH2lo8BImUg6RElpm8wXw2cs2YlyiBzi0znSaKJi5QsCNHOKNgFtunPrO4IJI8K+/LtwJXYBFfWSYcAP8CQItlGQMwgpZuvmY= Received: from castle.thefacebook.com (2620:10d:c090:200::5:fd07) by CY1PR15MB0171.namprd15.prod.outlook.com (2a01:111:e400:58bb::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.17; Fri, 27 Jul 2018 21:53:08 +0000 From: Roman Gushchin To: CC: , , Roman Gushchin , Alexei Starovoitov , Daniel Borkmann Subject: [PATCH v4 bpf-next 10/14] bpftool: add support for CGROUP_STORAGE maps Date: Fri, 27 Jul 2018 14:52:39 -0700 Message-ID: <20180727215243.3850-11-guro@fb.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180727215243.3850-1-guro@fb.com> References: <20180727215243.3850-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c090:200::5:fd07] X-ClientProxiedBy: MWHPR11CA0020.namprd11.prod.outlook.com (2603:10b6:301:1::30) To CY1PR15MB0171.namprd15.prod.outlook.com (2a01:111:e400:58bb::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72863fc0-6f37-4d3f-b35d-08d5f40b5744 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:CY1PR15MB0171; X-Microsoft-Exchange-Diagnostics: 1;CY1PR15MB0171;3:qHCSSFh10GzO0IEHJ8ixZFMm9sTVL09LL9taOjI+SvaSZwHIkEdlFTxHkzQL/ye3oLj38GwBy7az/GaEfPJwfcsh8dMrVidmOXLeASf19wApBWPHvJ/tuLeqxo6JHfk1EZVo1ZzOkjb9iHPcehGdVsS/39N7cGpWu0wLSv+/wKGDHItP8yyvHh5aqPcubm9MfSNqfRVu2lPrqTH75X3vh69ddCHi9RaTPvnhvWHgeEjrR+fZd6gRonlNpOaUfiGe;25:DBL0ZwqLQ4TfZ2X1v1NsxVAstDAPUKWYenrBFOo0fJz2S0ZIwc5uXNqyU/HoMj9iFJ+b36ZLeTlFFtTG/33v5lbUBH93XJ2KYdDk6oRKh61oZ/Jn2nc2/MpO35X5/FvkByswYFHCOvVvUejO4z260O3heigC+yd/utUiybvzrrhvfryRh1o7nC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bPNX5RbZH+V+hZ3ljfVSHj2/V/2+xPKGSsNyEp9JFy86GlQVjXI736BQBmh5pFyP4pECuGo/rWZaXd1gkD269/hO6kGBExA76PyIBdiHvCI+OzT3aS4Xrob4CaVVwzcli9AHT91q5kRb9A6RK7CPo68ySoQmNCQZQqyyAfVPXBuVZE+oLAxIkyoRP+l9vLQ9gyXZpZxdS1/bmDujR3v4p8Qj6X04X7BOXuqRDTX 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)(3231311)(11241501184)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:CY1PR15MB0171;BCL:0;PCL:0;RULEID:;SRVR:CY1PR15MB0171; X-Forefront-PRVS: 07467C4D33 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(366004)(39860400002)(136003)(376002)(346002)(396003)(199004)(189003)(478600001)(36756003)(52116002)(76176011)(106356001)(52396003)(316002)(50226002)(53416004)(51416003)(6512007)(68736007)(50466002)(48376002)(105586002)(2361001)(4326008)(53936002)(25786009)(16586007)(54906003)(2351001)(97736004)(6506007)(386003)(305945005)(7736002)(11346002)(446003)(46003)(486006)(2616005)(69596002)(6666003)(186003)(16526019)(5660300001)(47776003)(476003)(6486002)(6916009)(8936002)(86362001)(6116002)(14444005)(1076002)(81156014)(8676002)(81166006)(2906002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR15MB0171;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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ant-OriginalArrivalTime: 27 Jul 2018 21:53:08.4357 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 72863fc0-6f37-4d3f-b35d-08d5f40b5744 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR15MB0171 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-27_09:,, 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