summaryrefslogtreecommitdiffstats
path: root/tools/perf/pmu-events/arch
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2021-05-27 15:00:52 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-05-27 21:51:21 -0300
commitc673b7f59e940061467200f1746820a178444bd0 (patch)
treee1bf0ddbed1a7da7f797c8e7eaef1c34caeae195 /tools/perf/pmu-events/arch
parentc59870e2110e1229a6e4b2457aece6ffe8d68d99 (diff)
downloadlinux-stable-c673b7f59e940061467200f1746820a178444bd0.tar.gz
linux-stable-c673b7f59e940061467200f1746820a178444bd0.tar.bz2
linux-stable-c673b7f59e940061467200f1746820a178444bd0.zip
perf stat: Fix error check for bpf_program__attach
It seems the bpf_program__attach() returns a negative error code instead of a NULL pointer in case of error. Fixes: 7fac83aaf2ee ("perf stat: Introduce 'bperf' to share hardware PMCs with BPF") Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Song Liu <songliubraving@fb.com> Link: http://lore.kernel.org/lkml/20210527220052.1657578-1-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/pmu-events/arch')
0 files changed, 0 insertions, 0 deletions