1 /* 2 * Copyright (C) 2023 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 17 #ifndef INCLUDE_PERFETTO_PUBLIC_PROTOS_TRACE_TEST_EVENT_PZC_H_ 18 #define INCLUDE_PERFETTO_PUBLIC_PROTOS_TRACE_TEST_EVENT_PZC_H_ 19 20 #include <stdbool.h> 21 #include <stdint.h> 22 23 #include "perfetto/public/pb_macros.h" 24 25 PERFETTO_PB_MSG_DECL(perfetto_protos_DebugAnnotation); 26 PERFETTO_PB_MSG_DECL(perfetto_protos_TestEvent_TestPayload); 27 28 PERFETTO_PB_MSG(perfetto_protos_TestEvent); 29 PERFETTO_PB_FIELD(perfetto_protos_TestEvent, STRING, const char*, str, 1); 30 PERFETTO_PB_FIELD(perfetto_protos_TestEvent, VARINT, uint32_t, seq_value, 2); 31 PERFETTO_PB_FIELD(perfetto_protos_TestEvent, VARINT, uint64_t, counter, 3); 32 PERFETTO_PB_FIELD(perfetto_protos_TestEvent, VARINT, bool, is_last, 4); 33 PERFETTO_PB_FIELD(perfetto_protos_TestEvent, 34 MSG, 35 perfetto_protos_TestEvent_TestPayload, 36 payload, 37 5); 38 39 PERFETTO_PB_MSG(perfetto_protos_TestEvent_TestPayload); 40 PERFETTO_PB_FIELD(perfetto_protos_TestEvent_TestPayload, 41 STRING, 42 const char*, 43 str, 44 1); 45 PERFETTO_PB_FIELD(perfetto_protos_TestEvent_TestPayload, 46 MSG, 47 perfetto_protos_TestEvent_TestPayload, 48 nested, 49 2); 50 PERFETTO_PB_FIELD(perfetto_protos_TestEvent_TestPayload, 51 STRING, 52 const char*, 53 single_string, 54 4); 55 PERFETTO_PB_FIELD(perfetto_protos_TestEvent_TestPayload, 56 VARINT, 57 int32_t, 58 single_int, 59 5); 60 PERFETTO_PB_FIELD(perfetto_protos_TestEvent_TestPayload, 61 VARINT, 62 int32_t, 63 repeated_ints, 64 6); 65 PERFETTO_PB_FIELD(perfetto_protos_TestEvent_TestPayload, 66 VARINT, 67 uint32_t, 68 remaining_nesting_depth, 69 3); 70 PERFETTO_PB_FIELD(perfetto_protos_TestEvent_TestPayload, 71 MSG, 72 perfetto_protos_DebugAnnotation, 73 debug_annotations, 74 7); 75 76 #endif // INCLUDE_PERFETTO_PUBLIC_PROTOS_TRACE_TEST_EVENT_PZC_H_ 77