3 ms·
Try this: bpftrace -lv kfunc:* (or any specific function instead of wildcard) will get you all kfuncs and their respective arguments. output snippet:
by evgpbfhnr 2y ago
Try this:
bpftrace -lv kfunc:*
(or any specific function instead of wildcard) will get you all kfuncs and their respective arguments.
output snippet:
kfunc:vmlinux:tcp_conn_request
struct request_sock_ops * rsk_ops
const struct tcp_request_sock_ops * af_ops
struct sock * sk
struct sk_buff * skb
int retval
kfunc:vmlinux:tcp_connect
struct sock * sk
int retval
kfunc:vmlinux:tcp_create_openreq_child
const struct sock * sk
struct request_sock * req
struct sk_buff * skb
struct sock * retval
I'm not sure how to get this info without bpftrace itself - bpftool might have the info available somehow?
- knuckleheads 2y agoThat’s awesome! Very helpful, thank you. I had been holding off on parsing that output and combining it with vmlinux.h, but that just jumped up way higher priority. Thanks again!