projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bea6c4
)
libbpf-tools: update cachestat for libbpf 1.0
author
Andrii Nakryiko
<andrii@kernel.org>
Fri, 17 Dec 2021 22:20:08 +0000
(14:20 -0800)
committer
Andrii Nakryiko
<andrii@kernel.org>
Mon, 20 Dec 2021 21:21:26 +0000
(13:21 -0800)
Switch to libbpf 1.0 mode and adapt libbpf API usage accordingly.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
libbpf-tools/cachestat.c
patch
|
blob
|
history
diff --git
a/libbpf-tools/cachestat.c
b/libbpf-tools/cachestat.c
index b308c5acda419b22815f8bce74b479160e3e554f..3769d939d833e034417cebc887ca961e77fd8f0c 100644
(file)
--- a/
libbpf-tools/cachestat.c
+++ b/
libbpf-tools/cachestat.c
@@
-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");