Re: Building perf with BUILD_BPF_SKEL=1 by default

From
Arnaldo Carvalho de Melo <acme@kernel.org>
Date
2021-12-07 00:49:37
Also in
lkml
Reply to
Song Liu, 2021-12-06
Em Mon, Dec 06, 2021 at 10:34:31PM +0000, Song Liu escreveu:
quoted
From e033fd36657288ece383ba528aaff7b56eebfee2 Mon Sep 17 00:00:00 2001
From: Song Liu <redacted>
Date: Fri, 3 Dec 2021 15:14:41 -0800
Subject: [PATCH] perf/bpf_skel: do not use typedef to avoid error on old clang

When building bpf_skel with clang-10, typedef causes confusions like:

  libbpf: map 'prev_readings': unexpected def kind var.

Fix this by removing the typedef.

Fixes: 7fac83aaf2ee ("perf stat: Introduce 'bperf' to share hardware PMCs with BPF")
Please get a larger sha abbrev:

⬢[acme@toolbox perf]$ grep core -A1 ~/.gitconfig
[core]
	abbrev = 16
⬢[acme@toolbox perf]$



Thanks, applied.

- Arnaldo
Thread (16 messages) 16 messages, 3 authors, last reply 2021-12-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help