Skip to content

Fix usdt example in CI #397

Closed
Closed
@bobrik

Description

@bobrik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions