GithubHelp home page GithubHelp logo

Comments (7)

brb avatar brb commented on September 26, 2024

@lmb suggested that https://elixir.bootlin.com/linux/v6.6/source/kernel/trace/trace_kprobe.c#L884 might be the case. Indeed, we are using symbols instead of addrs - https://github.com/cilium/pwru/blob/v1.0.4/main.go#L314.

from pwru.

brb avatar brb commented on September 26, 2024

This is the new behavior introduced in 6.6 - https://lore.kernel.org/all/[email protected]/.

from pwru.

lmb avatar lmb commented on September 26, 2024

For now you could skip attaching if EADDRNOTAVAIL is generated and log a warning or something like that?

from pwru.

brb avatar brb commented on September 26, 2024

if EADDRNOTAVAIL is generated and log a warning or something like that

Yep, but we try to attach the same kprobe to multiple functions in a single go. We would need to figure out which function name is causing us troubles. I think we need to switch to addrs instead of syms.

from pwru.

darox avatar darox commented on September 26, 2024

I patched my vm and now I'm facing the same issue:

./pwru 
2023/12/20 09:49:21 Attaching kprobes (via kprobe)...
712 / 2208 [------------------------>__________________________________________________] 32.25% ? p/s2023/12/20 09:49:21 Opening kprobe esp_input_restore_header: creating perf_kprobe PMU (arch-specific fallback for "esp_input_restore_header"): token esp_input_restore_header: opening perf event: cannot assign requested address
ubuntu# uname -a
Linux ubuntu 6.5.13-orbstack-00116-gb64875927ef8 #1 SMP Wed Dec  6 22:19:46 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

I applied https://github.com/cilium/pwru/pull/297/commits so that I can continue on the json output PR.

from pwru.

brb avatar brb commented on September 26, 2024

@darox We have released v1.0.5 which should have the tmp fix for the loading problem.

from pwru.

darox avatar darox commented on September 26, 2024

I just rebased and it works. Thx!

from pwru.

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.