All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexei Starovoitov" <alexei.starovoitov@gmail.com>
To: "Josh Marshall" <joshua.r.marshall.1991@gmail.com>,
	<bpf@vger.kernel.org>
Subject: Re: Help with eBPF's use of ELF for developing an alternative to `bpftool`
Date: Thu, 03 Dec 2026 01:15:44 +0000	[thread overview]
Message-ID: <DNAP7YBJG9QA.W1RKAZQH78XW@gmail.com> (raw)
In-Reply-To: <CAFkJGRfh_xV+_uk-Ch-EcxPW83-qaSOKTCOu1tEXQbfWa13mQQ@mail.gmail.com>

On Wed, Dec 02, 2026 at 04:19 PM Josh Marshall <joshua.r.marshall.1991@gmail.com> wrote:
> I've been trying to make an alternative to `bpftool` because I
> disagree with how it does a few things.  This has involved digging

Which things? If it's a bug or a missing feature pls send a patch
for bpftool.

bpftool doesn't parse BPF objects. It calls bpf_object__open_file()
or bpf_object__open_mem(), and libbpf does the rest.
Your tool can link with libbpf too. It works from C++.
If you're writing your own ELF parser and libbpf alternative
then you came to a wrong place to ask questions. sorry.

      reply	other threads:[~2026-12-03  1:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  0:19 Help with eBPF's use of ELF for developing an alternative to `bpftool` Josh Marshall
2026-12-03  1:15 ` Alexei Starovoitov [this message]

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=DNAP7YBJG9QA.W1RKAZQH78XW@gmail.com \
    --to=alexei.starovoitov@gmail.com \
    --cc=bpf@vger.kernel.org \
    --cc=joshua.r.marshall.1991@gmail.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.