|
@@ -304,11 +304,8 @@ int bpf_perf_event_read_simple(void *mem, unsigned long size,
|
|
void **buf, size_t *buf_len,
|
|
void **buf, size_t *buf_len,
|
|
bpf_perf_event_print_t fn, void *priv);
|
|
bpf_perf_event_print_t fn, void *priv);
|
|
|
|
|
|
-struct nlmsghdr;
|
|
|
|
struct nlattr;
|
|
struct nlattr;
|
|
typedef int (*dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb);
|
|
typedef int (*dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb);
|
|
-typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, dump_nlmsg_t,
|
|
|
|
- void *cookie);
|
|
|
|
int bpf_netlink_open(unsigned int *nl_pid);
|
|
int bpf_netlink_open(unsigned int *nl_pid);
|
|
int nl_get_link(int sock, unsigned int nl_pid, dump_nlmsg_t dump_link_nlmsg,
|
|
int nl_get_link(int sock, unsigned int nl_pid, dump_nlmsg_t dump_link_nlmsg,
|
|
void *cookie);
|
|
void *cookie);
|