Skip to content

Commit

Permalink
libbpf-tools: update cachestat 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 7bea6c4 commit 4970d23
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions libbpf-tools/cachestat.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,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: %d\n", err);
return 1;
}

obj = cachestat_bpf__open_and_load();
if (!obj) {
fprintf(stderr, "failed to open and/or load BPF object\n");
Expand Down

0 comments on commit 4970d23

Please sign in to comment.