From patchwork Fri Mar 8 01:08:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexei Starovoitov X-Patchwork-Id: 13586415 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 951A8C54E49 for ; Fri, 8 Mar 2024 01:08:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1BB1C6B0301; Thu, 7 Mar 2024 20:08:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 169E46B0303; Thu, 7 Mar 2024 20:08:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 00A156B0304; Thu, 7 Mar 2024 20:08:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id E07A66B0301 for ; Thu, 7 Mar 2024 20:08:50 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id C51601212CE for ; Fri, 8 Mar 2024 01:08:50 +0000 (UTC) X-FDA: 81872087220.23.AAD807E Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) by imf02.hostedemail.com (Postfix) with ESMTP id 06DFB80017 for ; Fri, 8 Mar 2024 01:08:48 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=I0ADVzHB; spf=pass (imf02.hostedemail.com: domain of alexei.starovoitov@gmail.com designates 209.85.160.48 as permitted sender) smtp.mailfrom=alexei.starovoitov@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709860129; a=rsa-sha256; cv=none; b=Qp8tY9ADn+4MAIJyp+QP4fKjz1UVxlwos50Sm7bkbYi/T9cUT1junhaBUKczB0vxmuTJYH dx+OKxKlYNuhlRr+cmcYUFHX2QTx7UvNG0XO7Z5REvwOz5jW8ZZKcx+6h/ordfU6+yuq+a 9yJXet6sHSkxZ0DK7z8p/UI7HnD9QY4= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=I0ADVzHB; spf=pass (imf02.hostedemail.com: domain of alexei.starovoitov@gmail.com designates 209.85.160.48 as permitted sender) smtp.mailfrom=alexei.starovoitov@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709860129; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=82vZnxRJEZksxOTJNBwPOOHeDn+cA1sXhnKMXtW6pFk=; b=rmc5u/Ea9J/4fy4hqbIPM2j1LgwdRxKtwROvaYm7IO6MwtYfHlDJxRnV7VygtY8OGNyjk4 LEpiVuS3O0I645YHx6V22WWYPqcu200Q972YbEcskyKXV4L5HbMJEGI9k8r+9xziyNbq2p GsaN3CYSk6y+M94WMW1QHpIlDu4oUBA= Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-220ef791617so201656fac.1 for ; Thu, 07 Mar 2024 17:08:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709860128; x=1710464928; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=82vZnxRJEZksxOTJNBwPOOHeDn+cA1sXhnKMXtW6pFk=; b=I0ADVzHBJKED58eKFSEz/9vmt6Dmm7+IlkvmZQjIkuexppWq/uj/fAHqBE8k8Yutj5 7jtaaTNNpTwA8rDCa+U1eGOcK2YQK59pHA+n5FGuyfX6sRL94NI8V0hW6VOB2+NpzMf8 lZrTFxL4lEwvKAFpcydjoyvLkF/48raxRhhTMFlaEEtH/bBnBsRs+0btdZLLqcMZMhty op9WJemiSf7nYxWdX+Hb+1QMyJlnrG6rdI5OeyPEIB70qN7+3I+tvLDDUadMc4hHTp9m UBJ0ToOkrY4CxZtz11E2rHjleliGYl4a8KTMWgL8ICK8Ydj0+r6QAQE0lN98JJbtA9Up Marw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709860128; x=1710464928; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=82vZnxRJEZksxOTJNBwPOOHeDn+cA1sXhnKMXtW6pFk=; b=aqa/lj1OAun4PVrZnGc0fp4o0bAWRm852DR4qFtjk8URMklvdAjFEwBsXPC9nlIWJl 3xrpEReDWYxVCIpGwVoaK7wTcv/Q8RuNNlUNoEwd3tOBQ6DiktSS2XwuKzSucLFpHohD lquEWg14LQlY2iMFX37oueIM0MAzx6BFPU2PmvzpMZZnuh9NFQqKhQKdRhYY0+ookcZ/ m1yCQrzKJ7r7bUpVGuhr9mqEBSpuISkloA7TKhMGYGWWtTR+eGHIYNXy5fXLSZb1Ob5N i2j5HqYlHIrsgMynyAnZWZJS+UpvHVh3rPQfhwon+0JrX57x+ueoikA8nlD0LzoTVNn+ 4UBQ== X-Forwarded-Encrypted: i=1; AJvYcCU25LhY1dj285PgSyxxYDVexseBIvTBuprQjdDOQXt3dOsklLcGJAHMuLJvtZTPKnud47g2q096GYlElzL8MEzpoKo= X-Gm-Message-State: AOJu0YwPqYgufzo/KnBJhv4LumW7NXTilx6kDT0IJ4Ysxi5NQ/UrcWLk 4ZuKfKamNkekCm6gV07Jht9eMteTpxV4tZaXKax0yPl1toNTNDcb X-Google-Smtp-Source: AGHT+IE9LcecZjYwM9XUozGoy2neA8EIUF8XweFFCrPSrAUddEDrV64m9mFgKcBpQzfDFa2QcLOECA== X-Received: by 2002:a05:6870:d612:b0:221:6e57:ec3b with SMTP id a18-20020a056870d61200b002216e57ec3bmr1653785oaq.54.1709860128064; Thu, 07 Mar 2024 17:08:48 -0800 (PST) Received: from localhost.localdomain ([2620:10d:c090:400::5:428c]) by smtp.gmail.com with ESMTPSA id bd9-20020a056a00278900b006e60c07f551sm8433145pfb.200.2024.03.07.17.08.46 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 07 Mar 2024 17:08:47 -0800 (PST) From: Alexei Starovoitov To: bpf@vger.kernel.org Cc: daniel@iogearbox.net, andrii@kernel.org, torvalds@linux-foundation.org, brho@google.com, hannes@cmpxchg.org, akpm@linux-foundation.org, urezki@gmail.com, hch@infradead.org, linux-mm@kvack.org, kernel-team@fb.com Subject: [PATCH v3 bpf-next 09/14] bpftool: Recognize arena map type Date: Thu, 7 Mar 2024 17:08:07 -0800 Message-Id: <20240308010812.89848-10-alexei.starovoitov@gmail.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) In-Reply-To: <20240308010812.89848-1-alexei.starovoitov@gmail.com> References: <20240308010812.89848-1-alexei.starovoitov@gmail.com> MIME-Version: 1.0 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 06DFB80017 X-Stat-Signature: 75p4qsdt94uxpy54uo116wk43ut8jmxo X-Rspam-User: X-HE-Tag: 1709860128-477060 X-HE-Meta: U2FsdGVkX18W+mp51MY6nSzXRBYfnjLnrzcpN7DbE55syBgcPEKFSjyMqr7s/qMYJI7vf+ZGeR5FgjTaMSO2y+MRKHGISqtpfbaCRzwRdayJQCZQSoOTqRwTQmqX1nDQs1OKGHhJ/FgR0zbe4RydRk50mulyiIa/zpLfOSRLRyL/iz3lPnlmFnE/ADwva3F+NcMK+FpuJNreU8QZLw3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RflYu40YDRjwfGcR3LfsPWOKqKaZL88Gl97H4VJ9RSDDb8vpQewSiSJCuozk/HT2SpfEvsLE0gSUVDm2IreAGTWVf6cR/hy+mhQHcET048qWH3q/5JV1hsrxIa0A97E1yYex8CXiGyoS+JVhPYy7EmO+5E4Oy3+5WI/+hS6F4nhk84B+dFFijkZiKMD8JhZL8WCz9YcHB00aR3ycceHMqyKknyDE= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000289, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Alexei Starovoitov Teach bpftool to recognize arena map type. Signed-off-by: Alexei Starovoitov Acked-by: Quentin Monnet --- tools/bpf/bpftool/Documentation/bpftool-map.rst | 2 +- tools/bpf/bpftool/map.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bpf/bpftool/Documentation/bpftool-map.rst b/tools/bpf/bpftool/Documentation/bpftool-map.rst index 3b7ba037af95..9d6a314dfd7a 100644 --- a/tools/bpf/bpftool/Documentation/bpftool-map.rst +++ b/tools/bpf/bpftool/Documentation/bpftool-map.rst @@ -55,7 +55,7 @@ MAP COMMANDS | | **devmap** | **devmap_hash** | **sockmap** | **cpumap** | **xskmap** | **sockhash** | | **cgroup_storage** | **reuseport_sockarray** | **percpu_cgroup_storage** | | **queue** | **stack** | **sk_storage** | **struct_ops** | **ringbuf** | **inode_storage** -| | **task_storage** | **bloom_filter** | **user_ringbuf** | **cgrp_storage** } +| | **task_storage** | **bloom_filter** | **user_ringbuf** | **cgrp_storage** | **arena** } DESCRIPTION =========== diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c index f98f7bbea2b1..b89bd792c1d5 100644 --- a/tools/bpf/bpftool/map.c +++ b/tools/bpf/bpftool/map.c @@ -1463,7 +1463,7 @@ static int do_help(int argc, char **argv) " devmap | devmap_hash | sockmap | cpumap | xskmap | sockhash |\n" " cgroup_storage | reuseport_sockarray | percpu_cgroup_storage |\n" " queue | stack | sk_storage | struct_ops | ringbuf | inode_storage |\n" - " task_storage | bloom_filter | user_ringbuf | cgrp_storage }\n" + " task_storage | bloom_filter | user_ringbuf | cgrp_storage | arena }\n" " " HELP_SPEC_OPTIONS " |\n" " {-f|--bpffs} | {-n|--nomount} }\n" "",