• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 optimize_for = LITE_RUNTIME;
16
17message TracePluginConfig {
18  repeated string ftrace_events = 1; // kernel event set
19  repeated string hitrace_categories = 2; // hitrace event set
20  repeated string hitrace_apps = 3; // hitrace app set
21  uint32 buffer_size_kb = 4;    // kernel trace buffer size
22  uint32 flush_interval_ms = 5; // time interval in milliseconds to notify service process
23  uint32 flush_threshold_kb = 6; // buffer water mark threshold to notify service process
24  bool parse_ksyms = 7;  // parse /proc/kallsyms or not
25  string clock = 8;      // value for trace_clock
26  uint32 trace_period_ms = 10; // time interval in milliseconds to read kernel trace buffer
27  string raw_data_prefix = 13; // raw data file prefix for debug
28  uint32 trace_duration_ms = 20; // time duration in millisconds for trace actions
29  bool debug_on = 30; // enable debug options
30  bool discard_cache_data = 31; // if set true, session will stop immediately.(cache data will be lost)
31  uint32 hitrace_time = 32;
32}
33