Lalit Maganti | b9a5b43 | 2022-12-01 16:13:11 +0000 | [diff] [blame] | 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 | |
Lalit Maganti | ecf2366 | 2022-12-02 18:34:37 +0000 | [diff] [blame] | 15 | import("../../../../gn/test.gni") |
| 16 | |
Lalit Maganti | b9a5b43 | 2022-12-01 16:13:11 +0000 | [diff] [blame] | 17 | source_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 | |
| 30 | source_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 Attar | 8785344 | 2024-02-26 15:06:10 -0500 | [diff] [blame^] | 40 | "ftrace_sched_event_tracker.cc", |
| 41 | "ftrace_sched_event_tracker.h", |
Lalit Maganti | b9a5b43 | 2022-12-01 16:13:11 +0000 | [diff] [blame] | 42 | "ftrace_tokenizer.cc", |
| 43 | "ftrace_tokenizer.h", |
Serdar Kocdemir | 7465e6e | 2023-12-20 13:43:04 +0000 | [diff] [blame] | 44 | "gpu_work_period_tracker.cc", |
| 45 | "gpu_work_period_tracker.h", |
Lalit Maganti | b9a5b43 | 2022-12-01 16:13:11 +0000 | [diff] [blame] | 46 | "iostat_tracker.cc", |
| 47 | "iostat_tracker.h", |
Devika Krishnadas | ab3673c | 2022-12-20 23:55:20 +0000 | [diff] [blame] | 48 | "mali_gpu_event_tracker.cc", |
| 49 | "mali_gpu_event_tracker.h", |
Nikita Ioffe | 0203514 | 2023-03-02 16:57:35 +0000 | [diff] [blame] | 50 | "pkvm_hyp_cpu_tracker.cc", |
| 51 | "pkvm_hyp_cpu_tracker.h", |
Lalit Maganti | b9a5b43 | 2022-12-01 16:13:11 +0000 | [diff] [blame] | 52 | "rss_stat_tracker.cc", |
| 53 | "rss_stat_tracker.h", |
Lalit Maganti | b9a5b43 | 2022-12-01 16:13:11 +0000 | [diff] [blame] | 54 | "v4l2_tracker.cc", |
| 55 | "v4l2_tracker.h", |
Rob Clark | 50b20aa | 2022-11-29 14:24:18 -0800 | [diff] [blame] | 56 | "virtio_gpu_tracker.cc", |
| 57 | "virtio_gpu_tracker.h", |
Lalit Maganti | b9a5b43 | 2022-12-01 16:13:11 +0000 | [diff] [blame] | 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 | |
| 82 | source_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 Maganti | ecf2366 | 2022-12-02 18:34:37 +0000 | [diff] [blame] | 93 | |
| 94 | perfetto_unittest_source_set("unittests") { |
| 95 | testonly = true |
| 96 | sources = [ |
| 97 | "binder_tracker_unittest.cc", |
Alex Attar | 8785344 | 2024-02-26 15:06:10 -0500 | [diff] [blame^] | 98 | "ftrace_sched_event_tracker_unittest.cc", |
Lalit Maganti | ecf2366 | 2022-12-02 18:34:37 +0000 | [diff] [blame] | 99 | ] |
| 100 | deps = [ |
| 101 | "../../../../gn:default_deps", |
| 102 | "../../../../gn:gtest_and_gmock", |
| 103 | "../../storage", |
| 104 | "../../types", |
| 105 | "../common", |
| 106 | "../ftrace:full", |
| 107 | ] |
| 108 | } |