Skip to content

Commit

Permalink
libbpf-tools: update bpftool and fix .rodata hack
Browse files Browse the repository at this point in the history
Update bpftool to the latest version, handing const volatile arrays properly
when generating BPF skeletons. Fix tcpconnect tool hack to work around that
issue.

Signed-off-by: Andrii Nakryiko <[email protected]>
  • Loading branch information
anakryiko authored and yonghong-song committed Jul 22, 2020
1 parent c31e9d6 commit a02663b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified libbpf-tools/bin/bpftool
Binary file not shown.
2 changes: 1 addition & 1 deletion libbpf-tools/tcpconnect.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

const volatile bool do_count;
const volatile int filter_ports_len;
SEC(".rodata") int filter_ports[MAX_PORTS];
const volatile int filter_ports[MAX_PORTS];
const volatile pid_t filter_pid;
const volatile uid_t filter_uid = -1;

Expand Down

0 comments on commit a02663b

Please sign in to comment.