blob: c476eeab7d12bee1989c0922c3a0f29772e56acf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
IGT_LIB_PATH := $(builddir)
GPU_TOOLS_PATH := $(top_srcdir)
i915_perf_hardware = \
hsw \
bdw chv \
sklgt2 sklgt3 sklgt4 \
kblgt2 kblgt3 \
cflgt2 cflgt3 \
bxt glk \
cnl \
icl ehl \
tglgt1 tglgt2 rkl dg1
i915_perf_xml_files = $(i915_perf_hardware:%=i915/perf-configs/oa-%.xml)
$(builddir)/i915/i915_perf_equations.c: i915/perf-configs/perf-equations-codegen.py $(i915_perf_xml_files)
@$(PYTHON) i915/perf-configs/perf-equations-codegen.py --code $@ --header `echo $@ | sed s/.c$$/.h/` $(i915_perf_xml_files)
$(builddir)/i915/i915_perf_equations.h: $(builddir)/i915/i915_perf_equations.c
$(builddir)/i915/i915_perf_registers_%.c: i915/perf-configs/oa-%.xml i915/perf-configs/perf-registers-codegen.py
@$(PYTHON) i915/perf-configs/perf-registers-codegen.py --code $@ --header `echo $@ | sed s/.c$$/.h/` --xml-file $<
$(builddir)/i915/i915_perf_registers_%.h: $(builddir)/i915/i915_perf_registers_%.c
$(builddir)/i915/i915_perf_metrics_%.c: i915/perf-configs/oa-%.xml i915/perf-configs/perf-metricset-codegen.py
@$(PYTHON) i915/perf-configs/perf-metricset-codegen.py --code $@ --header `echo $@ | sed s/.c$$/.h/` --equations-include i915_perf_equations.h --registers-include `echo $@ | sed s/metrics/registers/ | sed s/.c$$/.h/` --xml-file $<
$(builddir)/i915/i915_perf_metrics_%.h: $(builddir)/i915/i915_perf_metrics_%.c
# Automake... Kill me already...
i915_perf_generated_files = \
$(builddir)/i915/i915_perf_metrics_hsw.c \
$(builddir)/i915/i915_perf_metrics_hsw.h \
$(builddir)/i915/i915_perf_registers_hsw.c \
$(builddir)/i915/i915_perf_registers_hsw.h \
$(builddir)/i915/i915_perf_metrics_chv.c \
$(builddir)/i915/i915_perf_metrics_chv.h \
$(builddir)/i915/i915_perf_registers_chv.c \
$(builddir)/i915/i915_perf_registers_chv.h \
$(builddir)/i915/i915_perf_metrics_bdw.c \
$(builddir)/i915/i915_perf_metrics_bdw.h \
$(builddir)/i915/i915_perf_registers_bdw.c \
$(builddir)/i915/i915_perf_registers_bdw.h \
$(builddir)/i915/i915_perf_metrics_sklgt2.c \
$(builddir)/i915/i915_perf_metrics_sklgt2.h \
$(builddir)/i915/i915_perf_registers_sklgt2.c \
$(builddir)/i915/i915_perf_registers_sklgt2.h \
$(builddir)/i915/i915_perf_metrics_sklgt3.c \
$(builddir)/i915/i915_perf_metrics_sklgt3.h \
$(builddir)/i915/i915_perf_registers_sklgt3.c \
$(builddir)/i915/i915_perf_registers_sklgt3.h \
$(builddir)/i915/i915_perf_metrics_sklgt4.c \
$(builddir)/i915/i915_perf_metrics_sklgt4.h \
$(builddir)/i915/i915_perf_registers_sklgt4.c \
$(builddir)/i915/i915_perf_registers_sklgt4.h \
$(builddir)/i915/i915_perf_metrics_kblgt2.c \
$(builddir)/i915/i915_perf_metrics_kblgt2.h \
$(builddir)/i915/i915_perf_registers_kblgt2.c \
$(builddir)/i915/i915_perf_registers_kblgt2.h \
$(builddir)/i915/i915_perf_metrics_kblgt3.c \
$(builddir)/i915/i915_perf_metrics_kblgt3.h \
$(builddir)/i915/i915_perf_registers_kblgt3.c \
$(builddir)/i915/i915_perf_registers_kblgt3.h \
$(builddir)/i915/i915_perf_metrics_cflgt2.c \
$(builddir)/i915/i915_perf_metrics_cflgt2.h \
$(builddir)/i915/i915_perf_registers_cflgt2.c \
$(builddir)/i915/i915_perf_registers_cflgt2.h \
$(builddir)/i915/i915_perf_metrics_cflgt3.c \
$(builddir)/i915/i915_perf_metrics_cflgt3.h \
$(builddir)/i915/i915_perf_registers_cflgt3.c \
$(builddir)/i915/i915_perf_registers_cflgt3.h \
$(builddir)/i915/i915_perf_metrics_bxt.c \
$(builddir)/i915/i915_perf_metrics_bxt.h \
$(builddir)/i915/i915_perf_registers_bxt.c \
$(builddir)/i915/i915_perf_registers_bxt.h \
$(builddir)/i915/i915_perf_metrics_glk.c \
$(builddir)/i915/i915_perf_metrics_glk.h \
$(builddir)/i915/i915_perf_registers_glk.c \
$(builddir)/i915/i915_perf_registers_glk.h \
$(builddir)/i915/i915_perf_metrics_cnl.c \
$(builddir)/i915/i915_perf_metrics_cnl.h \
$(builddir)/i915/i915_perf_registers_cnl.c \
$(builddir)/i915/i915_perf_registers_cnl.h \
$(builddir)/i915/i915_perf_metrics_icl.c \
$(builddir)/i915/i915_perf_metrics_icl.h \
$(builddir)/i915/i915_perf_registers_icl.c \
$(builddir)/i915/i915_perf_registers_icl.h \
$(builddir)/i915/i915_perf_metrics_ehl.c \
$(builddir)/i915/i915_perf_metrics_ehl.h \
$(builddir)/i915/i915_perf_registers_ehl.c \
$(builddir)/i915/i915_perf_registers_ehl.h \
$(builddir)/i915/i915_perf_metrics_tglgt1.c \
$(builddir)/i915/i915_perf_metrics_tglgt1.h \
$(builddir)/i915/i915_perf_registers_tglgt1.c \
$(builddir)/i915/i915_perf_registers_tglgt1.h \
$(builddir)/i915/i915_perf_metrics_tglgt2.c \
$(builddir)/i915/i915_perf_metrics_tglgt2.h \
$(builddir)/i915/i915_perf_registers_tglgt2.c \
$(builddir)/i915/i915_perf_registers_tglgt2.h \
$(builddir)/i915/i915_perf_metrics_rkl.c \
$(builddir)/i915/i915_perf_metrics_rkl.h \
$(builddir)/i915/i915_perf_registers_rkl.c \
$(builddir)/i915/i915_perf_registers_rkl.h \
$(builddir)/i915/i915_perf_metrics_dg1.c \
$(builddir)/i915/i915_perf_metrics_dg1.h \
$(builddir)/i915/i915_perf_registers_dg1.c \
$(builddir)/i915/i915_perf_registers_dg1.h \
$(builddir)/i915/i915_perf_equations.c \
$(builddir)/i915/i915_perf_equations.h
include Makefile.sources
libintel_tools_la_SOURCES = $(lib_source_list)
libigt_device_scan_la_SOURCES = \
igt_list.c \
igt_tools_stub.c \
igt_device_scan.c \
igt_device_scan.h \
intel_device_info.c \
intel_chipset.h
libigt_perf_la_SOURCES = \
igt_perf.c \
igt_perf.h
libi915_perf_la_SOURCES = \
$(i915_perf_sources) \
$(i915_perf_generated_files)
libi915_perf_HEADERS = \
igt_list.h \
i915/perf.h \
i915/perf_data.h \
i915/perf_data_reader.h
libi915_perfdir = $(includedir)/i915-perf
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = i915-perf.pc
lib_LTLIBRARIES = libi915_perf.la
noinst_LTLIBRARIES = libintel_tools.la libigt_perf.la libigt_device_scan.la
noinst_HEADERS = check-ndebug.h
if !HAVE_LIBDRM_INTEL
libintel_tools_la_SOURCES += \
stubs/drm/intel_bufmgr.c \
stubs/drm/intel_bufmgr.h
endif
if HAVE_CHAMELIUM
lib_source_list += \
igt_chamelium.h \
igt_chamelium.c \
igt_chamelium_stream.h \
igt_chamelium_stream.c \
$(NULL)
endif
if HAVE_GSL
lib_source_list += \
igt_frame.c \
igt_frame.h \
igt_audio.c \
igt_audio.h \
$(NULL)
endif
if HAVE_ALSA
lib_source_list += \
igt_alsa.c \
igt_alsa.h \
$(NULL)
endif
AM_CPPFLAGS = \
-I$(top_srcdir)/include/drm-uapi \
-I$(top_srcdir) \
-I$(top_srcdir)/lib/stubs/syscalls
AM_CFLAGS = \
$(CWARNFLAGS) \
$(DRM_CFLAGS) \
$(PCIACCESS_CFLAGS) \
$(LIBUNWIND_CFLAGS) \
$(LIBDW_CFLAGS) \
$(GSL_CFLAGS) \
$(KMOD_CFLAGS) \
$(PROCPS_CFLAGS) \
$(DEBUG_CFLAGS) \
$(XMLRPC_CFLAGS) \
$(LIBUDEV_CFLAGS) \
$(PIXMAN_CFLAGS) \
$(GLIB_CFLAGS) \
$(VALGRIND_CFLAGS) \
-DIGT_SRCDIR=\""$(abs_top_srcdir)/tests"\" \
-DIGT_DATADIR=\""$(pkgdatadir)"\" \
-D_GNU_SOURCE \
-DIGT_LOG_DOMAIN=\""$(subst _,-,$*)"\" \
-pthread
AM_CFLAGS += $(CAIRO_CFLAGS)
libintel_tools_la_LIBADD = \
$(DRM_LIBS) \
$(PCIACCESS_LIBS) \
$(PROCPS_LIBS) \
$(GSL_LIBS) \
$(KMOD_LIBS) \
$(CAIRO_LIBS) \
$(LIBUDEV_LIBS) \
$(LIBUNWIND_LIBS) \
$(LIBDW_LIBS) \
$(TIMER_LIBS) \
$(XMLRPC_LIBS) \
$(LIBUDEV_LIBS) \
$(PIXMAN_LIBS) \
$(GLIB_LIBS) \
libigt_perf.la \
-lm
|