Skip to contentSkip to conversation

tools: configure correct trace backend for QEMU

PATCH In review Paul Durrant 2 participants 3 messages May 9, 2016 – May 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: configure correct trace backend for QEMU

Newer versions of the QEMU source have replaced the 'stderr' trace backend with 'log'. This patch adjusts the tools Makefile to test for the 'log' backend and specify it if it is available.

---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>

---
 tools/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tools/Makefile +3 -1
index 3f45fb9..6440dec 100644
@@ -240,7 +240,9 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
 		source=.; \
 	fi; \
 	cd qemu-xen-dir; \
-	if $$source/scripts/tracetool.py --check-backend --backend stderr ; then \
+	if $$source/scripts/tracetool.py --check-backend --backend log ; then \
+		enable_trace_backend='--enable-trace-backend=log'; \
+	elif $$source/scripts/tracetool.py --check-backend --backend stderr ; then \
 		enable_trace_backend='--enable-trace-backend=stderr'; \
 	else \
 		enable_trace_backend='' ; \
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Paul Durrant

Newer versions of the QEMU source have replaced the 'stderr' trace backend with 'log'. This patch adjusts the tools Makefile to test for the 'log' backend and specify it if it is available.

I have queued this up for committing for 4.7

Wei.

Quoted 25 lines

---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>

---
 tools/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tools/Makefile +3 -1
index 3f45fb9..6440dec 100644
@@ -240,7 +240,9 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
 		source=.; \
 	fi; \
 	cd qemu-xen-dir; \
-	if $$source/scripts/tracetool.py --check-backend --backend stderr ; then \
+	if $$source/scripts/tracetool.py --check-backend --backend log ; then \
+		enable_trace_backend='--enable-trace-backend=log'; \
+	elif $$source/scripts/tracetool.py --check-backend --backend stderr ; then \
 		enable_trace_backend='--enable-trace-backend=stderr'; \
 	else \
 		enable_trace_backend='' ; \
Signature · 1 line
2.1.4

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 12 lines

-----Original Message-----
From: Wei Liu [mailto:[email protected]]
Sent: 10 May 2016 11:58
To: Paul Durrant
Cc: [email protected]; Ian Jackson; Wei Liu
Subject: Re: [PATCH] tools: configure correct trace backend for QEMU

Quoted 4 lines · Paul Durrant

Newer versions of the QEMU source have replaced the 'stderr' trace backend with 'log'. This patch adjusts the tools Makefile to test for the 'log' backend and specify it if it is available.

Quoted 6 lines
Quoted 1 line

I have queued this up for committing for 4.7

Cool. Thanks :-)

Paul

Quoted 19 lines

Wei.

Quoted 12 lines

---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>

---
 tools/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tools/Makefile +0 -0
index 3f45fb9..6440dec 100644

tools/Makefile subdir-all-qemu-xen-dir: qemu-xen-dir-find · line 243

Quoted 4 lines
tools/Makefile +0 -1
@@ -240,7 +240,9 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
 		source=.; \
 	fi; \
 	cd qemu-xen-dir; \
-	if $$source/scripts/tracetool.py --check-backend --backend stderr ;

then \

Quoted 11 lines

tools/Makefile subdir-all-qemu-xen-dir: qemu-xen-dir-find · line 243

Quoted 1 line
tools/Makefile +1 -0
+	if $$source/scripts/tracetool.py --check-backend --backend log ; then

\

tools/Makefile subdir-all-qemu-xen-dir: qemu-xen-dir-find · line 245

Quoted 2 lines
tools/Makefile +2 -0
+		enable_trace_backend='--enable-trace-backend=log'; \
+	elif $$source/scripts/tracetool.py --check-backend --backend stderr ;

then \

Quoted 6 lines
tools/Makefile +0 -1
 		enable_trace_backend='--enable-trace-backend=stderr'; \
 	else \
 		enable_trace_backend='' ; \
--

2.1.4

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel