Thread (4 messages) 4 messages, 3 authors, 2021-07-13

Re: [PATCH] libperf: fix build error with LIBPFM4=1

From: Arnaldo Carvalho de Melo <acme@kernel.org>
Date: 2021-07-13 18:54:23
Also in: lkml

Em Tue, Jul 13, 2021 at 11:32:14AM +0200, Jiri Olsa escreveu:
On Tue, Jul 13, 2021 at 11:19:07AM +0200, Heiko Carstens wrote:
quoted
Fix build error with LIBPFM4=1:
  CC      util/pfm.o
util/pfm.c: In function ‘parse_libpfm_events_option’:
util/pfm.c:102:30: error: ‘struct evsel’ has no member named ‘leader’
  102 |                         evsel->leader = grp_leader;
      |                              ^~

Fixes: fba7c86601e2 ("libperf: Move 'leader' from tools/perf to perf_evsel::leader")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Jiri Olsa <redacted>
Argh, we have this in 'make -C tools/perf build-test'

⬢[acme@toolbox perf]$ grep libpfm tools/perf/tests/make
make_with_libpfm4   := LIBPFM4=1
run += make_with_libpfm4
⬢[acme@toolbox perf]$

But I forgot to install libpfm-devel :-\

Thanks, applied.

- Arnaldo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help