Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp168221imm; Thu, 28 Jun 2018 17:19:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdiFhbeYZLTPhWfWybSfM0HpsR5+smZImhJWgr25HvDZhV4f/8ljITKGL85iUahRV1WXueE X-Received: by 2002:a62:d94a:: with SMTP id s71-v6mr441707pfg.164.1530231554876; Thu, 28 Jun 2018 17:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530231554; cv=none; d=google.com; s=arc-20160816; b=wQ/NKtUBMgbwDPOA0gT8ixyPRpm7alf2tmURvXSExThGVdVVdrh/IuzfNSMUq4HaFU pj/UehqaeW5mItXj0jsWacpbL6VGNpsup0G4p4oFs464inHjZJDR4kipOIqtVpiLdJRR y2UtlRBywhmVCQNhWv8JqmIE4m0xPbEA/TpD/FNgxuDeOyMguRKUj7Ks3hYtfLKIdgbg b8uFvyc09pt0XxslCW+cagloHxGsYRF6Pcehqg40sKEE9Vjei0cMPmLuwbrLueqSKGqz /IuNE0d02bV/zoEX3YP8I1Qz4KUASGm8Q1yi04g11QGknC0jfr0A+JZMgAbTXblykHRm g6Tg== 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=O6vcl98FaKdpkk+JvlXz1NqEAN2ZUlA63XLzNLC+cxE=; b=d0yn52kaKnmoWHZY+zibk/py2QJKmYJf7HtzvqTr2vPT/jFMRIspzrfapDrHSW+ptn AnA5TUF2tPqJSqoDyKZBJJNhbTuLU8wMaNQzjhkUptO0ELW/N1Gd8bKn8iokLNghLrWC qYeIduZLaLwhEVkYnb8sjNlY7gqb4tupI9rA2b7LACyaz/0mu5RCh9+qBlHYrYCbVx9v 0EiYoveJhswhow84QN9CEz7z48x0dr9Waue55DI2JIthCS+Goy9YQaq8Jt+fqSTrcppv S6vFTn0iTSlkepQdV4Q5xInD4uiRn51BZgmTFGD30y4oPk4hg4ru65rd3KSV8O5q33X0 fL2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=lCVnDQwp; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=JOFrqZKG; 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 bd1-v6si7631705plb.338.2018.06.28.17.19.00; Thu, 28 Jun 2018 17:19:14 -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=lCVnDQwp; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=JOFrqZKG; 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 S935790AbeF1Qsa (ORCPT + 99 others); Thu, 28 Jun 2018 12:48:30 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:56896 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932809AbeF1QsZ (ORCPT ); Thu, 28 Jun 2018 12:48:25 -0400 Received: from pps.filterd (m0001255.ppops.net [127.0.0.1]) by mx0b-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5SGkYvc013481; Thu, 28 Jun 2018 09:48: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=O6vcl98FaKdpkk+JvlXz1NqEAN2ZUlA63XLzNLC+cxE=; b=lCVnDQwps9mnA0iroI7utqPkNGj4zkCnx8jI4mulyYmWXGgjq6OLGU8iLAlfK5l4RjWH EnmBOoHTFtndrImrtyhxEVml6jOXZ6/xuTTgrQlo0dSc3k8C36+g/wzdkboyFQJzOyXD qytw9B0sql9v5eEhW/rAhPhN8GyIWFM+RXM= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0b-00082601.pphosted.com with ESMTP id 2jw2u00757-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 28 Jun 2018 09:48:11 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.26) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 28 Jun 2018 12:48:10 -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=O6vcl98FaKdpkk+JvlXz1NqEAN2ZUlA63XLzNLC+cxE=; b=JOFrqZKGH0izLMAd6bar1AheWpBfSR+Rki7f2koWmWnLxb4ILvZFesk0+9lzZtZgU6Ic5yb99A5GDy7vc/9R6O8Viee6lAnV9nj0s/y0MZyE2XB5sbvuTRj2yX2mcSCY6wLx5q+tInJjq13itOiY6+bIp+k+KmD5UNDTZf89EpE= Received: from castle.thefacebook.com (2620:10d:c090:200::4:4716) by DM3PR15MB1081.namprd15.prod.outlook.com (2603:10b6:0:12::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.24; Thu, 28 Jun 2018 16:48:06 +0000 From: Roman Gushchin To: CC: , , , Roman Gushchin , Alexei Starovoitov , Daniel Borkmann , Jakub Kicinski Subject: [PATCH bpf-next 10/14] bpftool: add support for CGROUP_STORAGE maps Date: Thu, 28 Jun 2018 09:47:15 -0700 Message-ID: <20180628164719.28215-11-guro@fb.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180628164719.28215-1-guro@fb.com> References: <20180628164719.28215-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c090:200::4:4716] X-ClientProxiedBy: MW2PR16CA0046.namprd16.prod.outlook.com (2603:10b6:907:1::23) To DM3PR15MB1081.namprd15.prod.outlook.com (2603:10b6:0:12::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8975cec7-814c-4498-9547-08d5dd16ecf6 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652034)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(2017052603328)(7153060)(7193020);SRVR:DM3PR15MB1081; X-Microsoft-Exchange-Diagnostics: 1;DM3PR15MB1081;3:+UOxa28NMecDpG88v5rDJxHITQ9FoR0/cQ1DiPH2bb9qAiQCB7X5x1M3bQhtfPmsQ63YYEV77bTY4k0oxuwsOsm41XJYCe9Gcp6iTJY2CRxTXlKc4Jfw18Wgezn0RdqPxmB0YdysfidVhSRoCCum9TERiCIntCQ9dzKjKEY8yuahwR6kcMqWiS9jt1cnmRgeALlTlpLOVhaytZwDMxXD2eOYk5+oMx8+eWTAWeUolUrFvF93wIDgu1iZsG7cQ7uP;25:d97wd8ZL+DuftqFexPJkwsjE6NtfNm3z1II374RTJ368E423OM9OXHmjbIgdyN0A51FqKuKAjiokESAnqdpNxyGmqdtYKsBJ3Ilvpw1M6Q7Ktvr28riD2Um6HsNyQmq88Mz6meTvXKeCtSRPETnuAlwG0YiedSQv+K1lqqbPYbVpeXMJP/qQ1Us5WJ+smmgZT5ZZ3eWzdz+/JuYEJkqY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ObrJPPYHHLU9lC9EaTrdpoeH+qU09P3rO3aU+YM804AYkfqnWY8nYDGQ9SNSeRSDQn+ouq55ReQMDTSbUKjDdnBnkKwVnoC4JIYef1uO+35q9QaOPLxhcu1eKcZzXTsDg2unL1swWiG+FoZVqx4j1zvvCJU8/i1mfdxzAhT2YRaz8ZrMFnMzyZMwfncNdnxk 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)(3002001)(10201501046)(93006095)(93001095)(3231254)(11241501184)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:DM3PR15MB1081;BCL:0;PCL:0;RULEID:;SRVR:DM3PR15MB1081; X-Forefront-PRVS: 0717E25089 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(136003)(396003)(346002)(39860400002)(376002)(366004)(189003)(199004)(8676002)(39060400002)(6512007)(4326008)(81166006)(81156014)(69596002)(97736004)(52116002)(2361001)(51416003)(8936002)(76176011)(305945005)(53416004)(186003)(16526019)(6506007)(386003)(106356001)(105586002)(2906002)(25786009)(36756003)(52396003)(7736002)(68736007)(50226002)(5660300001)(6666003)(53936002)(6916009)(48376002)(50466002)(478600001)(6486002)(1076002)(47776003)(6116002)(86362001)(14444005)(16586007)(54906003)(46003)(476003)(486006)(446003)(2351001)(11346002)(2616005)(316002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM3PR15MB1081;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;DM3PR15MB1081;23:BzdV3816lXw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5Sd3PA5STnOVAmRZ7liqWFZ892mtvkAOoT6GKNzaJhCIB4Gs3XGgJ3F3lXWuQTvapgx3sh13fPjB7WbGrqQeuzl/moslaHqRbW/zY2x5zM= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2018 16:48:06.8644 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8975cec7-814c-4498-9547-08d5dd16ecf6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR15MB1081 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-28_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 Cc: 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 097b1a5e046b..154d258cdde3 100644 --- a/tools/bpf/bpftool/map.c +++ b/tools/bpf/bpftool/map.c @@ -67,6 +67,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