blob: 3f8e41458f123cc5f73e99aac59bf42a968287da [file] [log] [blame]
Lalit Magantib9a5b432022-12-01 16:13:11 +00001# 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
Lalit Magantiecf23662022-12-02 18:34:37 +000015import("../../../../gn/test.gni")
16
Lalit Magantib9a5b432022-12-01 16:13:11 +000017source_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",
Alex Attar87853442024-02-26 15:06:10 -050040 "ftrace_sched_event_tracker.cc",
41 "ftrace_sched_event_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +000042 "ftrace_tokenizer.cc",
43 "ftrace_tokenizer.h",
Serdar Kocdemir7465e6e2023-12-20 13:43:04 +000044 "gpu_work_period_tracker.cc",
45 "gpu_work_period_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +000046 "iostat_tracker.cc",
47 "iostat_tracker.h",
Devika Krishnadasab3673c2022-12-20 23:55:20 +000048 "mali_gpu_event_tracker.cc",
49 "mali_gpu_event_tracker.h",
Nikita Ioffe02035142023-03-02 16:57:35 +000050 "pkvm_hyp_cpu_tracker.cc",
51 "pkvm_hyp_cpu_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +000052 "rss_stat_tracker.cc",
53 "rss_stat_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +000054 "v4l2_tracker.cc",
55 "v4l2_tracker.h",
Rob Clark50b20aa2022-11-29 14:24:18 -080056 "virtio_gpu_tracker.cc",
57 "virtio_gpu_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +000058 "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}
Lalit Magantiecf23662022-12-02 18:34:37 +000093
94perfetto_unittest_source_set("unittests") {
95 testonly = true
96 sources = [
97 "binder_tracker_unittest.cc",
Alex Attar87853442024-02-26 15:06:10 -050098 "ftrace_sched_event_tracker_unittest.cc",
Lalit Magantiecf23662022-12-02 18:34:37 +000099 ]
100 deps = [
101 "../../../../gn:default_deps",
102 "../../../../gn:gtest_and_gmock",
103 "../../storage",
104 "../../types",
105 "../common",
106 "../ftrace:full",
107 ]
108}