1# Copyright (C) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15 16import("../../../build/ts.gni") 17ohos_source_set("ftrace_tables") { 18 subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" 19 part_name = "${OHOS_PROFILER_PART_NAME}" 20 sources = [ 21 "animation_table.cpp", 22 "animation_table.h", 23 "app_startup_table.cpp", 24 "app_startup_table.h", 25 "callstack_table.cpp", 26 "callstack_table.h", 27 "clk_event_filter_table.cpp", 28 "clk_event_filter_table.h", 29 "clock_event_filter_table.cpp", 30 "clock_event_filter_table.h", 31 "clock_snapshot_table.cpp", 32 "clock_snapshot_table.h", 33 "cpu_measure_filter_table.cpp", 34 "cpu_measure_filter_table.h", 35 "dynamic_frame_table.cpp", 36 "dynamic_frame_table.h", 37 "filter_table.cpp", 38 "filter_table.h", 39 "frame_maps_table.cpp", 40 "frame_maps_table.h", 41 "frame_slice_table.cpp", 42 "frame_slice_table.h", 43 "gpu_slice_table.cpp", 44 "gpu_slice_table.h", 45 "instants_table.cpp", 46 "instants_table.h", 47 "irq_table.cpp", 48 "irq_table.h", 49 "measure_filter_table.cpp", 50 "measure_filter_table.h", 51 "measure_table.cpp", 52 "measure_table.h", 53 "process_filter_table.cpp", 54 "process_filter_table.h", 55 "process_measure_filter_table.cpp", 56 "process_measure_filter_table.h", 57 "process_table.cpp", 58 "process_table.h", 59 "raw_table.cpp", 60 "raw_table.h", 61 "sched_slice_table.cpp", 62 "sched_slice_table.h", 63 "so_static_initalization_table.cpp", 64 "so_static_initalization_table.h", 65 "system_call_table.cpp", 66 "system_call_table.h", 67 "system_event_filter_table.cpp", 68 "system_event_filter_table.h", 69 "task_pool_table.cpp", 70 "task_pool_table.h", 71 "thread_filter_table.cpp", 72 "thread_filter_table.h", 73 "thread_state_table.cpp", 74 "thread_state_table.h", 75 "thread_table.cpp", 76 "thread_table.h", 77 ] 78 79 include_dirs = [ 80 "../base", 81 "${THIRD_PARTY}/sqlite/include", 82 "${SRC}/base", 83 "../../parser", 84 "${SRC}/trace_data", 85 "${SRC}/include", 86 "${SRC}", 87 "${THIRD_PARTY}/protobuf/src", 88 "${THIRD_PARTY}/bounds_checking_function/include", 89 ] 90 91 if (!is_independent_compile) { 92 configs = [ "${TS_DIR}/gn:ts_config" ] 93 } 94} 95