unplugged-system/device/google/trout/tools/tracing/proto/TracingVM.proto

48 lines
1.3 KiB
Protocol Buffer

/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto3";
import "perfetto_trace.proto";
package tracing_vm_proto;
// zero is invalid session id and indicates an error.
message TracingSessionIdentifier {
uint64 session_id = 1;
}
message StartTracingRequest {
perfetto.protos.TraceConfig host_config = 1;
}
message RequestStatus {
bool is_ok = 1;
string error_str = 2;
TracingSessionIdentifier session_id = 3;
}
message TracingFileBuffer {
bytes buffer = 1;
}
service TracingServer {
rpc StartTracing(StartTracingRequest) returns (RequestStatus) {}
rpc StopTracing(TracingSessionIdentifier) returns (RequestStatus) {}
rpc GetTracingFile(TracingSessionIdentifier) returns (stream TracingFileBuffer) {}
}