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 // Autogenerated by the ProtoZero C compiler plugin.
18 // Invoked by tools/gen_c_protos
19 // DO NOT EDIT.
20 #ifndef INCLUDE_PERFETTO_PUBLIC_PROTOS_TRACE_TRACK_EVENT_COUNTER_DESCRIPTOR_PZC_H_
21 #define INCLUDE_PERFETTO_PUBLIC_PROTOS_TRACE_TRACK_EVENT_COUNTER_DESCRIPTOR_PZC_H_
22
23 #include <stdbool.h>
24 #include <stdint.h>
25
26 #include "perfetto/public/pb_macros.h"
27
PERFETTO_PB_ENUM_IN_MSG(perfetto_protos_CounterDescriptor,BuiltinCounterType)28 PERFETTO_PB_ENUM_IN_MSG(perfetto_protos_CounterDescriptor, BuiltinCounterType){
29 PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_CounterDescriptor,
30 COUNTER_UNSPECIFIED) = 0,
31 PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_CounterDescriptor,
32 COUNTER_THREAD_TIME_NS) = 1,
33 PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_CounterDescriptor,
34 COUNTER_THREAD_INSTRUCTION_COUNT) = 2,
35 };
36
PERFETTO_PB_ENUM_IN_MSG(perfetto_protos_CounterDescriptor,Unit)37 PERFETTO_PB_ENUM_IN_MSG(perfetto_protos_CounterDescriptor, Unit){
38 PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_CounterDescriptor,
39 UNIT_UNSPECIFIED) = 0,
40 PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_CounterDescriptor,
41 UNIT_TIME_NS) = 1,
42 PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_CounterDescriptor,
43 UNIT_COUNT) = 2,
44 PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_CounterDescriptor,
45 UNIT_SIZE_BYTES) = 3,
46 };
47
48 PERFETTO_PB_MSG(perfetto_protos_CounterDescriptor);
49 PERFETTO_PB_FIELD(perfetto_protos_CounterDescriptor,
50 VARINT,
51 enum perfetto_protos_CounterDescriptor_BuiltinCounterType,
52 type,
53 1);
54 PERFETTO_PB_FIELD(perfetto_protos_CounterDescriptor,
55 STRING,
56 const char*,
57 categories,
58 2);
59 PERFETTO_PB_FIELD(perfetto_protos_CounterDescriptor,
60 VARINT,
61 enum perfetto_protos_CounterDescriptor_Unit,
62 unit,
63 3);
64 PERFETTO_PB_FIELD(perfetto_protos_CounterDescriptor,
65 STRING,
66 const char*,
67 unit_name,
68 6);
69 PERFETTO_PB_FIELD(perfetto_protos_CounterDescriptor,
70 VARINT,
71 int64_t,
72 unit_multiplier,
73 4);
74 PERFETTO_PB_FIELD(perfetto_protos_CounterDescriptor,
75 VARINT,
76 bool,
77 is_incremental,
78 5);
79
80 #endif // INCLUDE_PERFETTO_PUBLIC_PROTOS_TRACE_TRACK_EVENT_COUNTER_DESCRIPTOR_PZC_H_
81