Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp87903imm; Thu, 2 Aug 2018 14:31:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdbXHFB6NK0DdSBNUSlVULXQtsEtmpFVDMNNsLjSdeu6/9HWz6B2gK38ItBzslUMrwn/W8q X-Received: by 2002:a62:a3d1:: with SMTP id q78-v6mr1234108pfl.5.1533245492017; Thu, 02 Aug 2018 14:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533245491; cv=none; d=google.com; s=arc-20160816; b=gecxQsyDipbQ2WoAzI4pEluymLFiajUaadWm0gJUUoEvVJtU6poMydborH6uU8drlH T9f9tQ11cY43LbTN8H5/Y2QuohDZwN+GJlHeMntRhyIRCZmyd9jx5fK4XovL/0Z3VOeA 3O8pGLRl4HTtOMUpp6g7HV28Ve/SG058ux9jHJLGciRxX0K9uwp4uS2xAl/rlyIWqrFY 44lM4+flmmF3fjpULfbE1KTJe5L2bXOoyomFo0Tf9f6tyPMl3valiBuvWCAMatkyY1LW uaY36FYRT4buEI9DSHbKDsRHSCvLJ0fgw+7W3foaxXzNuFVfqSatikLDipGNMeVho53O +l+Q== 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=draWu/+u0idJGkNZWiQIRWa0zc1tbYWlBWWVlJ52jB7iPLbAZDYx/Ti6zxUWQ014m2 BBFKJMN/Q4w9l+t4yicjFsbfNz8yn105QKrMkbT+IwVbDBIt4nKuDB9d+9XQHCra8BoV d7bv2+dNaPlv8ty3N6jdCZfW/MiLzuIIqEdBXeVueqcMz07+vyz/OtD8OCa942pAybuF 8bTdTOi63JrwNY+MMqVunYoz8d8AVhHAwsjRnz1EbmM3rh7j+Xb6iYPGRpHfrsnnOYPe E8mv+0gECz7SxtmLUeoSmchB/nT/nCtBNtTM3Q+az305gctTBo9w2eOAkuNydKIlYtoh n8tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Z5xSYtV6; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=cIINB7hO; 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 v21-v6si2143903plo.397.2018.08.02.14.31.15; Thu, 02 Aug 2018 14:31:31 -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=Z5xSYtV6; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=cIINB7hO; 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 S1732458AbeHBXWz (ORCPT + 99 others); Thu, 2 Aug 2018 19:22:55 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:49824 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732253AbeHBXWy (ORCPT ); Thu, 2 Aug 2018 19:22:54 -0400 Received: from pps.filterd (m0148460.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w72LSxYf015349; Thu, 2 Aug 2018 14:29:35 -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=Z5xSYtV6lZefyKFWNTpG7sj5iRkHTH2hLeagUGWOvCYXpNn+sGeWwqws6EIzprn6pKGB Xp0mM66ig167wNx/L9vvBT6RYZu1QzZGwb8q66ID/mRbGRJ86bO9+WjxoLOUx4c9U7zk 6gwzu/zODsujp6JxnviGR0gBdgCICGHOpck= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2km91w0510-8 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 02 Aug 2018 14:29:35 -0700 Received: from PRN-CHUB02.TheFacebook.com (2620:10d:c081:35::11) by PRN-CHUB15.TheFacebook.com (2620:10d:c081:35::27) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 2 Aug 2018 14:29:30 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.12) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 2 Aug 2018 14:28:13 -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=R6SL8MWP0Mf6kG/U0G20BLxim8z8t80VeHH9u/nOJrs=; b=cIINB7hOqMQGUOIiOhKLWgD8mhNy9CD3GOW7aeYt26Adh5ziS3rM9BAR3K7z6pvenzcCns0bDXEiILtzHr9cDhbu2/Jmgv1BN/1qeFUTTrZGgmfE8mY54c9j/ydNde/rj7iweOTxkimPa6NvhD6WjKvOf8p8H++lwo7fsZ7DyW0= 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:04 +0000 From: Roman Gushchin To: CC: , , Roman Gushchin , Alexei Starovoitov , Daniel Borkmann Subject: [PATCH v7 bpf-next 10/14] bpftool: add support for CGROUP_STORAGE maps Date: Thu, 2 Aug 2018 14:27:26 -0700 Message-ID: <20180802212730.18579-11-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: 2151fd71-a430-4cda-d406-08d5f8bed5a1 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:kTwK87Cb8qV/6Dolmg409row4+HmOSX4jzbvJe8Er+t4RlM1uzvm4I+7DbPjonIalWjYkI3P/cTgVEabhpkBvL0F9unznAzqrBUsjttAs20YONpHUkIuvW+kjDCib7D9AvDFLYsHNwhd1wo1+kfYef0ISWZJrb10lpOVbDQcJC+45wXsVIIu5e9MFVU/Jc0+v1J3Wj9mgUgnqzxEL3Hbi8JCSjvxEfybd0L4RORAyTDmGymwaA0WBzrqp0905NPu;25:+Rfb5dIlcJ6G3QLMkAjovUU8qdCBszMXMkGxXJFX/u4BLJBTq7GSOm5oEVBSNMw7fzytyBwinhtebbyYt3fPCoiwGIQ8RvTDQ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4:pjz43BLZgwn88co5C2Uhy8x+fNSHRdVRmsjIfqlv52H/rog1KqYHnPD3enfQNXwyy60+E06h4SYQBUaq9bXj9xyYL9wmgO3a9IEcXqlPNE72cwQPpdLUyvli06dXrTLCVf1G725Ehe1b3I1fWHxKjpQfV3xqx86l1NXxCb4WYoATDRPXS2hgTtNkb74vydB4M8Ha/43f5jSSVQ0mwpsl6FcXR2Xu5y5qMZdA9OIse6eMWR+dN43qIfmP2ZA9clEkwKZT1WieYZ7bDSUi2wm5vGhEZ9TMXklDKqrR8qV3I1b9e4WmmtLVhU4PS2hDQraE 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)(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:IdKGnQEcAIaO3Spa0F/7PvPi0hOrf/hSA5It9zlbC?= =?us-ascii?Q?hCXFMWhp0QprEZw3xZ83vMb5mBj5ucMqwzW5mbKz5RssmLxEgdQCXDwqc0kP?= =?us-ascii?Q?VZpXNfvxjESZoFZeReCcCm1TLIPCLJUWkOXIL9eZ25YD6meiae0T5g/AHyRl?= =?us-ascii?Q?t27Lc1QKlqsLiy7CJJCzu2P5UISB3qCvjloIWjWBWGKbpNZ95NG8raJ8PLjz?= =?us-ascii?Q?LqWevZttoSP2FgN5DkZfqQNH7guUTRJ969lFZ4PIy2qOpwjq42h2VYujFtU3?= =?us-ascii?Q?KWK1qPJI/Lp4MWDAnx0/9N2nbpcGq3ze2qpvCzF+0KLq8aZ99BS3WJ3GoLRZ?= =?us-ascii?Q?MMIKQmYXVVkIADL7NdekHWIwJ03RL0Eu9doIQAImcuQyvYV3+Swjll26q91U?= =?us-ascii?Q?fhNSnoISno4Jr1eLHr9sNPWJJ/+gitgHqwzC2eSJ/wYmvU8MZOpwDZ2eLkrV?= =?us-ascii?Q?BNLF3t/xSwdnyw+e+Gn6C0r11sN5pmzstupce6++Bwbam2C7QFUc70NOBVZD?= =?us-ascii?Q?eu/IuDo/SXinCman/SdZuuUWQCLO+CfREILH5fnZnZKnEIcmktKcXvNGNvxM?= =?us-ascii?Q?aM4EclVMyo14GqU9NEErURe0nmhi6Bx9K/LugsRk2UGF4Lxkhgz995aQWSF0?= =?us-ascii?Q?LD8REDHyriN89/XlDxYZSBFdQru+DgFzY62saKwXG97kpXdeiYTnyOjzyiF3?= =?us-ascii?Q?+4+lxEwNHhfz6F4U+G0eAFSVDW00rpp0oUKv8tUramlFVI5+l8rz4aFwAIk0?= =?us-ascii?Q?W19lnzLriNR96exq9sP/rwK7DLNz8et7Q1TKBAX/CZ1K4hL04pyu2RO/IgT5?= =?us-ascii?Q?h9Q/9F6xG8OOWqztVX7sFh6Dsyuj2rOrZagCg95rJJV+ArSP/szM8ZhAnqaO?= =?us-ascii?Q?50kfOw6edkpROJxp11DNSo39afffyc0TPQVL8xJeJLgCT4p2IB6kBMcGckjE?= =?us-ascii?Q?Chdaqo+ePgtf0R4yT71r++4yJdm8RUsN8MI2/uTFo6dqLPwXpawuF1w/d6iL?= =?us-ascii?Q?EO4ADMkvS2dcVV2BIbgLSDWQ/4daxcwgTWVywGxZMVdqUr6JeaUF1IvuRUBS?= =?us-ascii?Q?A53LbDjLWiJwhACQbC5Vl7qfTV/TnHPumsF9BNITBtr8YHhLv5tSkcw/tNjz?= =?us-ascii?Q?1Y+Gv5FUIsz0382FYPyDAkLR2AyoRrHEUpORmNcqO55+C6layau9KbzKkZ97?= =?us-ascii?Q?t3lTUJPfAH8zsgUo6XWYVWMXStikP4wRIQIq1G21KE8tbzxEyUY1K2BMHqIU?= =?us-ascii?Q?+Atz+Pr7yIeFNtEDCrPutevacNWX3irQc1lhdUPqNfV3zoVkwLlAFSEoJEXh?= =?us-ascii?B?dz09?= X-Microsoft-Antispam-Message-Info: +Y7hYCX53c5XW3rO5n1/pfnndZ2rQAKIB90su2SySCcltAa1DWIGzACj1mgWsOoFSxdUpUW41goJ18w5wLOoYgthdZ0yMPPT+qzRR6DBwfe/CzKcTvT34Zl4RyA7PXDBzUH6H8Aiksx7QLdctjxPl2ov7+0RLCznt9voCkJrWcz1TJwgEx+ANRa+mEP2UA6YxmLLXtsaFF2KHp1FsyVbbTValgEwuKElMUzMA4PmkCIjByiO2oME57AwCprX3zx6koHCmxpo6V4NGjgBSimwTU3I8KQVLVujHG12UqfbZxq+ZVlLk+157CiLFj1WNcBI+yunfUiJ+hFHXAJ147fsdrUb+yv/mX+P92C4xIh8AUE= X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0167;6:CG1nuCU1sA7FppKjcl+ywXgPLJT142h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DtEFVagKYqsPpKmtU3SOKD3PXOTc7yt0MxxcQqt/y+A= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2018 21:28:04.3160 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2151fd71-a430-4cda-d406-08d5f8bed5a1 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 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