• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import("../../../../gn/test.gni")
16
17source_set("minimal") {
18  sources = [
19    "ftrace_module.cc",
20    "ftrace_module.h",
21  ]
22  deps = [
23    "../../../../gn:default_deps",
24    "../common:parser_types",
25    "../common:trace_parser_hdr",
26    "../proto:proto_importer_module",
27  ]
28}
29
30source_set("full") {
31  sources = [
32    "binder_tracker.cc",
33    "binder_tracker.h",
34    "drm_tracker.cc",
35    "drm_tracker.h",
36    "ftrace_module_impl.cc",
37    "ftrace_module_impl.h",
38    "ftrace_parser.cc",
39    "ftrace_parser.h",
40    "ftrace_sched_event_tracker.cc",
41    "ftrace_sched_event_tracker.h",
42    "ftrace_tokenizer.cc",
43    "ftrace_tokenizer.h",
44    "gpu_work_period_tracker.cc",
45    "gpu_work_period_tracker.h",
46    "iostat_tracker.cc",
47    "iostat_tracker.h",
48    "mali_gpu_event_tracker.cc",
49    "mali_gpu_event_tracker.h",
50    "pkvm_hyp_cpu_tracker.cc",
51    "pkvm_hyp_cpu_tracker.h",
52    "rss_stat_tracker.cc",
53    "rss_stat_tracker.h",
54    "thermal_tracker.cc",
55    "thermal_tracker.h",
56    "v4l2_tracker.cc",
57    "v4l2_tracker.h",
58    "virtio_gpu_tracker.cc",
59    "virtio_gpu_tracker.h",
60    "virtio_video_tracker.cc",
61    "virtio_video_tracker.h",
62  ]
63  deps = [
64    ":ftrace_descriptors",
65    ":minimal",
66    "../../../../gn:default_deps",
67    "../../../../protos/perfetto/common:zero",
68    "../../../../protos/perfetto/trace:zero",
69    "../../../../protos/perfetto/trace/ftrace:zero",
70    "../../../../protos/perfetto/trace/interned_data:zero",
71    "../../../../protos/perfetto/trace/profiling:zero",
72    "../../../protozero",
73    "../../sorter",
74    "../../storage",
75    "../../types",
76    "../common",
77    "../common:parser_types",
78    "../i2c:full",
79    "../proto:minimal",
80    "../proto:packet_sequence_state_generation_hdr",
81    "../syscalls:full",
82    "../systrace:systrace_parser",
83  ]
84}
85
86source_set("ftrace_descriptors") {
87  sources = [
88    "ftrace_descriptors.cc",
89    "ftrace_descriptors.h",
90  ]
91  deps = [
92    "../../../../gn:default_deps",
93    "../../../../include/perfetto/ext/base:base",
94    "../../../protozero",
95  ]
96}
97
98perfetto_unittest_source_set("unittests") {
99  testonly = true
100  sources = [
101    "binder_tracker_unittest.cc",
102    "ftrace_sched_event_tracker_unittest.cc",
103  ]
104  deps = [
105    "../../../../gn:default_deps",
106    "../../../../gn:gtest_and_gmock",
107    "../../storage",
108    "../../types",
109    "../common",
110    "../ftrace:full",
111  ]
112}
113