• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1intel_hw_metrics = [
2  'hsw',
3  'bdw', 'chv',
4  'sklgt2', 'sklgt3', 'sklgt4',
5  'kblgt2', 'kblgt3',
6  'cflgt2', 'cflgt3',
7  'bxt', 'glk',
8  'icl', 'ehl',
9  'tglgt1', 'tglgt2', 'rkl', 'dg1', 'adl',
10]
11
12intel_hw_metrics_xml_files = []
13foreach hw : intel_hw_metrics
14  intel_hw_metrics_xml_files += 'oa-@0@.xml'.format(hw)
15endforeach
16
17intel_perf_sources = [
18  'intel_perf.c',
19  'intel_perf_query.c',
20  'intel_perf_mdapi.c',
21]
22
23intel_perf_sources += custom_target(
24  'intel-perf-sources',
25  input : intel_hw_metrics_xml_files,
26  output : [ 'intel_perf_metrics.c', 'intel_perf_metrics.h' ],
27  command : [
28    prog_python, files('gen_perf.py'),
29    '--code', '@OUTPUT0@', '--header', '@OUTPUT1@',
30    '@INPUT@',
31  ],
32)
33
34libintel_perf = static_library(
35  'intel_perf',
36  intel_perf_sources,
37  include_directories : [
38    inc_include, inc_src, inc_intel,
39  ],
40  c_args : [no_override_init_args, '-msse2'],
41  cpp_args : ['-msse2'],
42  gnu_symbol_visibility : 'hidden',
43)
44