From: Vitaly Chikunov <vt@altlinux.org>
To: linux-perf-users@vger.kernel.org,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Ian Rogers <irogers@google.com>
Cc: "Dmitry V. Levin" <ldv@altlinux.org>
Subject: Re: /usr/include/perf/event.h:9:10: fatal error: linux/compiler.h: No such file or directory
Date: Thu, 6 Oct 2022 18:16:22 +0300 [thread overview]
Message-ID: <20221006151622.i45co6lioxgheval@altlinux.org> (raw)
In-Reply-To: <20221006142852.mhrgi3r4fvtkircw@altlinux.org>
On Thu, Oct 06, 2022 at 05:28:53PM +0300, Vitaly Chikunov wrote:
> I noticed that perf examples do not compile anymore with v6.0 (first on ALT,
> but on Fedora is the same). Fedora example for convenience:
>
> # dnf install kernel libperf-devel gcc
> # cc /usr/share/doc/libperf/examples/counting.c -lperf
> In file included from /usr/share/doc/libperf/examples/counting.c:8:
> /usr/include/perf/event.h:9:10: fatal error: linux/compiler.h: No such file or directory
> 9 | #include <linux/compiler.h>
> | ^~~~~~~~~~~~~~~~~~
> compilation terminated.
This is introduced in b2f10cd4e805 ("perf cpumap: Fix alignment for
masks in event encoding") just (it seems) for `__packed'.
I am told that all uapi is using __attribute__ ((__packed__)) for that.
Thanks,
>
> I don't see compiler.h installed anywhere by the `make headers_install`.
>
> Thanks,
>
next prev parent reply other threads:[~2022-10-06 15:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-06 14:28 /usr/include/perf/event.h:9:10: fatal error: linux/compiler.h: No such file or directory Vitaly Chikunov
2022-10-06 15:16 ` Vitaly Chikunov [this message]
2022-10-06 17:20 ` Ian Rogers
2022-10-06 19:36 ` Arnaldo Carvalho de Melo
2022-10-06 20:32 ` Ian Rogers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221006151622.i45co6lioxgheval@altlinux.org \
--to=vt@altlinux.org \
--cc=acme@redhat.com \
--cc=irogers@google.com \
--cc=ldv@altlinux.org \
--cc=linux-perf-users@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox