1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/ftrace/kvm.proto
3 
4 #include "protos/perfetto/trace/ftrace/kvm.pb.h"
5 
6 #include <algorithm>
7 #include <cstdint>
8 
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
13 // @@protoc_insertion_point(includes)
14 #include <google/protobuf/port_def.inc>
15 
16 PROTOBUF_PRAGMA_INIT_SEG
17 
18 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
19 namespace _pbi = _pb::internal;
20 
21 namespace perfetto {
22 namespace protos {
KvmAccessFaultFtraceEvent(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR KvmAccessFaultFtraceEvent::KvmAccessFaultFtraceEvent(
24     ::_pbi::ConstantInitialized): _impl_{
25     /*decltype(_impl_._has_bits_)*/{}
26   , /*decltype(_impl_._cached_size_)*/{}
27   , /*decltype(_impl_.ipa_)*/::uint64_t{0u}} {}
28 struct KvmAccessFaultFtraceEventDefaultTypeInternal {
KvmAccessFaultFtraceEventDefaultTypeInternalperfetto::protos::KvmAccessFaultFtraceEventDefaultTypeInternal29   PROTOBUF_CONSTEXPR KvmAccessFaultFtraceEventDefaultTypeInternal()
30       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmAccessFaultFtraceEventDefaultTypeInternalperfetto::protos::KvmAccessFaultFtraceEventDefaultTypeInternal31   ~KvmAccessFaultFtraceEventDefaultTypeInternal() {}
32   union {  // NOLINT(misc-non-private-member-variables-in-classes)
33     KvmAccessFaultFtraceEvent _instance;
34   };
35 };
36 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmAccessFaultFtraceEventDefaultTypeInternal _KvmAccessFaultFtraceEvent_default_instance_;
KvmAckIrqFtraceEvent(::_pbi::ConstantInitialized)37 PROTOBUF_CONSTEXPR KvmAckIrqFtraceEvent::KvmAckIrqFtraceEvent(
38     ::_pbi::ConstantInitialized): _impl_{
39     /*decltype(_impl_._has_bits_)*/{}
40   , /*decltype(_impl_._cached_size_)*/{}
41   , /*decltype(_impl_.irqchip_)*/0u
42   , /*decltype(_impl_.pin_)*/0u} {}
43 struct KvmAckIrqFtraceEventDefaultTypeInternal {
KvmAckIrqFtraceEventDefaultTypeInternalperfetto::protos::KvmAckIrqFtraceEventDefaultTypeInternal44   PROTOBUF_CONSTEXPR KvmAckIrqFtraceEventDefaultTypeInternal()
45       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmAckIrqFtraceEventDefaultTypeInternalperfetto::protos::KvmAckIrqFtraceEventDefaultTypeInternal46   ~KvmAckIrqFtraceEventDefaultTypeInternal() {}
47   union {  // NOLINT(misc-non-private-member-variables-in-classes)
48     KvmAckIrqFtraceEvent _instance;
49   };
50 };
51 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmAckIrqFtraceEventDefaultTypeInternal _KvmAckIrqFtraceEvent_default_instance_;
KvmAgeHvaFtraceEvent(::_pbi::ConstantInitialized)52 PROTOBUF_CONSTEXPR KvmAgeHvaFtraceEvent::KvmAgeHvaFtraceEvent(
53     ::_pbi::ConstantInitialized): _impl_{
54     /*decltype(_impl_._has_bits_)*/{}
55   , /*decltype(_impl_._cached_size_)*/{}
56   , /*decltype(_impl_.end_)*/::uint64_t{0u}
57   , /*decltype(_impl_.start_)*/::uint64_t{0u}} {}
58 struct KvmAgeHvaFtraceEventDefaultTypeInternal {
KvmAgeHvaFtraceEventDefaultTypeInternalperfetto::protos::KvmAgeHvaFtraceEventDefaultTypeInternal59   PROTOBUF_CONSTEXPR KvmAgeHvaFtraceEventDefaultTypeInternal()
60       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmAgeHvaFtraceEventDefaultTypeInternalperfetto::protos::KvmAgeHvaFtraceEventDefaultTypeInternal61   ~KvmAgeHvaFtraceEventDefaultTypeInternal() {}
62   union {  // NOLINT(misc-non-private-member-variables-in-classes)
63     KvmAgeHvaFtraceEvent _instance;
64   };
65 };
66 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmAgeHvaFtraceEventDefaultTypeInternal _KvmAgeHvaFtraceEvent_default_instance_;
KvmAgePageFtraceEvent(::_pbi::ConstantInitialized)67 PROTOBUF_CONSTEXPR KvmAgePageFtraceEvent::KvmAgePageFtraceEvent(
68     ::_pbi::ConstantInitialized): _impl_{
69     /*decltype(_impl_._has_bits_)*/{}
70   , /*decltype(_impl_._cached_size_)*/{}
71   , /*decltype(_impl_.gfn_)*/::uint64_t{0u}
72   , /*decltype(_impl_.hva_)*/::uint64_t{0u}
73   , /*decltype(_impl_.level_)*/0u
74   , /*decltype(_impl_.referenced_)*/0u} {}
75 struct KvmAgePageFtraceEventDefaultTypeInternal {
KvmAgePageFtraceEventDefaultTypeInternalperfetto::protos::KvmAgePageFtraceEventDefaultTypeInternal76   PROTOBUF_CONSTEXPR KvmAgePageFtraceEventDefaultTypeInternal()
77       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmAgePageFtraceEventDefaultTypeInternalperfetto::protos::KvmAgePageFtraceEventDefaultTypeInternal78   ~KvmAgePageFtraceEventDefaultTypeInternal() {}
79   union {  // NOLINT(misc-non-private-member-variables-in-classes)
80     KvmAgePageFtraceEvent _instance;
81   };
82 };
83 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmAgePageFtraceEventDefaultTypeInternal _KvmAgePageFtraceEvent_default_instance_;
KvmArmClearDebugFtraceEvent(::_pbi::ConstantInitialized)84 PROTOBUF_CONSTEXPR KvmArmClearDebugFtraceEvent::KvmArmClearDebugFtraceEvent(
85     ::_pbi::ConstantInitialized): _impl_{
86     /*decltype(_impl_._has_bits_)*/{}
87   , /*decltype(_impl_._cached_size_)*/{}
88   , /*decltype(_impl_.guest_debug_)*/0u} {}
89 struct KvmArmClearDebugFtraceEventDefaultTypeInternal {
KvmArmClearDebugFtraceEventDefaultTypeInternalperfetto::protos::KvmArmClearDebugFtraceEventDefaultTypeInternal90   PROTOBUF_CONSTEXPR KvmArmClearDebugFtraceEventDefaultTypeInternal()
91       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmArmClearDebugFtraceEventDefaultTypeInternalperfetto::protos::KvmArmClearDebugFtraceEventDefaultTypeInternal92   ~KvmArmClearDebugFtraceEventDefaultTypeInternal() {}
93   union {  // NOLINT(misc-non-private-member-variables-in-classes)
94     KvmArmClearDebugFtraceEvent _instance;
95   };
96 };
97 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmArmClearDebugFtraceEventDefaultTypeInternal _KvmArmClearDebugFtraceEvent_default_instance_;
KvmArmSetDreg32FtraceEvent(::_pbi::ConstantInitialized)98 PROTOBUF_CONSTEXPR KvmArmSetDreg32FtraceEvent::KvmArmSetDreg32FtraceEvent(
99     ::_pbi::ConstantInitialized): _impl_{
100     /*decltype(_impl_._has_bits_)*/{}
101   , /*decltype(_impl_._cached_size_)*/{}
102   , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
103   , /*decltype(_impl_.value_)*/0u} {}
104 struct KvmArmSetDreg32FtraceEventDefaultTypeInternal {
KvmArmSetDreg32FtraceEventDefaultTypeInternalperfetto::protos::KvmArmSetDreg32FtraceEventDefaultTypeInternal105   PROTOBUF_CONSTEXPR KvmArmSetDreg32FtraceEventDefaultTypeInternal()
106       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmArmSetDreg32FtraceEventDefaultTypeInternalperfetto::protos::KvmArmSetDreg32FtraceEventDefaultTypeInternal107   ~KvmArmSetDreg32FtraceEventDefaultTypeInternal() {}
108   union {  // NOLINT(misc-non-private-member-variables-in-classes)
109     KvmArmSetDreg32FtraceEvent _instance;
110   };
111 };
112 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmArmSetDreg32FtraceEventDefaultTypeInternal _KvmArmSetDreg32FtraceEvent_default_instance_;
KvmArmSetRegsetFtraceEvent(::_pbi::ConstantInitialized)113 PROTOBUF_CONSTEXPR KvmArmSetRegsetFtraceEvent::KvmArmSetRegsetFtraceEvent(
114     ::_pbi::ConstantInitialized): _impl_{
115     /*decltype(_impl_._has_bits_)*/{}
116   , /*decltype(_impl_._cached_size_)*/{}
117   , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
118   , /*decltype(_impl_.len_)*/0} {}
119 struct KvmArmSetRegsetFtraceEventDefaultTypeInternal {
KvmArmSetRegsetFtraceEventDefaultTypeInternalperfetto::protos::KvmArmSetRegsetFtraceEventDefaultTypeInternal120   PROTOBUF_CONSTEXPR KvmArmSetRegsetFtraceEventDefaultTypeInternal()
121       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmArmSetRegsetFtraceEventDefaultTypeInternalperfetto::protos::KvmArmSetRegsetFtraceEventDefaultTypeInternal122   ~KvmArmSetRegsetFtraceEventDefaultTypeInternal() {}
123   union {  // NOLINT(misc-non-private-member-variables-in-classes)
124     KvmArmSetRegsetFtraceEvent _instance;
125   };
126 };
127 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmArmSetRegsetFtraceEventDefaultTypeInternal _KvmArmSetRegsetFtraceEvent_default_instance_;
KvmArmSetupDebugFtraceEvent(::_pbi::ConstantInitialized)128 PROTOBUF_CONSTEXPR KvmArmSetupDebugFtraceEvent::KvmArmSetupDebugFtraceEvent(
129     ::_pbi::ConstantInitialized): _impl_{
130     /*decltype(_impl_._has_bits_)*/{}
131   , /*decltype(_impl_._cached_size_)*/{}
132   , /*decltype(_impl_.vcpu_)*/::uint64_t{0u}
133   , /*decltype(_impl_.guest_debug_)*/0u} {}
134 struct KvmArmSetupDebugFtraceEventDefaultTypeInternal {
KvmArmSetupDebugFtraceEventDefaultTypeInternalperfetto::protos::KvmArmSetupDebugFtraceEventDefaultTypeInternal135   PROTOBUF_CONSTEXPR KvmArmSetupDebugFtraceEventDefaultTypeInternal()
136       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmArmSetupDebugFtraceEventDefaultTypeInternalperfetto::protos::KvmArmSetupDebugFtraceEventDefaultTypeInternal137   ~KvmArmSetupDebugFtraceEventDefaultTypeInternal() {}
138   union {  // NOLINT(misc-non-private-member-variables-in-classes)
139     KvmArmSetupDebugFtraceEvent _instance;
140   };
141 };
142 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmArmSetupDebugFtraceEventDefaultTypeInternal _KvmArmSetupDebugFtraceEvent_default_instance_;
KvmEntryFtraceEvent(::_pbi::ConstantInitialized)143 PROTOBUF_CONSTEXPR KvmEntryFtraceEvent::KvmEntryFtraceEvent(
144     ::_pbi::ConstantInitialized): _impl_{
145     /*decltype(_impl_._has_bits_)*/{}
146   , /*decltype(_impl_._cached_size_)*/{}
147   , /*decltype(_impl_.vcpu_pc_)*/::uint64_t{0u}} {}
148 struct KvmEntryFtraceEventDefaultTypeInternal {
KvmEntryFtraceEventDefaultTypeInternalperfetto::protos::KvmEntryFtraceEventDefaultTypeInternal149   PROTOBUF_CONSTEXPR KvmEntryFtraceEventDefaultTypeInternal()
150       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmEntryFtraceEventDefaultTypeInternalperfetto::protos::KvmEntryFtraceEventDefaultTypeInternal151   ~KvmEntryFtraceEventDefaultTypeInternal() {}
152   union {  // NOLINT(misc-non-private-member-variables-in-classes)
153     KvmEntryFtraceEvent _instance;
154   };
155 };
156 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmEntryFtraceEventDefaultTypeInternal _KvmEntryFtraceEvent_default_instance_;
KvmExitFtraceEvent(::_pbi::ConstantInitialized)157 PROTOBUF_CONSTEXPR KvmExitFtraceEvent::KvmExitFtraceEvent(
158     ::_pbi::ConstantInitialized): _impl_{
159     /*decltype(_impl_._has_bits_)*/{}
160   , /*decltype(_impl_._cached_size_)*/{}
161   , /*decltype(_impl_.esr_ec_)*/0u
162   , /*decltype(_impl_.ret_)*/0
163   , /*decltype(_impl_.vcpu_pc_)*/::uint64_t{0u}} {}
164 struct KvmExitFtraceEventDefaultTypeInternal {
KvmExitFtraceEventDefaultTypeInternalperfetto::protos::KvmExitFtraceEventDefaultTypeInternal165   PROTOBUF_CONSTEXPR KvmExitFtraceEventDefaultTypeInternal()
166       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmExitFtraceEventDefaultTypeInternalperfetto::protos::KvmExitFtraceEventDefaultTypeInternal167   ~KvmExitFtraceEventDefaultTypeInternal() {}
168   union {  // NOLINT(misc-non-private-member-variables-in-classes)
169     KvmExitFtraceEvent _instance;
170   };
171 };
172 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmExitFtraceEventDefaultTypeInternal _KvmExitFtraceEvent_default_instance_;
KvmFpuFtraceEvent(::_pbi::ConstantInitialized)173 PROTOBUF_CONSTEXPR KvmFpuFtraceEvent::KvmFpuFtraceEvent(
174     ::_pbi::ConstantInitialized): _impl_{
175     /*decltype(_impl_._has_bits_)*/{}
176   , /*decltype(_impl_._cached_size_)*/{}
177   , /*decltype(_impl_.load_)*/0u} {}
178 struct KvmFpuFtraceEventDefaultTypeInternal {
KvmFpuFtraceEventDefaultTypeInternalperfetto::protos::KvmFpuFtraceEventDefaultTypeInternal179   PROTOBUF_CONSTEXPR KvmFpuFtraceEventDefaultTypeInternal()
180       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmFpuFtraceEventDefaultTypeInternalperfetto::protos::KvmFpuFtraceEventDefaultTypeInternal181   ~KvmFpuFtraceEventDefaultTypeInternal() {}
182   union {  // NOLINT(misc-non-private-member-variables-in-classes)
183     KvmFpuFtraceEvent _instance;
184   };
185 };
186 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmFpuFtraceEventDefaultTypeInternal _KvmFpuFtraceEvent_default_instance_;
KvmGetTimerMapFtraceEvent(::_pbi::ConstantInitialized)187 PROTOBUF_CONSTEXPR KvmGetTimerMapFtraceEvent::KvmGetTimerMapFtraceEvent(
188     ::_pbi::ConstantInitialized): _impl_{
189     /*decltype(_impl_._has_bits_)*/{}
190   , /*decltype(_impl_._cached_size_)*/{}
191   , /*decltype(_impl_.direct_ptimer_)*/0
192   , /*decltype(_impl_.direct_vtimer_)*/0
193   , /*decltype(_impl_.vcpu_id_)*/::uint64_t{0u}
194   , /*decltype(_impl_.emul_ptimer_)*/0} {}
195 struct KvmGetTimerMapFtraceEventDefaultTypeInternal {
KvmGetTimerMapFtraceEventDefaultTypeInternalperfetto::protos::KvmGetTimerMapFtraceEventDefaultTypeInternal196   PROTOBUF_CONSTEXPR KvmGetTimerMapFtraceEventDefaultTypeInternal()
197       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmGetTimerMapFtraceEventDefaultTypeInternalperfetto::protos::KvmGetTimerMapFtraceEventDefaultTypeInternal198   ~KvmGetTimerMapFtraceEventDefaultTypeInternal() {}
199   union {  // NOLINT(misc-non-private-member-variables-in-classes)
200     KvmGetTimerMapFtraceEvent _instance;
201   };
202 };
203 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmGetTimerMapFtraceEventDefaultTypeInternal _KvmGetTimerMapFtraceEvent_default_instance_;
KvmGuestFaultFtraceEvent(::_pbi::ConstantInitialized)204 PROTOBUF_CONSTEXPR KvmGuestFaultFtraceEvent::KvmGuestFaultFtraceEvent(
205     ::_pbi::ConstantInitialized): _impl_{
206     /*decltype(_impl_._has_bits_)*/{}
207   , /*decltype(_impl_._cached_size_)*/{}
208   , /*decltype(_impl_.hsr_)*/::uint64_t{0u}
209   , /*decltype(_impl_.hxfar_)*/::uint64_t{0u}
210   , /*decltype(_impl_.ipa_)*/::uint64_t{0u}
211   , /*decltype(_impl_.vcpu_pc_)*/::uint64_t{0u}} {}
212 struct KvmGuestFaultFtraceEventDefaultTypeInternal {
KvmGuestFaultFtraceEventDefaultTypeInternalperfetto::protos::KvmGuestFaultFtraceEventDefaultTypeInternal213   PROTOBUF_CONSTEXPR KvmGuestFaultFtraceEventDefaultTypeInternal()
214       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmGuestFaultFtraceEventDefaultTypeInternalperfetto::protos::KvmGuestFaultFtraceEventDefaultTypeInternal215   ~KvmGuestFaultFtraceEventDefaultTypeInternal() {}
216   union {  // NOLINT(misc-non-private-member-variables-in-classes)
217     KvmGuestFaultFtraceEvent _instance;
218   };
219 };
220 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmGuestFaultFtraceEventDefaultTypeInternal _KvmGuestFaultFtraceEvent_default_instance_;
KvmHandleSysRegFtraceEvent(::_pbi::ConstantInitialized)221 PROTOBUF_CONSTEXPR KvmHandleSysRegFtraceEvent::KvmHandleSysRegFtraceEvent(
222     ::_pbi::ConstantInitialized): _impl_{
223     /*decltype(_impl_._has_bits_)*/{}
224   , /*decltype(_impl_._cached_size_)*/{}
225   , /*decltype(_impl_.hsr_)*/::uint64_t{0u}} {}
226 struct KvmHandleSysRegFtraceEventDefaultTypeInternal {
KvmHandleSysRegFtraceEventDefaultTypeInternalperfetto::protos::KvmHandleSysRegFtraceEventDefaultTypeInternal227   PROTOBUF_CONSTEXPR KvmHandleSysRegFtraceEventDefaultTypeInternal()
228       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmHandleSysRegFtraceEventDefaultTypeInternalperfetto::protos::KvmHandleSysRegFtraceEventDefaultTypeInternal229   ~KvmHandleSysRegFtraceEventDefaultTypeInternal() {}
230   union {  // NOLINT(misc-non-private-member-variables-in-classes)
231     KvmHandleSysRegFtraceEvent _instance;
232   };
233 };
234 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmHandleSysRegFtraceEventDefaultTypeInternal _KvmHandleSysRegFtraceEvent_default_instance_;
KvmHvcArm64FtraceEvent(::_pbi::ConstantInitialized)235 PROTOBUF_CONSTEXPR KvmHvcArm64FtraceEvent::KvmHvcArm64FtraceEvent(
236     ::_pbi::ConstantInitialized): _impl_{
237     /*decltype(_impl_._has_bits_)*/{}
238   , /*decltype(_impl_._cached_size_)*/{}
239   , /*decltype(_impl_.imm_)*/::uint64_t{0u}
240   , /*decltype(_impl_.r0_)*/::uint64_t{0u}
241   , /*decltype(_impl_.vcpu_pc_)*/::uint64_t{0u}} {}
242 struct KvmHvcArm64FtraceEventDefaultTypeInternal {
KvmHvcArm64FtraceEventDefaultTypeInternalperfetto::protos::KvmHvcArm64FtraceEventDefaultTypeInternal243   PROTOBUF_CONSTEXPR KvmHvcArm64FtraceEventDefaultTypeInternal()
244       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmHvcArm64FtraceEventDefaultTypeInternalperfetto::protos::KvmHvcArm64FtraceEventDefaultTypeInternal245   ~KvmHvcArm64FtraceEventDefaultTypeInternal() {}
246   union {  // NOLINT(misc-non-private-member-variables-in-classes)
247     KvmHvcArm64FtraceEvent _instance;
248   };
249 };
250 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmHvcArm64FtraceEventDefaultTypeInternal _KvmHvcArm64FtraceEvent_default_instance_;
KvmIrqLineFtraceEvent(::_pbi::ConstantInitialized)251 PROTOBUF_CONSTEXPR KvmIrqLineFtraceEvent::KvmIrqLineFtraceEvent(
252     ::_pbi::ConstantInitialized): _impl_{
253     /*decltype(_impl_._has_bits_)*/{}
254   , /*decltype(_impl_._cached_size_)*/{}
255   , /*decltype(_impl_.irq_num_)*/0
256   , /*decltype(_impl_.level_)*/0
257   , /*decltype(_impl_.type_)*/0u
258   , /*decltype(_impl_.vcpu_idx_)*/0} {}
259 struct KvmIrqLineFtraceEventDefaultTypeInternal {
KvmIrqLineFtraceEventDefaultTypeInternalperfetto::protos::KvmIrqLineFtraceEventDefaultTypeInternal260   PROTOBUF_CONSTEXPR KvmIrqLineFtraceEventDefaultTypeInternal()
261       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmIrqLineFtraceEventDefaultTypeInternalperfetto::protos::KvmIrqLineFtraceEventDefaultTypeInternal262   ~KvmIrqLineFtraceEventDefaultTypeInternal() {}
263   union {  // NOLINT(misc-non-private-member-variables-in-classes)
264     KvmIrqLineFtraceEvent _instance;
265   };
266 };
267 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmIrqLineFtraceEventDefaultTypeInternal _KvmIrqLineFtraceEvent_default_instance_;
KvmMmioFtraceEvent(::_pbi::ConstantInitialized)268 PROTOBUF_CONSTEXPR KvmMmioFtraceEvent::KvmMmioFtraceEvent(
269     ::_pbi::ConstantInitialized): _impl_{
270     /*decltype(_impl_._has_bits_)*/{}
271   , /*decltype(_impl_._cached_size_)*/{}
272   , /*decltype(_impl_.gpa_)*/::uint64_t{0u}
273   , /*decltype(_impl_.len_)*/0u
274   , /*decltype(_impl_.type_)*/0u
275   , /*decltype(_impl_.val_)*/::uint64_t{0u}} {}
276 struct KvmMmioFtraceEventDefaultTypeInternal {
KvmMmioFtraceEventDefaultTypeInternalperfetto::protos::KvmMmioFtraceEventDefaultTypeInternal277   PROTOBUF_CONSTEXPR KvmMmioFtraceEventDefaultTypeInternal()
278       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmMmioFtraceEventDefaultTypeInternalperfetto::protos::KvmMmioFtraceEventDefaultTypeInternal279   ~KvmMmioFtraceEventDefaultTypeInternal() {}
280   union {  // NOLINT(misc-non-private-member-variables-in-classes)
281     KvmMmioFtraceEvent _instance;
282   };
283 };
284 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmMmioFtraceEventDefaultTypeInternal _KvmMmioFtraceEvent_default_instance_;
KvmMmioEmulateFtraceEvent(::_pbi::ConstantInitialized)285 PROTOBUF_CONSTEXPR KvmMmioEmulateFtraceEvent::KvmMmioEmulateFtraceEvent(
286     ::_pbi::ConstantInitialized): _impl_{
287     /*decltype(_impl_._has_bits_)*/{}
288   , /*decltype(_impl_._cached_size_)*/{}
289   , /*decltype(_impl_.cpsr_)*/::uint64_t{0u}
290   , /*decltype(_impl_.instr_)*/::uint64_t{0u}
291   , /*decltype(_impl_.vcpu_pc_)*/::uint64_t{0u}} {}
292 struct KvmMmioEmulateFtraceEventDefaultTypeInternal {
KvmMmioEmulateFtraceEventDefaultTypeInternalperfetto::protos::KvmMmioEmulateFtraceEventDefaultTypeInternal293   PROTOBUF_CONSTEXPR KvmMmioEmulateFtraceEventDefaultTypeInternal()
294       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmMmioEmulateFtraceEventDefaultTypeInternalperfetto::protos::KvmMmioEmulateFtraceEventDefaultTypeInternal295   ~KvmMmioEmulateFtraceEventDefaultTypeInternal() {}
296   union {  // NOLINT(misc-non-private-member-variables-in-classes)
297     KvmMmioEmulateFtraceEvent _instance;
298   };
299 };
300 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmMmioEmulateFtraceEventDefaultTypeInternal _KvmMmioEmulateFtraceEvent_default_instance_;
KvmSetGuestDebugFtraceEvent(::_pbi::ConstantInitialized)301 PROTOBUF_CONSTEXPR KvmSetGuestDebugFtraceEvent::KvmSetGuestDebugFtraceEvent(
302     ::_pbi::ConstantInitialized): _impl_{
303     /*decltype(_impl_._has_bits_)*/{}
304   , /*decltype(_impl_._cached_size_)*/{}
305   , /*decltype(_impl_.vcpu_)*/::uint64_t{0u}
306   , /*decltype(_impl_.guest_debug_)*/0u} {}
307 struct KvmSetGuestDebugFtraceEventDefaultTypeInternal {
KvmSetGuestDebugFtraceEventDefaultTypeInternalperfetto::protos::KvmSetGuestDebugFtraceEventDefaultTypeInternal308   PROTOBUF_CONSTEXPR KvmSetGuestDebugFtraceEventDefaultTypeInternal()
309       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmSetGuestDebugFtraceEventDefaultTypeInternalperfetto::protos::KvmSetGuestDebugFtraceEventDefaultTypeInternal310   ~KvmSetGuestDebugFtraceEventDefaultTypeInternal() {}
311   union {  // NOLINT(misc-non-private-member-variables-in-classes)
312     KvmSetGuestDebugFtraceEvent _instance;
313   };
314 };
315 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmSetGuestDebugFtraceEventDefaultTypeInternal _KvmSetGuestDebugFtraceEvent_default_instance_;
KvmSetIrqFtraceEvent(::_pbi::ConstantInitialized)316 PROTOBUF_CONSTEXPR KvmSetIrqFtraceEvent::KvmSetIrqFtraceEvent(
317     ::_pbi::ConstantInitialized): _impl_{
318     /*decltype(_impl_._has_bits_)*/{}
319   , /*decltype(_impl_._cached_size_)*/{}
320   , /*decltype(_impl_.gsi_)*/0u
321   , /*decltype(_impl_.irq_source_id_)*/0
322   , /*decltype(_impl_.level_)*/0} {}
323 struct KvmSetIrqFtraceEventDefaultTypeInternal {
KvmSetIrqFtraceEventDefaultTypeInternalperfetto::protos::KvmSetIrqFtraceEventDefaultTypeInternal324   PROTOBUF_CONSTEXPR KvmSetIrqFtraceEventDefaultTypeInternal()
325       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmSetIrqFtraceEventDefaultTypeInternalperfetto::protos::KvmSetIrqFtraceEventDefaultTypeInternal326   ~KvmSetIrqFtraceEventDefaultTypeInternal() {}
327   union {  // NOLINT(misc-non-private-member-variables-in-classes)
328     KvmSetIrqFtraceEvent _instance;
329   };
330 };
331 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmSetIrqFtraceEventDefaultTypeInternal _KvmSetIrqFtraceEvent_default_instance_;
KvmSetSpteHvaFtraceEvent(::_pbi::ConstantInitialized)332 PROTOBUF_CONSTEXPR KvmSetSpteHvaFtraceEvent::KvmSetSpteHvaFtraceEvent(
333     ::_pbi::ConstantInitialized): _impl_{
334     /*decltype(_impl_._has_bits_)*/{}
335   , /*decltype(_impl_._cached_size_)*/{}
336   , /*decltype(_impl_.hva_)*/::uint64_t{0u}} {}
337 struct KvmSetSpteHvaFtraceEventDefaultTypeInternal {
KvmSetSpteHvaFtraceEventDefaultTypeInternalperfetto::protos::KvmSetSpteHvaFtraceEventDefaultTypeInternal338   PROTOBUF_CONSTEXPR KvmSetSpteHvaFtraceEventDefaultTypeInternal()
339       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmSetSpteHvaFtraceEventDefaultTypeInternalperfetto::protos::KvmSetSpteHvaFtraceEventDefaultTypeInternal340   ~KvmSetSpteHvaFtraceEventDefaultTypeInternal() {}
341   union {  // NOLINT(misc-non-private-member-variables-in-classes)
342     KvmSetSpteHvaFtraceEvent _instance;
343   };
344 };
345 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmSetSpteHvaFtraceEventDefaultTypeInternal _KvmSetSpteHvaFtraceEvent_default_instance_;
KvmSetWayFlushFtraceEvent(::_pbi::ConstantInitialized)346 PROTOBUF_CONSTEXPR KvmSetWayFlushFtraceEvent::KvmSetWayFlushFtraceEvent(
347     ::_pbi::ConstantInitialized): _impl_{
348     /*decltype(_impl_._has_bits_)*/{}
349   , /*decltype(_impl_._cached_size_)*/{}
350   , /*decltype(_impl_.vcpu_pc_)*/::uint64_t{0u}
351   , /*decltype(_impl_.cache_)*/0u} {}
352 struct KvmSetWayFlushFtraceEventDefaultTypeInternal {
KvmSetWayFlushFtraceEventDefaultTypeInternalperfetto::protos::KvmSetWayFlushFtraceEventDefaultTypeInternal353   PROTOBUF_CONSTEXPR KvmSetWayFlushFtraceEventDefaultTypeInternal()
354       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmSetWayFlushFtraceEventDefaultTypeInternalperfetto::protos::KvmSetWayFlushFtraceEventDefaultTypeInternal355   ~KvmSetWayFlushFtraceEventDefaultTypeInternal() {}
356   union {  // NOLINT(misc-non-private-member-variables-in-classes)
357     KvmSetWayFlushFtraceEvent _instance;
358   };
359 };
360 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmSetWayFlushFtraceEventDefaultTypeInternal _KvmSetWayFlushFtraceEvent_default_instance_;
KvmSysAccessFtraceEvent(::_pbi::ConstantInitialized)361 PROTOBUF_CONSTEXPR KvmSysAccessFtraceEvent::KvmSysAccessFtraceEvent(
362     ::_pbi::ConstantInitialized): _impl_{
363     /*decltype(_impl_._has_bits_)*/{}
364   , /*decltype(_impl_._cached_size_)*/{}
365   , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
366   , /*decltype(_impl_.crm_)*/0u
367   , /*decltype(_impl_.crn_)*/0u
368   , /*decltype(_impl_.op0_)*/0u
369   , /*decltype(_impl_.op1_)*/0u
370   , /*decltype(_impl_.op2_)*/0u
371   , /*decltype(_impl_.is_write_)*/0u
372   , /*decltype(_impl_.vcpu_pc_)*/::uint64_t{0u}} {}
373 struct KvmSysAccessFtraceEventDefaultTypeInternal {
KvmSysAccessFtraceEventDefaultTypeInternalperfetto::protos::KvmSysAccessFtraceEventDefaultTypeInternal374   PROTOBUF_CONSTEXPR KvmSysAccessFtraceEventDefaultTypeInternal()
375       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmSysAccessFtraceEventDefaultTypeInternalperfetto::protos::KvmSysAccessFtraceEventDefaultTypeInternal376   ~KvmSysAccessFtraceEventDefaultTypeInternal() {}
377   union {  // NOLINT(misc-non-private-member-variables-in-classes)
378     KvmSysAccessFtraceEvent _instance;
379   };
380 };
381 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmSysAccessFtraceEventDefaultTypeInternal _KvmSysAccessFtraceEvent_default_instance_;
KvmTestAgeHvaFtraceEvent(::_pbi::ConstantInitialized)382 PROTOBUF_CONSTEXPR KvmTestAgeHvaFtraceEvent::KvmTestAgeHvaFtraceEvent(
383     ::_pbi::ConstantInitialized): _impl_{
384     /*decltype(_impl_._has_bits_)*/{}
385   , /*decltype(_impl_._cached_size_)*/{}
386   , /*decltype(_impl_.hva_)*/::uint64_t{0u}} {}
387 struct KvmTestAgeHvaFtraceEventDefaultTypeInternal {
KvmTestAgeHvaFtraceEventDefaultTypeInternalperfetto::protos::KvmTestAgeHvaFtraceEventDefaultTypeInternal388   PROTOBUF_CONSTEXPR KvmTestAgeHvaFtraceEventDefaultTypeInternal()
389       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmTestAgeHvaFtraceEventDefaultTypeInternalperfetto::protos::KvmTestAgeHvaFtraceEventDefaultTypeInternal390   ~KvmTestAgeHvaFtraceEventDefaultTypeInternal() {}
391   union {  // NOLINT(misc-non-private-member-variables-in-classes)
392     KvmTestAgeHvaFtraceEvent _instance;
393   };
394 };
395 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmTestAgeHvaFtraceEventDefaultTypeInternal _KvmTestAgeHvaFtraceEvent_default_instance_;
KvmTimerEmulateFtraceEvent(::_pbi::ConstantInitialized)396 PROTOBUF_CONSTEXPR KvmTimerEmulateFtraceEvent::KvmTimerEmulateFtraceEvent(
397     ::_pbi::ConstantInitialized): _impl_{
398     /*decltype(_impl_._has_bits_)*/{}
399   , /*decltype(_impl_._cached_size_)*/{}
400   , /*decltype(_impl_.should_fire_)*/0u
401   , /*decltype(_impl_.timer_idx_)*/0} {}
402 struct KvmTimerEmulateFtraceEventDefaultTypeInternal {
KvmTimerEmulateFtraceEventDefaultTypeInternalperfetto::protos::KvmTimerEmulateFtraceEventDefaultTypeInternal403   PROTOBUF_CONSTEXPR KvmTimerEmulateFtraceEventDefaultTypeInternal()
404       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmTimerEmulateFtraceEventDefaultTypeInternalperfetto::protos::KvmTimerEmulateFtraceEventDefaultTypeInternal405   ~KvmTimerEmulateFtraceEventDefaultTypeInternal() {}
406   union {  // NOLINT(misc-non-private-member-variables-in-classes)
407     KvmTimerEmulateFtraceEvent _instance;
408   };
409 };
410 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmTimerEmulateFtraceEventDefaultTypeInternal _KvmTimerEmulateFtraceEvent_default_instance_;
KvmTimerHrtimerExpireFtraceEvent(::_pbi::ConstantInitialized)411 PROTOBUF_CONSTEXPR KvmTimerHrtimerExpireFtraceEvent::KvmTimerHrtimerExpireFtraceEvent(
412     ::_pbi::ConstantInitialized): _impl_{
413     /*decltype(_impl_._has_bits_)*/{}
414   , /*decltype(_impl_._cached_size_)*/{}
415   , /*decltype(_impl_.timer_idx_)*/0} {}
416 struct KvmTimerHrtimerExpireFtraceEventDefaultTypeInternal {
KvmTimerHrtimerExpireFtraceEventDefaultTypeInternalperfetto::protos::KvmTimerHrtimerExpireFtraceEventDefaultTypeInternal417   PROTOBUF_CONSTEXPR KvmTimerHrtimerExpireFtraceEventDefaultTypeInternal()
418       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmTimerHrtimerExpireFtraceEventDefaultTypeInternalperfetto::protos::KvmTimerHrtimerExpireFtraceEventDefaultTypeInternal419   ~KvmTimerHrtimerExpireFtraceEventDefaultTypeInternal() {}
420   union {  // NOLINT(misc-non-private-member-variables-in-classes)
421     KvmTimerHrtimerExpireFtraceEvent _instance;
422   };
423 };
424 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmTimerHrtimerExpireFtraceEventDefaultTypeInternal _KvmTimerHrtimerExpireFtraceEvent_default_instance_;
KvmTimerRestoreStateFtraceEvent(::_pbi::ConstantInitialized)425 PROTOBUF_CONSTEXPR KvmTimerRestoreStateFtraceEvent::KvmTimerRestoreStateFtraceEvent(
426     ::_pbi::ConstantInitialized): _impl_{
427     /*decltype(_impl_._has_bits_)*/{}
428   , /*decltype(_impl_._cached_size_)*/{}
429   , /*decltype(_impl_.ctl_)*/::uint64_t{0u}
430   , /*decltype(_impl_.cval_)*/::uint64_t{0u}
431   , /*decltype(_impl_.timer_idx_)*/0} {}
432 struct KvmTimerRestoreStateFtraceEventDefaultTypeInternal {
KvmTimerRestoreStateFtraceEventDefaultTypeInternalperfetto::protos::KvmTimerRestoreStateFtraceEventDefaultTypeInternal433   PROTOBUF_CONSTEXPR KvmTimerRestoreStateFtraceEventDefaultTypeInternal()
434       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmTimerRestoreStateFtraceEventDefaultTypeInternalperfetto::protos::KvmTimerRestoreStateFtraceEventDefaultTypeInternal435   ~KvmTimerRestoreStateFtraceEventDefaultTypeInternal() {}
436   union {  // NOLINT(misc-non-private-member-variables-in-classes)
437     KvmTimerRestoreStateFtraceEvent _instance;
438   };
439 };
440 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmTimerRestoreStateFtraceEventDefaultTypeInternal _KvmTimerRestoreStateFtraceEvent_default_instance_;
KvmTimerSaveStateFtraceEvent(::_pbi::ConstantInitialized)441 PROTOBUF_CONSTEXPR KvmTimerSaveStateFtraceEvent::KvmTimerSaveStateFtraceEvent(
442     ::_pbi::ConstantInitialized): _impl_{
443     /*decltype(_impl_._has_bits_)*/{}
444   , /*decltype(_impl_._cached_size_)*/{}
445   , /*decltype(_impl_.ctl_)*/::uint64_t{0u}
446   , /*decltype(_impl_.cval_)*/::uint64_t{0u}
447   , /*decltype(_impl_.timer_idx_)*/0} {}
448 struct KvmTimerSaveStateFtraceEventDefaultTypeInternal {
KvmTimerSaveStateFtraceEventDefaultTypeInternalperfetto::protos::KvmTimerSaveStateFtraceEventDefaultTypeInternal449   PROTOBUF_CONSTEXPR KvmTimerSaveStateFtraceEventDefaultTypeInternal()
450       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmTimerSaveStateFtraceEventDefaultTypeInternalperfetto::protos::KvmTimerSaveStateFtraceEventDefaultTypeInternal451   ~KvmTimerSaveStateFtraceEventDefaultTypeInternal() {}
452   union {  // NOLINT(misc-non-private-member-variables-in-classes)
453     KvmTimerSaveStateFtraceEvent _instance;
454   };
455 };
456 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmTimerSaveStateFtraceEventDefaultTypeInternal _KvmTimerSaveStateFtraceEvent_default_instance_;
KvmTimerUpdateIrqFtraceEvent(::_pbi::ConstantInitialized)457 PROTOBUF_CONSTEXPR KvmTimerUpdateIrqFtraceEvent::KvmTimerUpdateIrqFtraceEvent(
458     ::_pbi::ConstantInitialized): _impl_{
459     /*decltype(_impl_._has_bits_)*/{}
460   , /*decltype(_impl_._cached_size_)*/{}
461   , /*decltype(_impl_.irq_)*/0u
462   , /*decltype(_impl_.level_)*/0
463   , /*decltype(_impl_.vcpu_id_)*/::uint64_t{0u}} {}
464 struct KvmTimerUpdateIrqFtraceEventDefaultTypeInternal {
KvmTimerUpdateIrqFtraceEventDefaultTypeInternalperfetto::protos::KvmTimerUpdateIrqFtraceEventDefaultTypeInternal465   PROTOBUF_CONSTEXPR KvmTimerUpdateIrqFtraceEventDefaultTypeInternal()
466       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmTimerUpdateIrqFtraceEventDefaultTypeInternalperfetto::protos::KvmTimerUpdateIrqFtraceEventDefaultTypeInternal467   ~KvmTimerUpdateIrqFtraceEventDefaultTypeInternal() {}
468   union {  // NOLINT(misc-non-private-member-variables-in-classes)
469     KvmTimerUpdateIrqFtraceEvent _instance;
470   };
471 };
472 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmTimerUpdateIrqFtraceEventDefaultTypeInternal _KvmTimerUpdateIrqFtraceEvent_default_instance_;
KvmToggleCacheFtraceEvent(::_pbi::ConstantInitialized)473 PROTOBUF_CONSTEXPR KvmToggleCacheFtraceEvent::KvmToggleCacheFtraceEvent(
474     ::_pbi::ConstantInitialized): _impl_{
475     /*decltype(_impl_._has_bits_)*/{}
476   , /*decltype(_impl_._cached_size_)*/{}
477   , /*decltype(_impl_.vcpu_pc_)*/::uint64_t{0u}
478   , /*decltype(_impl_.now_)*/0u
479   , /*decltype(_impl_.was_)*/0u} {}
480 struct KvmToggleCacheFtraceEventDefaultTypeInternal {
KvmToggleCacheFtraceEventDefaultTypeInternalperfetto::protos::KvmToggleCacheFtraceEventDefaultTypeInternal481   PROTOBUF_CONSTEXPR KvmToggleCacheFtraceEventDefaultTypeInternal()
482       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmToggleCacheFtraceEventDefaultTypeInternalperfetto::protos::KvmToggleCacheFtraceEventDefaultTypeInternal483   ~KvmToggleCacheFtraceEventDefaultTypeInternal() {}
484   union {  // NOLINT(misc-non-private-member-variables-in-classes)
485     KvmToggleCacheFtraceEvent _instance;
486   };
487 };
488 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmToggleCacheFtraceEventDefaultTypeInternal _KvmToggleCacheFtraceEvent_default_instance_;
KvmUnmapHvaRangeFtraceEvent(::_pbi::ConstantInitialized)489 PROTOBUF_CONSTEXPR KvmUnmapHvaRangeFtraceEvent::KvmUnmapHvaRangeFtraceEvent(
490     ::_pbi::ConstantInitialized): _impl_{
491     /*decltype(_impl_._has_bits_)*/{}
492   , /*decltype(_impl_._cached_size_)*/{}
493   , /*decltype(_impl_.end_)*/::uint64_t{0u}
494   , /*decltype(_impl_.start_)*/::uint64_t{0u}} {}
495 struct KvmUnmapHvaRangeFtraceEventDefaultTypeInternal {
KvmUnmapHvaRangeFtraceEventDefaultTypeInternalperfetto::protos::KvmUnmapHvaRangeFtraceEventDefaultTypeInternal496   PROTOBUF_CONSTEXPR KvmUnmapHvaRangeFtraceEventDefaultTypeInternal()
497       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmUnmapHvaRangeFtraceEventDefaultTypeInternalperfetto::protos::KvmUnmapHvaRangeFtraceEventDefaultTypeInternal498   ~KvmUnmapHvaRangeFtraceEventDefaultTypeInternal() {}
499   union {  // NOLINT(misc-non-private-member-variables-in-classes)
500     KvmUnmapHvaRangeFtraceEvent _instance;
501   };
502 };
503 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmUnmapHvaRangeFtraceEventDefaultTypeInternal _KvmUnmapHvaRangeFtraceEvent_default_instance_;
KvmUserspaceExitFtraceEvent(::_pbi::ConstantInitialized)504 PROTOBUF_CONSTEXPR KvmUserspaceExitFtraceEvent::KvmUserspaceExitFtraceEvent(
505     ::_pbi::ConstantInitialized): _impl_{
506     /*decltype(_impl_._has_bits_)*/{}
507   , /*decltype(_impl_._cached_size_)*/{}
508   , /*decltype(_impl_.reason_)*/0u} {}
509 struct KvmUserspaceExitFtraceEventDefaultTypeInternal {
KvmUserspaceExitFtraceEventDefaultTypeInternalperfetto::protos::KvmUserspaceExitFtraceEventDefaultTypeInternal510   PROTOBUF_CONSTEXPR KvmUserspaceExitFtraceEventDefaultTypeInternal()
511       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmUserspaceExitFtraceEventDefaultTypeInternalperfetto::protos::KvmUserspaceExitFtraceEventDefaultTypeInternal512   ~KvmUserspaceExitFtraceEventDefaultTypeInternal() {}
513   union {  // NOLINT(misc-non-private-member-variables-in-classes)
514     KvmUserspaceExitFtraceEvent _instance;
515   };
516 };
517 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmUserspaceExitFtraceEventDefaultTypeInternal _KvmUserspaceExitFtraceEvent_default_instance_;
KvmVcpuWakeupFtraceEvent(::_pbi::ConstantInitialized)518 PROTOBUF_CONSTEXPR KvmVcpuWakeupFtraceEvent::KvmVcpuWakeupFtraceEvent(
519     ::_pbi::ConstantInitialized): _impl_{
520     /*decltype(_impl_._has_bits_)*/{}
521   , /*decltype(_impl_._cached_size_)*/{}
522   , /*decltype(_impl_.ns_)*/::uint64_t{0u}
523   , /*decltype(_impl_.valid_)*/0u
524   , /*decltype(_impl_.waited_)*/0u} {}
525 struct KvmVcpuWakeupFtraceEventDefaultTypeInternal {
KvmVcpuWakeupFtraceEventDefaultTypeInternalperfetto::protos::KvmVcpuWakeupFtraceEventDefaultTypeInternal526   PROTOBUF_CONSTEXPR KvmVcpuWakeupFtraceEventDefaultTypeInternal()
527       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmVcpuWakeupFtraceEventDefaultTypeInternalperfetto::protos::KvmVcpuWakeupFtraceEventDefaultTypeInternal528   ~KvmVcpuWakeupFtraceEventDefaultTypeInternal() {}
529   union {  // NOLINT(misc-non-private-member-variables-in-classes)
530     KvmVcpuWakeupFtraceEvent _instance;
531   };
532 };
533 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmVcpuWakeupFtraceEventDefaultTypeInternal _KvmVcpuWakeupFtraceEvent_default_instance_;
KvmWfxArm64FtraceEvent(::_pbi::ConstantInitialized)534 PROTOBUF_CONSTEXPR KvmWfxArm64FtraceEvent::KvmWfxArm64FtraceEvent(
535     ::_pbi::ConstantInitialized): _impl_{
536     /*decltype(_impl_._has_bits_)*/{}
537   , /*decltype(_impl_._cached_size_)*/{}
538   , /*decltype(_impl_.vcpu_pc_)*/::uint64_t{0u}
539   , /*decltype(_impl_.is_wfe_)*/0u} {}
540 struct KvmWfxArm64FtraceEventDefaultTypeInternal {
KvmWfxArm64FtraceEventDefaultTypeInternalperfetto::protos::KvmWfxArm64FtraceEventDefaultTypeInternal541   PROTOBUF_CONSTEXPR KvmWfxArm64FtraceEventDefaultTypeInternal()
542       : _instance(::_pbi::ConstantInitialized{}) {}
~KvmWfxArm64FtraceEventDefaultTypeInternalperfetto::protos::KvmWfxArm64FtraceEventDefaultTypeInternal543   ~KvmWfxArm64FtraceEventDefaultTypeInternal() {}
544   union {  // NOLINT(misc-non-private-member-variables-in-classes)
545     KvmWfxArm64FtraceEvent _instance;
546   };
547 };
548 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KvmWfxArm64FtraceEventDefaultTypeInternal _KvmWfxArm64FtraceEvent_default_instance_;
TrapRegFtraceEvent(::_pbi::ConstantInitialized)549 PROTOBUF_CONSTEXPR TrapRegFtraceEvent::TrapRegFtraceEvent(
550     ::_pbi::ConstantInitialized): _impl_{
551     /*decltype(_impl_._has_bits_)*/{}
552   , /*decltype(_impl_._cached_size_)*/{}
553   , /*decltype(_impl_.fn_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
554   , /*decltype(_impl_.is_write_)*/0u
555   , /*decltype(_impl_.reg_)*/0
556   , /*decltype(_impl_.write_value_)*/::uint64_t{0u}} {}
557 struct TrapRegFtraceEventDefaultTypeInternal {
TrapRegFtraceEventDefaultTypeInternalperfetto::protos::TrapRegFtraceEventDefaultTypeInternal558   PROTOBUF_CONSTEXPR TrapRegFtraceEventDefaultTypeInternal()
559       : _instance(::_pbi::ConstantInitialized{}) {}
~TrapRegFtraceEventDefaultTypeInternalperfetto::protos::TrapRegFtraceEventDefaultTypeInternal560   ~TrapRegFtraceEventDefaultTypeInternal() {}
561   union {  // NOLINT(misc-non-private-member-variables-in-classes)
562     TrapRegFtraceEvent _instance;
563   };
564 };
565 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrapRegFtraceEventDefaultTypeInternal _TrapRegFtraceEvent_default_instance_;
VgicUpdateIrqPendingFtraceEvent(::_pbi::ConstantInitialized)566 PROTOBUF_CONSTEXPR VgicUpdateIrqPendingFtraceEvent::VgicUpdateIrqPendingFtraceEvent(
567     ::_pbi::ConstantInitialized): _impl_{
568     /*decltype(_impl_._has_bits_)*/{}
569   , /*decltype(_impl_._cached_size_)*/{}
570   , /*decltype(_impl_.irq_)*/0u
571   , /*decltype(_impl_.level_)*/0u
572   , /*decltype(_impl_.vcpu_id_)*/::uint64_t{0u}} {}
573 struct VgicUpdateIrqPendingFtraceEventDefaultTypeInternal {
VgicUpdateIrqPendingFtraceEventDefaultTypeInternalperfetto::protos::VgicUpdateIrqPendingFtraceEventDefaultTypeInternal574   PROTOBUF_CONSTEXPR VgicUpdateIrqPendingFtraceEventDefaultTypeInternal()
575       : _instance(::_pbi::ConstantInitialized{}) {}
~VgicUpdateIrqPendingFtraceEventDefaultTypeInternalperfetto::protos::VgicUpdateIrqPendingFtraceEventDefaultTypeInternal576   ~VgicUpdateIrqPendingFtraceEventDefaultTypeInternal() {}
577   union {  // NOLINT(misc-non-private-member-variables-in-classes)
578     VgicUpdateIrqPendingFtraceEvent _instance;
579   };
580 };
581 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VgicUpdateIrqPendingFtraceEventDefaultTypeInternal _VgicUpdateIrqPendingFtraceEvent_default_instance_;
582 }  // namespace protos
583 }  // namespace perfetto
584 namespace perfetto {
585 namespace protos {
586 
587 // ===================================================================
588 
589 class KvmAccessFaultFtraceEvent::_Internal {
590  public:
591   using HasBits = decltype(std::declval<KvmAccessFaultFtraceEvent>()._impl_._has_bits_);
set_has_ipa(HasBits * has_bits)592   static void set_has_ipa(HasBits* has_bits) {
593     (*has_bits)[0] |= 1u;
594   }
595 };
596 
KvmAccessFaultFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)597 KvmAccessFaultFtraceEvent::KvmAccessFaultFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
598                          bool is_message_owned)
599   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
600   SharedCtor(arena, is_message_owned);
601   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmAccessFaultFtraceEvent)
602 }
KvmAccessFaultFtraceEvent(const KvmAccessFaultFtraceEvent & from)603 KvmAccessFaultFtraceEvent::KvmAccessFaultFtraceEvent(const KvmAccessFaultFtraceEvent& from)
604   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
605   KvmAccessFaultFtraceEvent* const _this = this; (void)_this;
606   new (&_impl_) Impl_{
607       decltype(_impl_._has_bits_){from._impl_._has_bits_}
608     , /*decltype(_impl_._cached_size_)*/{}
609     , decltype(_impl_.ipa_){}};
610 
611   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
612   _this->_impl_.ipa_ = from._impl_.ipa_;
613   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmAccessFaultFtraceEvent)
614 }
615 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)616 inline void KvmAccessFaultFtraceEvent::SharedCtor(
617     ::_pb::Arena* arena, bool is_message_owned) {
618   (void)arena;
619   (void)is_message_owned;
620   new (&_impl_) Impl_{
621       decltype(_impl_._has_bits_){}
622     , /*decltype(_impl_._cached_size_)*/{}
623     , decltype(_impl_.ipa_){::uint64_t{0u}}
624   };
625 }
626 
~KvmAccessFaultFtraceEvent()627 KvmAccessFaultFtraceEvent::~KvmAccessFaultFtraceEvent() {
628   // @@protoc_insertion_point(destructor:perfetto.protos.KvmAccessFaultFtraceEvent)
629   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
630   (void)arena;
631     return;
632   }
633   SharedDtor();
634 }
635 
SharedDtor()636 inline void KvmAccessFaultFtraceEvent::SharedDtor() {
637   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
638 }
639 
SetCachedSize(int size) const640 void KvmAccessFaultFtraceEvent::SetCachedSize(int size) const {
641   _impl_._cached_size_.Set(size);
642 }
643 
Clear()644 void KvmAccessFaultFtraceEvent::Clear() {
645 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmAccessFaultFtraceEvent)
646   ::uint32_t cached_has_bits = 0;
647   // Prevent compiler warnings about cached_has_bits being unused
648   (void) cached_has_bits;
649 
650   _impl_.ipa_ = ::uint64_t{0u};
651   _impl_._has_bits_.Clear();
652   _internal_metadata_.Clear<std::string>();
653 }
654 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)655 const char* KvmAccessFaultFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
656 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
657   _Internal::HasBits has_bits{};
658   while (!ctx->Done(&ptr)) {
659     ::uint32_t tag;
660     ptr = ::_pbi::ReadTag(ptr, &tag);
661     switch (tag >> 3) {
662       // optional uint64 ipa = 1;
663       case 1:
664         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
665           _Internal::set_has_ipa(&has_bits);
666           _impl_.ipa_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
667           CHK_(ptr);
668         } else {
669           goto handle_unusual;
670         }
671         continue;
672       default:
673         goto handle_unusual;
674     }  // switch
675   handle_unusual:
676     if ((tag == 0) || ((tag & 7) == 4)) {
677       CHK_(ptr);
678       ctx->SetLastTag(tag);
679       goto message_done;
680     }
681     ptr = UnknownFieldParse(
682         tag,
683         _internal_metadata_.mutable_unknown_fields<std::string>(),
684         ptr, ctx);
685     CHK_(ptr != nullptr);
686   }  // while
687 message_done:
688   _impl_._has_bits_.Or(has_bits);
689   return ptr;
690 failure:
691   ptr = nullptr;
692   goto message_done;
693 #undef CHK_
694 }
695 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const696 ::uint8_t* KvmAccessFaultFtraceEvent::_InternalSerialize(
697     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
698   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmAccessFaultFtraceEvent)
699   ::uint32_t cached_has_bits = 0;
700   (void) cached_has_bits;
701 
702   cached_has_bits = _impl_._has_bits_[0];
703   // optional uint64 ipa = 1;
704   if (cached_has_bits & 0x00000001u) {
705     target = stream->EnsureSpace(target);
706     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_ipa(), target);
707   }
708 
709   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
710     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
711         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
712   }
713   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmAccessFaultFtraceEvent)
714   return target;
715 }
716 
ByteSizeLong() const717 size_t KvmAccessFaultFtraceEvent::ByteSizeLong() const {
718 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmAccessFaultFtraceEvent)
719   size_t total_size = 0;
720 
721   ::uint32_t cached_has_bits = 0;
722   // Prevent compiler warnings about cached_has_bits being unused
723   (void) cached_has_bits;
724 
725   // optional uint64 ipa = 1;
726   cached_has_bits = _impl_._has_bits_[0];
727   if (cached_has_bits & 0x00000001u) {
728     total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ipa());
729   }
730 
731   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
732     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
733   }
734   int cached_size = ::_pbi::ToCachedSize(total_size);
735   SetCachedSize(cached_size);
736   return total_size;
737 }
738 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)739 void KvmAccessFaultFtraceEvent::CheckTypeAndMergeFrom(
740     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
741   MergeFrom(*::_pbi::DownCast<const KvmAccessFaultFtraceEvent*>(
742       &from));
743 }
744 
MergeFrom(const KvmAccessFaultFtraceEvent & from)745 void KvmAccessFaultFtraceEvent::MergeFrom(const KvmAccessFaultFtraceEvent& from) {
746   KvmAccessFaultFtraceEvent* const _this = this;
747   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmAccessFaultFtraceEvent)
748   GOOGLE_DCHECK_NE(&from, _this);
749   ::uint32_t cached_has_bits = 0;
750   (void) cached_has_bits;
751 
752   if (from._internal_has_ipa()) {
753     _this->_internal_set_ipa(from._internal_ipa());
754   }
755   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
756 }
757 
CopyFrom(const KvmAccessFaultFtraceEvent & from)758 void KvmAccessFaultFtraceEvent::CopyFrom(const KvmAccessFaultFtraceEvent& from) {
759 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmAccessFaultFtraceEvent)
760   if (&from == this) return;
761   Clear();
762   MergeFrom(from);
763 }
764 
IsInitialized() const765 bool KvmAccessFaultFtraceEvent::IsInitialized() const {
766   return true;
767 }
768 
InternalSwap(KvmAccessFaultFtraceEvent * other)769 void KvmAccessFaultFtraceEvent::InternalSwap(KvmAccessFaultFtraceEvent* other) {
770   using std::swap;
771   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
772   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
773   swap(_impl_.ipa_, other->_impl_.ipa_);
774 }
775 
GetTypeName() const776 std::string KvmAccessFaultFtraceEvent::GetTypeName() const {
777   return "perfetto.protos.KvmAccessFaultFtraceEvent";
778 }
779 
780 
781 // ===================================================================
782 
783 class KvmAckIrqFtraceEvent::_Internal {
784  public:
785   using HasBits = decltype(std::declval<KvmAckIrqFtraceEvent>()._impl_._has_bits_);
set_has_irqchip(HasBits * has_bits)786   static void set_has_irqchip(HasBits* has_bits) {
787     (*has_bits)[0] |= 1u;
788   }
set_has_pin(HasBits * has_bits)789   static void set_has_pin(HasBits* has_bits) {
790     (*has_bits)[0] |= 2u;
791   }
792 };
793 
KvmAckIrqFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)794 KvmAckIrqFtraceEvent::KvmAckIrqFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
795                          bool is_message_owned)
796   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
797   SharedCtor(arena, is_message_owned);
798   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmAckIrqFtraceEvent)
799 }
KvmAckIrqFtraceEvent(const KvmAckIrqFtraceEvent & from)800 KvmAckIrqFtraceEvent::KvmAckIrqFtraceEvent(const KvmAckIrqFtraceEvent& from)
801   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
802   KvmAckIrqFtraceEvent* const _this = this; (void)_this;
803   new (&_impl_) Impl_{
804       decltype(_impl_._has_bits_){from._impl_._has_bits_}
805     , /*decltype(_impl_._cached_size_)*/{}
806     , decltype(_impl_.irqchip_){}
807     , decltype(_impl_.pin_){}};
808 
809   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
810   ::memcpy(&_impl_.irqchip_, &from._impl_.irqchip_,
811     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.pin_) -
812     reinterpret_cast<char*>(&_impl_.irqchip_)) + sizeof(_impl_.pin_));
813   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmAckIrqFtraceEvent)
814 }
815 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)816 inline void KvmAckIrqFtraceEvent::SharedCtor(
817     ::_pb::Arena* arena, bool is_message_owned) {
818   (void)arena;
819   (void)is_message_owned;
820   new (&_impl_) Impl_{
821       decltype(_impl_._has_bits_){}
822     , /*decltype(_impl_._cached_size_)*/{}
823     , decltype(_impl_.irqchip_){0u}
824     , decltype(_impl_.pin_){0u}
825   };
826 }
827 
~KvmAckIrqFtraceEvent()828 KvmAckIrqFtraceEvent::~KvmAckIrqFtraceEvent() {
829   // @@protoc_insertion_point(destructor:perfetto.protos.KvmAckIrqFtraceEvent)
830   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
831   (void)arena;
832     return;
833   }
834   SharedDtor();
835 }
836 
SharedDtor()837 inline void KvmAckIrqFtraceEvent::SharedDtor() {
838   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
839 }
840 
SetCachedSize(int size) const841 void KvmAckIrqFtraceEvent::SetCachedSize(int size) const {
842   _impl_._cached_size_.Set(size);
843 }
844 
Clear()845 void KvmAckIrqFtraceEvent::Clear() {
846 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmAckIrqFtraceEvent)
847   ::uint32_t cached_has_bits = 0;
848   // Prevent compiler warnings about cached_has_bits being unused
849   (void) cached_has_bits;
850 
851   cached_has_bits = _impl_._has_bits_[0];
852   if (cached_has_bits & 0x00000003u) {
853     ::memset(&_impl_.irqchip_, 0, static_cast<size_t>(
854         reinterpret_cast<char*>(&_impl_.pin_) -
855         reinterpret_cast<char*>(&_impl_.irqchip_)) + sizeof(_impl_.pin_));
856   }
857   _impl_._has_bits_.Clear();
858   _internal_metadata_.Clear<std::string>();
859 }
860 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)861 const char* KvmAckIrqFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
862 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
863   _Internal::HasBits has_bits{};
864   while (!ctx->Done(&ptr)) {
865     ::uint32_t tag;
866     ptr = ::_pbi::ReadTag(ptr, &tag);
867     switch (tag >> 3) {
868       // optional uint32 irqchip = 1;
869       case 1:
870         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
871           _Internal::set_has_irqchip(&has_bits);
872           _impl_.irqchip_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
873           CHK_(ptr);
874         } else {
875           goto handle_unusual;
876         }
877         continue;
878       // optional uint32 pin = 2;
879       case 2:
880         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
881           _Internal::set_has_pin(&has_bits);
882           _impl_.pin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
883           CHK_(ptr);
884         } else {
885           goto handle_unusual;
886         }
887         continue;
888       default:
889         goto handle_unusual;
890     }  // switch
891   handle_unusual:
892     if ((tag == 0) || ((tag & 7) == 4)) {
893       CHK_(ptr);
894       ctx->SetLastTag(tag);
895       goto message_done;
896     }
897     ptr = UnknownFieldParse(
898         tag,
899         _internal_metadata_.mutable_unknown_fields<std::string>(),
900         ptr, ctx);
901     CHK_(ptr != nullptr);
902   }  // while
903 message_done:
904   _impl_._has_bits_.Or(has_bits);
905   return ptr;
906 failure:
907   ptr = nullptr;
908   goto message_done;
909 #undef CHK_
910 }
911 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const912 ::uint8_t* KvmAckIrqFtraceEvent::_InternalSerialize(
913     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
914   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmAckIrqFtraceEvent)
915   ::uint32_t cached_has_bits = 0;
916   (void) cached_has_bits;
917 
918   cached_has_bits = _impl_._has_bits_[0];
919   // optional uint32 irqchip = 1;
920   if (cached_has_bits & 0x00000001u) {
921     target = stream->EnsureSpace(target);
922     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_irqchip(), target);
923   }
924 
925   // optional uint32 pin = 2;
926   if (cached_has_bits & 0x00000002u) {
927     target = stream->EnsureSpace(target);
928     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_pin(), target);
929   }
930 
931   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
932     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
933         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
934   }
935   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmAckIrqFtraceEvent)
936   return target;
937 }
938 
ByteSizeLong() const939 size_t KvmAckIrqFtraceEvent::ByteSizeLong() const {
940 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmAckIrqFtraceEvent)
941   size_t total_size = 0;
942 
943   ::uint32_t cached_has_bits = 0;
944   // Prevent compiler warnings about cached_has_bits being unused
945   (void) cached_has_bits;
946 
947   cached_has_bits = _impl_._has_bits_[0];
948   if (cached_has_bits & 0x00000003u) {
949     // optional uint32 irqchip = 1;
950     if (cached_has_bits & 0x00000001u) {
951       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_irqchip());
952     }
953 
954     // optional uint32 pin = 2;
955     if (cached_has_bits & 0x00000002u) {
956       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pin());
957     }
958 
959   }
960   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
961     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
962   }
963   int cached_size = ::_pbi::ToCachedSize(total_size);
964   SetCachedSize(cached_size);
965   return total_size;
966 }
967 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)968 void KvmAckIrqFtraceEvent::CheckTypeAndMergeFrom(
969     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
970   MergeFrom(*::_pbi::DownCast<const KvmAckIrqFtraceEvent*>(
971       &from));
972 }
973 
MergeFrom(const KvmAckIrqFtraceEvent & from)974 void KvmAckIrqFtraceEvent::MergeFrom(const KvmAckIrqFtraceEvent& from) {
975   KvmAckIrqFtraceEvent* const _this = this;
976   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmAckIrqFtraceEvent)
977   GOOGLE_DCHECK_NE(&from, _this);
978   ::uint32_t cached_has_bits = 0;
979   (void) cached_has_bits;
980 
981   cached_has_bits = from._impl_._has_bits_[0];
982   if (cached_has_bits & 0x00000003u) {
983     if (cached_has_bits & 0x00000001u) {
984       _this->_impl_.irqchip_ = from._impl_.irqchip_;
985     }
986     if (cached_has_bits & 0x00000002u) {
987       _this->_impl_.pin_ = from._impl_.pin_;
988     }
989     _this->_impl_._has_bits_[0] |= cached_has_bits;
990   }
991   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
992 }
993 
CopyFrom(const KvmAckIrqFtraceEvent & from)994 void KvmAckIrqFtraceEvent::CopyFrom(const KvmAckIrqFtraceEvent& from) {
995 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmAckIrqFtraceEvent)
996   if (&from == this) return;
997   Clear();
998   MergeFrom(from);
999 }
1000 
IsInitialized() const1001 bool KvmAckIrqFtraceEvent::IsInitialized() const {
1002   return true;
1003 }
1004 
InternalSwap(KvmAckIrqFtraceEvent * other)1005 void KvmAckIrqFtraceEvent::InternalSwap(KvmAckIrqFtraceEvent* other) {
1006   using std::swap;
1007   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1008   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1009   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1010       PROTOBUF_FIELD_OFFSET(KvmAckIrqFtraceEvent, _impl_.pin_)
1011       + sizeof(KvmAckIrqFtraceEvent::_impl_.pin_)  // NOLINT
1012       - PROTOBUF_FIELD_OFFSET(KvmAckIrqFtraceEvent, _impl_.irqchip_)>(
1013           reinterpret_cast<char*>(&_impl_.irqchip_),
1014           reinterpret_cast<char*>(&other->_impl_.irqchip_));
1015 }
1016 
GetTypeName() const1017 std::string KvmAckIrqFtraceEvent::GetTypeName() const {
1018   return "perfetto.protos.KvmAckIrqFtraceEvent";
1019 }
1020 
1021 
1022 // ===================================================================
1023 
1024 class KvmAgeHvaFtraceEvent::_Internal {
1025  public:
1026   using HasBits = decltype(std::declval<KvmAgeHvaFtraceEvent>()._impl_._has_bits_);
set_has_end(HasBits * has_bits)1027   static void set_has_end(HasBits* has_bits) {
1028     (*has_bits)[0] |= 1u;
1029   }
set_has_start(HasBits * has_bits)1030   static void set_has_start(HasBits* has_bits) {
1031     (*has_bits)[0] |= 2u;
1032   }
1033 };
1034 
KvmAgeHvaFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1035 KvmAgeHvaFtraceEvent::KvmAgeHvaFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1036                          bool is_message_owned)
1037   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1038   SharedCtor(arena, is_message_owned);
1039   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmAgeHvaFtraceEvent)
1040 }
KvmAgeHvaFtraceEvent(const KvmAgeHvaFtraceEvent & from)1041 KvmAgeHvaFtraceEvent::KvmAgeHvaFtraceEvent(const KvmAgeHvaFtraceEvent& from)
1042   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1043   KvmAgeHvaFtraceEvent* const _this = this; (void)_this;
1044   new (&_impl_) Impl_{
1045       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1046     , /*decltype(_impl_._cached_size_)*/{}
1047     , decltype(_impl_.end_){}
1048     , decltype(_impl_.start_){}};
1049 
1050   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1051   ::memcpy(&_impl_.end_, &from._impl_.end_,
1052     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.start_) -
1053     reinterpret_cast<char*>(&_impl_.end_)) + sizeof(_impl_.start_));
1054   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmAgeHvaFtraceEvent)
1055 }
1056 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1057 inline void KvmAgeHvaFtraceEvent::SharedCtor(
1058     ::_pb::Arena* arena, bool is_message_owned) {
1059   (void)arena;
1060   (void)is_message_owned;
1061   new (&_impl_) Impl_{
1062       decltype(_impl_._has_bits_){}
1063     , /*decltype(_impl_._cached_size_)*/{}
1064     , decltype(_impl_.end_){::uint64_t{0u}}
1065     , decltype(_impl_.start_){::uint64_t{0u}}
1066   };
1067 }
1068 
~KvmAgeHvaFtraceEvent()1069 KvmAgeHvaFtraceEvent::~KvmAgeHvaFtraceEvent() {
1070   // @@protoc_insertion_point(destructor:perfetto.protos.KvmAgeHvaFtraceEvent)
1071   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1072   (void)arena;
1073     return;
1074   }
1075   SharedDtor();
1076 }
1077 
SharedDtor()1078 inline void KvmAgeHvaFtraceEvent::SharedDtor() {
1079   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1080 }
1081 
SetCachedSize(int size) const1082 void KvmAgeHvaFtraceEvent::SetCachedSize(int size) const {
1083   _impl_._cached_size_.Set(size);
1084 }
1085 
Clear()1086 void KvmAgeHvaFtraceEvent::Clear() {
1087 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmAgeHvaFtraceEvent)
1088   ::uint32_t cached_has_bits = 0;
1089   // Prevent compiler warnings about cached_has_bits being unused
1090   (void) cached_has_bits;
1091 
1092   cached_has_bits = _impl_._has_bits_[0];
1093   if (cached_has_bits & 0x00000003u) {
1094     ::memset(&_impl_.end_, 0, static_cast<size_t>(
1095         reinterpret_cast<char*>(&_impl_.start_) -
1096         reinterpret_cast<char*>(&_impl_.end_)) + sizeof(_impl_.start_));
1097   }
1098   _impl_._has_bits_.Clear();
1099   _internal_metadata_.Clear<std::string>();
1100 }
1101 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1102 const char* KvmAgeHvaFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1103 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1104   _Internal::HasBits has_bits{};
1105   while (!ctx->Done(&ptr)) {
1106     ::uint32_t tag;
1107     ptr = ::_pbi::ReadTag(ptr, &tag);
1108     switch (tag >> 3) {
1109       // optional uint64 end = 1;
1110       case 1:
1111         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1112           _Internal::set_has_end(&has_bits);
1113           _impl_.end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1114           CHK_(ptr);
1115         } else {
1116           goto handle_unusual;
1117         }
1118         continue;
1119       // optional uint64 start = 2;
1120       case 2:
1121         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1122           _Internal::set_has_start(&has_bits);
1123           _impl_.start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1124           CHK_(ptr);
1125         } else {
1126           goto handle_unusual;
1127         }
1128         continue;
1129       default:
1130         goto handle_unusual;
1131     }  // switch
1132   handle_unusual:
1133     if ((tag == 0) || ((tag & 7) == 4)) {
1134       CHK_(ptr);
1135       ctx->SetLastTag(tag);
1136       goto message_done;
1137     }
1138     ptr = UnknownFieldParse(
1139         tag,
1140         _internal_metadata_.mutable_unknown_fields<std::string>(),
1141         ptr, ctx);
1142     CHK_(ptr != nullptr);
1143   }  // while
1144 message_done:
1145   _impl_._has_bits_.Or(has_bits);
1146   return ptr;
1147 failure:
1148   ptr = nullptr;
1149   goto message_done;
1150 #undef CHK_
1151 }
1152 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1153 ::uint8_t* KvmAgeHvaFtraceEvent::_InternalSerialize(
1154     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1155   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmAgeHvaFtraceEvent)
1156   ::uint32_t cached_has_bits = 0;
1157   (void) cached_has_bits;
1158 
1159   cached_has_bits = _impl_._has_bits_[0];
1160   // optional uint64 end = 1;
1161   if (cached_has_bits & 0x00000001u) {
1162     target = stream->EnsureSpace(target);
1163     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_end(), target);
1164   }
1165 
1166   // optional uint64 start = 2;
1167   if (cached_has_bits & 0x00000002u) {
1168     target = stream->EnsureSpace(target);
1169     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_start(), target);
1170   }
1171 
1172   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1173     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1174         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1175   }
1176   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmAgeHvaFtraceEvent)
1177   return target;
1178 }
1179 
ByteSizeLong() const1180 size_t KvmAgeHvaFtraceEvent::ByteSizeLong() const {
1181 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmAgeHvaFtraceEvent)
1182   size_t total_size = 0;
1183 
1184   ::uint32_t cached_has_bits = 0;
1185   // Prevent compiler warnings about cached_has_bits being unused
1186   (void) cached_has_bits;
1187 
1188   cached_has_bits = _impl_._has_bits_[0];
1189   if (cached_has_bits & 0x00000003u) {
1190     // optional uint64 end = 1;
1191     if (cached_has_bits & 0x00000001u) {
1192       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_end());
1193     }
1194 
1195     // optional uint64 start = 2;
1196     if (cached_has_bits & 0x00000002u) {
1197       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start());
1198     }
1199 
1200   }
1201   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1202     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1203   }
1204   int cached_size = ::_pbi::ToCachedSize(total_size);
1205   SetCachedSize(cached_size);
1206   return total_size;
1207 }
1208 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1209 void KvmAgeHvaFtraceEvent::CheckTypeAndMergeFrom(
1210     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1211   MergeFrom(*::_pbi::DownCast<const KvmAgeHvaFtraceEvent*>(
1212       &from));
1213 }
1214 
MergeFrom(const KvmAgeHvaFtraceEvent & from)1215 void KvmAgeHvaFtraceEvent::MergeFrom(const KvmAgeHvaFtraceEvent& from) {
1216   KvmAgeHvaFtraceEvent* const _this = this;
1217   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmAgeHvaFtraceEvent)
1218   GOOGLE_DCHECK_NE(&from, _this);
1219   ::uint32_t cached_has_bits = 0;
1220   (void) cached_has_bits;
1221 
1222   cached_has_bits = from._impl_._has_bits_[0];
1223   if (cached_has_bits & 0x00000003u) {
1224     if (cached_has_bits & 0x00000001u) {
1225       _this->_impl_.end_ = from._impl_.end_;
1226     }
1227     if (cached_has_bits & 0x00000002u) {
1228       _this->_impl_.start_ = from._impl_.start_;
1229     }
1230     _this->_impl_._has_bits_[0] |= cached_has_bits;
1231   }
1232   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1233 }
1234 
CopyFrom(const KvmAgeHvaFtraceEvent & from)1235 void KvmAgeHvaFtraceEvent::CopyFrom(const KvmAgeHvaFtraceEvent& from) {
1236 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmAgeHvaFtraceEvent)
1237   if (&from == this) return;
1238   Clear();
1239   MergeFrom(from);
1240 }
1241 
IsInitialized() const1242 bool KvmAgeHvaFtraceEvent::IsInitialized() const {
1243   return true;
1244 }
1245 
InternalSwap(KvmAgeHvaFtraceEvent * other)1246 void KvmAgeHvaFtraceEvent::InternalSwap(KvmAgeHvaFtraceEvent* other) {
1247   using std::swap;
1248   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1249   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1250   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1251       PROTOBUF_FIELD_OFFSET(KvmAgeHvaFtraceEvent, _impl_.start_)
1252       + sizeof(KvmAgeHvaFtraceEvent::_impl_.start_)  // NOLINT
1253       - PROTOBUF_FIELD_OFFSET(KvmAgeHvaFtraceEvent, _impl_.end_)>(
1254           reinterpret_cast<char*>(&_impl_.end_),
1255           reinterpret_cast<char*>(&other->_impl_.end_));
1256 }
1257 
GetTypeName() const1258 std::string KvmAgeHvaFtraceEvent::GetTypeName() const {
1259   return "perfetto.protos.KvmAgeHvaFtraceEvent";
1260 }
1261 
1262 
1263 // ===================================================================
1264 
1265 class KvmAgePageFtraceEvent::_Internal {
1266  public:
1267   using HasBits = decltype(std::declval<KvmAgePageFtraceEvent>()._impl_._has_bits_);
set_has_gfn(HasBits * has_bits)1268   static void set_has_gfn(HasBits* has_bits) {
1269     (*has_bits)[0] |= 1u;
1270   }
set_has_hva(HasBits * has_bits)1271   static void set_has_hva(HasBits* has_bits) {
1272     (*has_bits)[0] |= 2u;
1273   }
set_has_level(HasBits * has_bits)1274   static void set_has_level(HasBits* has_bits) {
1275     (*has_bits)[0] |= 4u;
1276   }
set_has_referenced(HasBits * has_bits)1277   static void set_has_referenced(HasBits* has_bits) {
1278     (*has_bits)[0] |= 8u;
1279   }
1280 };
1281 
KvmAgePageFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1282 KvmAgePageFtraceEvent::KvmAgePageFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1283                          bool is_message_owned)
1284   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1285   SharedCtor(arena, is_message_owned);
1286   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmAgePageFtraceEvent)
1287 }
KvmAgePageFtraceEvent(const KvmAgePageFtraceEvent & from)1288 KvmAgePageFtraceEvent::KvmAgePageFtraceEvent(const KvmAgePageFtraceEvent& from)
1289   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1290   KvmAgePageFtraceEvent* const _this = this; (void)_this;
1291   new (&_impl_) Impl_{
1292       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1293     , /*decltype(_impl_._cached_size_)*/{}
1294     , decltype(_impl_.gfn_){}
1295     , decltype(_impl_.hva_){}
1296     , decltype(_impl_.level_){}
1297     , decltype(_impl_.referenced_){}};
1298 
1299   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1300   ::memcpy(&_impl_.gfn_, &from._impl_.gfn_,
1301     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.referenced_) -
1302     reinterpret_cast<char*>(&_impl_.gfn_)) + sizeof(_impl_.referenced_));
1303   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmAgePageFtraceEvent)
1304 }
1305 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1306 inline void KvmAgePageFtraceEvent::SharedCtor(
1307     ::_pb::Arena* arena, bool is_message_owned) {
1308   (void)arena;
1309   (void)is_message_owned;
1310   new (&_impl_) Impl_{
1311       decltype(_impl_._has_bits_){}
1312     , /*decltype(_impl_._cached_size_)*/{}
1313     , decltype(_impl_.gfn_){::uint64_t{0u}}
1314     , decltype(_impl_.hva_){::uint64_t{0u}}
1315     , decltype(_impl_.level_){0u}
1316     , decltype(_impl_.referenced_){0u}
1317   };
1318 }
1319 
~KvmAgePageFtraceEvent()1320 KvmAgePageFtraceEvent::~KvmAgePageFtraceEvent() {
1321   // @@protoc_insertion_point(destructor:perfetto.protos.KvmAgePageFtraceEvent)
1322   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1323   (void)arena;
1324     return;
1325   }
1326   SharedDtor();
1327 }
1328 
SharedDtor()1329 inline void KvmAgePageFtraceEvent::SharedDtor() {
1330   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1331 }
1332 
SetCachedSize(int size) const1333 void KvmAgePageFtraceEvent::SetCachedSize(int size) const {
1334   _impl_._cached_size_.Set(size);
1335 }
1336 
Clear()1337 void KvmAgePageFtraceEvent::Clear() {
1338 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmAgePageFtraceEvent)
1339   ::uint32_t cached_has_bits = 0;
1340   // Prevent compiler warnings about cached_has_bits being unused
1341   (void) cached_has_bits;
1342 
1343   cached_has_bits = _impl_._has_bits_[0];
1344   if (cached_has_bits & 0x0000000fu) {
1345     ::memset(&_impl_.gfn_, 0, static_cast<size_t>(
1346         reinterpret_cast<char*>(&_impl_.referenced_) -
1347         reinterpret_cast<char*>(&_impl_.gfn_)) + sizeof(_impl_.referenced_));
1348   }
1349   _impl_._has_bits_.Clear();
1350   _internal_metadata_.Clear<std::string>();
1351 }
1352 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1353 const char* KvmAgePageFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1354 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1355   _Internal::HasBits has_bits{};
1356   while (!ctx->Done(&ptr)) {
1357     ::uint32_t tag;
1358     ptr = ::_pbi::ReadTag(ptr, &tag);
1359     switch (tag >> 3) {
1360       // optional uint64 gfn = 1;
1361       case 1:
1362         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1363           _Internal::set_has_gfn(&has_bits);
1364           _impl_.gfn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1365           CHK_(ptr);
1366         } else {
1367           goto handle_unusual;
1368         }
1369         continue;
1370       // optional uint64 hva = 2;
1371       case 2:
1372         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1373           _Internal::set_has_hva(&has_bits);
1374           _impl_.hva_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1375           CHK_(ptr);
1376         } else {
1377           goto handle_unusual;
1378         }
1379         continue;
1380       // optional uint32 level = 3;
1381       case 3:
1382         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
1383           _Internal::set_has_level(&has_bits);
1384           _impl_.level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1385           CHK_(ptr);
1386         } else {
1387           goto handle_unusual;
1388         }
1389         continue;
1390       // optional uint32 referenced = 4;
1391       case 4:
1392         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
1393           _Internal::set_has_referenced(&has_bits);
1394           _impl_.referenced_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1395           CHK_(ptr);
1396         } else {
1397           goto handle_unusual;
1398         }
1399         continue;
1400       default:
1401         goto handle_unusual;
1402     }  // switch
1403   handle_unusual:
1404     if ((tag == 0) || ((tag & 7) == 4)) {
1405       CHK_(ptr);
1406       ctx->SetLastTag(tag);
1407       goto message_done;
1408     }
1409     ptr = UnknownFieldParse(
1410         tag,
1411         _internal_metadata_.mutable_unknown_fields<std::string>(),
1412         ptr, ctx);
1413     CHK_(ptr != nullptr);
1414   }  // while
1415 message_done:
1416   _impl_._has_bits_.Or(has_bits);
1417   return ptr;
1418 failure:
1419   ptr = nullptr;
1420   goto message_done;
1421 #undef CHK_
1422 }
1423 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1424 ::uint8_t* KvmAgePageFtraceEvent::_InternalSerialize(
1425     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1426   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmAgePageFtraceEvent)
1427   ::uint32_t cached_has_bits = 0;
1428   (void) cached_has_bits;
1429 
1430   cached_has_bits = _impl_._has_bits_[0];
1431   // optional uint64 gfn = 1;
1432   if (cached_has_bits & 0x00000001u) {
1433     target = stream->EnsureSpace(target);
1434     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_gfn(), target);
1435   }
1436 
1437   // optional uint64 hva = 2;
1438   if (cached_has_bits & 0x00000002u) {
1439     target = stream->EnsureSpace(target);
1440     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_hva(), target);
1441   }
1442 
1443   // optional uint32 level = 3;
1444   if (cached_has_bits & 0x00000004u) {
1445     target = stream->EnsureSpace(target);
1446     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_level(), target);
1447   }
1448 
1449   // optional uint32 referenced = 4;
1450   if (cached_has_bits & 0x00000008u) {
1451     target = stream->EnsureSpace(target);
1452     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_referenced(), target);
1453   }
1454 
1455   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1456     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1457         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1458   }
1459   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmAgePageFtraceEvent)
1460   return target;
1461 }
1462 
ByteSizeLong() const1463 size_t KvmAgePageFtraceEvent::ByteSizeLong() const {
1464 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmAgePageFtraceEvent)
1465   size_t total_size = 0;
1466 
1467   ::uint32_t cached_has_bits = 0;
1468   // Prevent compiler warnings about cached_has_bits being unused
1469   (void) cached_has_bits;
1470 
1471   cached_has_bits = _impl_._has_bits_[0];
1472   if (cached_has_bits & 0x0000000fu) {
1473     // optional uint64 gfn = 1;
1474     if (cached_has_bits & 0x00000001u) {
1475       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_gfn());
1476     }
1477 
1478     // optional uint64 hva = 2;
1479     if (cached_has_bits & 0x00000002u) {
1480       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_hva());
1481     }
1482 
1483     // optional uint32 level = 3;
1484     if (cached_has_bits & 0x00000004u) {
1485       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_level());
1486     }
1487 
1488     // optional uint32 referenced = 4;
1489     if (cached_has_bits & 0x00000008u) {
1490       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_referenced());
1491     }
1492 
1493   }
1494   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1495     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1496   }
1497   int cached_size = ::_pbi::ToCachedSize(total_size);
1498   SetCachedSize(cached_size);
1499   return total_size;
1500 }
1501 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1502 void KvmAgePageFtraceEvent::CheckTypeAndMergeFrom(
1503     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1504   MergeFrom(*::_pbi::DownCast<const KvmAgePageFtraceEvent*>(
1505       &from));
1506 }
1507 
MergeFrom(const KvmAgePageFtraceEvent & from)1508 void KvmAgePageFtraceEvent::MergeFrom(const KvmAgePageFtraceEvent& from) {
1509   KvmAgePageFtraceEvent* const _this = this;
1510   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmAgePageFtraceEvent)
1511   GOOGLE_DCHECK_NE(&from, _this);
1512   ::uint32_t cached_has_bits = 0;
1513   (void) cached_has_bits;
1514 
1515   cached_has_bits = from._impl_._has_bits_[0];
1516   if (cached_has_bits & 0x0000000fu) {
1517     if (cached_has_bits & 0x00000001u) {
1518       _this->_impl_.gfn_ = from._impl_.gfn_;
1519     }
1520     if (cached_has_bits & 0x00000002u) {
1521       _this->_impl_.hva_ = from._impl_.hva_;
1522     }
1523     if (cached_has_bits & 0x00000004u) {
1524       _this->_impl_.level_ = from._impl_.level_;
1525     }
1526     if (cached_has_bits & 0x00000008u) {
1527       _this->_impl_.referenced_ = from._impl_.referenced_;
1528     }
1529     _this->_impl_._has_bits_[0] |= cached_has_bits;
1530   }
1531   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1532 }
1533 
CopyFrom(const KvmAgePageFtraceEvent & from)1534 void KvmAgePageFtraceEvent::CopyFrom(const KvmAgePageFtraceEvent& from) {
1535 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmAgePageFtraceEvent)
1536   if (&from == this) return;
1537   Clear();
1538   MergeFrom(from);
1539 }
1540 
IsInitialized() const1541 bool KvmAgePageFtraceEvent::IsInitialized() const {
1542   return true;
1543 }
1544 
InternalSwap(KvmAgePageFtraceEvent * other)1545 void KvmAgePageFtraceEvent::InternalSwap(KvmAgePageFtraceEvent* other) {
1546   using std::swap;
1547   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1548   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1549   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1550       PROTOBUF_FIELD_OFFSET(KvmAgePageFtraceEvent, _impl_.referenced_)
1551       + sizeof(KvmAgePageFtraceEvent::_impl_.referenced_)  // NOLINT
1552       - PROTOBUF_FIELD_OFFSET(KvmAgePageFtraceEvent, _impl_.gfn_)>(
1553           reinterpret_cast<char*>(&_impl_.gfn_),
1554           reinterpret_cast<char*>(&other->_impl_.gfn_));
1555 }
1556 
GetTypeName() const1557 std::string KvmAgePageFtraceEvent::GetTypeName() const {
1558   return "perfetto.protos.KvmAgePageFtraceEvent";
1559 }
1560 
1561 
1562 // ===================================================================
1563 
1564 class KvmArmClearDebugFtraceEvent::_Internal {
1565  public:
1566   using HasBits = decltype(std::declval<KvmArmClearDebugFtraceEvent>()._impl_._has_bits_);
set_has_guest_debug(HasBits * has_bits)1567   static void set_has_guest_debug(HasBits* has_bits) {
1568     (*has_bits)[0] |= 1u;
1569   }
1570 };
1571 
KvmArmClearDebugFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1572 KvmArmClearDebugFtraceEvent::KvmArmClearDebugFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1573                          bool is_message_owned)
1574   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1575   SharedCtor(arena, is_message_owned);
1576   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmArmClearDebugFtraceEvent)
1577 }
KvmArmClearDebugFtraceEvent(const KvmArmClearDebugFtraceEvent & from)1578 KvmArmClearDebugFtraceEvent::KvmArmClearDebugFtraceEvent(const KvmArmClearDebugFtraceEvent& from)
1579   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1580   KvmArmClearDebugFtraceEvent* const _this = this; (void)_this;
1581   new (&_impl_) Impl_{
1582       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1583     , /*decltype(_impl_._cached_size_)*/{}
1584     , decltype(_impl_.guest_debug_){}};
1585 
1586   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1587   _this->_impl_.guest_debug_ = from._impl_.guest_debug_;
1588   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmArmClearDebugFtraceEvent)
1589 }
1590 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1591 inline void KvmArmClearDebugFtraceEvent::SharedCtor(
1592     ::_pb::Arena* arena, bool is_message_owned) {
1593   (void)arena;
1594   (void)is_message_owned;
1595   new (&_impl_) Impl_{
1596       decltype(_impl_._has_bits_){}
1597     , /*decltype(_impl_._cached_size_)*/{}
1598     , decltype(_impl_.guest_debug_){0u}
1599   };
1600 }
1601 
~KvmArmClearDebugFtraceEvent()1602 KvmArmClearDebugFtraceEvent::~KvmArmClearDebugFtraceEvent() {
1603   // @@protoc_insertion_point(destructor:perfetto.protos.KvmArmClearDebugFtraceEvent)
1604   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1605   (void)arena;
1606     return;
1607   }
1608   SharedDtor();
1609 }
1610 
SharedDtor()1611 inline void KvmArmClearDebugFtraceEvent::SharedDtor() {
1612   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1613 }
1614 
SetCachedSize(int size) const1615 void KvmArmClearDebugFtraceEvent::SetCachedSize(int size) const {
1616   _impl_._cached_size_.Set(size);
1617 }
1618 
Clear()1619 void KvmArmClearDebugFtraceEvent::Clear() {
1620 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmArmClearDebugFtraceEvent)
1621   ::uint32_t cached_has_bits = 0;
1622   // Prevent compiler warnings about cached_has_bits being unused
1623   (void) cached_has_bits;
1624 
1625   _impl_.guest_debug_ = 0u;
1626   _impl_._has_bits_.Clear();
1627   _internal_metadata_.Clear<std::string>();
1628 }
1629 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1630 const char* KvmArmClearDebugFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1631 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1632   _Internal::HasBits has_bits{};
1633   while (!ctx->Done(&ptr)) {
1634     ::uint32_t tag;
1635     ptr = ::_pbi::ReadTag(ptr, &tag);
1636     switch (tag >> 3) {
1637       // optional uint32 guest_debug = 1;
1638       case 1:
1639         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1640           _Internal::set_has_guest_debug(&has_bits);
1641           _impl_.guest_debug_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1642           CHK_(ptr);
1643         } else {
1644           goto handle_unusual;
1645         }
1646         continue;
1647       default:
1648         goto handle_unusual;
1649     }  // switch
1650   handle_unusual:
1651     if ((tag == 0) || ((tag & 7) == 4)) {
1652       CHK_(ptr);
1653       ctx->SetLastTag(tag);
1654       goto message_done;
1655     }
1656     ptr = UnknownFieldParse(
1657         tag,
1658         _internal_metadata_.mutable_unknown_fields<std::string>(),
1659         ptr, ctx);
1660     CHK_(ptr != nullptr);
1661   }  // while
1662 message_done:
1663   _impl_._has_bits_.Or(has_bits);
1664   return ptr;
1665 failure:
1666   ptr = nullptr;
1667   goto message_done;
1668 #undef CHK_
1669 }
1670 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1671 ::uint8_t* KvmArmClearDebugFtraceEvent::_InternalSerialize(
1672     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1673   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmArmClearDebugFtraceEvent)
1674   ::uint32_t cached_has_bits = 0;
1675   (void) cached_has_bits;
1676 
1677   cached_has_bits = _impl_._has_bits_[0];
1678   // optional uint32 guest_debug = 1;
1679   if (cached_has_bits & 0x00000001u) {
1680     target = stream->EnsureSpace(target);
1681     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_guest_debug(), target);
1682   }
1683 
1684   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1685     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1686         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1687   }
1688   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmArmClearDebugFtraceEvent)
1689   return target;
1690 }
1691 
ByteSizeLong() const1692 size_t KvmArmClearDebugFtraceEvent::ByteSizeLong() const {
1693 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmArmClearDebugFtraceEvent)
1694   size_t total_size = 0;
1695 
1696   ::uint32_t cached_has_bits = 0;
1697   // Prevent compiler warnings about cached_has_bits being unused
1698   (void) cached_has_bits;
1699 
1700   // optional uint32 guest_debug = 1;
1701   cached_has_bits = _impl_._has_bits_[0];
1702   if (cached_has_bits & 0x00000001u) {
1703     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_guest_debug());
1704   }
1705 
1706   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1707     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1708   }
1709   int cached_size = ::_pbi::ToCachedSize(total_size);
1710   SetCachedSize(cached_size);
1711   return total_size;
1712 }
1713 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1714 void KvmArmClearDebugFtraceEvent::CheckTypeAndMergeFrom(
1715     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1716   MergeFrom(*::_pbi::DownCast<const KvmArmClearDebugFtraceEvent*>(
1717       &from));
1718 }
1719 
MergeFrom(const KvmArmClearDebugFtraceEvent & from)1720 void KvmArmClearDebugFtraceEvent::MergeFrom(const KvmArmClearDebugFtraceEvent& from) {
1721   KvmArmClearDebugFtraceEvent* const _this = this;
1722   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmArmClearDebugFtraceEvent)
1723   GOOGLE_DCHECK_NE(&from, _this);
1724   ::uint32_t cached_has_bits = 0;
1725   (void) cached_has_bits;
1726 
1727   if (from._internal_has_guest_debug()) {
1728     _this->_internal_set_guest_debug(from._internal_guest_debug());
1729   }
1730   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1731 }
1732 
CopyFrom(const KvmArmClearDebugFtraceEvent & from)1733 void KvmArmClearDebugFtraceEvent::CopyFrom(const KvmArmClearDebugFtraceEvent& from) {
1734 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmArmClearDebugFtraceEvent)
1735   if (&from == this) return;
1736   Clear();
1737   MergeFrom(from);
1738 }
1739 
IsInitialized() const1740 bool KvmArmClearDebugFtraceEvent::IsInitialized() const {
1741   return true;
1742 }
1743 
InternalSwap(KvmArmClearDebugFtraceEvent * other)1744 void KvmArmClearDebugFtraceEvent::InternalSwap(KvmArmClearDebugFtraceEvent* other) {
1745   using std::swap;
1746   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1747   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1748   swap(_impl_.guest_debug_, other->_impl_.guest_debug_);
1749 }
1750 
GetTypeName() const1751 std::string KvmArmClearDebugFtraceEvent::GetTypeName() const {
1752   return "perfetto.protos.KvmArmClearDebugFtraceEvent";
1753 }
1754 
1755 
1756 // ===================================================================
1757 
1758 class KvmArmSetDreg32FtraceEvent::_Internal {
1759  public:
1760   using HasBits = decltype(std::declval<KvmArmSetDreg32FtraceEvent>()._impl_._has_bits_);
set_has_name(HasBits * has_bits)1761   static void set_has_name(HasBits* has_bits) {
1762     (*has_bits)[0] |= 1u;
1763   }
set_has_value(HasBits * has_bits)1764   static void set_has_value(HasBits* has_bits) {
1765     (*has_bits)[0] |= 2u;
1766   }
1767 };
1768 
KvmArmSetDreg32FtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1769 KvmArmSetDreg32FtraceEvent::KvmArmSetDreg32FtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1770                          bool is_message_owned)
1771   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1772   SharedCtor(arena, is_message_owned);
1773   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmArmSetDreg32FtraceEvent)
1774 }
KvmArmSetDreg32FtraceEvent(const KvmArmSetDreg32FtraceEvent & from)1775 KvmArmSetDreg32FtraceEvent::KvmArmSetDreg32FtraceEvent(const KvmArmSetDreg32FtraceEvent& from)
1776   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1777   KvmArmSetDreg32FtraceEvent* const _this = this; (void)_this;
1778   new (&_impl_) Impl_{
1779       decltype(_impl_._has_bits_){from._impl_._has_bits_}
1780     , /*decltype(_impl_._cached_size_)*/{}
1781     , decltype(_impl_.name_){}
1782     , decltype(_impl_.value_){}};
1783 
1784   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1785   _impl_.name_.InitDefault();
1786   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1787     _impl_.name_.Set("", GetArenaForAllocation());
1788   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1789   if (from._internal_has_name()) {
1790     _this->_impl_.name_.Set(from._internal_name(),
1791       _this->GetArenaForAllocation());
1792   }
1793   _this->_impl_.value_ = from._impl_.value_;
1794   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmArmSetDreg32FtraceEvent)
1795 }
1796 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1797 inline void KvmArmSetDreg32FtraceEvent::SharedCtor(
1798     ::_pb::Arena* arena, bool is_message_owned) {
1799   (void)arena;
1800   (void)is_message_owned;
1801   new (&_impl_) Impl_{
1802       decltype(_impl_._has_bits_){}
1803     , /*decltype(_impl_._cached_size_)*/{}
1804     , decltype(_impl_.name_){}
1805     , decltype(_impl_.value_){0u}
1806   };
1807   _impl_.name_.InitDefault();
1808   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1809     _impl_.name_.Set("", GetArenaForAllocation());
1810   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1811 }
1812 
~KvmArmSetDreg32FtraceEvent()1813 KvmArmSetDreg32FtraceEvent::~KvmArmSetDreg32FtraceEvent() {
1814   // @@protoc_insertion_point(destructor:perfetto.protos.KvmArmSetDreg32FtraceEvent)
1815   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1816   (void)arena;
1817     return;
1818   }
1819   SharedDtor();
1820 }
1821 
SharedDtor()1822 inline void KvmArmSetDreg32FtraceEvent::SharedDtor() {
1823   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1824   _impl_.name_.Destroy();
1825 }
1826 
SetCachedSize(int size) const1827 void KvmArmSetDreg32FtraceEvent::SetCachedSize(int size) const {
1828   _impl_._cached_size_.Set(size);
1829 }
1830 
Clear()1831 void KvmArmSetDreg32FtraceEvent::Clear() {
1832 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmArmSetDreg32FtraceEvent)
1833   ::uint32_t cached_has_bits = 0;
1834   // Prevent compiler warnings about cached_has_bits being unused
1835   (void) cached_has_bits;
1836 
1837   cached_has_bits = _impl_._has_bits_[0];
1838   if (cached_has_bits & 0x00000001u) {
1839     _impl_.name_.ClearNonDefaultToEmpty();
1840   }
1841   _impl_.value_ = 0u;
1842   _impl_._has_bits_.Clear();
1843   _internal_metadata_.Clear<std::string>();
1844 }
1845 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1846 const char* KvmArmSetDreg32FtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1847 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1848   _Internal::HasBits has_bits{};
1849   while (!ctx->Done(&ptr)) {
1850     ::uint32_t tag;
1851     ptr = ::_pbi::ReadTag(ptr, &tag);
1852     switch (tag >> 3) {
1853       // optional string name = 1;
1854       case 1:
1855         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
1856           auto str = _internal_mutable_name();
1857           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1858           CHK_(ptr);
1859         } else {
1860           goto handle_unusual;
1861         }
1862         continue;
1863       // optional uint32 value = 2;
1864       case 2:
1865         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1866           _Internal::set_has_value(&has_bits);
1867           _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1868           CHK_(ptr);
1869         } else {
1870           goto handle_unusual;
1871         }
1872         continue;
1873       default:
1874         goto handle_unusual;
1875     }  // switch
1876   handle_unusual:
1877     if ((tag == 0) || ((tag & 7) == 4)) {
1878       CHK_(ptr);
1879       ctx->SetLastTag(tag);
1880       goto message_done;
1881     }
1882     ptr = UnknownFieldParse(
1883         tag,
1884         _internal_metadata_.mutable_unknown_fields<std::string>(),
1885         ptr, ctx);
1886     CHK_(ptr != nullptr);
1887   }  // while
1888 message_done:
1889   _impl_._has_bits_.Or(has_bits);
1890   return ptr;
1891 failure:
1892   ptr = nullptr;
1893   goto message_done;
1894 #undef CHK_
1895 }
1896 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1897 ::uint8_t* KvmArmSetDreg32FtraceEvent::_InternalSerialize(
1898     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1899   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmArmSetDreg32FtraceEvent)
1900   ::uint32_t cached_has_bits = 0;
1901   (void) cached_has_bits;
1902 
1903   cached_has_bits = _impl_._has_bits_[0];
1904   // optional string name = 1;
1905   if (cached_has_bits & 0x00000001u) {
1906     target = stream->WriteStringMaybeAliased(
1907         1, this->_internal_name(), target);
1908   }
1909 
1910   // optional uint32 value = 2;
1911   if (cached_has_bits & 0x00000002u) {
1912     target = stream->EnsureSpace(target);
1913     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_value(), target);
1914   }
1915 
1916   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1917     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1918         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1919   }
1920   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmArmSetDreg32FtraceEvent)
1921   return target;
1922 }
1923 
ByteSizeLong() const1924 size_t KvmArmSetDreg32FtraceEvent::ByteSizeLong() const {
1925 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmArmSetDreg32FtraceEvent)
1926   size_t total_size = 0;
1927 
1928   ::uint32_t cached_has_bits = 0;
1929   // Prevent compiler warnings about cached_has_bits being unused
1930   (void) cached_has_bits;
1931 
1932   cached_has_bits = _impl_._has_bits_[0];
1933   if (cached_has_bits & 0x00000003u) {
1934     // optional string name = 1;
1935     if (cached_has_bits & 0x00000001u) {
1936       total_size += 1 +
1937         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1938           this->_internal_name());
1939     }
1940 
1941     // optional uint32 value = 2;
1942     if (cached_has_bits & 0x00000002u) {
1943       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_value());
1944     }
1945 
1946   }
1947   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1948     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1949   }
1950   int cached_size = ::_pbi::ToCachedSize(total_size);
1951   SetCachedSize(cached_size);
1952   return total_size;
1953 }
1954 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1955 void KvmArmSetDreg32FtraceEvent::CheckTypeAndMergeFrom(
1956     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1957   MergeFrom(*::_pbi::DownCast<const KvmArmSetDreg32FtraceEvent*>(
1958       &from));
1959 }
1960 
MergeFrom(const KvmArmSetDreg32FtraceEvent & from)1961 void KvmArmSetDreg32FtraceEvent::MergeFrom(const KvmArmSetDreg32FtraceEvent& from) {
1962   KvmArmSetDreg32FtraceEvent* const _this = this;
1963   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmArmSetDreg32FtraceEvent)
1964   GOOGLE_DCHECK_NE(&from, _this);
1965   ::uint32_t cached_has_bits = 0;
1966   (void) cached_has_bits;
1967 
1968   cached_has_bits = from._impl_._has_bits_[0];
1969   if (cached_has_bits & 0x00000003u) {
1970     if (cached_has_bits & 0x00000001u) {
1971       _this->_internal_set_name(from._internal_name());
1972     }
1973     if (cached_has_bits & 0x00000002u) {
1974       _this->_impl_.value_ = from._impl_.value_;
1975     }
1976     _this->_impl_._has_bits_[0] |= cached_has_bits;
1977   }
1978   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1979 }
1980 
CopyFrom(const KvmArmSetDreg32FtraceEvent & from)1981 void KvmArmSetDreg32FtraceEvent::CopyFrom(const KvmArmSetDreg32FtraceEvent& from) {
1982 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmArmSetDreg32FtraceEvent)
1983   if (&from == this) return;
1984   Clear();
1985   MergeFrom(from);
1986 }
1987 
IsInitialized() const1988 bool KvmArmSetDreg32FtraceEvent::IsInitialized() const {
1989   return true;
1990 }
1991 
InternalSwap(KvmArmSetDreg32FtraceEvent * other)1992 void KvmArmSetDreg32FtraceEvent::InternalSwap(KvmArmSetDreg32FtraceEvent* other) {
1993   using std::swap;
1994   auto* lhs_arena = GetArenaForAllocation();
1995   auto* rhs_arena = other->GetArenaForAllocation();
1996   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1997   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1998   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1999       &_impl_.name_, lhs_arena,
2000       &other->_impl_.name_, rhs_arena
2001   );
2002   swap(_impl_.value_, other->_impl_.value_);
2003 }
2004 
GetTypeName() const2005 std::string KvmArmSetDreg32FtraceEvent::GetTypeName() const {
2006   return "perfetto.protos.KvmArmSetDreg32FtraceEvent";
2007 }
2008 
2009 
2010 // ===================================================================
2011 
2012 class KvmArmSetRegsetFtraceEvent::_Internal {
2013  public:
2014   using HasBits = decltype(std::declval<KvmArmSetRegsetFtraceEvent>()._impl_._has_bits_);
set_has_len(HasBits * has_bits)2015   static void set_has_len(HasBits* has_bits) {
2016     (*has_bits)[0] |= 2u;
2017   }
set_has_name(HasBits * has_bits)2018   static void set_has_name(HasBits* has_bits) {
2019     (*has_bits)[0] |= 1u;
2020   }
2021 };
2022 
KvmArmSetRegsetFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2023 KvmArmSetRegsetFtraceEvent::KvmArmSetRegsetFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2024                          bool is_message_owned)
2025   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2026   SharedCtor(arena, is_message_owned);
2027   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmArmSetRegsetFtraceEvent)
2028 }
KvmArmSetRegsetFtraceEvent(const KvmArmSetRegsetFtraceEvent & from)2029 KvmArmSetRegsetFtraceEvent::KvmArmSetRegsetFtraceEvent(const KvmArmSetRegsetFtraceEvent& from)
2030   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2031   KvmArmSetRegsetFtraceEvent* const _this = this; (void)_this;
2032   new (&_impl_) Impl_{
2033       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2034     , /*decltype(_impl_._cached_size_)*/{}
2035     , decltype(_impl_.name_){}
2036     , decltype(_impl_.len_){}};
2037 
2038   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2039   _impl_.name_.InitDefault();
2040   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2041     _impl_.name_.Set("", GetArenaForAllocation());
2042   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2043   if (from._internal_has_name()) {
2044     _this->_impl_.name_.Set(from._internal_name(),
2045       _this->GetArenaForAllocation());
2046   }
2047   _this->_impl_.len_ = from._impl_.len_;
2048   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmArmSetRegsetFtraceEvent)
2049 }
2050 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2051 inline void KvmArmSetRegsetFtraceEvent::SharedCtor(
2052     ::_pb::Arena* arena, bool is_message_owned) {
2053   (void)arena;
2054   (void)is_message_owned;
2055   new (&_impl_) Impl_{
2056       decltype(_impl_._has_bits_){}
2057     , /*decltype(_impl_._cached_size_)*/{}
2058     , decltype(_impl_.name_){}
2059     , decltype(_impl_.len_){0}
2060   };
2061   _impl_.name_.InitDefault();
2062   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2063     _impl_.name_.Set("", GetArenaForAllocation());
2064   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2065 }
2066 
~KvmArmSetRegsetFtraceEvent()2067 KvmArmSetRegsetFtraceEvent::~KvmArmSetRegsetFtraceEvent() {
2068   // @@protoc_insertion_point(destructor:perfetto.protos.KvmArmSetRegsetFtraceEvent)
2069   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2070   (void)arena;
2071     return;
2072   }
2073   SharedDtor();
2074 }
2075 
SharedDtor()2076 inline void KvmArmSetRegsetFtraceEvent::SharedDtor() {
2077   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2078   _impl_.name_.Destroy();
2079 }
2080 
SetCachedSize(int size) const2081 void KvmArmSetRegsetFtraceEvent::SetCachedSize(int size) const {
2082   _impl_._cached_size_.Set(size);
2083 }
2084 
Clear()2085 void KvmArmSetRegsetFtraceEvent::Clear() {
2086 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmArmSetRegsetFtraceEvent)
2087   ::uint32_t cached_has_bits = 0;
2088   // Prevent compiler warnings about cached_has_bits being unused
2089   (void) cached_has_bits;
2090 
2091   cached_has_bits = _impl_._has_bits_[0];
2092   if (cached_has_bits & 0x00000001u) {
2093     _impl_.name_.ClearNonDefaultToEmpty();
2094   }
2095   _impl_.len_ = 0;
2096   _impl_._has_bits_.Clear();
2097   _internal_metadata_.Clear<std::string>();
2098 }
2099 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2100 const char* KvmArmSetRegsetFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2101 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2102   _Internal::HasBits has_bits{};
2103   while (!ctx->Done(&ptr)) {
2104     ::uint32_t tag;
2105     ptr = ::_pbi::ReadTag(ptr, &tag);
2106     switch (tag >> 3) {
2107       // optional int32 len = 1;
2108       case 1:
2109         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2110           _Internal::set_has_len(&has_bits);
2111           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2112           CHK_(ptr);
2113         } else {
2114           goto handle_unusual;
2115         }
2116         continue;
2117       // optional string name = 2;
2118       case 2:
2119         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
2120           auto str = _internal_mutable_name();
2121           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2122           CHK_(ptr);
2123         } else {
2124           goto handle_unusual;
2125         }
2126         continue;
2127       default:
2128         goto handle_unusual;
2129     }  // switch
2130   handle_unusual:
2131     if ((tag == 0) || ((tag & 7) == 4)) {
2132       CHK_(ptr);
2133       ctx->SetLastTag(tag);
2134       goto message_done;
2135     }
2136     ptr = UnknownFieldParse(
2137         tag,
2138         _internal_metadata_.mutable_unknown_fields<std::string>(),
2139         ptr, ctx);
2140     CHK_(ptr != nullptr);
2141   }  // while
2142 message_done:
2143   _impl_._has_bits_.Or(has_bits);
2144   return ptr;
2145 failure:
2146   ptr = nullptr;
2147   goto message_done;
2148 #undef CHK_
2149 }
2150 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2151 ::uint8_t* KvmArmSetRegsetFtraceEvent::_InternalSerialize(
2152     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2153   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmArmSetRegsetFtraceEvent)
2154   ::uint32_t cached_has_bits = 0;
2155   (void) cached_has_bits;
2156 
2157   cached_has_bits = _impl_._has_bits_[0];
2158   // optional int32 len = 1;
2159   if (cached_has_bits & 0x00000002u) {
2160     target = stream->EnsureSpace(target);
2161     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_len(), target);
2162   }
2163 
2164   // optional string name = 2;
2165   if (cached_has_bits & 0x00000001u) {
2166     target = stream->WriteStringMaybeAliased(
2167         2, this->_internal_name(), target);
2168   }
2169 
2170   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2171     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2172         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2173   }
2174   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmArmSetRegsetFtraceEvent)
2175   return target;
2176 }
2177 
ByteSizeLong() const2178 size_t KvmArmSetRegsetFtraceEvent::ByteSizeLong() const {
2179 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmArmSetRegsetFtraceEvent)
2180   size_t total_size = 0;
2181 
2182   ::uint32_t cached_has_bits = 0;
2183   // Prevent compiler warnings about cached_has_bits being unused
2184   (void) cached_has_bits;
2185 
2186   cached_has_bits = _impl_._has_bits_[0];
2187   if (cached_has_bits & 0x00000003u) {
2188     // optional string name = 2;
2189     if (cached_has_bits & 0x00000001u) {
2190       total_size += 1 +
2191         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2192           this->_internal_name());
2193     }
2194 
2195     // optional int32 len = 1;
2196     if (cached_has_bits & 0x00000002u) {
2197       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_len());
2198     }
2199 
2200   }
2201   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2202     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2203   }
2204   int cached_size = ::_pbi::ToCachedSize(total_size);
2205   SetCachedSize(cached_size);
2206   return total_size;
2207 }
2208 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2209 void KvmArmSetRegsetFtraceEvent::CheckTypeAndMergeFrom(
2210     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2211   MergeFrom(*::_pbi::DownCast<const KvmArmSetRegsetFtraceEvent*>(
2212       &from));
2213 }
2214 
MergeFrom(const KvmArmSetRegsetFtraceEvent & from)2215 void KvmArmSetRegsetFtraceEvent::MergeFrom(const KvmArmSetRegsetFtraceEvent& from) {
2216   KvmArmSetRegsetFtraceEvent* const _this = this;
2217   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmArmSetRegsetFtraceEvent)
2218   GOOGLE_DCHECK_NE(&from, _this);
2219   ::uint32_t cached_has_bits = 0;
2220   (void) cached_has_bits;
2221 
2222   cached_has_bits = from._impl_._has_bits_[0];
2223   if (cached_has_bits & 0x00000003u) {
2224     if (cached_has_bits & 0x00000001u) {
2225       _this->_internal_set_name(from._internal_name());
2226     }
2227     if (cached_has_bits & 0x00000002u) {
2228       _this->_impl_.len_ = from._impl_.len_;
2229     }
2230     _this->_impl_._has_bits_[0] |= cached_has_bits;
2231   }
2232   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2233 }
2234 
CopyFrom(const KvmArmSetRegsetFtraceEvent & from)2235 void KvmArmSetRegsetFtraceEvent::CopyFrom(const KvmArmSetRegsetFtraceEvent& from) {
2236 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmArmSetRegsetFtraceEvent)
2237   if (&from == this) return;
2238   Clear();
2239   MergeFrom(from);
2240 }
2241 
IsInitialized() const2242 bool KvmArmSetRegsetFtraceEvent::IsInitialized() const {
2243   return true;
2244 }
2245 
InternalSwap(KvmArmSetRegsetFtraceEvent * other)2246 void KvmArmSetRegsetFtraceEvent::InternalSwap(KvmArmSetRegsetFtraceEvent* other) {
2247   using std::swap;
2248   auto* lhs_arena = GetArenaForAllocation();
2249   auto* rhs_arena = other->GetArenaForAllocation();
2250   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2251   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2252   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2253       &_impl_.name_, lhs_arena,
2254       &other->_impl_.name_, rhs_arena
2255   );
2256   swap(_impl_.len_, other->_impl_.len_);
2257 }
2258 
GetTypeName() const2259 std::string KvmArmSetRegsetFtraceEvent::GetTypeName() const {
2260   return "perfetto.protos.KvmArmSetRegsetFtraceEvent";
2261 }
2262 
2263 
2264 // ===================================================================
2265 
2266 class KvmArmSetupDebugFtraceEvent::_Internal {
2267  public:
2268   using HasBits = decltype(std::declval<KvmArmSetupDebugFtraceEvent>()._impl_._has_bits_);
set_has_guest_debug(HasBits * has_bits)2269   static void set_has_guest_debug(HasBits* has_bits) {
2270     (*has_bits)[0] |= 2u;
2271   }
set_has_vcpu(HasBits * has_bits)2272   static void set_has_vcpu(HasBits* has_bits) {
2273     (*has_bits)[0] |= 1u;
2274   }
2275 };
2276 
KvmArmSetupDebugFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2277 KvmArmSetupDebugFtraceEvent::KvmArmSetupDebugFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2278                          bool is_message_owned)
2279   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2280   SharedCtor(arena, is_message_owned);
2281   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmArmSetupDebugFtraceEvent)
2282 }
KvmArmSetupDebugFtraceEvent(const KvmArmSetupDebugFtraceEvent & from)2283 KvmArmSetupDebugFtraceEvent::KvmArmSetupDebugFtraceEvent(const KvmArmSetupDebugFtraceEvent& from)
2284   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2285   KvmArmSetupDebugFtraceEvent* const _this = this; (void)_this;
2286   new (&_impl_) Impl_{
2287       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2288     , /*decltype(_impl_._cached_size_)*/{}
2289     , decltype(_impl_.vcpu_){}
2290     , decltype(_impl_.guest_debug_){}};
2291 
2292   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2293   ::memcpy(&_impl_.vcpu_, &from._impl_.vcpu_,
2294     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.guest_debug_) -
2295     reinterpret_cast<char*>(&_impl_.vcpu_)) + sizeof(_impl_.guest_debug_));
2296   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmArmSetupDebugFtraceEvent)
2297 }
2298 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2299 inline void KvmArmSetupDebugFtraceEvent::SharedCtor(
2300     ::_pb::Arena* arena, bool is_message_owned) {
2301   (void)arena;
2302   (void)is_message_owned;
2303   new (&_impl_) Impl_{
2304       decltype(_impl_._has_bits_){}
2305     , /*decltype(_impl_._cached_size_)*/{}
2306     , decltype(_impl_.vcpu_){::uint64_t{0u}}
2307     , decltype(_impl_.guest_debug_){0u}
2308   };
2309 }
2310 
~KvmArmSetupDebugFtraceEvent()2311 KvmArmSetupDebugFtraceEvent::~KvmArmSetupDebugFtraceEvent() {
2312   // @@protoc_insertion_point(destructor:perfetto.protos.KvmArmSetupDebugFtraceEvent)
2313   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2314   (void)arena;
2315     return;
2316   }
2317   SharedDtor();
2318 }
2319 
SharedDtor()2320 inline void KvmArmSetupDebugFtraceEvent::SharedDtor() {
2321   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2322 }
2323 
SetCachedSize(int size) const2324 void KvmArmSetupDebugFtraceEvent::SetCachedSize(int size) const {
2325   _impl_._cached_size_.Set(size);
2326 }
2327 
Clear()2328 void KvmArmSetupDebugFtraceEvent::Clear() {
2329 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmArmSetupDebugFtraceEvent)
2330   ::uint32_t cached_has_bits = 0;
2331   // Prevent compiler warnings about cached_has_bits being unused
2332   (void) cached_has_bits;
2333 
2334   cached_has_bits = _impl_._has_bits_[0];
2335   if (cached_has_bits & 0x00000003u) {
2336     ::memset(&_impl_.vcpu_, 0, static_cast<size_t>(
2337         reinterpret_cast<char*>(&_impl_.guest_debug_) -
2338         reinterpret_cast<char*>(&_impl_.vcpu_)) + sizeof(_impl_.guest_debug_));
2339   }
2340   _impl_._has_bits_.Clear();
2341   _internal_metadata_.Clear<std::string>();
2342 }
2343 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2344 const char* KvmArmSetupDebugFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2345 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2346   _Internal::HasBits has_bits{};
2347   while (!ctx->Done(&ptr)) {
2348     ::uint32_t tag;
2349     ptr = ::_pbi::ReadTag(ptr, &tag);
2350     switch (tag >> 3) {
2351       // optional uint32 guest_debug = 1;
2352       case 1:
2353         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2354           _Internal::set_has_guest_debug(&has_bits);
2355           _impl_.guest_debug_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2356           CHK_(ptr);
2357         } else {
2358           goto handle_unusual;
2359         }
2360         continue;
2361       // optional uint64 vcpu = 2;
2362       case 2:
2363         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
2364           _Internal::set_has_vcpu(&has_bits);
2365           _impl_.vcpu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2366           CHK_(ptr);
2367         } else {
2368           goto handle_unusual;
2369         }
2370         continue;
2371       default:
2372         goto handle_unusual;
2373     }  // switch
2374   handle_unusual:
2375     if ((tag == 0) || ((tag & 7) == 4)) {
2376       CHK_(ptr);
2377       ctx->SetLastTag(tag);
2378       goto message_done;
2379     }
2380     ptr = UnknownFieldParse(
2381         tag,
2382         _internal_metadata_.mutable_unknown_fields<std::string>(),
2383         ptr, ctx);
2384     CHK_(ptr != nullptr);
2385   }  // while
2386 message_done:
2387   _impl_._has_bits_.Or(has_bits);
2388   return ptr;
2389 failure:
2390   ptr = nullptr;
2391   goto message_done;
2392 #undef CHK_
2393 }
2394 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2395 ::uint8_t* KvmArmSetupDebugFtraceEvent::_InternalSerialize(
2396     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2397   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmArmSetupDebugFtraceEvent)
2398   ::uint32_t cached_has_bits = 0;
2399   (void) cached_has_bits;
2400 
2401   cached_has_bits = _impl_._has_bits_[0];
2402   // optional uint32 guest_debug = 1;
2403   if (cached_has_bits & 0x00000002u) {
2404     target = stream->EnsureSpace(target);
2405     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_guest_debug(), target);
2406   }
2407 
2408   // optional uint64 vcpu = 2;
2409   if (cached_has_bits & 0x00000001u) {
2410     target = stream->EnsureSpace(target);
2411     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_vcpu(), target);
2412   }
2413 
2414   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2415     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2416         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2417   }
2418   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmArmSetupDebugFtraceEvent)
2419   return target;
2420 }
2421 
ByteSizeLong() const2422 size_t KvmArmSetupDebugFtraceEvent::ByteSizeLong() const {
2423 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmArmSetupDebugFtraceEvent)
2424   size_t total_size = 0;
2425 
2426   ::uint32_t cached_has_bits = 0;
2427   // Prevent compiler warnings about cached_has_bits being unused
2428   (void) cached_has_bits;
2429 
2430   cached_has_bits = _impl_._has_bits_[0];
2431   if (cached_has_bits & 0x00000003u) {
2432     // optional uint64 vcpu = 2;
2433     if (cached_has_bits & 0x00000001u) {
2434       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu());
2435     }
2436 
2437     // optional uint32 guest_debug = 1;
2438     if (cached_has_bits & 0x00000002u) {
2439       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_guest_debug());
2440     }
2441 
2442   }
2443   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2444     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2445   }
2446   int cached_size = ::_pbi::ToCachedSize(total_size);
2447   SetCachedSize(cached_size);
2448   return total_size;
2449 }
2450 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2451 void KvmArmSetupDebugFtraceEvent::CheckTypeAndMergeFrom(
2452     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2453   MergeFrom(*::_pbi::DownCast<const KvmArmSetupDebugFtraceEvent*>(
2454       &from));
2455 }
2456 
MergeFrom(const KvmArmSetupDebugFtraceEvent & from)2457 void KvmArmSetupDebugFtraceEvent::MergeFrom(const KvmArmSetupDebugFtraceEvent& from) {
2458   KvmArmSetupDebugFtraceEvent* const _this = this;
2459   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmArmSetupDebugFtraceEvent)
2460   GOOGLE_DCHECK_NE(&from, _this);
2461   ::uint32_t cached_has_bits = 0;
2462   (void) cached_has_bits;
2463 
2464   cached_has_bits = from._impl_._has_bits_[0];
2465   if (cached_has_bits & 0x00000003u) {
2466     if (cached_has_bits & 0x00000001u) {
2467       _this->_impl_.vcpu_ = from._impl_.vcpu_;
2468     }
2469     if (cached_has_bits & 0x00000002u) {
2470       _this->_impl_.guest_debug_ = from._impl_.guest_debug_;
2471     }
2472     _this->_impl_._has_bits_[0] |= cached_has_bits;
2473   }
2474   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2475 }
2476 
CopyFrom(const KvmArmSetupDebugFtraceEvent & from)2477 void KvmArmSetupDebugFtraceEvent::CopyFrom(const KvmArmSetupDebugFtraceEvent& from) {
2478 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmArmSetupDebugFtraceEvent)
2479   if (&from == this) return;
2480   Clear();
2481   MergeFrom(from);
2482 }
2483 
IsInitialized() const2484 bool KvmArmSetupDebugFtraceEvent::IsInitialized() const {
2485   return true;
2486 }
2487 
InternalSwap(KvmArmSetupDebugFtraceEvent * other)2488 void KvmArmSetupDebugFtraceEvent::InternalSwap(KvmArmSetupDebugFtraceEvent* other) {
2489   using std::swap;
2490   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2491   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2492   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2493       PROTOBUF_FIELD_OFFSET(KvmArmSetupDebugFtraceEvent, _impl_.guest_debug_)
2494       + sizeof(KvmArmSetupDebugFtraceEvent::_impl_.guest_debug_)  // NOLINT
2495       - PROTOBUF_FIELD_OFFSET(KvmArmSetupDebugFtraceEvent, _impl_.vcpu_)>(
2496           reinterpret_cast<char*>(&_impl_.vcpu_),
2497           reinterpret_cast<char*>(&other->_impl_.vcpu_));
2498 }
2499 
GetTypeName() const2500 std::string KvmArmSetupDebugFtraceEvent::GetTypeName() const {
2501   return "perfetto.protos.KvmArmSetupDebugFtraceEvent";
2502 }
2503 
2504 
2505 // ===================================================================
2506 
2507 class KvmEntryFtraceEvent::_Internal {
2508  public:
2509   using HasBits = decltype(std::declval<KvmEntryFtraceEvent>()._impl_._has_bits_);
set_has_vcpu_pc(HasBits * has_bits)2510   static void set_has_vcpu_pc(HasBits* has_bits) {
2511     (*has_bits)[0] |= 1u;
2512   }
2513 };
2514 
KvmEntryFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2515 KvmEntryFtraceEvent::KvmEntryFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2516                          bool is_message_owned)
2517   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2518   SharedCtor(arena, is_message_owned);
2519   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmEntryFtraceEvent)
2520 }
KvmEntryFtraceEvent(const KvmEntryFtraceEvent & from)2521 KvmEntryFtraceEvent::KvmEntryFtraceEvent(const KvmEntryFtraceEvent& from)
2522   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2523   KvmEntryFtraceEvent* const _this = this; (void)_this;
2524   new (&_impl_) Impl_{
2525       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2526     , /*decltype(_impl_._cached_size_)*/{}
2527     , decltype(_impl_.vcpu_pc_){}};
2528 
2529   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2530   _this->_impl_.vcpu_pc_ = from._impl_.vcpu_pc_;
2531   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmEntryFtraceEvent)
2532 }
2533 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2534 inline void KvmEntryFtraceEvent::SharedCtor(
2535     ::_pb::Arena* arena, bool is_message_owned) {
2536   (void)arena;
2537   (void)is_message_owned;
2538   new (&_impl_) Impl_{
2539       decltype(_impl_._has_bits_){}
2540     , /*decltype(_impl_._cached_size_)*/{}
2541     , decltype(_impl_.vcpu_pc_){::uint64_t{0u}}
2542   };
2543 }
2544 
~KvmEntryFtraceEvent()2545 KvmEntryFtraceEvent::~KvmEntryFtraceEvent() {
2546   // @@protoc_insertion_point(destructor:perfetto.protos.KvmEntryFtraceEvent)
2547   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2548   (void)arena;
2549     return;
2550   }
2551   SharedDtor();
2552 }
2553 
SharedDtor()2554 inline void KvmEntryFtraceEvent::SharedDtor() {
2555   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2556 }
2557 
SetCachedSize(int size) const2558 void KvmEntryFtraceEvent::SetCachedSize(int size) const {
2559   _impl_._cached_size_.Set(size);
2560 }
2561 
Clear()2562 void KvmEntryFtraceEvent::Clear() {
2563 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmEntryFtraceEvent)
2564   ::uint32_t cached_has_bits = 0;
2565   // Prevent compiler warnings about cached_has_bits being unused
2566   (void) cached_has_bits;
2567 
2568   _impl_.vcpu_pc_ = ::uint64_t{0u};
2569   _impl_._has_bits_.Clear();
2570   _internal_metadata_.Clear<std::string>();
2571 }
2572 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2573 const char* KvmEntryFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2574 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2575   _Internal::HasBits has_bits{};
2576   while (!ctx->Done(&ptr)) {
2577     ::uint32_t tag;
2578     ptr = ::_pbi::ReadTag(ptr, &tag);
2579     switch (tag >> 3) {
2580       // optional uint64 vcpu_pc = 1;
2581       case 1:
2582         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2583           _Internal::set_has_vcpu_pc(&has_bits);
2584           _impl_.vcpu_pc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2585           CHK_(ptr);
2586         } else {
2587           goto handle_unusual;
2588         }
2589         continue;
2590       default:
2591         goto handle_unusual;
2592     }  // switch
2593   handle_unusual:
2594     if ((tag == 0) || ((tag & 7) == 4)) {
2595       CHK_(ptr);
2596       ctx->SetLastTag(tag);
2597       goto message_done;
2598     }
2599     ptr = UnknownFieldParse(
2600         tag,
2601         _internal_metadata_.mutable_unknown_fields<std::string>(),
2602         ptr, ctx);
2603     CHK_(ptr != nullptr);
2604   }  // while
2605 message_done:
2606   _impl_._has_bits_.Or(has_bits);
2607   return ptr;
2608 failure:
2609   ptr = nullptr;
2610   goto message_done;
2611 #undef CHK_
2612 }
2613 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2614 ::uint8_t* KvmEntryFtraceEvent::_InternalSerialize(
2615     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2616   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmEntryFtraceEvent)
2617   ::uint32_t cached_has_bits = 0;
2618   (void) cached_has_bits;
2619 
2620   cached_has_bits = _impl_._has_bits_[0];
2621   // optional uint64 vcpu_pc = 1;
2622   if (cached_has_bits & 0x00000001u) {
2623     target = stream->EnsureSpace(target);
2624     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_vcpu_pc(), target);
2625   }
2626 
2627   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2628     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2629         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2630   }
2631   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmEntryFtraceEvent)
2632   return target;
2633 }
2634 
ByteSizeLong() const2635 size_t KvmEntryFtraceEvent::ByteSizeLong() const {
2636 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmEntryFtraceEvent)
2637   size_t total_size = 0;
2638 
2639   ::uint32_t cached_has_bits = 0;
2640   // Prevent compiler warnings about cached_has_bits being unused
2641   (void) cached_has_bits;
2642 
2643   // optional uint64 vcpu_pc = 1;
2644   cached_has_bits = _impl_._has_bits_[0];
2645   if (cached_has_bits & 0x00000001u) {
2646     total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_pc());
2647   }
2648 
2649   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2650     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2651   }
2652   int cached_size = ::_pbi::ToCachedSize(total_size);
2653   SetCachedSize(cached_size);
2654   return total_size;
2655 }
2656 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2657 void KvmEntryFtraceEvent::CheckTypeAndMergeFrom(
2658     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2659   MergeFrom(*::_pbi::DownCast<const KvmEntryFtraceEvent*>(
2660       &from));
2661 }
2662 
MergeFrom(const KvmEntryFtraceEvent & from)2663 void KvmEntryFtraceEvent::MergeFrom(const KvmEntryFtraceEvent& from) {
2664   KvmEntryFtraceEvent* const _this = this;
2665   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmEntryFtraceEvent)
2666   GOOGLE_DCHECK_NE(&from, _this);
2667   ::uint32_t cached_has_bits = 0;
2668   (void) cached_has_bits;
2669 
2670   if (from._internal_has_vcpu_pc()) {
2671     _this->_internal_set_vcpu_pc(from._internal_vcpu_pc());
2672   }
2673   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2674 }
2675 
CopyFrom(const KvmEntryFtraceEvent & from)2676 void KvmEntryFtraceEvent::CopyFrom(const KvmEntryFtraceEvent& from) {
2677 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmEntryFtraceEvent)
2678   if (&from == this) return;
2679   Clear();
2680   MergeFrom(from);
2681 }
2682 
IsInitialized() const2683 bool KvmEntryFtraceEvent::IsInitialized() const {
2684   return true;
2685 }
2686 
InternalSwap(KvmEntryFtraceEvent * other)2687 void KvmEntryFtraceEvent::InternalSwap(KvmEntryFtraceEvent* other) {
2688   using std::swap;
2689   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2690   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2691   swap(_impl_.vcpu_pc_, other->_impl_.vcpu_pc_);
2692 }
2693 
GetTypeName() const2694 std::string KvmEntryFtraceEvent::GetTypeName() const {
2695   return "perfetto.protos.KvmEntryFtraceEvent";
2696 }
2697 
2698 
2699 // ===================================================================
2700 
2701 class KvmExitFtraceEvent::_Internal {
2702  public:
2703   using HasBits = decltype(std::declval<KvmExitFtraceEvent>()._impl_._has_bits_);
set_has_esr_ec(HasBits * has_bits)2704   static void set_has_esr_ec(HasBits* has_bits) {
2705     (*has_bits)[0] |= 1u;
2706   }
set_has_ret(HasBits * has_bits)2707   static void set_has_ret(HasBits* has_bits) {
2708     (*has_bits)[0] |= 2u;
2709   }
set_has_vcpu_pc(HasBits * has_bits)2710   static void set_has_vcpu_pc(HasBits* has_bits) {
2711     (*has_bits)[0] |= 4u;
2712   }
2713 };
2714 
KvmExitFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2715 KvmExitFtraceEvent::KvmExitFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2716                          bool is_message_owned)
2717   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2718   SharedCtor(arena, is_message_owned);
2719   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmExitFtraceEvent)
2720 }
KvmExitFtraceEvent(const KvmExitFtraceEvent & from)2721 KvmExitFtraceEvent::KvmExitFtraceEvent(const KvmExitFtraceEvent& from)
2722   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2723   KvmExitFtraceEvent* const _this = this; (void)_this;
2724   new (&_impl_) Impl_{
2725       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2726     , /*decltype(_impl_._cached_size_)*/{}
2727     , decltype(_impl_.esr_ec_){}
2728     , decltype(_impl_.ret_){}
2729     , decltype(_impl_.vcpu_pc_){}};
2730 
2731   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2732   ::memcpy(&_impl_.esr_ec_, &from._impl_.esr_ec_,
2733     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.vcpu_pc_) -
2734     reinterpret_cast<char*>(&_impl_.esr_ec_)) + sizeof(_impl_.vcpu_pc_));
2735   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmExitFtraceEvent)
2736 }
2737 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2738 inline void KvmExitFtraceEvent::SharedCtor(
2739     ::_pb::Arena* arena, bool is_message_owned) {
2740   (void)arena;
2741   (void)is_message_owned;
2742   new (&_impl_) Impl_{
2743       decltype(_impl_._has_bits_){}
2744     , /*decltype(_impl_._cached_size_)*/{}
2745     , decltype(_impl_.esr_ec_){0u}
2746     , decltype(_impl_.ret_){0}
2747     , decltype(_impl_.vcpu_pc_){::uint64_t{0u}}
2748   };
2749 }
2750 
~KvmExitFtraceEvent()2751 KvmExitFtraceEvent::~KvmExitFtraceEvent() {
2752   // @@protoc_insertion_point(destructor:perfetto.protos.KvmExitFtraceEvent)
2753   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2754   (void)arena;
2755     return;
2756   }
2757   SharedDtor();
2758 }
2759 
SharedDtor()2760 inline void KvmExitFtraceEvent::SharedDtor() {
2761   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2762 }
2763 
SetCachedSize(int size) const2764 void KvmExitFtraceEvent::SetCachedSize(int size) const {
2765   _impl_._cached_size_.Set(size);
2766 }
2767 
Clear()2768 void KvmExitFtraceEvent::Clear() {
2769 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmExitFtraceEvent)
2770   ::uint32_t cached_has_bits = 0;
2771   // Prevent compiler warnings about cached_has_bits being unused
2772   (void) cached_has_bits;
2773 
2774   cached_has_bits = _impl_._has_bits_[0];
2775   if (cached_has_bits & 0x00000007u) {
2776     ::memset(&_impl_.esr_ec_, 0, static_cast<size_t>(
2777         reinterpret_cast<char*>(&_impl_.vcpu_pc_) -
2778         reinterpret_cast<char*>(&_impl_.esr_ec_)) + sizeof(_impl_.vcpu_pc_));
2779   }
2780   _impl_._has_bits_.Clear();
2781   _internal_metadata_.Clear<std::string>();
2782 }
2783 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2784 const char* KvmExitFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2785 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2786   _Internal::HasBits has_bits{};
2787   while (!ctx->Done(&ptr)) {
2788     ::uint32_t tag;
2789     ptr = ::_pbi::ReadTag(ptr, &tag);
2790     switch (tag >> 3) {
2791       // optional uint32 esr_ec = 1;
2792       case 1:
2793         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2794           _Internal::set_has_esr_ec(&has_bits);
2795           _impl_.esr_ec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2796           CHK_(ptr);
2797         } else {
2798           goto handle_unusual;
2799         }
2800         continue;
2801       // optional int32 ret = 2;
2802       case 2:
2803         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
2804           _Internal::set_has_ret(&has_bits);
2805           _impl_.ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2806           CHK_(ptr);
2807         } else {
2808           goto handle_unusual;
2809         }
2810         continue;
2811       // optional uint64 vcpu_pc = 3;
2812       case 3:
2813         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
2814           _Internal::set_has_vcpu_pc(&has_bits);
2815           _impl_.vcpu_pc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2816           CHK_(ptr);
2817         } else {
2818           goto handle_unusual;
2819         }
2820         continue;
2821       default:
2822         goto handle_unusual;
2823     }  // switch
2824   handle_unusual:
2825     if ((tag == 0) || ((tag & 7) == 4)) {
2826       CHK_(ptr);
2827       ctx->SetLastTag(tag);
2828       goto message_done;
2829     }
2830     ptr = UnknownFieldParse(
2831         tag,
2832         _internal_metadata_.mutable_unknown_fields<std::string>(),
2833         ptr, ctx);
2834     CHK_(ptr != nullptr);
2835   }  // while
2836 message_done:
2837   _impl_._has_bits_.Or(has_bits);
2838   return ptr;
2839 failure:
2840   ptr = nullptr;
2841   goto message_done;
2842 #undef CHK_
2843 }
2844 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2845 ::uint8_t* KvmExitFtraceEvent::_InternalSerialize(
2846     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2847   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmExitFtraceEvent)
2848   ::uint32_t cached_has_bits = 0;
2849   (void) cached_has_bits;
2850 
2851   cached_has_bits = _impl_._has_bits_[0];
2852   // optional uint32 esr_ec = 1;
2853   if (cached_has_bits & 0x00000001u) {
2854     target = stream->EnsureSpace(target);
2855     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_esr_ec(), target);
2856   }
2857 
2858   // optional int32 ret = 2;
2859   if (cached_has_bits & 0x00000002u) {
2860     target = stream->EnsureSpace(target);
2861     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_ret(), target);
2862   }
2863 
2864   // optional uint64 vcpu_pc = 3;
2865   if (cached_has_bits & 0x00000004u) {
2866     target = stream->EnsureSpace(target);
2867     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_vcpu_pc(), target);
2868   }
2869 
2870   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2871     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2872         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2873   }
2874   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmExitFtraceEvent)
2875   return target;
2876 }
2877 
ByteSizeLong() const2878 size_t KvmExitFtraceEvent::ByteSizeLong() const {
2879 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmExitFtraceEvent)
2880   size_t total_size = 0;
2881 
2882   ::uint32_t cached_has_bits = 0;
2883   // Prevent compiler warnings about cached_has_bits being unused
2884   (void) cached_has_bits;
2885 
2886   cached_has_bits = _impl_._has_bits_[0];
2887   if (cached_has_bits & 0x00000007u) {
2888     // optional uint32 esr_ec = 1;
2889     if (cached_has_bits & 0x00000001u) {
2890       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_esr_ec());
2891     }
2892 
2893     // optional int32 ret = 2;
2894     if (cached_has_bits & 0x00000002u) {
2895       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_ret());
2896     }
2897 
2898     // optional uint64 vcpu_pc = 3;
2899     if (cached_has_bits & 0x00000004u) {
2900       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_pc());
2901     }
2902 
2903   }
2904   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2905     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2906   }
2907   int cached_size = ::_pbi::ToCachedSize(total_size);
2908   SetCachedSize(cached_size);
2909   return total_size;
2910 }
2911 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2912 void KvmExitFtraceEvent::CheckTypeAndMergeFrom(
2913     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2914   MergeFrom(*::_pbi::DownCast<const KvmExitFtraceEvent*>(
2915       &from));
2916 }
2917 
MergeFrom(const KvmExitFtraceEvent & from)2918 void KvmExitFtraceEvent::MergeFrom(const KvmExitFtraceEvent& from) {
2919   KvmExitFtraceEvent* const _this = this;
2920   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmExitFtraceEvent)
2921   GOOGLE_DCHECK_NE(&from, _this);
2922   ::uint32_t cached_has_bits = 0;
2923   (void) cached_has_bits;
2924 
2925   cached_has_bits = from._impl_._has_bits_[0];
2926   if (cached_has_bits & 0x00000007u) {
2927     if (cached_has_bits & 0x00000001u) {
2928       _this->_impl_.esr_ec_ = from._impl_.esr_ec_;
2929     }
2930     if (cached_has_bits & 0x00000002u) {
2931       _this->_impl_.ret_ = from._impl_.ret_;
2932     }
2933     if (cached_has_bits & 0x00000004u) {
2934       _this->_impl_.vcpu_pc_ = from._impl_.vcpu_pc_;
2935     }
2936     _this->_impl_._has_bits_[0] |= cached_has_bits;
2937   }
2938   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2939 }
2940 
CopyFrom(const KvmExitFtraceEvent & from)2941 void KvmExitFtraceEvent::CopyFrom(const KvmExitFtraceEvent& from) {
2942 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmExitFtraceEvent)
2943   if (&from == this) return;
2944   Clear();
2945   MergeFrom(from);
2946 }
2947 
IsInitialized() const2948 bool KvmExitFtraceEvent::IsInitialized() const {
2949   return true;
2950 }
2951 
InternalSwap(KvmExitFtraceEvent * other)2952 void KvmExitFtraceEvent::InternalSwap(KvmExitFtraceEvent* other) {
2953   using std::swap;
2954   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2955   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2956   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2957       PROTOBUF_FIELD_OFFSET(KvmExitFtraceEvent, _impl_.vcpu_pc_)
2958       + sizeof(KvmExitFtraceEvent::_impl_.vcpu_pc_)  // NOLINT
2959       - PROTOBUF_FIELD_OFFSET(KvmExitFtraceEvent, _impl_.esr_ec_)>(
2960           reinterpret_cast<char*>(&_impl_.esr_ec_),
2961           reinterpret_cast<char*>(&other->_impl_.esr_ec_));
2962 }
2963 
GetTypeName() const2964 std::string KvmExitFtraceEvent::GetTypeName() const {
2965   return "perfetto.protos.KvmExitFtraceEvent";
2966 }
2967 
2968 
2969 // ===================================================================
2970 
2971 class KvmFpuFtraceEvent::_Internal {
2972  public:
2973   using HasBits = decltype(std::declval<KvmFpuFtraceEvent>()._impl_._has_bits_);
set_has_load(HasBits * has_bits)2974   static void set_has_load(HasBits* has_bits) {
2975     (*has_bits)[0] |= 1u;
2976   }
2977 };
2978 
KvmFpuFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2979 KvmFpuFtraceEvent::KvmFpuFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2980                          bool is_message_owned)
2981   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2982   SharedCtor(arena, is_message_owned);
2983   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmFpuFtraceEvent)
2984 }
KvmFpuFtraceEvent(const KvmFpuFtraceEvent & from)2985 KvmFpuFtraceEvent::KvmFpuFtraceEvent(const KvmFpuFtraceEvent& from)
2986   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2987   KvmFpuFtraceEvent* const _this = this; (void)_this;
2988   new (&_impl_) Impl_{
2989       decltype(_impl_._has_bits_){from._impl_._has_bits_}
2990     , /*decltype(_impl_._cached_size_)*/{}
2991     , decltype(_impl_.load_){}};
2992 
2993   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2994   _this->_impl_.load_ = from._impl_.load_;
2995   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmFpuFtraceEvent)
2996 }
2997 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2998 inline void KvmFpuFtraceEvent::SharedCtor(
2999     ::_pb::Arena* arena, bool is_message_owned) {
3000   (void)arena;
3001   (void)is_message_owned;
3002   new (&_impl_) Impl_{
3003       decltype(_impl_._has_bits_){}
3004     , /*decltype(_impl_._cached_size_)*/{}
3005     , decltype(_impl_.load_){0u}
3006   };
3007 }
3008 
~KvmFpuFtraceEvent()3009 KvmFpuFtraceEvent::~KvmFpuFtraceEvent() {
3010   // @@protoc_insertion_point(destructor:perfetto.protos.KvmFpuFtraceEvent)
3011   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3012   (void)arena;
3013     return;
3014   }
3015   SharedDtor();
3016 }
3017 
SharedDtor()3018 inline void KvmFpuFtraceEvent::SharedDtor() {
3019   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3020 }
3021 
SetCachedSize(int size) const3022 void KvmFpuFtraceEvent::SetCachedSize(int size) const {
3023   _impl_._cached_size_.Set(size);
3024 }
3025 
Clear()3026 void KvmFpuFtraceEvent::Clear() {
3027 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmFpuFtraceEvent)
3028   ::uint32_t cached_has_bits = 0;
3029   // Prevent compiler warnings about cached_has_bits being unused
3030   (void) cached_has_bits;
3031 
3032   _impl_.load_ = 0u;
3033   _impl_._has_bits_.Clear();
3034   _internal_metadata_.Clear<std::string>();
3035 }
3036 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3037 const char* KvmFpuFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3038 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3039   _Internal::HasBits has_bits{};
3040   while (!ctx->Done(&ptr)) {
3041     ::uint32_t tag;
3042     ptr = ::_pbi::ReadTag(ptr, &tag);
3043     switch (tag >> 3) {
3044       // optional uint32 load = 1;
3045       case 1:
3046         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3047           _Internal::set_has_load(&has_bits);
3048           _impl_.load_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3049           CHK_(ptr);
3050         } else {
3051           goto handle_unusual;
3052         }
3053         continue;
3054       default:
3055         goto handle_unusual;
3056     }  // switch
3057   handle_unusual:
3058     if ((tag == 0) || ((tag & 7) == 4)) {
3059       CHK_(ptr);
3060       ctx->SetLastTag(tag);
3061       goto message_done;
3062     }
3063     ptr = UnknownFieldParse(
3064         tag,
3065         _internal_metadata_.mutable_unknown_fields<std::string>(),
3066         ptr, ctx);
3067     CHK_(ptr != nullptr);
3068   }  // while
3069 message_done:
3070   _impl_._has_bits_.Or(has_bits);
3071   return ptr;
3072 failure:
3073   ptr = nullptr;
3074   goto message_done;
3075 #undef CHK_
3076 }
3077 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3078 ::uint8_t* KvmFpuFtraceEvent::_InternalSerialize(
3079     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3080   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmFpuFtraceEvent)
3081   ::uint32_t cached_has_bits = 0;
3082   (void) cached_has_bits;
3083 
3084   cached_has_bits = _impl_._has_bits_[0];
3085   // optional uint32 load = 1;
3086   if (cached_has_bits & 0x00000001u) {
3087     target = stream->EnsureSpace(target);
3088     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_load(), target);
3089   }
3090 
3091   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3092     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3093         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3094   }
3095   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmFpuFtraceEvent)
3096   return target;
3097 }
3098 
ByteSizeLong() const3099 size_t KvmFpuFtraceEvent::ByteSizeLong() const {
3100 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmFpuFtraceEvent)
3101   size_t total_size = 0;
3102 
3103   ::uint32_t cached_has_bits = 0;
3104   // Prevent compiler warnings about cached_has_bits being unused
3105   (void) cached_has_bits;
3106 
3107   // optional uint32 load = 1;
3108   cached_has_bits = _impl_._has_bits_[0];
3109   if (cached_has_bits & 0x00000001u) {
3110     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_load());
3111   }
3112 
3113   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3114     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3115   }
3116   int cached_size = ::_pbi::ToCachedSize(total_size);
3117   SetCachedSize(cached_size);
3118   return total_size;
3119 }
3120 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3121 void KvmFpuFtraceEvent::CheckTypeAndMergeFrom(
3122     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3123   MergeFrom(*::_pbi::DownCast<const KvmFpuFtraceEvent*>(
3124       &from));
3125 }
3126 
MergeFrom(const KvmFpuFtraceEvent & from)3127 void KvmFpuFtraceEvent::MergeFrom(const KvmFpuFtraceEvent& from) {
3128   KvmFpuFtraceEvent* const _this = this;
3129   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmFpuFtraceEvent)
3130   GOOGLE_DCHECK_NE(&from, _this);
3131   ::uint32_t cached_has_bits = 0;
3132   (void) cached_has_bits;
3133 
3134   if (from._internal_has_load()) {
3135     _this->_internal_set_load(from._internal_load());
3136   }
3137   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3138 }
3139 
CopyFrom(const KvmFpuFtraceEvent & from)3140 void KvmFpuFtraceEvent::CopyFrom(const KvmFpuFtraceEvent& from) {
3141 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmFpuFtraceEvent)
3142   if (&from == this) return;
3143   Clear();
3144   MergeFrom(from);
3145 }
3146 
IsInitialized() const3147 bool KvmFpuFtraceEvent::IsInitialized() const {
3148   return true;
3149 }
3150 
InternalSwap(KvmFpuFtraceEvent * other)3151 void KvmFpuFtraceEvent::InternalSwap(KvmFpuFtraceEvent* other) {
3152   using std::swap;
3153   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3154   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3155   swap(_impl_.load_, other->_impl_.load_);
3156 }
3157 
GetTypeName() const3158 std::string KvmFpuFtraceEvent::GetTypeName() const {
3159   return "perfetto.protos.KvmFpuFtraceEvent";
3160 }
3161 
3162 
3163 // ===================================================================
3164 
3165 class KvmGetTimerMapFtraceEvent::_Internal {
3166  public:
3167   using HasBits = decltype(std::declval<KvmGetTimerMapFtraceEvent>()._impl_._has_bits_);
set_has_direct_ptimer(HasBits * has_bits)3168   static void set_has_direct_ptimer(HasBits* has_bits) {
3169     (*has_bits)[0] |= 1u;
3170   }
set_has_direct_vtimer(HasBits * has_bits)3171   static void set_has_direct_vtimer(HasBits* has_bits) {
3172     (*has_bits)[0] |= 2u;
3173   }
set_has_emul_ptimer(HasBits * has_bits)3174   static void set_has_emul_ptimer(HasBits* has_bits) {
3175     (*has_bits)[0] |= 8u;
3176   }
set_has_vcpu_id(HasBits * has_bits)3177   static void set_has_vcpu_id(HasBits* has_bits) {
3178     (*has_bits)[0] |= 4u;
3179   }
3180 };
3181 
KvmGetTimerMapFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3182 KvmGetTimerMapFtraceEvent::KvmGetTimerMapFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3183                          bool is_message_owned)
3184   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3185   SharedCtor(arena, is_message_owned);
3186   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmGetTimerMapFtraceEvent)
3187 }
KvmGetTimerMapFtraceEvent(const KvmGetTimerMapFtraceEvent & from)3188 KvmGetTimerMapFtraceEvent::KvmGetTimerMapFtraceEvent(const KvmGetTimerMapFtraceEvent& from)
3189   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3190   KvmGetTimerMapFtraceEvent* const _this = this; (void)_this;
3191   new (&_impl_) Impl_{
3192       decltype(_impl_._has_bits_){from._impl_._has_bits_}
3193     , /*decltype(_impl_._cached_size_)*/{}
3194     , decltype(_impl_.direct_ptimer_){}
3195     , decltype(_impl_.direct_vtimer_){}
3196     , decltype(_impl_.vcpu_id_){}
3197     , decltype(_impl_.emul_ptimer_){}};
3198 
3199   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3200   ::memcpy(&_impl_.direct_ptimer_, &from._impl_.direct_ptimer_,
3201     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.emul_ptimer_) -
3202     reinterpret_cast<char*>(&_impl_.direct_ptimer_)) + sizeof(_impl_.emul_ptimer_));
3203   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmGetTimerMapFtraceEvent)
3204 }
3205 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3206 inline void KvmGetTimerMapFtraceEvent::SharedCtor(
3207     ::_pb::Arena* arena, bool is_message_owned) {
3208   (void)arena;
3209   (void)is_message_owned;
3210   new (&_impl_) Impl_{
3211       decltype(_impl_._has_bits_){}
3212     , /*decltype(_impl_._cached_size_)*/{}
3213     , decltype(_impl_.direct_ptimer_){0}
3214     , decltype(_impl_.direct_vtimer_){0}
3215     , decltype(_impl_.vcpu_id_){::uint64_t{0u}}
3216     , decltype(_impl_.emul_ptimer_){0}
3217   };
3218 }
3219 
~KvmGetTimerMapFtraceEvent()3220 KvmGetTimerMapFtraceEvent::~KvmGetTimerMapFtraceEvent() {
3221   // @@protoc_insertion_point(destructor:perfetto.protos.KvmGetTimerMapFtraceEvent)
3222   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3223   (void)arena;
3224     return;
3225   }
3226   SharedDtor();
3227 }
3228 
SharedDtor()3229 inline void KvmGetTimerMapFtraceEvent::SharedDtor() {
3230   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3231 }
3232 
SetCachedSize(int size) const3233 void KvmGetTimerMapFtraceEvent::SetCachedSize(int size) const {
3234   _impl_._cached_size_.Set(size);
3235 }
3236 
Clear()3237 void KvmGetTimerMapFtraceEvent::Clear() {
3238 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmGetTimerMapFtraceEvent)
3239   ::uint32_t cached_has_bits = 0;
3240   // Prevent compiler warnings about cached_has_bits being unused
3241   (void) cached_has_bits;
3242 
3243   cached_has_bits = _impl_._has_bits_[0];
3244   if (cached_has_bits & 0x0000000fu) {
3245     ::memset(&_impl_.direct_ptimer_, 0, static_cast<size_t>(
3246         reinterpret_cast<char*>(&_impl_.emul_ptimer_) -
3247         reinterpret_cast<char*>(&_impl_.direct_ptimer_)) + sizeof(_impl_.emul_ptimer_));
3248   }
3249   _impl_._has_bits_.Clear();
3250   _internal_metadata_.Clear<std::string>();
3251 }
3252 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3253 const char* KvmGetTimerMapFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3254 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3255   _Internal::HasBits has_bits{};
3256   while (!ctx->Done(&ptr)) {
3257     ::uint32_t tag;
3258     ptr = ::_pbi::ReadTag(ptr, &tag);
3259     switch (tag >> 3) {
3260       // optional int32 direct_ptimer = 1;
3261       case 1:
3262         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3263           _Internal::set_has_direct_ptimer(&has_bits);
3264           _impl_.direct_ptimer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3265           CHK_(ptr);
3266         } else {
3267           goto handle_unusual;
3268         }
3269         continue;
3270       // optional int32 direct_vtimer = 2;
3271       case 2:
3272         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
3273           _Internal::set_has_direct_vtimer(&has_bits);
3274           _impl_.direct_vtimer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3275           CHK_(ptr);
3276         } else {
3277           goto handle_unusual;
3278         }
3279         continue;
3280       // optional int32 emul_ptimer = 3;
3281       case 3:
3282         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
3283           _Internal::set_has_emul_ptimer(&has_bits);
3284           _impl_.emul_ptimer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3285           CHK_(ptr);
3286         } else {
3287           goto handle_unusual;
3288         }
3289         continue;
3290       // optional uint64 vcpu_id = 4;
3291       case 4:
3292         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
3293           _Internal::set_has_vcpu_id(&has_bits);
3294           _impl_.vcpu_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3295           CHK_(ptr);
3296         } else {
3297           goto handle_unusual;
3298         }
3299         continue;
3300       default:
3301         goto handle_unusual;
3302     }  // switch
3303   handle_unusual:
3304     if ((tag == 0) || ((tag & 7) == 4)) {
3305       CHK_(ptr);
3306       ctx->SetLastTag(tag);
3307       goto message_done;
3308     }
3309     ptr = UnknownFieldParse(
3310         tag,
3311         _internal_metadata_.mutable_unknown_fields<std::string>(),
3312         ptr, ctx);
3313     CHK_(ptr != nullptr);
3314   }  // while
3315 message_done:
3316   _impl_._has_bits_.Or(has_bits);
3317   return ptr;
3318 failure:
3319   ptr = nullptr;
3320   goto message_done;
3321 #undef CHK_
3322 }
3323 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3324 ::uint8_t* KvmGetTimerMapFtraceEvent::_InternalSerialize(
3325     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3326   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmGetTimerMapFtraceEvent)
3327   ::uint32_t cached_has_bits = 0;
3328   (void) cached_has_bits;
3329 
3330   cached_has_bits = _impl_._has_bits_[0];
3331   // optional int32 direct_ptimer = 1;
3332   if (cached_has_bits & 0x00000001u) {
3333     target = stream->EnsureSpace(target);
3334     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_direct_ptimer(), target);
3335   }
3336 
3337   // optional int32 direct_vtimer = 2;
3338   if (cached_has_bits & 0x00000002u) {
3339     target = stream->EnsureSpace(target);
3340     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_direct_vtimer(), target);
3341   }
3342 
3343   // optional int32 emul_ptimer = 3;
3344   if (cached_has_bits & 0x00000008u) {
3345     target = stream->EnsureSpace(target);
3346     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_emul_ptimer(), target);
3347   }
3348 
3349   // optional uint64 vcpu_id = 4;
3350   if (cached_has_bits & 0x00000004u) {
3351     target = stream->EnsureSpace(target);
3352     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_vcpu_id(), target);
3353   }
3354 
3355   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3356     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3357         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3358   }
3359   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmGetTimerMapFtraceEvent)
3360   return target;
3361 }
3362 
ByteSizeLong() const3363 size_t KvmGetTimerMapFtraceEvent::ByteSizeLong() const {
3364 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmGetTimerMapFtraceEvent)
3365   size_t total_size = 0;
3366 
3367   ::uint32_t cached_has_bits = 0;
3368   // Prevent compiler warnings about cached_has_bits being unused
3369   (void) cached_has_bits;
3370 
3371   cached_has_bits = _impl_._has_bits_[0];
3372   if (cached_has_bits & 0x0000000fu) {
3373     // optional int32 direct_ptimer = 1;
3374     if (cached_has_bits & 0x00000001u) {
3375       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_direct_ptimer());
3376     }
3377 
3378     // optional int32 direct_vtimer = 2;
3379     if (cached_has_bits & 0x00000002u) {
3380       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_direct_vtimer());
3381     }
3382 
3383     // optional uint64 vcpu_id = 4;
3384     if (cached_has_bits & 0x00000004u) {
3385       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_id());
3386     }
3387 
3388     // optional int32 emul_ptimer = 3;
3389     if (cached_has_bits & 0x00000008u) {
3390       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_emul_ptimer());
3391     }
3392 
3393   }
3394   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3395     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3396   }
3397   int cached_size = ::_pbi::ToCachedSize(total_size);
3398   SetCachedSize(cached_size);
3399   return total_size;
3400 }
3401 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3402 void KvmGetTimerMapFtraceEvent::CheckTypeAndMergeFrom(
3403     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3404   MergeFrom(*::_pbi::DownCast<const KvmGetTimerMapFtraceEvent*>(
3405       &from));
3406 }
3407 
MergeFrom(const KvmGetTimerMapFtraceEvent & from)3408 void KvmGetTimerMapFtraceEvent::MergeFrom(const KvmGetTimerMapFtraceEvent& from) {
3409   KvmGetTimerMapFtraceEvent* const _this = this;
3410   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmGetTimerMapFtraceEvent)
3411   GOOGLE_DCHECK_NE(&from, _this);
3412   ::uint32_t cached_has_bits = 0;
3413   (void) cached_has_bits;
3414 
3415   cached_has_bits = from._impl_._has_bits_[0];
3416   if (cached_has_bits & 0x0000000fu) {
3417     if (cached_has_bits & 0x00000001u) {
3418       _this->_impl_.direct_ptimer_ = from._impl_.direct_ptimer_;
3419     }
3420     if (cached_has_bits & 0x00000002u) {
3421       _this->_impl_.direct_vtimer_ = from._impl_.direct_vtimer_;
3422     }
3423     if (cached_has_bits & 0x00000004u) {
3424       _this->_impl_.vcpu_id_ = from._impl_.vcpu_id_;
3425     }
3426     if (cached_has_bits & 0x00000008u) {
3427       _this->_impl_.emul_ptimer_ = from._impl_.emul_ptimer_;
3428     }
3429     _this->_impl_._has_bits_[0] |= cached_has_bits;
3430   }
3431   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3432 }
3433 
CopyFrom(const KvmGetTimerMapFtraceEvent & from)3434 void KvmGetTimerMapFtraceEvent::CopyFrom(const KvmGetTimerMapFtraceEvent& from) {
3435 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmGetTimerMapFtraceEvent)
3436   if (&from == this) return;
3437   Clear();
3438   MergeFrom(from);
3439 }
3440 
IsInitialized() const3441 bool KvmGetTimerMapFtraceEvent::IsInitialized() const {
3442   return true;
3443 }
3444 
InternalSwap(KvmGetTimerMapFtraceEvent * other)3445 void KvmGetTimerMapFtraceEvent::InternalSwap(KvmGetTimerMapFtraceEvent* other) {
3446   using std::swap;
3447   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3448   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3449   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3450       PROTOBUF_FIELD_OFFSET(KvmGetTimerMapFtraceEvent, _impl_.emul_ptimer_)
3451       + sizeof(KvmGetTimerMapFtraceEvent::_impl_.emul_ptimer_)  // NOLINT
3452       - PROTOBUF_FIELD_OFFSET(KvmGetTimerMapFtraceEvent, _impl_.direct_ptimer_)>(
3453           reinterpret_cast<char*>(&_impl_.direct_ptimer_),
3454           reinterpret_cast<char*>(&other->_impl_.direct_ptimer_));
3455 }
3456 
GetTypeName() const3457 std::string KvmGetTimerMapFtraceEvent::GetTypeName() const {
3458   return "perfetto.protos.KvmGetTimerMapFtraceEvent";
3459 }
3460 
3461 
3462 // ===================================================================
3463 
3464 class KvmGuestFaultFtraceEvent::_Internal {
3465  public:
3466   using HasBits = decltype(std::declval<KvmGuestFaultFtraceEvent>()._impl_._has_bits_);
set_has_hsr(HasBits * has_bits)3467   static void set_has_hsr(HasBits* has_bits) {
3468     (*has_bits)[0] |= 1u;
3469   }
set_has_hxfar(HasBits * has_bits)3470   static void set_has_hxfar(HasBits* has_bits) {
3471     (*has_bits)[0] |= 2u;
3472   }
set_has_ipa(HasBits * has_bits)3473   static void set_has_ipa(HasBits* has_bits) {
3474     (*has_bits)[0] |= 4u;
3475   }
set_has_vcpu_pc(HasBits * has_bits)3476   static void set_has_vcpu_pc(HasBits* has_bits) {
3477     (*has_bits)[0] |= 8u;
3478   }
3479 };
3480 
KvmGuestFaultFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3481 KvmGuestFaultFtraceEvent::KvmGuestFaultFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3482                          bool is_message_owned)
3483   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3484   SharedCtor(arena, is_message_owned);
3485   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmGuestFaultFtraceEvent)
3486 }
KvmGuestFaultFtraceEvent(const KvmGuestFaultFtraceEvent & from)3487 KvmGuestFaultFtraceEvent::KvmGuestFaultFtraceEvent(const KvmGuestFaultFtraceEvent& from)
3488   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3489   KvmGuestFaultFtraceEvent* const _this = this; (void)_this;
3490   new (&_impl_) Impl_{
3491       decltype(_impl_._has_bits_){from._impl_._has_bits_}
3492     , /*decltype(_impl_._cached_size_)*/{}
3493     , decltype(_impl_.hsr_){}
3494     , decltype(_impl_.hxfar_){}
3495     , decltype(_impl_.ipa_){}
3496     , decltype(_impl_.vcpu_pc_){}};
3497 
3498   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3499   ::memcpy(&_impl_.hsr_, &from._impl_.hsr_,
3500     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.vcpu_pc_) -
3501     reinterpret_cast<char*>(&_impl_.hsr_)) + sizeof(_impl_.vcpu_pc_));
3502   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmGuestFaultFtraceEvent)
3503 }
3504 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3505 inline void KvmGuestFaultFtraceEvent::SharedCtor(
3506     ::_pb::Arena* arena, bool is_message_owned) {
3507   (void)arena;
3508   (void)is_message_owned;
3509   new (&_impl_) Impl_{
3510       decltype(_impl_._has_bits_){}
3511     , /*decltype(_impl_._cached_size_)*/{}
3512     , decltype(_impl_.hsr_){::uint64_t{0u}}
3513     , decltype(_impl_.hxfar_){::uint64_t{0u}}
3514     , decltype(_impl_.ipa_){::uint64_t{0u}}
3515     , decltype(_impl_.vcpu_pc_){::uint64_t{0u}}
3516   };
3517 }
3518 
~KvmGuestFaultFtraceEvent()3519 KvmGuestFaultFtraceEvent::~KvmGuestFaultFtraceEvent() {
3520   // @@protoc_insertion_point(destructor:perfetto.protos.KvmGuestFaultFtraceEvent)
3521   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3522   (void)arena;
3523     return;
3524   }
3525   SharedDtor();
3526 }
3527 
SharedDtor()3528 inline void KvmGuestFaultFtraceEvent::SharedDtor() {
3529   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3530 }
3531 
SetCachedSize(int size) const3532 void KvmGuestFaultFtraceEvent::SetCachedSize(int size) const {
3533   _impl_._cached_size_.Set(size);
3534 }
3535 
Clear()3536 void KvmGuestFaultFtraceEvent::Clear() {
3537 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmGuestFaultFtraceEvent)
3538   ::uint32_t cached_has_bits = 0;
3539   // Prevent compiler warnings about cached_has_bits being unused
3540   (void) cached_has_bits;
3541 
3542   cached_has_bits = _impl_._has_bits_[0];
3543   if (cached_has_bits & 0x0000000fu) {
3544     ::memset(&_impl_.hsr_, 0, static_cast<size_t>(
3545         reinterpret_cast<char*>(&_impl_.vcpu_pc_) -
3546         reinterpret_cast<char*>(&_impl_.hsr_)) + sizeof(_impl_.vcpu_pc_));
3547   }
3548   _impl_._has_bits_.Clear();
3549   _internal_metadata_.Clear<std::string>();
3550 }
3551 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3552 const char* KvmGuestFaultFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3553 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3554   _Internal::HasBits has_bits{};
3555   while (!ctx->Done(&ptr)) {
3556     ::uint32_t tag;
3557     ptr = ::_pbi::ReadTag(ptr, &tag);
3558     switch (tag >> 3) {
3559       // optional uint64 hsr = 1;
3560       case 1:
3561         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3562           _Internal::set_has_hsr(&has_bits);
3563           _impl_.hsr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3564           CHK_(ptr);
3565         } else {
3566           goto handle_unusual;
3567         }
3568         continue;
3569       // optional uint64 hxfar = 2;
3570       case 2:
3571         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
3572           _Internal::set_has_hxfar(&has_bits);
3573           _impl_.hxfar_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3574           CHK_(ptr);
3575         } else {
3576           goto handle_unusual;
3577         }
3578         continue;
3579       // optional uint64 ipa = 3;
3580       case 3:
3581         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
3582           _Internal::set_has_ipa(&has_bits);
3583           _impl_.ipa_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3584           CHK_(ptr);
3585         } else {
3586           goto handle_unusual;
3587         }
3588         continue;
3589       // optional uint64 vcpu_pc = 4;
3590       case 4:
3591         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
3592           _Internal::set_has_vcpu_pc(&has_bits);
3593           _impl_.vcpu_pc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3594           CHK_(ptr);
3595         } else {
3596           goto handle_unusual;
3597         }
3598         continue;
3599       default:
3600         goto handle_unusual;
3601     }  // switch
3602   handle_unusual:
3603     if ((tag == 0) || ((tag & 7) == 4)) {
3604       CHK_(ptr);
3605       ctx->SetLastTag(tag);
3606       goto message_done;
3607     }
3608     ptr = UnknownFieldParse(
3609         tag,
3610         _internal_metadata_.mutable_unknown_fields<std::string>(),
3611         ptr, ctx);
3612     CHK_(ptr != nullptr);
3613   }  // while
3614 message_done:
3615   _impl_._has_bits_.Or(has_bits);
3616   return ptr;
3617 failure:
3618   ptr = nullptr;
3619   goto message_done;
3620 #undef CHK_
3621 }
3622 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3623 ::uint8_t* KvmGuestFaultFtraceEvent::_InternalSerialize(
3624     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3625   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmGuestFaultFtraceEvent)
3626   ::uint32_t cached_has_bits = 0;
3627   (void) cached_has_bits;
3628 
3629   cached_has_bits = _impl_._has_bits_[0];
3630   // optional uint64 hsr = 1;
3631   if (cached_has_bits & 0x00000001u) {
3632     target = stream->EnsureSpace(target);
3633     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_hsr(), target);
3634   }
3635 
3636   // optional uint64 hxfar = 2;
3637   if (cached_has_bits & 0x00000002u) {
3638     target = stream->EnsureSpace(target);
3639     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_hxfar(), target);
3640   }
3641 
3642   // optional uint64 ipa = 3;
3643   if (cached_has_bits & 0x00000004u) {
3644     target = stream->EnsureSpace(target);
3645     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_ipa(), target);
3646   }
3647 
3648   // optional uint64 vcpu_pc = 4;
3649   if (cached_has_bits & 0x00000008u) {
3650     target = stream->EnsureSpace(target);
3651     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_vcpu_pc(), target);
3652   }
3653 
3654   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3655     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3656         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3657   }
3658   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmGuestFaultFtraceEvent)
3659   return target;
3660 }
3661 
ByteSizeLong() const3662 size_t KvmGuestFaultFtraceEvent::ByteSizeLong() const {
3663 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmGuestFaultFtraceEvent)
3664   size_t total_size = 0;
3665 
3666   ::uint32_t cached_has_bits = 0;
3667   // Prevent compiler warnings about cached_has_bits being unused
3668   (void) cached_has_bits;
3669 
3670   cached_has_bits = _impl_._has_bits_[0];
3671   if (cached_has_bits & 0x0000000fu) {
3672     // optional uint64 hsr = 1;
3673     if (cached_has_bits & 0x00000001u) {
3674       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_hsr());
3675     }
3676 
3677     // optional uint64 hxfar = 2;
3678     if (cached_has_bits & 0x00000002u) {
3679       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_hxfar());
3680     }
3681 
3682     // optional uint64 ipa = 3;
3683     if (cached_has_bits & 0x00000004u) {
3684       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ipa());
3685     }
3686 
3687     // optional uint64 vcpu_pc = 4;
3688     if (cached_has_bits & 0x00000008u) {
3689       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_pc());
3690     }
3691 
3692   }
3693   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3694     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3695   }
3696   int cached_size = ::_pbi::ToCachedSize(total_size);
3697   SetCachedSize(cached_size);
3698   return total_size;
3699 }
3700 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3701 void KvmGuestFaultFtraceEvent::CheckTypeAndMergeFrom(
3702     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3703   MergeFrom(*::_pbi::DownCast<const KvmGuestFaultFtraceEvent*>(
3704       &from));
3705 }
3706 
MergeFrom(const KvmGuestFaultFtraceEvent & from)3707 void KvmGuestFaultFtraceEvent::MergeFrom(const KvmGuestFaultFtraceEvent& from) {
3708   KvmGuestFaultFtraceEvent* const _this = this;
3709   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmGuestFaultFtraceEvent)
3710   GOOGLE_DCHECK_NE(&from, _this);
3711   ::uint32_t cached_has_bits = 0;
3712   (void) cached_has_bits;
3713 
3714   cached_has_bits = from._impl_._has_bits_[0];
3715   if (cached_has_bits & 0x0000000fu) {
3716     if (cached_has_bits & 0x00000001u) {
3717       _this->_impl_.hsr_ = from._impl_.hsr_;
3718     }
3719     if (cached_has_bits & 0x00000002u) {
3720       _this->_impl_.hxfar_ = from._impl_.hxfar_;
3721     }
3722     if (cached_has_bits & 0x00000004u) {
3723       _this->_impl_.ipa_ = from._impl_.ipa_;
3724     }
3725     if (cached_has_bits & 0x00000008u) {
3726       _this->_impl_.vcpu_pc_ = from._impl_.vcpu_pc_;
3727     }
3728     _this->_impl_._has_bits_[0] |= cached_has_bits;
3729   }
3730   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3731 }
3732 
CopyFrom(const KvmGuestFaultFtraceEvent & from)3733 void KvmGuestFaultFtraceEvent::CopyFrom(const KvmGuestFaultFtraceEvent& from) {
3734 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmGuestFaultFtraceEvent)
3735   if (&from == this) return;
3736   Clear();
3737   MergeFrom(from);
3738 }
3739 
IsInitialized() const3740 bool KvmGuestFaultFtraceEvent::IsInitialized() const {
3741   return true;
3742 }
3743 
InternalSwap(KvmGuestFaultFtraceEvent * other)3744 void KvmGuestFaultFtraceEvent::InternalSwap(KvmGuestFaultFtraceEvent* other) {
3745   using std::swap;
3746   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3747   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3748   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3749       PROTOBUF_FIELD_OFFSET(KvmGuestFaultFtraceEvent, _impl_.vcpu_pc_)
3750       + sizeof(KvmGuestFaultFtraceEvent::_impl_.vcpu_pc_)  // NOLINT
3751       - PROTOBUF_FIELD_OFFSET(KvmGuestFaultFtraceEvent, _impl_.hsr_)>(
3752           reinterpret_cast<char*>(&_impl_.hsr_),
3753           reinterpret_cast<char*>(&other->_impl_.hsr_));
3754 }
3755 
GetTypeName() const3756 std::string KvmGuestFaultFtraceEvent::GetTypeName() const {
3757   return "perfetto.protos.KvmGuestFaultFtraceEvent";
3758 }
3759 
3760 
3761 // ===================================================================
3762 
3763 class KvmHandleSysRegFtraceEvent::_Internal {
3764  public:
3765   using HasBits = decltype(std::declval<KvmHandleSysRegFtraceEvent>()._impl_._has_bits_);
set_has_hsr(HasBits * has_bits)3766   static void set_has_hsr(HasBits* has_bits) {
3767     (*has_bits)[0] |= 1u;
3768   }
3769 };
3770 
KvmHandleSysRegFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3771 KvmHandleSysRegFtraceEvent::KvmHandleSysRegFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3772                          bool is_message_owned)
3773   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3774   SharedCtor(arena, is_message_owned);
3775   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmHandleSysRegFtraceEvent)
3776 }
KvmHandleSysRegFtraceEvent(const KvmHandleSysRegFtraceEvent & from)3777 KvmHandleSysRegFtraceEvent::KvmHandleSysRegFtraceEvent(const KvmHandleSysRegFtraceEvent& from)
3778   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3779   KvmHandleSysRegFtraceEvent* const _this = this; (void)_this;
3780   new (&_impl_) Impl_{
3781       decltype(_impl_._has_bits_){from._impl_._has_bits_}
3782     , /*decltype(_impl_._cached_size_)*/{}
3783     , decltype(_impl_.hsr_){}};
3784 
3785   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3786   _this->_impl_.hsr_ = from._impl_.hsr_;
3787   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmHandleSysRegFtraceEvent)
3788 }
3789 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3790 inline void KvmHandleSysRegFtraceEvent::SharedCtor(
3791     ::_pb::Arena* arena, bool is_message_owned) {
3792   (void)arena;
3793   (void)is_message_owned;
3794   new (&_impl_) Impl_{
3795       decltype(_impl_._has_bits_){}
3796     , /*decltype(_impl_._cached_size_)*/{}
3797     , decltype(_impl_.hsr_){::uint64_t{0u}}
3798   };
3799 }
3800 
~KvmHandleSysRegFtraceEvent()3801 KvmHandleSysRegFtraceEvent::~KvmHandleSysRegFtraceEvent() {
3802   // @@protoc_insertion_point(destructor:perfetto.protos.KvmHandleSysRegFtraceEvent)
3803   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3804   (void)arena;
3805     return;
3806   }
3807   SharedDtor();
3808 }
3809 
SharedDtor()3810 inline void KvmHandleSysRegFtraceEvent::SharedDtor() {
3811   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3812 }
3813 
SetCachedSize(int size) const3814 void KvmHandleSysRegFtraceEvent::SetCachedSize(int size) const {
3815   _impl_._cached_size_.Set(size);
3816 }
3817 
Clear()3818 void KvmHandleSysRegFtraceEvent::Clear() {
3819 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmHandleSysRegFtraceEvent)
3820   ::uint32_t cached_has_bits = 0;
3821   // Prevent compiler warnings about cached_has_bits being unused
3822   (void) cached_has_bits;
3823 
3824   _impl_.hsr_ = ::uint64_t{0u};
3825   _impl_._has_bits_.Clear();
3826   _internal_metadata_.Clear<std::string>();
3827 }
3828 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3829 const char* KvmHandleSysRegFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3830 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3831   _Internal::HasBits has_bits{};
3832   while (!ctx->Done(&ptr)) {
3833     ::uint32_t tag;
3834     ptr = ::_pbi::ReadTag(ptr, &tag);
3835     switch (tag >> 3) {
3836       // optional uint64 hsr = 1;
3837       case 1:
3838         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3839           _Internal::set_has_hsr(&has_bits);
3840           _impl_.hsr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3841           CHK_(ptr);
3842         } else {
3843           goto handle_unusual;
3844         }
3845         continue;
3846       default:
3847         goto handle_unusual;
3848     }  // switch
3849   handle_unusual:
3850     if ((tag == 0) || ((tag & 7) == 4)) {
3851       CHK_(ptr);
3852       ctx->SetLastTag(tag);
3853       goto message_done;
3854     }
3855     ptr = UnknownFieldParse(
3856         tag,
3857         _internal_metadata_.mutable_unknown_fields<std::string>(),
3858         ptr, ctx);
3859     CHK_(ptr != nullptr);
3860   }  // while
3861 message_done:
3862   _impl_._has_bits_.Or(has_bits);
3863   return ptr;
3864 failure:
3865   ptr = nullptr;
3866   goto message_done;
3867 #undef CHK_
3868 }
3869 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3870 ::uint8_t* KvmHandleSysRegFtraceEvent::_InternalSerialize(
3871     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3872   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmHandleSysRegFtraceEvent)
3873   ::uint32_t cached_has_bits = 0;
3874   (void) cached_has_bits;
3875 
3876   cached_has_bits = _impl_._has_bits_[0];
3877   // optional uint64 hsr = 1;
3878   if (cached_has_bits & 0x00000001u) {
3879     target = stream->EnsureSpace(target);
3880     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_hsr(), target);
3881   }
3882 
3883   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3884     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3885         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3886   }
3887   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmHandleSysRegFtraceEvent)
3888   return target;
3889 }
3890 
ByteSizeLong() const3891 size_t KvmHandleSysRegFtraceEvent::ByteSizeLong() const {
3892 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmHandleSysRegFtraceEvent)
3893   size_t total_size = 0;
3894 
3895   ::uint32_t cached_has_bits = 0;
3896   // Prevent compiler warnings about cached_has_bits being unused
3897   (void) cached_has_bits;
3898 
3899   // optional uint64 hsr = 1;
3900   cached_has_bits = _impl_._has_bits_[0];
3901   if (cached_has_bits & 0x00000001u) {
3902     total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_hsr());
3903   }
3904 
3905   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3906     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3907   }
3908   int cached_size = ::_pbi::ToCachedSize(total_size);
3909   SetCachedSize(cached_size);
3910   return total_size;
3911 }
3912 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3913 void KvmHandleSysRegFtraceEvent::CheckTypeAndMergeFrom(
3914     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3915   MergeFrom(*::_pbi::DownCast<const KvmHandleSysRegFtraceEvent*>(
3916       &from));
3917 }
3918 
MergeFrom(const KvmHandleSysRegFtraceEvent & from)3919 void KvmHandleSysRegFtraceEvent::MergeFrom(const KvmHandleSysRegFtraceEvent& from) {
3920   KvmHandleSysRegFtraceEvent* const _this = this;
3921   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmHandleSysRegFtraceEvent)
3922   GOOGLE_DCHECK_NE(&from, _this);
3923   ::uint32_t cached_has_bits = 0;
3924   (void) cached_has_bits;
3925 
3926   if (from._internal_has_hsr()) {
3927     _this->_internal_set_hsr(from._internal_hsr());
3928   }
3929   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3930 }
3931 
CopyFrom(const KvmHandleSysRegFtraceEvent & from)3932 void KvmHandleSysRegFtraceEvent::CopyFrom(const KvmHandleSysRegFtraceEvent& from) {
3933 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmHandleSysRegFtraceEvent)
3934   if (&from == this) return;
3935   Clear();
3936   MergeFrom(from);
3937 }
3938 
IsInitialized() const3939 bool KvmHandleSysRegFtraceEvent::IsInitialized() const {
3940   return true;
3941 }
3942 
InternalSwap(KvmHandleSysRegFtraceEvent * other)3943 void KvmHandleSysRegFtraceEvent::InternalSwap(KvmHandleSysRegFtraceEvent* other) {
3944   using std::swap;
3945   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3946   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3947   swap(_impl_.hsr_, other->_impl_.hsr_);
3948 }
3949 
GetTypeName() const3950 std::string KvmHandleSysRegFtraceEvent::GetTypeName() const {
3951   return "perfetto.protos.KvmHandleSysRegFtraceEvent";
3952 }
3953 
3954 
3955 // ===================================================================
3956 
3957 class KvmHvcArm64FtraceEvent::_Internal {
3958  public:
3959   using HasBits = decltype(std::declval<KvmHvcArm64FtraceEvent>()._impl_._has_bits_);
set_has_imm(HasBits * has_bits)3960   static void set_has_imm(HasBits* has_bits) {
3961     (*has_bits)[0] |= 1u;
3962   }
set_has_r0(HasBits * has_bits)3963   static void set_has_r0(HasBits* has_bits) {
3964     (*has_bits)[0] |= 2u;
3965   }
set_has_vcpu_pc(HasBits * has_bits)3966   static void set_has_vcpu_pc(HasBits* has_bits) {
3967     (*has_bits)[0] |= 4u;
3968   }
3969 };
3970 
KvmHvcArm64FtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3971 KvmHvcArm64FtraceEvent::KvmHvcArm64FtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3972                          bool is_message_owned)
3973   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3974   SharedCtor(arena, is_message_owned);
3975   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmHvcArm64FtraceEvent)
3976 }
KvmHvcArm64FtraceEvent(const KvmHvcArm64FtraceEvent & from)3977 KvmHvcArm64FtraceEvent::KvmHvcArm64FtraceEvent(const KvmHvcArm64FtraceEvent& from)
3978   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3979   KvmHvcArm64FtraceEvent* const _this = this; (void)_this;
3980   new (&_impl_) Impl_{
3981       decltype(_impl_._has_bits_){from._impl_._has_bits_}
3982     , /*decltype(_impl_._cached_size_)*/{}
3983     , decltype(_impl_.imm_){}
3984     , decltype(_impl_.r0_){}
3985     , decltype(_impl_.vcpu_pc_){}};
3986 
3987   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3988   ::memcpy(&_impl_.imm_, &from._impl_.imm_,
3989     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.vcpu_pc_) -
3990     reinterpret_cast<char*>(&_impl_.imm_)) + sizeof(_impl_.vcpu_pc_));
3991   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmHvcArm64FtraceEvent)
3992 }
3993 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3994 inline void KvmHvcArm64FtraceEvent::SharedCtor(
3995     ::_pb::Arena* arena, bool is_message_owned) {
3996   (void)arena;
3997   (void)is_message_owned;
3998   new (&_impl_) Impl_{
3999       decltype(_impl_._has_bits_){}
4000     , /*decltype(_impl_._cached_size_)*/{}
4001     , decltype(_impl_.imm_){::uint64_t{0u}}
4002     , decltype(_impl_.r0_){::uint64_t{0u}}
4003     , decltype(_impl_.vcpu_pc_){::uint64_t{0u}}
4004   };
4005 }
4006 
~KvmHvcArm64FtraceEvent()4007 KvmHvcArm64FtraceEvent::~KvmHvcArm64FtraceEvent() {
4008   // @@protoc_insertion_point(destructor:perfetto.protos.KvmHvcArm64FtraceEvent)
4009   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4010   (void)arena;
4011     return;
4012   }
4013   SharedDtor();
4014 }
4015 
SharedDtor()4016 inline void KvmHvcArm64FtraceEvent::SharedDtor() {
4017   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4018 }
4019 
SetCachedSize(int size) const4020 void KvmHvcArm64FtraceEvent::SetCachedSize(int size) const {
4021   _impl_._cached_size_.Set(size);
4022 }
4023 
Clear()4024 void KvmHvcArm64FtraceEvent::Clear() {
4025 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmHvcArm64FtraceEvent)
4026   ::uint32_t cached_has_bits = 0;
4027   // Prevent compiler warnings about cached_has_bits being unused
4028   (void) cached_has_bits;
4029 
4030   cached_has_bits = _impl_._has_bits_[0];
4031   if (cached_has_bits & 0x00000007u) {
4032     ::memset(&_impl_.imm_, 0, static_cast<size_t>(
4033         reinterpret_cast<char*>(&_impl_.vcpu_pc_) -
4034         reinterpret_cast<char*>(&_impl_.imm_)) + sizeof(_impl_.vcpu_pc_));
4035   }
4036   _impl_._has_bits_.Clear();
4037   _internal_metadata_.Clear<std::string>();
4038 }
4039 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4040 const char* KvmHvcArm64FtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4041 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4042   _Internal::HasBits has_bits{};
4043   while (!ctx->Done(&ptr)) {
4044     ::uint32_t tag;
4045     ptr = ::_pbi::ReadTag(ptr, &tag);
4046     switch (tag >> 3) {
4047       // optional uint64 imm = 1;
4048       case 1:
4049         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
4050           _Internal::set_has_imm(&has_bits);
4051           _impl_.imm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4052           CHK_(ptr);
4053         } else {
4054           goto handle_unusual;
4055         }
4056         continue;
4057       // optional uint64 r0 = 2;
4058       case 2:
4059         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
4060           _Internal::set_has_r0(&has_bits);
4061           _impl_.r0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4062           CHK_(ptr);
4063         } else {
4064           goto handle_unusual;
4065         }
4066         continue;
4067       // optional uint64 vcpu_pc = 3;
4068       case 3:
4069         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
4070           _Internal::set_has_vcpu_pc(&has_bits);
4071           _impl_.vcpu_pc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4072           CHK_(ptr);
4073         } else {
4074           goto handle_unusual;
4075         }
4076         continue;
4077       default:
4078         goto handle_unusual;
4079     }  // switch
4080   handle_unusual:
4081     if ((tag == 0) || ((tag & 7) == 4)) {
4082       CHK_(ptr);
4083       ctx->SetLastTag(tag);
4084       goto message_done;
4085     }
4086     ptr = UnknownFieldParse(
4087         tag,
4088         _internal_metadata_.mutable_unknown_fields<std::string>(),
4089         ptr, ctx);
4090     CHK_(ptr != nullptr);
4091   }  // while
4092 message_done:
4093   _impl_._has_bits_.Or(has_bits);
4094   return ptr;
4095 failure:
4096   ptr = nullptr;
4097   goto message_done;
4098 #undef CHK_
4099 }
4100 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4101 ::uint8_t* KvmHvcArm64FtraceEvent::_InternalSerialize(
4102     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4103   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmHvcArm64FtraceEvent)
4104   ::uint32_t cached_has_bits = 0;
4105   (void) cached_has_bits;
4106 
4107   cached_has_bits = _impl_._has_bits_[0];
4108   // optional uint64 imm = 1;
4109   if (cached_has_bits & 0x00000001u) {
4110     target = stream->EnsureSpace(target);
4111     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_imm(), target);
4112   }
4113 
4114   // optional uint64 r0 = 2;
4115   if (cached_has_bits & 0x00000002u) {
4116     target = stream->EnsureSpace(target);
4117     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_r0(), target);
4118   }
4119 
4120   // optional uint64 vcpu_pc = 3;
4121   if (cached_has_bits & 0x00000004u) {
4122     target = stream->EnsureSpace(target);
4123     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_vcpu_pc(), target);
4124   }
4125 
4126   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4127     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4128         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4129   }
4130   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmHvcArm64FtraceEvent)
4131   return target;
4132 }
4133 
ByteSizeLong() const4134 size_t KvmHvcArm64FtraceEvent::ByteSizeLong() const {
4135 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmHvcArm64FtraceEvent)
4136   size_t total_size = 0;
4137 
4138   ::uint32_t cached_has_bits = 0;
4139   // Prevent compiler warnings about cached_has_bits being unused
4140   (void) cached_has_bits;
4141 
4142   cached_has_bits = _impl_._has_bits_[0];
4143   if (cached_has_bits & 0x00000007u) {
4144     // optional uint64 imm = 1;
4145     if (cached_has_bits & 0x00000001u) {
4146       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_imm());
4147     }
4148 
4149     // optional uint64 r0 = 2;
4150     if (cached_has_bits & 0x00000002u) {
4151       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_r0());
4152     }
4153 
4154     // optional uint64 vcpu_pc = 3;
4155     if (cached_has_bits & 0x00000004u) {
4156       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_pc());
4157     }
4158 
4159   }
4160   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4161     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4162   }
4163   int cached_size = ::_pbi::ToCachedSize(total_size);
4164   SetCachedSize(cached_size);
4165   return total_size;
4166 }
4167 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4168 void KvmHvcArm64FtraceEvent::CheckTypeAndMergeFrom(
4169     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4170   MergeFrom(*::_pbi::DownCast<const KvmHvcArm64FtraceEvent*>(
4171       &from));
4172 }
4173 
MergeFrom(const KvmHvcArm64FtraceEvent & from)4174 void KvmHvcArm64FtraceEvent::MergeFrom(const KvmHvcArm64FtraceEvent& from) {
4175   KvmHvcArm64FtraceEvent* const _this = this;
4176   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmHvcArm64FtraceEvent)
4177   GOOGLE_DCHECK_NE(&from, _this);
4178   ::uint32_t cached_has_bits = 0;
4179   (void) cached_has_bits;
4180 
4181   cached_has_bits = from._impl_._has_bits_[0];
4182   if (cached_has_bits & 0x00000007u) {
4183     if (cached_has_bits & 0x00000001u) {
4184       _this->_impl_.imm_ = from._impl_.imm_;
4185     }
4186     if (cached_has_bits & 0x00000002u) {
4187       _this->_impl_.r0_ = from._impl_.r0_;
4188     }
4189     if (cached_has_bits & 0x00000004u) {
4190       _this->_impl_.vcpu_pc_ = from._impl_.vcpu_pc_;
4191     }
4192     _this->_impl_._has_bits_[0] |= cached_has_bits;
4193   }
4194   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4195 }
4196 
CopyFrom(const KvmHvcArm64FtraceEvent & from)4197 void KvmHvcArm64FtraceEvent::CopyFrom(const KvmHvcArm64FtraceEvent& from) {
4198 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmHvcArm64FtraceEvent)
4199   if (&from == this) return;
4200   Clear();
4201   MergeFrom(from);
4202 }
4203 
IsInitialized() const4204 bool KvmHvcArm64FtraceEvent::IsInitialized() const {
4205   return true;
4206 }
4207 
InternalSwap(KvmHvcArm64FtraceEvent * other)4208 void KvmHvcArm64FtraceEvent::InternalSwap(KvmHvcArm64FtraceEvent* other) {
4209   using std::swap;
4210   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4211   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4212   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4213       PROTOBUF_FIELD_OFFSET(KvmHvcArm64FtraceEvent, _impl_.vcpu_pc_)
4214       + sizeof(KvmHvcArm64FtraceEvent::_impl_.vcpu_pc_)  // NOLINT
4215       - PROTOBUF_FIELD_OFFSET(KvmHvcArm64FtraceEvent, _impl_.imm_)>(
4216           reinterpret_cast<char*>(&_impl_.imm_),
4217           reinterpret_cast<char*>(&other->_impl_.imm_));
4218 }
4219 
GetTypeName() const4220 std::string KvmHvcArm64FtraceEvent::GetTypeName() const {
4221   return "perfetto.protos.KvmHvcArm64FtraceEvent";
4222 }
4223 
4224 
4225 // ===================================================================
4226 
4227 class KvmIrqLineFtraceEvent::_Internal {
4228  public:
4229   using HasBits = decltype(std::declval<KvmIrqLineFtraceEvent>()._impl_._has_bits_);
set_has_irq_num(HasBits * has_bits)4230   static void set_has_irq_num(HasBits* has_bits) {
4231     (*has_bits)[0] |= 1u;
4232   }
set_has_level(HasBits * has_bits)4233   static void set_has_level(HasBits* has_bits) {
4234     (*has_bits)[0] |= 2u;
4235   }
set_has_type(HasBits * has_bits)4236   static void set_has_type(HasBits* has_bits) {
4237     (*has_bits)[0] |= 4u;
4238   }
set_has_vcpu_idx(HasBits * has_bits)4239   static void set_has_vcpu_idx(HasBits* has_bits) {
4240     (*has_bits)[0] |= 8u;
4241   }
4242 };
4243 
KvmIrqLineFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4244 KvmIrqLineFtraceEvent::KvmIrqLineFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4245                          bool is_message_owned)
4246   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4247   SharedCtor(arena, is_message_owned);
4248   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmIrqLineFtraceEvent)
4249 }
KvmIrqLineFtraceEvent(const KvmIrqLineFtraceEvent & from)4250 KvmIrqLineFtraceEvent::KvmIrqLineFtraceEvent(const KvmIrqLineFtraceEvent& from)
4251   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4252   KvmIrqLineFtraceEvent* const _this = this; (void)_this;
4253   new (&_impl_) Impl_{
4254       decltype(_impl_._has_bits_){from._impl_._has_bits_}
4255     , /*decltype(_impl_._cached_size_)*/{}
4256     , decltype(_impl_.irq_num_){}
4257     , decltype(_impl_.level_){}
4258     , decltype(_impl_.type_){}
4259     , decltype(_impl_.vcpu_idx_){}};
4260 
4261   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4262   ::memcpy(&_impl_.irq_num_, &from._impl_.irq_num_,
4263     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.vcpu_idx_) -
4264     reinterpret_cast<char*>(&_impl_.irq_num_)) + sizeof(_impl_.vcpu_idx_));
4265   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmIrqLineFtraceEvent)
4266 }
4267 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4268 inline void KvmIrqLineFtraceEvent::SharedCtor(
4269     ::_pb::Arena* arena, bool is_message_owned) {
4270   (void)arena;
4271   (void)is_message_owned;
4272   new (&_impl_) Impl_{
4273       decltype(_impl_._has_bits_){}
4274     , /*decltype(_impl_._cached_size_)*/{}
4275     , decltype(_impl_.irq_num_){0}
4276     , decltype(_impl_.level_){0}
4277     , decltype(_impl_.type_){0u}
4278     , decltype(_impl_.vcpu_idx_){0}
4279   };
4280 }
4281 
~KvmIrqLineFtraceEvent()4282 KvmIrqLineFtraceEvent::~KvmIrqLineFtraceEvent() {
4283   // @@protoc_insertion_point(destructor:perfetto.protos.KvmIrqLineFtraceEvent)
4284   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4285   (void)arena;
4286     return;
4287   }
4288   SharedDtor();
4289 }
4290 
SharedDtor()4291 inline void KvmIrqLineFtraceEvent::SharedDtor() {
4292   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4293 }
4294 
SetCachedSize(int size) const4295 void KvmIrqLineFtraceEvent::SetCachedSize(int size) const {
4296   _impl_._cached_size_.Set(size);
4297 }
4298 
Clear()4299 void KvmIrqLineFtraceEvent::Clear() {
4300 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmIrqLineFtraceEvent)
4301   ::uint32_t cached_has_bits = 0;
4302   // Prevent compiler warnings about cached_has_bits being unused
4303   (void) cached_has_bits;
4304 
4305   cached_has_bits = _impl_._has_bits_[0];
4306   if (cached_has_bits & 0x0000000fu) {
4307     ::memset(&_impl_.irq_num_, 0, static_cast<size_t>(
4308         reinterpret_cast<char*>(&_impl_.vcpu_idx_) -
4309         reinterpret_cast<char*>(&_impl_.irq_num_)) + sizeof(_impl_.vcpu_idx_));
4310   }
4311   _impl_._has_bits_.Clear();
4312   _internal_metadata_.Clear<std::string>();
4313 }
4314 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4315 const char* KvmIrqLineFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4316 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4317   _Internal::HasBits has_bits{};
4318   while (!ctx->Done(&ptr)) {
4319     ::uint32_t tag;
4320     ptr = ::_pbi::ReadTag(ptr, &tag);
4321     switch (tag >> 3) {
4322       // optional int32 irq_num = 1;
4323       case 1:
4324         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
4325           _Internal::set_has_irq_num(&has_bits);
4326           _impl_.irq_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4327           CHK_(ptr);
4328         } else {
4329           goto handle_unusual;
4330         }
4331         continue;
4332       // optional int32 level = 2;
4333       case 2:
4334         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
4335           _Internal::set_has_level(&has_bits);
4336           _impl_.level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4337           CHK_(ptr);
4338         } else {
4339           goto handle_unusual;
4340         }
4341         continue;
4342       // optional uint32 type = 3;
4343       case 3:
4344         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
4345           _Internal::set_has_type(&has_bits);
4346           _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4347           CHK_(ptr);
4348         } else {
4349           goto handle_unusual;
4350         }
4351         continue;
4352       // optional int32 vcpu_idx = 4;
4353       case 4:
4354         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
4355           _Internal::set_has_vcpu_idx(&has_bits);
4356           _impl_.vcpu_idx_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4357           CHK_(ptr);
4358         } else {
4359           goto handle_unusual;
4360         }
4361         continue;
4362       default:
4363         goto handle_unusual;
4364     }  // switch
4365   handle_unusual:
4366     if ((tag == 0) || ((tag & 7) == 4)) {
4367       CHK_(ptr);
4368       ctx->SetLastTag(tag);
4369       goto message_done;
4370     }
4371     ptr = UnknownFieldParse(
4372         tag,
4373         _internal_metadata_.mutable_unknown_fields<std::string>(),
4374         ptr, ctx);
4375     CHK_(ptr != nullptr);
4376   }  // while
4377 message_done:
4378   _impl_._has_bits_.Or(has_bits);
4379   return ptr;
4380 failure:
4381   ptr = nullptr;
4382   goto message_done;
4383 #undef CHK_
4384 }
4385 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4386 ::uint8_t* KvmIrqLineFtraceEvent::_InternalSerialize(
4387     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4388   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmIrqLineFtraceEvent)
4389   ::uint32_t cached_has_bits = 0;
4390   (void) cached_has_bits;
4391 
4392   cached_has_bits = _impl_._has_bits_[0];
4393   // optional int32 irq_num = 1;
4394   if (cached_has_bits & 0x00000001u) {
4395     target = stream->EnsureSpace(target);
4396     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_irq_num(), target);
4397   }
4398 
4399   // optional int32 level = 2;
4400   if (cached_has_bits & 0x00000002u) {
4401     target = stream->EnsureSpace(target);
4402     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_level(), target);
4403   }
4404 
4405   // optional uint32 type = 3;
4406   if (cached_has_bits & 0x00000004u) {
4407     target = stream->EnsureSpace(target);
4408     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_type(), target);
4409   }
4410 
4411   // optional int32 vcpu_idx = 4;
4412   if (cached_has_bits & 0x00000008u) {
4413     target = stream->EnsureSpace(target);
4414     target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_vcpu_idx(), target);
4415   }
4416 
4417   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4418     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4419         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4420   }
4421   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmIrqLineFtraceEvent)
4422   return target;
4423 }
4424 
ByteSizeLong() const4425 size_t KvmIrqLineFtraceEvent::ByteSizeLong() const {
4426 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmIrqLineFtraceEvent)
4427   size_t total_size = 0;
4428 
4429   ::uint32_t cached_has_bits = 0;
4430   // Prevent compiler warnings about cached_has_bits being unused
4431   (void) cached_has_bits;
4432 
4433   cached_has_bits = _impl_._has_bits_[0];
4434   if (cached_has_bits & 0x0000000fu) {
4435     // optional int32 irq_num = 1;
4436     if (cached_has_bits & 0x00000001u) {
4437       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_irq_num());
4438     }
4439 
4440     // optional int32 level = 2;
4441     if (cached_has_bits & 0x00000002u) {
4442       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_level());
4443     }
4444 
4445     // optional uint32 type = 3;
4446     if (cached_has_bits & 0x00000004u) {
4447       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_type());
4448     }
4449 
4450     // optional int32 vcpu_idx = 4;
4451     if (cached_has_bits & 0x00000008u) {
4452       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_vcpu_idx());
4453     }
4454 
4455   }
4456   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4457     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4458   }
4459   int cached_size = ::_pbi::ToCachedSize(total_size);
4460   SetCachedSize(cached_size);
4461   return total_size;
4462 }
4463 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4464 void KvmIrqLineFtraceEvent::CheckTypeAndMergeFrom(
4465     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4466   MergeFrom(*::_pbi::DownCast<const KvmIrqLineFtraceEvent*>(
4467       &from));
4468 }
4469 
MergeFrom(const KvmIrqLineFtraceEvent & from)4470 void KvmIrqLineFtraceEvent::MergeFrom(const KvmIrqLineFtraceEvent& from) {
4471   KvmIrqLineFtraceEvent* const _this = this;
4472   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmIrqLineFtraceEvent)
4473   GOOGLE_DCHECK_NE(&from, _this);
4474   ::uint32_t cached_has_bits = 0;
4475   (void) cached_has_bits;
4476 
4477   cached_has_bits = from._impl_._has_bits_[0];
4478   if (cached_has_bits & 0x0000000fu) {
4479     if (cached_has_bits & 0x00000001u) {
4480       _this->_impl_.irq_num_ = from._impl_.irq_num_;
4481     }
4482     if (cached_has_bits & 0x00000002u) {
4483       _this->_impl_.level_ = from._impl_.level_;
4484     }
4485     if (cached_has_bits & 0x00000004u) {
4486       _this->_impl_.type_ = from._impl_.type_;
4487     }
4488     if (cached_has_bits & 0x00000008u) {
4489       _this->_impl_.vcpu_idx_ = from._impl_.vcpu_idx_;
4490     }
4491     _this->_impl_._has_bits_[0] |= cached_has_bits;
4492   }
4493   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4494 }
4495 
CopyFrom(const KvmIrqLineFtraceEvent & from)4496 void KvmIrqLineFtraceEvent::CopyFrom(const KvmIrqLineFtraceEvent& from) {
4497 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmIrqLineFtraceEvent)
4498   if (&from == this) return;
4499   Clear();
4500   MergeFrom(from);
4501 }
4502 
IsInitialized() const4503 bool KvmIrqLineFtraceEvent::IsInitialized() const {
4504   return true;
4505 }
4506 
InternalSwap(KvmIrqLineFtraceEvent * other)4507 void KvmIrqLineFtraceEvent::InternalSwap(KvmIrqLineFtraceEvent* other) {
4508   using std::swap;
4509   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4510   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4511   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4512       PROTOBUF_FIELD_OFFSET(KvmIrqLineFtraceEvent, _impl_.vcpu_idx_)
4513       + sizeof(KvmIrqLineFtraceEvent::_impl_.vcpu_idx_)  // NOLINT
4514       - PROTOBUF_FIELD_OFFSET(KvmIrqLineFtraceEvent, _impl_.irq_num_)>(
4515           reinterpret_cast<char*>(&_impl_.irq_num_),
4516           reinterpret_cast<char*>(&other->_impl_.irq_num_));
4517 }
4518 
GetTypeName() const4519 std::string KvmIrqLineFtraceEvent::GetTypeName() const {
4520   return "perfetto.protos.KvmIrqLineFtraceEvent";
4521 }
4522 
4523 
4524 // ===================================================================
4525 
4526 class KvmMmioFtraceEvent::_Internal {
4527  public:
4528   using HasBits = decltype(std::declval<KvmMmioFtraceEvent>()._impl_._has_bits_);
set_has_gpa(HasBits * has_bits)4529   static void set_has_gpa(HasBits* has_bits) {
4530     (*has_bits)[0] |= 1u;
4531   }
set_has_len(HasBits * has_bits)4532   static void set_has_len(HasBits* has_bits) {
4533     (*has_bits)[0] |= 2u;
4534   }
set_has_type(HasBits * has_bits)4535   static void set_has_type(HasBits* has_bits) {
4536     (*has_bits)[0] |= 4u;
4537   }
set_has_val(HasBits * has_bits)4538   static void set_has_val(HasBits* has_bits) {
4539     (*has_bits)[0] |= 8u;
4540   }
4541 };
4542 
KvmMmioFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4543 KvmMmioFtraceEvent::KvmMmioFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4544                          bool is_message_owned)
4545   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4546   SharedCtor(arena, is_message_owned);
4547   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmMmioFtraceEvent)
4548 }
KvmMmioFtraceEvent(const KvmMmioFtraceEvent & from)4549 KvmMmioFtraceEvent::KvmMmioFtraceEvent(const KvmMmioFtraceEvent& from)
4550   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4551   KvmMmioFtraceEvent* const _this = this; (void)_this;
4552   new (&_impl_) Impl_{
4553       decltype(_impl_._has_bits_){from._impl_._has_bits_}
4554     , /*decltype(_impl_._cached_size_)*/{}
4555     , decltype(_impl_.gpa_){}
4556     , decltype(_impl_.len_){}
4557     , decltype(_impl_.type_){}
4558     , decltype(_impl_.val_){}};
4559 
4560   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4561   ::memcpy(&_impl_.gpa_, &from._impl_.gpa_,
4562     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.val_) -
4563     reinterpret_cast<char*>(&_impl_.gpa_)) + sizeof(_impl_.val_));
4564   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmMmioFtraceEvent)
4565 }
4566 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4567 inline void KvmMmioFtraceEvent::SharedCtor(
4568     ::_pb::Arena* arena, bool is_message_owned) {
4569   (void)arena;
4570   (void)is_message_owned;
4571   new (&_impl_) Impl_{
4572       decltype(_impl_._has_bits_){}
4573     , /*decltype(_impl_._cached_size_)*/{}
4574     , decltype(_impl_.gpa_){::uint64_t{0u}}
4575     , decltype(_impl_.len_){0u}
4576     , decltype(_impl_.type_){0u}
4577     , decltype(_impl_.val_){::uint64_t{0u}}
4578   };
4579 }
4580 
~KvmMmioFtraceEvent()4581 KvmMmioFtraceEvent::~KvmMmioFtraceEvent() {
4582   // @@protoc_insertion_point(destructor:perfetto.protos.KvmMmioFtraceEvent)
4583   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4584   (void)arena;
4585     return;
4586   }
4587   SharedDtor();
4588 }
4589 
SharedDtor()4590 inline void KvmMmioFtraceEvent::SharedDtor() {
4591   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4592 }
4593 
SetCachedSize(int size) const4594 void KvmMmioFtraceEvent::SetCachedSize(int size) const {
4595   _impl_._cached_size_.Set(size);
4596 }
4597 
Clear()4598 void KvmMmioFtraceEvent::Clear() {
4599 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmMmioFtraceEvent)
4600   ::uint32_t cached_has_bits = 0;
4601   // Prevent compiler warnings about cached_has_bits being unused
4602   (void) cached_has_bits;
4603 
4604   cached_has_bits = _impl_._has_bits_[0];
4605   if (cached_has_bits & 0x0000000fu) {
4606     ::memset(&_impl_.gpa_, 0, static_cast<size_t>(
4607         reinterpret_cast<char*>(&_impl_.val_) -
4608         reinterpret_cast<char*>(&_impl_.gpa_)) + sizeof(_impl_.val_));
4609   }
4610   _impl_._has_bits_.Clear();
4611   _internal_metadata_.Clear<std::string>();
4612 }
4613 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4614 const char* KvmMmioFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4615 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4616   _Internal::HasBits has_bits{};
4617   while (!ctx->Done(&ptr)) {
4618     ::uint32_t tag;
4619     ptr = ::_pbi::ReadTag(ptr, &tag);
4620     switch (tag >> 3) {
4621       // optional uint64 gpa = 1;
4622       case 1:
4623         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
4624           _Internal::set_has_gpa(&has_bits);
4625           _impl_.gpa_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4626           CHK_(ptr);
4627         } else {
4628           goto handle_unusual;
4629         }
4630         continue;
4631       // optional uint32 len = 2;
4632       case 2:
4633         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
4634           _Internal::set_has_len(&has_bits);
4635           _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4636           CHK_(ptr);
4637         } else {
4638           goto handle_unusual;
4639         }
4640         continue;
4641       // optional uint32 type = 3;
4642       case 3:
4643         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
4644           _Internal::set_has_type(&has_bits);
4645           _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4646           CHK_(ptr);
4647         } else {
4648           goto handle_unusual;
4649         }
4650         continue;
4651       // optional uint64 val = 4;
4652       case 4:
4653         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
4654           _Internal::set_has_val(&has_bits);
4655           _impl_.val_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4656           CHK_(ptr);
4657         } else {
4658           goto handle_unusual;
4659         }
4660         continue;
4661       default:
4662         goto handle_unusual;
4663     }  // switch
4664   handle_unusual:
4665     if ((tag == 0) || ((tag & 7) == 4)) {
4666       CHK_(ptr);
4667       ctx->SetLastTag(tag);
4668       goto message_done;
4669     }
4670     ptr = UnknownFieldParse(
4671         tag,
4672         _internal_metadata_.mutable_unknown_fields<std::string>(),
4673         ptr, ctx);
4674     CHK_(ptr != nullptr);
4675   }  // while
4676 message_done:
4677   _impl_._has_bits_.Or(has_bits);
4678   return ptr;
4679 failure:
4680   ptr = nullptr;
4681   goto message_done;
4682 #undef CHK_
4683 }
4684 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4685 ::uint8_t* KvmMmioFtraceEvent::_InternalSerialize(
4686     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4687   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmMmioFtraceEvent)
4688   ::uint32_t cached_has_bits = 0;
4689   (void) cached_has_bits;
4690 
4691   cached_has_bits = _impl_._has_bits_[0];
4692   // optional uint64 gpa = 1;
4693   if (cached_has_bits & 0x00000001u) {
4694     target = stream->EnsureSpace(target);
4695     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_gpa(), target);
4696   }
4697 
4698   // optional uint32 len = 2;
4699   if (cached_has_bits & 0x00000002u) {
4700     target = stream->EnsureSpace(target);
4701     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_len(), target);
4702   }
4703 
4704   // optional uint32 type = 3;
4705   if (cached_has_bits & 0x00000004u) {
4706     target = stream->EnsureSpace(target);
4707     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_type(), target);
4708   }
4709 
4710   // optional uint64 val = 4;
4711   if (cached_has_bits & 0x00000008u) {
4712     target = stream->EnsureSpace(target);
4713     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_val(), target);
4714   }
4715 
4716   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4717     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4718         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4719   }
4720   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmMmioFtraceEvent)
4721   return target;
4722 }
4723 
ByteSizeLong() const4724 size_t KvmMmioFtraceEvent::ByteSizeLong() const {
4725 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmMmioFtraceEvent)
4726   size_t total_size = 0;
4727 
4728   ::uint32_t cached_has_bits = 0;
4729   // Prevent compiler warnings about cached_has_bits being unused
4730   (void) cached_has_bits;
4731 
4732   cached_has_bits = _impl_._has_bits_[0];
4733   if (cached_has_bits & 0x0000000fu) {
4734     // optional uint64 gpa = 1;
4735     if (cached_has_bits & 0x00000001u) {
4736       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_gpa());
4737     }
4738 
4739     // optional uint32 len = 2;
4740     if (cached_has_bits & 0x00000002u) {
4741       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_len());
4742     }
4743 
4744     // optional uint32 type = 3;
4745     if (cached_has_bits & 0x00000004u) {
4746       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_type());
4747     }
4748 
4749     // optional uint64 val = 4;
4750     if (cached_has_bits & 0x00000008u) {
4751       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_val());
4752     }
4753 
4754   }
4755   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4756     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4757   }
4758   int cached_size = ::_pbi::ToCachedSize(total_size);
4759   SetCachedSize(cached_size);
4760   return total_size;
4761 }
4762 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4763 void KvmMmioFtraceEvent::CheckTypeAndMergeFrom(
4764     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4765   MergeFrom(*::_pbi::DownCast<const KvmMmioFtraceEvent*>(
4766       &from));
4767 }
4768 
MergeFrom(const KvmMmioFtraceEvent & from)4769 void KvmMmioFtraceEvent::MergeFrom(const KvmMmioFtraceEvent& from) {
4770   KvmMmioFtraceEvent* const _this = this;
4771   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmMmioFtraceEvent)
4772   GOOGLE_DCHECK_NE(&from, _this);
4773   ::uint32_t cached_has_bits = 0;
4774   (void) cached_has_bits;
4775 
4776   cached_has_bits = from._impl_._has_bits_[0];
4777   if (cached_has_bits & 0x0000000fu) {
4778     if (cached_has_bits & 0x00000001u) {
4779       _this->_impl_.gpa_ = from._impl_.gpa_;
4780     }
4781     if (cached_has_bits & 0x00000002u) {
4782       _this->_impl_.len_ = from._impl_.len_;
4783     }
4784     if (cached_has_bits & 0x00000004u) {
4785       _this->_impl_.type_ = from._impl_.type_;
4786     }
4787     if (cached_has_bits & 0x00000008u) {
4788       _this->_impl_.val_ = from._impl_.val_;
4789     }
4790     _this->_impl_._has_bits_[0] |= cached_has_bits;
4791   }
4792   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4793 }
4794 
CopyFrom(const KvmMmioFtraceEvent & from)4795 void KvmMmioFtraceEvent::CopyFrom(const KvmMmioFtraceEvent& from) {
4796 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmMmioFtraceEvent)
4797   if (&from == this) return;
4798   Clear();
4799   MergeFrom(from);
4800 }
4801 
IsInitialized() const4802 bool KvmMmioFtraceEvent::IsInitialized() const {
4803   return true;
4804 }
4805 
InternalSwap(KvmMmioFtraceEvent * other)4806 void KvmMmioFtraceEvent::InternalSwap(KvmMmioFtraceEvent* other) {
4807   using std::swap;
4808   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4809   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4810   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4811       PROTOBUF_FIELD_OFFSET(KvmMmioFtraceEvent, _impl_.val_)
4812       + sizeof(KvmMmioFtraceEvent::_impl_.val_)  // NOLINT
4813       - PROTOBUF_FIELD_OFFSET(KvmMmioFtraceEvent, _impl_.gpa_)>(
4814           reinterpret_cast<char*>(&_impl_.gpa_),
4815           reinterpret_cast<char*>(&other->_impl_.gpa_));
4816 }
4817 
GetTypeName() const4818 std::string KvmMmioFtraceEvent::GetTypeName() const {
4819   return "perfetto.protos.KvmMmioFtraceEvent";
4820 }
4821 
4822 
4823 // ===================================================================
4824 
4825 class KvmMmioEmulateFtraceEvent::_Internal {
4826  public:
4827   using HasBits = decltype(std::declval<KvmMmioEmulateFtraceEvent>()._impl_._has_bits_);
set_has_cpsr(HasBits * has_bits)4828   static void set_has_cpsr(HasBits* has_bits) {
4829     (*has_bits)[0] |= 1u;
4830   }
set_has_instr(HasBits * has_bits)4831   static void set_has_instr(HasBits* has_bits) {
4832     (*has_bits)[0] |= 2u;
4833   }
set_has_vcpu_pc(HasBits * has_bits)4834   static void set_has_vcpu_pc(HasBits* has_bits) {
4835     (*has_bits)[0] |= 4u;
4836   }
4837 };
4838 
KvmMmioEmulateFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4839 KvmMmioEmulateFtraceEvent::KvmMmioEmulateFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4840                          bool is_message_owned)
4841   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4842   SharedCtor(arena, is_message_owned);
4843   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmMmioEmulateFtraceEvent)
4844 }
KvmMmioEmulateFtraceEvent(const KvmMmioEmulateFtraceEvent & from)4845 KvmMmioEmulateFtraceEvent::KvmMmioEmulateFtraceEvent(const KvmMmioEmulateFtraceEvent& from)
4846   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4847   KvmMmioEmulateFtraceEvent* const _this = this; (void)_this;
4848   new (&_impl_) Impl_{
4849       decltype(_impl_._has_bits_){from._impl_._has_bits_}
4850     , /*decltype(_impl_._cached_size_)*/{}
4851     , decltype(_impl_.cpsr_){}
4852     , decltype(_impl_.instr_){}
4853     , decltype(_impl_.vcpu_pc_){}};
4854 
4855   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4856   ::memcpy(&_impl_.cpsr_, &from._impl_.cpsr_,
4857     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.vcpu_pc_) -
4858     reinterpret_cast<char*>(&_impl_.cpsr_)) + sizeof(_impl_.vcpu_pc_));
4859   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmMmioEmulateFtraceEvent)
4860 }
4861 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4862 inline void KvmMmioEmulateFtraceEvent::SharedCtor(
4863     ::_pb::Arena* arena, bool is_message_owned) {
4864   (void)arena;
4865   (void)is_message_owned;
4866   new (&_impl_) Impl_{
4867       decltype(_impl_._has_bits_){}
4868     , /*decltype(_impl_._cached_size_)*/{}
4869     , decltype(_impl_.cpsr_){::uint64_t{0u}}
4870     , decltype(_impl_.instr_){::uint64_t{0u}}
4871     , decltype(_impl_.vcpu_pc_){::uint64_t{0u}}
4872   };
4873 }
4874 
~KvmMmioEmulateFtraceEvent()4875 KvmMmioEmulateFtraceEvent::~KvmMmioEmulateFtraceEvent() {
4876   // @@protoc_insertion_point(destructor:perfetto.protos.KvmMmioEmulateFtraceEvent)
4877   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4878   (void)arena;
4879     return;
4880   }
4881   SharedDtor();
4882 }
4883 
SharedDtor()4884 inline void KvmMmioEmulateFtraceEvent::SharedDtor() {
4885   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4886 }
4887 
SetCachedSize(int size) const4888 void KvmMmioEmulateFtraceEvent::SetCachedSize(int size) const {
4889   _impl_._cached_size_.Set(size);
4890 }
4891 
Clear()4892 void KvmMmioEmulateFtraceEvent::Clear() {
4893 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmMmioEmulateFtraceEvent)
4894   ::uint32_t cached_has_bits = 0;
4895   // Prevent compiler warnings about cached_has_bits being unused
4896   (void) cached_has_bits;
4897 
4898   cached_has_bits = _impl_._has_bits_[0];
4899   if (cached_has_bits & 0x00000007u) {
4900     ::memset(&_impl_.cpsr_, 0, static_cast<size_t>(
4901         reinterpret_cast<char*>(&_impl_.vcpu_pc_) -
4902         reinterpret_cast<char*>(&_impl_.cpsr_)) + sizeof(_impl_.vcpu_pc_));
4903   }
4904   _impl_._has_bits_.Clear();
4905   _internal_metadata_.Clear<std::string>();
4906 }
4907 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4908 const char* KvmMmioEmulateFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4909 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4910   _Internal::HasBits has_bits{};
4911   while (!ctx->Done(&ptr)) {
4912     ::uint32_t tag;
4913     ptr = ::_pbi::ReadTag(ptr, &tag);
4914     switch (tag >> 3) {
4915       // optional uint64 cpsr = 1;
4916       case 1:
4917         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
4918           _Internal::set_has_cpsr(&has_bits);
4919           _impl_.cpsr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4920           CHK_(ptr);
4921         } else {
4922           goto handle_unusual;
4923         }
4924         continue;
4925       // optional uint64 instr = 2;
4926       case 2:
4927         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
4928           _Internal::set_has_instr(&has_bits);
4929           _impl_.instr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4930           CHK_(ptr);
4931         } else {
4932           goto handle_unusual;
4933         }
4934         continue;
4935       // optional uint64 vcpu_pc = 3;
4936       case 3:
4937         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
4938           _Internal::set_has_vcpu_pc(&has_bits);
4939           _impl_.vcpu_pc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4940           CHK_(ptr);
4941         } else {
4942           goto handle_unusual;
4943         }
4944         continue;
4945       default:
4946         goto handle_unusual;
4947     }  // switch
4948   handle_unusual:
4949     if ((tag == 0) || ((tag & 7) == 4)) {
4950       CHK_(ptr);
4951       ctx->SetLastTag(tag);
4952       goto message_done;
4953     }
4954     ptr = UnknownFieldParse(
4955         tag,
4956         _internal_metadata_.mutable_unknown_fields<std::string>(),
4957         ptr, ctx);
4958     CHK_(ptr != nullptr);
4959   }  // while
4960 message_done:
4961   _impl_._has_bits_.Or(has_bits);
4962   return ptr;
4963 failure:
4964   ptr = nullptr;
4965   goto message_done;
4966 #undef CHK_
4967 }
4968 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4969 ::uint8_t* KvmMmioEmulateFtraceEvent::_InternalSerialize(
4970     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4971   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmMmioEmulateFtraceEvent)
4972   ::uint32_t cached_has_bits = 0;
4973   (void) cached_has_bits;
4974 
4975   cached_has_bits = _impl_._has_bits_[0];
4976   // optional uint64 cpsr = 1;
4977   if (cached_has_bits & 0x00000001u) {
4978     target = stream->EnsureSpace(target);
4979     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_cpsr(), target);
4980   }
4981 
4982   // optional uint64 instr = 2;
4983   if (cached_has_bits & 0x00000002u) {
4984     target = stream->EnsureSpace(target);
4985     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_instr(), target);
4986   }
4987 
4988   // optional uint64 vcpu_pc = 3;
4989   if (cached_has_bits & 0x00000004u) {
4990     target = stream->EnsureSpace(target);
4991     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_vcpu_pc(), target);
4992   }
4993 
4994   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4995     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4996         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4997   }
4998   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmMmioEmulateFtraceEvent)
4999   return target;
5000 }
5001 
ByteSizeLong() const5002 size_t KvmMmioEmulateFtraceEvent::ByteSizeLong() const {
5003 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmMmioEmulateFtraceEvent)
5004   size_t total_size = 0;
5005 
5006   ::uint32_t cached_has_bits = 0;
5007   // Prevent compiler warnings about cached_has_bits being unused
5008   (void) cached_has_bits;
5009 
5010   cached_has_bits = _impl_._has_bits_[0];
5011   if (cached_has_bits & 0x00000007u) {
5012     // optional uint64 cpsr = 1;
5013     if (cached_has_bits & 0x00000001u) {
5014       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_cpsr());
5015     }
5016 
5017     // optional uint64 instr = 2;
5018     if (cached_has_bits & 0x00000002u) {
5019       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_instr());
5020     }
5021 
5022     // optional uint64 vcpu_pc = 3;
5023     if (cached_has_bits & 0x00000004u) {
5024       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_pc());
5025     }
5026 
5027   }
5028   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5029     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5030   }
5031   int cached_size = ::_pbi::ToCachedSize(total_size);
5032   SetCachedSize(cached_size);
5033   return total_size;
5034 }
5035 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5036 void KvmMmioEmulateFtraceEvent::CheckTypeAndMergeFrom(
5037     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5038   MergeFrom(*::_pbi::DownCast<const KvmMmioEmulateFtraceEvent*>(
5039       &from));
5040 }
5041 
MergeFrom(const KvmMmioEmulateFtraceEvent & from)5042 void KvmMmioEmulateFtraceEvent::MergeFrom(const KvmMmioEmulateFtraceEvent& from) {
5043   KvmMmioEmulateFtraceEvent* const _this = this;
5044   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmMmioEmulateFtraceEvent)
5045   GOOGLE_DCHECK_NE(&from, _this);
5046   ::uint32_t cached_has_bits = 0;
5047   (void) cached_has_bits;
5048 
5049   cached_has_bits = from._impl_._has_bits_[0];
5050   if (cached_has_bits & 0x00000007u) {
5051     if (cached_has_bits & 0x00000001u) {
5052       _this->_impl_.cpsr_ = from._impl_.cpsr_;
5053     }
5054     if (cached_has_bits & 0x00000002u) {
5055       _this->_impl_.instr_ = from._impl_.instr_;
5056     }
5057     if (cached_has_bits & 0x00000004u) {
5058       _this->_impl_.vcpu_pc_ = from._impl_.vcpu_pc_;
5059     }
5060     _this->_impl_._has_bits_[0] |= cached_has_bits;
5061   }
5062   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5063 }
5064 
CopyFrom(const KvmMmioEmulateFtraceEvent & from)5065 void KvmMmioEmulateFtraceEvent::CopyFrom(const KvmMmioEmulateFtraceEvent& from) {
5066 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmMmioEmulateFtraceEvent)
5067   if (&from == this) return;
5068   Clear();
5069   MergeFrom(from);
5070 }
5071 
IsInitialized() const5072 bool KvmMmioEmulateFtraceEvent::IsInitialized() const {
5073   return true;
5074 }
5075 
InternalSwap(KvmMmioEmulateFtraceEvent * other)5076 void KvmMmioEmulateFtraceEvent::InternalSwap(KvmMmioEmulateFtraceEvent* other) {
5077   using std::swap;
5078   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5079   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5080   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5081       PROTOBUF_FIELD_OFFSET(KvmMmioEmulateFtraceEvent, _impl_.vcpu_pc_)
5082       + sizeof(KvmMmioEmulateFtraceEvent::_impl_.vcpu_pc_)  // NOLINT
5083       - PROTOBUF_FIELD_OFFSET(KvmMmioEmulateFtraceEvent, _impl_.cpsr_)>(
5084           reinterpret_cast<char*>(&_impl_.cpsr_),
5085           reinterpret_cast<char*>(&other->_impl_.cpsr_));
5086 }
5087 
GetTypeName() const5088 std::string KvmMmioEmulateFtraceEvent::GetTypeName() const {
5089   return "perfetto.protos.KvmMmioEmulateFtraceEvent";
5090 }
5091 
5092 
5093 // ===================================================================
5094 
5095 class KvmSetGuestDebugFtraceEvent::_Internal {
5096  public:
5097   using HasBits = decltype(std::declval<KvmSetGuestDebugFtraceEvent>()._impl_._has_bits_);
set_has_guest_debug(HasBits * has_bits)5098   static void set_has_guest_debug(HasBits* has_bits) {
5099     (*has_bits)[0] |= 2u;
5100   }
set_has_vcpu(HasBits * has_bits)5101   static void set_has_vcpu(HasBits* has_bits) {
5102     (*has_bits)[0] |= 1u;
5103   }
5104 };
5105 
KvmSetGuestDebugFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5106 KvmSetGuestDebugFtraceEvent::KvmSetGuestDebugFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5107                          bool is_message_owned)
5108   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5109   SharedCtor(arena, is_message_owned);
5110   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmSetGuestDebugFtraceEvent)
5111 }
KvmSetGuestDebugFtraceEvent(const KvmSetGuestDebugFtraceEvent & from)5112 KvmSetGuestDebugFtraceEvent::KvmSetGuestDebugFtraceEvent(const KvmSetGuestDebugFtraceEvent& from)
5113   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5114   KvmSetGuestDebugFtraceEvent* const _this = this; (void)_this;
5115   new (&_impl_) Impl_{
5116       decltype(_impl_._has_bits_){from._impl_._has_bits_}
5117     , /*decltype(_impl_._cached_size_)*/{}
5118     , decltype(_impl_.vcpu_){}
5119     , decltype(_impl_.guest_debug_){}};
5120 
5121   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5122   ::memcpy(&_impl_.vcpu_, &from._impl_.vcpu_,
5123     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.guest_debug_) -
5124     reinterpret_cast<char*>(&_impl_.vcpu_)) + sizeof(_impl_.guest_debug_));
5125   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmSetGuestDebugFtraceEvent)
5126 }
5127 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5128 inline void KvmSetGuestDebugFtraceEvent::SharedCtor(
5129     ::_pb::Arena* arena, bool is_message_owned) {
5130   (void)arena;
5131   (void)is_message_owned;
5132   new (&_impl_) Impl_{
5133       decltype(_impl_._has_bits_){}
5134     , /*decltype(_impl_._cached_size_)*/{}
5135     , decltype(_impl_.vcpu_){::uint64_t{0u}}
5136     , decltype(_impl_.guest_debug_){0u}
5137   };
5138 }
5139 
~KvmSetGuestDebugFtraceEvent()5140 KvmSetGuestDebugFtraceEvent::~KvmSetGuestDebugFtraceEvent() {
5141   // @@protoc_insertion_point(destructor:perfetto.protos.KvmSetGuestDebugFtraceEvent)
5142   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5143   (void)arena;
5144     return;
5145   }
5146   SharedDtor();
5147 }
5148 
SharedDtor()5149 inline void KvmSetGuestDebugFtraceEvent::SharedDtor() {
5150   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5151 }
5152 
SetCachedSize(int size) const5153 void KvmSetGuestDebugFtraceEvent::SetCachedSize(int size) const {
5154   _impl_._cached_size_.Set(size);
5155 }
5156 
Clear()5157 void KvmSetGuestDebugFtraceEvent::Clear() {
5158 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmSetGuestDebugFtraceEvent)
5159   ::uint32_t cached_has_bits = 0;
5160   // Prevent compiler warnings about cached_has_bits being unused
5161   (void) cached_has_bits;
5162 
5163   cached_has_bits = _impl_._has_bits_[0];
5164   if (cached_has_bits & 0x00000003u) {
5165     ::memset(&_impl_.vcpu_, 0, static_cast<size_t>(
5166         reinterpret_cast<char*>(&_impl_.guest_debug_) -
5167         reinterpret_cast<char*>(&_impl_.vcpu_)) + sizeof(_impl_.guest_debug_));
5168   }
5169   _impl_._has_bits_.Clear();
5170   _internal_metadata_.Clear<std::string>();
5171 }
5172 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5173 const char* KvmSetGuestDebugFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5174 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5175   _Internal::HasBits has_bits{};
5176   while (!ctx->Done(&ptr)) {
5177     ::uint32_t tag;
5178     ptr = ::_pbi::ReadTag(ptr, &tag);
5179     switch (tag >> 3) {
5180       // optional uint32 guest_debug = 1;
5181       case 1:
5182         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
5183           _Internal::set_has_guest_debug(&has_bits);
5184           _impl_.guest_debug_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5185           CHK_(ptr);
5186         } else {
5187           goto handle_unusual;
5188         }
5189         continue;
5190       // optional uint64 vcpu = 2;
5191       case 2:
5192         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
5193           _Internal::set_has_vcpu(&has_bits);
5194           _impl_.vcpu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5195           CHK_(ptr);
5196         } else {
5197           goto handle_unusual;
5198         }
5199         continue;
5200       default:
5201         goto handle_unusual;
5202     }  // switch
5203   handle_unusual:
5204     if ((tag == 0) || ((tag & 7) == 4)) {
5205       CHK_(ptr);
5206       ctx->SetLastTag(tag);
5207       goto message_done;
5208     }
5209     ptr = UnknownFieldParse(
5210         tag,
5211         _internal_metadata_.mutable_unknown_fields<std::string>(),
5212         ptr, ctx);
5213     CHK_(ptr != nullptr);
5214   }  // while
5215 message_done:
5216   _impl_._has_bits_.Or(has_bits);
5217   return ptr;
5218 failure:
5219   ptr = nullptr;
5220   goto message_done;
5221 #undef CHK_
5222 }
5223 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5224 ::uint8_t* KvmSetGuestDebugFtraceEvent::_InternalSerialize(
5225     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5226   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmSetGuestDebugFtraceEvent)
5227   ::uint32_t cached_has_bits = 0;
5228   (void) cached_has_bits;
5229 
5230   cached_has_bits = _impl_._has_bits_[0];
5231   // optional uint32 guest_debug = 1;
5232   if (cached_has_bits & 0x00000002u) {
5233     target = stream->EnsureSpace(target);
5234     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_guest_debug(), target);
5235   }
5236 
5237   // optional uint64 vcpu = 2;
5238   if (cached_has_bits & 0x00000001u) {
5239     target = stream->EnsureSpace(target);
5240     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_vcpu(), target);
5241   }
5242 
5243   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5244     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5245         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5246   }
5247   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmSetGuestDebugFtraceEvent)
5248   return target;
5249 }
5250 
ByteSizeLong() const5251 size_t KvmSetGuestDebugFtraceEvent::ByteSizeLong() const {
5252 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmSetGuestDebugFtraceEvent)
5253   size_t total_size = 0;
5254 
5255   ::uint32_t cached_has_bits = 0;
5256   // Prevent compiler warnings about cached_has_bits being unused
5257   (void) cached_has_bits;
5258 
5259   cached_has_bits = _impl_._has_bits_[0];
5260   if (cached_has_bits & 0x00000003u) {
5261     // optional uint64 vcpu = 2;
5262     if (cached_has_bits & 0x00000001u) {
5263       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu());
5264     }
5265 
5266     // optional uint32 guest_debug = 1;
5267     if (cached_has_bits & 0x00000002u) {
5268       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_guest_debug());
5269     }
5270 
5271   }
5272   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5273     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5274   }
5275   int cached_size = ::_pbi::ToCachedSize(total_size);
5276   SetCachedSize(cached_size);
5277   return total_size;
5278 }
5279 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5280 void KvmSetGuestDebugFtraceEvent::CheckTypeAndMergeFrom(
5281     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5282   MergeFrom(*::_pbi::DownCast<const KvmSetGuestDebugFtraceEvent*>(
5283       &from));
5284 }
5285 
MergeFrom(const KvmSetGuestDebugFtraceEvent & from)5286 void KvmSetGuestDebugFtraceEvent::MergeFrom(const KvmSetGuestDebugFtraceEvent& from) {
5287   KvmSetGuestDebugFtraceEvent* const _this = this;
5288   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmSetGuestDebugFtraceEvent)
5289   GOOGLE_DCHECK_NE(&from, _this);
5290   ::uint32_t cached_has_bits = 0;
5291   (void) cached_has_bits;
5292 
5293   cached_has_bits = from._impl_._has_bits_[0];
5294   if (cached_has_bits & 0x00000003u) {
5295     if (cached_has_bits & 0x00000001u) {
5296       _this->_impl_.vcpu_ = from._impl_.vcpu_;
5297     }
5298     if (cached_has_bits & 0x00000002u) {
5299       _this->_impl_.guest_debug_ = from._impl_.guest_debug_;
5300     }
5301     _this->_impl_._has_bits_[0] |= cached_has_bits;
5302   }
5303   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5304 }
5305 
CopyFrom(const KvmSetGuestDebugFtraceEvent & from)5306 void KvmSetGuestDebugFtraceEvent::CopyFrom(const KvmSetGuestDebugFtraceEvent& from) {
5307 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmSetGuestDebugFtraceEvent)
5308   if (&from == this) return;
5309   Clear();
5310   MergeFrom(from);
5311 }
5312 
IsInitialized() const5313 bool KvmSetGuestDebugFtraceEvent::IsInitialized() const {
5314   return true;
5315 }
5316 
InternalSwap(KvmSetGuestDebugFtraceEvent * other)5317 void KvmSetGuestDebugFtraceEvent::InternalSwap(KvmSetGuestDebugFtraceEvent* other) {
5318   using std::swap;
5319   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5320   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5321   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5322       PROTOBUF_FIELD_OFFSET(KvmSetGuestDebugFtraceEvent, _impl_.guest_debug_)
5323       + sizeof(KvmSetGuestDebugFtraceEvent::_impl_.guest_debug_)  // NOLINT
5324       - PROTOBUF_FIELD_OFFSET(KvmSetGuestDebugFtraceEvent, _impl_.vcpu_)>(
5325           reinterpret_cast<char*>(&_impl_.vcpu_),
5326           reinterpret_cast<char*>(&other->_impl_.vcpu_));
5327 }
5328 
GetTypeName() const5329 std::string KvmSetGuestDebugFtraceEvent::GetTypeName() const {
5330   return "perfetto.protos.KvmSetGuestDebugFtraceEvent";
5331 }
5332 
5333 
5334 // ===================================================================
5335 
5336 class KvmSetIrqFtraceEvent::_Internal {
5337  public:
5338   using HasBits = decltype(std::declval<KvmSetIrqFtraceEvent>()._impl_._has_bits_);
set_has_gsi(HasBits * has_bits)5339   static void set_has_gsi(HasBits* has_bits) {
5340     (*has_bits)[0] |= 1u;
5341   }
set_has_irq_source_id(HasBits * has_bits)5342   static void set_has_irq_source_id(HasBits* has_bits) {
5343     (*has_bits)[0] |= 2u;
5344   }
set_has_level(HasBits * has_bits)5345   static void set_has_level(HasBits* has_bits) {
5346     (*has_bits)[0] |= 4u;
5347   }
5348 };
5349 
KvmSetIrqFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5350 KvmSetIrqFtraceEvent::KvmSetIrqFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5351                          bool is_message_owned)
5352   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5353   SharedCtor(arena, is_message_owned);
5354   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmSetIrqFtraceEvent)
5355 }
KvmSetIrqFtraceEvent(const KvmSetIrqFtraceEvent & from)5356 KvmSetIrqFtraceEvent::KvmSetIrqFtraceEvent(const KvmSetIrqFtraceEvent& from)
5357   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5358   KvmSetIrqFtraceEvent* const _this = this; (void)_this;
5359   new (&_impl_) Impl_{
5360       decltype(_impl_._has_bits_){from._impl_._has_bits_}
5361     , /*decltype(_impl_._cached_size_)*/{}
5362     , decltype(_impl_.gsi_){}
5363     , decltype(_impl_.irq_source_id_){}
5364     , decltype(_impl_.level_){}};
5365 
5366   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5367   ::memcpy(&_impl_.gsi_, &from._impl_.gsi_,
5368     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.level_) -
5369     reinterpret_cast<char*>(&_impl_.gsi_)) + sizeof(_impl_.level_));
5370   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmSetIrqFtraceEvent)
5371 }
5372 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5373 inline void KvmSetIrqFtraceEvent::SharedCtor(
5374     ::_pb::Arena* arena, bool is_message_owned) {
5375   (void)arena;
5376   (void)is_message_owned;
5377   new (&_impl_) Impl_{
5378       decltype(_impl_._has_bits_){}
5379     , /*decltype(_impl_._cached_size_)*/{}
5380     , decltype(_impl_.gsi_){0u}
5381     , decltype(_impl_.irq_source_id_){0}
5382     , decltype(_impl_.level_){0}
5383   };
5384 }
5385 
~KvmSetIrqFtraceEvent()5386 KvmSetIrqFtraceEvent::~KvmSetIrqFtraceEvent() {
5387   // @@protoc_insertion_point(destructor:perfetto.protos.KvmSetIrqFtraceEvent)
5388   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5389   (void)arena;
5390     return;
5391   }
5392   SharedDtor();
5393 }
5394 
SharedDtor()5395 inline void KvmSetIrqFtraceEvent::SharedDtor() {
5396   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5397 }
5398 
SetCachedSize(int size) const5399 void KvmSetIrqFtraceEvent::SetCachedSize(int size) const {
5400   _impl_._cached_size_.Set(size);
5401 }
5402 
Clear()5403 void KvmSetIrqFtraceEvent::Clear() {
5404 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmSetIrqFtraceEvent)
5405   ::uint32_t cached_has_bits = 0;
5406   // Prevent compiler warnings about cached_has_bits being unused
5407   (void) cached_has_bits;
5408 
5409   cached_has_bits = _impl_._has_bits_[0];
5410   if (cached_has_bits & 0x00000007u) {
5411     ::memset(&_impl_.gsi_, 0, static_cast<size_t>(
5412         reinterpret_cast<char*>(&_impl_.level_) -
5413         reinterpret_cast<char*>(&_impl_.gsi_)) + sizeof(_impl_.level_));
5414   }
5415   _impl_._has_bits_.Clear();
5416   _internal_metadata_.Clear<std::string>();
5417 }
5418 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5419 const char* KvmSetIrqFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5420 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5421   _Internal::HasBits has_bits{};
5422   while (!ctx->Done(&ptr)) {
5423     ::uint32_t tag;
5424     ptr = ::_pbi::ReadTag(ptr, &tag);
5425     switch (tag >> 3) {
5426       // optional uint32 gsi = 1;
5427       case 1:
5428         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
5429           _Internal::set_has_gsi(&has_bits);
5430           _impl_.gsi_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5431           CHK_(ptr);
5432         } else {
5433           goto handle_unusual;
5434         }
5435         continue;
5436       // optional int32 irq_source_id = 2;
5437       case 2:
5438         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
5439           _Internal::set_has_irq_source_id(&has_bits);
5440           _impl_.irq_source_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5441           CHK_(ptr);
5442         } else {
5443           goto handle_unusual;
5444         }
5445         continue;
5446       // optional int32 level = 3;
5447       case 3:
5448         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
5449           _Internal::set_has_level(&has_bits);
5450           _impl_.level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5451           CHK_(ptr);
5452         } else {
5453           goto handle_unusual;
5454         }
5455         continue;
5456       default:
5457         goto handle_unusual;
5458     }  // switch
5459   handle_unusual:
5460     if ((tag == 0) || ((tag & 7) == 4)) {
5461       CHK_(ptr);
5462       ctx->SetLastTag(tag);
5463       goto message_done;
5464     }
5465     ptr = UnknownFieldParse(
5466         tag,
5467         _internal_metadata_.mutable_unknown_fields<std::string>(),
5468         ptr, ctx);
5469     CHK_(ptr != nullptr);
5470   }  // while
5471 message_done:
5472   _impl_._has_bits_.Or(has_bits);
5473   return ptr;
5474 failure:
5475   ptr = nullptr;
5476   goto message_done;
5477 #undef CHK_
5478 }
5479 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5480 ::uint8_t* KvmSetIrqFtraceEvent::_InternalSerialize(
5481     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5482   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmSetIrqFtraceEvent)
5483   ::uint32_t cached_has_bits = 0;
5484   (void) cached_has_bits;
5485 
5486   cached_has_bits = _impl_._has_bits_[0];
5487   // optional uint32 gsi = 1;
5488   if (cached_has_bits & 0x00000001u) {
5489     target = stream->EnsureSpace(target);
5490     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gsi(), target);
5491   }
5492 
5493   // optional int32 irq_source_id = 2;
5494   if (cached_has_bits & 0x00000002u) {
5495     target = stream->EnsureSpace(target);
5496     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_irq_source_id(), target);
5497   }
5498 
5499   // optional int32 level = 3;
5500   if (cached_has_bits & 0x00000004u) {
5501     target = stream->EnsureSpace(target);
5502     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_level(), target);
5503   }
5504 
5505   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5506     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5507         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5508   }
5509   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmSetIrqFtraceEvent)
5510   return target;
5511 }
5512 
ByteSizeLong() const5513 size_t KvmSetIrqFtraceEvent::ByteSizeLong() const {
5514 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmSetIrqFtraceEvent)
5515   size_t total_size = 0;
5516 
5517   ::uint32_t cached_has_bits = 0;
5518   // Prevent compiler warnings about cached_has_bits being unused
5519   (void) cached_has_bits;
5520 
5521   cached_has_bits = _impl_._has_bits_[0];
5522   if (cached_has_bits & 0x00000007u) {
5523     // optional uint32 gsi = 1;
5524     if (cached_has_bits & 0x00000001u) {
5525       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_gsi());
5526     }
5527 
5528     // optional int32 irq_source_id = 2;
5529     if (cached_has_bits & 0x00000002u) {
5530       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_irq_source_id());
5531     }
5532 
5533     // optional int32 level = 3;
5534     if (cached_has_bits & 0x00000004u) {
5535       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_level());
5536     }
5537 
5538   }
5539   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5540     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5541   }
5542   int cached_size = ::_pbi::ToCachedSize(total_size);
5543   SetCachedSize(cached_size);
5544   return total_size;
5545 }
5546 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5547 void KvmSetIrqFtraceEvent::CheckTypeAndMergeFrom(
5548     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5549   MergeFrom(*::_pbi::DownCast<const KvmSetIrqFtraceEvent*>(
5550       &from));
5551 }
5552 
MergeFrom(const KvmSetIrqFtraceEvent & from)5553 void KvmSetIrqFtraceEvent::MergeFrom(const KvmSetIrqFtraceEvent& from) {
5554   KvmSetIrqFtraceEvent* const _this = this;
5555   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmSetIrqFtraceEvent)
5556   GOOGLE_DCHECK_NE(&from, _this);
5557   ::uint32_t cached_has_bits = 0;
5558   (void) cached_has_bits;
5559 
5560   cached_has_bits = from._impl_._has_bits_[0];
5561   if (cached_has_bits & 0x00000007u) {
5562     if (cached_has_bits & 0x00000001u) {
5563       _this->_impl_.gsi_ = from._impl_.gsi_;
5564     }
5565     if (cached_has_bits & 0x00000002u) {
5566       _this->_impl_.irq_source_id_ = from._impl_.irq_source_id_;
5567     }
5568     if (cached_has_bits & 0x00000004u) {
5569       _this->_impl_.level_ = from._impl_.level_;
5570     }
5571     _this->_impl_._has_bits_[0] |= cached_has_bits;
5572   }
5573   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5574 }
5575 
CopyFrom(const KvmSetIrqFtraceEvent & from)5576 void KvmSetIrqFtraceEvent::CopyFrom(const KvmSetIrqFtraceEvent& from) {
5577 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmSetIrqFtraceEvent)
5578   if (&from == this) return;
5579   Clear();
5580   MergeFrom(from);
5581 }
5582 
IsInitialized() const5583 bool KvmSetIrqFtraceEvent::IsInitialized() const {
5584   return true;
5585 }
5586 
InternalSwap(KvmSetIrqFtraceEvent * other)5587 void KvmSetIrqFtraceEvent::InternalSwap(KvmSetIrqFtraceEvent* other) {
5588   using std::swap;
5589   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5590   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5591   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5592       PROTOBUF_FIELD_OFFSET(KvmSetIrqFtraceEvent, _impl_.level_)
5593       + sizeof(KvmSetIrqFtraceEvent::_impl_.level_)  // NOLINT
5594       - PROTOBUF_FIELD_OFFSET(KvmSetIrqFtraceEvent, _impl_.gsi_)>(
5595           reinterpret_cast<char*>(&_impl_.gsi_),
5596           reinterpret_cast<char*>(&other->_impl_.gsi_));
5597 }
5598 
GetTypeName() const5599 std::string KvmSetIrqFtraceEvent::GetTypeName() const {
5600   return "perfetto.protos.KvmSetIrqFtraceEvent";
5601 }
5602 
5603 
5604 // ===================================================================
5605 
5606 class KvmSetSpteHvaFtraceEvent::_Internal {
5607  public:
5608   using HasBits = decltype(std::declval<KvmSetSpteHvaFtraceEvent>()._impl_._has_bits_);
set_has_hva(HasBits * has_bits)5609   static void set_has_hva(HasBits* has_bits) {
5610     (*has_bits)[0] |= 1u;
5611   }
5612 };
5613 
KvmSetSpteHvaFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5614 KvmSetSpteHvaFtraceEvent::KvmSetSpteHvaFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5615                          bool is_message_owned)
5616   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5617   SharedCtor(arena, is_message_owned);
5618   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmSetSpteHvaFtraceEvent)
5619 }
KvmSetSpteHvaFtraceEvent(const KvmSetSpteHvaFtraceEvent & from)5620 KvmSetSpteHvaFtraceEvent::KvmSetSpteHvaFtraceEvent(const KvmSetSpteHvaFtraceEvent& from)
5621   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5622   KvmSetSpteHvaFtraceEvent* const _this = this; (void)_this;
5623   new (&_impl_) Impl_{
5624       decltype(_impl_._has_bits_){from._impl_._has_bits_}
5625     , /*decltype(_impl_._cached_size_)*/{}
5626     , decltype(_impl_.hva_){}};
5627 
5628   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5629   _this->_impl_.hva_ = from._impl_.hva_;
5630   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmSetSpteHvaFtraceEvent)
5631 }
5632 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5633 inline void KvmSetSpteHvaFtraceEvent::SharedCtor(
5634     ::_pb::Arena* arena, bool is_message_owned) {
5635   (void)arena;
5636   (void)is_message_owned;
5637   new (&_impl_) Impl_{
5638       decltype(_impl_._has_bits_){}
5639     , /*decltype(_impl_._cached_size_)*/{}
5640     , decltype(_impl_.hva_){::uint64_t{0u}}
5641   };
5642 }
5643 
~KvmSetSpteHvaFtraceEvent()5644 KvmSetSpteHvaFtraceEvent::~KvmSetSpteHvaFtraceEvent() {
5645   // @@protoc_insertion_point(destructor:perfetto.protos.KvmSetSpteHvaFtraceEvent)
5646   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5647   (void)arena;
5648     return;
5649   }
5650   SharedDtor();
5651 }
5652 
SharedDtor()5653 inline void KvmSetSpteHvaFtraceEvent::SharedDtor() {
5654   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5655 }
5656 
SetCachedSize(int size) const5657 void KvmSetSpteHvaFtraceEvent::SetCachedSize(int size) const {
5658   _impl_._cached_size_.Set(size);
5659 }
5660 
Clear()5661 void KvmSetSpteHvaFtraceEvent::Clear() {
5662 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmSetSpteHvaFtraceEvent)
5663   ::uint32_t cached_has_bits = 0;
5664   // Prevent compiler warnings about cached_has_bits being unused
5665   (void) cached_has_bits;
5666 
5667   _impl_.hva_ = ::uint64_t{0u};
5668   _impl_._has_bits_.Clear();
5669   _internal_metadata_.Clear<std::string>();
5670 }
5671 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5672 const char* KvmSetSpteHvaFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5673 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5674   _Internal::HasBits has_bits{};
5675   while (!ctx->Done(&ptr)) {
5676     ::uint32_t tag;
5677     ptr = ::_pbi::ReadTag(ptr, &tag);
5678     switch (tag >> 3) {
5679       // optional uint64 hva = 1;
5680       case 1:
5681         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
5682           _Internal::set_has_hva(&has_bits);
5683           _impl_.hva_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5684           CHK_(ptr);
5685         } else {
5686           goto handle_unusual;
5687         }
5688         continue;
5689       default:
5690         goto handle_unusual;
5691     }  // switch
5692   handle_unusual:
5693     if ((tag == 0) || ((tag & 7) == 4)) {
5694       CHK_(ptr);
5695       ctx->SetLastTag(tag);
5696       goto message_done;
5697     }
5698     ptr = UnknownFieldParse(
5699         tag,
5700         _internal_metadata_.mutable_unknown_fields<std::string>(),
5701         ptr, ctx);
5702     CHK_(ptr != nullptr);
5703   }  // while
5704 message_done:
5705   _impl_._has_bits_.Or(has_bits);
5706   return ptr;
5707 failure:
5708   ptr = nullptr;
5709   goto message_done;
5710 #undef CHK_
5711 }
5712 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5713 ::uint8_t* KvmSetSpteHvaFtraceEvent::_InternalSerialize(
5714     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5715   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmSetSpteHvaFtraceEvent)
5716   ::uint32_t cached_has_bits = 0;
5717   (void) cached_has_bits;
5718 
5719   cached_has_bits = _impl_._has_bits_[0];
5720   // optional uint64 hva = 1;
5721   if (cached_has_bits & 0x00000001u) {
5722     target = stream->EnsureSpace(target);
5723     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_hva(), target);
5724   }
5725 
5726   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5727     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5728         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5729   }
5730   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmSetSpteHvaFtraceEvent)
5731   return target;
5732 }
5733 
ByteSizeLong() const5734 size_t KvmSetSpteHvaFtraceEvent::ByteSizeLong() const {
5735 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmSetSpteHvaFtraceEvent)
5736   size_t total_size = 0;
5737 
5738   ::uint32_t cached_has_bits = 0;
5739   // Prevent compiler warnings about cached_has_bits being unused
5740   (void) cached_has_bits;
5741 
5742   // optional uint64 hva = 1;
5743   cached_has_bits = _impl_._has_bits_[0];
5744   if (cached_has_bits & 0x00000001u) {
5745     total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_hva());
5746   }
5747 
5748   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5749     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5750   }
5751   int cached_size = ::_pbi::ToCachedSize(total_size);
5752   SetCachedSize(cached_size);
5753   return total_size;
5754 }
5755 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5756 void KvmSetSpteHvaFtraceEvent::CheckTypeAndMergeFrom(
5757     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5758   MergeFrom(*::_pbi::DownCast<const KvmSetSpteHvaFtraceEvent*>(
5759       &from));
5760 }
5761 
MergeFrom(const KvmSetSpteHvaFtraceEvent & from)5762 void KvmSetSpteHvaFtraceEvent::MergeFrom(const KvmSetSpteHvaFtraceEvent& from) {
5763   KvmSetSpteHvaFtraceEvent* const _this = this;
5764   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmSetSpteHvaFtraceEvent)
5765   GOOGLE_DCHECK_NE(&from, _this);
5766   ::uint32_t cached_has_bits = 0;
5767   (void) cached_has_bits;
5768 
5769   if (from._internal_has_hva()) {
5770     _this->_internal_set_hva(from._internal_hva());
5771   }
5772   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5773 }
5774 
CopyFrom(const KvmSetSpteHvaFtraceEvent & from)5775 void KvmSetSpteHvaFtraceEvent::CopyFrom(const KvmSetSpteHvaFtraceEvent& from) {
5776 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmSetSpteHvaFtraceEvent)
5777   if (&from == this) return;
5778   Clear();
5779   MergeFrom(from);
5780 }
5781 
IsInitialized() const5782 bool KvmSetSpteHvaFtraceEvent::IsInitialized() const {
5783   return true;
5784 }
5785 
InternalSwap(KvmSetSpteHvaFtraceEvent * other)5786 void KvmSetSpteHvaFtraceEvent::InternalSwap(KvmSetSpteHvaFtraceEvent* other) {
5787   using std::swap;
5788   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5789   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5790   swap(_impl_.hva_, other->_impl_.hva_);
5791 }
5792 
GetTypeName() const5793 std::string KvmSetSpteHvaFtraceEvent::GetTypeName() const {
5794   return "perfetto.protos.KvmSetSpteHvaFtraceEvent";
5795 }
5796 
5797 
5798 // ===================================================================
5799 
5800 class KvmSetWayFlushFtraceEvent::_Internal {
5801  public:
5802   using HasBits = decltype(std::declval<KvmSetWayFlushFtraceEvent>()._impl_._has_bits_);
set_has_cache(HasBits * has_bits)5803   static void set_has_cache(HasBits* has_bits) {
5804     (*has_bits)[0] |= 2u;
5805   }
set_has_vcpu_pc(HasBits * has_bits)5806   static void set_has_vcpu_pc(HasBits* has_bits) {
5807     (*has_bits)[0] |= 1u;
5808   }
5809 };
5810 
KvmSetWayFlushFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5811 KvmSetWayFlushFtraceEvent::KvmSetWayFlushFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5812                          bool is_message_owned)
5813   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5814   SharedCtor(arena, is_message_owned);
5815   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmSetWayFlushFtraceEvent)
5816 }
KvmSetWayFlushFtraceEvent(const KvmSetWayFlushFtraceEvent & from)5817 KvmSetWayFlushFtraceEvent::KvmSetWayFlushFtraceEvent(const KvmSetWayFlushFtraceEvent& from)
5818   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5819   KvmSetWayFlushFtraceEvent* const _this = this; (void)_this;
5820   new (&_impl_) Impl_{
5821       decltype(_impl_._has_bits_){from._impl_._has_bits_}
5822     , /*decltype(_impl_._cached_size_)*/{}
5823     , decltype(_impl_.vcpu_pc_){}
5824     , decltype(_impl_.cache_){}};
5825 
5826   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5827   ::memcpy(&_impl_.vcpu_pc_, &from._impl_.vcpu_pc_,
5828     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.cache_) -
5829     reinterpret_cast<char*>(&_impl_.vcpu_pc_)) + sizeof(_impl_.cache_));
5830   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmSetWayFlushFtraceEvent)
5831 }
5832 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5833 inline void KvmSetWayFlushFtraceEvent::SharedCtor(
5834     ::_pb::Arena* arena, bool is_message_owned) {
5835   (void)arena;
5836   (void)is_message_owned;
5837   new (&_impl_) Impl_{
5838       decltype(_impl_._has_bits_){}
5839     , /*decltype(_impl_._cached_size_)*/{}
5840     , decltype(_impl_.vcpu_pc_){::uint64_t{0u}}
5841     , decltype(_impl_.cache_){0u}
5842   };
5843 }
5844 
~KvmSetWayFlushFtraceEvent()5845 KvmSetWayFlushFtraceEvent::~KvmSetWayFlushFtraceEvent() {
5846   // @@protoc_insertion_point(destructor:perfetto.protos.KvmSetWayFlushFtraceEvent)
5847   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5848   (void)arena;
5849     return;
5850   }
5851   SharedDtor();
5852 }
5853 
SharedDtor()5854 inline void KvmSetWayFlushFtraceEvent::SharedDtor() {
5855   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5856 }
5857 
SetCachedSize(int size) const5858 void KvmSetWayFlushFtraceEvent::SetCachedSize(int size) const {
5859   _impl_._cached_size_.Set(size);
5860 }
5861 
Clear()5862 void KvmSetWayFlushFtraceEvent::Clear() {
5863 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmSetWayFlushFtraceEvent)
5864   ::uint32_t cached_has_bits = 0;
5865   // Prevent compiler warnings about cached_has_bits being unused
5866   (void) cached_has_bits;
5867 
5868   cached_has_bits = _impl_._has_bits_[0];
5869   if (cached_has_bits & 0x00000003u) {
5870     ::memset(&_impl_.vcpu_pc_, 0, static_cast<size_t>(
5871         reinterpret_cast<char*>(&_impl_.cache_) -
5872         reinterpret_cast<char*>(&_impl_.vcpu_pc_)) + sizeof(_impl_.cache_));
5873   }
5874   _impl_._has_bits_.Clear();
5875   _internal_metadata_.Clear<std::string>();
5876 }
5877 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5878 const char* KvmSetWayFlushFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5879 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5880   _Internal::HasBits has_bits{};
5881   while (!ctx->Done(&ptr)) {
5882     ::uint32_t tag;
5883     ptr = ::_pbi::ReadTag(ptr, &tag);
5884     switch (tag >> 3) {
5885       // optional uint32 cache = 1;
5886       case 1:
5887         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
5888           _Internal::set_has_cache(&has_bits);
5889           _impl_.cache_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5890           CHK_(ptr);
5891         } else {
5892           goto handle_unusual;
5893         }
5894         continue;
5895       // optional uint64 vcpu_pc = 2;
5896       case 2:
5897         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
5898           _Internal::set_has_vcpu_pc(&has_bits);
5899           _impl_.vcpu_pc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5900           CHK_(ptr);
5901         } else {
5902           goto handle_unusual;
5903         }
5904         continue;
5905       default:
5906         goto handle_unusual;
5907     }  // switch
5908   handle_unusual:
5909     if ((tag == 0) || ((tag & 7) == 4)) {
5910       CHK_(ptr);
5911       ctx->SetLastTag(tag);
5912       goto message_done;
5913     }
5914     ptr = UnknownFieldParse(
5915         tag,
5916         _internal_metadata_.mutable_unknown_fields<std::string>(),
5917         ptr, ctx);
5918     CHK_(ptr != nullptr);
5919   }  // while
5920 message_done:
5921   _impl_._has_bits_.Or(has_bits);
5922   return ptr;
5923 failure:
5924   ptr = nullptr;
5925   goto message_done;
5926 #undef CHK_
5927 }
5928 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5929 ::uint8_t* KvmSetWayFlushFtraceEvent::_InternalSerialize(
5930     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5931   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmSetWayFlushFtraceEvent)
5932   ::uint32_t cached_has_bits = 0;
5933   (void) cached_has_bits;
5934 
5935   cached_has_bits = _impl_._has_bits_[0];
5936   // optional uint32 cache = 1;
5937   if (cached_has_bits & 0x00000002u) {
5938     target = stream->EnsureSpace(target);
5939     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_cache(), target);
5940   }
5941 
5942   // optional uint64 vcpu_pc = 2;
5943   if (cached_has_bits & 0x00000001u) {
5944     target = stream->EnsureSpace(target);
5945     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_vcpu_pc(), target);
5946   }
5947 
5948   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5949     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5950         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5951   }
5952   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmSetWayFlushFtraceEvent)
5953   return target;
5954 }
5955 
ByteSizeLong() const5956 size_t KvmSetWayFlushFtraceEvent::ByteSizeLong() const {
5957 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmSetWayFlushFtraceEvent)
5958   size_t total_size = 0;
5959 
5960   ::uint32_t cached_has_bits = 0;
5961   // Prevent compiler warnings about cached_has_bits being unused
5962   (void) cached_has_bits;
5963 
5964   cached_has_bits = _impl_._has_bits_[0];
5965   if (cached_has_bits & 0x00000003u) {
5966     // optional uint64 vcpu_pc = 2;
5967     if (cached_has_bits & 0x00000001u) {
5968       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_pc());
5969     }
5970 
5971     // optional uint32 cache = 1;
5972     if (cached_has_bits & 0x00000002u) {
5973       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_cache());
5974     }
5975 
5976   }
5977   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5978     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5979   }
5980   int cached_size = ::_pbi::ToCachedSize(total_size);
5981   SetCachedSize(cached_size);
5982   return total_size;
5983 }
5984 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5985 void KvmSetWayFlushFtraceEvent::CheckTypeAndMergeFrom(
5986     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5987   MergeFrom(*::_pbi::DownCast<const KvmSetWayFlushFtraceEvent*>(
5988       &from));
5989 }
5990 
MergeFrom(const KvmSetWayFlushFtraceEvent & from)5991 void KvmSetWayFlushFtraceEvent::MergeFrom(const KvmSetWayFlushFtraceEvent& from) {
5992   KvmSetWayFlushFtraceEvent* const _this = this;
5993   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmSetWayFlushFtraceEvent)
5994   GOOGLE_DCHECK_NE(&from, _this);
5995   ::uint32_t cached_has_bits = 0;
5996   (void) cached_has_bits;
5997 
5998   cached_has_bits = from._impl_._has_bits_[0];
5999   if (cached_has_bits & 0x00000003u) {
6000     if (cached_has_bits & 0x00000001u) {
6001       _this->_impl_.vcpu_pc_ = from._impl_.vcpu_pc_;
6002     }
6003     if (cached_has_bits & 0x00000002u) {
6004       _this->_impl_.cache_ = from._impl_.cache_;
6005     }
6006     _this->_impl_._has_bits_[0] |= cached_has_bits;
6007   }
6008   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6009 }
6010 
CopyFrom(const KvmSetWayFlushFtraceEvent & from)6011 void KvmSetWayFlushFtraceEvent::CopyFrom(const KvmSetWayFlushFtraceEvent& from) {
6012 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmSetWayFlushFtraceEvent)
6013   if (&from == this) return;
6014   Clear();
6015   MergeFrom(from);
6016 }
6017 
IsInitialized() const6018 bool KvmSetWayFlushFtraceEvent::IsInitialized() const {
6019   return true;
6020 }
6021 
InternalSwap(KvmSetWayFlushFtraceEvent * other)6022 void KvmSetWayFlushFtraceEvent::InternalSwap(KvmSetWayFlushFtraceEvent* other) {
6023   using std::swap;
6024   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6025   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6026   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6027       PROTOBUF_FIELD_OFFSET(KvmSetWayFlushFtraceEvent, _impl_.cache_)
6028       + sizeof(KvmSetWayFlushFtraceEvent::_impl_.cache_)  // NOLINT
6029       - PROTOBUF_FIELD_OFFSET(KvmSetWayFlushFtraceEvent, _impl_.vcpu_pc_)>(
6030           reinterpret_cast<char*>(&_impl_.vcpu_pc_),
6031           reinterpret_cast<char*>(&other->_impl_.vcpu_pc_));
6032 }
6033 
GetTypeName() const6034 std::string KvmSetWayFlushFtraceEvent::GetTypeName() const {
6035   return "perfetto.protos.KvmSetWayFlushFtraceEvent";
6036 }
6037 
6038 
6039 // ===================================================================
6040 
6041 class KvmSysAccessFtraceEvent::_Internal {
6042  public:
6043   using HasBits = decltype(std::declval<KvmSysAccessFtraceEvent>()._impl_._has_bits_);
set_has_crm(HasBits * has_bits)6044   static void set_has_crm(HasBits* has_bits) {
6045     (*has_bits)[0] |= 2u;
6046   }
set_has_crn(HasBits * has_bits)6047   static void set_has_crn(HasBits* has_bits) {
6048     (*has_bits)[0] |= 4u;
6049   }
set_has_op0(HasBits * has_bits)6050   static void set_has_op0(HasBits* has_bits) {
6051     (*has_bits)[0] |= 8u;
6052   }
set_has_op1(HasBits * has_bits)6053   static void set_has_op1(HasBits* has_bits) {
6054     (*has_bits)[0] |= 16u;
6055   }
set_has_op2(HasBits * has_bits)6056   static void set_has_op2(HasBits* has_bits) {
6057     (*has_bits)[0] |= 32u;
6058   }
set_has_is_write(HasBits * has_bits)6059   static void set_has_is_write(HasBits* has_bits) {
6060     (*has_bits)[0] |= 64u;
6061   }
set_has_name(HasBits * has_bits)6062   static void set_has_name(HasBits* has_bits) {
6063     (*has_bits)[0] |= 1u;
6064   }
set_has_vcpu_pc(HasBits * has_bits)6065   static void set_has_vcpu_pc(HasBits* has_bits) {
6066     (*has_bits)[0] |= 128u;
6067   }
6068 };
6069 
KvmSysAccessFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6070 KvmSysAccessFtraceEvent::KvmSysAccessFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6071                          bool is_message_owned)
6072   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6073   SharedCtor(arena, is_message_owned);
6074   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmSysAccessFtraceEvent)
6075 }
KvmSysAccessFtraceEvent(const KvmSysAccessFtraceEvent & from)6076 KvmSysAccessFtraceEvent::KvmSysAccessFtraceEvent(const KvmSysAccessFtraceEvent& from)
6077   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6078   KvmSysAccessFtraceEvent* const _this = this; (void)_this;
6079   new (&_impl_) Impl_{
6080       decltype(_impl_._has_bits_){from._impl_._has_bits_}
6081     , /*decltype(_impl_._cached_size_)*/{}
6082     , decltype(_impl_.name_){}
6083     , decltype(_impl_.crm_){}
6084     , decltype(_impl_.crn_){}
6085     , decltype(_impl_.op0_){}
6086     , decltype(_impl_.op1_){}
6087     , decltype(_impl_.op2_){}
6088     , decltype(_impl_.is_write_){}
6089     , decltype(_impl_.vcpu_pc_){}};
6090 
6091   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6092   _impl_.name_.InitDefault();
6093   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6094     _impl_.name_.Set("", GetArenaForAllocation());
6095   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6096   if (from._internal_has_name()) {
6097     _this->_impl_.name_.Set(from._internal_name(),
6098       _this->GetArenaForAllocation());
6099   }
6100   ::memcpy(&_impl_.crm_, &from._impl_.crm_,
6101     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.vcpu_pc_) -
6102     reinterpret_cast<char*>(&_impl_.crm_)) + sizeof(_impl_.vcpu_pc_));
6103   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmSysAccessFtraceEvent)
6104 }
6105 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6106 inline void KvmSysAccessFtraceEvent::SharedCtor(
6107     ::_pb::Arena* arena, bool is_message_owned) {
6108   (void)arena;
6109   (void)is_message_owned;
6110   new (&_impl_) Impl_{
6111       decltype(_impl_._has_bits_){}
6112     , /*decltype(_impl_._cached_size_)*/{}
6113     , decltype(_impl_.name_){}
6114     , decltype(_impl_.crm_){0u}
6115     , decltype(_impl_.crn_){0u}
6116     , decltype(_impl_.op0_){0u}
6117     , decltype(_impl_.op1_){0u}
6118     , decltype(_impl_.op2_){0u}
6119     , decltype(_impl_.is_write_){0u}
6120     , decltype(_impl_.vcpu_pc_){::uint64_t{0u}}
6121   };
6122   _impl_.name_.InitDefault();
6123   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6124     _impl_.name_.Set("", GetArenaForAllocation());
6125   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6126 }
6127 
~KvmSysAccessFtraceEvent()6128 KvmSysAccessFtraceEvent::~KvmSysAccessFtraceEvent() {
6129   // @@protoc_insertion_point(destructor:perfetto.protos.KvmSysAccessFtraceEvent)
6130   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6131   (void)arena;
6132     return;
6133   }
6134   SharedDtor();
6135 }
6136 
SharedDtor()6137 inline void KvmSysAccessFtraceEvent::SharedDtor() {
6138   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6139   _impl_.name_.Destroy();
6140 }
6141 
SetCachedSize(int size) const6142 void KvmSysAccessFtraceEvent::SetCachedSize(int size) const {
6143   _impl_._cached_size_.Set(size);
6144 }
6145 
Clear()6146 void KvmSysAccessFtraceEvent::Clear() {
6147 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmSysAccessFtraceEvent)
6148   ::uint32_t cached_has_bits = 0;
6149   // Prevent compiler warnings about cached_has_bits being unused
6150   (void) cached_has_bits;
6151 
6152   cached_has_bits = _impl_._has_bits_[0];
6153   if (cached_has_bits & 0x00000001u) {
6154     _impl_.name_.ClearNonDefaultToEmpty();
6155   }
6156   if (cached_has_bits & 0x000000feu) {
6157     ::memset(&_impl_.crm_, 0, static_cast<size_t>(
6158         reinterpret_cast<char*>(&_impl_.vcpu_pc_) -
6159         reinterpret_cast<char*>(&_impl_.crm_)) + sizeof(_impl_.vcpu_pc_));
6160   }
6161   _impl_._has_bits_.Clear();
6162   _internal_metadata_.Clear<std::string>();
6163 }
6164 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6165 const char* KvmSysAccessFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6166 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6167   _Internal::HasBits has_bits{};
6168   while (!ctx->Done(&ptr)) {
6169     ::uint32_t tag;
6170     ptr = ::_pbi::ReadTag(ptr, &tag);
6171     switch (tag >> 3) {
6172       // optional uint32 CRm = 1;
6173       case 1:
6174         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
6175           _Internal::set_has_crm(&has_bits);
6176           _impl_.crm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6177           CHK_(ptr);
6178         } else {
6179           goto handle_unusual;
6180         }
6181         continue;
6182       // optional uint32 CRn = 2;
6183       case 2:
6184         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
6185           _Internal::set_has_crn(&has_bits);
6186           _impl_.crn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6187           CHK_(ptr);
6188         } else {
6189           goto handle_unusual;
6190         }
6191         continue;
6192       // optional uint32 Op0 = 3;
6193       case 3:
6194         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
6195           _Internal::set_has_op0(&has_bits);
6196           _impl_.op0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6197           CHK_(ptr);
6198         } else {
6199           goto handle_unusual;
6200         }
6201         continue;
6202       // optional uint32 Op1 = 4;
6203       case 4:
6204         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
6205           _Internal::set_has_op1(&has_bits);
6206           _impl_.op1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6207           CHK_(ptr);
6208         } else {
6209           goto handle_unusual;
6210         }
6211         continue;
6212       // optional uint32 Op2 = 5;
6213       case 5:
6214         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
6215           _Internal::set_has_op2(&has_bits);
6216           _impl_.op2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6217           CHK_(ptr);
6218         } else {
6219           goto handle_unusual;
6220         }
6221         continue;
6222       // optional uint32 is_write = 6;
6223       case 6:
6224         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
6225           _Internal::set_has_is_write(&has_bits);
6226           _impl_.is_write_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6227           CHK_(ptr);
6228         } else {
6229           goto handle_unusual;
6230         }
6231         continue;
6232       // optional string name = 7;
6233       case 7:
6234         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
6235           auto str = _internal_mutable_name();
6236           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6237           CHK_(ptr);
6238         } else {
6239           goto handle_unusual;
6240         }
6241         continue;
6242       // optional uint64 vcpu_pc = 8;
6243       case 8:
6244         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
6245           _Internal::set_has_vcpu_pc(&has_bits);
6246           _impl_.vcpu_pc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6247           CHK_(ptr);
6248         } else {
6249           goto handle_unusual;
6250         }
6251         continue;
6252       default:
6253         goto handle_unusual;
6254     }  // switch
6255   handle_unusual:
6256     if ((tag == 0) || ((tag & 7) == 4)) {
6257       CHK_(ptr);
6258       ctx->SetLastTag(tag);
6259       goto message_done;
6260     }
6261     ptr = UnknownFieldParse(
6262         tag,
6263         _internal_metadata_.mutable_unknown_fields<std::string>(),
6264         ptr, ctx);
6265     CHK_(ptr != nullptr);
6266   }  // while
6267 message_done:
6268   _impl_._has_bits_.Or(has_bits);
6269   return ptr;
6270 failure:
6271   ptr = nullptr;
6272   goto message_done;
6273 #undef CHK_
6274 }
6275 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6276 ::uint8_t* KvmSysAccessFtraceEvent::_InternalSerialize(
6277     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6278   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmSysAccessFtraceEvent)
6279   ::uint32_t cached_has_bits = 0;
6280   (void) cached_has_bits;
6281 
6282   cached_has_bits = _impl_._has_bits_[0];
6283   // optional uint32 CRm = 1;
6284   if (cached_has_bits & 0x00000002u) {
6285     target = stream->EnsureSpace(target);
6286     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_crm(), target);
6287   }
6288 
6289   // optional uint32 CRn = 2;
6290   if (cached_has_bits & 0x00000004u) {
6291     target = stream->EnsureSpace(target);
6292     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_crn(), target);
6293   }
6294 
6295   // optional uint32 Op0 = 3;
6296   if (cached_has_bits & 0x00000008u) {
6297     target = stream->EnsureSpace(target);
6298     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_op0(), target);
6299   }
6300 
6301   // optional uint32 Op1 = 4;
6302   if (cached_has_bits & 0x00000010u) {
6303     target = stream->EnsureSpace(target);
6304     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_op1(), target);
6305   }
6306 
6307   // optional uint32 Op2 = 5;
6308   if (cached_has_bits & 0x00000020u) {
6309     target = stream->EnsureSpace(target);
6310     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_op2(), target);
6311   }
6312 
6313   // optional uint32 is_write = 6;
6314   if (cached_has_bits & 0x00000040u) {
6315     target = stream->EnsureSpace(target);
6316     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_is_write(), target);
6317   }
6318 
6319   // optional string name = 7;
6320   if (cached_has_bits & 0x00000001u) {
6321     target = stream->WriteStringMaybeAliased(
6322         7, this->_internal_name(), target);
6323   }
6324 
6325   // optional uint64 vcpu_pc = 8;
6326   if (cached_has_bits & 0x00000080u) {
6327     target = stream->EnsureSpace(target);
6328     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(8, this->_internal_vcpu_pc(), target);
6329   }
6330 
6331   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6332     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6333         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6334   }
6335   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmSysAccessFtraceEvent)
6336   return target;
6337 }
6338 
ByteSizeLong() const6339 size_t KvmSysAccessFtraceEvent::ByteSizeLong() const {
6340 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmSysAccessFtraceEvent)
6341   size_t total_size = 0;
6342 
6343   ::uint32_t cached_has_bits = 0;
6344   // Prevent compiler warnings about cached_has_bits being unused
6345   (void) cached_has_bits;
6346 
6347   cached_has_bits = _impl_._has_bits_[0];
6348   if (cached_has_bits & 0x000000ffu) {
6349     // optional string name = 7;
6350     if (cached_has_bits & 0x00000001u) {
6351       total_size += 1 +
6352         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6353           this->_internal_name());
6354     }
6355 
6356     // optional uint32 CRm = 1;
6357     if (cached_has_bits & 0x00000002u) {
6358       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_crm());
6359     }
6360 
6361     // optional uint32 CRn = 2;
6362     if (cached_has_bits & 0x00000004u) {
6363       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_crn());
6364     }
6365 
6366     // optional uint32 Op0 = 3;
6367     if (cached_has_bits & 0x00000008u) {
6368       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_op0());
6369     }
6370 
6371     // optional uint32 Op1 = 4;
6372     if (cached_has_bits & 0x00000010u) {
6373       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_op1());
6374     }
6375 
6376     // optional uint32 Op2 = 5;
6377     if (cached_has_bits & 0x00000020u) {
6378       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_op2());
6379     }
6380 
6381     // optional uint32 is_write = 6;
6382     if (cached_has_bits & 0x00000040u) {
6383       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_is_write());
6384     }
6385 
6386     // optional uint64 vcpu_pc = 8;
6387     if (cached_has_bits & 0x00000080u) {
6388       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_pc());
6389     }
6390 
6391   }
6392   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6393     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6394   }
6395   int cached_size = ::_pbi::ToCachedSize(total_size);
6396   SetCachedSize(cached_size);
6397   return total_size;
6398 }
6399 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6400 void KvmSysAccessFtraceEvent::CheckTypeAndMergeFrom(
6401     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6402   MergeFrom(*::_pbi::DownCast<const KvmSysAccessFtraceEvent*>(
6403       &from));
6404 }
6405 
MergeFrom(const KvmSysAccessFtraceEvent & from)6406 void KvmSysAccessFtraceEvent::MergeFrom(const KvmSysAccessFtraceEvent& from) {
6407   KvmSysAccessFtraceEvent* const _this = this;
6408   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmSysAccessFtraceEvent)
6409   GOOGLE_DCHECK_NE(&from, _this);
6410   ::uint32_t cached_has_bits = 0;
6411   (void) cached_has_bits;
6412 
6413   cached_has_bits = from._impl_._has_bits_[0];
6414   if (cached_has_bits & 0x000000ffu) {
6415     if (cached_has_bits & 0x00000001u) {
6416       _this->_internal_set_name(from._internal_name());
6417     }
6418     if (cached_has_bits & 0x00000002u) {
6419       _this->_impl_.crm_ = from._impl_.crm_;
6420     }
6421     if (cached_has_bits & 0x00000004u) {
6422       _this->_impl_.crn_ = from._impl_.crn_;
6423     }
6424     if (cached_has_bits & 0x00000008u) {
6425       _this->_impl_.op0_ = from._impl_.op0_;
6426     }
6427     if (cached_has_bits & 0x00000010u) {
6428       _this->_impl_.op1_ = from._impl_.op1_;
6429     }
6430     if (cached_has_bits & 0x00000020u) {
6431       _this->_impl_.op2_ = from._impl_.op2_;
6432     }
6433     if (cached_has_bits & 0x00000040u) {
6434       _this->_impl_.is_write_ = from._impl_.is_write_;
6435     }
6436     if (cached_has_bits & 0x00000080u) {
6437       _this->_impl_.vcpu_pc_ = from._impl_.vcpu_pc_;
6438     }
6439     _this->_impl_._has_bits_[0] |= cached_has_bits;
6440   }
6441   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6442 }
6443 
CopyFrom(const KvmSysAccessFtraceEvent & from)6444 void KvmSysAccessFtraceEvent::CopyFrom(const KvmSysAccessFtraceEvent& from) {
6445 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmSysAccessFtraceEvent)
6446   if (&from == this) return;
6447   Clear();
6448   MergeFrom(from);
6449 }
6450 
IsInitialized() const6451 bool KvmSysAccessFtraceEvent::IsInitialized() const {
6452   return true;
6453 }
6454 
InternalSwap(KvmSysAccessFtraceEvent * other)6455 void KvmSysAccessFtraceEvent::InternalSwap(KvmSysAccessFtraceEvent* other) {
6456   using std::swap;
6457   auto* lhs_arena = GetArenaForAllocation();
6458   auto* rhs_arena = other->GetArenaForAllocation();
6459   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6460   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6461   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6462       &_impl_.name_, lhs_arena,
6463       &other->_impl_.name_, rhs_arena
6464   );
6465   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6466       PROTOBUF_FIELD_OFFSET(KvmSysAccessFtraceEvent, _impl_.vcpu_pc_)
6467       + sizeof(KvmSysAccessFtraceEvent::_impl_.vcpu_pc_)  // NOLINT
6468       - PROTOBUF_FIELD_OFFSET(KvmSysAccessFtraceEvent, _impl_.crm_)>(
6469           reinterpret_cast<char*>(&_impl_.crm_),
6470           reinterpret_cast<char*>(&other->_impl_.crm_));
6471 }
6472 
GetTypeName() const6473 std::string KvmSysAccessFtraceEvent::GetTypeName() const {
6474   return "perfetto.protos.KvmSysAccessFtraceEvent";
6475 }
6476 
6477 
6478 // ===================================================================
6479 
6480 class KvmTestAgeHvaFtraceEvent::_Internal {
6481  public:
6482   using HasBits = decltype(std::declval<KvmTestAgeHvaFtraceEvent>()._impl_._has_bits_);
set_has_hva(HasBits * has_bits)6483   static void set_has_hva(HasBits* has_bits) {
6484     (*has_bits)[0] |= 1u;
6485   }
6486 };
6487 
KvmTestAgeHvaFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6488 KvmTestAgeHvaFtraceEvent::KvmTestAgeHvaFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6489                          bool is_message_owned)
6490   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6491   SharedCtor(arena, is_message_owned);
6492   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmTestAgeHvaFtraceEvent)
6493 }
KvmTestAgeHvaFtraceEvent(const KvmTestAgeHvaFtraceEvent & from)6494 KvmTestAgeHvaFtraceEvent::KvmTestAgeHvaFtraceEvent(const KvmTestAgeHvaFtraceEvent& from)
6495   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6496   KvmTestAgeHvaFtraceEvent* const _this = this; (void)_this;
6497   new (&_impl_) Impl_{
6498       decltype(_impl_._has_bits_){from._impl_._has_bits_}
6499     , /*decltype(_impl_._cached_size_)*/{}
6500     , decltype(_impl_.hva_){}};
6501 
6502   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6503   _this->_impl_.hva_ = from._impl_.hva_;
6504   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmTestAgeHvaFtraceEvent)
6505 }
6506 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6507 inline void KvmTestAgeHvaFtraceEvent::SharedCtor(
6508     ::_pb::Arena* arena, bool is_message_owned) {
6509   (void)arena;
6510   (void)is_message_owned;
6511   new (&_impl_) Impl_{
6512       decltype(_impl_._has_bits_){}
6513     , /*decltype(_impl_._cached_size_)*/{}
6514     , decltype(_impl_.hva_){::uint64_t{0u}}
6515   };
6516 }
6517 
~KvmTestAgeHvaFtraceEvent()6518 KvmTestAgeHvaFtraceEvent::~KvmTestAgeHvaFtraceEvent() {
6519   // @@protoc_insertion_point(destructor:perfetto.protos.KvmTestAgeHvaFtraceEvent)
6520   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6521   (void)arena;
6522     return;
6523   }
6524   SharedDtor();
6525 }
6526 
SharedDtor()6527 inline void KvmTestAgeHvaFtraceEvent::SharedDtor() {
6528   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6529 }
6530 
SetCachedSize(int size) const6531 void KvmTestAgeHvaFtraceEvent::SetCachedSize(int size) const {
6532   _impl_._cached_size_.Set(size);
6533 }
6534 
Clear()6535 void KvmTestAgeHvaFtraceEvent::Clear() {
6536 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmTestAgeHvaFtraceEvent)
6537   ::uint32_t cached_has_bits = 0;
6538   // Prevent compiler warnings about cached_has_bits being unused
6539   (void) cached_has_bits;
6540 
6541   _impl_.hva_ = ::uint64_t{0u};
6542   _impl_._has_bits_.Clear();
6543   _internal_metadata_.Clear<std::string>();
6544 }
6545 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6546 const char* KvmTestAgeHvaFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6547 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6548   _Internal::HasBits has_bits{};
6549   while (!ctx->Done(&ptr)) {
6550     ::uint32_t tag;
6551     ptr = ::_pbi::ReadTag(ptr, &tag);
6552     switch (tag >> 3) {
6553       // optional uint64 hva = 1;
6554       case 1:
6555         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
6556           _Internal::set_has_hva(&has_bits);
6557           _impl_.hva_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6558           CHK_(ptr);
6559         } else {
6560           goto handle_unusual;
6561         }
6562         continue;
6563       default:
6564         goto handle_unusual;
6565     }  // switch
6566   handle_unusual:
6567     if ((tag == 0) || ((tag & 7) == 4)) {
6568       CHK_(ptr);
6569       ctx->SetLastTag(tag);
6570       goto message_done;
6571     }
6572     ptr = UnknownFieldParse(
6573         tag,
6574         _internal_metadata_.mutable_unknown_fields<std::string>(),
6575         ptr, ctx);
6576     CHK_(ptr != nullptr);
6577   }  // while
6578 message_done:
6579   _impl_._has_bits_.Or(has_bits);
6580   return ptr;
6581 failure:
6582   ptr = nullptr;
6583   goto message_done;
6584 #undef CHK_
6585 }
6586 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6587 ::uint8_t* KvmTestAgeHvaFtraceEvent::_InternalSerialize(
6588     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6589   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmTestAgeHvaFtraceEvent)
6590   ::uint32_t cached_has_bits = 0;
6591   (void) cached_has_bits;
6592 
6593   cached_has_bits = _impl_._has_bits_[0];
6594   // optional uint64 hva = 1;
6595   if (cached_has_bits & 0x00000001u) {
6596     target = stream->EnsureSpace(target);
6597     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_hva(), target);
6598   }
6599 
6600   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6601     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6602         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6603   }
6604   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmTestAgeHvaFtraceEvent)
6605   return target;
6606 }
6607 
ByteSizeLong() const6608 size_t KvmTestAgeHvaFtraceEvent::ByteSizeLong() const {
6609 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmTestAgeHvaFtraceEvent)
6610   size_t total_size = 0;
6611 
6612   ::uint32_t cached_has_bits = 0;
6613   // Prevent compiler warnings about cached_has_bits being unused
6614   (void) cached_has_bits;
6615 
6616   // optional uint64 hva = 1;
6617   cached_has_bits = _impl_._has_bits_[0];
6618   if (cached_has_bits & 0x00000001u) {
6619     total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_hva());
6620   }
6621 
6622   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6623     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6624   }
6625   int cached_size = ::_pbi::ToCachedSize(total_size);
6626   SetCachedSize(cached_size);
6627   return total_size;
6628 }
6629 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6630 void KvmTestAgeHvaFtraceEvent::CheckTypeAndMergeFrom(
6631     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6632   MergeFrom(*::_pbi::DownCast<const KvmTestAgeHvaFtraceEvent*>(
6633       &from));
6634 }
6635 
MergeFrom(const KvmTestAgeHvaFtraceEvent & from)6636 void KvmTestAgeHvaFtraceEvent::MergeFrom(const KvmTestAgeHvaFtraceEvent& from) {
6637   KvmTestAgeHvaFtraceEvent* const _this = this;
6638   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmTestAgeHvaFtraceEvent)
6639   GOOGLE_DCHECK_NE(&from, _this);
6640   ::uint32_t cached_has_bits = 0;
6641   (void) cached_has_bits;
6642 
6643   if (from._internal_has_hva()) {
6644     _this->_internal_set_hva(from._internal_hva());
6645   }
6646   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6647 }
6648 
CopyFrom(const KvmTestAgeHvaFtraceEvent & from)6649 void KvmTestAgeHvaFtraceEvent::CopyFrom(const KvmTestAgeHvaFtraceEvent& from) {
6650 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmTestAgeHvaFtraceEvent)
6651   if (&from == this) return;
6652   Clear();
6653   MergeFrom(from);
6654 }
6655 
IsInitialized() const6656 bool KvmTestAgeHvaFtraceEvent::IsInitialized() const {
6657   return true;
6658 }
6659 
InternalSwap(KvmTestAgeHvaFtraceEvent * other)6660 void KvmTestAgeHvaFtraceEvent::InternalSwap(KvmTestAgeHvaFtraceEvent* other) {
6661   using std::swap;
6662   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6663   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6664   swap(_impl_.hva_, other->_impl_.hva_);
6665 }
6666 
GetTypeName() const6667 std::string KvmTestAgeHvaFtraceEvent::GetTypeName() const {
6668   return "perfetto.protos.KvmTestAgeHvaFtraceEvent";
6669 }
6670 
6671 
6672 // ===================================================================
6673 
6674 class KvmTimerEmulateFtraceEvent::_Internal {
6675  public:
6676   using HasBits = decltype(std::declval<KvmTimerEmulateFtraceEvent>()._impl_._has_bits_);
set_has_should_fire(HasBits * has_bits)6677   static void set_has_should_fire(HasBits* has_bits) {
6678     (*has_bits)[0] |= 1u;
6679   }
set_has_timer_idx(HasBits * has_bits)6680   static void set_has_timer_idx(HasBits* has_bits) {
6681     (*has_bits)[0] |= 2u;
6682   }
6683 };
6684 
KvmTimerEmulateFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6685 KvmTimerEmulateFtraceEvent::KvmTimerEmulateFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6686                          bool is_message_owned)
6687   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6688   SharedCtor(arena, is_message_owned);
6689   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmTimerEmulateFtraceEvent)
6690 }
KvmTimerEmulateFtraceEvent(const KvmTimerEmulateFtraceEvent & from)6691 KvmTimerEmulateFtraceEvent::KvmTimerEmulateFtraceEvent(const KvmTimerEmulateFtraceEvent& from)
6692   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6693   KvmTimerEmulateFtraceEvent* const _this = this; (void)_this;
6694   new (&_impl_) Impl_{
6695       decltype(_impl_._has_bits_){from._impl_._has_bits_}
6696     , /*decltype(_impl_._cached_size_)*/{}
6697     , decltype(_impl_.should_fire_){}
6698     , decltype(_impl_.timer_idx_){}};
6699 
6700   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6701   ::memcpy(&_impl_.should_fire_, &from._impl_.should_fire_,
6702     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.timer_idx_) -
6703     reinterpret_cast<char*>(&_impl_.should_fire_)) + sizeof(_impl_.timer_idx_));
6704   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmTimerEmulateFtraceEvent)
6705 }
6706 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6707 inline void KvmTimerEmulateFtraceEvent::SharedCtor(
6708     ::_pb::Arena* arena, bool is_message_owned) {
6709   (void)arena;
6710   (void)is_message_owned;
6711   new (&_impl_) Impl_{
6712       decltype(_impl_._has_bits_){}
6713     , /*decltype(_impl_._cached_size_)*/{}
6714     , decltype(_impl_.should_fire_){0u}
6715     , decltype(_impl_.timer_idx_){0}
6716   };
6717 }
6718 
~KvmTimerEmulateFtraceEvent()6719 KvmTimerEmulateFtraceEvent::~KvmTimerEmulateFtraceEvent() {
6720   // @@protoc_insertion_point(destructor:perfetto.protos.KvmTimerEmulateFtraceEvent)
6721   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6722   (void)arena;
6723     return;
6724   }
6725   SharedDtor();
6726 }
6727 
SharedDtor()6728 inline void KvmTimerEmulateFtraceEvent::SharedDtor() {
6729   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6730 }
6731 
SetCachedSize(int size) const6732 void KvmTimerEmulateFtraceEvent::SetCachedSize(int size) const {
6733   _impl_._cached_size_.Set(size);
6734 }
6735 
Clear()6736 void KvmTimerEmulateFtraceEvent::Clear() {
6737 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmTimerEmulateFtraceEvent)
6738   ::uint32_t cached_has_bits = 0;
6739   // Prevent compiler warnings about cached_has_bits being unused
6740   (void) cached_has_bits;
6741 
6742   cached_has_bits = _impl_._has_bits_[0];
6743   if (cached_has_bits & 0x00000003u) {
6744     ::memset(&_impl_.should_fire_, 0, static_cast<size_t>(
6745         reinterpret_cast<char*>(&_impl_.timer_idx_) -
6746         reinterpret_cast<char*>(&_impl_.should_fire_)) + sizeof(_impl_.timer_idx_));
6747   }
6748   _impl_._has_bits_.Clear();
6749   _internal_metadata_.Clear<std::string>();
6750 }
6751 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6752 const char* KvmTimerEmulateFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6753 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6754   _Internal::HasBits has_bits{};
6755   while (!ctx->Done(&ptr)) {
6756     ::uint32_t tag;
6757     ptr = ::_pbi::ReadTag(ptr, &tag);
6758     switch (tag >> 3) {
6759       // optional uint32 should_fire = 1;
6760       case 1:
6761         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
6762           _Internal::set_has_should_fire(&has_bits);
6763           _impl_.should_fire_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6764           CHK_(ptr);
6765         } else {
6766           goto handle_unusual;
6767         }
6768         continue;
6769       // optional int32 timer_idx = 2;
6770       case 2:
6771         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
6772           _Internal::set_has_timer_idx(&has_bits);
6773           _impl_.timer_idx_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6774           CHK_(ptr);
6775         } else {
6776           goto handle_unusual;
6777         }
6778         continue;
6779       default:
6780         goto handle_unusual;
6781     }  // switch
6782   handle_unusual:
6783     if ((tag == 0) || ((tag & 7) == 4)) {
6784       CHK_(ptr);
6785       ctx->SetLastTag(tag);
6786       goto message_done;
6787     }
6788     ptr = UnknownFieldParse(
6789         tag,
6790         _internal_metadata_.mutable_unknown_fields<std::string>(),
6791         ptr, ctx);
6792     CHK_(ptr != nullptr);
6793   }  // while
6794 message_done:
6795   _impl_._has_bits_.Or(has_bits);
6796   return ptr;
6797 failure:
6798   ptr = nullptr;
6799   goto message_done;
6800 #undef CHK_
6801 }
6802 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6803 ::uint8_t* KvmTimerEmulateFtraceEvent::_InternalSerialize(
6804     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6805   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmTimerEmulateFtraceEvent)
6806   ::uint32_t cached_has_bits = 0;
6807   (void) cached_has_bits;
6808 
6809   cached_has_bits = _impl_._has_bits_[0];
6810   // optional uint32 should_fire = 1;
6811   if (cached_has_bits & 0x00000001u) {
6812     target = stream->EnsureSpace(target);
6813     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_should_fire(), target);
6814   }
6815 
6816   // optional int32 timer_idx = 2;
6817   if (cached_has_bits & 0x00000002u) {
6818     target = stream->EnsureSpace(target);
6819     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_timer_idx(), target);
6820   }
6821 
6822   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6823     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6824         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6825   }
6826   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmTimerEmulateFtraceEvent)
6827   return target;
6828 }
6829 
ByteSizeLong() const6830 size_t KvmTimerEmulateFtraceEvent::ByteSizeLong() const {
6831 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmTimerEmulateFtraceEvent)
6832   size_t total_size = 0;
6833 
6834   ::uint32_t cached_has_bits = 0;
6835   // Prevent compiler warnings about cached_has_bits being unused
6836   (void) cached_has_bits;
6837 
6838   cached_has_bits = _impl_._has_bits_[0];
6839   if (cached_has_bits & 0x00000003u) {
6840     // optional uint32 should_fire = 1;
6841     if (cached_has_bits & 0x00000001u) {
6842       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_should_fire());
6843     }
6844 
6845     // optional int32 timer_idx = 2;
6846     if (cached_has_bits & 0x00000002u) {
6847       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_timer_idx());
6848     }
6849 
6850   }
6851   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6852     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6853   }
6854   int cached_size = ::_pbi::ToCachedSize(total_size);
6855   SetCachedSize(cached_size);
6856   return total_size;
6857 }
6858 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6859 void KvmTimerEmulateFtraceEvent::CheckTypeAndMergeFrom(
6860     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6861   MergeFrom(*::_pbi::DownCast<const KvmTimerEmulateFtraceEvent*>(
6862       &from));
6863 }
6864 
MergeFrom(const KvmTimerEmulateFtraceEvent & from)6865 void KvmTimerEmulateFtraceEvent::MergeFrom(const KvmTimerEmulateFtraceEvent& from) {
6866   KvmTimerEmulateFtraceEvent* const _this = this;
6867   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmTimerEmulateFtraceEvent)
6868   GOOGLE_DCHECK_NE(&from, _this);
6869   ::uint32_t cached_has_bits = 0;
6870   (void) cached_has_bits;
6871 
6872   cached_has_bits = from._impl_._has_bits_[0];
6873   if (cached_has_bits & 0x00000003u) {
6874     if (cached_has_bits & 0x00000001u) {
6875       _this->_impl_.should_fire_ = from._impl_.should_fire_;
6876     }
6877     if (cached_has_bits & 0x00000002u) {
6878       _this->_impl_.timer_idx_ = from._impl_.timer_idx_;
6879     }
6880     _this->_impl_._has_bits_[0] |= cached_has_bits;
6881   }
6882   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6883 }
6884 
CopyFrom(const KvmTimerEmulateFtraceEvent & from)6885 void KvmTimerEmulateFtraceEvent::CopyFrom(const KvmTimerEmulateFtraceEvent& from) {
6886 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmTimerEmulateFtraceEvent)
6887   if (&from == this) return;
6888   Clear();
6889   MergeFrom(from);
6890 }
6891 
IsInitialized() const6892 bool KvmTimerEmulateFtraceEvent::IsInitialized() const {
6893   return true;
6894 }
6895 
InternalSwap(KvmTimerEmulateFtraceEvent * other)6896 void KvmTimerEmulateFtraceEvent::InternalSwap(KvmTimerEmulateFtraceEvent* other) {
6897   using std::swap;
6898   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6899   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6900   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6901       PROTOBUF_FIELD_OFFSET(KvmTimerEmulateFtraceEvent, _impl_.timer_idx_)
6902       + sizeof(KvmTimerEmulateFtraceEvent::_impl_.timer_idx_)  // NOLINT
6903       - PROTOBUF_FIELD_OFFSET(KvmTimerEmulateFtraceEvent, _impl_.should_fire_)>(
6904           reinterpret_cast<char*>(&_impl_.should_fire_),
6905           reinterpret_cast<char*>(&other->_impl_.should_fire_));
6906 }
6907 
GetTypeName() const6908 std::string KvmTimerEmulateFtraceEvent::GetTypeName() const {
6909   return "perfetto.protos.KvmTimerEmulateFtraceEvent";
6910 }
6911 
6912 
6913 // ===================================================================
6914 
6915 class KvmTimerHrtimerExpireFtraceEvent::_Internal {
6916  public:
6917   using HasBits = decltype(std::declval<KvmTimerHrtimerExpireFtraceEvent>()._impl_._has_bits_);
set_has_timer_idx(HasBits * has_bits)6918   static void set_has_timer_idx(HasBits* has_bits) {
6919     (*has_bits)[0] |= 1u;
6920   }
6921 };
6922 
KvmTimerHrtimerExpireFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6923 KvmTimerHrtimerExpireFtraceEvent::KvmTimerHrtimerExpireFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6924                          bool is_message_owned)
6925   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6926   SharedCtor(arena, is_message_owned);
6927   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmTimerHrtimerExpireFtraceEvent)
6928 }
KvmTimerHrtimerExpireFtraceEvent(const KvmTimerHrtimerExpireFtraceEvent & from)6929 KvmTimerHrtimerExpireFtraceEvent::KvmTimerHrtimerExpireFtraceEvent(const KvmTimerHrtimerExpireFtraceEvent& from)
6930   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6931   KvmTimerHrtimerExpireFtraceEvent* const _this = this; (void)_this;
6932   new (&_impl_) Impl_{
6933       decltype(_impl_._has_bits_){from._impl_._has_bits_}
6934     , /*decltype(_impl_._cached_size_)*/{}
6935     , decltype(_impl_.timer_idx_){}};
6936 
6937   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6938   _this->_impl_.timer_idx_ = from._impl_.timer_idx_;
6939   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmTimerHrtimerExpireFtraceEvent)
6940 }
6941 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6942 inline void KvmTimerHrtimerExpireFtraceEvent::SharedCtor(
6943     ::_pb::Arena* arena, bool is_message_owned) {
6944   (void)arena;
6945   (void)is_message_owned;
6946   new (&_impl_) Impl_{
6947       decltype(_impl_._has_bits_){}
6948     , /*decltype(_impl_._cached_size_)*/{}
6949     , decltype(_impl_.timer_idx_){0}
6950   };
6951 }
6952 
~KvmTimerHrtimerExpireFtraceEvent()6953 KvmTimerHrtimerExpireFtraceEvent::~KvmTimerHrtimerExpireFtraceEvent() {
6954   // @@protoc_insertion_point(destructor:perfetto.protos.KvmTimerHrtimerExpireFtraceEvent)
6955   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6956   (void)arena;
6957     return;
6958   }
6959   SharedDtor();
6960 }
6961 
SharedDtor()6962 inline void KvmTimerHrtimerExpireFtraceEvent::SharedDtor() {
6963   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6964 }
6965 
SetCachedSize(int size) const6966 void KvmTimerHrtimerExpireFtraceEvent::SetCachedSize(int size) const {
6967   _impl_._cached_size_.Set(size);
6968 }
6969 
Clear()6970 void KvmTimerHrtimerExpireFtraceEvent::Clear() {
6971 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmTimerHrtimerExpireFtraceEvent)
6972   ::uint32_t cached_has_bits = 0;
6973   // Prevent compiler warnings about cached_has_bits being unused
6974   (void) cached_has_bits;
6975 
6976   _impl_.timer_idx_ = 0;
6977   _impl_._has_bits_.Clear();
6978   _internal_metadata_.Clear<std::string>();
6979 }
6980 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6981 const char* KvmTimerHrtimerExpireFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6982 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6983   _Internal::HasBits has_bits{};
6984   while (!ctx->Done(&ptr)) {
6985     ::uint32_t tag;
6986     ptr = ::_pbi::ReadTag(ptr, &tag);
6987     switch (tag >> 3) {
6988       // optional int32 timer_idx = 1;
6989       case 1:
6990         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
6991           _Internal::set_has_timer_idx(&has_bits);
6992           _impl_.timer_idx_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6993           CHK_(ptr);
6994         } else {
6995           goto handle_unusual;
6996         }
6997         continue;
6998       default:
6999         goto handle_unusual;
7000     }  // switch
7001   handle_unusual:
7002     if ((tag == 0) || ((tag & 7) == 4)) {
7003       CHK_(ptr);
7004       ctx->SetLastTag(tag);
7005       goto message_done;
7006     }
7007     ptr = UnknownFieldParse(
7008         tag,
7009         _internal_metadata_.mutable_unknown_fields<std::string>(),
7010         ptr, ctx);
7011     CHK_(ptr != nullptr);
7012   }  // while
7013 message_done:
7014   _impl_._has_bits_.Or(has_bits);
7015   return ptr;
7016 failure:
7017   ptr = nullptr;
7018   goto message_done;
7019 #undef CHK_
7020 }
7021 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7022 ::uint8_t* KvmTimerHrtimerExpireFtraceEvent::_InternalSerialize(
7023     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7024   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmTimerHrtimerExpireFtraceEvent)
7025   ::uint32_t cached_has_bits = 0;
7026   (void) cached_has_bits;
7027 
7028   cached_has_bits = _impl_._has_bits_[0];
7029   // optional int32 timer_idx = 1;
7030   if (cached_has_bits & 0x00000001u) {
7031     target = stream->EnsureSpace(target);
7032     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_timer_idx(), target);
7033   }
7034 
7035   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7036     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7037         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7038   }
7039   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmTimerHrtimerExpireFtraceEvent)
7040   return target;
7041 }
7042 
ByteSizeLong() const7043 size_t KvmTimerHrtimerExpireFtraceEvent::ByteSizeLong() const {
7044 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmTimerHrtimerExpireFtraceEvent)
7045   size_t total_size = 0;
7046 
7047   ::uint32_t cached_has_bits = 0;
7048   // Prevent compiler warnings about cached_has_bits being unused
7049   (void) cached_has_bits;
7050 
7051   // optional int32 timer_idx = 1;
7052   cached_has_bits = _impl_._has_bits_[0];
7053   if (cached_has_bits & 0x00000001u) {
7054     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_timer_idx());
7055   }
7056 
7057   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7058     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7059   }
7060   int cached_size = ::_pbi::ToCachedSize(total_size);
7061   SetCachedSize(cached_size);
7062   return total_size;
7063 }
7064 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7065 void KvmTimerHrtimerExpireFtraceEvent::CheckTypeAndMergeFrom(
7066     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7067   MergeFrom(*::_pbi::DownCast<const KvmTimerHrtimerExpireFtraceEvent*>(
7068       &from));
7069 }
7070 
MergeFrom(const KvmTimerHrtimerExpireFtraceEvent & from)7071 void KvmTimerHrtimerExpireFtraceEvent::MergeFrom(const KvmTimerHrtimerExpireFtraceEvent& from) {
7072   KvmTimerHrtimerExpireFtraceEvent* const _this = this;
7073   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmTimerHrtimerExpireFtraceEvent)
7074   GOOGLE_DCHECK_NE(&from, _this);
7075   ::uint32_t cached_has_bits = 0;
7076   (void) cached_has_bits;
7077 
7078   if (from._internal_has_timer_idx()) {
7079     _this->_internal_set_timer_idx(from._internal_timer_idx());
7080   }
7081   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7082 }
7083 
CopyFrom(const KvmTimerHrtimerExpireFtraceEvent & from)7084 void KvmTimerHrtimerExpireFtraceEvent::CopyFrom(const KvmTimerHrtimerExpireFtraceEvent& from) {
7085 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmTimerHrtimerExpireFtraceEvent)
7086   if (&from == this) return;
7087   Clear();
7088   MergeFrom(from);
7089 }
7090 
IsInitialized() const7091 bool KvmTimerHrtimerExpireFtraceEvent::IsInitialized() const {
7092   return true;
7093 }
7094 
InternalSwap(KvmTimerHrtimerExpireFtraceEvent * other)7095 void KvmTimerHrtimerExpireFtraceEvent::InternalSwap(KvmTimerHrtimerExpireFtraceEvent* other) {
7096   using std::swap;
7097   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7098   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7099   swap(_impl_.timer_idx_, other->_impl_.timer_idx_);
7100 }
7101 
GetTypeName() const7102 std::string KvmTimerHrtimerExpireFtraceEvent::GetTypeName() const {
7103   return "perfetto.protos.KvmTimerHrtimerExpireFtraceEvent";
7104 }
7105 
7106 
7107 // ===================================================================
7108 
7109 class KvmTimerRestoreStateFtraceEvent::_Internal {
7110  public:
7111   using HasBits = decltype(std::declval<KvmTimerRestoreStateFtraceEvent>()._impl_._has_bits_);
set_has_ctl(HasBits * has_bits)7112   static void set_has_ctl(HasBits* has_bits) {
7113     (*has_bits)[0] |= 1u;
7114   }
set_has_cval(HasBits * has_bits)7115   static void set_has_cval(HasBits* has_bits) {
7116     (*has_bits)[0] |= 2u;
7117   }
set_has_timer_idx(HasBits * has_bits)7118   static void set_has_timer_idx(HasBits* has_bits) {
7119     (*has_bits)[0] |= 4u;
7120   }
7121 };
7122 
KvmTimerRestoreStateFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7123 KvmTimerRestoreStateFtraceEvent::KvmTimerRestoreStateFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7124                          bool is_message_owned)
7125   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7126   SharedCtor(arena, is_message_owned);
7127   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmTimerRestoreStateFtraceEvent)
7128 }
KvmTimerRestoreStateFtraceEvent(const KvmTimerRestoreStateFtraceEvent & from)7129 KvmTimerRestoreStateFtraceEvent::KvmTimerRestoreStateFtraceEvent(const KvmTimerRestoreStateFtraceEvent& from)
7130   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7131   KvmTimerRestoreStateFtraceEvent* const _this = this; (void)_this;
7132   new (&_impl_) Impl_{
7133       decltype(_impl_._has_bits_){from._impl_._has_bits_}
7134     , /*decltype(_impl_._cached_size_)*/{}
7135     , decltype(_impl_.ctl_){}
7136     , decltype(_impl_.cval_){}
7137     , decltype(_impl_.timer_idx_){}};
7138 
7139   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7140   ::memcpy(&_impl_.ctl_, &from._impl_.ctl_,
7141     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.timer_idx_) -
7142     reinterpret_cast<char*>(&_impl_.ctl_)) + sizeof(_impl_.timer_idx_));
7143   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmTimerRestoreStateFtraceEvent)
7144 }
7145 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7146 inline void KvmTimerRestoreStateFtraceEvent::SharedCtor(
7147     ::_pb::Arena* arena, bool is_message_owned) {
7148   (void)arena;
7149   (void)is_message_owned;
7150   new (&_impl_) Impl_{
7151       decltype(_impl_._has_bits_){}
7152     , /*decltype(_impl_._cached_size_)*/{}
7153     , decltype(_impl_.ctl_){::uint64_t{0u}}
7154     , decltype(_impl_.cval_){::uint64_t{0u}}
7155     , decltype(_impl_.timer_idx_){0}
7156   };
7157 }
7158 
~KvmTimerRestoreStateFtraceEvent()7159 KvmTimerRestoreStateFtraceEvent::~KvmTimerRestoreStateFtraceEvent() {
7160   // @@protoc_insertion_point(destructor:perfetto.protos.KvmTimerRestoreStateFtraceEvent)
7161   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7162   (void)arena;
7163     return;
7164   }
7165   SharedDtor();
7166 }
7167 
SharedDtor()7168 inline void KvmTimerRestoreStateFtraceEvent::SharedDtor() {
7169   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7170 }
7171 
SetCachedSize(int size) const7172 void KvmTimerRestoreStateFtraceEvent::SetCachedSize(int size) const {
7173   _impl_._cached_size_.Set(size);
7174 }
7175 
Clear()7176 void KvmTimerRestoreStateFtraceEvent::Clear() {
7177 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmTimerRestoreStateFtraceEvent)
7178   ::uint32_t cached_has_bits = 0;
7179   // Prevent compiler warnings about cached_has_bits being unused
7180   (void) cached_has_bits;
7181 
7182   cached_has_bits = _impl_._has_bits_[0];
7183   if (cached_has_bits & 0x00000007u) {
7184     ::memset(&_impl_.ctl_, 0, static_cast<size_t>(
7185         reinterpret_cast<char*>(&_impl_.timer_idx_) -
7186         reinterpret_cast<char*>(&_impl_.ctl_)) + sizeof(_impl_.timer_idx_));
7187   }
7188   _impl_._has_bits_.Clear();
7189   _internal_metadata_.Clear<std::string>();
7190 }
7191 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7192 const char* KvmTimerRestoreStateFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7193 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7194   _Internal::HasBits has_bits{};
7195   while (!ctx->Done(&ptr)) {
7196     ::uint32_t tag;
7197     ptr = ::_pbi::ReadTag(ptr, &tag);
7198     switch (tag >> 3) {
7199       // optional uint64 ctl = 1;
7200       case 1:
7201         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
7202           _Internal::set_has_ctl(&has_bits);
7203           _impl_.ctl_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7204           CHK_(ptr);
7205         } else {
7206           goto handle_unusual;
7207         }
7208         continue;
7209       // optional uint64 cval = 2;
7210       case 2:
7211         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
7212           _Internal::set_has_cval(&has_bits);
7213           _impl_.cval_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7214           CHK_(ptr);
7215         } else {
7216           goto handle_unusual;
7217         }
7218         continue;
7219       // optional int32 timer_idx = 3;
7220       case 3:
7221         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
7222           _Internal::set_has_timer_idx(&has_bits);
7223           _impl_.timer_idx_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
7224           CHK_(ptr);
7225         } else {
7226           goto handle_unusual;
7227         }
7228         continue;
7229       default:
7230         goto handle_unusual;
7231     }  // switch
7232   handle_unusual:
7233     if ((tag == 0) || ((tag & 7) == 4)) {
7234       CHK_(ptr);
7235       ctx->SetLastTag(tag);
7236       goto message_done;
7237     }
7238     ptr = UnknownFieldParse(
7239         tag,
7240         _internal_metadata_.mutable_unknown_fields<std::string>(),
7241         ptr, ctx);
7242     CHK_(ptr != nullptr);
7243   }  // while
7244 message_done:
7245   _impl_._has_bits_.Or(has_bits);
7246   return ptr;
7247 failure:
7248   ptr = nullptr;
7249   goto message_done;
7250 #undef CHK_
7251 }
7252 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7253 ::uint8_t* KvmTimerRestoreStateFtraceEvent::_InternalSerialize(
7254     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7255   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmTimerRestoreStateFtraceEvent)
7256   ::uint32_t cached_has_bits = 0;
7257   (void) cached_has_bits;
7258 
7259   cached_has_bits = _impl_._has_bits_[0];
7260   // optional uint64 ctl = 1;
7261   if (cached_has_bits & 0x00000001u) {
7262     target = stream->EnsureSpace(target);
7263     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_ctl(), target);
7264   }
7265 
7266   // optional uint64 cval = 2;
7267   if (cached_has_bits & 0x00000002u) {
7268     target = stream->EnsureSpace(target);
7269     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_cval(), target);
7270   }
7271 
7272   // optional int32 timer_idx = 3;
7273   if (cached_has_bits & 0x00000004u) {
7274     target = stream->EnsureSpace(target);
7275     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_timer_idx(), target);
7276   }
7277 
7278   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7279     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7280         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7281   }
7282   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmTimerRestoreStateFtraceEvent)
7283   return target;
7284 }
7285 
ByteSizeLong() const7286 size_t KvmTimerRestoreStateFtraceEvent::ByteSizeLong() const {
7287 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmTimerRestoreStateFtraceEvent)
7288   size_t total_size = 0;
7289 
7290   ::uint32_t cached_has_bits = 0;
7291   // Prevent compiler warnings about cached_has_bits being unused
7292   (void) cached_has_bits;
7293 
7294   cached_has_bits = _impl_._has_bits_[0];
7295   if (cached_has_bits & 0x00000007u) {
7296     // optional uint64 ctl = 1;
7297     if (cached_has_bits & 0x00000001u) {
7298       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ctl());
7299     }
7300 
7301     // optional uint64 cval = 2;
7302     if (cached_has_bits & 0x00000002u) {
7303       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_cval());
7304     }
7305 
7306     // optional int32 timer_idx = 3;
7307     if (cached_has_bits & 0x00000004u) {
7308       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_timer_idx());
7309     }
7310 
7311   }
7312   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7313     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7314   }
7315   int cached_size = ::_pbi::ToCachedSize(total_size);
7316   SetCachedSize(cached_size);
7317   return total_size;
7318 }
7319 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7320 void KvmTimerRestoreStateFtraceEvent::CheckTypeAndMergeFrom(
7321     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7322   MergeFrom(*::_pbi::DownCast<const KvmTimerRestoreStateFtraceEvent*>(
7323       &from));
7324 }
7325 
MergeFrom(const KvmTimerRestoreStateFtraceEvent & from)7326 void KvmTimerRestoreStateFtraceEvent::MergeFrom(const KvmTimerRestoreStateFtraceEvent& from) {
7327   KvmTimerRestoreStateFtraceEvent* const _this = this;
7328   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmTimerRestoreStateFtraceEvent)
7329   GOOGLE_DCHECK_NE(&from, _this);
7330   ::uint32_t cached_has_bits = 0;
7331   (void) cached_has_bits;
7332 
7333   cached_has_bits = from._impl_._has_bits_[0];
7334   if (cached_has_bits & 0x00000007u) {
7335     if (cached_has_bits & 0x00000001u) {
7336       _this->_impl_.ctl_ = from._impl_.ctl_;
7337     }
7338     if (cached_has_bits & 0x00000002u) {
7339       _this->_impl_.cval_ = from._impl_.cval_;
7340     }
7341     if (cached_has_bits & 0x00000004u) {
7342       _this->_impl_.timer_idx_ = from._impl_.timer_idx_;
7343     }
7344     _this->_impl_._has_bits_[0] |= cached_has_bits;
7345   }
7346   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7347 }
7348 
CopyFrom(const KvmTimerRestoreStateFtraceEvent & from)7349 void KvmTimerRestoreStateFtraceEvent::CopyFrom(const KvmTimerRestoreStateFtraceEvent& from) {
7350 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmTimerRestoreStateFtraceEvent)
7351   if (&from == this) return;
7352   Clear();
7353   MergeFrom(from);
7354 }
7355 
IsInitialized() const7356 bool KvmTimerRestoreStateFtraceEvent::IsInitialized() const {
7357   return true;
7358 }
7359 
InternalSwap(KvmTimerRestoreStateFtraceEvent * other)7360 void KvmTimerRestoreStateFtraceEvent::InternalSwap(KvmTimerRestoreStateFtraceEvent* other) {
7361   using std::swap;
7362   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7363   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7364   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7365       PROTOBUF_FIELD_OFFSET(KvmTimerRestoreStateFtraceEvent, _impl_.timer_idx_)
7366       + sizeof(KvmTimerRestoreStateFtraceEvent::_impl_.timer_idx_)  // NOLINT
7367       - PROTOBUF_FIELD_OFFSET(KvmTimerRestoreStateFtraceEvent, _impl_.ctl_)>(
7368           reinterpret_cast<char*>(&_impl_.ctl_),
7369           reinterpret_cast<char*>(&other->_impl_.ctl_));
7370 }
7371 
GetTypeName() const7372 std::string KvmTimerRestoreStateFtraceEvent::GetTypeName() const {
7373   return "perfetto.protos.KvmTimerRestoreStateFtraceEvent";
7374 }
7375 
7376 
7377 // ===================================================================
7378 
7379 class KvmTimerSaveStateFtraceEvent::_Internal {
7380  public:
7381   using HasBits = decltype(std::declval<KvmTimerSaveStateFtraceEvent>()._impl_._has_bits_);
set_has_ctl(HasBits * has_bits)7382   static void set_has_ctl(HasBits* has_bits) {
7383     (*has_bits)[0] |= 1u;
7384   }
set_has_cval(HasBits * has_bits)7385   static void set_has_cval(HasBits* has_bits) {
7386     (*has_bits)[0] |= 2u;
7387   }
set_has_timer_idx(HasBits * has_bits)7388   static void set_has_timer_idx(HasBits* has_bits) {
7389     (*has_bits)[0] |= 4u;
7390   }
7391 };
7392 
KvmTimerSaveStateFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7393 KvmTimerSaveStateFtraceEvent::KvmTimerSaveStateFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7394                          bool is_message_owned)
7395   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7396   SharedCtor(arena, is_message_owned);
7397   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmTimerSaveStateFtraceEvent)
7398 }
KvmTimerSaveStateFtraceEvent(const KvmTimerSaveStateFtraceEvent & from)7399 KvmTimerSaveStateFtraceEvent::KvmTimerSaveStateFtraceEvent(const KvmTimerSaveStateFtraceEvent& from)
7400   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7401   KvmTimerSaveStateFtraceEvent* const _this = this; (void)_this;
7402   new (&_impl_) Impl_{
7403       decltype(_impl_._has_bits_){from._impl_._has_bits_}
7404     , /*decltype(_impl_._cached_size_)*/{}
7405     , decltype(_impl_.ctl_){}
7406     , decltype(_impl_.cval_){}
7407     , decltype(_impl_.timer_idx_){}};
7408 
7409   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7410   ::memcpy(&_impl_.ctl_, &from._impl_.ctl_,
7411     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.timer_idx_) -
7412     reinterpret_cast<char*>(&_impl_.ctl_)) + sizeof(_impl_.timer_idx_));
7413   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmTimerSaveStateFtraceEvent)
7414 }
7415 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7416 inline void KvmTimerSaveStateFtraceEvent::SharedCtor(
7417     ::_pb::Arena* arena, bool is_message_owned) {
7418   (void)arena;
7419   (void)is_message_owned;
7420   new (&_impl_) Impl_{
7421       decltype(_impl_._has_bits_){}
7422     , /*decltype(_impl_._cached_size_)*/{}
7423     , decltype(_impl_.ctl_){::uint64_t{0u}}
7424     , decltype(_impl_.cval_){::uint64_t{0u}}
7425     , decltype(_impl_.timer_idx_){0}
7426   };
7427 }
7428 
~KvmTimerSaveStateFtraceEvent()7429 KvmTimerSaveStateFtraceEvent::~KvmTimerSaveStateFtraceEvent() {
7430   // @@protoc_insertion_point(destructor:perfetto.protos.KvmTimerSaveStateFtraceEvent)
7431   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7432   (void)arena;
7433     return;
7434   }
7435   SharedDtor();
7436 }
7437 
SharedDtor()7438 inline void KvmTimerSaveStateFtraceEvent::SharedDtor() {
7439   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7440 }
7441 
SetCachedSize(int size) const7442 void KvmTimerSaveStateFtraceEvent::SetCachedSize(int size) const {
7443   _impl_._cached_size_.Set(size);
7444 }
7445 
Clear()7446 void KvmTimerSaveStateFtraceEvent::Clear() {
7447 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmTimerSaveStateFtraceEvent)
7448   ::uint32_t cached_has_bits = 0;
7449   // Prevent compiler warnings about cached_has_bits being unused
7450   (void) cached_has_bits;
7451 
7452   cached_has_bits = _impl_._has_bits_[0];
7453   if (cached_has_bits & 0x00000007u) {
7454     ::memset(&_impl_.ctl_, 0, static_cast<size_t>(
7455         reinterpret_cast<char*>(&_impl_.timer_idx_) -
7456         reinterpret_cast<char*>(&_impl_.ctl_)) + sizeof(_impl_.timer_idx_));
7457   }
7458   _impl_._has_bits_.Clear();
7459   _internal_metadata_.Clear<std::string>();
7460 }
7461 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7462 const char* KvmTimerSaveStateFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7463 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7464   _Internal::HasBits has_bits{};
7465   while (!ctx->Done(&ptr)) {
7466     ::uint32_t tag;
7467     ptr = ::_pbi::ReadTag(ptr, &tag);
7468     switch (tag >> 3) {
7469       // optional uint64 ctl = 1;
7470       case 1:
7471         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
7472           _Internal::set_has_ctl(&has_bits);
7473           _impl_.ctl_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7474           CHK_(ptr);
7475         } else {
7476           goto handle_unusual;
7477         }
7478         continue;
7479       // optional uint64 cval = 2;
7480       case 2:
7481         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
7482           _Internal::set_has_cval(&has_bits);
7483           _impl_.cval_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7484           CHK_(ptr);
7485         } else {
7486           goto handle_unusual;
7487         }
7488         continue;
7489       // optional int32 timer_idx = 3;
7490       case 3:
7491         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
7492           _Internal::set_has_timer_idx(&has_bits);
7493           _impl_.timer_idx_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
7494           CHK_(ptr);
7495         } else {
7496           goto handle_unusual;
7497         }
7498         continue;
7499       default:
7500         goto handle_unusual;
7501     }  // switch
7502   handle_unusual:
7503     if ((tag == 0) || ((tag & 7) == 4)) {
7504       CHK_(ptr);
7505       ctx->SetLastTag(tag);
7506       goto message_done;
7507     }
7508     ptr = UnknownFieldParse(
7509         tag,
7510         _internal_metadata_.mutable_unknown_fields<std::string>(),
7511         ptr, ctx);
7512     CHK_(ptr != nullptr);
7513   }  // while
7514 message_done:
7515   _impl_._has_bits_.Or(has_bits);
7516   return ptr;
7517 failure:
7518   ptr = nullptr;
7519   goto message_done;
7520 #undef CHK_
7521 }
7522 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7523 ::uint8_t* KvmTimerSaveStateFtraceEvent::_InternalSerialize(
7524     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7525   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmTimerSaveStateFtraceEvent)
7526   ::uint32_t cached_has_bits = 0;
7527   (void) cached_has_bits;
7528 
7529   cached_has_bits = _impl_._has_bits_[0];
7530   // optional uint64 ctl = 1;
7531   if (cached_has_bits & 0x00000001u) {
7532     target = stream->EnsureSpace(target);
7533     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_ctl(), target);
7534   }
7535 
7536   // optional uint64 cval = 2;
7537   if (cached_has_bits & 0x00000002u) {
7538     target = stream->EnsureSpace(target);
7539     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_cval(), target);
7540   }
7541 
7542   // optional int32 timer_idx = 3;
7543   if (cached_has_bits & 0x00000004u) {
7544     target = stream->EnsureSpace(target);
7545     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_timer_idx(), target);
7546   }
7547 
7548   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7549     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7550         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7551   }
7552   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmTimerSaveStateFtraceEvent)
7553   return target;
7554 }
7555 
ByteSizeLong() const7556 size_t KvmTimerSaveStateFtraceEvent::ByteSizeLong() const {
7557 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmTimerSaveStateFtraceEvent)
7558   size_t total_size = 0;
7559 
7560   ::uint32_t cached_has_bits = 0;
7561   // Prevent compiler warnings about cached_has_bits being unused
7562   (void) cached_has_bits;
7563 
7564   cached_has_bits = _impl_._has_bits_[0];
7565   if (cached_has_bits & 0x00000007u) {
7566     // optional uint64 ctl = 1;
7567     if (cached_has_bits & 0x00000001u) {
7568       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ctl());
7569     }
7570 
7571     // optional uint64 cval = 2;
7572     if (cached_has_bits & 0x00000002u) {
7573       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_cval());
7574     }
7575 
7576     // optional int32 timer_idx = 3;
7577     if (cached_has_bits & 0x00000004u) {
7578       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_timer_idx());
7579     }
7580 
7581   }
7582   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7583     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7584   }
7585   int cached_size = ::_pbi::ToCachedSize(total_size);
7586   SetCachedSize(cached_size);
7587   return total_size;
7588 }
7589 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7590 void KvmTimerSaveStateFtraceEvent::CheckTypeAndMergeFrom(
7591     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7592   MergeFrom(*::_pbi::DownCast<const KvmTimerSaveStateFtraceEvent*>(
7593       &from));
7594 }
7595 
MergeFrom(const KvmTimerSaveStateFtraceEvent & from)7596 void KvmTimerSaveStateFtraceEvent::MergeFrom(const KvmTimerSaveStateFtraceEvent& from) {
7597   KvmTimerSaveStateFtraceEvent* const _this = this;
7598   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmTimerSaveStateFtraceEvent)
7599   GOOGLE_DCHECK_NE(&from, _this);
7600   ::uint32_t cached_has_bits = 0;
7601   (void) cached_has_bits;
7602 
7603   cached_has_bits = from._impl_._has_bits_[0];
7604   if (cached_has_bits & 0x00000007u) {
7605     if (cached_has_bits & 0x00000001u) {
7606       _this->_impl_.ctl_ = from._impl_.ctl_;
7607     }
7608     if (cached_has_bits & 0x00000002u) {
7609       _this->_impl_.cval_ = from._impl_.cval_;
7610     }
7611     if (cached_has_bits & 0x00000004u) {
7612       _this->_impl_.timer_idx_ = from._impl_.timer_idx_;
7613     }
7614     _this->_impl_._has_bits_[0] |= cached_has_bits;
7615   }
7616   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7617 }
7618 
CopyFrom(const KvmTimerSaveStateFtraceEvent & from)7619 void KvmTimerSaveStateFtraceEvent::CopyFrom(const KvmTimerSaveStateFtraceEvent& from) {
7620 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmTimerSaveStateFtraceEvent)
7621   if (&from == this) return;
7622   Clear();
7623   MergeFrom(from);
7624 }
7625 
IsInitialized() const7626 bool KvmTimerSaveStateFtraceEvent::IsInitialized() const {
7627   return true;
7628 }
7629 
InternalSwap(KvmTimerSaveStateFtraceEvent * other)7630 void KvmTimerSaveStateFtraceEvent::InternalSwap(KvmTimerSaveStateFtraceEvent* other) {
7631   using std::swap;
7632   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7633   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7634   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7635       PROTOBUF_FIELD_OFFSET(KvmTimerSaveStateFtraceEvent, _impl_.timer_idx_)
7636       + sizeof(KvmTimerSaveStateFtraceEvent::_impl_.timer_idx_)  // NOLINT
7637       - PROTOBUF_FIELD_OFFSET(KvmTimerSaveStateFtraceEvent, _impl_.ctl_)>(
7638           reinterpret_cast<char*>(&_impl_.ctl_),
7639           reinterpret_cast<char*>(&other->_impl_.ctl_));
7640 }
7641 
GetTypeName() const7642 std::string KvmTimerSaveStateFtraceEvent::GetTypeName() const {
7643   return "perfetto.protos.KvmTimerSaveStateFtraceEvent";
7644 }
7645 
7646 
7647 // ===================================================================
7648 
7649 class KvmTimerUpdateIrqFtraceEvent::_Internal {
7650  public:
7651   using HasBits = decltype(std::declval<KvmTimerUpdateIrqFtraceEvent>()._impl_._has_bits_);
set_has_irq(HasBits * has_bits)7652   static void set_has_irq(HasBits* has_bits) {
7653     (*has_bits)[0] |= 1u;
7654   }
set_has_level(HasBits * has_bits)7655   static void set_has_level(HasBits* has_bits) {
7656     (*has_bits)[0] |= 2u;
7657   }
set_has_vcpu_id(HasBits * has_bits)7658   static void set_has_vcpu_id(HasBits* has_bits) {
7659     (*has_bits)[0] |= 4u;
7660   }
7661 };
7662 
KvmTimerUpdateIrqFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7663 KvmTimerUpdateIrqFtraceEvent::KvmTimerUpdateIrqFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7664                          bool is_message_owned)
7665   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7666   SharedCtor(arena, is_message_owned);
7667   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmTimerUpdateIrqFtraceEvent)
7668 }
KvmTimerUpdateIrqFtraceEvent(const KvmTimerUpdateIrqFtraceEvent & from)7669 KvmTimerUpdateIrqFtraceEvent::KvmTimerUpdateIrqFtraceEvent(const KvmTimerUpdateIrqFtraceEvent& from)
7670   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7671   KvmTimerUpdateIrqFtraceEvent* const _this = this; (void)_this;
7672   new (&_impl_) Impl_{
7673       decltype(_impl_._has_bits_){from._impl_._has_bits_}
7674     , /*decltype(_impl_._cached_size_)*/{}
7675     , decltype(_impl_.irq_){}
7676     , decltype(_impl_.level_){}
7677     , decltype(_impl_.vcpu_id_){}};
7678 
7679   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7680   ::memcpy(&_impl_.irq_, &from._impl_.irq_,
7681     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.vcpu_id_) -
7682     reinterpret_cast<char*>(&_impl_.irq_)) + sizeof(_impl_.vcpu_id_));
7683   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmTimerUpdateIrqFtraceEvent)
7684 }
7685 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7686 inline void KvmTimerUpdateIrqFtraceEvent::SharedCtor(
7687     ::_pb::Arena* arena, bool is_message_owned) {
7688   (void)arena;
7689   (void)is_message_owned;
7690   new (&_impl_) Impl_{
7691       decltype(_impl_._has_bits_){}
7692     , /*decltype(_impl_._cached_size_)*/{}
7693     , decltype(_impl_.irq_){0u}
7694     , decltype(_impl_.level_){0}
7695     , decltype(_impl_.vcpu_id_){::uint64_t{0u}}
7696   };
7697 }
7698 
~KvmTimerUpdateIrqFtraceEvent()7699 KvmTimerUpdateIrqFtraceEvent::~KvmTimerUpdateIrqFtraceEvent() {
7700   // @@protoc_insertion_point(destructor:perfetto.protos.KvmTimerUpdateIrqFtraceEvent)
7701   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7702   (void)arena;
7703     return;
7704   }
7705   SharedDtor();
7706 }
7707 
SharedDtor()7708 inline void KvmTimerUpdateIrqFtraceEvent::SharedDtor() {
7709   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7710 }
7711 
SetCachedSize(int size) const7712 void KvmTimerUpdateIrqFtraceEvent::SetCachedSize(int size) const {
7713   _impl_._cached_size_.Set(size);
7714 }
7715 
Clear()7716 void KvmTimerUpdateIrqFtraceEvent::Clear() {
7717 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmTimerUpdateIrqFtraceEvent)
7718   ::uint32_t cached_has_bits = 0;
7719   // Prevent compiler warnings about cached_has_bits being unused
7720   (void) cached_has_bits;
7721 
7722   cached_has_bits = _impl_._has_bits_[0];
7723   if (cached_has_bits & 0x00000007u) {
7724     ::memset(&_impl_.irq_, 0, static_cast<size_t>(
7725         reinterpret_cast<char*>(&_impl_.vcpu_id_) -
7726         reinterpret_cast<char*>(&_impl_.irq_)) + sizeof(_impl_.vcpu_id_));
7727   }
7728   _impl_._has_bits_.Clear();
7729   _internal_metadata_.Clear<std::string>();
7730 }
7731 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7732 const char* KvmTimerUpdateIrqFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7733 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7734   _Internal::HasBits has_bits{};
7735   while (!ctx->Done(&ptr)) {
7736     ::uint32_t tag;
7737     ptr = ::_pbi::ReadTag(ptr, &tag);
7738     switch (tag >> 3) {
7739       // optional uint32 irq = 1;
7740       case 1:
7741         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
7742           _Internal::set_has_irq(&has_bits);
7743           _impl_.irq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
7744           CHK_(ptr);
7745         } else {
7746           goto handle_unusual;
7747         }
7748         continue;
7749       // optional int32 level = 2;
7750       case 2:
7751         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
7752           _Internal::set_has_level(&has_bits);
7753           _impl_.level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
7754           CHK_(ptr);
7755         } else {
7756           goto handle_unusual;
7757         }
7758         continue;
7759       // optional uint64 vcpu_id = 3;
7760       case 3:
7761         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
7762           _Internal::set_has_vcpu_id(&has_bits);
7763           _impl_.vcpu_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7764           CHK_(ptr);
7765         } else {
7766           goto handle_unusual;
7767         }
7768         continue;
7769       default:
7770         goto handle_unusual;
7771     }  // switch
7772   handle_unusual:
7773     if ((tag == 0) || ((tag & 7) == 4)) {
7774       CHK_(ptr);
7775       ctx->SetLastTag(tag);
7776       goto message_done;
7777     }
7778     ptr = UnknownFieldParse(
7779         tag,
7780         _internal_metadata_.mutable_unknown_fields<std::string>(),
7781         ptr, ctx);
7782     CHK_(ptr != nullptr);
7783   }  // while
7784 message_done:
7785   _impl_._has_bits_.Or(has_bits);
7786   return ptr;
7787 failure:
7788   ptr = nullptr;
7789   goto message_done;
7790 #undef CHK_
7791 }
7792 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7793 ::uint8_t* KvmTimerUpdateIrqFtraceEvent::_InternalSerialize(
7794     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7795   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmTimerUpdateIrqFtraceEvent)
7796   ::uint32_t cached_has_bits = 0;
7797   (void) cached_has_bits;
7798 
7799   cached_has_bits = _impl_._has_bits_[0];
7800   // optional uint32 irq = 1;
7801   if (cached_has_bits & 0x00000001u) {
7802     target = stream->EnsureSpace(target);
7803     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_irq(), target);
7804   }
7805 
7806   // optional int32 level = 2;
7807   if (cached_has_bits & 0x00000002u) {
7808     target = stream->EnsureSpace(target);
7809     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_level(), target);
7810   }
7811 
7812   // optional uint64 vcpu_id = 3;
7813   if (cached_has_bits & 0x00000004u) {
7814     target = stream->EnsureSpace(target);
7815     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_vcpu_id(), target);
7816   }
7817 
7818   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7819     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7820         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7821   }
7822   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmTimerUpdateIrqFtraceEvent)
7823   return target;
7824 }
7825 
ByteSizeLong() const7826 size_t KvmTimerUpdateIrqFtraceEvent::ByteSizeLong() const {
7827 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmTimerUpdateIrqFtraceEvent)
7828   size_t total_size = 0;
7829 
7830   ::uint32_t cached_has_bits = 0;
7831   // Prevent compiler warnings about cached_has_bits being unused
7832   (void) cached_has_bits;
7833 
7834   cached_has_bits = _impl_._has_bits_[0];
7835   if (cached_has_bits & 0x00000007u) {
7836     // optional uint32 irq = 1;
7837     if (cached_has_bits & 0x00000001u) {
7838       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_irq());
7839     }
7840 
7841     // optional int32 level = 2;
7842     if (cached_has_bits & 0x00000002u) {
7843       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_level());
7844     }
7845 
7846     // optional uint64 vcpu_id = 3;
7847     if (cached_has_bits & 0x00000004u) {
7848       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_id());
7849     }
7850 
7851   }
7852   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7853     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7854   }
7855   int cached_size = ::_pbi::ToCachedSize(total_size);
7856   SetCachedSize(cached_size);
7857   return total_size;
7858 }
7859 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7860 void KvmTimerUpdateIrqFtraceEvent::CheckTypeAndMergeFrom(
7861     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7862   MergeFrom(*::_pbi::DownCast<const KvmTimerUpdateIrqFtraceEvent*>(
7863       &from));
7864 }
7865 
MergeFrom(const KvmTimerUpdateIrqFtraceEvent & from)7866 void KvmTimerUpdateIrqFtraceEvent::MergeFrom(const KvmTimerUpdateIrqFtraceEvent& from) {
7867   KvmTimerUpdateIrqFtraceEvent* const _this = this;
7868   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmTimerUpdateIrqFtraceEvent)
7869   GOOGLE_DCHECK_NE(&from, _this);
7870   ::uint32_t cached_has_bits = 0;
7871   (void) cached_has_bits;
7872 
7873   cached_has_bits = from._impl_._has_bits_[0];
7874   if (cached_has_bits & 0x00000007u) {
7875     if (cached_has_bits & 0x00000001u) {
7876       _this->_impl_.irq_ = from._impl_.irq_;
7877     }
7878     if (cached_has_bits & 0x00000002u) {
7879       _this->_impl_.level_ = from._impl_.level_;
7880     }
7881     if (cached_has_bits & 0x00000004u) {
7882       _this->_impl_.vcpu_id_ = from._impl_.vcpu_id_;
7883     }
7884     _this->_impl_._has_bits_[0] |= cached_has_bits;
7885   }
7886   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7887 }
7888 
CopyFrom(const KvmTimerUpdateIrqFtraceEvent & from)7889 void KvmTimerUpdateIrqFtraceEvent::CopyFrom(const KvmTimerUpdateIrqFtraceEvent& from) {
7890 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmTimerUpdateIrqFtraceEvent)
7891   if (&from == this) return;
7892   Clear();
7893   MergeFrom(from);
7894 }
7895 
IsInitialized() const7896 bool KvmTimerUpdateIrqFtraceEvent::IsInitialized() const {
7897   return true;
7898 }
7899 
InternalSwap(KvmTimerUpdateIrqFtraceEvent * other)7900 void KvmTimerUpdateIrqFtraceEvent::InternalSwap(KvmTimerUpdateIrqFtraceEvent* other) {
7901   using std::swap;
7902   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7903   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7904   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7905       PROTOBUF_FIELD_OFFSET(KvmTimerUpdateIrqFtraceEvent, _impl_.vcpu_id_)
7906       + sizeof(KvmTimerUpdateIrqFtraceEvent::_impl_.vcpu_id_)  // NOLINT
7907       - PROTOBUF_FIELD_OFFSET(KvmTimerUpdateIrqFtraceEvent, _impl_.irq_)>(
7908           reinterpret_cast<char*>(&_impl_.irq_),
7909           reinterpret_cast<char*>(&other->_impl_.irq_));
7910 }
7911 
GetTypeName() const7912 std::string KvmTimerUpdateIrqFtraceEvent::GetTypeName() const {
7913   return "perfetto.protos.KvmTimerUpdateIrqFtraceEvent";
7914 }
7915 
7916 
7917 // ===================================================================
7918 
7919 class KvmToggleCacheFtraceEvent::_Internal {
7920  public:
7921   using HasBits = decltype(std::declval<KvmToggleCacheFtraceEvent>()._impl_._has_bits_);
set_has_now(HasBits * has_bits)7922   static void set_has_now(HasBits* has_bits) {
7923     (*has_bits)[0] |= 2u;
7924   }
set_has_vcpu_pc(HasBits * has_bits)7925   static void set_has_vcpu_pc(HasBits* has_bits) {
7926     (*has_bits)[0] |= 1u;
7927   }
set_has_was(HasBits * has_bits)7928   static void set_has_was(HasBits* has_bits) {
7929     (*has_bits)[0] |= 4u;
7930   }
7931 };
7932 
KvmToggleCacheFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7933 KvmToggleCacheFtraceEvent::KvmToggleCacheFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7934                          bool is_message_owned)
7935   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7936   SharedCtor(arena, is_message_owned);
7937   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmToggleCacheFtraceEvent)
7938 }
KvmToggleCacheFtraceEvent(const KvmToggleCacheFtraceEvent & from)7939 KvmToggleCacheFtraceEvent::KvmToggleCacheFtraceEvent(const KvmToggleCacheFtraceEvent& from)
7940   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7941   KvmToggleCacheFtraceEvent* const _this = this; (void)_this;
7942   new (&_impl_) Impl_{
7943       decltype(_impl_._has_bits_){from._impl_._has_bits_}
7944     , /*decltype(_impl_._cached_size_)*/{}
7945     , decltype(_impl_.vcpu_pc_){}
7946     , decltype(_impl_.now_){}
7947     , decltype(_impl_.was_){}};
7948 
7949   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7950   ::memcpy(&_impl_.vcpu_pc_, &from._impl_.vcpu_pc_,
7951     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.was_) -
7952     reinterpret_cast<char*>(&_impl_.vcpu_pc_)) + sizeof(_impl_.was_));
7953   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmToggleCacheFtraceEvent)
7954 }
7955 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7956 inline void KvmToggleCacheFtraceEvent::SharedCtor(
7957     ::_pb::Arena* arena, bool is_message_owned) {
7958   (void)arena;
7959   (void)is_message_owned;
7960   new (&_impl_) Impl_{
7961       decltype(_impl_._has_bits_){}
7962     , /*decltype(_impl_._cached_size_)*/{}
7963     , decltype(_impl_.vcpu_pc_){::uint64_t{0u}}
7964     , decltype(_impl_.now_){0u}
7965     , decltype(_impl_.was_){0u}
7966   };
7967 }
7968 
~KvmToggleCacheFtraceEvent()7969 KvmToggleCacheFtraceEvent::~KvmToggleCacheFtraceEvent() {
7970   // @@protoc_insertion_point(destructor:perfetto.protos.KvmToggleCacheFtraceEvent)
7971   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7972   (void)arena;
7973     return;
7974   }
7975   SharedDtor();
7976 }
7977 
SharedDtor()7978 inline void KvmToggleCacheFtraceEvent::SharedDtor() {
7979   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7980 }
7981 
SetCachedSize(int size) const7982 void KvmToggleCacheFtraceEvent::SetCachedSize(int size) const {
7983   _impl_._cached_size_.Set(size);
7984 }
7985 
Clear()7986 void KvmToggleCacheFtraceEvent::Clear() {
7987 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmToggleCacheFtraceEvent)
7988   ::uint32_t cached_has_bits = 0;
7989   // Prevent compiler warnings about cached_has_bits being unused
7990   (void) cached_has_bits;
7991 
7992   cached_has_bits = _impl_._has_bits_[0];
7993   if (cached_has_bits & 0x00000007u) {
7994     ::memset(&_impl_.vcpu_pc_, 0, static_cast<size_t>(
7995         reinterpret_cast<char*>(&_impl_.was_) -
7996         reinterpret_cast<char*>(&_impl_.vcpu_pc_)) + sizeof(_impl_.was_));
7997   }
7998   _impl_._has_bits_.Clear();
7999   _internal_metadata_.Clear<std::string>();
8000 }
8001 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8002 const char* KvmToggleCacheFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8003 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8004   _Internal::HasBits has_bits{};
8005   while (!ctx->Done(&ptr)) {
8006     ::uint32_t tag;
8007     ptr = ::_pbi::ReadTag(ptr, &tag);
8008     switch (tag >> 3) {
8009       // optional uint32 now = 1;
8010       case 1:
8011         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
8012           _Internal::set_has_now(&has_bits);
8013           _impl_.now_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8014           CHK_(ptr);
8015         } else {
8016           goto handle_unusual;
8017         }
8018         continue;
8019       // optional uint64 vcpu_pc = 2;
8020       case 2:
8021         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
8022           _Internal::set_has_vcpu_pc(&has_bits);
8023           _impl_.vcpu_pc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8024           CHK_(ptr);
8025         } else {
8026           goto handle_unusual;
8027         }
8028         continue;
8029       // optional uint32 was = 3;
8030       case 3:
8031         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
8032           _Internal::set_has_was(&has_bits);
8033           _impl_.was_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8034           CHK_(ptr);
8035         } else {
8036           goto handle_unusual;
8037         }
8038         continue;
8039       default:
8040         goto handle_unusual;
8041     }  // switch
8042   handle_unusual:
8043     if ((tag == 0) || ((tag & 7) == 4)) {
8044       CHK_(ptr);
8045       ctx->SetLastTag(tag);
8046       goto message_done;
8047     }
8048     ptr = UnknownFieldParse(
8049         tag,
8050         _internal_metadata_.mutable_unknown_fields<std::string>(),
8051         ptr, ctx);
8052     CHK_(ptr != nullptr);
8053   }  // while
8054 message_done:
8055   _impl_._has_bits_.Or(has_bits);
8056   return ptr;
8057 failure:
8058   ptr = nullptr;
8059   goto message_done;
8060 #undef CHK_
8061 }
8062 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8063 ::uint8_t* KvmToggleCacheFtraceEvent::_InternalSerialize(
8064     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8065   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmToggleCacheFtraceEvent)
8066   ::uint32_t cached_has_bits = 0;
8067   (void) cached_has_bits;
8068 
8069   cached_has_bits = _impl_._has_bits_[0];
8070   // optional uint32 now = 1;
8071   if (cached_has_bits & 0x00000002u) {
8072     target = stream->EnsureSpace(target);
8073     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_now(), target);
8074   }
8075 
8076   // optional uint64 vcpu_pc = 2;
8077   if (cached_has_bits & 0x00000001u) {
8078     target = stream->EnsureSpace(target);
8079     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_vcpu_pc(), target);
8080   }
8081 
8082   // optional uint32 was = 3;
8083   if (cached_has_bits & 0x00000004u) {
8084     target = stream->EnsureSpace(target);
8085     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_was(), target);
8086   }
8087 
8088   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8089     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8090         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8091   }
8092   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmToggleCacheFtraceEvent)
8093   return target;
8094 }
8095 
ByteSizeLong() const8096 size_t KvmToggleCacheFtraceEvent::ByteSizeLong() const {
8097 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmToggleCacheFtraceEvent)
8098   size_t total_size = 0;
8099 
8100   ::uint32_t cached_has_bits = 0;
8101   // Prevent compiler warnings about cached_has_bits being unused
8102   (void) cached_has_bits;
8103 
8104   cached_has_bits = _impl_._has_bits_[0];
8105   if (cached_has_bits & 0x00000007u) {
8106     // optional uint64 vcpu_pc = 2;
8107     if (cached_has_bits & 0x00000001u) {
8108       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_pc());
8109     }
8110 
8111     // optional uint32 now = 1;
8112     if (cached_has_bits & 0x00000002u) {
8113       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_now());
8114     }
8115 
8116     // optional uint32 was = 3;
8117     if (cached_has_bits & 0x00000004u) {
8118       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_was());
8119     }
8120 
8121   }
8122   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8123     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8124   }
8125   int cached_size = ::_pbi::ToCachedSize(total_size);
8126   SetCachedSize(cached_size);
8127   return total_size;
8128 }
8129 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8130 void KvmToggleCacheFtraceEvent::CheckTypeAndMergeFrom(
8131     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8132   MergeFrom(*::_pbi::DownCast<const KvmToggleCacheFtraceEvent*>(
8133       &from));
8134 }
8135 
MergeFrom(const KvmToggleCacheFtraceEvent & from)8136 void KvmToggleCacheFtraceEvent::MergeFrom(const KvmToggleCacheFtraceEvent& from) {
8137   KvmToggleCacheFtraceEvent* const _this = this;
8138   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmToggleCacheFtraceEvent)
8139   GOOGLE_DCHECK_NE(&from, _this);
8140   ::uint32_t cached_has_bits = 0;
8141   (void) cached_has_bits;
8142 
8143   cached_has_bits = from._impl_._has_bits_[0];
8144   if (cached_has_bits & 0x00000007u) {
8145     if (cached_has_bits & 0x00000001u) {
8146       _this->_impl_.vcpu_pc_ = from._impl_.vcpu_pc_;
8147     }
8148     if (cached_has_bits & 0x00000002u) {
8149       _this->_impl_.now_ = from._impl_.now_;
8150     }
8151     if (cached_has_bits & 0x00000004u) {
8152       _this->_impl_.was_ = from._impl_.was_;
8153     }
8154     _this->_impl_._has_bits_[0] |= cached_has_bits;
8155   }
8156   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8157 }
8158 
CopyFrom(const KvmToggleCacheFtraceEvent & from)8159 void KvmToggleCacheFtraceEvent::CopyFrom(const KvmToggleCacheFtraceEvent& from) {
8160 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmToggleCacheFtraceEvent)
8161   if (&from == this) return;
8162   Clear();
8163   MergeFrom(from);
8164 }
8165 
IsInitialized() const8166 bool KvmToggleCacheFtraceEvent::IsInitialized() const {
8167   return true;
8168 }
8169 
InternalSwap(KvmToggleCacheFtraceEvent * other)8170 void KvmToggleCacheFtraceEvent::InternalSwap(KvmToggleCacheFtraceEvent* other) {
8171   using std::swap;
8172   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8173   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8174   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8175       PROTOBUF_FIELD_OFFSET(KvmToggleCacheFtraceEvent, _impl_.was_)
8176       + sizeof(KvmToggleCacheFtraceEvent::_impl_.was_)  // NOLINT
8177       - PROTOBUF_FIELD_OFFSET(KvmToggleCacheFtraceEvent, _impl_.vcpu_pc_)>(
8178           reinterpret_cast<char*>(&_impl_.vcpu_pc_),
8179           reinterpret_cast<char*>(&other->_impl_.vcpu_pc_));
8180 }
8181 
GetTypeName() const8182 std::string KvmToggleCacheFtraceEvent::GetTypeName() const {
8183   return "perfetto.protos.KvmToggleCacheFtraceEvent";
8184 }
8185 
8186 
8187 // ===================================================================
8188 
8189 class KvmUnmapHvaRangeFtraceEvent::_Internal {
8190  public:
8191   using HasBits = decltype(std::declval<KvmUnmapHvaRangeFtraceEvent>()._impl_._has_bits_);
set_has_end(HasBits * has_bits)8192   static void set_has_end(HasBits* has_bits) {
8193     (*has_bits)[0] |= 1u;
8194   }
set_has_start(HasBits * has_bits)8195   static void set_has_start(HasBits* has_bits) {
8196     (*has_bits)[0] |= 2u;
8197   }
8198 };
8199 
KvmUnmapHvaRangeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8200 KvmUnmapHvaRangeFtraceEvent::KvmUnmapHvaRangeFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8201                          bool is_message_owned)
8202   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8203   SharedCtor(arena, is_message_owned);
8204   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmUnmapHvaRangeFtraceEvent)
8205 }
KvmUnmapHvaRangeFtraceEvent(const KvmUnmapHvaRangeFtraceEvent & from)8206 KvmUnmapHvaRangeFtraceEvent::KvmUnmapHvaRangeFtraceEvent(const KvmUnmapHvaRangeFtraceEvent& from)
8207   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8208   KvmUnmapHvaRangeFtraceEvent* const _this = this; (void)_this;
8209   new (&_impl_) Impl_{
8210       decltype(_impl_._has_bits_){from._impl_._has_bits_}
8211     , /*decltype(_impl_._cached_size_)*/{}
8212     , decltype(_impl_.end_){}
8213     , decltype(_impl_.start_){}};
8214 
8215   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8216   ::memcpy(&_impl_.end_, &from._impl_.end_,
8217     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.start_) -
8218     reinterpret_cast<char*>(&_impl_.end_)) + sizeof(_impl_.start_));
8219   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmUnmapHvaRangeFtraceEvent)
8220 }
8221 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8222 inline void KvmUnmapHvaRangeFtraceEvent::SharedCtor(
8223     ::_pb::Arena* arena, bool is_message_owned) {
8224   (void)arena;
8225   (void)is_message_owned;
8226   new (&_impl_) Impl_{
8227       decltype(_impl_._has_bits_){}
8228     , /*decltype(_impl_._cached_size_)*/{}
8229     , decltype(_impl_.end_){::uint64_t{0u}}
8230     , decltype(_impl_.start_){::uint64_t{0u}}
8231   };
8232 }
8233 
~KvmUnmapHvaRangeFtraceEvent()8234 KvmUnmapHvaRangeFtraceEvent::~KvmUnmapHvaRangeFtraceEvent() {
8235   // @@protoc_insertion_point(destructor:perfetto.protos.KvmUnmapHvaRangeFtraceEvent)
8236   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8237   (void)arena;
8238     return;
8239   }
8240   SharedDtor();
8241 }
8242 
SharedDtor()8243 inline void KvmUnmapHvaRangeFtraceEvent::SharedDtor() {
8244   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8245 }
8246 
SetCachedSize(int size) const8247 void KvmUnmapHvaRangeFtraceEvent::SetCachedSize(int size) const {
8248   _impl_._cached_size_.Set(size);
8249 }
8250 
Clear()8251 void KvmUnmapHvaRangeFtraceEvent::Clear() {
8252 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmUnmapHvaRangeFtraceEvent)
8253   ::uint32_t cached_has_bits = 0;
8254   // Prevent compiler warnings about cached_has_bits being unused
8255   (void) cached_has_bits;
8256 
8257   cached_has_bits = _impl_._has_bits_[0];
8258   if (cached_has_bits & 0x00000003u) {
8259     ::memset(&_impl_.end_, 0, static_cast<size_t>(
8260         reinterpret_cast<char*>(&_impl_.start_) -
8261         reinterpret_cast<char*>(&_impl_.end_)) + sizeof(_impl_.start_));
8262   }
8263   _impl_._has_bits_.Clear();
8264   _internal_metadata_.Clear<std::string>();
8265 }
8266 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8267 const char* KvmUnmapHvaRangeFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8268 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8269   _Internal::HasBits has_bits{};
8270   while (!ctx->Done(&ptr)) {
8271     ::uint32_t tag;
8272     ptr = ::_pbi::ReadTag(ptr, &tag);
8273     switch (tag >> 3) {
8274       // optional uint64 end = 1;
8275       case 1:
8276         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
8277           _Internal::set_has_end(&has_bits);
8278           _impl_.end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8279           CHK_(ptr);
8280         } else {
8281           goto handle_unusual;
8282         }
8283         continue;
8284       // optional uint64 start = 2;
8285       case 2:
8286         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
8287           _Internal::set_has_start(&has_bits);
8288           _impl_.start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8289           CHK_(ptr);
8290         } else {
8291           goto handle_unusual;
8292         }
8293         continue;
8294       default:
8295         goto handle_unusual;
8296     }  // switch
8297   handle_unusual:
8298     if ((tag == 0) || ((tag & 7) == 4)) {
8299       CHK_(ptr);
8300       ctx->SetLastTag(tag);
8301       goto message_done;
8302     }
8303     ptr = UnknownFieldParse(
8304         tag,
8305         _internal_metadata_.mutable_unknown_fields<std::string>(),
8306         ptr, ctx);
8307     CHK_(ptr != nullptr);
8308   }  // while
8309 message_done:
8310   _impl_._has_bits_.Or(has_bits);
8311   return ptr;
8312 failure:
8313   ptr = nullptr;
8314   goto message_done;
8315 #undef CHK_
8316 }
8317 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8318 ::uint8_t* KvmUnmapHvaRangeFtraceEvent::_InternalSerialize(
8319     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8320   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmUnmapHvaRangeFtraceEvent)
8321   ::uint32_t cached_has_bits = 0;
8322   (void) cached_has_bits;
8323 
8324   cached_has_bits = _impl_._has_bits_[0];
8325   // optional uint64 end = 1;
8326   if (cached_has_bits & 0x00000001u) {
8327     target = stream->EnsureSpace(target);
8328     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_end(), target);
8329   }
8330 
8331   // optional uint64 start = 2;
8332   if (cached_has_bits & 0x00000002u) {
8333     target = stream->EnsureSpace(target);
8334     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_start(), target);
8335   }
8336 
8337   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8338     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8339         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8340   }
8341   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmUnmapHvaRangeFtraceEvent)
8342   return target;
8343 }
8344 
ByteSizeLong() const8345 size_t KvmUnmapHvaRangeFtraceEvent::ByteSizeLong() const {
8346 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmUnmapHvaRangeFtraceEvent)
8347   size_t total_size = 0;
8348 
8349   ::uint32_t cached_has_bits = 0;
8350   // Prevent compiler warnings about cached_has_bits being unused
8351   (void) cached_has_bits;
8352 
8353   cached_has_bits = _impl_._has_bits_[0];
8354   if (cached_has_bits & 0x00000003u) {
8355     // optional uint64 end = 1;
8356     if (cached_has_bits & 0x00000001u) {
8357       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_end());
8358     }
8359 
8360     // optional uint64 start = 2;
8361     if (cached_has_bits & 0x00000002u) {
8362       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start());
8363     }
8364 
8365   }
8366   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8367     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8368   }
8369   int cached_size = ::_pbi::ToCachedSize(total_size);
8370   SetCachedSize(cached_size);
8371   return total_size;
8372 }
8373 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8374 void KvmUnmapHvaRangeFtraceEvent::CheckTypeAndMergeFrom(
8375     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8376   MergeFrom(*::_pbi::DownCast<const KvmUnmapHvaRangeFtraceEvent*>(
8377       &from));
8378 }
8379 
MergeFrom(const KvmUnmapHvaRangeFtraceEvent & from)8380 void KvmUnmapHvaRangeFtraceEvent::MergeFrom(const KvmUnmapHvaRangeFtraceEvent& from) {
8381   KvmUnmapHvaRangeFtraceEvent* const _this = this;
8382   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmUnmapHvaRangeFtraceEvent)
8383   GOOGLE_DCHECK_NE(&from, _this);
8384   ::uint32_t cached_has_bits = 0;
8385   (void) cached_has_bits;
8386 
8387   cached_has_bits = from._impl_._has_bits_[0];
8388   if (cached_has_bits & 0x00000003u) {
8389     if (cached_has_bits & 0x00000001u) {
8390       _this->_impl_.end_ = from._impl_.end_;
8391     }
8392     if (cached_has_bits & 0x00000002u) {
8393       _this->_impl_.start_ = from._impl_.start_;
8394     }
8395     _this->_impl_._has_bits_[0] |= cached_has_bits;
8396   }
8397   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8398 }
8399 
CopyFrom(const KvmUnmapHvaRangeFtraceEvent & from)8400 void KvmUnmapHvaRangeFtraceEvent::CopyFrom(const KvmUnmapHvaRangeFtraceEvent& from) {
8401 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmUnmapHvaRangeFtraceEvent)
8402   if (&from == this) return;
8403   Clear();
8404   MergeFrom(from);
8405 }
8406 
IsInitialized() const8407 bool KvmUnmapHvaRangeFtraceEvent::IsInitialized() const {
8408   return true;
8409 }
8410 
InternalSwap(KvmUnmapHvaRangeFtraceEvent * other)8411 void KvmUnmapHvaRangeFtraceEvent::InternalSwap(KvmUnmapHvaRangeFtraceEvent* other) {
8412   using std::swap;
8413   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8414   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8415   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8416       PROTOBUF_FIELD_OFFSET(KvmUnmapHvaRangeFtraceEvent, _impl_.start_)
8417       + sizeof(KvmUnmapHvaRangeFtraceEvent::_impl_.start_)  // NOLINT
8418       - PROTOBUF_FIELD_OFFSET(KvmUnmapHvaRangeFtraceEvent, _impl_.end_)>(
8419           reinterpret_cast<char*>(&_impl_.end_),
8420           reinterpret_cast<char*>(&other->_impl_.end_));
8421 }
8422 
GetTypeName() const8423 std::string KvmUnmapHvaRangeFtraceEvent::GetTypeName() const {
8424   return "perfetto.protos.KvmUnmapHvaRangeFtraceEvent";
8425 }
8426 
8427 
8428 // ===================================================================
8429 
8430 class KvmUserspaceExitFtraceEvent::_Internal {
8431  public:
8432   using HasBits = decltype(std::declval<KvmUserspaceExitFtraceEvent>()._impl_._has_bits_);
set_has_reason(HasBits * has_bits)8433   static void set_has_reason(HasBits* has_bits) {
8434     (*has_bits)[0] |= 1u;
8435   }
8436 };
8437 
KvmUserspaceExitFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8438 KvmUserspaceExitFtraceEvent::KvmUserspaceExitFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8439                          bool is_message_owned)
8440   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8441   SharedCtor(arena, is_message_owned);
8442   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmUserspaceExitFtraceEvent)
8443 }
KvmUserspaceExitFtraceEvent(const KvmUserspaceExitFtraceEvent & from)8444 KvmUserspaceExitFtraceEvent::KvmUserspaceExitFtraceEvent(const KvmUserspaceExitFtraceEvent& from)
8445   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8446   KvmUserspaceExitFtraceEvent* const _this = this; (void)_this;
8447   new (&_impl_) Impl_{
8448       decltype(_impl_._has_bits_){from._impl_._has_bits_}
8449     , /*decltype(_impl_._cached_size_)*/{}
8450     , decltype(_impl_.reason_){}};
8451 
8452   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8453   _this->_impl_.reason_ = from._impl_.reason_;
8454   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmUserspaceExitFtraceEvent)
8455 }
8456 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8457 inline void KvmUserspaceExitFtraceEvent::SharedCtor(
8458     ::_pb::Arena* arena, bool is_message_owned) {
8459   (void)arena;
8460   (void)is_message_owned;
8461   new (&_impl_) Impl_{
8462       decltype(_impl_._has_bits_){}
8463     , /*decltype(_impl_._cached_size_)*/{}
8464     , decltype(_impl_.reason_){0u}
8465   };
8466 }
8467 
~KvmUserspaceExitFtraceEvent()8468 KvmUserspaceExitFtraceEvent::~KvmUserspaceExitFtraceEvent() {
8469   // @@protoc_insertion_point(destructor:perfetto.protos.KvmUserspaceExitFtraceEvent)
8470   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8471   (void)arena;
8472     return;
8473   }
8474   SharedDtor();
8475 }
8476 
SharedDtor()8477 inline void KvmUserspaceExitFtraceEvent::SharedDtor() {
8478   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8479 }
8480 
SetCachedSize(int size) const8481 void KvmUserspaceExitFtraceEvent::SetCachedSize(int size) const {
8482   _impl_._cached_size_.Set(size);
8483 }
8484 
Clear()8485 void KvmUserspaceExitFtraceEvent::Clear() {
8486 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmUserspaceExitFtraceEvent)
8487   ::uint32_t cached_has_bits = 0;
8488   // Prevent compiler warnings about cached_has_bits being unused
8489   (void) cached_has_bits;
8490 
8491   _impl_.reason_ = 0u;
8492   _impl_._has_bits_.Clear();
8493   _internal_metadata_.Clear<std::string>();
8494 }
8495 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8496 const char* KvmUserspaceExitFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8497 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8498   _Internal::HasBits has_bits{};
8499   while (!ctx->Done(&ptr)) {
8500     ::uint32_t tag;
8501     ptr = ::_pbi::ReadTag(ptr, &tag);
8502     switch (tag >> 3) {
8503       // optional uint32 reason = 1;
8504       case 1:
8505         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
8506           _Internal::set_has_reason(&has_bits);
8507           _impl_.reason_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8508           CHK_(ptr);
8509         } else {
8510           goto handle_unusual;
8511         }
8512         continue;
8513       default:
8514         goto handle_unusual;
8515     }  // switch
8516   handle_unusual:
8517     if ((tag == 0) || ((tag & 7) == 4)) {
8518       CHK_(ptr);
8519       ctx->SetLastTag(tag);
8520       goto message_done;
8521     }
8522     ptr = UnknownFieldParse(
8523         tag,
8524         _internal_metadata_.mutable_unknown_fields<std::string>(),
8525         ptr, ctx);
8526     CHK_(ptr != nullptr);
8527   }  // while
8528 message_done:
8529   _impl_._has_bits_.Or(has_bits);
8530   return ptr;
8531 failure:
8532   ptr = nullptr;
8533   goto message_done;
8534 #undef CHK_
8535 }
8536 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8537 ::uint8_t* KvmUserspaceExitFtraceEvent::_InternalSerialize(
8538     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8539   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmUserspaceExitFtraceEvent)
8540   ::uint32_t cached_has_bits = 0;
8541   (void) cached_has_bits;
8542 
8543   cached_has_bits = _impl_._has_bits_[0];
8544   // optional uint32 reason = 1;
8545   if (cached_has_bits & 0x00000001u) {
8546     target = stream->EnsureSpace(target);
8547     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_reason(), target);
8548   }
8549 
8550   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8551     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8552         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8553   }
8554   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmUserspaceExitFtraceEvent)
8555   return target;
8556 }
8557 
ByteSizeLong() const8558 size_t KvmUserspaceExitFtraceEvent::ByteSizeLong() const {
8559 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmUserspaceExitFtraceEvent)
8560   size_t total_size = 0;
8561 
8562   ::uint32_t cached_has_bits = 0;
8563   // Prevent compiler warnings about cached_has_bits being unused
8564   (void) cached_has_bits;
8565 
8566   // optional uint32 reason = 1;
8567   cached_has_bits = _impl_._has_bits_[0];
8568   if (cached_has_bits & 0x00000001u) {
8569     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_reason());
8570   }
8571 
8572   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8573     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8574   }
8575   int cached_size = ::_pbi::ToCachedSize(total_size);
8576   SetCachedSize(cached_size);
8577   return total_size;
8578 }
8579 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8580 void KvmUserspaceExitFtraceEvent::CheckTypeAndMergeFrom(
8581     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8582   MergeFrom(*::_pbi::DownCast<const KvmUserspaceExitFtraceEvent*>(
8583       &from));
8584 }
8585 
MergeFrom(const KvmUserspaceExitFtraceEvent & from)8586 void KvmUserspaceExitFtraceEvent::MergeFrom(const KvmUserspaceExitFtraceEvent& from) {
8587   KvmUserspaceExitFtraceEvent* const _this = this;
8588   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmUserspaceExitFtraceEvent)
8589   GOOGLE_DCHECK_NE(&from, _this);
8590   ::uint32_t cached_has_bits = 0;
8591   (void) cached_has_bits;
8592 
8593   if (from._internal_has_reason()) {
8594     _this->_internal_set_reason(from._internal_reason());
8595   }
8596   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8597 }
8598 
CopyFrom(const KvmUserspaceExitFtraceEvent & from)8599 void KvmUserspaceExitFtraceEvent::CopyFrom(const KvmUserspaceExitFtraceEvent& from) {
8600 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmUserspaceExitFtraceEvent)
8601   if (&from == this) return;
8602   Clear();
8603   MergeFrom(from);
8604 }
8605 
IsInitialized() const8606 bool KvmUserspaceExitFtraceEvent::IsInitialized() const {
8607   return true;
8608 }
8609 
InternalSwap(KvmUserspaceExitFtraceEvent * other)8610 void KvmUserspaceExitFtraceEvent::InternalSwap(KvmUserspaceExitFtraceEvent* other) {
8611   using std::swap;
8612   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8613   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8614   swap(_impl_.reason_, other->_impl_.reason_);
8615 }
8616 
GetTypeName() const8617 std::string KvmUserspaceExitFtraceEvent::GetTypeName() const {
8618   return "perfetto.protos.KvmUserspaceExitFtraceEvent";
8619 }
8620 
8621 
8622 // ===================================================================
8623 
8624 class KvmVcpuWakeupFtraceEvent::_Internal {
8625  public:
8626   using HasBits = decltype(std::declval<KvmVcpuWakeupFtraceEvent>()._impl_._has_bits_);
set_has_ns(HasBits * has_bits)8627   static void set_has_ns(HasBits* has_bits) {
8628     (*has_bits)[0] |= 1u;
8629   }
set_has_valid(HasBits * has_bits)8630   static void set_has_valid(HasBits* has_bits) {
8631     (*has_bits)[0] |= 2u;
8632   }
set_has_waited(HasBits * has_bits)8633   static void set_has_waited(HasBits* has_bits) {
8634     (*has_bits)[0] |= 4u;
8635   }
8636 };
8637 
KvmVcpuWakeupFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8638 KvmVcpuWakeupFtraceEvent::KvmVcpuWakeupFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8639                          bool is_message_owned)
8640   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8641   SharedCtor(arena, is_message_owned);
8642   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmVcpuWakeupFtraceEvent)
8643 }
KvmVcpuWakeupFtraceEvent(const KvmVcpuWakeupFtraceEvent & from)8644 KvmVcpuWakeupFtraceEvent::KvmVcpuWakeupFtraceEvent(const KvmVcpuWakeupFtraceEvent& from)
8645   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8646   KvmVcpuWakeupFtraceEvent* const _this = this; (void)_this;
8647   new (&_impl_) Impl_{
8648       decltype(_impl_._has_bits_){from._impl_._has_bits_}
8649     , /*decltype(_impl_._cached_size_)*/{}
8650     , decltype(_impl_.ns_){}
8651     , decltype(_impl_.valid_){}
8652     , decltype(_impl_.waited_){}};
8653 
8654   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8655   ::memcpy(&_impl_.ns_, &from._impl_.ns_,
8656     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.waited_) -
8657     reinterpret_cast<char*>(&_impl_.ns_)) + sizeof(_impl_.waited_));
8658   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmVcpuWakeupFtraceEvent)
8659 }
8660 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8661 inline void KvmVcpuWakeupFtraceEvent::SharedCtor(
8662     ::_pb::Arena* arena, bool is_message_owned) {
8663   (void)arena;
8664   (void)is_message_owned;
8665   new (&_impl_) Impl_{
8666       decltype(_impl_._has_bits_){}
8667     , /*decltype(_impl_._cached_size_)*/{}
8668     , decltype(_impl_.ns_){::uint64_t{0u}}
8669     , decltype(_impl_.valid_){0u}
8670     , decltype(_impl_.waited_){0u}
8671   };
8672 }
8673 
~KvmVcpuWakeupFtraceEvent()8674 KvmVcpuWakeupFtraceEvent::~KvmVcpuWakeupFtraceEvent() {
8675   // @@protoc_insertion_point(destructor:perfetto.protos.KvmVcpuWakeupFtraceEvent)
8676   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8677   (void)arena;
8678     return;
8679   }
8680   SharedDtor();
8681 }
8682 
SharedDtor()8683 inline void KvmVcpuWakeupFtraceEvent::SharedDtor() {
8684   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8685 }
8686 
SetCachedSize(int size) const8687 void KvmVcpuWakeupFtraceEvent::SetCachedSize(int size) const {
8688   _impl_._cached_size_.Set(size);
8689 }
8690 
Clear()8691 void KvmVcpuWakeupFtraceEvent::Clear() {
8692 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmVcpuWakeupFtraceEvent)
8693   ::uint32_t cached_has_bits = 0;
8694   // Prevent compiler warnings about cached_has_bits being unused
8695   (void) cached_has_bits;
8696 
8697   cached_has_bits = _impl_._has_bits_[0];
8698   if (cached_has_bits & 0x00000007u) {
8699     ::memset(&_impl_.ns_, 0, static_cast<size_t>(
8700         reinterpret_cast<char*>(&_impl_.waited_) -
8701         reinterpret_cast<char*>(&_impl_.ns_)) + sizeof(_impl_.waited_));
8702   }
8703   _impl_._has_bits_.Clear();
8704   _internal_metadata_.Clear<std::string>();
8705 }
8706 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8707 const char* KvmVcpuWakeupFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8708 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8709   _Internal::HasBits has_bits{};
8710   while (!ctx->Done(&ptr)) {
8711     ::uint32_t tag;
8712     ptr = ::_pbi::ReadTag(ptr, &tag);
8713     switch (tag >> 3) {
8714       // optional uint64 ns = 1;
8715       case 1:
8716         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
8717           _Internal::set_has_ns(&has_bits);
8718           _impl_.ns_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8719           CHK_(ptr);
8720         } else {
8721           goto handle_unusual;
8722         }
8723         continue;
8724       // optional uint32 valid = 2;
8725       case 2:
8726         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
8727           _Internal::set_has_valid(&has_bits);
8728           _impl_.valid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8729           CHK_(ptr);
8730         } else {
8731           goto handle_unusual;
8732         }
8733         continue;
8734       // optional uint32 waited = 3;
8735       case 3:
8736         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
8737           _Internal::set_has_waited(&has_bits);
8738           _impl_.waited_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8739           CHK_(ptr);
8740         } else {
8741           goto handle_unusual;
8742         }
8743         continue;
8744       default:
8745         goto handle_unusual;
8746     }  // switch
8747   handle_unusual:
8748     if ((tag == 0) || ((tag & 7) == 4)) {
8749       CHK_(ptr);
8750       ctx->SetLastTag(tag);
8751       goto message_done;
8752     }
8753     ptr = UnknownFieldParse(
8754         tag,
8755         _internal_metadata_.mutable_unknown_fields<std::string>(),
8756         ptr, ctx);
8757     CHK_(ptr != nullptr);
8758   }  // while
8759 message_done:
8760   _impl_._has_bits_.Or(has_bits);
8761   return ptr;
8762 failure:
8763   ptr = nullptr;
8764   goto message_done;
8765 #undef CHK_
8766 }
8767 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8768 ::uint8_t* KvmVcpuWakeupFtraceEvent::_InternalSerialize(
8769     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8770   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmVcpuWakeupFtraceEvent)
8771   ::uint32_t cached_has_bits = 0;
8772   (void) cached_has_bits;
8773 
8774   cached_has_bits = _impl_._has_bits_[0];
8775   // optional uint64 ns = 1;
8776   if (cached_has_bits & 0x00000001u) {
8777     target = stream->EnsureSpace(target);
8778     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_ns(), target);
8779   }
8780 
8781   // optional uint32 valid = 2;
8782   if (cached_has_bits & 0x00000002u) {
8783     target = stream->EnsureSpace(target);
8784     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_valid(), target);
8785   }
8786 
8787   // optional uint32 waited = 3;
8788   if (cached_has_bits & 0x00000004u) {
8789     target = stream->EnsureSpace(target);
8790     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_waited(), target);
8791   }
8792 
8793   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8794     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8795         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8796   }
8797   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmVcpuWakeupFtraceEvent)
8798   return target;
8799 }
8800 
ByteSizeLong() const8801 size_t KvmVcpuWakeupFtraceEvent::ByteSizeLong() const {
8802 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmVcpuWakeupFtraceEvent)
8803   size_t total_size = 0;
8804 
8805   ::uint32_t cached_has_bits = 0;
8806   // Prevent compiler warnings about cached_has_bits being unused
8807   (void) cached_has_bits;
8808 
8809   cached_has_bits = _impl_._has_bits_[0];
8810   if (cached_has_bits & 0x00000007u) {
8811     // optional uint64 ns = 1;
8812     if (cached_has_bits & 0x00000001u) {
8813       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ns());
8814     }
8815 
8816     // optional uint32 valid = 2;
8817     if (cached_has_bits & 0x00000002u) {
8818       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_valid());
8819     }
8820 
8821     // optional uint32 waited = 3;
8822     if (cached_has_bits & 0x00000004u) {
8823       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_waited());
8824     }
8825 
8826   }
8827   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8828     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8829   }
8830   int cached_size = ::_pbi::ToCachedSize(total_size);
8831   SetCachedSize(cached_size);
8832   return total_size;
8833 }
8834 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8835 void KvmVcpuWakeupFtraceEvent::CheckTypeAndMergeFrom(
8836     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8837   MergeFrom(*::_pbi::DownCast<const KvmVcpuWakeupFtraceEvent*>(
8838       &from));
8839 }
8840 
MergeFrom(const KvmVcpuWakeupFtraceEvent & from)8841 void KvmVcpuWakeupFtraceEvent::MergeFrom(const KvmVcpuWakeupFtraceEvent& from) {
8842   KvmVcpuWakeupFtraceEvent* const _this = this;
8843   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmVcpuWakeupFtraceEvent)
8844   GOOGLE_DCHECK_NE(&from, _this);
8845   ::uint32_t cached_has_bits = 0;
8846   (void) cached_has_bits;
8847 
8848   cached_has_bits = from._impl_._has_bits_[0];
8849   if (cached_has_bits & 0x00000007u) {
8850     if (cached_has_bits & 0x00000001u) {
8851       _this->_impl_.ns_ = from._impl_.ns_;
8852     }
8853     if (cached_has_bits & 0x00000002u) {
8854       _this->_impl_.valid_ = from._impl_.valid_;
8855     }
8856     if (cached_has_bits & 0x00000004u) {
8857       _this->_impl_.waited_ = from._impl_.waited_;
8858     }
8859     _this->_impl_._has_bits_[0] |= cached_has_bits;
8860   }
8861   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8862 }
8863 
CopyFrom(const KvmVcpuWakeupFtraceEvent & from)8864 void KvmVcpuWakeupFtraceEvent::CopyFrom(const KvmVcpuWakeupFtraceEvent& from) {
8865 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmVcpuWakeupFtraceEvent)
8866   if (&from == this) return;
8867   Clear();
8868   MergeFrom(from);
8869 }
8870 
IsInitialized() const8871 bool KvmVcpuWakeupFtraceEvent::IsInitialized() const {
8872   return true;
8873 }
8874 
InternalSwap(KvmVcpuWakeupFtraceEvent * other)8875 void KvmVcpuWakeupFtraceEvent::InternalSwap(KvmVcpuWakeupFtraceEvent* other) {
8876   using std::swap;
8877   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8878   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8879   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8880       PROTOBUF_FIELD_OFFSET(KvmVcpuWakeupFtraceEvent, _impl_.waited_)
8881       + sizeof(KvmVcpuWakeupFtraceEvent::_impl_.waited_)  // NOLINT
8882       - PROTOBUF_FIELD_OFFSET(KvmVcpuWakeupFtraceEvent, _impl_.ns_)>(
8883           reinterpret_cast<char*>(&_impl_.ns_),
8884           reinterpret_cast<char*>(&other->_impl_.ns_));
8885 }
8886 
GetTypeName() const8887 std::string KvmVcpuWakeupFtraceEvent::GetTypeName() const {
8888   return "perfetto.protos.KvmVcpuWakeupFtraceEvent";
8889 }
8890 
8891 
8892 // ===================================================================
8893 
8894 class KvmWfxArm64FtraceEvent::_Internal {
8895  public:
8896   using HasBits = decltype(std::declval<KvmWfxArm64FtraceEvent>()._impl_._has_bits_);
set_has_is_wfe(HasBits * has_bits)8897   static void set_has_is_wfe(HasBits* has_bits) {
8898     (*has_bits)[0] |= 2u;
8899   }
set_has_vcpu_pc(HasBits * has_bits)8900   static void set_has_vcpu_pc(HasBits* has_bits) {
8901     (*has_bits)[0] |= 1u;
8902   }
8903 };
8904 
KvmWfxArm64FtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8905 KvmWfxArm64FtraceEvent::KvmWfxArm64FtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8906                          bool is_message_owned)
8907   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8908   SharedCtor(arena, is_message_owned);
8909   // @@protoc_insertion_point(arena_constructor:perfetto.protos.KvmWfxArm64FtraceEvent)
8910 }
KvmWfxArm64FtraceEvent(const KvmWfxArm64FtraceEvent & from)8911 KvmWfxArm64FtraceEvent::KvmWfxArm64FtraceEvent(const KvmWfxArm64FtraceEvent& from)
8912   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8913   KvmWfxArm64FtraceEvent* const _this = this; (void)_this;
8914   new (&_impl_) Impl_{
8915       decltype(_impl_._has_bits_){from._impl_._has_bits_}
8916     , /*decltype(_impl_._cached_size_)*/{}
8917     , decltype(_impl_.vcpu_pc_){}
8918     , decltype(_impl_.is_wfe_){}};
8919 
8920   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8921   ::memcpy(&_impl_.vcpu_pc_, &from._impl_.vcpu_pc_,
8922     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_wfe_) -
8923     reinterpret_cast<char*>(&_impl_.vcpu_pc_)) + sizeof(_impl_.is_wfe_));
8924   // @@protoc_insertion_point(copy_constructor:perfetto.protos.KvmWfxArm64FtraceEvent)
8925 }
8926 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8927 inline void KvmWfxArm64FtraceEvent::SharedCtor(
8928     ::_pb::Arena* arena, bool is_message_owned) {
8929   (void)arena;
8930   (void)is_message_owned;
8931   new (&_impl_) Impl_{
8932       decltype(_impl_._has_bits_){}
8933     , /*decltype(_impl_._cached_size_)*/{}
8934     , decltype(_impl_.vcpu_pc_){::uint64_t{0u}}
8935     , decltype(_impl_.is_wfe_){0u}
8936   };
8937 }
8938 
~KvmWfxArm64FtraceEvent()8939 KvmWfxArm64FtraceEvent::~KvmWfxArm64FtraceEvent() {
8940   // @@protoc_insertion_point(destructor:perfetto.protos.KvmWfxArm64FtraceEvent)
8941   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8942   (void)arena;
8943     return;
8944   }
8945   SharedDtor();
8946 }
8947 
SharedDtor()8948 inline void KvmWfxArm64FtraceEvent::SharedDtor() {
8949   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8950 }
8951 
SetCachedSize(int size) const8952 void KvmWfxArm64FtraceEvent::SetCachedSize(int size) const {
8953   _impl_._cached_size_.Set(size);
8954 }
8955 
Clear()8956 void KvmWfxArm64FtraceEvent::Clear() {
8957 // @@protoc_insertion_point(message_clear_start:perfetto.protos.KvmWfxArm64FtraceEvent)
8958   ::uint32_t cached_has_bits = 0;
8959   // Prevent compiler warnings about cached_has_bits being unused
8960   (void) cached_has_bits;
8961 
8962   cached_has_bits = _impl_._has_bits_[0];
8963   if (cached_has_bits & 0x00000003u) {
8964     ::memset(&_impl_.vcpu_pc_, 0, static_cast<size_t>(
8965         reinterpret_cast<char*>(&_impl_.is_wfe_) -
8966         reinterpret_cast<char*>(&_impl_.vcpu_pc_)) + sizeof(_impl_.is_wfe_));
8967   }
8968   _impl_._has_bits_.Clear();
8969   _internal_metadata_.Clear<std::string>();
8970 }
8971 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8972 const char* KvmWfxArm64FtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8973 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8974   _Internal::HasBits has_bits{};
8975   while (!ctx->Done(&ptr)) {
8976     ::uint32_t tag;
8977     ptr = ::_pbi::ReadTag(ptr, &tag);
8978     switch (tag >> 3) {
8979       // optional uint32 is_wfe = 1;
8980       case 1:
8981         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
8982           _Internal::set_has_is_wfe(&has_bits);
8983           _impl_.is_wfe_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8984           CHK_(ptr);
8985         } else {
8986           goto handle_unusual;
8987         }
8988         continue;
8989       // optional uint64 vcpu_pc = 2;
8990       case 2:
8991         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
8992           _Internal::set_has_vcpu_pc(&has_bits);
8993           _impl_.vcpu_pc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8994           CHK_(ptr);
8995         } else {
8996           goto handle_unusual;
8997         }
8998         continue;
8999       default:
9000         goto handle_unusual;
9001     }  // switch
9002   handle_unusual:
9003     if ((tag == 0) || ((tag & 7) == 4)) {
9004       CHK_(ptr);
9005       ctx->SetLastTag(tag);
9006       goto message_done;
9007     }
9008     ptr = UnknownFieldParse(
9009         tag,
9010         _internal_metadata_.mutable_unknown_fields<std::string>(),
9011         ptr, ctx);
9012     CHK_(ptr != nullptr);
9013   }  // while
9014 message_done:
9015   _impl_._has_bits_.Or(has_bits);
9016   return ptr;
9017 failure:
9018   ptr = nullptr;
9019   goto message_done;
9020 #undef CHK_
9021 }
9022 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9023 ::uint8_t* KvmWfxArm64FtraceEvent::_InternalSerialize(
9024     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9025   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.KvmWfxArm64FtraceEvent)
9026   ::uint32_t cached_has_bits = 0;
9027   (void) cached_has_bits;
9028 
9029   cached_has_bits = _impl_._has_bits_[0];
9030   // optional uint32 is_wfe = 1;
9031   if (cached_has_bits & 0x00000002u) {
9032     target = stream->EnsureSpace(target);
9033     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_is_wfe(), target);
9034   }
9035 
9036   // optional uint64 vcpu_pc = 2;
9037   if (cached_has_bits & 0x00000001u) {
9038     target = stream->EnsureSpace(target);
9039     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_vcpu_pc(), target);
9040   }
9041 
9042   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9043     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9044         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9045   }
9046   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.KvmWfxArm64FtraceEvent)
9047   return target;
9048 }
9049 
ByteSizeLong() const9050 size_t KvmWfxArm64FtraceEvent::ByteSizeLong() const {
9051 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.KvmWfxArm64FtraceEvent)
9052   size_t total_size = 0;
9053 
9054   ::uint32_t cached_has_bits = 0;
9055   // Prevent compiler warnings about cached_has_bits being unused
9056   (void) cached_has_bits;
9057 
9058   cached_has_bits = _impl_._has_bits_[0];
9059   if (cached_has_bits & 0x00000003u) {
9060     // optional uint64 vcpu_pc = 2;
9061     if (cached_has_bits & 0x00000001u) {
9062       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_pc());
9063     }
9064 
9065     // optional uint32 is_wfe = 1;
9066     if (cached_has_bits & 0x00000002u) {
9067       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_is_wfe());
9068     }
9069 
9070   }
9071   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9072     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9073   }
9074   int cached_size = ::_pbi::ToCachedSize(total_size);
9075   SetCachedSize(cached_size);
9076   return total_size;
9077 }
9078 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9079 void KvmWfxArm64FtraceEvent::CheckTypeAndMergeFrom(
9080     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9081   MergeFrom(*::_pbi::DownCast<const KvmWfxArm64FtraceEvent*>(
9082       &from));
9083 }
9084 
MergeFrom(const KvmWfxArm64FtraceEvent & from)9085 void KvmWfxArm64FtraceEvent::MergeFrom(const KvmWfxArm64FtraceEvent& from) {
9086   KvmWfxArm64FtraceEvent* const _this = this;
9087   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.KvmWfxArm64FtraceEvent)
9088   GOOGLE_DCHECK_NE(&from, _this);
9089   ::uint32_t cached_has_bits = 0;
9090   (void) cached_has_bits;
9091 
9092   cached_has_bits = from._impl_._has_bits_[0];
9093   if (cached_has_bits & 0x00000003u) {
9094     if (cached_has_bits & 0x00000001u) {
9095       _this->_impl_.vcpu_pc_ = from._impl_.vcpu_pc_;
9096     }
9097     if (cached_has_bits & 0x00000002u) {
9098       _this->_impl_.is_wfe_ = from._impl_.is_wfe_;
9099     }
9100     _this->_impl_._has_bits_[0] |= cached_has_bits;
9101   }
9102   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9103 }
9104 
CopyFrom(const KvmWfxArm64FtraceEvent & from)9105 void KvmWfxArm64FtraceEvent::CopyFrom(const KvmWfxArm64FtraceEvent& from) {
9106 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.KvmWfxArm64FtraceEvent)
9107   if (&from == this) return;
9108   Clear();
9109   MergeFrom(from);
9110 }
9111 
IsInitialized() const9112 bool KvmWfxArm64FtraceEvent::IsInitialized() const {
9113   return true;
9114 }
9115 
InternalSwap(KvmWfxArm64FtraceEvent * other)9116 void KvmWfxArm64FtraceEvent::InternalSwap(KvmWfxArm64FtraceEvent* other) {
9117   using std::swap;
9118   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9119   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9120   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9121       PROTOBUF_FIELD_OFFSET(KvmWfxArm64FtraceEvent, _impl_.is_wfe_)
9122       + sizeof(KvmWfxArm64FtraceEvent::_impl_.is_wfe_)  // NOLINT
9123       - PROTOBUF_FIELD_OFFSET(KvmWfxArm64FtraceEvent, _impl_.vcpu_pc_)>(
9124           reinterpret_cast<char*>(&_impl_.vcpu_pc_),
9125           reinterpret_cast<char*>(&other->_impl_.vcpu_pc_));
9126 }
9127 
GetTypeName() const9128 std::string KvmWfxArm64FtraceEvent::GetTypeName() const {
9129   return "perfetto.protos.KvmWfxArm64FtraceEvent";
9130 }
9131 
9132 
9133 // ===================================================================
9134 
9135 class TrapRegFtraceEvent::_Internal {
9136  public:
9137   using HasBits = decltype(std::declval<TrapRegFtraceEvent>()._impl_._has_bits_);
set_has_fn(HasBits * has_bits)9138   static void set_has_fn(HasBits* has_bits) {
9139     (*has_bits)[0] |= 1u;
9140   }
set_has_is_write(HasBits * has_bits)9141   static void set_has_is_write(HasBits* has_bits) {
9142     (*has_bits)[0] |= 2u;
9143   }
set_has_reg(HasBits * has_bits)9144   static void set_has_reg(HasBits* has_bits) {
9145     (*has_bits)[0] |= 4u;
9146   }
set_has_write_value(HasBits * has_bits)9147   static void set_has_write_value(HasBits* has_bits) {
9148     (*has_bits)[0] |= 8u;
9149   }
9150 };
9151 
TrapRegFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9152 TrapRegFtraceEvent::TrapRegFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9153                          bool is_message_owned)
9154   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9155   SharedCtor(arena, is_message_owned);
9156   // @@protoc_insertion_point(arena_constructor:perfetto.protos.TrapRegFtraceEvent)
9157 }
TrapRegFtraceEvent(const TrapRegFtraceEvent & from)9158 TrapRegFtraceEvent::TrapRegFtraceEvent(const TrapRegFtraceEvent& from)
9159   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9160   TrapRegFtraceEvent* const _this = this; (void)_this;
9161   new (&_impl_) Impl_{
9162       decltype(_impl_._has_bits_){from._impl_._has_bits_}
9163     , /*decltype(_impl_._cached_size_)*/{}
9164     , decltype(_impl_.fn_){}
9165     , decltype(_impl_.is_write_){}
9166     , decltype(_impl_.reg_){}
9167     , decltype(_impl_.write_value_){}};
9168 
9169   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9170   _impl_.fn_.InitDefault();
9171   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9172     _impl_.fn_.Set("", GetArenaForAllocation());
9173   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9174   if (from._internal_has_fn()) {
9175     _this->_impl_.fn_.Set(from._internal_fn(),
9176       _this->GetArenaForAllocation());
9177   }
9178   ::memcpy(&_impl_.is_write_, &from._impl_.is_write_,
9179     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.write_value_) -
9180     reinterpret_cast<char*>(&_impl_.is_write_)) + sizeof(_impl_.write_value_));
9181   // @@protoc_insertion_point(copy_constructor:perfetto.protos.TrapRegFtraceEvent)
9182 }
9183 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9184 inline void TrapRegFtraceEvent::SharedCtor(
9185     ::_pb::Arena* arena, bool is_message_owned) {
9186   (void)arena;
9187   (void)is_message_owned;
9188   new (&_impl_) Impl_{
9189       decltype(_impl_._has_bits_){}
9190     , /*decltype(_impl_._cached_size_)*/{}
9191     , decltype(_impl_.fn_){}
9192     , decltype(_impl_.is_write_){0u}
9193     , decltype(_impl_.reg_){0}
9194     , decltype(_impl_.write_value_){::uint64_t{0u}}
9195   };
9196   _impl_.fn_.InitDefault();
9197   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9198     _impl_.fn_.Set("", GetArenaForAllocation());
9199   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9200 }
9201 
~TrapRegFtraceEvent()9202 TrapRegFtraceEvent::~TrapRegFtraceEvent() {
9203   // @@protoc_insertion_point(destructor:perfetto.protos.TrapRegFtraceEvent)
9204   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9205   (void)arena;
9206     return;
9207   }
9208   SharedDtor();
9209 }
9210 
SharedDtor()9211 inline void TrapRegFtraceEvent::SharedDtor() {
9212   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9213   _impl_.fn_.Destroy();
9214 }
9215 
SetCachedSize(int size) const9216 void TrapRegFtraceEvent::SetCachedSize(int size) const {
9217   _impl_._cached_size_.Set(size);
9218 }
9219 
Clear()9220 void TrapRegFtraceEvent::Clear() {
9221 // @@protoc_insertion_point(message_clear_start:perfetto.protos.TrapRegFtraceEvent)
9222   ::uint32_t cached_has_bits = 0;
9223   // Prevent compiler warnings about cached_has_bits being unused
9224   (void) cached_has_bits;
9225 
9226   cached_has_bits = _impl_._has_bits_[0];
9227   if (cached_has_bits & 0x00000001u) {
9228     _impl_.fn_.ClearNonDefaultToEmpty();
9229   }
9230   if (cached_has_bits & 0x0000000eu) {
9231     ::memset(&_impl_.is_write_, 0, static_cast<size_t>(
9232         reinterpret_cast<char*>(&_impl_.write_value_) -
9233         reinterpret_cast<char*>(&_impl_.is_write_)) + sizeof(_impl_.write_value_));
9234   }
9235   _impl_._has_bits_.Clear();
9236   _internal_metadata_.Clear<std::string>();
9237 }
9238 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9239 const char* TrapRegFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9240 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9241   _Internal::HasBits has_bits{};
9242   while (!ctx->Done(&ptr)) {
9243     ::uint32_t tag;
9244     ptr = ::_pbi::ReadTag(ptr, &tag);
9245     switch (tag >> 3) {
9246       // optional string fn = 1;
9247       case 1:
9248         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
9249           auto str = _internal_mutable_fn();
9250           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9251           CHK_(ptr);
9252         } else {
9253           goto handle_unusual;
9254         }
9255         continue;
9256       // optional uint32 is_write = 2;
9257       case 2:
9258         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
9259           _Internal::set_has_is_write(&has_bits);
9260           _impl_.is_write_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9261           CHK_(ptr);
9262         } else {
9263           goto handle_unusual;
9264         }
9265         continue;
9266       // optional int32 reg = 3;
9267       case 3:
9268         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
9269           _Internal::set_has_reg(&has_bits);
9270           _impl_.reg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9271           CHK_(ptr);
9272         } else {
9273           goto handle_unusual;
9274         }
9275         continue;
9276       // optional uint64 write_value = 4;
9277       case 4:
9278         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
9279           _Internal::set_has_write_value(&has_bits);
9280           _impl_.write_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9281           CHK_(ptr);
9282         } else {
9283           goto handle_unusual;
9284         }
9285         continue;
9286       default:
9287         goto handle_unusual;
9288     }  // switch
9289   handle_unusual:
9290     if ((tag == 0) || ((tag & 7) == 4)) {
9291       CHK_(ptr);
9292       ctx->SetLastTag(tag);
9293       goto message_done;
9294     }
9295     ptr = UnknownFieldParse(
9296         tag,
9297         _internal_metadata_.mutable_unknown_fields<std::string>(),
9298         ptr, ctx);
9299     CHK_(ptr != nullptr);
9300   }  // while
9301 message_done:
9302   _impl_._has_bits_.Or(has_bits);
9303   return ptr;
9304 failure:
9305   ptr = nullptr;
9306   goto message_done;
9307 #undef CHK_
9308 }
9309 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9310 ::uint8_t* TrapRegFtraceEvent::_InternalSerialize(
9311     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9312   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.TrapRegFtraceEvent)
9313   ::uint32_t cached_has_bits = 0;
9314   (void) cached_has_bits;
9315 
9316   cached_has_bits = _impl_._has_bits_[0];
9317   // optional string fn = 1;
9318   if (cached_has_bits & 0x00000001u) {
9319     target = stream->WriteStringMaybeAliased(
9320         1, this->_internal_fn(), target);
9321   }
9322 
9323   // optional uint32 is_write = 2;
9324   if (cached_has_bits & 0x00000002u) {
9325     target = stream->EnsureSpace(target);
9326     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_is_write(), target);
9327   }
9328 
9329   // optional int32 reg = 3;
9330   if (cached_has_bits & 0x00000004u) {
9331     target = stream->EnsureSpace(target);
9332     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_reg(), target);
9333   }
9334 
9335   // optional uint64 write_value = 4;
9336   if (cached_has_bits & 0x00000008u) {
9337     target = stream->EnsureSpace(target);
9338     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_write_value(), target);
9339   }
9340 
9341   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9342     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9343         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9344   }
9345   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.TrapRegFtraceEvent)
9346   return target;
9347 }
9348 
ByteSizeLong() const9349 size_t TrapRegFtraceEvent::ByteSizeLong() const {
9350 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.TrapRegFtraceEvent)
9351   size_t total_size = 0;
9352 
9353   ::uint32_t cached_has_bits = 0;
9354   // Prevent compiler warnings about cached_has_bits being unused
9355   (void) cached_has_bits;
9356 
9357   cached_has_bits = _impl_._has_bits_[0];
9358   if (cached_has_bits & 0x0000000fu) {
9359     // optional string fn = 1;
9360     if (cached_has_bits & 0x00000001u) {
9361       total_size += 1 +
9362         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9363           this->_internal_fn());
9364     }
9365 
9366     // optional uint32 is_write = 2;
9367     if (cached_has_bits & 0x00000002u) {
9368       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_is_write());
9369     }
9370 
9371     // optional int32 reg = 3;
9372     if (cached_has_bits & 0x00000004u) {
9373       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_reg());
9374     }
9375 
9376     // optional uint64 write_value = 4;
9377     if (cached_has_bits & 0x00000008u) {
9378       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_write_value());
9379     }
9380 
9381   }
9382   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9383     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9384   }
9385   int cached_size = ::_pbi::ToCachedSize(total_size);
9386   SetCachedSize(cached_size);
9387   return total_size;
9388 }
9389 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9390 void TrapRegFtraceEvent::CheckTypeAndMergeFrom(
9391     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9392   MergeFrom(*::_pbi::DownCast<const TrapRegFtraceEvent*>(
9393       &from));
9394 }
9395 
MergeFrom(const TrapRegFtraceEvent & from)9396 void TrapRegFtraceEvent::MergeFrom(const TrapRegFtraceEvent& from) {
9397   TrapRegFtraceEvent* const _this = this;
9398   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.TrapRegFtraceEvent)
9399   GOOGLE_DCHECK_NE(&from, _this);
9400   ::uint32_t cached_has_bits = 0;
9401   (void) cached_has_bits;
9402 
9403   cached_has_bits = from._impl_._has_bits_[0];
9404   if (cached_has_bits & 0x0000000fu) {
9405     if (cached_has_bits & 0x00000001u) {
9406       _this->_internal_set_fn(from._internal_fn());
9407     }
9408     if (cached_has_bits & 0x00000002u) {
9409       _this->_impl_.is_write_ = from._impl_.is_write_;
9410     }
9411     if (cached_has_bits & 0x00000004u) {
9412       _this->_impl_.reg_ = from._impl_.reg_;
9413     }
9414     if (cached_has_bits & 0x00000008u) {
9415       _this->_impl_.write_value_ = from._impl_.write_value_;
9416     }
9417     _this->_impl_._has_bits_[0] |= cached_has_bits;
9418   }
9419   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9420 }
9421 
CopyFrom(const TrapRegFtraceEvent & from)9422 void TrapRegFtraceEvent::CopyFrom(const TrapRegFtraceEvent& from) {
9423 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.TrapRegFtraceEvent)
9424   if (&from == this) return;
9425   Clear();
9426   MergeFrom(from);
9427 }
9428 
IsInitialized() const9429 bool TrapRegFtraceEvent::IsInitialized() const {
9430   return true;
9431 }
9432 
InternalSwap(TrapRegFtraceEvent * other)9433 void TrapRegFtraceEvent::InternalSwap(TrapRegFtraceEvent* other) {
9434   using std::swap;
9435   auto* lhs_arena = GetArenaForAllocation();
9436   auto* rhs_arena = other->GetArenaForAllocation();
9437   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9438   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9439   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9440       &_impl_.fn_, lhs_arena,
9441       &other->_impl_.fn_, rhs_arena
9442   );
9443   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9444       PROTOBUF_FIELD_OFFSET(TrapRegFtraceEvent, _impl_.write_value_)
9445       + sizeof(TrapRegFtraceEvent::_impl_.write_value_)  // NOLINT
9446       - PROTOBUF_FIELD_OFFSET(TrapRegFtraceEvent, _impl_.is_write_)>(
9447           reinterpret_cast<char*>(&_impl_.is_write_),
9448           reinterpret_cast<char*>(&other->_impl_.is_write_));
9449 }
9450 
GetTypeName() const9451 std::string TrapRegFtraceEvent::GetTypeName() const {
9452   return "perfetto.protos.TrapRegFtraceEvent";
9453 }
9454 
9455 
9456 // ===================================================================
9457 
9458 class VgicUpdateIrqPendingFtraceEvent::_Internal {
9459  public:
9460   using HasBits = decltype(std::declval<VgicUpdateIrqPendingFtraceEvent>()._impl_._has_bits_);
set_has_irq(HasBits * has_bits)9461   static void set_has_irq(HasBits* has_bits) {
9462     (*has_bits)[0] |= 1u;
9463   }
set_has_level(HasBits * has_bits)9464   static void set_has_level(HasBits* has_bits) {
9465     (*has_bits)[0] |= 2u;
9466   }
set_has_vcpu_id(HasBits * has_bits)9467   static void set_has_vcpu_id(HasBits* has_bits) {
9468     (*has_bits)[0] |= 4u;
9469   }
9470 };
9471 
VgicUpdateIrqPendingFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9472 VgicUpdateIrqPendingFtraceEvent::VgicUpdateIrqPendingFtraceEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9473                          bool is_message_owned)
9474   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9475   SharedCtor(arena, is_message_owned);
9476   // @@protoc_insertion_point(arena_constructor:perfetto.protos.VgicUpdateIrqPendingFtraceEvent)
9477 }
VgicUpdateIrqPendingFtraceEvent(const VgicUpdateIrqPendingFtraceEvent & from)9478 VgicUpdateIrqPendingFtraceEvent::VgicUpdateIrqPendingFtraceEvent(const VgicUpdateIrqPendingFtraceEvent& from)
9479   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9480   VgicUpdateIrqPendingFtraceEvent* const _this = this; (void)_this;
9481   new (&_impl_) Impl_{
9482       decltype(_impl_._has_bits_){from._impl_._has_bits_}
9483     , /*decltype(_impl_._cached_size_)*/{}
9484     , decltype(_impl_.irq_){}
9485     , decltype(_impl_.level_){}
9486     , decltype(_impl_.vcpu_id_){}};
9487 
9488   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9489   ::memcpy(&_impl_.irq_, &from._impl_.irq_,
9490     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.vcpu_id_) -
9491     reinterpret_cast<char*>(&_impl_.irq_)) + sizeof(_impl_.vcpu_id_));
9492   // @@protoc_insertion_point(copy_constructor:perfetto.protos.VgicUpdateIrqPendingFtraceEvent)
9493 }
9494 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9495 inline void VgicUpdateIrqPendingFtraceEvent::SharedCtor(
9496     ::_pb::Arena* arena, bool is_message_owned) {
9497   (void)arena;
9498   (void)is_message_owned;
9499   new (&_impl_) Impl_{
9500       decltype(_impl_._has_bits_){}
9501     , /*decltype(_impl_._cached_size_)*/{}
9502     , decltype(_impl_.irq_){0u}
9503     , decltype(_impl_.level_){0u}
9504     , decltype(_impl_.vcpu_id_){::uint64_t{0u}}
9505   };
9506 }
9507 
~VgicUpdateIrqPendingFtraceEvent()9508 VgicUpdateIrqPendingFtraceEvent::~VgicUpdateIrqPendingFtraceEvent() {
9509   // @@protoc_insertion_point(destructor:perfetto.protos.VgicUpdateIrqPendingFtraceEvent)
9510   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9511   (void)arena;
9512     return;
9513   }
9514   SharedDtor();
9515 }
9516 
SharedDtor()9517 inline void VgicUpdateIrqPendingFtraceEvent::SharedDtor() {
9518   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9519 }
9520 
SetCachedSize(int size) const9521 void VgicUpdateIrqPendingFtraceEvent::SetCachedSize(int size) const {
9522   _impl_._cached_size_.Set(size);
9523 }
9524 
Clear()9525 void VgicUpdateIrqPendingFtraceEvent::Clear() {
9526 // @@protoc_insertion_point(message_clear_start:perfetto.protos.VgicUpdateIrqPendingFtraceEvent)
9527   ::uint32_t cached_has_bits = 0;
9528   // Prevent compiler warnings about cached_has_bits being unused
9529   (void) cached_has_bits;
9530 
9531   cached_has_bits = _impl_._has_bits_[0];
9532   if (cached_has_bits & 0x00000007u) {
9533     ::memset(&_impl_.irq_, 0, static_cast<size_t>(
9534         reinterpret_cast<char*>(&_impl_.vcpu_id_) -
9535         reinterpret_cast<char*>(&_impl_.irq_)) + sizeof(_impl_.vcpu_id_));
9536   }
9537   _impl_._has_bits_.Clear();
9538   _internal_metadata_.Clear<std::string>();
9539 }
9540 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9541 const char* VgicUpdateIrqPendingFtraceEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9542 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9543   _Internal::HasBits has_bits{};
9544   while (!ctx->Done(&ptr)) {
9545     ::uint32_t tag;
9546     ptr = ::_pbi::ReadTag(ptr, &tag);
9547     switch (tag >> 3) {
9548       // optional uint32 irq = 1;
9549       case 1:
9550         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
9551           _Internal::set_has_irq(&has_bits);
9552           _impl_.irq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9553           CHK_(ptr);
9554         } else {
9555           goto handle_unusual;
9556         }
9557         continue;
9558       // optional uint32 level = 2;
9559       case 2:
9560         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
9561           _Internal::set_has_level(&has_bits);
9562           _impl_.level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9563           CHK_(ptr);
9564         } else {
9565           goto handle_unusual;
9566         }
9567         continue;
9568       // optional uint64 vcpu_id = 3;
9569       case 3:
9570         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
9571           _Internal::set_has_vcpu_id(&has_bits);
9572           _impl_.vcpu_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9573           CHK_(ptr);
9574         } else {
9575           goto handle_unusual;
9576         }
9577         continue;
9578       default:
9579         goto handle_unusual;
9580     }  // switch
9581   handle_unusual:
9582     if ((tag == 0) || ((tag & 7) == 4)) {
9583       CHK_(ptr);
9584       ctx->SetLastTag(tag);
9585       goto message_done;
9586     }
9587     ptr = UnknownFieldParse(
9588         tag,
9589         _internal_metadata_.mutable_unknown_fields<std::string>(),
9590         ptr, ctx);
9591     CHK_(ptr != nullptr);
9592   }  // while
9593 message_done:
9594   _impl_._has_bits_.Or(has_bits);
9595   return ptr;
9596 failure:
9597   ptr = nullptr;
9598   goto message_done;
9599 #undef CHK_
9600 }
9601 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9602 ::uint8_t* VgicUpdateIrqPendingFtraceEvent::_InternalSerialize(
9603     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9604   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.VgicUpdateIrqPendingFtraceEvent)
9605   ::uint32_t cached_has_bits = 0;
9606   (void) cached_has_bits;
9607 
9608   cached_has_bits = _impl_._has_bits_[0];
9609   // optional uint32 irq = 1;
9610   if (cached_has_bits & 0x00000001u) {
9611     target = stream->EnsureSpace(target);
9612     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_irq(), target);
9613   }
9614 
9615   // optional uint32 level = 2;
9616   if (cached_has_bits & 0x00000002u) {
9617     target = stream->EnsureSpace(target);
9618     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_level(), target);
9619   }
9620 
9621   // optional uint64 vcpu_id = 3;
9622   if (cached_has_bits & 0x00000004u) {
9623     target = stream->EnsureSpace(target);
9624     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_vcpu_id(), target);
9625   }
9626 
9627   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9628     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9629         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9630   }
9631   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.VgicUpdateIrqPendingFtraceEvent)
9632   return target;
9633 }
9634 
ByteSizeLong() const9635 size_t VgicUpdateIrqPendingFtraceEvent::ByteSizeLong() const {
9636 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.VgicUpdateIrqPendingFtraceEvent)
9637   size_t total_size = 0;
9638 
9639   ::uint32_t cached_has_bits = 0;
9640   // Prevent compiler warnings about cached_has_bits being unused
9641   (void) cached_has_bits;
9642 
9643   cached_has_bits = _impl_._has_bits_[0];
9644   if (cached_has_bits & 0x00000007u) {
9645     // optional uint32 irq = 1;
9646     if (cached_has_bits & 0x00000001u) {
9647       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_irq());
9648     }
9649 
9650     // optional uint32 level = 2;
9651     if (cached_has_bits & 0x00000002u) {
9652       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_level());
9653     }
9654 
9655     // optional uint64 vcpu_id = 3;
9656     if (cached_has_bits & 0x00000004u) {
9657       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_vcpu_id());
9658     }
9659 
9660   }
9661   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9662     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9663   }
9664   int cached_size = ::_pbi::ToCachedSize(total_size);
9665   SetCachedSize(cached_size);
9666   return total_size;
9667 }
9668 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9669 void VgicUpdateIrqPendingFtraceEvent::CheckTypeAndMergeFrom(
9670     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9671   MergeFrom(*::_pbi::DownCast<const VgicUpdateIrqPendingFtraceEvent*>(
9672       &from));
9673 }
9674 
MergeFrom(const VgicUpdateIrqPendingFtraceEvent & from)9675 void VgicUpdateIrqPendingFtraceEvent::MergeFrom(const VgicUpdateIrqPendingFtraceEvent& from) {
9676   VgicUpdateIrqPendingFtraceEvent* const _this = this;
9677   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.VgicUpdateIrqPendingFtraceEvent)
9678   GOOGLE_DCHECK_NE(&from, _this);
9679   ::uint32_t cached_has_bits = 0;
9680   (void) cached_has_bits;
9681 
9682   cached_has_bits = from._impl_._has_bits_[0];
9683   if (cached_has_bits & 0x00000007u) {
9684     if (cached_has_bits & 0x00000001u) {
9685       _this->_impl_.irq_ = from._impl_.irq_;
9686     }
9687     if (cached_has_bits & 0x00000002u) {
9688       _this->_impl_.level_ = from._impl_.level_;
9689     }
9690     if (cached_has_bits & 0x00000004u) {
9691       _this->_impl_.vcpu_id_ = from._impl_.vcpu_id_;
9692     }
9693     _this->_impl_._has_bits_[0] |= cached_has_bits;
9694   }
9695   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9696 }
9697 
CopyFrom(const VgicUpdateIrqPendingFtraceEvent & from)9698 void VgicUpdateIrqPendingFtraceEvent::CopyFrom(const VgicUpdateIrqPendingFtraceEvent& from) {
9699 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.VgicUpdateIrqPendingFtraceEvent)
9700   if (&from == this) return;
9701   Clear();
9702   MergeFrom(from);
9703 }
9704 
IsInitialized() const9705 bool VgicUpdateIrqPendingFtraceEvent::IsInitialized() const {
9706   return true;
9707 }
9708 
InternalSwap(VgicUpdateIrqPendingFtraceEvent * other)9709 void VgicUpdateIrqPendingFtraceEvent::InternalSwap(VgicUpdateIrqPendingFtraceEvent* other) {
9710   using std::swap;
9711   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9712   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9713   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9714       PROTOBUF_FIELD_OFFSET(VgicUpdateIrqPendingFtraceEvent, _impl_.vcpu_id_)
9715       + sizeof(VgicUpdateIrqPendingFtraceEvent::_impl_.vcpu_id_)  // NOLINT
9716       - PROTOBUF_FIELD_OFFSET(VgicUpdateIrqPendingFtraceEvent, _impl_.irq_)>(
9717           reinterpret_cast<char*>(&_impl_.irq_),
9718           reinterpret_cast<char*>(&other->_impl_.irq_));
9719 }
9720 
GetTypeName() const9721 std::string VgicUpdateIrqPendingFtraceEvent::GetTypeName() const {
9722   return "perfetto.protos.VgicUpdateIrqPendingFtraceEvent";
9723 }
9724 
9725 
9726 // @@protoc_insertion_point(namespace_scope)
9727 }  // namespace protos
9728 }  // namespace perfetto
9729 PROTOBUF_NAMESPACE_OPEN
9730 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmAccessFaultFtraceEvent*
CreateMaybeMessage(Arena * arena)9731 Arena::CreateMaybeMessage< ::perfetto::protos::KvmAccessFaultFtraceEvent >(Arena* arena) {
9732   return Arena::CreateMessageInternal< ::perfetto::protos::KvmAccessFaultFtraceEvent >(arena);
9733 }
9734 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmAckIrqFtraceEvent*
CreateMaybeMessage(Arena * arena)9735 Arena::CreateMaybeMessage< ::perfetto::protos::KvmAckIrqFtraceEvent >(Arena* arena) {
9736   return Arena::CreateMessageInternal< ::perfetto::protos::KvmAckIrqFtraceEvent >(arena);
9737 }
9738 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmAgeHvaFtraceEvent*
CreateMaybeMessage(Arena * arena)9739 Arena::CreateMaybeMessage< ::perfetto::protos::KvmAgeHvaFtraceEvent >(Arena* arena) {
9740   return Arena::CreateMessageInternal< ::perfetto::protos::KvmAgeHvaFtraceEvent >(arena);
9741 }
9742 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmAgePageFtraceEvent*
CreateMaybeMessage(Arena * arena)9743 Arena::CreateMaybeMessage< ::perfetto::protos::KvmAgePageFtraceEvent >(Arena* arena) {
9744   return Arena::CreateMessageInternal< ::perfetto::protos::KvmAgePageFtraceEvent >(arena);
9745 }
9746 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmArmClearDebugFtraceEvent*
CreateMaybeMessage(Arena * arena)9747 Arena::CreateMaybeMessage< ::perfetto::protos::KvmArmClearDebugFtraceEvent >(Arena* arena) {
9748   return Arena::CreateMessageInternal< ::perfetto::protos::KvmArmClearDebugFtraceEvent >(arena);
9749 }
9750 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmArmSetDreg32FtraceEvent*
CreateMaybeMessage(Arena * arena)9751 Arena::CreateMaybeMessage< ::perfetto::protos::KvmArmSetDreg32FtraceEvent >(Arena* arena) {
9752   return Arena::CreateMessageInternal< ::perfetto::protos::KvmArmSetDreg32FtraceEvent >(arena);
9753 }
9754 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmArmSetRegsetFtraceEvent*
CreateMaybeMessage(Arena * arena)9755 Arena::CreateMaybeMessage< ::perfetto::protos::KvmArmSetRegsetFtraceEvent >(Arena* arena) {
9756   return Arena::CreateMessageInternal< ::perfetto::protos::KvmArmSetRegsetFtraceEvent >(arena);
9757 }
9758 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmArmSetupDebugFtraceEvent*
CreateMaybeMessage(Arena * arena)9759 Arena::CreateMaybeMessage< ::perfetto::protos::KvmArmSetupDebugFtraceEvent >(Arena* arena) {
9760   return Arena::CreateMessageInternal< ::perfetto::protos::KvmArmSetupDebugFtraceEvent >(arena);
9761 }
9762 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmEntryFtraceEvent*
CreateMaybeMessage(Arena * arena)9763 Arena::CreateMaybeMessage< ::perfetto::protos::KvmEntryFtraceEvent >(Arena* arena) {
9764   return Arena::CreateMessageInternal< ::perfetto::protos::KvmEntryFtraceEvent >(arena);
9765 }
9766 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmExitFtraceEvent*
CreateMaybeMessage(Arena * arena)9767 Arena::CreateMaybeMessage< ::perfetto::protos::KvmExitFtraceEvent >(Arena* arena) {
9768   return Arena::CreateMessageInternal< ::perfetto::protos::KvmExitFtraceEvent >(arena);
9769 }
9770 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmFpuFtraceEvent*
CreateMaybeMessage(Arena * arena)9771 Arena::CreateMaybeMessage< ::perfetto::protos::KvmFpuFtraceEvent >(Arena* arena) {
9772   return Arena::CreateMessageInternal< ::perfetto::protos::KvmFpuFtraceEvent >(arena);
9773 }
9774 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmGetTimerMapFtraceEvent*
CreateMaybeMessage(Arena * arena)9775 Arena::CreateMaybeMessage< ::perfetto::protos::KvmGetTimerMapFtraceEvent >(Arena* arena) {
9776   return Arena::CreateMessageInternal< ::perfetto::protos::KvmGetTimerMapFtraceEvent >(arena);
9777 }
9778 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmGuestFaultFtraceEvent*
CreateMaybeMessage(Arena * arena)9779 Arena::CreateMaybeMessage< ::perfetto::protos::KvmGuestFaultFtraceEvent >(Arena* arena) {
9780   return Arena::CreateMessageInternal< ::perfetto::protos::KvmGuestFaultFtraceEvent >(arena);
9781 }
9782 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmHandleSysRegFtraceEvent*
CreateMaybeMessage(Arena * arena)9783 Arena::CreateMaybeMessage< ::perfetto::protos::KvmHandleSysRegFtraceEvent >(Arena* arena) {
9784   return Arena::CreateMessageInternal< ::perfetto::protos::KvmHandleSysRegFtraceEvent >(arena);
9785 }
9786 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmHvcArm64FtraceEvent*
CreateMaybeMessage(Arena * arena)9787 Arena::CreateMaybeMessage< ::perfetto::protos::KvmHvcArm64FtraceEvent >(Arena* arena) {
9788   return Arena::CreateMessageInternal< ::perfetto::protos::KvmHvcArm64FtraceEvent >(arena);
9789 }
9790 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmIrqLineFtraceEvent*
CreateMaybeMessage(Arena * arena)9791 Arena::CreateMaybeMessage< ::perfetto::protos::KvmIrqLineFtraceEvent >(Arena* arena) {
9792   return Arena::CreateMessageInternal< ::perfetto::protos::KvmIrqLineFtraceEvent >(arena);
9793 }
9794 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmMmioFtraceEvent*
CreateMaybeMessage(Arena * arena)9795 Arena::CreateMaybeMessage< ::perfetto::protos::KvmMmioFtraceEvent >(Arena* arena) {
9796   return Arena::CreateMessageInternal< ::perfetto::protos::KvmMmioFtraceEvent >(arena);
9797 }
9798 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmMmioEmulateFtraceEvent*
CreateMaybeMessage(Arena * arena)9799 Arena::CreateMaybeMessage< ::perfetto::protos::KvmMmioEmulateFtraceEvent >(Arena* arena) {
9800   return Arena::CreateMessageInternal< ::perfetto::protos::KvmMmioEmulateFtraceEvent >(arena);
9801 }
9802 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmSetGuestDebugFtraceEvent*
CreateMaybeMessage(Arena * arena)9803 Arena::CreateMaybeMessage< ::perfetto::protos::KvmSetGuestDebugFtraceEvent >(Arena* arena) {
9804   return Arena::CreateMessageInternal< ::perfetto::protos::KvmSetGuestDebugFtraceEvent >(arena);
9805 }
9806 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmSetIrqFtraceEvent*
CreateMaybeMessage(Arena * arena)9807 Arena::CreateMaybeMessage< ::perfetto::protos::KvmSetIrqFtraceEvent >(Arena* arena) {
9808   return Arena::CreateMessageInternal< ::perfetto::protos::KvmSetIrqFtraceEvent >(arena);
9809 }
9810 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmSetSpteHvaFtraceEvent*
CreateMaybeMessage(Arena * arena)9811 Arena::CreateMaybeMessage< ::perfetto::protos::KvmSetSpteHvaFtraceEvent >(Arena* arena) {
9812   return Arena::CreateMessageInternal< ::perfetto::protos::KvmSetSpteHvaFtraceEvent >(arena);
9813 }
9814 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmSetWayFlushFtraceEvent*
CreateMaybeMessage(Arena * arena)9815 Arena::CreateMaybeMessage< ::perfetto::protos::KvmSetWayFlushFtraceEvent >(Arena* arena) {
9816   return Arena::CreateMessageInternal< ::perfetto::protos::KvmSetWayFlushFtraceEvent >(arena);
9817 }
9818 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmSysAccessFtraceEvent*
CreateMaybeMessage(Arena * arena)9819 Arena::CreateMaybeMessage< ::perfetto::protos::KvmSysAccessFtraceEvent >(Arena* arena) {
9820   return Arena::CreateMessageInternal< ::perfetto::protos::KvmSysAccessFtraceEvent >(arena);
9821 }
9822 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmTestAgeHvaFtraceEvent*
CreateMaybeMessage(Arena * arena)9823 Arena::CreateMaybeMessage< ::perfetto::protos::KvmTestAgeHvaFtraceEvent >(Arena* arena) {
9824   return Arena::CreateMessageInternal< ::perfetto::protos::KvmTestAgeHvaFtraceEvent >(arena);
9825 }
9826 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmTimerEmulateFtraceEvent*
CreateMaybeMessage(Arena * arena)9827 Arena::CreateMaybeMessage< ::perfetto::protos::KvmTimerEmulateFtraceEvent >(Arena* arena) {
9828   return Arena::CreateMessageInternal< ::perfetto::protos::KvmTimerEmulateFtraceEvent >(arena);
9829 }
9830 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmTimerHrtimerExpireFtraceEvent*
CreateMaybeMessage(Arena * arena)9831 Arena::CreateMaybeMessage< ::perfetto::protos::KvmTimerHrtimerExpireFtraceEvent >(Arena* arena) {
9832   return Arena::CreateMessageInternal< ::perfetto::protos::KvmTimerHrtimerExpireFtraceEvent >(arena);
9833 }
9834 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmTimerRestoreStateFtraceEvent*
CreateMaybeMessage(Arena * arena)9835 Arena::CreateMaybeMessage< ::perfetto::protos::KvmTimerRestoreStateFtraceEvent >(Arena* arena) {
9836   return Arena::CreateMessageInternal< ::perfetto::protos::KvmTimerRestoreStateFtraceEvent >(arena);
9837 }
9838 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmTimerSaveStateFtraceEvent*
CreateMaybeMessage(Arena * arena)9839 Arena::CreateMaybeMessage< ::perfetto::protos::KvmTimerSaveStateFtraceEvent >(Arena* arena) {
9840   return Arena::CreateMessageInternal< ::perfetto::protos::KvmTimerSaveStateFtraceEvent >(arena);
9841 }
9842 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmTimerUpdateIrqFtraceEvent*
CreateMaybeMessage(Arena * arena)9843 Arena::CreateMaybeMessage< ::perfetto::protos::KvmTimerUpdateIrqFtraceEvent >(Arena* arena) {
9844   return Arena::CreateMessageInternal< ::perfetto::protos::KvmTimerUpdateIrqFtraceEvent >(arena);
9845 }
9846 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmToggleCacheFtraceEvent*
CreateMaybeMessage(Arena * arena)9847 Arena::CreateMaybeMessage< ::perfetto::protos::KvmToggleCacheFtraceEvent >(Arena* arena) {
9848   return Arena::CreateMessageInternal< ::perfetto::protos::KvmToggleCacheFtraceEvent >(arena);
9849 }
9850 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmUnmapHvaRangeFtraceEvent*
CreateMaybeMessage(Arena * arena)9851 Arena::CreateMaybeMessage< ::perfetto::protos::KvmUnmapHvaRangeFtraceEvent >(Arena* arena) {
9852   return Arena::CreateMessageInternal< ::perfetto::protos::KvmUnmapHvaRangeFtraceEvent >(arena);
9853 }
9854 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmUserspaceExitFtraceEvent*
CreateMaybeMessage(Arena * arena)9855 Arena::CreateMaybeMessage< ::perfetto::protos::KvmUserspaceExitFtraceEvent >(Arena* arena) {
9856   return Arena::CreateMessageInternal< ::perfetto::protos::KvmUserspaceExitFtraceEvent >(arena);
9857 }
9858 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmVcpuWakeupFtraceEvent*
CreateMaybeMessage(Arena * arena)9859 Arena::CreateMaybeMessage< ::perfetto::protos::KvmVcpuWakeupFtraceEvent >(Arena* arena) {
9860   return Arena::CreateMessageInternal< ::perfetto::protos::KvmVcpuWakeupFtraceEvent >(arena);
9861 }
9862 template<> PROTOBUF_NOINLINE ::perfetto::protos::KvmWfxArm64FtraceEvent*
CreateMaybeMessage(Arena * arena)9863 Arena::CreateMaybeMessage< ::perfetto::protos::KvmWfxArm64FtraceEvent >(Arena* arena) {
9864   return Arena::CreateMessageInternal< ::perfetto::protos::KvmWfxArm64FtraceEvent >(arena);
9865 }
9866 template<> PROTOBUF_NOINLINE ::perfetto::protos::TrapRegFtraceEvent*
CreateMaybeMessage(Arena * arena)9867 Arena::CreateMaybeMessage< ::perfetto::protos::TrapRegFtraceEvent >(Arena* arena) {
9868   return Arena::CreateMessageInternal< ::perfetto::protos::TrapRegFtraceEvent >(arena);
9869 }
9870 template<> PROTOBUF_NOINLINE ::perfetto::protos::VgicUpdateIrqPendingFtraceEvent*
CreateMaybeMessage(Arena * arena)9871 Arena::CreateMaybeMessage< ::perfetto::protos::VgicUpdateIrqPendingFtraceEvent >(Arena* arena) {
9872   return Arena::CreateMessageInternal< ::perfetto::protos::VgicUpdateIrqPendingFtraceEvent >(arena);
9873 }
9874 PROTOBUF_NAMESPACE_CLOSE
9875 
9876 // @@protoc_insertion_point(global_scope)
9877 #include <google/protobuf/port_undef.inc>
9878