blob: 56d12f8d81d460c6e79c4ae14521b3e5a1e7387a [file] [log] [blame]
Primiano Tuccie4d44912018-01-10 12:14:50 +00001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
Primiano Tuccie4d44912018-01-10 12:14:50 +000018
19package perfetto.protos;
20
21message DataSourceConfig {
22 message FtraceConfig {
23 repeated string event_names = 1;
24 }
25
26 optional string name = 1;
27
28 optional uint32 target_buffer = 2;
29
30 optional FtraceConfig ftrace_config = 100;
31}
32
33message TraceConfig {
34 message BufferConfig {
35 optional uint32 size_kb = 1;
36
37 enum OptimizeFor {
38 DEFAULT = 0;
39 ONE_SHOT_READ = 1;
40
41 }
42 optional OptimizeFor optimize_for = 3;
43
44 enum FillPolicy {
45 UNSPECIFIED = 0;
46 RING_BUFFER = 1;
47 }
48 optional FillPolicy fill_policy = 4;
49 }
50 repeated BufferConfig buffers = 1;
51
52 message DataSource {
53 optional protos.DataSourceConfig config = 1;
54
55 repeated string producer_name_filter = 2;
56 }
57 repeated DataSource data_sources = 2;
58
59 optional uint32 duration_ms = 3;
60}