Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp58361imm; Fri, 21 Sep 2018 10:15:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbV17AAvdTt7+0S2x+tkjERZAieKAqujq6EfshhKDMVVgLXj0XqVrS05Gvz/W11w5l15eJd X-Received: by 2002:a17:902:28a4:: with SMTP id f33-v6mr45503325plb.297.1537550131580; Fri, 21 Sep 2018 10:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537550131; cv=none; d=google.com; s=arc-20160816; b=WIzw1Ix0RamY93EqaYEA78z0jdzhoQasMOGzNN9HREb/Gkkm4voxnXjJMOtYxMeZsP Ts/t57boZNxGtypgolKvNH947epqR+0HyS3QfGkxSeTk+kHuJ4yiJ6CunTovJpra2AFq kzyM6EwH6f5ktqcUbnlCpoOaxrvE1Zv8js2Vh2oPYhzFiZlJcOhcT05QCa/4bH4JJ00x /AoZy4nE9scHh+V9s1NJHEsXkh1/Di+ZBWOJM4Uc6wzukDfos80JPkKeD23cil5DWzNt a2ETydpXlG6iMRM28vtsODeXqEmiPau7zjCkorSPhL3gV1uTSG58iKU7Y1n9NKgethvX pcvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:dkim-signature; bh=JYOEhmrInLqMDzLo03aQjealPyB9iBXIgkUjDnfYUwI=; b=hu4hmdBXAIByZ5+zvo7n7IJPBLcC1nnwAsAiCicnVw1w1GeiPDX/QtXP8l8FJ3Afro 7IguktknaH0qUpMJUXkH/CTEYHCyPrMvQ7oQN6vDOuRyLM7ZX7UkV/FAOOPiJJvAjTL2 oc9mrRHD3hXHC02bXXlW593fe6dWOLXqU3PrseV3TUmjx1ul3eyhFRbJH9hy3vE6EY38 ROq7etFr0hDmypym89nzYgbB84OULhqsEzwUOH8qXfmPlrIOQMbVfcKCWm1V+0efri8O PQ1AbgLacY93Uh7jwTQMoJPwa+d64OZqhtc8qz8Qsbjhhl9plCukTQ5CYUd/5n5kUS+r MT/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=j8l+3t4r; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=M6xWvm+3; 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 e186-v6si28078978pfc.176.2018.09.21.10.15.15; Fri, 21 Sep 2018 10:15: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=j8l+3t4r; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=M6xWvm+3; 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 S2391011AbeIUXE2 (ORCPT + 99 others); Fri, 21 Sep 2018 19:04:28 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:51510 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390951AbeIUXE1 (ORCPT ); Fri, 21 Sep 2018 19:04:27 -0400 Received: from pps.filterd (m0044012.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8LHBpxa022957; Fri, 21 Sep 2018 10:14:16 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=facebook; bh=JYOEhmrInLqMDzLo03aQjealPyB9iBXIgkUjDnfYUwI=; b=j8l+3t4r7wWAd2sSyuHS+vKPJW0XWXcZRqi2mNEN9Ae1s5fTzBUXV4Tj988ge+HDxKoU WXoYgQ4Jptb14LOoDy21IBV9ZIUjU0M8HJVXHFaMeootiw5dIG9XY8pi6R+4Z+Ahg4gJ 3LPKrgl0M5JqbedgFV6XgeH3YS9PTT0iEUw= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2mn2g88emj-2 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 21 Sep 2018 10:14:16 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.34) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 21 Sep 2018 13:14:14 -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=JYOEhmrInLqMDzLo03aQjealPyB9iBXIgkUjDnfYUwI=; b=M6xWvm+31NIOMYIffiiX3BvW+ZB9KlOB5wq8wafWxH4x3AztskE4rFYR7eQIBNi+VqiHvpPn0kfarbrxypRbWSj8uGR4MBmKj5vaP+tevGAhD94UhArN7SEVp5csWtZ0X4irtXuuMLtDcZ3HmZcocrEc0QRiouu98/4ucTQmJSo= Received: from BY2PR15MB0167.namprd15.prod.outlook.com (10.163.64.141) by BY2PR15MB0327.namprd15.prod.outlook.com (10.163.65.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.14; Fri, 21 Sep 2018 17:14:13 +0000 Received: from BY2PR15MB0167.namprd15.prod.outlook.com ([fe80::5c5b:75ea:cae:1e68]) by BY2PR15MB0167.namprd15.prod.outlook.com ([fe80::5c5b:75ea:cae:1e68%2]) with mapi id 15.20.1143.017; Fri, 21 Sep 2018 17:14:13 +0000 From: Roman Gushchin To: "netdev@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , Kernel Team , Roman Gushchin , Jakub Kicinski , Daniel Borkmann , Alexei Starovoitov Subject: [PATCH bpf-next 6/9] bpftool: add support for PERCPU_CGROUP_STORAGE maps Thread-Topic: [PATCH bpf-next 6/9] bpftool: add support for PERCPU_CGROUP_STORAGE maps Thread-Index: AQHUUc6EI1OCi67pD06wga6pFG+r/A== Date: Fri, 21 Sep 2018 17:14:12 +0000 Message-ID: <20180921171353.11050-6-guro@fb.com> References: <20180921171353.11050-1-guro@fb.com> In-Reply-To: <20180921171353.11050-1-guro@fb.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR10CA0052.namprd10.prod.outlook.com (2603:10b6:300:2c::14) To BY2PR15MB0167.namprd15.prod.outlook.com (2a01:111:e400:58e0::13) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:200::7:15ea] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BY2PR15MB0327;20:YYiyWjgBVBdzHIDju2IqlKqIwILhLjlmKhOHRBRFUWGPoHowY8c9hEkGn1Mtmqy9H80RNURB4khV1D3bcgzUTLYpcMalUjHFXml8rYuxNdzFYFAeZiwqdNT8LhrAIOn/lajCWicN8YKIqFs6JqoKHQmthtZxzWjsvepMAOzncjw= x-ms-office365-filtering-correlation-id: 032b0fe7-9881-48ec-1122-08d61fe5a6c2 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BY2PR15MB0327; x-ms-traffictypediagnostic: BY2PR15MB0327: 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)(3002001)(3231355)(11241501184)(944501410)(52105095)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051)(76991041);SRVR:BY2PR15MB0327;BCL:0;PCL:0;RULEID:;SRVR:BY2PR15MB0327; x-forefront-prvs: 0802ADD973 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(136003)(396003)(346002)(366004)(39860400002)(189003)(199004)(1730700003)(2616005)(446003)(186003)(36756003)(5250100002)(256004)(68736007)(54906003)(6486002)(53936002)(81166006)(5640700003)(81156014)(8676002)(6512007)(8936002)(305945005)(105586002)(386003)(6916009)(2501003)(106356001)(316002)(7736002)(1076002)(4326008)(99286004)(478600001)(46003)(6436002)(2351001)(6346003)(39060400002)(14444005)(2900100001)(11346002)(76176011)(52116002)(102836004)(25786009)(14454004)(2906002)(5660300001)(97736004)(6506007)(86362001)(486006)(476003)(6116002)(71190400001)(71200400001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR15MB0327;H:BY2PR15MB0167.namprd15.prod.outlook.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-antispam-message-info: SDIMWc6pRQiNzX2zfn5MVEeyvm9LyvQPfhukbFbqDIB80zLFqJw0gOOTenUrjyMaxba4nQi2siTwDnz5WzbsWUfAygDTRyss9tor1qK2eSMziyv8vJ57w8Iw7DaYaiMrJ/ChgZfHfFyCzJmHwvWLiMgxFdnxnXGgYsYYrehh0CmTWhy19miDQoyn874ANCoURaggnFC1bFQXDAXxdIbz7Rl5sO601Q3fRAcCroTQXR1QhHNqk9V5LJre27BkqZvijIt/Ky4QhrIq2ZJNIj/bXNw0N05h+Racj27ebDweTYPZMLwd5vznAtZZiXXRjFV3s9dPLllHYuirM+ya9JCjuQYa1Y9YMzObImeoBEZqls0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 032b0fe7-9881-48ec-1122-08d61fe5a6c2 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2018 17:14:12.9743 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR15MB0327 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-21_07:,, 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 This commit adds support for BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE map type. Signed-off-by: Roman Gushchin Cc: Jakub Kicinski Cc: Daniel Borkmann Cc: Alexei Starovoitov --- tools/bpf/bpftool/map.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c index af8ad32fa6e9..cb8177593a9a 100644 --- a/tools/bpf/bpftool/map.c +++ b/tools/bpf/bpftool/map.c @@ -71,13 +71,15 @@ static const char * const map_type_name[] =3D { [BPF_MAP_TYPE_XSKMAP] =3D "xskmap", [BPF_MAP_TYPE_SOCKHASH] =3D "sockhash", [BPF_MAP_TYPE_CGROUP_STORAGE] =3D "cgroup_storage", + [BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE] =3D "percpu_cgroup_storage", }; =20 static bool map_is_per_cpu(__u32 type) { return type =3D=3D BPF_MAP_TYPE_PERCPU_HASH || type =3D=3D BPF_MAP_TYPE_PERCPU_ARRAY || - type =3D=3D BPF_MAP_TYPE_LRU_PERCPU_HASH; + type =3D=3D BPF_MAP_TYPE_LRU_PERCPU_HASH || + type =3D=3D BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE; } =20 static bool map_is_map_of_maps(__u32 type) --=20 2.17.1