Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Generate binding for struct unix_sock for probes
Browse files Browse the repository at this point in the history
Signed-off-by: Junyeong Jeong <rhdxmr@gmail.com>
  • Loading branch information
rhdxmr committed Feb 17, 2022
1 parent 6b47c28 commit f41b29c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redbpf-probes/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ fn generate_bindings_kernel_headers() -> Result<()> {
"__sk_.*",
"sk_.*",
"inet_sock",
"unix_sock",
"sockaddr",
"sockaddr_in",
"in_addr",
Expand Down Expand Up @@ -181,6 +182,7 @@ fn generate_bindings_vmlinux() -> Result<()> {
"^__sk_.*",
"^sk_.*",
"^inet_sock$",
"^unix_sock$",
"^sockaddr$",
"^sockaddr_in$",
"^in_addr$",
Expand Down
1 change: 1 addition & 0 deletions redbpf-probes/include/redbpf_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <uapi/linux/bpf.h>
#include <net/sock.h>
#include <net/inet_sock.h>
#include <net/af_unix.h>
#include <linux/ipv6.h>
#include "xdp.h"
#include "bpf_iter.h"

0 comments on commit f41b29c

Please sign in to comment.