• 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_tokenizer.cc",
41    "ftrace_tokenizer.h",
42    "iostat_tracker.cc",
43    "iostat_tracker.h",
44    "mali_gpu_event_tracker.cc",
45    "mali_gpu_event_tracker.h",
46    "pkvm_hyp_cpu_tracker.cc",
47    "pkvm_hyp_cpu_tracker.h",
48    "rss_stat_tracker.cc",
49    "rss_stat_tracker.h",
50    "sched_event_tracker.cc",
51    "sched_event_tracker.h",
52    "thread_state_tracker.cc",
53    "thread_state_tracker.h",
54    "v4l2_tracker.cc",
55    "v4l2_tracker.h",
56    "virtio_gpu_tracker.cc",
57    "virtio_gpu_tracker.h",
58    "virtio_video_tracker.cc",
59    "virtio_video_tracker.h",
60  ]
61  deps = [
62    ":ftrace_descriptors",
63    ":minimal",
64    "../../../../gn:default_deps",
65    "../../../../protos/perfetto/common:zero",
66    "../../../../protos/perfetto/trace:zero",
67    "../../../../protos/perfetto/trace/ftrace:zero",
68    "../../../../protos/perfetto/trace/interned_data:zero",
69    "../../../protozero",
70    "../../sorter",
71    "../../storage",
72    "../../types",
73    "../common",
74    "../common:parser_types",
75    "../i2c:full",
76    "../proto:minimal",
77    "../syscalls:full",
78    "../systrace:systrace_parser",
79  ]
80}
81
82source_set("ftrace_descriptors") {
83  sources = [
84    "ftrace_descriptors.cc",
85    "ftrace_descriptors.h",
86  ]
87  deps = [
88    "../../../../gn:default_deps",
89    "../../../../include/perfetto/ext/base:base",
90    "../../../protozero",
91  ]
92}
93
94perfetto_unittest_source_set("unittests") {
95  testonly = true
96  sources = [
97    "binder_tracker_unittest.cc",
98    "sched_event_tracker_unittest.cc",
99    "thread_state_tracker_unittest.cc",
100  ]
101  deps = [
102    "../../../../gn:default_deps",
103    "../../../../gn:gtest_and_gmock",
104    "../../storage",
105    "../../types",
106    "../common",
107    "../ftrace:full",
108  ]
109}
110