Skip to content

Commit

Permalink
libbpf-tools: update vfsstat for libbpf 1.0
Browse files Browse the repository at this point in the history
Switch to libbpf 1.0 mode and adapt libbpf API usage accordingly.

Signed-off-by: Andrii Nakryiko <[email protected]>
  • Loading branch information
anakryiko committed Dec 20, 2021
1 parent a5b6c3c commit f083d3d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions libbpf-tools/vfsstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,9 @@ int main(int argc, char **argv)
if (err)
return err;

libbpf_set_strict_mode(LIBBPF_STRICT_ALL);
libbpf_set_print(libbpf_print_fn);

err = bump_memlock_rlimit();
if (err) {
fprintf(stderr, "failed to increase rlimit: %s\n",
strerror(errno));
return 1;
}

skel = vfsstat_bpf__open();
if (!skel) {
fprintf(stderr, "failed to open BPF skelect\n");
Expand Down

0 comments on commit f083d3d

Please sign in to comment.