From: Yang Zhong <yang.zhong@intel.com>
To: pbonzini@redhat.com
Cc: qemu-devel@nongnu.org, anthony.xu@intel.com,
Yang Zhong <yang.zhong@intel.com>
Subject: [Qemu-devel] [PATCH v0 2/6] move tcg relative files into tcg directory
Date: Fri, 19 May 2017 15:30:22 +0800 [thread overview]
Message-ID: <1495179026-27872-3-git-send-email-yang.zhong@intel.com> (raw)
In-Reply-To: <1495179026-27872-1-git-send-email-yang.zhong@intel.com>
move translate-all.c file into tcg directory and update
trace-events file
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
---
Makefile.objs | 1 +
Makefile.target | 3 ++-
tcg/trace-events | 6 ++++++
translate-all.c => tcg/translate-all.c | 2 +-
trace-events | 3 ---
5 files changed, 10 insertions(+), 5 deletions(-)
create mode 100644 tcg/trace-events
rename translate-all.c => tcg/translate-all.c (99%)
diff --git a/Makefile.objs b/Makefile.objs
index 2100845..1de6462 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -163,6 +163,7 @@ trace-events-subdirs += target/ppc
trace-events-subdirs += qom
trace-events-subdirs += linux-user
trace-events-subdirs += qapi
+trace-events-subdirs += tcg
trace-events-files = $(SRC_PATH)/trace-events $(trace-events-subdirs:%=$(SRC_PATH)/%/trace-events)
diff --git a/Makefile.target b/Makefile.target
index c388fd6..c96ebd2 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -88,7 +88,8 @@ all: $(PROGS) stap
#########################################################
# cpu emulator library
-obj-y = exec.o translate-all.o cpu-exec.o
+obj-y = exec.o cpu-exec.o
+obj-y += tcg/translate-all.o
obj-y += translate-common.o
obj-y += cpu-exec-common.o
obj-y += tcg/tcg.o tcg/tcg-op.o tcg/optimize.o
diff --git a/tcg/trace-events b/tcg/trace-events
new file mode 100644
index 0000000..989a06e
--- /dev/null
+++ b/tcg/trace-events
@@ -0,0 +1,6 @@
+# Trace events for debugging and performance instrumentation
+#
+# TCG related tracing (mostly disabled by default)
+# translate-all.c
+translate_block(void *tb, uintptr_t pc, uint8_t *tb_code) "tb:%p, pc:0x%"PRIxPTR", tb_code:%p"
+
diff --git a/translate-all.c b/tcg/translate-all.c
similarity index 99%
rename from translate-all.c
rename to tcg/translate-all.c
index b3ee876..7b25a16 100644
--- a/translate-all.c
+++ b/tcg/translate-all.c
@@ -25,7 +25,7 @@
#include "qemu-common.h"
#define NO_CPU_IO_DEFS
#include "cpu.h"
-#include "trace-root.h"
+#include "trace.h"
#include "disas/disas.h"
#include "exec/exec-all.h"
#include "tcg.h"
diff --git a/trace-events b/trace-events
index e582d63..d89380e 100644
--- a/trace-events
+++ b/trace-events
@@ -78,9 +78,6 @@ disable exec_tb(void *tb, uintptr_t pc) "tb:%p pc=0x%"PRIxPTR
disable exec_tb_nocache(void *tb, uintptr_t pc) "tb:%p pc=0x%"PRIxPTR
disable exec_tb_exit(void *last_tb, unsigned int flags) "tb:%p flags=%x"
-# translate-all.c
-translate_block(void *tb, uintptr_t pc, uint8_t *tb_code) "tb:%p, pc:0x%"PRIxPTR", tb_code:%p"
-
# memory.c
memory_region_ops_read(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr %#"PRIx64" value %#"PRIx64" size %u"
memory_region_ops_write(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr %#"PRIx64" value %#"PRIx64" size %u"
--
1.9.1
next prev parent reply other threads:[~2017-05-19 7:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-19 7:30 [Qemu-devel] [PATCH v0 0/6] move the tcg files into tcg directory Yang Zhong
2017-05-19 7:30 ` [Qemu-devel] [PATCH v0 1/6] move tcg relative " Yang Zhong
2017-05-19 7:30 ` Yang Zhong [this message]
2017-05-19 7:30 ` [Qemu-devel] [PATCH v0 3/6] move tcg header file Yang Zhong
2017-05-19 7:30 ` [Qemu-devel] [PATCH v0 4/6] move tcg relative files into tcg directory Yang Zhong
2017-05-19 7:30 ` [Qemu-devel] [PATCH v0 5/6] " Yang Zhong
2017-05-19 7:30 ` [Qemu-devel] [PATCH v0 6/6] change tcg relative file's compile definition Yang Zhong
2017-05-19 22:14 ` [Qemu-devel] [PATCH v0 0/6] move the tcg files into tcg directory Eric Blake
2017-05-22 17:31 ` Zhong Yang
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=1495179026-27872-3-git-send-email-yang.zhong@intel.com \
--to=yang.zhong@intel.com \
--cc=anthony.xu@intel.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).