1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/ftrace/ftrace_stats.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fftrace_2fftrace_5fstats_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fftrace_2fftrace_5fstats_2eproto
6 
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10 
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22 
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
32 #include <google/protobuf/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_protos_2fperfetto_2ftrace_2fftrace_2fftrace_5fstats_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 }  // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41 
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_protos_2fperfetto_2ftrace_2fftrace_2fftrace_5fstats_2eproto {
44   static const ::uint32_t offsets[];
45 };
46 namespace perfetto {
47 namespace protos {
48 class FtraceCpuStats;
49 struct FtraceCpuStatsDefaultTypeInternal;
50 extern FtraceCpuStatsDefaultTypeInternal _FtraceCpuStats_default_instance_;
51 class FtraceKprobeStats;
52 struct FtraceKprobeStatsDefaultTypeInternal;
53 extern FtraceKprobeStatsDefaultTypeInternal _FtraceKprobeStats_default_instance_;
54 class FtraceStats;
55 struct FtraceStatsDefaultTypeInternal;
56 extern FtraceStatsDefaultTypeInternal _FtraceStats_default_instance_;
57 }  // namespace protos
58 }  // namespace perfetto
59 PROTOBUF_NAMESPACE_OPEN
60 template<> ::perfetto::protos::FtraceCpuStats* Arena::CreateMaybeMessage<::perfetto::protos::FtraceCpuStats>(Arena*);
61 template<> ::perfetto::protos::FtraceKprobeStats* Arena::CreateMaybeMessage<::perfetto::protos::FtraceKprobeStats>(Arena*);
62 template<> ::perfetto::protos::FtraceStats* Arena::CreateMaybeMessage<::perfetto::protos::FtraceStats>(Arena*);
63 PROTOBUF_NAMESPACE_CLOSE
64 namespace perfetto {
65 namespace protos {
66 
67 enum FtraceStats_Phase : int {
68   FtraceStats_Phase_UNSPECIFIED = 0,
69   FtraceStats_Phase_START_OF_TRACE = 1,
70   FtraceStats_Phase_END_OF_TRACE = 2
71 };
72 bool FtraceStats_Phase_IsValid(int value);
73 constexpr FtraceStats_Phase FtraceStats_Phase_Phase_MIN = FtraceStats_Phase_UNSPECIFIED;
74 constexpr FtraceStats_Phase FtraceStats_Phase_Phase_MAX = FtraceStats_Phase_END_OF_TRACE;
75 constexpr int FtraceStats_Phase_Phase_ARRAYSIZE = FtraceStats_Phase_Phase_MAX + 1;
76 
77 const std::string& FtraceStats_Phase_Name(FtraceStats_Phase value);
78 template<typename T>
FtraceStats_Phase_Name(T enum_t_value)79 inline const std::string& FtraceStats_Phase_Name(T enum_t_value) {
80   static_assert(::std::is_same<T, FtraceStats_Phase>::value ||
81     ::std::is_integral<T>::value,
82     "Incorrect type passed to function FtraceStats_Phase_Name.");
83   return FtraceStats_Phase_Name(static_cast<FtraceStats_Phase>(enum_t_value));
84 }
85 bool FtraceStats_Phase_Parse(
86     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FtraceStats_Phase* value);
87 enum FtraceParseStatus : int {
88   FTRACE_STATUS_UNSPECIFIED = 0,
89   FTRACE_STATUS_OK = 1,
90   FTRACE_STATUS_UNEXPECTED_READ_ERROR = 2,
91   FTRACE_STATUS_PARTIAL_PAGE_READ = 3,
92   FTRACE_STATUS_ABI_INVALID_PAGE_HEADER = 4,
93   FTRACE_STATUS_ABI_SHORT_EVENT_HEADER = 5,
94   FTRACE_STATUS_ABI_NULL_PADDING = 6,
95   FTRACE_STATUS_ABI_SHORT_PADDING_LENGTH = 7,
96   FTRACE_STATUS_ABI_INVALID_PADDING_LENGTH = 8,
97   FTRACE_STATUS_ABI_SHORT_TIME_EXTEND = 9,
98   FTRACE_STATUS_ABI_SHORT_TIME_STAMP = 10,
99   FTRACE_STATUS_ABI_SHORT_DATA_LENGTH = 11,
100   FTRACE_STATUS_ABI_ZERO_DATA_LENGTH = 12,
101   FTRACE_STATUS_ABI_INVALID_DATA_LENGTH = 13,
102   FTRACE_STATUS_ABI_SHORT_EVENT_ID = 14,
103   FTRACE_STATUS_ABI_END_OVERFLOW = 15,
104   FTRACE_STATUS_SHORT_COMPACT_EVENT = 16,
105   FTRACE_STATUS_INVALID_EVENT = 17
106 };
107 bool FtraceParseStatus_IsValid(int value);
108 constexpr FtraceParseStatus FtraceParseStatus_MIN = FTRACE_STATUS_UNSPECIFIED;
109 constexpr FtraceParseStatus FtraceParseStatus_MAX = FTRACE_STATUS_INVALID_EVENT;
110 constexpr int FtraceParseStatus_ARRAYSIZE = FtraceParseStatus_MAX + 1;
111 
112 const std::string& FtraceParseStatus_Name(FtraceParseStatus value);
113 template<typename T>
FtraceParseStatus_Name(T enum_t_value)114 inline const std::string& FtraceParseStatus_Name(T enum_t_value) {
115   static_assert(::std::is_same<T, FtraceParseStatus>::value ||
116     ::std::is_integral<T>::value,
117     "Incorrect type passed to function FtraceParseStatus_Name.");
118   return FtraceParseStatus_Name(static_cast<FtraceParseStatus>(enum_t_value));
119 }
120 bool FtraceParseStatus_Parse(
121     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FtraceParseStatus* value);
122 // ===================================================================
123 
124 class FtraceCpuStats final :
125     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.FtraceCpuStats) */ {
126  public:
FtraceCpuStats()127   inline FtraceCpuStats() : FtraceCpuStats(nullptr) {}
128   ~FtraceCpuStats() override;
129   explicit PROTOBUF_CONSTEXPR FtraceCpuStats(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
130 
131   FtraceCpuStats(const FtraceCpuStats& from);
FtraceCpuStats(FtraceCpuStats && from)132   FtraceCpuStats(FtraceCpuStats&& from) noexcept
133     : FtraceCpuStats() {
134     *this = ::std::move(from);
135   }
136 
137   inline FtraceCpuStats& operator=(const FtraceCpuStats& from) {
138     if (this == &from) return *this;
139     CopyFrom(from);
140     return *this;
141   }
142   inline FtraceCpuStats& operator=(FtraceCpuStats&& from) noexcept {
143     if (this == &from) return *this;
144     if (GetOwningArena() == from.GetOwningArena()
145   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
146         && GetOwningArena() != nullptr
147   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
148     ) {
149       InternalSwap(&from);
150     } else {
151       CopyFrom(from);
152     }
153     return *this;
154   }
155 
unknown_fields()156   inline const std::string& unknown_fields() const {
157     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
158   }
mutable_unknown_fields()159   inline std::string* mutable_unknown_fields() {
160     return _internal_metadata_.mutable_unknown_fields<std::string>();
161   }
162 
default_instance()163   static const FtraceCpuStats& default_instance() {
164     return *internal_default_instance();
165   }
internal_default_instance()166   static inline const FtraceCpuStats* internal_default_instance() {
167     return reinterpret_cast<const FtraceCpuStats*>(
168                &_FtraceCpuStats_default_instance_);
169   }
170   static constexpr int kIndexInFileMessages =
171     0;
172 
swap(FtraceCpuStats & a,FtraceCpuStats & b)173   friend void swap(FtraceCpuStats& a, FtraceCpuStats& b) {
174     a.Swap(&b);
175   }
Swap(FtraceCpuStats * other)176   inline void Swap(FtraceCpuStats* other) {
177     if (other == this) return;
178   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
179     if (GetOwningArena() != nullptr &&
180         GetOwningArena() == other->GetOwningArena()) {
181    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
182     if (GetOwningArena() == other->GetOwningArena()) {
183   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
184       InternalSwap(other);
185     } else {
186       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
187     }
188   }
189   void UnsafeArenaSwap(FtraceCpuStats* other) {
190     if (other == this) return;
191     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
192     InternalSwap(other);
193   }
194 
195   // implements Message ----------------------------------------------
196 
197   FtraceCpuStats* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
198     return CreateMaybeMessage<FtraceCpuStats>(arena);
199   }
200   FtraceCpuStats* New() const {
201     return New(nullptr);
202   }
203   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
204   void CopyFrom(const FtraceCpuStats& from);
205   void MergeFrom(const FtraceCpuStats& from);
206   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
207   bool IsInitialized() const final;
208 
209   size_t ByteSizeLong() const final;
210   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
211   ::uint8_t* _InternalSerialize(
212       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
213   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
214 
215   private:
216   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
217   void SharedDtor();
218   void SetCachedSize(int size) const;
219   void InternalSwap(FtraceCpuStats* other);
220 
221   private:
222   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
223   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
224     return "perfetto.protos.FtraceCpuStats";
225   }
226   protected:
227   explicit FtraceCpuStats(::PROTOBUF_NAMESPACE_ID::Arena* arena,
228                        bool is_message_owned = false);
229   public:
230 
231   std::string GetTypeName() const final;
232 
233   // nested types ----------------------------------------------------
234 
235   // accessors -------------------------------------------------------
236 
237   enum : int {
238     kCpuFieldNumber = 1,
239     kEntriesFieldNumber = 2,
240     kOverrunFieldNumber = 3,
241     kCommitOverrunFieldNumber = 4,
242     kBytesReadFieldNumber = 5,
243     kOldestEventTsFieldNumber = 6,
244     kNowTsFieldNumber = 7,
245     kDroppedEventsFieldNumber = 8,
246     kReadEventsFieldNumber = 9,
247   };
248   // optional uint64 cpu = 1;
249   bool has_cpu() const;
250   private:
251   bool _internal_has_cpu() const;
252   public:
253   void clear_cpu();
254   ::uint64_t cpu() const;
255   void set_cpu(::uint64_t value);
256   private:
257   ::uint64_t _internal_cpu() const;
258   void _internal_set_cpu(::uint64_t value);
259   public:
260 
261   // optional uint64 entries = 2;
262   bool has_entries() const;
263   private:
264   bool _internal_has_entries() const;
265   public:
266   void clear_entries();
267   ::uint64_t entries() const;
268   void set_entries(::uint64_t value);
269   private:
270   ::uint64_t _internal_entries() const;
271   void _internal_set_entries(::uint64_t value);
272   public:
273 
274   // optional uint64 overrun = 3;
275   bool has_overrun() const;
276   private:
277   bool _internal_has_overrun() const;
278   public:
279   void clear_overrun();
280   ::uint64_t overrun() const;
281   void set_overrun(::uint64_t value);
282   private:
283   ::uint64_t _internal_overrun() const;
284   void _internal_set_overrun(::uint64_t value);
285   public:
286 
287   // optional uint64 commit_overrun = 4;
288   bool has_commit_overrun() const;
289   private:
290   bool _internal_has_commit_overrun() const;
291   public:
292   void clear_commit_overrun();
293   ::uint64_t commit_overrun() const;
294   void set_commit_overrun(::uint64_t value);
295   private:
296   ::uint64_t _internal_commit_overrun() const;
297   void _internal_set_commit_overrun(::uint64_t value);
298   public:
299 
300   // optional uint64 bytes_read = 5;
301   bool has_bytes_read() const;
302   private:
303   bool _internal_has_bytes_read() const;
304   public:
305   void clear_bytes_read();
306   ::uint64_t bytes_read() const;
307   void set_bytes_read(::uint64_t value);
308   private:
309   ::uint64_t _internal_bytes_read() const;
310   void _internal_set_bytes_read(::uint64_t value);
311   public:
312 
313   // optional double oldest_event_ts = 6;
314   bool has_oldest_event_ts() const;
315   private:
316   bool _internal_has_oldest_event_ts() const;
317   public:
318   void clear_oldest_event_ts();
319   double oldest_event_ts() const;
320   void set_oldest_event_ts(double value);
321   private:
322   double _internal_oldest_event_ts() const;
323   void _internal_set_oldest_event_ts(double value);
324   public:
325 
326   // optional double now_ts = 7;
327   bool has_now_ts() const;
328   private:
329   bool _internal_has_now_ts() const;
330   public:
331   void clear_now_ts();
332   double now_ts() const;
333   void set_now_ts(double value);
334   private:
335   double _internal_now_ts() const;
336   void _internal_set_now_ts(double value);
337   public:
338 
339   // optional uint64 dropped_events = 8;
340   bool has_dropped_events() const;
341   private:
342   bool _internal_has_dropped_events() const;
343   public:
344   void clear_dropped_events();
345   ::uint64_t dropped_events() const;
346   void set_dropped_events(::uint64_t value);
347   private:
348   ::uint64_t _internal_dropped_events() const;
349   void _internal_set_dropped_events(::uint64_t value);
350   public:
351 
352   // optional uint64 read_events = 9;
353   bool has_read_events() const;
354   private:
355   bool _internal_has_read_events() const;
356   public:
357   void clear_read_events();
358   ::uint64_t read_events() const;
359   void set_read_events(::uint64_t value);
360   private:
361   ::uint64_t _internal_read_events() const;
362   void _internal_set_read_events(::uint64_t value);
363   public:
364 
365   // @@protoc_insertion_point(class_scope:perfetto.protos.FtraceCpuStats)
366  private:
367   class _Internal;
368 
369   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
370   typedef void InternalArenaConstructable_;
371   typedef void DestructorSkippable_;
372   struct Impl_ {
373     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
374     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
375     ::uint64_t cpu_;
376     ::uint64_t entries_;
377     ::uint64_t overrun_;
378     ::uint64_t commit_overrun_;
379     ::uint64_t bytes_read_;
380     double oldest_event_ts_;
381     double now_ts_;
382     ::uint64_t dropped_events_;
383     ::uint64_t read_events_;
384   };
385   union { Impl_ _impl_; };
386   friend struct ::TableStruct_protos_2fperfetto_2ftrace_2fftrace_2fftrace_5fstats_2eproto;
387 };
388 // -------------------------------------------------------------------
389 
390 class FtraceKprobeStats final :
391     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.FtraceKprobeStats) */ {
392  public:
FtraceKprobeStats()393   inline FtraceKprobeStats() : FtraceKprobeStats(nullptr) {}
394   ~FtraceKprobeStats() override;
395   explicit PROTOBUF_CONSTEXPR FtraceKprobeStats(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
396 
397   FtraceKprobeStats(const FtraceKprobeStats& from);
FtraceKprobeStats(FtraceKprobeStats && from)398   FtraceKprobeStats(FtraceKprobeStats&& from) noexcept
399     : FtraceKprobeStats() {
400     *this = ::std::move(from);
401   }
402 
403   inline FtraceKprobeStats& operator=(const FtraceKprobeStats& from) {
404     if (this == &from) return *this;
405     CopyFrom(from);
406     return *this;
407   }
408   inline FtraceKprobeStats& operator=(FtraceKprobeStats&& from) noexcept {
409     if (this == &from) return *this;
410     if (GetOwningArena() == from.GetOwningArena()
411   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
412         && GetOwningArena() != nullptr
413   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
414     ) {
415       InternalSwap(&from);
416     } else {
417       CopyFrom(from);
418     }
419     return *this;
420   }
421 
unknown_fields()422   inline const std::string& unknown_fields() const {
423     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
424   }
mutable_unknown_fields()425   inline std::string* mutable_unknown_fields() {
426     return _internal_metadata_.mutable_unknown_fields<std::string>();
427   }
428 
default_instance()429   static const FtraceKprobeStats& default_instance() {
430     return *internal_default_instance();
431   }
internal_default_instance()432   static inline const FtraceKprobeStats* internal_default_instance() {
433     return reinterpret_cast<const FtraceKprobeStats*>(
434                &_FtraceKprobeStats_default_instance_);
435   }
436   static constexpr int kIndexInFileMessages =
437     1;
438 
swap(FtraceKprobeStats & a,FtraceKprobeStats & b)439   friend void swap(FtraceKprobeStats& a, FtraceKprobeStats& b) {
440     a.Swap(&b);
441   }
Swap(FtraceKprobeStats * other)442   inline void Swap(FtraceKprobeStats* other) {
443     if (other == this) return;
444   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
445     if (GetOwningArena() != nullptr &&
446         GetOwningArena() == other->GetOwningArena()) {
447    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
448     if (GetOwningArena() == other->GetOwningArena()) {
449   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
450       InternalSwap(other);
451     } else {
452       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
453     }
454   }
455   void UnsafeArenaSwap(FtraceKprobeStats* other) {
456     if (other == this) return;
457     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
458     InternalSwap(other);
459   }
460 
461   // implements Message ----------------------------------------------
462 
463   FtraceKprobeStats* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
464     return CreateMaybeMessage<FtraceKprobeStats>(arena);
465   }
466   FtraceKprobeStats* New() const {
467     return New(nullptr);
468   }
469   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
470   void CopyFrom(const FtraceKprobeStats& from);
471   void MergeFrom(const FtraceKprobeStats& from);
472   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
473   bool IsInitialized() const final;
474 
475   size_t ByteSizeLong() const final;
476   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
477   ::uint8_t* _InternalSerialize(
478       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
479   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
480 
481   private:
482   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
483   void SharedDtor();
484   void SetCachedSize(int size) const;
485   void InternalSwap(FtraceKprobeStats* other);
486 
487   private:
488   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
489   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
490     return "perfetto.protos.FtraceKprobeStats";
491   }
492   protected:
493   explicit FtraceKprobeStats(::PROTOBUF_NAMESPACE_ID::Arena* arena,
494                        bool is_message_owned = false);
495   public:
496 
497   std::string GetTypeName() const final;
498 
499   // nested types ----------------------------------------------------
500 
501   // accessors -------------------------------------------------------
502 
503   enum : int {
504     kHitsFieldNumber = 1,
505     kMissesFieldNumber = 2,
506   };
507   // optional int64 hits = 1;
508   bool has_hits() const;
509   private:
510   bool _internal_has_hits() const;
511   public:
512   void clear_hits();
513   ::int64_t hits() const;
514   void set_hits(::int64_t value);
515   private:
516   ::int64_t _internal_hits() const;
517   void _internal_set_hits(::int64_t value);
518   public:
519 
520   // optional int64 misses = 2;
521   bool has_misses() const;
522   private:
523   bool _internal_has_misses() const;
524   public:
525   void clear_misses();
526   ::int64_t misses() const;
527   void set_misses(::int64_t value);
528   private:
529   ::int64_t _internal_misses() const;
530   void _internal_set_misses(::int64_t value);
531   public:
532 
533   // @@protoc_insertion_point(class_scope:perfetto.protos.FtraceKprobeStats)
534  private:
535   class _Internal;
536 
537   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
538   typedef void InternalArenaConstructable_;
539   typedef void DestructorSkippable_;
540   struct Impl_ {
541     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
542     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
543     ::int64_t hits_;
544     ::int64_t misses_;
545   };
546   union { Impl_ _impl_; };
547   friend struct ::TableStruct_protos_2fperfetto_2ftrace_2fftrace_2fftrace_5fstats_2eproto;
548 };
549 // -------------------------------------------------------------------
550 
551 class FtraceStats final :
552     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.FtraceStats) */ {
553  public:
FtraceStats()554   inline FtraceStats() : FtraceStats(nullptr) {}
555   ~FtraceStats() override;
556   explicit PROTOBUF_CONSTEXPR FtraceStats(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
557 
558   FtraceStats(const FtraceStats& from);
FtraceStats(FtraceStats && from)559   FtraceStats(FtraceStats&& from) noexcept
560     : FtraceStats() {
561     *this = ::std::move(from);
562   }
563 
564   inline FtraceStats& operator=(const FtraceStats& from) {
565     if (this == &from) return *this;
566     CopyFrom(from);
567     return *this;
568   }
569   inline FtraceStats& operator=(FtraceStats&& from) noexcept {
570     if (this == &from) return *this;
571     if (GetOwningArena() == from.GetOwningArena()
572   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
573         && GetOwningArena() != nullptr
574   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
575     ) {
576       InternalSwap(&from);
577     } else {
578       CopyFrom(from);
579     }
580     return *this;
581   }
582 
unknown_fields()583   inline const std::string& unknown_fields() const {
584     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
585   }
mutable_unknown_fields()586   inline std::string* mutable_unknown_fields() {
587     return _internal_metadata_.mutable_unknown_fields<std::string>();
588   }
589 
default_instance()590   static const FtraceStats& default_instance() {
591     return *internal_default_instance();
592   }
internal_default_instance()593   static inline const FtraceStats* internal_default_instance() {
594     return reinterpret_cast<const FtraceStats*>(
595                &_FtraceStats_default_instance_);
596   }
597   static constexpr int kIndexInFileMessages =
598     2;
599 
swap(FtraceStats & a,FtraceStats & b)600   friend void swap(FtraceStats& a, FtraceStats& b) {
601     a.Swap(&b);
602   }
Swap(FtraceStats * other)603   inline void Swap(FtraceStats* other) {
604     if (other == this) return;
605   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
606     if (GetOwningArena() != nullptr &&
607         GetOwningArena() == other->GetOwningArena()) {
608    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
609     if (GetOwningArena() == other->GetOwningArena()) {
610   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
611       InternalSwap(other);
612     } else {
613       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
614     }
615   }
616   void UnsafeArenaSwap(FtraceStats* other) {
617     if (other == this) return;
618     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
619     InternalSwap(other);
620   }
621 
622   // implements Message ----------------------------------------------
623 
624   FtraceStats* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
625     return CreateMaybeMessage<FtraceStats>(arena);
626   }
627   FtraceStats* New() const {
628     return New(nullptr);
629   }
630   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
631   void CopyFrom(const FtraceStats& from);
632   void MergeFrom(const FtraceStats& from);
633   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
634   bool IsInitialized() const final;
635 
636   size_t ByteSizeLong() const final;
637   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
638   ::uint8_t* _InternalSerialize(
639       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
640   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
641 
642   private:
643   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
644   void SharedDtor();
645   void SetCachedSize(int size) const;
646   void InternalSwap(FtraceStats* other);
647 
648   private:
649   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
650   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
651     return "perfetto.protos.FtraceStats";
652   }
653   protected:
654   explicit FtraceStats(::PROTOBUF_NAMESPACE_ID::Arena* arena,
655                        bool is_message_owned = false);
656   public:
657 
658   std::string GetTypeName() const final;
659 
660   // nested types ----------------------------------------------------
661 
662   typedef FtraceStats_Phase Phase;
663   static constexpr Phase UNSPECIFIED =
664     FtraceStats_Phase_UNSPECIFIED;
665   static constexpr Phase START_OF_TRACE =
666     FtraceStats_Phase_START_OF_TRACE;
667   static constexpr Phase END_OF_TRACE =
668     FtraceStats_Phase_END_OF_TRACE;
669   static inline bool Phase_IsValid(int value) {
670     return FtraceStats_Phase_IsValid(value);
671   }
672   static constexpr Phase Phase_MIN =
673     FtraceStats_Phase_Phase_MIN;
674   static constexpr Phase Phase_MAX =
675     FtraceStats_Phase_Phase_MAX;
676   static constexpr int Phase_ARRAYSIZE =
677     FtraceStats_Phase_Phase_ARRAYSIZE;
678   template<typename T>
679   static inline const std::string& Phase_Name(T enum_t_value) {
680     static_assert(::std::is_same<T, Phase>::value ||
681       ::std::is_integral<T>::value,
682       "Incorrect type passed to function Phase_Name.");
683     return FtraceStats_Phase_Name(enum_t_value);
684   }
685   static inline bool Phase_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
686       Phase* value) {
687     return FtraceStats_Phase_Parse(name, value);
688   }
689 
690   // accessors -------------------------------------------------------
691 
692   enum : int {
693     kCpuStatsFieldNumber = 2,
694     kUnknownFtraceEventsFieldNumber = 6,
695     kFailedFtraceEventsFieldNumber = 7,
696     kFtraceParseErrorsFieldNumber = 9,
697     kAtraceErrorsFieldNumber = 5,
698     kKprobeStatsFieldNumber = 10,
699     kPhaseFieldNumber = 1,
700     kKernelSymbolsParsedFieldNumber = 3,
701     kKernelSymbolsMemKbFieldNumber = 4,
702     kPreserveFtraceBufferFieldNumber = 8,
703   };
704   // repeated .perfetto.protos.FtraceCpuStats cpu_stats = 2;
705   int cpu_stats_size() const;
706   private:
707   int _internal_cpu_stats_size() const;
708   public:
709   void clear_cpu_stats();
710   ::perfetto::protos::FtraceCpuStats* mutable_cpu_stats(int index);
711   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::FtraceCpuStats >*
712       mutable_cpu_stats();
713   private:
714   const ::perfetto::protos::FtraceCpuStats& _internal_cpu_stats(int index) const;
715   ::perfetto::protos::FtraceCpuStats* _internal_add_cpu_stats();
716   public:
717   const ::perfetto::protos::FtraceCpuStats& cpu_stats(int index) const;
718   ::perfetto::protos::FtraceCpuStats* add_cpu_stats();
719   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::FtraceCpuStats >&
720       cpu_stats() const;
721 
722   // repeated string unknown_ftrace_events = 6;
723   int unknown_ftrace_events_size() const;
724   private:
725   int _internal_unknown_ftrace_events_size() const;
726   public:
727   void clear_unknown_ftrace_events();
728   const std::string& unknown_ftrace_events(int index) const;
729   std::string* mutable_unknown_ftrace_events(int index);
730   void set_unknown_ftrace_events(int index, const std::string& value);
731   void set_unknown_ftrace_events(int index, std::string&& value);
732   void set_unknown_ftrace_events(int index, const char* value);
733   void set_unknown_ftrace_events(int index, const char* value, size_t size);
734   std::string* add_unknown_ftrace_events();
735   void add_unknown_ftrace_events(const std::string& value);
736   void add_unknown_ftrace_events(std::string&& value);
737   void add_unknown_ftrace_events(const char* value);
738   void add_unknown_ftrace_events(const char* value, size_t size);
739   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& unknown_ftrace_events() const;
740   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_unknown_ftrace_events();
741   private:
742   const std::string& _internal_unknown_ftrace_events(int index) const;
743   std::string* _internal_add_unknown_ftrace_events();
744   public:
745 
746   // repeated string failed_ftrace_events = 7;
747   int failed_ftrace_events_size() const;
748   private:
749   int _internal_failed_ftrace_events_size() const;
750   public:
751   void clear_failed_ftrace_events();
752   const std::string& failed_ftrace_events(int index) const;
753   std::string* mutable_failed_ftrace_events(int index);
754   void set_failed_ftrace_events(int index, const std::string& value);
755   void set_failed_ftrace_events(int index, std::string&& value);
756   void set_failed_ftrace_events(int index, const char* value);
757   void set_failed_ftrace_events(int index, const char* value, size_t size);
758   std::string* add_failed_ftrace_events();
759   void add_failed_ftrace_events(const std::string& value);
760   void add_failed_ftrace_events(std::string&& value);
761   void add_failed_ftrace_events(const char* value);
762   void add_failed_ftrace_events(const char* value, size_t size);
763   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& failed_ftrace_events() const;
764   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_failed_ftrace_events();
765   private:
766   const std::string& _internal_failed_ftrace_events(int index) const;
767   std::string* _internal_add_failed_ftrace_events();
768   public:
769 
770   // repeated .perfetto.protos.FtraceParseStatus ftrace_parse_errors = 9;
771   int ftrace_parse_errors_size() const;
772   private:
773   int _internal_ftrace_parse_errors_size() const;
774   public:
775   void clear_ftrace_parse_errors();
776   private:
777   ::perfetto::protos::FtraceParseStatus _internal_ftrace_parse_errors(int index) const;
778   void _internal_add_ftrace_parse_errors(::perfetto::protos::FtraceParseStatus value);
779   ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_ftrace_parse_errors();
780   public:
781   ::perfetto::protos::FtraceParseStatus ftrace_parse_errors(int index) const;
782   void set_ftrace_parse_errors(int index, ::perfetto::protos::FtraceParseStatus value);
783   void add_ftrace_parse_errors(::perfetto::protos::FtraceParseStatus value);
784   const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& ftrace_parse_errors() const;
785   ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_ftrace_parse_errors();
786 
787   // optional string atrace_errors = 5;
788   bool has_atrace_errors() const;
789   private:
790   bool _internal_has_atrace_errors() const;
791   public:
792   void clear_atrace_errors();
793   const std::string& atrace_errors() const;
794   template <typename ArgT0 = const std::string&, typename... ArgT>
795   void set_atrace_errors(ArgT0&& arg0, ArgT... args);
796   std::string* mutable_atrace_errors();
797   PROTOBUF_NODISCARD std::string* release_atrace_errors();
798   void set_allocated_atrace_errors(std::string* atrace_errors);
799   private:
800   const std::string& _internal_atrace_errors() const;
801   inline PROTOBUF_ALWAYS_INLINE void _internal_set_atrace_errors(const std::string& value);
802   std::string* _internal_mutable_atrace_errors();
803   public:
804 
805   // optional .perfetto.protos.FtraceKprobeStats kprobe_stats = 10;
806   bool has_kprobe_stats() const;
807   private:
808   bool _internal_has_kprobe_stats() const;
809   public:
810   void clear_kprobe_stats();
811   const ::perfetto::protos::FtraceKprobeStats& kprobe_stats() const;
812   PROTOBUF_NODISCARD ::perfetto::protos::FtraceKprobeStats* release_kprobe_stats();
813   ::perfetto::protos::FtraceKprobeStats* mutable_kprobe_stats();
814   void set_allocated_kprobe_stats(::perfetto::protos::FtraceKprobeStats* kprobe_stats);
815   private:
816   const ::perfetto::protos::FtraceKprobeStats& _internal_kprobe_stats() const;
817   ::perfetto::protos::FtraceKprobeStats* _internal_mutable_kprobe_stats();
818   public:
819   void unsafe_arena_set_allocated_kprobe_stats(
820       ::perfetto::protos::FtraceKprobeStats* kprobe_stats);
821   ::perfetto::protos::FtraceKprobeStats* unsafe_arena_release_kprobe_stats();
822 
823   // optional .perfetto.protos.FtraceStats.Phase phase = 1;
824   bool has_phase() const;
825   private:
826   bool _internal_has_phase() const;
827   public:
828   void clear_phase();
829   ::perfetto::protos::FtraceStats_Phase phase() const;
830   void set_phase(::perfetto::protos::FtraceStats_Phase value);
831   private:
832   ::perfetto::protos::FtraceStats_Phase _internal_phase() const;
833   void _internal_set_phase(::perfetto::protos::FtraceStats_Phase value);
834   public:
835 
836   // optional uint32 kernel_symbols_parsed = 3;
837   bool has_kernel_symbols_parsed() const;
838   private:
839   bool _internal_has_kernel_symbols_parsed() const;
840   public:
841   void clear_kernel_symbols_parsed();
842   ::uint32_t kernel_symbols_parsed() const;
843   void set_kernel_symbols_parsed(::uint32_t value);
844   private:
845   ::uint32_t _internal_kernel_symbols_parsed() const;
846   void _internal_set_kernel_symbols_parsed(::uint32_t value);
847   public:
848 
849   // optional uint32 kernel_symbols_mem_kb = 4;
850   bool has_kernel_symbols_mem_kb() const;
851   private:
852   bool _internal_has_kernel_symbols_mem_kb() const;
853   public:
854   void clear_kernel_symbols_mem_kb();
855   ::uint32_t kernel_symbols_mem_kb() const;
856   void set_kernel_symbols_mem_kb(::uint32_t value);
857   private:
858   ::uint32_t _internal_kernel_symbols_mem_kb() const;
859   void _internal_set_kernel_symbols_mem_kb(::uint32_t value);
860   public:
861 
862   // optional bool preserve_ftrace_buffer = 8;
863   bool has_preserve_ftrace_buffer() const;
864   private:
865   bool _internal_has_preserve_ftrace_buffer() const;
866   public:
867   void clear_preserve_ftrace_buffer();
868   bool preserve_ftrace_buffer() const;
869   void set_preserve_ftrace_buffer(bool value);
870   private:
871   bool _internal_preserve_ftrace_buffer() const;
872   void _internal_set_preserve_ftrace_buffer(bool value);
873   public:
874 
875   // @@protoc_insertion_point(class_scope:perfetto.protos.FtraceStats)
876  private:
877   class _Internal;
878 
879   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
880   typedef void InternalArenaConstructable_;
881   typedef void DestructorSkippable_;
882   struct Impl_ {
883     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
884     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
885     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::FtraceCpuStats > cpu_stats_;
886     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> unknown_ftrace_events_;
887     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> failed_ftrace_events_;
888     ::PROTOBUF_NAMESPACE_ID::RepeatedField<int> ftrace_parse_errors_;
889     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr atrace_errors_;
890     ::perfetto::protos::FtraceKprobeStats* kprobe_stats_;
891     int phase_;
892     ::uint32_t kernel_symbols_parsed_;
893     ::uint32_t kernel_symbols_mem_kb_;
894     bool preserve_ftrace_buffer_;
895   };
896   union { Impl_ _impl_; };
897   friend struct ::TableStruct_protos_2fperfetto_2ftrace_2fftrace_2fftrace_5fstats_2eproto;
898 };
899 // ===================================================================
900 
901 
902 // ===================================================================
903 
904 #ifdef __GNUC__
905   #pragma GCC diagnostic push
906   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
907 #endif  // __GNUC__
908 // FtraceCpuStats
909 
910 // optional uint64 cpu = 1;
_internal_has_cpu()911 inline bool FtraceCpuStats::_internal_has_cpu() const {
912   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
913   return value;
914 }
has_cpu()915 inline bool FtraceCpuStats::has_cpu() const {
916   return _internal_has_cpu();
917 }
clear_cpu()918 inline void FtraceCpuStats::clear_cpu() {
919   _impl_.cpu_ = ::uint64_t{0u};
920   _impl_._has_bits_[0] &= ~0x00000001u;
921 }
_internal_cpu()922 inline ::uint64_t FtraceCpuStats::_internal_cpu() const {
923   return _impl_.cpu_;
924 }
cpu()925 inline ::uint64_t FtraceCpuStats::cpu() const {
926   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceCpuStats.cpu)
927   return _internal_cpu();
928 }
_internal_set_cpu(::uint64_t value)929 inline void FtraceCpuStats::_internal_set_cpu(::uint64_t value) {
930   _impl_._has_bits_[0] |= 0x00000001u;
931   _impl_.cpu_ = value;
932 }
set_cpu(::uint64_t value)933 inline void FtraceCpuStats::set_cpu(::uint64_t value) {
934   _internal_set_cpu(value);
935   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceCpuStats.cpu)
936 }
937 
938 // optional uint64 entries = 2;
_internal_has_entries()939 inline bool FtraceCpuStats::_internal_has_entries() const {
940   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
941   return value;
942 }
has_entries()943 inline bool FtraceCpuStats::has_entries() const {
944   return _internal_has_entries();
945 }
clear_entries()946 inline void FtraceCpuStats::clear_entries() {
947   _impl_.entries_ = ::uint64_t{0u};
948   _impl_._has_bits_[0] &= ~0x00000002u;
949 }
_internal_entries()950 inline ::uint64_t FtraceCpuStats::_internal_entries() const {
951   return _impl_.entries_;
952 }
entries()953 inline ::uint64_t FtraceCpuStats::entries() const {
954   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceCpuStats.entries)
955   return _internal_entries();
956 }
_internal_set_entries(::uint64_t value)957 inline void FtraceCpuStats::_internal_set_entries(::uint64_t value) {
958   _impl_._has_bits_[0] |= 0x00000002u;
959   _impl_.entries_ = value;
960 }
set_entries(::uint64_t value)961 inline void FtraceCpuStats::set_entries(::uint64_t value) {
962   _internal_set_entries(value);
963   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceCpuStats.entries)
964 }
965 
966 // optional uint64 overrun = 3;
_internal_has_overrun()967 inline bool FtraceCpuStats::_internal_has_overrun() const {
968   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
969   return value;
970 }
has_overrun()971 inline bool FtraceCpuStats::has_overrun() const {
972   return _internal_has_overrun();
973 }
clear_overrun()974 inline void FtraceCpuStats::clear_overrun() {
975   _impl_.overrun_ = ::uint64_t{0u};
976   _impl_._has_bits_[0] &= ~0x00000004u;
977 }
_internal_overrun()978 inline ::uint64_t FtraceCpuStats::_internal_overrun() const {
979   return _impl_.overrun_;
980 }
overrun()981 inline ::uint64_t FtraceCpuStats::overrun() const {
982   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceCpuStats.overrun)
983   return _internal_overrun();
984 }
_internal_set_overrun(::uint64_t value)985 inline void FtraceCpuStats::_internal_set_overrun(::uint64_t value) {
986   _impl_._has_bits_[0] |= 0x00000004u;
987   _impl_.overrun_ = value;
988 }
set_overrun(::uint64_t value)989 inline void FtraceCpuStats::set_overrun(::uint64_t value) {
990   _internal_set_overrun(value);
991   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceCpuStats.overrun)
992 }
993 
994 // optional uint64 commit_overrun = 4;
_internal_has_commit_overrun()995 inline bool FtraceCpuStats::_internal_has_commit_overrun() const {
996   bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
997   return value;
998 }
has_commit_overrun()999 inline bool FtraceCpuStats::has_commit_overrun() const {
1000   return _internal_has_commit_overrun();
1001 }
clear_commit_overrun()1002 inline void FtraceCpuStats::clear_commit_overrun() {
1003   _impl_.commit_overrun_ = ::uint64_t{0u};
1004   _impl_._has_bits_[0] &= ~0x00000008u;
1005 }
_internal_commit_overrun()1006 inline ::uint64_t FtraceCpuStats::_internal_commit_overrun() const {
1007   return _impl_.commit_overrun_;
1008 }
commit_overrun()1009 inline ::uint64_t FtraceCpuStats::commit_overrun() const {
1010   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceCpuStats.commit_overrun)
1011   return _internal_commit_overrun();
1012 }
_internal_set_commit_overrun(::uint64_t value)1013 inline void FtraceCpuStats::_internal_set_commit_overrun(::uint64_t value) {
1014   _impl_._has_bits_[0] |= 0x00000008u;
1015   _impl_.commit_overrun_ = value;
1016 }
set_commit_overrun(::uint64_t value)1017 inline void FtraceCpuStats::set_commit_overrun(::uint64_t value) {
1018   _internal_set_commit_overrun(value);
1019   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceCpuStats.commit_overrun)
1020 }
1021 
1022 // optional uint64 bytes_read = 5;
_internal_has_bytes_read()1023 inline bool FtraceCpuStats::_internal_has_bytes_read() const {
1024   bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1025   return value;
1026 }
has_bytes_read()1027 inline bool FtraceCpuStats::has_bytes_read() const {
1028   return _internal_has_bytes_read();
1029 }
clear_bytes_read()1030 inline void FtraceCpuStats::clear_bytes_read() {
1031   _impl_.bytes_read_ = ::uint64_t{0u};
1032   _impl_._has_bits_[0] &= ~0x00000010u;
1033 }
_internal_bytes_read()1034 inline ::uint64_t FtraceCpuStats::_internal_bytes_read() const {
1035   return _impl_.bytes_read_;
1036 }
bytes_read()1037 inline ::uint64_t FtraceCpuStats::bytes_read() const {
1038   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceCpuStats.bytes_read)
1039   return _internal_bytes_read();
1040 }
_internal_set_bytes_read(::uint64_t value)1041 inline void FtraceCpuStats::_internal_set_bytes_read(::uint64_t value) {
1042   _impl_._has_bits_[0] |= 0x00000010u;
1043   _impl_.bytes_read_ = value;
1044 }
set_bytes_read(::uint64_t value)1045 inline void FtraceCpuStats::set_bytes_read(::uint64_t value) {
1046   _internal_set_bytes_read(value);
1047   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceCpuStats.bytes_read)
1048 }
1049 
1050 // optional double oldest_event_ts = 6;
_internal_has_oldest_event_ts()1051 inline bool FtraceCpuStats::_internal_has_oldest_event_ts() const {
1052   bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1053   return value;
1054 }
has_oldest_event_ts()1055 inline bool FtraceCpuStats::has_oldest_event_ts() const {
1056   return _internal_has_oldest_event_ts();
1057 }
clear_oldest_event_ts()1058 inline void FtraceCpuStats::clear_oldest_event_ts() {
1059   _impl_.oldest_event_ts_ = 0;
1060   _impl_._has_bits_[0] &= ~0x00000020u;
1061 }
_internal_oldest_event_ts()1062 inline double FtraceCpuStats::_internal_oldest_event_ts() const {
1063   return _impl_.oldest_event_ts_;
1064 }
oldest_event_ts()1065 inline double FtraceCpuStats::oldest_event_ts() const {
1066   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceCpuStats.oldest_event_ts)
1067   return _internal_oldest_event_ts();
1068 }
_internal_set_oldest_event_ts(double value)1069 inline void FtraceCpuStats::_internal_set_oldest_event_ts(double value) {
1070   _impl_._has_bits_[0] |= 0x00000020u;
1071   _impl_.oldest_event_ts_ = value;
1072 }
set_oldest_event_ts(double value)1073 inline void FtraceCpuStats::set_oldest_event_ts(double value) {
1074   _internal_set_oldest_event_ts(value);
1075   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceCpuStats.oldest_event_ts)
1076 }
1077 
1078 // optional double now_ts = 7;
_internal_has_now_ts()1079 inline bool FtraceCpuStats::_internal_has_now_ts() const {
1080   bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
1081   return value;
1082 }
has_now_ts()1083 inline bool FtraceCpuStats::has_now_ts() const {
1084   return _internal_has_now_ts();
1085 }
clear_now_ts()1086 inline void FtraceCpuStats::clear_now_ts() {
1087   _impl_.now_ts_ = 0;
1088   _impl_._has_bits_[0] &= ~0x00000040u;
1089 }
_internal_now_ts()1090 inline double FtraceCpuStats::_internal_now_ts() const {
1091   return _impl_.now_ts_;
1092 }
now_ts()1093 inline double FtraceCpuStats::now_ts() const {
1094   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceCpuStats.now_ts)
1095   return _internal_now_ts();
1096 }
_internal_set_now_ts(double value)1097 inline void FtraceCpuStats::_internal_set_now_ts(double value) {
1098   _impl_._has_bits_[0] |= 0x00000040u;
1099   _impl_.now_ts_ = value;
1100 }
set_now_ts(double value)1101 inline void FtraceCpuStats::set_now_ts(double value) {
1102   _internal_set_now_ts(value);
1103   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceCpuStats.now_ts)
1104 }
1105 
1106 // optional uint64 dropped_events = 8;
_internal_has_dropped_events()1107 inline bool FtraceCpuStats::_internal_has_dropped_events() const {
1108   bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
1109   return value;
1110 }
has_dropped_events()1111 inline bool FtraceCpuStats::has_dropped_events() const {
1112   return _internal_has_dropped_events();
1113 }
clear_dropped_events()1114 inline void FtraceCpuStats::clear_dropped_events() {
1115   _impl_.dropped_events_ = ::uint64_t{0u};
1116   _impl_._has_bits_[0] &= ~0x00000080u;
1117 }
_internal_dropped_events()1118 inline ::uint64_t FtraceCpuStats::_internal_dropped_events() const {
1119   return _impl_.dropped_events_;
1120 }
dropped_events()1121 inline ::uint64_t FtraceCpuStats::dropped_events() const {
1122   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceCpuStats.dropped_events)
1123   return _internal_dropped_events();
1124 }
_internal_set_dropped_events(::uint64_t value)1125 inline void FtraceCpuStats::_internal_set_dropped_events(::uint64_t value) {
1126   _impl_._has_bits_[0] |= 0x00000080u;
1127   _impl_.dropped_events_ = value;
1128 }
set_dropped_events(::uint64_t value)1129 inline void FtraceCpuStats::set_dropped_events(::uint64_t value) {
1130   _internal_set_dropped_events(value);
1131   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceCpuStats.dropped_events)
1132 }
1133 
1134 // optional uint64 read_events = 9;
_internal_has_read_events()1135 inline bool FtraceCpuStats::_internal_has_read_events() const {
1136   bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
1137   return value;
1138 }
has_read_events()1139 inline bool FtraceCpuStats::has_read_events() const {
1140   return _internal_has_read_events();
1141 }
clear_read_events()1142 inline void FtraceCpuStats::clear_read_events() {
1143   _impl_.read_events_ = ::uint64_t{0u};
1144   _impl_._has_bits_[0] &= ~0x00000100u;
1145 }
_internal_read_events()1146 inline ::uint64_t FtraceCpuStats::_internal_read_events() const {
1147   return _impl_.read_events_;
1148 }
read_events()1149 inline ::uint64_t FtraceCpuStats::read_events() const {
1150   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceCpuStats.read_events)
1151   return _internal_read_events();
1152 }
_internal_set_read_events(::uint64_t value)1153 inline void FtraceCpuStats::_internal_set_read_events(::uint64_t value) {
1154   _impl_._has_bits_[0] |= 0x00000100u;
1155   _impl_.read_events_ = value;
1156 }
set_read_events(::uint64_t value)1157 inline void FtraceCpuStats::set_read_events(::uint64_t value) {
1158   _internal_set_read_events(value);
1159   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceCpuStats.read_events)
1160 }
1161 
1162 // -------------------------------------------------------------------
1163 
1164 // FtraceKprobeStats
1165 
1166 // optional int64 hits = 1;
_internal_has_hits()1167 inline bool FtraceKprobeStats::_internal_has_hits() const {
1168   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1169   return value;
1170 }
has_hits()1171 inline bool FtraceKprobeStats::has_hits() const {
1172   return _internal_has_hits();
1173 }
clear_hits()1174 inline void FtraceKprobeStats::clear_hits() {
1175   _impl_.hits_ = ::int64_t{0};
1176   _impl_._has_bits_[0] &= ~0x00000001u;
1177 }
_internal_hits()1178 inline ::int64_t FtraceKprobeStats::_internal_hits() const {
1179   return _impl_.hits_;
1180 }
hits()1181 inline ::int64_t FtraceKprobeStats::hits() const {
1182   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceKprobeStats.hits)
1183   return _internal_hits();
1184 }
_internal_set_hits(::int64_t value)1185 inline void FtraceKprobeStats::_internal_set_hits(::int64_t value) {
1186   _impl_._has_bits_[0] |= 0x00000001u;
1187   _impl_.hits_ = value;
1188 }
set_hits(::int64_t value)1189 inline void FtraceKprobeStats::set_hits(::int64_t value) {
1190   _internal_set_hits(value);
1191   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceKprobeStats.hits)
1192 }
1193 
1194 // optional int64 misses = 2;
_internal_has_misses()1195 inline bool FtraceKprobeStats::_internal_has_misses() const {
1196   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1197   return value;
1198 }
has_misses()1199 inline bool FtraceKprobeStats::has_misses() const {
1200   return _internal_has_misses();
1201 }
clear_misses()1202 inline void FtraceKprobeStats::clear_misses() {
1203   _impl_.misses_ = ::int64_t{0};
1204   _impl_._has_bits_[0] &= ~0x00000002u;
1205 }
_internal_misses()1206 inline ::int64_t FtraceKprobeStats::_internal_misses() const {
1207   return _impl_.misses_;
1208 }
misses()1209 inline ::int64_t FtraceKprobeStats::misses() const {
1210   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceKprobeStats.misses)
1211   return _internal_misses();
1212 }
_internal_set_misses(::int64_t value)1213 inline void FtraceKprobeStats::_internal_set_misses(::int64_t value) {
1214   _impl_._has_bits_[0] |= 0x00000002u;
1215   _impl_.misses_ = value;
1216 }
set_misses(::int64_t value)1217 inline void FtraceKprobeStats::set_misses(::int64_t value) {
1218   _internal_set_misses(value);
1219   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceKprobeStats.misses)
1220 }
1221 
1222 // -------------------------------------------------------------------
1223 
1224 // FtraceStats
1225 
1226 // optional .perfetto.protos.FtraceStats.Phase phase = 1;
_internal_has_phase()1227 inline bool FtraceStats::_internal_has_phase() const {
1228   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1229   return value;
1230 }
has_phase()1231 inline bool FtraceStats::has_phase() const {
1232   return _internal_has_phase();
1233 }
clear_phase()1234 inline void FtraceStats::clear_phase() {
1235   _impl_.phase_ = 0;
1236   _impl_._has_bits_[0] &= ~0x00000004u;
1237 }
_internal_phase()1238 inline ::perfetto::protos::FtraceStats_Phase FtraceStats::_internal_phase() const {
1239   return static_cast< ::perfetto::protos::FtraceStats_Phase >(_impl_.phase_);
1240 }
phase()1241 inline ::perfetto::protos::FtraceStats_Phase FtraceStats::phase() const {
1242   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceStats.phase)
1243   return _internal_phase();
1244 }
_internal_set_phase(::perfetto::protos::FtraceStats_Phase value)1245 inline void FtraceStats::_internal_set_phase(::perfetto::protos::FtraceStats_Phase value) {
1246   assert(::perfetto::protos::FtraceStats_Phase_IsValid(value));
1247   _impl_._has_bits_[0] |= 0x00000004u;
1248   _impl_.phase_ = value;
1249 }
set_phase(::perfetto::protos::FtraceStats_Phase value)1250 inline void FtraceStats::set_phase(::perfetto::protos::FtraceStats_Phase value) {
1251   _internal_set_phase(value);
1252   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceStats.phase)
1253 }
1254 
1255 // repeated .perfetto.protos.FtraceCpuStats cpu_stats = 2;
_internal_cpu_stats_size()1256 inline int FtraceStats::_internal_cpu_stats_size() const {
1257   return _impl_.cpu_stats_.size();
1258 }
cpu_stats_size()1259 inline int FtraceStats::cpu_stats_size() const {
1260   return _internal_cpu_stats_size();
1261 }
clear_cpu_stats()1262 inline void FtraceStats::clear_cpu_stats() {
1263   _impl_.cpu_stats_.Clear();
1264 }
mutable_cpu_stats(int index)1265 inline ::perfetto::protos::FtraceCpuStats* FtraceStats::mutable_cpu_stats(int index) {
1266   // @@protoc_insertion_point(field_mutable:perfetto.protos.FtraceStats.cpu_stats)
1267   return _impl_.cpu_stats_.Mutable(index);
1268 }
1269 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::FtraceCpuStats >*
mutable_cpu_stats()1270 FtraceStats::mutable_cpu_stats() {
1271   // @@protoc_insertion_point(field_mutable_list:perfetto.protos.FtraceStats.cpu_stats)
1272   return &_impl_.cpu_stats_;
1273 }
_internal_cpu_stats(int index)1274 inline const ::perfetto::protos::FtraceCpuStats& FtraceStats::_internal_cpu_stats(int index) const {
1275   return _impl_.cpu_stats_.Get(index);
1276 }
cpu_stats(int index)1277 inline const ::perfetto::protos::FtraceCpuStats& FtraceStats::cpu_stats(int index) const {
1278   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceStats.cpu_stats)
1279   return _internal_cpu_stats(index);
1280 }
_internal_add_cpu_stats()1281 inline ::perfetto::protos::FtraceCpuStats* FtraceStats::_internal_add_cpu_stats() {
1282   return _impl_.cpu_stats_.Add();
1283 }
add_cpu_stats()1284 inline ::perfetto::protos::FtraceCpuStats* FtraceStats::add_cpu_stats() {
1285   ::perfetto::protos::FtraceCpuStats* _add = _internal_add_cpu_stats();
1286   // @@protoc_insertion_point(field_add:perfetto.protos.FtraceStats.cpu_stats)
1287   return _add;
1288 }
1289 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::perfetto::protos::FtraceCpuStats >&
cpu_stats()1290 FtraceStats::cpu_stats() const {
1291   // @@protoc_insertion_point(field_list:perfetto.protos.FtraceStats.cpu_stats)
1292   return _impl_.cpu_stats_;
1293 }
1294 
1295 // optional uint32 kernel_symbols_parsed = 3;
_internal_has_kernel_symbols_parsed()1296 inline bool FtraceStats::_internal_has_kernel_symbols_parsed() const {
1297   bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1298   return value;
1299 }
has_kernel_symbols_parsed()1300 inline bool FtraceStats::has_kernel_symbols_parsed() const {
1301   return _internal_has_kernel_symbols_parsed();
1302 }
clear_kernel_symbols_parsed()1303 inline void FtraceStats::clear_kernel_symbols_parsed() {
1304   _impl_.kernel_symbols_parsed_ = 0u;
1305   _impl_._has_bits_[0] &= ~0x00000008u;
1306 }
_internal_kernel_symbols_parsed()1307 inline ::uint32_t FtraceStats::_internal_kernel_symbols_parsed() const {
1308   return _impl_.kernel_symbols_parsed_;
1309 }
kernel_symbols_parsed()1310 inline ::uint32_t FtraceStats::kernel_symbols_parsed() const {
1311   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceStats.kernel_symbols_parsed)
1312   return _internal_kernel_symbols_parsed();
1313 }
_internal_set_kernel_symbols_parsed(::uint32_t value)1314 inline void FtraceStats::_internal_set_kernel_symbols_parsed(::uint32_t value) {
1315   _impl_._has_bits_[0] |= 0x00000008u;
1316   _impl_.kernel_symbols_parsed_ = value;
1317 }
set_kernel_symbols_parsed(::uint32_t value)1318 inline void FtraceStats::set_kernel_symbols_parsed(::uint32_t value) {
1319   _internal_set_kernel_symbols_parsed(value);
1320   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceStats.kernel_symbols_parsed)
1321 }
1322 
1323 // optional uint32 kernel_symbols_mem_kb = 4;
_internal_has_kernel_symbols_mem_kb()1324 inline bool FtraceStats::_internal_has_kernel_symbols_mem_kb() const {
1325   bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1326   return value;
1327 }
has_kernel_symbols_mem_kb()1328 inline bool FtraceStats::has_kernel_symbols_mem_kb() const {
1329   return _internal_has_kernel_symbols_mem_kb();
1330 }
clear_kernel_symbols_mem_kb()1331 inline void FtraceStats::clear_kernel_symbols_mem_kb() {
1332   _impl_.kernel_symbols_mem_kb_ = 0u;
1333   _impl_._has_bits_[0] &= ~0x00000010u;
1334 }
_internal_kernel_symbols_mem_kb()1335 inline ::uint32_t FtraceStats::_internal_kernel_symbols_mem_kb() const {
1336   return _impl_.kernel_symbols_mem_kb_;
1337 }
kernel_symbols_mem_kb()1338 inline ::uint32_t FtraceStats::kernel_symbols_mem_kb() const {
1339   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceStats.kernel_symbols_mem_kb)
1340   return _internal_kernel_symbols_mem_kb();
1341 }
_internal_set_kernel_symbols_mem_kb(::uint32_t value)1342 inline void FtraceStats::_internal_set_kernel_symbols_mem_kb(::uint32_t value) {
1343   _impl_._has_bits_[0] |= 0x00000010u;
1344   _impl_.kernel_symbols_mem_kb_ = value;
1345 }
set_kernel_symbols_mem_kb(::uint32_t value)1346 inline void FtraceStats::set_kernel_symbols_mem_kb(::uint32_t value) {
1347   _internal_set_kernel_symbols_mem_kb(value);
1348   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceStats.kernel_symbols_mem_kb)
1349 }
1350 
1351 // optional string atrace_errors = 5;
_internal_has_atrace_errors()1352 inline bool FtraceStats::_internal_has_atrace_errors() const {
1353   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1354   return value;
1355 }
has_atrace_errors()1356 inline bool FtraceStats::has_atrace_errors() const {
1357   return _internal_has_atrace_errors();
1358 }
clear_atrace_errors()1359 inline void FtraceStats::clear_atrace_errors() {
1360   _impl_.atrace_errors_.ClearToEmpty();
1361   _impl_._has_bits_[0] &= ~0x00000001u;
1362 }
atrace_errors()1363 inline const std::string& FtraceStats::atrace_errors() const {
1364   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceStats.atrace_errors)
1365   return _internal_atrace_errors();
1366 }
1367 template <typename ArgT0, typename... ArgT>
1368 inline PROTOBUF_ALWAYS_INLINE
set_atrace_errors(ArgT0 && arg0,ArgT...args)1369 void FtraceStats::set_atrace_errors(ArgT0&& arg0, ArgT... args) {
1370  _impl_._has_bits_[0] |= 0x00000001u;
1371  _impl_.atrace_errors_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1372   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceStats.atrace_errors)
1373 }
mutable_atrace_errors()1374 inline std::string* FtraceStats::mutable_atrace_errors() {
1375   std::string* _s = _internal_mutable_atrace_errors();
1376   // @@protoc_insertion_point(field_mutable:perfetto.protos.FtraceStats.atrace_errors)
1377   return _s;
1378 }
_internal_atrace_errors()1379 inline const std::string& FtraceStats::_internal_atrace_errors() const {
1380   return _impl_.atrace_errors_.Get();
1381 }
_internal_set_atrace_errors(const std::string & value)1382 inline void FtraceStats::_internal_set_atrace_errors(const std::string& value) {
1383   _impl_._has_bits_[0] |= 0x00000001u;
1384   _impl_.atrace_errors_.Set(value, GetArenaForAllocation());
1385 }
_internal_mutable_atrace_errors()1386 inline std::string* FtraceStats::_internal_mutable_atrace_errors() {
1387   _impl_._has_bits_[0] |= 0x00000001u;
1388   return _impl_.atrace_errors_.Mutable(GetArenaForAllocation());
1389 }
release_atrace_errors()1390 inline std::string* FtraceStats::release_atrace_errors() {
1391   // @@protoc_insertion_point(field_release:perfetto.protos.FtraceStats.atrace_errors)
1392   if (!_internal_has_atrace_errors()) {
1393     return nullptr;
1394   }
1395   _impl_._has_bits_[0] &= ~0x00000001u;
1396   auto* p = _impl_.atrace_errors_.Release();
1397 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1398   if (_impl_.atrace_errors_.IsDefault()) {
1399     _impl_.atrace_errors_.Set("", GetArenaForAllocation());
1400   }
1401 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1402   return p;
1403 }
set_allocated_atrace_errors(std::string * atrace_errors)1404 inline void FtraceStats::set_allocated_atrace_errors(std::string* atrace_errors) {
1405   if (atrace_errors != nullptr) {
1406     _impl_._has_bits_[0] |= 0x00000001u;
1407   } else {
1408     _impl_._has_bits_[0] &= ~0x00000001u;
1409   }
1410   _impl_.atrace_errors_.SetAllocated(atrace_errors, GetArenaForAllocation());
1411 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1412   if (_impl_.atrace_errors_.IsDefault()) {
1413     _impl_.atrace_errors_.Set("", GetArenaForAllocation());
1414   }
1415 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1416   // @@protoc_insertion_point(field_set_allocated:perfetto.protos.FtraceStats.atrace_errors)
1417 }
1418 
1419 // repeated string unknown_ftrace_events = 6;
_internal_unknown_ftrace_events_size()1420 inline int FtraceStats::_internal_unknown_ftrace_events_size() const {
1421   return _impl_.unknown_ftrace_events_.size();
1422 }
unknown_ftrace_events_size()1423 inline int FtraceStats::unknown_ftrace_events_size() const {
1424   return _internal_unknown_ftrace_events_size();
1425 }
clear_unknown_ftrace_events()1426 inline void FtraceStats::clear_unknown_ftrace_events() {
1427   _impl_.unknown_ftrace_events_.Clear();
1428 }
add_unknown_ftrace_events()1429 inline std::string* FtraceStats::add_unknown_ftrace_events() {
1430   std::string* _s = _internal_add_unknown_ftrace_events();
1431   // @@protoc_insertion_point(field_add_mutable:perfetto.protos.FtraceStats.unknown_ftrace_events)
1432   return _s;
1433 }
_internal_unknown_ftrace_events(int index)1434 inline const std::string& FtraceStats::_internal_unknown_ftrace_events(int index) const {
1435   return _impl_.unknown_ftrace_events_.Get(index);
1436 }
unknown_ftrace_events(int index)1437 inline const std::string& FtraceStats::unknown_ftrace_events(int index) const {
1438   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceStats.unknown_ftrace_events)
1439   return _internal_unknown_ftrace_events(index);
1440 }
mutable_unknown_ftrace_events(int index)1441 inline std::string* FtraceStats::mutable_unknown_ftrace_events(int index) {
1442   // @@protoc_insertion_point(field_mutable:perfetto.protos.FtraceStats.unknown_ftrace_events)
1443   return _impl_.unknown_ftrace_events_.Mutable(index);
1444 }
set_unknown_ftrace_events(int index,const std::string & value)1445 inline void FtraceStats::set_unknown_ftrace_events(int index, const std::string& value) {
1446   _impl_.unknown_ftrace_events_.Mutable(index)->assign(value);
1447   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceStats.unknown_ftrace_events)
1448 }
set_unknown_ftrace_events(int index,std::string && value)1449 inline void FtraceStats::set_unknown_ftrace_events(int index, std::string&& value) {
1450   _impl_.unknown_ftrace_events_.Mutable(index)->assign(std::move(value));
1451   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceStats.unknown_ftrace_events)
1452 }
set_unknown_ftrace_events(int index,const char * value)1453 inline void FtraceStats::set_unknown_ftrace_events(int index, const char* value) {
1454   GOOGLE_DCHECK(value != nullptr);
1455   _impl_.unknown_ftrace_events_.Mutable(index)->assign(value);
1456   // @@protoc_insertion_point(field_set_char:perfetto.protos.FtraceStats.unknown_ftrace_events)
1457 }
set_unknown_ftrace_events(int index,const char * value,size_t size)1458 inline void FtraceStats::set_unknown_ftrace_events(int index, const char* value, size_t size) {
1459   _impl_.unknown_ftrace_events_.Mutable(index)->assign(
1460     reinterpret_cast<const char*>(value), size);
1461   // @@protoc_insertion_point(field_set_pointer:perfetto.protos.FtraceStats.unknown_ftrace_events)
1462 }
_internal_add_unknown_ftrace_events()1463 inline std::string* FtraceStats::_internal_add_unknown_ftrace_events() {
1464   return _impl_.unknown_ftrace_events_.Add();
1465 }
add_unknown_ftrace_events(const std::string & value)1466 inline void FtraceStats::add_unknown_ftrace_events(const std::string& value) {
1467   _impl_.unknown_ftrace_events_.Add()->assign(value);
1468   // @@protoc_insertion_point(field_add:perfetto.protos.FtraceStats.unknown_ftrace_events)
1469 }
add_unknown_ftrace_events(std::string && value)1470 inline void FtraceStats::add_unknown_ftrace_events(std::string&& value) {
1471   _impl_.unknown_ftrace_events_.Add(std::move(value));
1472   // @@protoc_insertion_point(field_add:perfetto.protos.FtraceStats.unknown_ftrace_events)
1473 }
add_unknown_ftrace_events(const char * value)1474 inline void FtraceStats::add_unknown_ftrace_events(const char* value) {
1475   GOOGLE_DCHECK(value != nullptr);
1476   _impl_.unknown_ftrace_events_.Add()->assign(value);
1477   // @@protoc_insertion_point(field_add_char:perfetto.protos.FtraceStats.unknown_ftrace_events)
1478 }
add_unknown_ftrace_events(const char * value,size_t size)1479 inline void FtraceStats::add_unknown_ftrace_events(const char* value, size_t size) {
1480   _impl_.unknown_ftrace_events_.Add()->assign(reinterpret_cast<const char*>(value), size);
1481   // @@protoc_insertion_point(field_add_pointer:perfetto.protos.FtraceStats.unknown_ftrace_events)
1482 }
1483 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
unknown_ftrace_events()1484 FtraceStats::unknown_ftrace_events() const {
1485   // @@protoc_insertion_point(field_list:perfetto.protos.FtraceStats.unknown_ftrace_events)
1486   return _impl_.unknown_ftrace_events_;
1487 }
1488 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_unknown_ftrace_events()1489 FtraceStats::mutable_unknown_ftrace_events() {
1490   // @@protoc_insertion_point(field_mutable_list:perfetto.protos.FtraceStats.unknown_ftrace_events)
1491   return &_impl_.unknown_ftrace_events_;
1492 }
1493 
1494 // repeated string failed_ftrace_events = 7;
_internal_failed_ftrace_events_size()1495 inline int FtraceStats::_internal_failed_ftrace_events_size() const {
1496   return _impl_.failed_ftrace_events_.size();
1497 }
failed_ftrace_events_size()1498 inline int FtraceStats::failed_ftrace_events_size() const {
1499   return _internal_failed_ftrace_events_size();
1500 }
clear_failed_ftrace_events()1501 inline void FtraceStats::clear_failed_ftrace_events() {
1502   _impl_.failed_ftrace_events_.Clear();
1503 }
add_failed_ftrace_events()1504 inline std::string* FtraceStats::add_failed_ftrace_events() {
1505   std::string* _s = _internal_add_failed_ftrace_events();
1506   // @@protoc_insertion_point(field_add_mutable:perfetto.protos.FtraceStats.failed_ftrace_events)
1507   return _s;
1508 }
_internal_failed_ftrace_events(int index)1509 inline const std::string& FtraceStats::_internal_failed_ftrace_events(int index) const {
1510   return _impl_.failed_ftrace_events_.Get(index);
1511 }
failed_ftrace_events(int index)1512 inline const std::string& FtraceStats::failed_ftrace_events(int index) const {
1513   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceStats.failed_ftrace_events)
1514   return _internal_failed_ftrace_events(index);
1515 }
mutable_failed_ftrace_events(int index)1516 inline std::string* FtraceStats::mutable_failed_ftrace_events(int index) {
1517   // @@protoc_insertion_point(field_mutable:perfetto.protos.FtraceStats.failed_ftrace_events)
1518   return _impl_.failed_ftrace_events_.Mutable(index);
1519 }
set_failed_ftrace_events(int index,const std::string & value)1520 inline void FtraceStats::set_failed_ftrace_events(int index, const std::string& value) {
1521   _impl_.failed_ftrace_events_.Mutable(index)->assign(value);
1522   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceStats.failed_ftrace_events)
1523 }
set_failed_ftrace_events(int index,std::string && value)1524 inline void FtraceStats::set_failed_ftrace_events(int index, std::string&& value) {
1525   _impl_.failed_ftrace_events_.Mutable(index)->assign(std::move(value));
1526   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceStats.failed_ftrace_events)
1527 }
set_failed_ftrace_events(int index,const char * value)1528 inline void FtraceStats::set_failed_ftrace_events(int index, const char* value) {
1529   GOOGLE_DCHECK(value != nullptr);
1530   _impl_.failed_ftrace_events_.Mutable(index)->assign(value);
1531   // @@protoc_insertion_point(field_set_char:perfetto.protos.FtraceStats.failed_ftrace_events)
1532 }
set_failed_ftrace_events(int index,const char * value,size_t size)1533 inline void FtraceStats::set_failed_ftrace_events(int index, const char* value, size_t size) {
1534   _impl_.failed_ftrace_events_.Mutable(index)->assign(
1535     reinterpret_cast<const char*>(value), size);
1536   // @@protoc_insertion_point(field_set_pointer:perfetto.protos.FtraceStats.failed_ftrace_events)
1537 }
_internal_add_failed_ftrace_events()1538 inline std::string* FtraceStats::_internal_add_failed_ftrace_events() {
1539   return _impl_.failed_ftrace_events_.Add();
1540 }
add_failed_ftrace_events(const std::string & value)1541 inline void FtraceStats::add_failed_ftrace_events(const std::string& value) {
1542   _impl_.failed_ftrace_events_.Add()->assign(value);
1543   // @@protoc_insertion_point(field_add:perfetto.protos.FtraceStats.failed_ftrace_events)
1544 }
add_failed_ftrace_events(std::string && value)1545 inline void FtraceStats::add_failed_ftrace_events(std::string&& value) {
1546   _impl_.failed_ftrace_events_.Add(std::move(value));
1547   // @@protoc_insertion_point(field_add:perfetto.protos.FtraceStats.failed_ftrace_events)
1548 }
add_failed_ftrace_events(const char * value)1549 inline void FtraceStats::add_failed_ftrace_events(const char* value) {
1550   GOOGLE_DCHECK(value != nullptr);
1551   _impl_.failed_ftrace_events_.Add()->assign(value);
1552   // @@protoc_insertion_point(field_add_char:perfetto.protos.FtraceStats.failed_ftrace_events)
1553 }
add_failed_ftrace_events(const char * value,size_t size)1554 inline void FtraceStats::add_failed_ftrace_events(const char* value, size_t size) {
1555   _impl_.failed_ftrace_events_.Add()->assign(reinterpret_cast<const char*>(value), size);
1556   // @@protoc_insertion_point(field_add_pointer:perfetto.protos.FtraceStats.failed_ftrace_events)
1557 }
1558 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
failed_ftrace_events()1559 FtraceStats::failed_ftrace_events() const {
1560   // @@protoc_insertion_point(field_list:perfetto.protos.FtraceStats.failed_ftrace_events)
1561   return _impl_.failed_ftrace_events_;
1562 }
1563 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_failed_ftrace_events()1564 FtraceStats::mutable_failed_ftrace_events() {
1565   // @@protoc_insertion_point(field_mutable_list:perfetto.protos.FtraceStats.failed_ftrace_events)
1566   return &_impl_.failed_ftrace_events_;
1567 }
1568 
1569 // optional bool preserve_ftrace_buffer = 8;
_internal_has_preserve_ftrace_buffer()1570 inline bool FtraceStats::_internal_has_preserve_ftrace_buffer() const {
1571   bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1572   return value;
1573 }
has_preserve_ftrace_buffer()1574 inline bool FtraceStats::has_preserve_ftrace_buffer() const {
1575   return _internal_has_preserve_ftrace_buffer();
1576 }
clear_preserve_ftrace_buffer()1577 inline void FtraceStats::clear_preserve_ftrace_buffer() {
1578   _impl_.preserve_ftrace_buffer_ = false;
1579   _impl_._has_bits_[0] &= ~0x00000020u;
1580 }
_internal_preserve_ftrace_buffer()1581 inline bool FtraceStats::_internal_preserve_ftrace_buffer() const {
1582   return _impl_.preserve_ftrace_buffer_;
1583 }
preserve_ftrace_buffer()1584 inline bool FtraceStats::preserve_ftrace_buffer() const {
1585   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceStats.preserve_ftrace_buffer)
1586   return _internal_preserve_ftrace_buffer();
1587 }
_internal_set_preserve_ftrace_buffer(bool value)1588 inline void FtraceStats::_internal_set_preserve_ftrace_buffer(bool value) {
1589   _impl_._has_bits_[0] |= 0x00000020u;
1590   _impl_.preserve_ftrace_buffer_ = value;
1591 }
set_preserve_ftrace_buffer(bool value)1592 inline void FtraceStats::set_preserve_ftrace_buffer(bool value) {
1593   _internal_set_preserve_ftrace_buffer(value);
1594   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceStats.preserve_ftrace_buffer)
1595 }
1596 
1597 // repeated .perfetto.protos.FtraceParseStatus ftrace_parse_errors = 9;
_internal_ftrace_parse_errors_size()1598 inline int FtraceStats::_internal_ftrace_parse_errors_size() const {
1599   return _impl_.ftrace_parse_errors_.size();
1600 }
ftrace_parse_errors_size()1601 inline int FtraceStats::ftrace_parse_errors_size() const {
1602   return _internal_ftrace_parse_errors_size();
1603 }
clear_ftrace_parse_errors()1604 inline void FtraceStats::clear_ftrace_parse_errors() {
1605   _impl_.ftrace_parse_errors_.Clear();
1606 }
_internal_ftrace_parse_errors(int index)1607 inline ::perfetto::protos::FtraceParseStatus FtraceStats::_internal_ftrace_parse_errors(int index) const {
1608   return static_cast< ::perfetto::protos::FtraceParseStatus >(_impl_.ftrace_parse_errors_.Get(index));
1609 }
ftrace_parse_errors(int index)1610 inline ::perfetto::protos::FtraceParseStatus FtraceStats::ftrace_parse_errors(int index) const {
1611   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceStats.ftrace_parse_errors)
1612   return _internal_ftrace_parse_errors(index);
1613 }
set_ftrace_parse_errors(int index,::perfetto::protos::FtraceParseStatus value)1614 inline void FtraceStats::set_ftrace_parse_errors(int index, ::perfetto::protos::FtraceParseStatus value) {
1615   assert(::perfetto::protos::FtraceParseStatus_IsValid(value));
1616   _impl_.ftrace_parse_errors_.Set(index, value);
1617   // @@protoc_insertion_point(field_set:perfetto.protos.FtraceStats.ftrace_parse_errors)
1618 }
_internal_add_ftrace_parse_errors(::perfetto::protos::FtraceParseStatus value)1619 inline void FtraceStats::_internal_add_ftrace_parse_errors(::perfetto::protos::FtraceParseStatus value) {
1620   assert(::perfetto::protos::FtraceParseStatus_IsValid(value));
1621   _impl_.ftrace_parse_errors_.Add(value);
1622 }
add_ftrace_parse_errors(::perfetto::protos::FtraceParseStatus value)1623 inline void FtraceStats::add_ftrace_parse_errors(::perfetto::protos::FtraceParseStatus value) {
1624   _internal_add_ftrace_parse_errors(value);
1625   // @@protoc_insertion_point(field_add:perfetto.protos.FtraceStats.ftrace_parse_errors)
1626 }
1627 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>&
ftrace_parse_errors()1628 FtraceStats::ftrace_parse_errors() const {
1629   // @@protoc_insertion_point(field_list:perfetto.protos.FtraceStats.ftrace_parse_errors)
1630   return _impl_.ftrace_parse_errors_;
1631 }
1632 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
_internal_mutable_ftrace_parse_errors()1633 FtraceStats::_internal_mutable_ftrace_parse_errors() {
1634   return &_impl_.ftrace_parse_errors_;
1635 }
1636 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
mutable_ftrace_parse_errors()1637 FtraceStats::mutable_ftrace_parse_errors() {
1638   // @@protoc_insertion_point(field_mutable_list:perfetto.protos.FtraceStats.ftrace_parse_errors)
1639   return _internal_mutable_ftrace_parse_errors();
1640 }
1641 
1642 // optional .perfetto.protos.FtraceKprobeStats kprobe_stats = 10;
_internal_has_kprobe_stats()1643 inline bool FtraceStats::_internal_has_kprobe_stats() const {
1644   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1645   PROTOBUF_ASSUME(!value || _impl_.kprobe_stats_ != nullptr);
1646   return value;
1647 }
has_kprobe_stats()1648 inline bool FtraceStats::has_kprobe_stats() const {
1649   return _internal_has_kprobe_stats();
1650 }
clear_kprobe_stats()1651 inline void FtraceStats::clear_kprobe_stats() {
1652   if (_impl_.kprobe_stats_ != nullptr) _impl_.kprobe_stats_->Clear();
1653   _impl_._has_bits_[0] &= ~0x00000002u;
1654 }
_internal_kprobe_stats()1655 inline const ::perfetto::protos::FtraceKprobeStats& FtraceStats::_internal_kprobe_stats() const {
1656   const ::perfetto::protos::FtraceKprobeStats* p = _impl_.kprobe_stats_;
1657   return p != nullptr ? *p : reinterpret_cast<const ::perfetto::protos::FtraceKprobeStats&>(
1658       ::perfetto::protos::_FtraceKprobeStats_default_instance_);
1659 }
kprobe_stats()1660 inline const ::perfetto::protos::FtraceKprobeStats& FtraceStats::kprobe_stats() const {
1661   // @@protoc_insertion_point(field_get:perfetto.protos.FtraceStats.kprobe_stats)
1662   return _internal_kprobe_stats();
1663 }
unsafe_arena_set_allocated_kprobe_stats(::perfetto::protos::FtraceKprobeStats * kprobe_stats)1664 inline void FtraceStats::unsafe_arena_set_allocated_kprobe_stats(
1665     ::perfetto::protos::FtraceKprobeStats* kprobe_stats) {
1666   if (GetArenaForAllocation() == nullptr) {
1667     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.kprobe_stats_);
1668   }
1669   _impl_.kprobe_stats_ = kprobe_stats;
1670   if (kprobe_stats) {
1671     _impl_._has_bits_[0] |= 0x00000002u;
1672   } else {
1673     _impl_._has_bits_[0] &= ~0x00000002u;
1674   }
1675   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:perfetto.protos.FtraceStats.kprobe_stats)
1676 }
release_kprobe_stats()1677 inline ::perfetto::protos::FtraceKprobeStats* FtraceStats::release_kprobe_stats() {
1678   _impl_._has_bits_[0] &= ~0x00000002u;
1679   ::perfetto::protos::FtraceKprobeStats* temp = _impl_.kprobe_stats_;
1680   _impl_.kprobe_stats_ = nullptr;
1681 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1682   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1683   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1684   if (GetArenaForAllocation() == nullptr) { delete old; }
1685 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
1686   if (GetArenaForAllocation() != nullptr) {
1687     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1688   }
1689 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
1690   return temp;
1691 }
unsafe_arena_release_kprobe_stats()1692 inline ::perfetto::protos::FtraceKprobeStats* FtraceStats::unsafe_arena_release_kprobe_stats() {
1693   // @@protoc_insertion_point(field_release:perfetto.protos.FtraceStats.kprobe_stats)
1694   _impl_._has_bits_[0] &= ~0x00000002u;
1695   ::perfetto::protos::FtraceKprobeStats* temp = _impl_.kprobe_stats_;
1696   _impl_.kprobe_stats_ = nullptr;
1697   return temp;
1698 }
_internal_mutable_kprobe_stats()1699 inline ::perfetto::protos::FtraceKprobeStats* FtraceStats::_internal_mutable_kprobe_stats() {
1700   _impl_._has_bits_[0] |= 0x00000002u;
1701   if (_impl_.kprobe_stats_ == nullptr) {
1702     auto* p = CreateMaybeMessage<::perfetto::protos::FtraceKprobeStats>(GetArenaForAllocation());
1703     _impl_.kprobe_stats_ = p;
1704   }
1705   return _impl_.kprobe_stats_;
1706 }
mutable_kprobe_stats()1707 inline ::perfetto::protos::FtraceKprobeStats* FtraceStats::mutable_kprobe_stats() {
1708   ::perfetto::protos::FtraceKprobeStats* _msg = _internal_mutable_kprobe_stats();
1709   // @@protoc_insertion_point(field_mutable:perfetto.protos.FtraceStats.kprobe_stats)
1710   return _msg;
1711 }
set_allocated_kprobe_stats(::perfetto::protos::FtraceKprobeStats * kprobe_stats)1712 inline void FtraceStats::set_allocated_kprobe_stats(::perfetto::protos::FtraceKprobeStats* kprobe_stats) {
1713   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1714   if (message_arena == nullptr) {
1715     delete _impl_.kprobe_stats_;
1716   }
1717   if (kprobe_stats) {
1718     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1719         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(kprobe_stats);
1720     if (message_arena != submessage_arena) {
1721       kprobe_stats = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1722           message_arena, kprobe_stats, submessage_arena);
1723     }
1724     _impl_._has_bits_[0] |= 0x00000002u;
1725   } else {
1726     _impl_._has_bits_[0] &= ~0x00000002u;
1727   }
1728   _impl_.kprobe_stats_ = kprobe_stats;
1729   // @@protoc_insertion_point(field_set_allocated:perfetto.protos.FtraceStats.kprobe_stats)
1730 }
1731 
1732 #ifdef __GNUC__
1733   #pragma GCC diagnostic pop
1734 #endif  // __GNUC__
1735 // -------------------------------------------------------------------
1736 
1737 // -------------------------------------------------------------------
1738 
1739 
1740 // @@protoc_insertion_point(namespace_scope)
1741 
1742 }  // namespace protos
1743 }  // namespace perfetto
1744 
1745 PROTOBUF_NAMESPACE_OPEN
1746 
1747 template <> struct is_proto_enum< ::perfetto::protos::FtraceStats_Phase> : ::std::true_type {};
1748 template <> struct is_proto_enum< ::perfetto::protos::FtraceParseStatus> : ::std::true_type {};
1749 
1750 PROTOBUF_NAMESPACE_CLOSE
1751 
1752 // @@protoc_insertion_point(global_scope)
1753 
1754 #include <google/protobuf/port_undef.inc>
1755 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fftrace_2fftrace_5fstats_2eproto
1756