projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'gfs2-v5.13-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git]
/
tools
/
perf
/
util
/
bpf_counter.c
diff --git
a/tools/perf/util/bpf_counter.c
b/tools/perf/util/bpf_counter.c
index
ddb52f7
..
974f10e
100644
(file)
--- a/
tools/perf/util/bpf_counter.c
+++ b/
tools/perf/util/bpf_counter.c
@@
-451,10
+451,10
@@
static int bperf_reload_leader_program(struct evsel *evsel, int attr_map_fd,
goto out;
}
- err = -1;
link = bpf_program__attach(skel->progs.on_switch);
- if (
!link
) {
+ if (
IS_ERR(link)
) {
pr_err("Failed to attach leader program\n");
+ err = PTR_ERR(link);
goto out;
}