Skip to content

Bpftrace installation is not working as expected #14193

@alexcastilio

Description

@alexcastilio

Describe the bug
I'm trying to use bpftrace but it's not working properly.

Commands attempted:

bpftrace -e 'BEGIN { print("hello")}'
# error: <unknown>:0:0: in function BEGIN i64 (ptr): 0x564822871f20: i64 = GlobalAddress<ptr @__atomic_compare_exchange> 0 too many arguments

bpftrace -e 'kprobe:tcp_v4_rcv { printf("tcp packet received\n"); }'
# error: <unknown>:0:0: in function kprobe:tcp_v4_rcv i64 (ptr): 0x55a9b4fe14c0: i64 = GlobalAddress<ptr @__atomic_compare_exchange> 0 too many arguments

To Reproduce
Steps to reproduce the behavior:

# Install bpftrace:
tdnf -y install bpftrace

# Check version
bpftrace -V
# bpftrace v0.20.3

# Run bpftrace:
bpftrace -e 'BEGIN { print("hello")}'
# error: <unknown>:0:0: in function BEGIN i64 (ptr): 0x564822871f20: i64 = GlobalAddress<ptr @__atomic_compare_exchange> 0 too many arguments

Expected behavior
Command should run without errors.

Screenshots
If applicable, add screenshots or log outputs to help explain your problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions