ebpf: only include in system emulators
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Sep 2021 10:45:12 +0000 (12:45 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 17 Sep 2021 08:07:52 +0000 (16:07 +0800)
eBPF files are being included in user emulators, which is useless and
also breaks compilation because ebpf/trace-events is only processed
if a system emulator is included in the build.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/566
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
ebpf/meson.build

index 9cd06353702e0a1782d5784b8e30fd57e0a070f0..2dd0fd8948053bba152a5b3a7b3c9806c21390a9 100644 (file)
@@ -1 +1 @@
-common_ss.add(when: libbpf, if_true: files('ebpf_rss.c'), if_false: files('ebpf_rss-stub.c'))
+softmmu_ss.add(when: libbpf, if_true: files('ebpf_rss.c'), if_false: files('ebpf_rss-stub.c'))