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

bpftrace should be able to list uprobe probes #673

Closed
tyroguru opened this issue May 23, 2019 · 0 comments · Fixed by #678
Closed

bpftrace should be able to list uprobe probes #673

tyroguru opened this issue May 23, 2019 · 0 comments · Fixed by #678
Labels
enhancement New feature or request, changes on existing features
Milestone

Comments

@tyroguru
Copy link
Contributor

Currently we have to use objdump (or something similar) to discover what functions are available to attempt to instrument with uprobes. i.e.,:

# objdump -T /proc/2398893/exe |grep -i text |more
00000000029d8d60 g    DF .text  0000000000000027  Base        xdr_u_long
0000000002b0b8b0 g    DF .text  00000000000001f6  Base        malloc_usable_size
00000000029e22a0 g    DF .text  000000000000012e  Base        _seterr_reply
00000000029dae60 g    DF .text  000000000000009f  Base        xdrrec_endofrecord
00000000029da0c0 g    DF .text  00000000000000cb  Base        xdr_longlong_t
00000000029db840 g    DF .text  000000000000008d  Base        key_setsecret
00000000029e1ce0 g    DF .text  00000000000000a6  Base        xdr_rmtcallres

bpftrace should be able to do this directly for us with a bpftrace -l /path/to/binary or bpftrace -l -p <pid>. The -p invocation now gives us usdt probes available in that process but not uprobes (actually it currently provides kprobes/software/others and I don't think it should do that with the -p option).

@mmarchini mmarchini added this to the 0.9.1 milestone May 23, 2019
mmarchini added a commit that referenced this issue May 28, 2019
mmarchini added a commit that referenced this issue May 30, 2019
mmarchini added a commit that referenced this issue May 30, 2019
@mmarchini mmarchini added the enhancement New feature or request, changes on existing features label Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request, changes on existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants