Git Product home page Git Product logo

Comments (6)

rafaeldtinoco avatar rafaeldtinoco commented on June 5, 2024 1

Commit got merged in for-next (bpf-next):

commit 467b3225553a (HEAD -> rafaeldtinoco, origin/master, origin/for-next, origin/HEAD)
Author: Rafael David Tinoco <[email protected]>
Date:   Sun Sep 12 03:48:44 2021

    libbpf: Introduce legacy kprobe events support

    Allow kprobe tracepoint events creation through legacy interface, as the
    kprobe dynamic PMUs support, used by default, was only created in v4.17.

    Store legacy kprobe name in struct bpf_perf_link, instead of creating
    a new "subclass" off of bpf_perf_link. This is ok as it's just two new
    fields, which are also going to be reused for legacy uprobe support in
    follow up patches.

    Signed-off-by: Rafael David Tinoco <[email protected]>
    Signed-off-by: Andrii Nakryiko <[email protected]>
    Link: https://lore.kernel.org/bpf/[email protected]

It will get into bpf-next and, eventually, into libbpf (github). We will be able to get rid of legacy kprobe functions.

from libbpfgo.

yanivagman avatar yanivagman commented on June 5, 2024 1

I think we should wait with that until libbpf 0.6.0 (which should include the patch) will be out

from libbpfgo.

rafaeldtinoco avatar rafaeldtinoco commented on June 5, 2024

Latest proposal at LORE thread.

from libbpfgo.

rafaeldtinoco avatar rafaeldtinoco commented on June 5, 2024

Latest proposal at:

https://lore.kernel.org/bpf/[email protected]/

already to be applied on top of the:

[PATCH v3 bpf-next 00/14] BPF perf link and user-provided bpf_cookie

patch set from Andrii. It will need to wait until that patch set is merged. It correctly replaces libbpfgo legacy kprobe implementation embedded at libbpfgo.go source code (for current libbpf upstream branch).

from libbpfgo.

rafaeldtinoco avatar rafaeldtinoco commented on June 5, 2024

Alright, the legacy kprobe logic just got merged into libbpf:

libbpf/libbpf@749b394

and into bpf-next tree. Andrii has already refactored it to support legacy uprobes as well as some fixes.

We're ready for the legacy kprobe specific functions removal in libbpfgo.

from libbpfgo.

yanivagman avatar yanivagman commented on June 5, 2024

@rafaeldtinoco I think we can now remove those functions, can't we?

from libbpfgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.