s390x/ipl: Improved code indentation in s390_ipl_init()
[qemu/ar7.git] / trace / Makefile.objs
blob32f7a32ce241d55232244bcad9add1c2cb1c0832
1 # -*- mode: makefile -*-
3 ######################################################################
4 # Auto-generated event descriptions for LTTng ust code
6 ifeq ($(findstring ust,$(TRACE_BACKENDS)),ust)
7 $(obj)/generated-ust-provider.h: $(obj)/generated-ust-provider.h-timestamp
8 $(obj)/generated-ust-provider.h-timestamp: $(SRC_PATH)/trace-events
9         $(call quiet-command,$(TRACETOOL) \
10                 --format=ust-events-h \
11                 --backends=$(TRACE_BACKENDS) \
12                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
13         @cmp -s $@ $(patsubst %-timestamp,%,$@) || cp $@ $(patsubst %-timestamp,%,$@)
15 $(obj)/generated-ust.c: $(obj)/generated-ust.c-timestamp $(BUILD_DIR)/config-host.mak
16 $(obj)/generated-ust.c-timestamp: $(SRC_PATH)/trace-events
17         $(call quiet-command,$(TRACETOOL) \
18                 --format=ust-events-c \
19                 --backends=$(TRACE_BACKENDS) \
20                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
21         @cmp -s $@ $(patsubst %-timestamp,%,$@) || cp $@ $(patsubst %-timestamp,%,$@)
23 $(obj)/generated-events.h: $(obj)/generated-ust-provider.h
24 $(obj)/generated-events.c: $(obj)/generated-ust.c
25 endif
27 ######################################################################
28 # Auto-generated event descriptions
30 $(obj)/generated-events.h: $(obj)/generated-events.h-timestamp
31 $(obj)/generated-events.h-timestamp: $(SRC_PATH)/trace-events
32         $(call quiet-command,$(TRACETOOL) \
33                 --format=events-h \
34                 --backends=$(TRACE_BACKENDS) \
35                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
36         @cmp -s $@ $(patsubst %-timestamp,%,$@) || cp $@ $(patsubst %-timestamp,%,$@)
38 $(obj)/generated-events.c: $(obj)/generated-events.c-timestamp $(BUILD_DIR)/config-host.mak
39 $(obj)/generated-events.c-timestamp: $(SRC_PATH)/trace-events
40         $(call quiet-command,$(TRACETOOL) \
41                 --format=events-c \
42                 --backends=$(TRACE_BACKENDS) \
43                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
44         @cmp -s $@ $(patsubst %-timestamp,%,$@) || cp $@ $(patsubst %-timestamp,%,$@)
46 util-obj-y += generated-events.o
49 ######################################################################
50 # Auto-generated tracing routines
52 ##################################################
53 # Execution level
55 $(obj)/generated-tracers.h: $(obj)/generated-tracers.h-timestamp
56         @cmp -s $< $@ || cp $< $@
57 $(obj)/generated-tracers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
58         $(call quiet-command,$(TRACETOOL) \
59                 --format=h \
60                 --backends=$(TRACE_BACKENDS) \
61                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
63 ##############################
64 # non-DTrace
66 $(obj)/generated-tracers.c: $(obj)/generated-tracers.c-timestamp
67         @cmp -s $< $@ || cp $< $@
68 $(obj)/generated-tracers.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
69         $(call quiet-command,$(TRACETOOL) \
70                 --format=c \
71                 --backends=$(TRACE_BACKENDS) \
72                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
74 $(obj)/generated-tracers.o: $(obj)/generated-tracers.c $(obj)/generated-tracers.h
76 ##############################
77 # DTrace
79 # Normal practice is to name DTrace probe file with a '.d' extension
80 # but that gets picked up by QEMU's Makefile as an external dependency
81 # rule file. So we use '.dtrace' instead
82 ifeq ($(findstring dtrace,$(TRACE_BACKENDS)),dtrace)
83 $(obj)/generated-tracers-dtrace.dtrace: $(obj)/generated-tracers-dtrace.dtrace-timestamp
84 $(obj)/generated-tracers-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
85         $(call quiet-command,$(TRACETOOL) \
86                 --format=d \
87                 --backends=$(TRACE_BACKENDS) \
88                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
89         @cmp -s $@ $(patsubst %-timestamp,%,$@) || cp $@ $(patsubst %-timestamp,%,$@)
91 $(obj)/generated-tracers-dtrace.h: $(obj)/generated-tracers-dtrace.dtrace
92         $(call quiet-command,dtrace -o $@ -h -s $<, "  GEN   $@")
94 $(obj)/generated-tracers-dtrace.o: $(obj)/generated-tracers-dtrace.dtrace
96 util-obj-y += generated-tracers-dtrace.o
97 endif
99 ##################################################
100 # Translation level
102 $(obj)/generated-helpers-wrappers.h: $(obj)/generated-helpers-wrappers.h-timestamp
103 $(obj)/generated-helpers-wrappers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
104         $(call quiet-command,$(TRACETOOL) \
105                 --format=tcg-helper-wrapper-h \
106                 --backend=$(TRACE_BACKENDS) \
107                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
108         @cmp -s $@ $(patsubst %-timestamp,%,$@) || cp $@ $(patsubst %-timestamp,%,$@)
110 $(obj)/generated-helpers.h: $(obj)/generated-helpers.h-timestamp
111 $(obj)/generated-helpers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
112         $(call quiet-command,$(TRACETOOL) \
113                 --format=tcg-helper-h \
114                 --backend=$(TRACE_BACKENDS) \
115                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
116         @cmp -s $@ $(patsubst %-timestamp,%,$@) || cp $@ $(patsubst %-timestamp,%,$@)
118 $(obj)/generated-helpers.c: $(obj)/generated-helpers.c-timestamp
119 $(obj)/generated-helpers.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
120         $(call quiet-command,$(TRACETOOL) \
121                 --format=tcg-helper-c \
122                 --backend=$(TRACE_BACKENDS) \
123                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
124         @cmp -s $@ $(patsubst %-timestamp,%,$@) || cp $@ $(patsubst %-timestamp,%,$@)
126 $(obj)/generated-helpers.o: $(obj)/generated-helpers.c
128 target-obj-y += generated-helpers.o
131 $(obj)/generated-tcg-tracers.h: $(obj)/generated-tcg-tracers.h-timestamp
132 $(obj)/generated-tcg-tracers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
133         $(call quiet-command,$(TRACETOOL) \
134                 --format=tcg-h \
135                 --backend=$(TRACE_BACKENDS) \
136                 < $< > $@,"  GEN   $(patsubst %-timestamp,%,$@)")
137         @cmp -s $@ $(patsubst %-timestamp,%,$@) || cp $@ $(patsubst %-timestamp,%,$@)
140 ######################################################################
141 # Backend code
143 util-obj-$(CONFIG_TRACE_SIMPLE) += simple.o generated-tracers.o
144 util-obj-$(CONFIG_TRACE_FTRACE) += ftrace.o
145 util-obj-$(CONFIG_TRACE_UST) += generated-ust.o
146 util-obj-y += control.o
147 util-obj-y += qmp.o