yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From a648336c0e837c016bba5f19ec683d09f91471e5 Mon Sep 17 00:00:00 2001
9ae3a8
From: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
Date: Tue, 7 Oct 2014 14:06:57 +0200
9ae3a8
Subject: [PATCH 39/43] trace: install trace-events file
9ae3a8
9ae3a8
Message-id: <1412690820-31016-9-git-send-email-stefanha@redhat.com>
9ae3a8
Patchwork-id: 61613
9ae3a8
O-Subject: [RHEL7.1 qemu-kvm PATCH 08/11] trace: install trace-events file
9ae3a8
Bugzilla: 1088112
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
9ae3a8
Install the ./trace-events file into the data directory.  This file
9ae3a8
contains the list of trace events that were built into QEMU at
9ae3a8
compile-time.
9ae3a8
9ae3a8
The file is a handy reference for the set of trace events that the QEMU
9ae3a8
binary was built with.  It is also needed by the simpletrace.py tool
9ae3a8
that parses binary trace data either emitted from QEMU when built with
9ae3a8
--enable-trace-backend=simple or by the SystemTap simpletrace script
9ae3a8
that QEMU provides.
9ae3a8
9ae3a8
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
Message-id: 1411486175-3017-1-git-send-email-stefanha@redhat.com
9ae3a8
(cherry picked from commit 89ae5831a53e2d30a370e9a30fdb35da5a8f89aa)
9ae3a8
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
9ae3a8
Downstream needs to install trace-events in qemu-kvm.spec.template to
9ae3a8
prevent rpm check "unpackaged file" errors.
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 Makefile                      | 1 +
9ae3a8
 redhat/qemu-kvm.spec.template | 3 ++-
9ae3a8
 2 files changed, 3 insertions(+), 1 deletion(-)
9ae3a8
9ae3a8
diff --git a/Makefile b/Makefile
9ae3a8
index f504754..1b0b4f7 100644
9ae3a8
--- a/Makefile
9ae3a8
+++ b/Makefile
9ae3a8
@@ -406,6 +406,7 @@ endif
9ae3a8
 	set -e; for x in $(KEYMAPS); do \
9ae3a8
 		$(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \
9ae3a8
 	done
9ae3a8
+	$(INSTALL_DATA) $(SRC_PATH)/trace-events "$(DESTDIR)$(qemu_datadir)/trace-events"
9ae3a8
 	for d in $(TARGET_DIRS); do \
9ae3a8
 	$(MAKE) -C $$d $@ || exit 1 ; \
9ae3a8
         done
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8