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 14syntax = "proto3"; 15option java_package = "ohos.devtools.datasources.transport.grpc.service"; 16option optimize_for = LITE_RUNTIME; 17 18message TracePluginConfig { 19 repeated string ftrace_events = 1; // kernel event set 20 repeated string bytrace_categories = 2; // bytrace event set 21 repeated string bytrace_apps = 3; // bytrace app set 22 uint32 buffer_size_kb = 4; // kernel trace buffer size 23 uint32 flush_interval_ms = 5; // time interval in milliseconds to notify service process 24 uint32 flush_threshold_kb = 6; // buffer water mark threshold to notify service process 25 bool parse_ksyms = 7; // parse /proc/kallsyms or not 26 string clock = 8; // value for trace_clock 27 uint32 trace_period_ms = 10; // time interval in milliseconds to read kernel trace buffer 28 string raw_data_prefix = 13; // raw data file prefix for debug 29 uint32 trace_duration_ms = 20; // time duration in millisconds for trace actions 30 bool debug_on = 30; // enable debug options 31} 32