Skip to content

Reading from arguments doesn't work with bpftrace #2

@vchuravy

Description

@vchuravy
julia> using UProbes

julia> function f(arg)
           if @query(:julia, :test, typeof(arg))
               @probe(:julia, :test, arg)
           end
       end
f (generic function with 1 method)

julia> while true
           i = rand(Int64)
           f(i)
       end
➜  ~ sudo bpftrace -p 31417 -e "usdt:julia:test { @[comm] = hist(arg0); }"
Attaching 1 probe...
Code not generated for probe: usdt:/tmp/jl_bnvl90:test
➜  ~ readelf -n /tmp/jl_bnvl90 

Displaying notes found in: .note.stapsdt
  Owner                 Data size       Description
  stapsdt              0x0000002f       NT_STAPSDT (SystemTap probe descriptors)
    Provider: julia
    Name: test
    Location: 0x0000000000001005, Base: 0x0000000000002000, Semaphore: 0x0000000000004000
    Arguments: -8@-8(%rsp)

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