cryptospore / rpms / qemu-kvm

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