Skip to content

5.9.2 bpftrace -l 'usdt:*' doesnt run on new version. #18

@asmca

Description

@asmca

book section 5.9.2, page 150,
quote"""

bpftrace -l 'usdt:/usr/local/cpython/python'

usdt:/usr/local/cpython/python:line
usdt:/usr/local/cpython/python:function__entry
usdt:/usr/local/cpython/python:function__return
......
"""

on my env:
Oracle Linux 7.9
kernel: 5.4.17-2136.304.1.el7uek.x86_64

bpftrace-0.13.0-2.el7.x86_64
$bpftrace --version
bpftrace v0.13.0

[root@EL7 ~]$bpftrace -l 'usdt:/usr/bin/python'
stdin:1:1-21: ERROR: usdt probe type requires 2 or 3 arguments
usdt:/usr/bin/python


seems bpftrace -l parameter changes in newer versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions