From 465830fbd9be22995b34d7b3f8cd35572e1f8a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Vilanova?= Date: Fri, 30 May 2014 14:12:13 +0200 Subject: trace: [tcg] Generate TCG tracing routines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generate header "trace/generated-tcg-tracers.h" with the necessary routines for tracing events in guest code: * trace_${event}_tcg Convenience wrapper that calls the translation-time tracer 'trace_${event}_trans', and calls 'gen_helper_trace_${event}_exec to generate the TCG code to later trace the event at execution time. Signed-off-by: LluĂ­s Vilanova Signed-off-by: Stefan Hajnoczi --- trace/Makefile.objs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'trace/Makefile.objs') diff --git a/trace/Makefile.objs b/trace/Makefile.objs index 72cc3f57d1..387f191fd4 100644 --- a/trace/Makefile.objs +++ b/trace/Makefile.objs @@ -128,6 +128,15 @@ $(obj)/generated-helpers.o: $(obj)/generated-helpers.c target-obj-y += generated-helpers.o +$(obj)/generated-tcg-tracers.h: $(obj)/generated-tcg-tracers.h-timestamp +$(obj)/generated-tcg-tracers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak + $(call quiet-command,$(TRACETOOL) \ + --format=tcg-h \ + --backend=$(TRACE_BACKENDS) \ + < $< > $@," GEN $(patsubst %-timestamp,%,$@)") + @cmp -s $@ $(patsubst %-timestamp,%,$@) || cp $@ $(patsubst %-timestamp,%,$@) + + ###################################################################### # Backend code -- cgit v1.2.1