Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usdt example in CI #397

Closed
bobrik opened this issue May 14, 2024 · 2 comments
Closed

Fix usdt example in CI #397

bobrik opened this issue May 14, 2024 · 2 comments

Comments

@bobrik
Copy link
Contributor

bobrik commented May 14, 2024

It broke with the ubuntu upgrade in #845.

Debian usdt probes for python3:

ivan@vm:~/projects/ebpf_exporter$ sudo tplist-bpfcc -vv -l python3
python:audit [sema 0xa5f0fe]
  location #1 /usr/bin/python3 0x4728b8
    argument #1 8 unsigned bytes @ regs[22]
    argument #2 8 unsigned bytes @ regs[21]
python:gc__done [sema 0xa5f0f8]
  location #1 /usr/bin/python3 0x48637c
    argument #1 8 signed   bytes @ regs[28]
python:gc__start [sema 0xa5f0f6]
  location #1 /usr/bin/python3 0x486494
    argument #1 4 signed   bytes @ *(sp + 152)
python:line [sema 0xa5f0f4]
  location #1 /usr/bin/python3 0x4b88dc
    argument #1 8 unsigned bytes @ regs[26]
    argument #2 8 unsigned bytes @ regs[0]
    argument #3 4 signed   bytes @ regs[28]
python:import__find__load__start [sema 0xa5f0fa]
  location #1 /usr/bin/python3 0x50ec90
    argument #1 8 unsigned bytes @ regs[0]
python:import__find__load__done [sema 0xa5f0fc]
  location #1 /usr/bin/python3 0x50eca8
    argument #1 8 unsigned bytes @ regs[0]
    argument #2 4 signed   bytes @ regs[1]
python:function__entry [sema 0xa5f0e8]
  location #1 /usr/bin/python3 0x469fcc
    argument #1 8 unsigned bytes @ regs[20]
    argument #2 8 unsigned bytes @ regs[21]
    argument #3 4 signed   bytes @ regs[0]
python:function__return [sema 0xa5f0ea]
  location #1 /usr/bin/python3 0x46a01c
    argument #1 8 unsigned bytes @ regs[20]
    argument #2 8 unsigned bytes @ regs[21]
    argument #3 4 signed   bytes @ regs[0]

Ubuntu 24.04 probes:

ivan@vm:~/projects/ebpf_exporter$ sudo tplist-bpfcc -vv -l ./python3
python:import__find__load__done [sema 0xb8a3ac]
  location #1 ./python3 0x58c604
    argument #1 8 unsigned bytes @ regs[0]
    argument #2 4 signed   bytes @ regs[1]
python:import__find__load__start [sema 0xb8a3aa]
  location #1 ./python3 0x58c624
    argument #1 8 unsigned bytes @ regs[0]
python:audit [sema 0xb8a3ae]
  location #1 ./python3 0x5a220c
    argument #1 8 unsigned bytes @ regs[23]
    argument #2 8 unsigned bytes @ regs[21]
python:gc__start [sema 0xb8a3a6]
  location #1 ./python3 0x5b1540
    argument #1 4 signed   bytes @ *(sp + 72)
python:gc__done [sema 0xb8a3a8]
  location #1 ./python3 0x5b16f4
    argument #1 8 signed   bytes @ regs[21]

Currently we're using python:function__entry and naturally it doesn't work in Ubuntu.

@bobrik
Copy link
Contributor Author

bobrik commented May 25, 2024

See python/cpython#104280

@bobrik
Copy link
Contributor Author

bobrik commented May 25, 2024

Done in #416.

@bobrik bobrik closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant