All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hangbin Liu <liuhangbin@gmail.com>
To: Quentin Monnet <quentin@isovalent.com>
Cc: bpf@vger.kernel.org, "Alexei Starovoitov" <ast@kernel.org>,
	"Daniel Borkmann" <daniel@iogearbox.net>,
	"Andrii Nakryiko" <andrii@kernel.org>,
	"Jesper Dangaard Brouer" <jbrouer@redhat.com>,
	"Yauheni Kaliuta" <ykaliuta@redhat.com>,
	"Toke Høiland-Jørgensen" <toke@redhat.com>
Subject: How about adding a name for bpftool self created maps?
Date: Tue, 21 Jun 2022 10:09:11 +0800	[thread overview]
Message-ID: <YrEoRyty7decoMhh@Laptop-X1> (raw)

Hi Quentin,

When I using `bpftool map list` to show what maps user using. bpftool will
show maps including self created maps. Apart from the "pid_iter.rodata",
there are also array maps without name, which makes it hard to filter out
what maps user using. e.g.

# bpftool map list
63: array  flags 0x0
         key 4B  value 32B  max_entries 1  memlock 4096B
65: array  name pid_iter.rodata  flags 0x480
         key 4B  value 4B  max_entries 1  memlock 4096B
         btf_id 98  frozen
         pids bpftool(10572)
66: array  flags 0x0
         key 4B  value 32B  max_entries 1  memlock 4096B

So do you have plan to add a special name for the bpftool self created maps?
Or do you know if there is a way to filter out these maps?

Thanks
Hangbin

             reply	other threads:[~2022-06-21  2:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-21  2:09 Hangbin Liu [this message]
2022-06-21 21:28 ` How about adding a name for bpftool self created maps? Quentin Monnet
2022-06-22 10:15   ` Hangbin Liu
2022-08-04  6:30   ` Hangbin Liu
2022-08-04 10:01     ` Quentin Monnet
2022-08-05  9:10       ` Hangbin Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YrEoRyty7decoMhh@Laptop-X1 \
    --to=liuhangbin@gmail.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=jbrouer@redhat.com \
    --cc=quentin@isovalent.com \
    --cc=toke@redhat.com \
    --cc=ykaliuta@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.