Skip to main content

perfetto_protos/
perfetto.protos.rs

1#[derive(Clone, PartialEq, ::prost::Message)]
2pub struct ObservableEvents {
3    #[prost(message, repeated, tag="1")]
4    pub instance_state_changes: ::prost::alloc::vec::Vec<observable_events::DataSourceInstanceStateChange>,
5    #[prost(bool, optional, tag="2")]
6    pub all_data_sources_started: ::core::option::Option<bool>,
7    #[prost(message, optional, tag="3")]
8    pub clone_trigger_hit: ::core::option::Option<observable_events::CloneTriggerHit>,
9}
10/// Nested message and enum types in `ObservableEvents`.
11pub mod observable_events {
12    #[derive(Clone, PartialEq, ::prost::Message)]
13    pub struct DataSourceInstanceStateChange {
14        #[prost(string, optional, tag="1")]
15        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
16        #[prost(string, optional, tag="2")]
17        pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
18        #[prost(enumeration="DataSourceInstanceState", optional, tag="3")]
19        pub state: ::core::option::Option<i32>,
20    }
21    #[derive(Clone, PartialEq, ::prost::Message)]
22    pub struct CloneTriggerHit {
23        /// The TracingSessionID of the original tracing session which had a
24        /// CLONE_SNAPSHOT trigger defined. This is necessary just because the
25        /// consumer has no idea of what is the TSID of its own tracing session and
26        /// there is no other good way to plumb it.
27        #[prost(int64, optional, tag="1")]
28        pub tracing_session_id: ::core::option::Option<i64>,
29        /// The name of the CLONE_SNAPSHOT trigger which was hit.
30        #[prost(string, optional, tag="2")]
31        pub trigger_name: ::core::option::Option<::prost::alloc::string::String>,
32        /// The name of the producer that sent the CLONE_SNAPSHOT trigger.
33        #[prost(string, optional, tag="3")]
34        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
35        /// The uid of the producer that sent the CLONE_SNAPSHOT trigger.
36        #[prost(uint32, optional, tag="4")]
37        pub producer_uid: ::core::option::Option<u32>,
38        /// The timestamp of the CLONE_SNAPSHOT trigger which was hit.
39        #[prost(uint64, optional, tag="5")]
40        pub boot_time_ns: ::core::option::Option<u64>,
41        /// The configured delay of the CLONE_SNAPSHOT trigger which was hit. For
42        /// informational purposes only.
43        #[prost(uint64, optional, tag="6")]
44        pub trigger_delay_ms: ::core::option::Option<u64>,
45    }
46    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
47    #[repr(i32)]
48    pub enum Type {
49        Unspecified = 0,
50        /// State changes of data source instances associated with the consumer's
51        /// session. Note that not all data sources may support these notifications.
52        /// See |will_notify_on_start/stop| in DataSourceDescriptor.
53        DataSourcesInstances = 1,
54        /// State change triggered when all data sources are in the STARTED state.
55        /// For data sources that registered with |will_notify_on_start| this happens
56        /// only after the data source has acked the start. This allows the consumer
57        /// to synchronize with the data sources and to perform actions (e.g. start a
58        /// test binary) only after trace recording is actually started.
59        /// Introduced in Android 11 (R).
60        AllDataSourcesStarted = 2,
61        /// When a tracing session has one or more triggers of type CLONE_SNAPSHOT
62        /// and a matching trigger is hit, the service will send this notification to
63        /// the consumer after |stop_delay_ms|.
64        CloneTriggerHit = 4,
65    }
66    impl Type {
67        /// String value of the enum field names used in the ProtoBuf definition.
68        ///
69        /// The values are not transformed in any way and thus are considered stable
70        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
71        pub fn as_str_name(&self) -> &'static str {
72            match self {
73                Type::Unspecified => "TYPE_UNSPECIFIED",
74                Type::DataSourcesInstances => "TYPE_DATA_SOURCES_INSTANCES",
75                Type::AllDataSourcesStarted => "TYPE_ALL_DATA_SOURCES_STARTED",
76                Type::CloneTriggerHit => "TYPE_CLONE_TRIGGER_HIT",
77            }
78        }
79    }
80    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
81    #[repr(i32)]
82    pub enum DataSourceInstanceState {
83        /// A data source is created in stopped state.
84        Stopped = 1,
85        Started = 2,
86    }
87    impl DataSourceInstanceState {
88        /// String value of the enum field names used in the ProtoBuf definition.
89        ///
90        /// The values are not transformed in any way and thus are considered stable
91        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
92        pub fn as_str_name(&self) -> &'static str {
93            match self {
94                DataSourceInstanceState::Stopped => "DATA_SOURCE_INSTANCE_STATE_STOPPED",
95                DataSourceInstanceState::Started => "DATA_SOURCE_INSTANCE_STATE_STARTED",
96            }
97        }
98    }
99}
100#[derive(Clone, PartialEq, ::prost::Message)]
101pub struct FtraceDescriptor {
102    /// Report the available atrace categories.
103    ///
104    /// Used by Traceur via `perfetto --query`.
105    #[prost(message, repeated, tag="1")]
106    pub atrace_categories: ::prost::alloc::vec::Vec<ftrace_descriptor::AtraceCategory>,
107}
108/// Nested message and enum types in `FtraceDescriptor`.
109pub mod ftrace_descriptor {
110    #[derive(Clone, PartialEq, ::prost::Message)]
111    pub struct AtraceCategory {
112        #[prost(string, optional, tag="1")]
113        pub name: ::core::option::Option<::prost::alloc::string::String>,
114        #[prost(string, optional, tag="2")]
115        pub description: ::core::option::Option<::prost::alloc::string::String>,
116    }
117}
118/// Description of GPU counters.
119/// This message is sent by a GPU counter producer to specify the counters
120/// available in the hardware.
121#[derive(Clone, PartialEq, ::prost::Message)]
122pub struct GpuCounterDescriptor {
123    #[prost(message, repeated, tag="1")]
124    pub specs: ::prost::alloc::vec::Vec<gpu_counter_descriptor::GpuCounterSpec>,
125    #[prost(message, repeated, tag="2")]
126    pub blocks: ::prost::alloc::vec::Vec<gpu_counter_descriptor::GpuCounterBlock>,
127    #[prost(message, repeated, tag="6")]
128    pub counter_groups: ::prost::alloc::vec::Vec<gpu_counter_descriptor::GpuCounterGroupSpec>,
129    /// optional.  Minimum sampling period supported by the producer in
130    /// nanoseconds.
131    #[prost(uint64, optional, tag="3")]
132    pub min_sampling_period_ns: ::core::option::Option<u64>,
133    /// optional.  Maximum sampling period supported by the producer in
134    /// nanoseconds.
135    #[prost(uint64, optional, tag="4")]
136    pub max_sampling_period_ns: ::core::option::Option<u64>,
137    /// optional.  The producer supports counter sampling by instrumenting the
138    /// command buffer.
139    #[prost(bool, optional, tag="5")]
140    pub supports_instrumented_sampling: ::core::option::Option<bool>,
141    /// optional.  The producer supports selecting counters by name via
142    /// GpuCounterConfig.counter_names. Not all producers support this; Android
143    /// GPU producers typically do not.
144    #[prost(bool, optional, tag="7")]
145    pub supports_counter_names: ::core::option::Option<bool>,
146    /// optional.  The producer supports glob patterns in
147    /// GpuCounterConfig.counter_names for matching multiple counters by name.
148    #[prost(bool, optional, tag="8")]
149    pub supports_counter_name_globs: ::core::option::Option<bool>,
150}
151/// Nested message and enum types in `GpuCounterDescriptor`.
152pub mod gpu_counter_descriptor {
153    #[derive(Clone, PartialEq, ::prost::Message)]
154    pub struct GpuCounterSpec {
155        #[prost(uint32, optional, tag="1")]
156        pub counter_id: ::core::option::Option<u32>,
157        #[prost(string, optional, tag="2")]
158        pub name: ::core::option::Option<::prost::alloc::string::String>,
159        #[prost(string, optional, tag="3")]
160        pub description: ::core::option::Option<::prost::alloc::string::String>,
161        #[prost(enumeration="MeasureUnit", repeated, packed="false", tag="7")]
162        pub numerator_units: ::prost::alloc::vec::Vec<i32>,
163        #[prost(enumeration="MeasureUnit", repeated, packed="false", tag="8")]
164        pub denominator_units: ::prost::alloc::vec::Vec<i32>,
165        #[prost(bool, optional, tag="9")]
166        pub select_by_default: ::core::option::Option<bool>,
167        #[prost(enumeration="GpuCounterGroup", repeated, packed="false", tag="10")]
168        pub groups: ::prost::alloc::vec::Vec<i32>,
169        #[prost(enumeration="gpu_counter_spec::ValueDirection", optional, tag="11")]
170        pub value_direction: ::core::option::Option<i32>,
171        #[prost(oneof="gpu_counter_spec::PeakValue", tags="5, 6")]
172        pub peak_value: ::core::option::Option<gpu_counter_spec::PeakValue>,
173    }
174    /// Nested message and enum types in `GpuCounterSpec`.
175    pub mod gpu_counter_spec {
176        /// Direction of the time interval that each emitted sample applies to.
177        /// A GPU counter is sampled at discrete timestamps, but its value really
178        /// represents a measurement over some interval around that timestamp
179        /// (e.g. average GPU utilization over the sampling window). This field
180        /// tells trace processor on which side of the timestamp that interval
181        /// lies, which controls where the value is drawn in the UI.
182        ///
183        /// Example: samples at t=10, 20, 30 with values 5, 7, 0.
184        ///    BACKWARDS_LOOKING: 5 covers (-inf, 10], 7 covers (10, 20], 0 covers
185        ///      (20, 30]; the UI draws 7 between t=10 and t=20.
186        ///    FORWARDS_LOOKING:  5 covers [10, 20), 7 covers [20, 30), 0 covers
187        ///      [30, +inf); the UI draws 5 between t=10 and t=20.
188        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
189        #[repr(i32)]
190        pub enum ValueDirection {
191            /// Treated as BACKWARDS_LOOKING (the historical default).
192            Unspecified = 0,
193            /// The value applies to the interval ending at this event's timestamp.
194            /// This is the convention used by AGI and most existing GPU producers,
195            /// where a sample reports what happened during the window leading up
196            /// to the timestamp.
197            BackwardsLooking = 1,
198            /// The value applies to the interval starting at this event's
199            /// timestamp, matching standard Perfetto counters. Producers that emit
200            /// explicit zero samples to denote "no activity from here on" should
201            /// use this so the zero is not back-propagated over earlier non-zero
202            /// samples (<https://github.com/google/perfetto/issues/5683>).
203            ForwardsLooking = 2,
204        }
205        impl ValueDirection {
206            /// String value of the enum field names used in the ProtoBuf definition.
207            ///
208            /// The values are not transformed in any way and thus are considered stable
209            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
210            pub fn as_str_name(&self) -> &'static str {
211                match self {
212                    ValueDirection::Unspecified => "VALUE_DIRECTION_UNSPECIFIED",
213                    ValueDirection::BackwardsLooking => "VALUE_DIRECTION_BACKWARDS_LOOKING",
214                    ValueDirection::ForwardsLooking => "VALUE_DIRECTION_FORWARDS_LOOKING",
215                }
216            }
217        }
218        #[derive(Clone, PartialEq, ::prost::Oneof)]
219        pub enum PeakValue {
220            #[prost(int64, tag="5")]
221            IntPeakValue(i64),
222            #[prost(double, tag="6")]
223            DoublePeakValue(f64),
224        }
225    }
226    /// Allow producer to group counters into block to represent counter islands.
227    /// A capacity may be specified to indicate the number of counters that can be
228    /// enable simultaneously in that block.
229    #[derive(Clone, PartialEq, ::prost::Message)]
230    pub struct GpuCounterBlock {
231        /// required. Unique ID for the counter group.
232        #[prost(uint32, optional, tag="1")]
233        pub block_id: ::core::option::Option<u32>,
234        /// optional. Number of counters supported by the block. No limit if unset.
235        #[prost(uint32, optional, tag="2")]
236        pub block_capacity: ::core::option::Option<u32>,
237        /// optional. Name of block.
238        #[prost(string, optional, tag="3")]
239        pub name: ::core::option::Option<::prost::alloc::string::String>,
240        /// optional. Description for the block.
241        #[prost(string, optional, tag="4")]
242        pub description: ::core::option::Option<::prost::alloc::string::String>,
243        /// list of counters that are part of the block.
244        #[prost(uint32, repeated, packed="false", tag="5")]
245        pub counter_ids: ::prost::alloc::vec::Vec<u32>,
246    }
247    /// Allow producer to define custom counter groups. Unlike the fixed
248    /// GpuCounterGroup enum (which provides broad categories), these groups
249    /// let the producer define hardware-specific groupings that the UI uses
250    /// to organize counter tracks. Can also be used to provide display names
251    /// and descriptions for the fixed GpuCounterGroup enum values by setting
252    /// group_id to the enum value.
253    #[derive(Clone, PartialEq, ::prost::Message)]
254    pub struct GpuCounterGroupSpec {
255        /// required. Unique ID for this group within the descriptor.
256        #[prost(uint32, optional, tag="1")]
257        pub group_id: ::core::option::Option<u32>,
258        /// optional. Display name for the group.
259        #[prost(string, optional, tag="2")]
260        pub name: ::core::option::Option<::prost::alloc::string::String>,
261        /// optional. Description of the group.
262        #[prost(string, optional, tag="3")]
263        pub description: ::core::option::Option<::prost::alloc::string::String>,
264        /// Counters that belong directly to this group (by counter_id).
265        #[prost(uint32, repeated, packed="false", tag="4")]
266        pub counter_ids: ::prost::alloc::vec::Vec<u32>,
267    }
268    /// Logical groups for a counter.  This is used in the UI to present the
269    /// related counters together.
270    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
271    #[repr(i32)]
272    pub enum GpuCounterGroup {
273        Unclassified = 0,
274        System = 1,
275        Vertices = 2,
276        Fragments = 3,
277        Primitives = 4,
278        /// Includes counters relating to caching and bandwidth.
279        Memory = 5,
280        Compute = 6,
281        RayTracing = 7,
282    }
283    impl GpuCounterGroup {
284        /// String value of the enum field names used in the ProtoBuf definition.
285        ///
286        /// The values are not transformed in any way and thus are considered stable
287        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
288        pub fn as_str_name(&self) -> &'static str {
289            match self {
290                GpuCounterGroup::Unclassified => "UNCLASSIFIED",
291                GpuCounterGroup::System => "SYSTEM",
292                GpuCounterGroup::Vertices => "VERTICES",
293                GpuCounterGroup::Fragments => "FRAGMENTS",
294                GpuCounterGroup::Primitives => "PRIMITIVES",
295                GpuCounterGroup::Memory => "MEMORY",
296                GpuCounterGroup::Compute => "COMPUTE",
297                GpuCounterGroup::RayTracing => "RAY_TRACING",
298            }
299        }
300    }
301    /// next id: 41
302    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
303    #[repr(i32)]
304    pub enum MeasureUnit {
305        None = 0,
306        Bit = 1,
307        Kilobit = 2,
308        Megabit = 3,
309        Gigabit = 4,
310        Terabit = 5,
311        Petabit = 6,
312        Byte = 7,
313        Kilobyte = 8,
314        Megabyte = 9,
315        Gigabyte = 10,
316        Terabyte = 11,
317        Petabyte = 12,
318        Hertz = 13,
319        Kilohertz = 14,
320        Megahertz = 15,
321        Gigahertz = 16,
322        Terahertz = 17,
323        Petahertz = 18,
324        Nanosecond = 19,
325        Microsecond = 20,
326        Millisecond = 21,
327        Second = 22,
328        Minute = 23,
329        Hour = 24,
330        Vertex = 25,
331        Pixel = 26,
332        Triangle = 27,
333        Primitive = 38,
334        Fragment = 39,
335        Milliwatt = 28,
336        Watt = 29,
337        Kilowatt = 30,
338        Joule = 31,
339        Volt = 32,
340        Ampere = 33,
341        Celsius = 34,
342        Fahrenheit = 35,
343        Kelvin = 36,
344        /// Values should be out of 100.
345        Percent = 37,
346        Instruction = 40,
347    }
348    impl MeasureUnit {
349        /// String value of the enum field names used in the ProtoBuf definition.
350        ///
351        /// The values are not transformed in any way and thus are considered stable
352        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
353        pub fn as_str_name(&self) -> &'static str {
354            match self {
355                MeasureUnit::None => "NONE",
356                MeasureUnit::Bit => "BIT",
357                MeasureUnit::Kilobit => "KILOBIT",
358                MeasureUnit::Megabit => "MEGABIT",
359                MeasureUnit::Gigabit => "GIGABIT",
360                MeasureUnit::Terabit => "TERABIT",
361                MeasureUnit::Petabit => "PETABIT",
362                MeasureUnit::Byte => "BYTE",
363                MeasureUnit::Kilobyte => "KILOBYTE",
364                MeasureUnit::Megabyte => "MEGABYTE",
365                MeasureUnit::Gigabyte => "GIGABYTE",
366                MeasureUnit::Terabyte => "TERABYTE",
367                MeasureUnit::Petabyte => "PETABYTE",
368                MeasureUnit::Hertz => "HERTZ",
369                MeasureUnit::Kilohertz => "KILOHERTZ",
370                MeasureUnit::Megahertz => "MEGAHERTZ",
371                MeasureUnit::Gigahertz => "GIGAHERTZ",
372                MeasureUnit::Terahertz => "TERAHERTZ",
373                MeasureUnit::Petahertz => "PETAHERTZ",
374                MeasureUnit::Nanosecond => "NANOSECOND",
375                MeasureUnit::Microsecond => "MICROSECOND",
376                MeasureUnit::Millisecond => "MILLISECOND",
377                MeasureUnit::Second => "SECOND",
378                MeasureUnit::Minute => "MINUTE",
379                MeasureUnit::Hour => "HOUR",
380                MeasureUnit::Vertex => "VERTEX",
381                MeasureUnit::Pixel => "PIXEL",
382                MeasureUnit::Triangle => "TRIANGLE",
383                MeasureUnit::Primitive => "PRIMITIVE",
384                MeasureUnit::Fragment => "FRAGMENT",
385                MeasureUnit::Milliwatt => "MILLIWATT",
386                MeasureUnit::Watt => "WATT",
387                MeasureUnit::Kilowatt => "KILOWATT",
388                MeasureUnit::Joule => "JOULE",
389                MeasureUnit::Volt => "VOLT",
390                MeasureUnit::Ampere => "AMPERE",
391                MeasureUnit::Celsius => "CELSIUS",
392                MeasureUnit::Fahrenheit => "FAHRENHEIT",
393                MeasureUnit::Kelvin => "KELVIN",
394                MeasureUnit::Percent => "PERCENT",
395                MeasureUnit::Instruction => "INSTRUCTION",
396            }
397        }
398    }
399}
400#[derive(Clone, PartialEq, ::prost::Message)]
401pub struct TrackEventCategory {
402    #[prost(string, optional, tag="1")]
403    pub name: ::core::option::Option<::prost::alloc::string::String>,
404    #[prost(string, optional, tag="2")]
405    pub description: ::core::option::Option<::prost::alloc::string::String>,
406    #[prost(string, repeated, tag="3")]
407    pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
408}
409#[derive(Clone, PartialEq, ::prost::Message)]
410pub struct TrackEventDescriptor {
411    #[prost(message, repeated, tag="1")]
412    pub available_categories: ::prost::alloc::vec::Vec<TrackEventCategory>,
413}
414#[derive(Clone, PartialEq, ::prost::Message)]
415pub struct VmProgram {
416    #[prost(uint32, optional, tag="1")]
417    pub version: ::core::option::Option<u32>,
418    #[prost(message, repeated, tag="2")]
419    pub instructions: ::prost::alloc::vec::Vec<VmInstruction>,
420}
421#[derive(Clone, PartialEq, ::prost::Message)]
422pub struct VmInstruction {
423    #[prost(enumeration="vm_instruction::AbortLevel", optional, tag="6")]
424    pub abort_level: ::core::option::Option<i32>,
425    /// Sub-instructions executed if the current instruction succeeds
426    #[prost(message, repeated, tag="7")]
427    pub nested_instructions: ::prost::alloc::vec::Vec<VmInstruction>,
428    #[prost(oneof="vm_instruction::Operation", tags="1, 2, 3, 4, 5")]
429    pub operation: ::core::option::Option<vm_instruction::Operation>,
430}
431/// Nested message and enum types in `VmInstruction`.
432pub mod vm_instruction {
433    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
434    #[repr(i32)]
435    pub enum AbortLevel {
436        /// Skip current instruction but execute following ones
437        SkipCurrentInstruction = 1,
438        /// Skip current instruction as well as following ones (default)
439        SkipCurrentInstructionAndBreakOuter = 2,
440        /// Abort whole program
441        Abort = 3,
442    }
443    impl AbortLevel {
444        /// String value of the enum field names used in the ProtoBuf definition.
445        ///
446        /// The values are not transformed in any way and thus are considered stable
447        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
448        pub fn as_str_name(&self) -> &'static str {
449            match self {
450                AbortLevel::SkipCurrentInstruction => "SKIP_CURRENT_INSTRUCTION",
451                AbortLevel::SkipCurrentInstructionAndBreakOuter => "SKIP_CURRENT_INSTRUCTION_AND_BREAK_OUTER",
452                AbortLevel::Abort => "ABORT",
453            }
454        }
455    }
456    #[derive(Clone, PartialEq, ::prost::Oneof)]
457    pub enum Operation {
458        #[prost(message, tag="1")]
459        Select(super::VmOpSelect),
460        #[prost(message, tag="2")]
461        RegLoad(super::VmOpRegLoad),
462        #[prost(message, tag="3")]
463        Merge(super::VmOpMerge),
464        #[prost(message, tag="4")]
465        Set(super::VmOpSet),
466        #[prost(message, tag="5")]
467        Del(super::VmOpDel),
468    }
469}
470#[derive(Clone, PartialEq, ::prost::Message)]
471pub struct VmOpSelect {
472    /// Enum SRC|DST|BOTH. Default=SRC.
473    #[prost(enumeration="VmCursorEnum", optional, tag="1")]
474    pub cursor: ::core::option::Option<i32>,
475    #[prost(message, repeated, tag="2")]
476    pub relative_path: ::prost::alloc::vec::Vec<vm_op_select::PathComponent>,
477    /// Creates the submessage if doesn't exist in the DST cursor
478    /// (think of mkdir -p). Only valid when cursor=DST|BOTH.
479    #[prost(bool, optional, tag="3")]
480    pub create_if_not_exist: ::core::option::Option<bool>,
481}
482/// Nested message and enum types in `VmOpSelect`.
483pub mod vm_op_select {
484    /// A path component is either: (1) a field id to descend into (common case);
485    /// (2) an array index (for repeated fields); (3) a map lookup operation (for
486    /// repeated fields, where we snoop a sub-field as a map key)
487    #[derive(Clone, PartialEq, ::prost::Message)]
488    pub struct PathComponent {
489        // When we are selecting a leaf field, tell what's the field type
490        // to disambiguate integer types. Using uint64 by default will likely
491        // do the right thing in 99% cases (so probably we don't need to impl
492        // this until much later if somebody does a map with a fixed64 key)
493        // enum ProtoFieldType field_type = 4;  // bool | int32 | fixed32 | ...
494
495        /// Only valid when using field_id. This makes select have foreach
496        /// semantics. This means that the body of nested_instructions is
497        /// executed several times, once per each repeated submessage.
498        #[prost(bool, optional, tag="5")]
499        pub is_repeated: ::core::option::Option<bool>,
500        /// Only valid when using map_key_field_id. This defines which
501        /// register (R1..R32) should be used to match the key of the dict
502        /// in a map lookup operation.
503        /// In other words:
504        /// foreach msg in repeated message {
505        ///    if msg\[map_key_field_id\] == R\[register_to_match\] {
506        ///       break;  // Lookup succeeded, PathComponent resolves here.
507        ///    }
508        /// }
509        #[prost(uint32, optional, tag="6")]
510        pub register_to_match: ::core::option::Option<u32>,
511        /// Only valid when using field_id and is_repeated=true. When iterating
512        /// over repeated fields, stores the current iteration index into the
513        /// the register R1..R32 defined below. This can be used to do complex
514        /// operations like "find the entry in the array that has width==100,
515        /// remember its offset in the SRC array and overwrite the matching
516        /// i-th element in the DST array. We will probably never implement
517        /// this but it's here for completeness.
518        #[prost(uint32, optional, tag="7")]
519        pub store_foreach_index_into_register: ::core::option::Option<u32>,
520        #[prost(oneof="path_component::Field", tags="1, 2, 3")]
521        pub field: ::core::option::Option<path_component::Field>,
522    }
523    /// Nested message and enum types in `PathComponent`.
524    pub mod path_component {
525        #[derive(Clone, PartialEq, ::prost::Oneof)]
526        pub enum Field {
527            #[prost(uint32, tag="1")]
528            FieldId(u32),
529            #[prost(uint32, tag="2")]
530            ArrayIndex(u32),
531            /// The ID of the field in the repeated submessage that we
532            /// use as a key (e.g. LayerState.layer_id). When setting this
533            /// register_to_match must also be set, to tell what's the
534            /// expected value of the key we are looking up.
535            #[prost(uint32, tag="3")]
536            MapKeyFieldId(u32),
537        }
538    }
539}
540#[derive(Clone, PartialEq, ::prost::Message)]
541pub struct VmOpRegLoad {
542    /// SRC(default) | DST.
543    #[prost(enumeration="VmCursorEnum", optional, tag="1")]
544    pub cursor: ::core::option::Option<i32>,
545    /// 1=R1, 2=R2... 32=R32
546    #[prost(uint32, optional, tag="2")]
547    pub dst_register: ::core::option::Option<u32>,
548}
549/// Merges SRC into DST. Both need to point to a message (not a field).
550#[derive(Clone, PartialEq, ::prost::Message)]
551pub struct VmOpMerge {
552    /// When true, the merge operation will skip any field that is already
553    /// resolved as a message node in the destination tree.
554    ///
555    /// This is used to support merging of nested messages. Because ProtoVM
556    /// does not know the schema, a standard MERGE cannot distinguish
557    /// between a string and a message on the wire and it would overwrite
558    /// the entire blob, destroying granular updates.
559    ///
560    /// By setting this to true, a program can be implemented to do a
561    /// bottom-up, multi-step merge by traversing into and merging
562    /// the deepest submessages first, then moving up to the parent
563    /// message and merging it with skip_submessages = true.
564    #[prost(bool, optional, tag="1")]
565    pub skip_submessages: ::core::option::Option<bool>,
566    /// When true, the merge operation will remove the dst field if the src field
567    /// is empty.
568    ///
569    /// This can be used to replicate the removal of a subobject within the
570    /// producer's state. E.g.
571    /// This event on the producer side: mProducerState.mSubobject = nullptr
572    /// can be represented by this patch: { producer_state { subobject {} }}
573    #[prost(bool, optional, tag="2")]
574    pub del_if_src_empty: ::core::option::Option<bool>,
575}
576/// Copies SRC into DST. If a message, replaces the DST node, discarding any
577/// pre-existing field.
578#[derive(Clone, PartialEq, ::prost::Message)]
579pub struct VmOpSet {
580}
581/// Delete the field or message pointed by DST.
582#[derive(Clone, PartialEq, ::prost::Message)]
583pub struct VmOpDel {
584}
585#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
586#[repr(i32)]
587pub enum VmCursorEnum {
588    VmCursorUnspecified = 0,
589    VmCursorSrc = 1,
590    VmCursorDst = 2,
591    VmCursorBoth = 3,
592}
593impl VmCursorEnum {
594    /// String value of the enum field names used in the ProtoBuf definition.
595    ///
596    /// The values are not transformed in any way and thus are considered stable
597    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
598    pub fn as_str_name(&self) -> &'static str {
599        match self {
600            VmCursorEnum::VmCursorUnspecified => "VM_CURSOR_UNSPECIFIED",
601            VmCursorEnum::VmCursorSrc => "VM_CURSOR_SRC",
602            VmCursorEnum::VmCursorDst => "VM_CURSOR_DST",
603            VmCursorEnum::VmCursorBoth => "VM_CURSOR_BOTH",
604        }
605    }
606}
607/// This message is sent from Producer(s) to the tracing Service when registering
608/// to advertise their capabilities. It describes the structure of tracing
609/// protos that will be produced by the data source and the supported filters.
610#[derive(Clone, PartialEq, ::prost::Message)]
611pub struct DataSourceDescriptor {
612    /// e.g., "linux.ftrace", "chromium.tracing"
613    #[prost(string, optional, tag="1")]
614    pub name: ::core::option::Option<::prost::alloc::string::String>,
615    /// When non-zero, this is a unique ID within the scope of the Producer for
616    /// this data source (it is NOT globally unique). This is useful to
617    /// differentiate between data sources with matching names when calling
618    /// UpdateDataSource(). This field has been introduced in November 2021
619    /// (v22, Android T) and is not supported on older versions.
620    #[prost(uint64, optional, tag="7")]
621    pub id: ::core::option::Option<u64>,
622    /// When true the data source is expected to ack the stop request through the
623    /// NotifyDataSourceStopped() IPC. This field has been introduced after
624    /// Android P in Jul 2018 and is not supported on older versions.
625    #[prost(bool, optional, tag="2")]
626    pub will_notify_on_stop: ::core::option::Option<bool>,
627    /// When true the data source is expected to ack the start request through the
628    /// NotifyDataSourceStarted() IPC. This field has been introduced after
629    /// Android P in March 2019 and is not supported on older versions.
630    #[prost(bool, optional, tag="3")]
631    pub will_notify_on_start: ::core::option::Option<bool>,
632    /// If true, opt into receiving the ClearIncrementalState() IPC. This should be
633    /// set if the data source writes packets that refer to previous trace
634    /// contents, and knows how to stop referring to the already-emitted data.
635    #[prost(bool, optional, tag="4")]
636    pub handles_incremental_state_clear: ::core::option::Option<bool>,
637    /// If true, indicates that the data source does nothing upon Flush. This
638    /// allows the service to reduce the flush-related IPC traffic and better deal
639    /// with frozen producers (see go/perfetto-frozen). This is usually the case
640    /// for data sources like 'track_event' that don't have access to the various
641    /// thread task runners to post a flush task and rely purely on server-side
642    /// scraping.
643    /// Introduced in v39 / Android V.
644    #[prost(bool, optional, tag="9")]
645    pub no_flush: ::core::option::Option<bool>,
646    /// If present, the tracing service executes this program within a ProtoVM to
647    /// process overwritten packets (patches). The service computes a hash of the
648    /// program to detect and disambiguate between different versions; if multiple
649    /// versions (from different producers) are specified for the same data source,
650    /// the service instantiates a dedicated ProtoVM for each.
651    #[prost(message, optional, tag="10")]
652    pub protovm_program: ::core::option::Option<VmProgram>,
653    /// Optional specification about available GPU counters.
654    #[prost(message, optional, tag="5")]
655    pub gpu_counter_descriptor: ::core::option::Option<GpuCounterDescriptor>,
656    #[prost(message, optional, tag="6")]
657    pub track_event_descriptor: ::core::option::Option<TrackEventDescriptor>,
658    #[prost(message, optional, tag="8")]
659    pub ftrace_descriptor: ::core::option::Option<FtraceDescriptor>,
660}
661/// Reports the state of the tracing service. Used to gather details about the
662/// data sources connected.
663/// See ConsumerPort::QueryServiceState().
664#[derive(Clone, PartialEq, ::prost::Message)]
665pub struct TracingServiceState {
666    /// Lists all the producers connected.
667    #[prost(message, repeated, tag="1")]
668    pub producers: ::prost::alloc::vec::Vec<tracing_service_state::Producer>,
669    /// Lists the data sources available.
670    #[prost(message, repeated, tag="2")]
671    pub data_sources: ::prost::alloc::vec::Vec<tracing_service_state::DataSource>,
672    /// Lists the tracing sessions active AND owned by a consumer that has the same
673    /// UID of the caller (or all of them if the caller is root).
674    /// Introduced in v24 / Android T.
675    #[prost(message, repeated, tag="6")]
676    pub tracing_sessions: ::prost::alloc::vec::Vec<tracing_service_state::TracingSession>,
677    /// This is always set to true from v24 and beyond. This flag is only used to
678    /// tell the difference between: (1) talking to a recent service which happens
679    /// to have no tracing session active; (2) talking to an older version of the
680    /// service which will never report any tracing session.
681    #[prost(bool, optional, tag="7")]
682    pub supports_tracing_sessions: ::core::option::Option<bool>,
683    /// Total number of tracing sessions.
684    #[prost(int32, optional, tag="3")]
685    pub num_sessions: ::core::option::Option<i32>,
686    /// Number of tracing sessions in the started state. Always <= num_sessions.
687    #[prost(int32, optional, tag="4")]
688    pub num_sessions_started: ::core::option::Option<i32>,
689    /// The version of traced (the same returned by `traced --version`).
690    /// This is a human readable string with and its format varies depending on
691    /// the build system and the repo (standalone vs AOSP).
692    /// This is intended for human debugging only.
693    #[prost(string, optional, tag="5")]
694    pub tracing_service_version: ::core::option::Option<::prost::alloc::string::String>,
695}
696/// Nested message and enum types in `TracingServiceState`.
697pub mod tracing_service_state {
698    /// Describes a producer process.
699    #[derive(Clone, PartialEq, ::prost::Message)]
700    pub struct Producer {
701        /// Unique ID of the producer (monotonic counter).
702        #[prost(int32, optional, tag="1")]
703        pub id: ::core::option::Option<i32>,
704        /// Typically matches the process name.
705        #[prost(string, optional, tag="2")]
706        pub name: ::core::option::Option<::prost::alloc::string::String>,
707        /// Unix pid of the remote process. Supported only on Linux-based systems.
708        /// Introduced in v24 / Android T.
709        #[prost(int32, optional, tag="5")]
710        pub pid: ::core::option::Option<i32>,
711        /// Unix uid of the remote process.
712        #[prost(int32, optional, tag="3")]
713        pub uid: ::core::option::Option<i32>,
714        /// The version of the client library used by the producer.
715        /// This is a human readable string with and its format varies depending on
716        /// the build system and the repo (standalone vs AOSP).
717        /// This is intended for human debugging only.
718        #[prost(string, optional, tag="4")]
719        pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
720        /// Returns true if the process appears to be frozen (Android only).
721        /// Introduced in Perfetto V49 / Android 24Q4.
722        #[prost(bool, optional, tag="6")]
723        pub frozen: ::core::option::Option<bool>,
724        /// Identifies the machine this producer is connected from in multi-machine
725        /// tracing setups (e.g. when going through traced_relay). Unset (or zero)
726        /// means the producer is connected from the local/host machine where the
727        /// tracing service is running.
728        /// Introduced in Perfetto V56 / Android 26Q3.
729        #[prost(uint32, optional, tag="7")]
730        pub machine_id: ::core::option::Option<u32>,
731        /// Human-readable name of the machine, as advertised by the relay (usually
732        /// the value of PERFETTO_MACHINE_NAME on the remote, falling back to the
733        /// remote's `uname -s`). Only set when machine_id is non-zero.
734        /// Introduced in Perfetto V56 / Android 26Q3.
735        #[prost(string, optional, tag="8")]
736        pub machine_name: ::core::option::Option<::prost::alloc::string::String>,
737    }
738    /// Describes a data source registered by a producer. Data sources are listed
739    /// regardless of the fact that they are being used or not.
740    #[derive(Clone, PartialEq, ::prost::Message)]
741    pub struct DataSource {
742        /// Descriptor passed by the data source when calling RegisterDataSource().
743        #[prost(message, optional, tag="1")]
744        pub ds_descriptor: ::core::option::Option<super::DataSourceDescriptor>,
745        /// ID of the producer, as per Producer.id.
746        #[prost(int32, optional, tag="2")]
747        pub producer_id: ::core::option::Option<i32>,
748    }
749    #[derive(Clone, PartialEq, ::prost::Message)]
750    pub struct TracingSession {
751        /// The TracingSessionID.
752        #[prost(uint64, optional, tag="1")]
753        pub id: ::core::option::Option<u64>,
754        /// The Unix uid of the consumer that started the session.
755        /// This is meaningful only if the caller is root. In all other cases only
756        /// tracing sessions that match the caller UID will be displayed.
757        #[prost(int32, optional, tag="2")]
758        pub consumer_uid: ::core::option::Option<i32>,
759        /// Internal state of the tracing session.
760        /// These strings are FYI only and subjected to change.
761        #[prost(string, optional, tag="3")]
762        pub state: ::core::option::Option<::prost::alloc::string::String>,
763        /// The unique_session_name as set in the trace config (might be empty).
764        #[prost(string, optional, tag="4")]
765        pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
766        /// The number and size of each buffer.
767        #[prost(uint32, repeated, packed="false", tag="5")]
768        pub buffer_size_kb: ::prost::alloc::vec::Vec<u32>,
769        /// Duration, as specified in the TraceConfig.duration_ms.
770        #[prost(uint32, optional, tag="6")]
771        pub duration_ms: ::core::option::Option<u32>,
772        /// Number of data sources involved in the session.
773        #[prost(uint32, optional, tag="7")]
774        pub num_data_sources: ::core::option::Option<u32>,
775        /// Time when the session was started, in the CLOCK_REALTIME domain.
776        /// Available only on Linux-based systems.
777        #[prost(int64, optional, tag="8")]
778        pub start_realtime_ns: ::core::option::Option<i64>,
779        // The fields below have been introduced in v42.
780
781        /// The bugreport_score, as set in TraceConfig.bugreport_score.
782        #[prost(int32, optional, tag="9")]
783        pub bugreport_score: ::core::option::Option<i32>,
784        /// As per TraceConfig.bugreport_filename.
785        #[prost(string, optional, tag="10")]
786        pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
787        /// If true, the session is in the STARTED state. If false the session is in
788        /// any other state (see `state` field).
789        #[prost(bool, optional, tag="11")]
790        pub is_started: ::core::option::Option<bool>,
791    }
792}
793#[derive(Clone, PartialEq, ::prost::Message)]
794pub struct TracingServiceCapabilities {
795    /// Whether the service supports QueryCapabilities() at all or not.
796    /// This is only used at the C++ level to distinguish the case of talking to
797    /// an older version of the service that doesn't support QueryCapabilities().
798    /// In that case the IPC layer will just reject the unknown call, and the
799    /// consumer_ipc_client_impl.cc will return an empty message where this field
800    /// is false. In all other cases, this is always set to true.
801    #[prost(bool, optional, tag="1")]
802    pub has_query_capabilities: ::core::option::Option<bool>,
803    /// The set of known events that can be passed to ConsumerPort.ObserveEvents().
804    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="2")]
805    pub observable_events: ::prost::alloc::vec::Vec<i32>,
806    /// Whether the service supports TraceConfig.output_path (for asking traced to
807    /// create the output file instead of passing a file descriptor).
808    #[prost(bool, optional, tag="3")]
809    pub has_trace_config_output_path: ::core::option::Option<bool>,
810    /// Whether the service supports CloneSession and CLONE_SNAPSHOT triggers.
811    #[prost(bool, optional, tag="4")]
812    pub has_clone_session: ::core::option::Option<bool>,
813}
814/// Statistics for the internals of the tracing service.
815///
816/// Next id: 19.
817#[derive(Clone, PartialEq, ::prost::Message)]
818pub struct TraceStats {
819    /// Stats for the TraceBuffer(s) of the current trace session.
820    #[prost(message, repeated, tag="1")]
821    pub buffer_stats: ::prost::alloc::vec::Vec<trace_stats::BufferStats>,
822    /// The thresholds of each the `writer_stats` histogram buckets. This is
823    /// emitted only once as all WriterStats share the same bucket layout.
824    /// This field has the same cardinality of the
825    /// `writer_stats.chunk_payload_histogram_{counts,sum}` - 1.
826    /// (The -1 is because the last overflow bucket is not reported in the _def).
827    /// An array of values [10, 100, 1000] in the _def array means that there are
828    /// four buckets (3 + the implicit overflow bucket):
829    /// \[0\]: x <= 10; \[1\]: 100 < x <= 1000; \[2\]: 1000 < x <= 1000; \[3\]: x > 1000.
830    #[prost(int64, repeated, packed="false", tag="17")]
831    pub chunk_payload_histogram_def: ::prost::alloc::vec::Vec<i64>,
832    #[prost(message, repeated, tag="18")]
833    pub writer_stats: ::prost::alloc::vec::Vec<trace_stats::WriterStats>,
834    /// Num. producers connected (whether they are involved in the current tracing
835    /// session or not).
836    #[prost(uint32, optional, tag="2")]
837    pub producers_connected: ::core::option::Option<u32>,
838    /// Num. producers ever seen for all trace sessions since startup (it's a good
839    /// proxy for inferring num. producers crashed / killed).
840    #[prost(uint64, optional, tag="3")]
841    pub producers_seen: ::core::option::Option<u64>,
842    /// Num. data sources registered for all trace sessions.
843    #[prost(uint32, optional, tag="4")]
844    pub data_sources_registered: ::core::option::Option<u32>,
845    /// Num. data sources ever seen for all trace sessions since startup.
846    #[prost(uint64, optional, tag="5")]
847    pub data_sources_seen: ::core::option::Option<u64>,
848    /// Num. concurrently active tracing sessions.
849    #[prost(uint32, optional, tag="6")]
850    pub tracing_sessions: ::core::option::Option<u32>,
851    /// Num. buffers for all tracing session (not just the current one). This will
852    /// be >= buffer_stats.size(), because the latter is only about the current
853    /// session.
854    #[prost(uint32, optional, tag="7")]
855    pub total_buffers: ::core::option::Option<u32>,
856    // The fields below have been introduced in Android Q.
857
858    /// Num. chunks that were discarded by the service before attempting to commit
859    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
860    #[prost(uint64, optional, tag="8")]
861    pub chunks_discarded: ::core::option::Option<u64>,
862    /// Num. patches that were discarded by the service before attempting to apply
863    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
864    #[prost(uint64, optional, tag="9")]
865    pub patches_discarded: ::core::option::Option<u64>,
866    /// Packets that failed validation of the TrustedPacket. If this is > 0, there
867    /// is a bug in the producer.
868    #[prost(uint64, optional, tag="10")]
869    pub invalid_packets: ::core::option::Option<u64>,
870    #[prost(message, optional, tag="11")]
871    pub filter_stats: ::core::option::Option<trace_stats::FilterStats>,
872    /// Count of Flush() requests (either from the Consumer, or self-induced
873    /// periodic flushes). The final Flush() is also included in the count.
874    #[prost(uint64, optional, tag="12")]
875    pub flushes_requested: ::core::option::Option<u64>,
876    /// The count of the Flush() requests that were completed successfully.
877    /// In a well behaving trace this should always be == `flush_requests`.
878    #[prost(uint64, optional, tag="13")]
879    pub flushes_succeeded: ::core::option::Option<u64>,
880    /// The count of the Flush() requests that failed (in most timed out).
881    /// In a well behaving trace this should always be == 0.
882    #[prost(uint64, optional, tag="14")]
883    pub flushes_failed: ::core::option::Option<u64>,
884    #[prost(enumeration="trace_stats::FinalFlushOutcome", optional, tag="15")]
885    pub final_flush_outcome: ::core::option::Option<i32>,
886}
887/// Nested message and enum types in `TraceStats`.
888pub mod trace_stats {
889    /// From TraceBuffer::Stats.
890    ///
891    /// Next id: 22.
892    #[derive(Clone, PartialEq, ::prost::Message)]
893    pub struct BufferStats {
894        /// Size of the circular buffer in bytes.
895        #[prost(uint64, optional, tag="12")]
896        pub buffer_size: ::core::option::Option<u64>,
897        /// Num. bytes written into the circular buffer, including chunk headers.
898        #[prost(uint64, optional, tag="1")]
899        pub bytes_written: ::core::option::Option<u64>,
900        /// Num. bytes overwritten before they have been read (i.e. loss of data).
901        #[prost(uint64, optional, tag="13")]
902        pub bytes_overwritten: ::core::option::Option<u64>,
903        /// Total size of chunks that were fully read from the circular buffer by the
904        /// consumer. This may not be equal to |bytes_written| either in the middle
905        /// of tracing, or if |chunks_overwritten| is non-zero. Note that this is the
906        /// size of the chunks read from the buffer, including chunk headers, which
907        /// will be different from the total size of packets returned to the
908        /// consumer.
909        ///
910        /// The current utilization of the trace buffer (mid-tracing) can be obtained
911        /// by subtracting |bytes_read| and |bytes_overwritten| from |bytes_written|,
912        /// adding the difference of |padding_bytes_written| and
913        /// |padding_bytes_cleared|, and comparing this sum to the |buffer_size|.
914        /// Note that this represents the total size of buffered data in the buffer,
915        /// yet this data may be spread non-contiguously through the buffer and may
916        /// be overridden before the utilization reaches 100%.
917        #[prost(uint64, optional, tag="14")]
918        pub bytes_read: ::core::option::Option<u64>,
919        /// Num. bytes that were allocated as padding between chunks in the circular
920        /// buffer.
921        #[prost(uint64, optional, tag="15")]
922        pub padding_bytes_written: ::core::option::Option<u64>,
923        /// Num. of padding bytes that were removed from the circular buffer when
924        /// they were overwritten.
925        ///
926        /// The difference between |padding_bytes_written| and
927        /// |padding_bytes_cleared| denotes the total size of padding currently
928        /// present in the buffer.
929        #[prost(uint64, optional, tag="16")]
930        pub padding_bytes_cleared: ::core::option::Option<u64>,
931        /// Num. chunks (!= packets) written into the buffer.
932        #[prost(uint64, optional, tag="2")]
933        pub chunks_written: ::core::option::Option<u64>,
934        /// Num. chunks (!= packets) rewritten into the buffer. This means we rewrote
935        /// the same chunk with additional packets appended to the end.
936        #[prost(uint64, optional, tag="10")]
937        pub chunks_rewritten: ::core::option::Option<u64>,
938        /// Num. chunks overwritten before they have been read (i.e. loss of data).
939        #[prost(uint64, optional, tag="3")]
940        pub chunks_overwritten: ::core::option::Option<u64>,
941        /// Num. chunks discarded (i.e. loss of data). Can be > 0 only when a buffer
942        /// is configured with FillPolicy == DISCARD.
943        #[prost(uint64, optional, tag="18")]
944        pub chunks_discarded: ::core::option::Option<u64>,
945        /// Num. chunks (!= packets) that were fully read from the circular buffer by
946        /// the consumer. This may not be equal to |chunks_written| either in the
947        /// middle of tracing, or if |chunks_overwritten| is non-zero.
948        #[prost(uint64, optional, tag="17")]
949        pub chunks_read: ::core::option::Option<u64>,
950        /// Num. chunks that were committed out of order.
951        #[prost(uint64, optional, tag="11")]
952        pub chunks_committed_out_of_order: ::core::option::Option<u64>,
953        /// Num. times the ring buffer wrapped around.
954        #[prost(uint64, optional, tag="4")]
955        pub write_wrap_count: ::core::option::Option<u64>,
956        /// Num. out-of-band (OOB) patches that succeeded.
957        #[prost(uint64, optional, tag="5")]
958        pub patches_succeeded: ::core::option::Option<u64>,
959        /// Num. OOB patches that failed (e.g., the chunk to patch was gone).
960        #[prost(uint64, optional, tag="6")]
961        pub patches_failed: ::core::option::Option<u64>,
962        /// Num. readaheads (for large multi-chunk packet reads) that ended up in a
963        /// successful packet read.
964        #[prost(uint64, optional, tag="7")]
965        pub readaheads_succeeded: ::core::option::Option<u64>,
966        /// Num. readaheads aborted because of missing chunks in the sequence stream.
967        /// Note that a small number > 0 is totally expected: occasionally, when
968        /// issuing a read, the very last packet in a sequence might be incomplete
969        /// (because the producer is still writing it while we read). The read will
970        /// stop at that point, for that sequence, increasing this counter.
971        #[prost(uint64, optional, tag="8")]
972        pub readaheads_failed: ::core::option::Option<u64>,
973        /// Num. of violations of the SharedMemoryABI found while writing or reading
974        /// the buffer. This is an indication of either a bug in the producer(s) or
975        /// malicious producer(s).
976        #[prost(uint64, optional, tag="9")]
977        pub abi_violations: ::core::option::Option<u64>,
978        // The fields below have been introduced in Android R.
979
980        /// Num. of times the service detected packet loss on a trace writer
981        /// sequence. This is usually caused by exhaustion of available chunks in the
982        /// writer process's SMB. Note that this relies on the client's TraceWriter
983        /// indicating this loss to the service -- packets lost for other reasons are
984        /// not reflected in this stat.
985        #[prost(uint64, optional, tag="19")]
986        pub trace_writer_packet_loss: ::core::option::Option<u64>,
987        #[prost(message, optional, tag="21")]
988        pub shadow_buffer_stats: ::core::option::Option<buffer_stats::ShadowBufferStats>,
989    }
990    /// Nested message and enum types in `BufferStats`.
991    pub mod buffer_stats {
992        /// Statistics for TRACE_BUFFER_V2_SHADOW_MODE comparison.
993        /// Only populated when the buffer is configured with shadow mode.
994        #[derive(Clone, PartialEq, ::prost::Message)]
995        pub struct ShadowBufferStats {
996            /// Total num. packets read. This is not affected by capping of the hasher
997            /// to 32K elements.
998            #[prost(uint64, optional, tag="1")]
999            pub packets_seen: ::core::option::Option<u64>,
1000            // The stats below are keps only for 32k packets. After reading 32K
1001            // packets hashes are randomly evicted and that might lead to slightly
1002            // inconsistent results.
1003
1004            /// Num. packets found in both V1 and V2 buffers (matched by content hash).
1005            #[prost(uint64, optional, tag="2")]
1006            pub packets_in_both: ::core::option::Option<u64>,
1007            /// Num. packets found only in V1 buffer but not in V2.
1008            #[prost(uint64, optional, tag="3")]
1009            pub packets_only_v1: ::core::option::Option<u64>,
1010            /// Num. packets found only in V2 buffer but not in V1.
1011            #[prost(uint64, optional, tag="4")]
1012            pub packets_only_v2: ::core::option::Option<u64>,
1013            /// Num. patch operations attempted.
1014            #[prost(uint64, optional, tag="5")]
1015            pub patches_attempted: ::core::option::Option<u64>,
1016            /// Num. patches that succeeded on V1 buffer.
1017            #[prost(uint64, optional, tag="6")]
1018            pub v1_patches_succeeded: ::core::option::Option<u64>,
1019            /// Num. patches that succeeded on V2 buffer.
1020            #[prost(uint64, optional, tag="7")]
1021            pub v2_patches_succeeded: ::core::option::Option<u64>,
1022            /// This is to distinguish the updated calculations after fixing the
1023            /// hashes. This field is either empty or "2"
1024            #[prost(uint32, optional, tag="8")]
1025            pub stats_version: ::core::option::Option<u32>,
1026        }
1027    }
1028    /// Per TraceWriter stat. Each {producer, trace writer} tuple is publicly
1029    /// visible as a unique sequence ID in the trace.
1030    #[derive(Clone, PartialEq, ::prost::Message)]
1031    pub struct WriterStats {
1032        /// This matches the TracePacket.trusted_packet_sequence_id and is used to
1033        /// correlate the stats with the actual packet types.
1034        #[prost(uint64, optional, tag="1")]
1035        pub sequence_id: ::core::option::Option<u64>,
1036        /// The buffer index (0..N, as defined in the TraceConfig).
1037        #[prost(uint32, optional, tag="4")]
1038        pub buffer: ::core::option::Option<u32>,
1039        /// These two arrays have the same cardinality and match the cardinality of
1040        /// chunk_payload_histogram_def + 1 (for the overflow bucket, see below).
1041        /// `sum` contains the SUM(entries) and `counts` contains the COUNT(entries)
1042        /// for each bucket.
1043        #[prost(uint64, repeated, tag="2")]
1044        pub chunk_payload_histogram_counts: ::prost::alloc::vec::Vec<u64>,
1045        #[prost(int64, repeated, tag="3")]
1046        pub chunk_payload_histogram_sum: ::prost::alloc::vec::Vec<i64>,
1047    }
1048    /// This is set only when the TraceConfig specifies a TraceFilter.
1049    #[derive(Clone, PartialEq, ::prost::Message)]
1050    pub struct FilterStats {
1051        #[prost(uint64, optional, tag="1")]
1052        pub input_packets: ::core::option::Option<u64>,
1053        #[prost(uint64, optional, tag="2")]
1054        pub input_bytes: ::core::option::Option<u64>,
1055        #[prost(uint64, optional, tag="3")]
1056        pub output_bytes: ::core::option::Option<u64>,
1057        #[prost(uint64, optional, tag="4")]
1058        pub errors: ::core::option::Option<u64>,
1059        #[prost(uint64, optional, tag="5")]
1060        pub time_taken_ns: ::core::option::Option<u64>,
1061        /// The number of bytes discarded by the filter (i.e. output - input).
1062        /// The array has one entry for each buffer defined in the config (unless no
1063        /// packets for that buffer were seen and hence filtered).
1064        /// Note: the SUM(bytes_discarded_per_buffer) will be <= but not == the total
1065        /// (output_bytes - input_bytes) because the filter might also discard
1066        /// server-generated synthetic packets, that have no buffer index.
1067        #[prost(uint64, repeated, packed="false", tag="20")]
1068        pub bytes_discarded_per_buffer: ::prost::alloc::vec::Vec<u64>,
1069    }
1070    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1071    #[repr(i32)]
1072    pub enum FinalFlushOutcome {
1073        FinalFlushUnspecified = 0,
1074        FinalFlushSucceeded = 1,
1075        FinalFlushFailed = 2,
1076    }
1077    impl FinalFlushOutcome {
1078        /// String value of the enum field names used in the ProtoBuf definition.
1079        ///
1080        /// The values are not transformed in any way and thus are considered stable
1081        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1082        pub fn as_str_name(&self) -> &'static str {
1083            match self {
1084                FinalFlushOutcome::FinalFlushUnspecified => "FINAL_FLUSH_UNSPECIFIED",
1085                FinalFlushOutcome::FinalFlushSucceeded => "FINAL_FLUSH_SUCCEEDED",
1086                FinalFlushOutcome::FinalFlushFailed => "FINAL_FLUSH_FAILED",
1087            }
1088        }
1089    }
1090}
1091/// Builtin clock domains used in Perfetto traces.
1092///
1093/// The default trace time clock is BUILTIN_CLOCK_TRACE_FILE: a synthetic clock
1094/// representing the trace file's own timeline. Each trace file gets its own
1095/// instance (scoped by trace file index).
1096///
1097/// For backwards compatibility, Perfetto proto traces register BOOTTIME as a
1098/// fallback: if the first timestamp conversion uses a clock other than the
1099/// trace file clock and no explicit clock snapshot data exists, the trace time
1100/// is switched to BOOTTIME. This fallback does not fire for modern traces that
1101/// include ClockSnapshots or that only use the trace file clock directly.
1102///
1103/// The `primary_trace_clock` field in ClockSnapshot can definitively override
1104/// the trace time clock regardless of the above.
1105#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1106#[repr(i32)]
1107pub enum BuiltinClock {
1108    Unknown = 0,
1109    /// Corresponds to CLOCK_REALTIME. See clock_gettime(2).
1110    Realtime = 1,
1111    /// Corresponds to CLOCK_REALTIME_COARSE. See clock_gettime(2).
1112    RealtimeCoarse = 2,
1113    /// Corresponds to CLOCK_MONOTONIC. See clock_gettime(2).
1114    Monotonic = 3,
1115    /// Corresponds to CLOCK_MONOTONIC_COARSE. See clock_gettime(2).
1116    MonotonicCoarse = 4,
1117    /// Corresponds to CLOCK_MONOTONIC_RAW. See clock_gettime(2).
1118    MonotonicRaw = 5,
1119    /// Corresponds to CLOCK_BOOTTIME. See clock_gettime(2).
1120    /// For proto traces, this is used as a backwards-compatible fallback trace
1121    /// time clock when no explicit clock snapshots are present.
1122    Boottime = 6,
1123    /// TSC (Time Stamp Counter). Architecture-specific high-resolution counter.
1124    Tsc = 9,
1125    /// Corresponds to the perf event clock (PERF_CLOCK).
1126    Perf = 10,
1127    /// A synthetic clock representing the trace file's own timeline. Each trace
1128    /// file gets its own instance (scoped by trace file index). This is the
1129    /// default trace time clock before any clock snapshot or format-specific
1130    /// override takes effect.
1131    TraceFile = 11,
1132    MaxId = 63,
1133}
1134impl BuiltinClock {
1135    /// String value of the enum field names used in the ProtoBuf definition.
1136    ///
1137    /// The values are not transformed in any way and thus are considered stable
1138    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1139    pub fn as_str_name(&self) -> &'static str {
1140        match self {
1141            BuiltinClock::Unknown => "BUILTIN_CLOCK_UNKNOWN",
1142            BuiltinClock::Realtime => "BUILTIN_CLOCK_REALTIME",
1143            BuiltinClock::RealtimeCoarse => "BUILTIN_CLOCK_REALTIME_COARSE",
1144            BuiltinClock::Monotonic => "BUILTIN_CLOCK_MONOTONIC",
1145            BuiltinClock::MonotonicCoarse => "BUILTIN_CLOCK_MONOTONIC_COARSE",
1146            BuiltinClock::MonotonicRaw => "BUILTIN_CLOCK_MONOTONIC_RAW",
1147            BuiltinClock::Boottime => "BUILTIN_CLOCK_BOOTTIME",
1148            BuiltinClock::Tsc => "BUILTIN_CLOCK_TSC",
1149            BuiltinClock::Perf => "BUILTIN_CLOCK_PERF",
1150            BuiltinClock::TraceFile => "BUILTIN_CLOCK_TRACE_FILE",
1151            BuiltinClock::MaxId => "BUILTIN_CLOCK_MAX_ID",
1152        }
1153    }
1154}
1155/// Semantic types for string fields. This tells the filter what kind of
1156/// data the field contains, so it can apply the right filtering rules.
1157/// See /rfcs/0011-subset-string-filter-rules.md for design details.
1158/// Introduced in: Perfetto v54.
1159#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1160#[repr(i32)]
1161pub enum SemanticType {
1162    Unspecified = 0,
1163    Atrace = 1,
1164    Job = 2,
1165    Wakelock = 3,
1166}
1167impl SemanticType {
1168    /// String value of the enum field names used in the ProtoBuf definition.
1169    ///
1170    /// The values are not transformed in any way and thus are considered stable
1171    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1172    pub fn as_str_name(&self) -> &'static str {
1173        match self {
1174            SemanticType::Unspecified => "SEMANTIC_TYPE_UNSPECIFIED",
1175            SemanticType::Atrace => "SEMANTIC_TYPE_ATRACE",
1176            SemanticType::Job => "SEMANTIC_TYPE_JOB",
1177            SemanticType::Wakelock => "SEMANTIC_TYPE_WAKELOCK",
1178        }
1179    }
1180}
1181/// Options for the android.aflags data source.
1182/// This data source captures snapshots of Android aconfig flags.
1183/// See <https://source.android.com/docs/setup/build/feature-flagging/declare-flag>
1184/// for more information on aconfig flags.
1185#[derive(Clone, PartialEq, ::prost::Message)]
1186pub struct AndroidAflagsConfig {
1187    /// Frequency of polling. If absent or 0, the state will be recorded once,
1188    /// at the start of the trace.
1189    ///
1190    /// It is recommended to either leave this absent or set it to a large
1191    /// value as each invocation of the `aflags` tool can be time consuming
1192    /// (approx. 350ms) and also triggers an expensive flush. This is required to
1193    /// be > 1000ms if set, to avoid excessive CPU usage.
1194    #[prost(uint32, optional, tag="1")]
1195    pub poll_ms: ::core::option::Option<u32>,
1196}
1197/// Data source that lists game modes and game interventions of games
1198/// on an Android device.
1199#[derive(Clone, PartialEq, ::prost::Message)]
1200pub struct AndroidGameInterventionListConfig {
1201    /// If not empty, emit info about only the following list of package names
1202    /// (exact match, no regex). Otherwise, emit info about all packages.
1203    #[prost(string, repeated, tag="1")]
1204    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1205}
1206/// Custom configuration for the "android.input.inputevent" data source.
1207///
1208/// NOTE: Input traces can only be taken on debuggable (userdebug/eng) builds!
1209///
1210/// Next ID: 6
1211#[derive(Clone, PartialEq, ::prost::Message)]
1212pub struct AndroidInputEventConfig {
1213    /// The tracing mode to use. If unspecified, it will default to
1214    /// TRACE_MODE_USE_RULES.
1215    #[prost(enumeration="android_input_event_config::TraceMode", optional, tag="1")]
1216    pub mode: ::core::option::Option<i32>,
1217    /// The list of rules to use to determine the trace level of events.
1218    /// Each event will be traced using the TraceLevel of the first rule that it
1219    /// triggers from this list. The rules are evaluated in the order in which they
1220    /// are specified. If an event does not match any of the rules,
1221    /// TRACE_LEVEL_NONE will be used by default.
1222    #[prost(message, repeated, tag="2")]
1223    pub rules: ::prost::alloc::vec::Vec<android_input_event_config::TraceRule>,
1224    // --- Control flags ---
1225
1226    /// Trace input events processed by the system as they are being dispatched
1227    /// to application windows. All trace rules will apply.
1228    ///    - If this flag is used without enabling trace_dispatcher_window_dispatch,
1229    ///    it will
1230    ///      trace InputDispatcher's inbound events (which does not include events
1231    ///      synthesized within InputDispatcher) that match the rules.
1232    ///    - If used with trace_dispatcher_window_dispatch, all inbound and outbound
1233    ///    events
1234    ///      matching the rules, including all events synthesized within
1235    ///      InputDispatcher, will be traced.
1236    #[prost(bool, optional, tag="3")]
1237    pub trace_dispatcher_input_events: ::core::option::Option<bool>,
1238    /// Trace details about which windows the system is sending each input event
1239    /// to. All trace rules will apply.
1240    #[prost(bool, optional, tag="4")]
1241    pub trace_dispatcher_window_dispatch: ::core::option::Option<bool>,
1242    /// Trace evdev events received from the kernel, including device additions and
1243    /// removals.
1244    #[prost(bool, optional, tag="5")]
1245    pub trace_evdev_events: ::core::option::Option<bool>,
1246}
1247/// Nested message and enum types in `AndroidInputEventConfig`.
1248pub mod android_input_event_config {
1249    /// A rule that specifies the TraceLevel for an event based on matching
1250    /// conditions. All matchers in the rule are optional. To trigger this rule, an
1251    /// event must match all of its specified matchers (i.e. the matchers function
1252    /// like a series of conditions connected by a logical 'AND' operator). A rule
1253    /// with no specified matchers will match all events. Next ID: 6
1254    #[derive(Clone, PartialEq, ::prost::Message)]
1255    pub struct TraceRule {
1256        /// The trace level to be used for events that trigger this rule.
1257        /// If unspecified, TRACE_LEVEL_NONE will be used by default.
1258        #[prost(enumeration="TraceLevel", optional, tag="1")]
1259        pub trace_level: ::core::option::Option<i32>,
1260        // --- Optional Matchers ---
1261
1262        /// Package matchers
1263        ///
1264        /// Respectively matches if all or any of the target apps for this event are
1265        /// contained in the specified list of package names.
1266        ///
1267        /// Intended usage:
1268        ///    - Use match_all_packages to selectively allow tracing for the listed
1269        ///    packages.
1270        ///    - Use match_any_packages to selectively deny tracing for certain
1271        ///    packages.
1272        ///
1273        /// WARNING: Great care must be taken when designing rules for field tracing!
1274        ///           This is because each event is almost always sent to more than
1275        ///           one app.
1276        ///               For example, when allowing tracing for a package that has a
1277        ///               spy window
1278        ///           over the display (e.g. SystemUI) using match_any_packages,
1279        ///           essentially all input will be recorded on that display. This is
1280        ///           because the events will be sent to the spy as well as the
1281        ///           foreground app, and regardless of what the foreground app is,
1282        ///           the event will end up being traced.
1283        ///               Alternatively, when attempting to block tracing for specific
1284        ///               packages using
1285        ///           match_all_packages, no events will likely be blocked. This is
1286        ///           because the event will also be sent to other apps (such as, but
1287        ///           not limited to, ones with spy windows), so the matcher will not
1288        ///           match unless all other targets are also listed under the
1289        ///           match_all_packages list.
1290        #[prost(string, repeated, tag="2")]
1291        pub match_all_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1292        #[prost(string, repeated, tag="3")]
1293        pub match_any_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1294        /// Matches if the event is secure, which means that at least one of the
1295        /// targets of this event is using the window flag FLAG_SECURE.
1296        #[prost(bool, optional, tag="4")]
1297        pub match_secure: ::core::option::Option<bool>,
1298        /// Matches if there was an active IME connection while this event was being
1299        /// processed.
1300        #[prost(bool, optional, tag="5")]
1301        pub match_ime_connection_active: ::core::option::Option<bool>,
1302    }
1303    /// Trace modes are tracing presets that are included in the system.
1304    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1305    #[repr(i32)]
1306    pub enum TraceMode {
1307        /// Preset mode for maximal tracing.
1308        /// WARNING: This will bypass all privacy measures on debuggable builds, and
1309        /// will record all
1310        ///           input events processed by the system, regardless of the context
1311        ///           in which they were processed. It should only be used for tracing
1312        ///           on a local device or for tests. It should NEVER be used for
1313        ///           field tracing.
1314        TraceAll = 0,
1315        /// Use the tracing rules defined in this config to specify what events to
1316        /// trace.
1317        UseRules = 1,
1318    }
1319    impl TraceMode {
1320        /// String value of the enum field names used in the ProtoBuf definition.
1321        ///
1322        /// The values are not transformed in any way and thus are considered stable
1323        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1324        pub fn as_str_name(&self) -> &'static str {
1325            match self {
1326                TraceMode::TraceAll => "TRACE_MODE_TRACE_ALL",
1327                TraceMode::UseRules => "TRACE_MODE_USE_RULES",
1328            }
1329        }
1330    }
1331    /// The level of tracing that should be applied to an event.
1332    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1333    #[repr(i32)]
1334    pub enum TraceLevel {
1335        /// Do not trace the input event.
1336        None = 0,
1337        /// Trace the event as a redacted event, where certain sensitive fields are
1338        /// omitted from the trace, including the coordinates of pointer events and
1339        /// the key/scan codes of key events.
1340        Redacted = 1,
1341        /// Trace the complete event.
1342        Complete = 2,
1343    }
1344    impl TraceLevel {
1345        /// String value of the enum field names used in the ProtoBuf definition.
1346        ///
1347        /// The values are not transformed in any way and thus are considered stable
1348        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1349        pub fn as_str_name(&self) -> &'static str {
1350            match self {
1351                TraceLevel::None => "TRACE_LEVEL_NONE",
1352                TraceLevel::Redacted => "TRACE_LEVEL_REDACTED",
1353                TraceLevel::Complete => "TRACE_LEVEL_COMPLETE",
1354            }
1355        }
1356    }
1357}
1358/// Values from NDK's android/log.h.
1359#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1360#[repr(i32)]
1361pub enum AndroidLogId {
1362    /// MAIN.
1363    LidDefault = 0,
1364    LidRadio = 1,
1365    LidEvents = 2,
1366    LidSystem = 3,
1367    LidCrash = 4,
1368    LidStats = 5,
1369    LidSecurity = 6,
1370    LidKernel = 7,
1371}
1372impl AndroidLogId {
1373    /// String value of the enum field names used in the ProtoBuf definition.
1374    ///
1375    /// The values are not transformed in any way and thus are considered stable
1376    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1377    pub fn as_str_name(&self) -> &'static str {
1378        match self {
1379            AndroidLogId::LidDefault => "LID_DEFAULT",
1380            AndroidLogId::LidRadio => "LID_RADIO",
1381            AndroidLogId::LidEvents => "LID_EVENTS",
1382            AndroidLogId::LidSystem => "LID_SYSTEM",
1383            AndroidLogId::LidCrash => "LID_CRASH",
1384            AndroidLogId::LidStats => "LID_STATS",
1385            AndroidLogId::LidSecurity => "LID_SECURITY",
1386            AndroidLogId::LidKernel => "LID_KERNEL",
1387        }
1388    }
1389}
1390#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1391#[repr(i32)]
1392pub enum AndroidLogPriority {
1393    PrioUnspecified = 0,
1394    /// _DEFAULT, but should never be seen in logs.
1395    PrioUnused = 1,
1396    PrioVerbose = 2,
1397    PrioDebug = 3,
1398    PrioInfo = 4,
1399    PrioWarn = 5,
1400    PrioError = 6,
1401    PrioFatal = 7,
1402}
1403impl AndroidLogPriority {
1404    /// String value of the enum field names used in the ProtoBuf definition.
1405    ///
1406    /// The values are not transformed in any way and thus are considered stable
1407    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1408    pub fn as_str_name(&self) -> &'static str {
1409        match self {
1410            AndroidLogPriority::PrioUnspecified => "PRIO_UNSPECIFIED",
1411            AndroidLogPriority::PrioUnused => "PRIO_UNUSED",
1412            AndroidLogPriority::PrioVerbose => "PRIO_VERBOSE",
1413            AndroidLogPriority::PrioDebug => "PRIO_DEBUG",
1414            AndroidLogPriority::PrioInfo => "PRIO_INFO",
1415            AndroidLogPriority::PrioWarn => "PRIO_WARN",
1416            AndroidLogPriority::PrioError => "PRIO_ERROR",
1417            AndroidLogPriority::PrioFatal => "PRIO_FATAL",
1418        }
1419    }
1420}
1421#[derive(Clone, PartialEq, ::prost::Message)]
1422pub struct AndroidLogConfig {
1423    #[prost(enumeration="AndroidLogId", repeated, packed="false", tag="1")]
1424    pub log_ids: ::prost::alloc::vec::Vec<i32>,
1425    /// If set ignores all log messages whose prio is < the given value.
1426    #[prost(enumeration="AndroidLogPriority", optional, tag="3")]
1427    pub min_prio: ::core::option::Option<i32>,
1428    /// If non-empty ignores all log messages whose tag doesn't match one of the
1429    /// specified values.
1430    #[prost(string, repeated, tag="4")]
1431    pub filter_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1432    /// If true, includes the contents of the logcat buffers that were already
1433    /// present before the data source started. By default (false), only new
1434    /// log entries produced after the data source starts are recorded.
1435    /// Can be useful for boot traces or situations where logs from before
1436    /// traced started are important.
1437    #[prost(bool, optional, tag="5")]
1438    pub preserve_log_buffer: ::core::option::Option<bool>,
1439}
1440/// Data source that polls for display state. This should only be used for
1441/// backward-compatibility; AndroidSystemPropertyConfig should be preferred.
1442#[derive(Clone, PartialEq, ::prost::Message)]
1443pub struct AndroidPolledStateConfig {
1444    /// Frequency of polling. If absent the state will be recorded once, at the
1445    /// start of the trace.
1446    /// This is required to be > 100ms to avoid excessive CPU usage.
1447    #[prost(uint32, optional, tag="1")]
1448    pub poll_ms: ::core::option::Option<u32>,
1449}
1450/// Data source that polls for system properties.
1451#[derive(Clone, PartialEq, ::prost::Message)]
1452pub struct AndroidSystemPropertyConfig {
1453    /// Frequency of polling. If absent the state will be recorded once, at the
1454    /// start of the trace.
1455    /// This is required to be > 100ms to avoid excessive CPU usage.
1456    #[prost(uint32, optional, tag="1")]
1457    pub poll_ms: ::core::option::Option<u32>,
1458    /// Properties to poll. All property names must start with "debug.tracing.".
1459    #[prost(string, repeated, tag="2")]
1460    pub property_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1461}
1462/// Data source that controls the system properties used to guard initialization
1463/// of track_event producers (i.e. Skia) in apps using HWUI, and certain
1464/// processes like SurfaceFlinger.
1465///
1466/// This data source only tells Skia to initialized the Perfetto SDK and start
1467/// routing data to the Track Event system instead of ATrace. For those events
1468/// to actually show up in a trace, the track_event data source must be used as
1469/// well. The Perfetto SDK cannot be de-initialized, so some long-lived apps and
1470/// processes may need to be restarted for Skia to revert to using ATrace if
1471/// Track Events are no longer desired.
1472///
1473/// In addition to switching Skia to use Perfetto's track_event data source,
1474/// this "guard" also controls Skia's "broad tracing", which removes Skia's
1475/// internal tracing constraints and allows the track_event config to specify
1476/// which categories should be traced. Filtering to the "skia.always" category
1477/// *tag* in a track_event config can be used to re-enable the standard
1478/// constraints typically used with ATrace.
1479///
1480/// Data source name: android.sdk_sysprop_guard
1481/// Introduced in Android 14 (U) QPR1.
1482/// Next id: 4
1483#[derive(Clone, PartialEq, ::prost::Message)]
1484pub struct AndroidSdkSyspropGuardConfig {
1485    /// If true, configures SurfaceFlinger to initialize Skia's Perfetto
1486    /// integration with the track_event data source in RenderEngine.
1487    /// If false or omitted, the simpler ATrace fallback is used.
1488    ///
1489    /// NOTE: once enabled, Skia will only revert to ATrace if SurfaceFlinger is
1490    /// restarted.
1491    ///
1492    /// Specifically this sets the following system properties:
1493    ///    - debug.tracing.ctl.renderengine.skia_tracing_enabled
1494    ///    - debug.tracing.ctl.renderengine.skia_use_perfetto_track_events
1495    ///
1496    /// Does not affect actual track_event data *collection*, which must be
1497    /// configured separately.
1498    #[prost(bool, optional, tag="1")]
1499    pub surfaceflinger_skia_track_events: ::core::option::Option<bool>,
1500    /// If true, configures HWUI apps to initialize Skia's Perfetto integration
1501    /// with the track_event data source. hwui_package_name_filter
1502    /// can be used to control which apps are affected.
1503    /// If false or omitted, the simpler ATrace fallback is used.
1504    ///
1505    /// NOTE: once enabled, Skia will only revert to ATrace if the app is
1506    /// restarted.
1507    ///
1508    /// ATTENTION: affects ALL HWUI APPS if hwui_package_name_filter is not set!
1509    /// If filtering is NOT set, this controls these GLOBAL system properties:
1510    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled
1511    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events
1512    /// If filtering IS set, this controls these APP-SPECIFIC system properties,
1513    /// for each package listed in the filter:
1514    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled.<package.name>
1515    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events.<package.name>
1516    ///
1517    /// Does not affect actual track_event data *collection*, which must be
1518    /// configured separately.
1519    #[prost(bool, optional, tag="2")]
1520    pub hwui_skia_track_events: ::core::option::Option<bool>,
1521    /// If non-empty, hwui_skia_track_events applies to only the packages listed.
1522    /// Otherwise, hwui_skia_track_events applies globally to all HWUI apps.
1523    #[prost(string, repeated, tag="3")]
1524    pub hwui_package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1525}
1526/// Configuration for the android.app_wakelocks data source.
1527#[derive(Clone, PartialEq, ::prost::Message)]
1528pub struct AppWakelocksConfig {
1529    /// Specifies the delay (in milliseconds) after which the data source will
1530    /// attempt to write events. Writing less frequently reduces the trace size by
1531    /// making better use of the packed arrays and reducing the total number of
1532    /// TracePackets needed (which each have dozens of bytes of overhead). The
1533    /// suggested delay is 5000ms.
1534    #[prost(int32, optional, tag="1")]
1535    pub write_delay_ms: ::core::option::Option<i32>,
1536    /// When set, wakelocks held for less than this amount of time are filtered
1537    /// from the resulting trace. Note: duration is computed by matching wakelocks
1538    /// with identical attributes, not by tracking the underlying objects. The
1539    /// threshold should be < the trace's flush_period_ms.
1540    #[prost(int32, optional, tag="2")]
1541    pub filter_duration_below_ms: ::core::option::Option<i32>,
1542    /// When true, the owner_pid is dropped from the resulting output, reducing the
1543    /// size of the interning tables.
1544    #[prost(bool, optional, tag="3")]
1545    pub drop_owner_pid: ::core::option::Option<bool>,
1546}
1547/// Data source that records CPU per UID data.
1548#[derive(Clone, PartialEq, ::prost::Message)]
1549pub struct CpuPerUidConfig {
1550    /// Record at this frequency.
1551    #[prost(uint32, optional, tag="1")]
1552    pub poll_ms: ::core::option::Option<u32>,
1553}
1554/// Custom configuration for the "android.inputmethod" data source.
1555#[derive(Clone, PartialEq, ::prost::Message)]
1556pub struct InputMethodConfig {
1557    /// If true, enables tracing in the clients.
1558    #[prost(bool, optional, tag="1")]
1559    pub client: ::core::option::Option<bool>,
1560    /// If true, enables tracing in InputMethodService.
1561    #[prost(bool, optional, tag="2")]
1562    pub service: ::core::option::Option<bool>,
1563    /// If true, enables tracing in InputMethodManagerService.
1564    #[prost(bool, optional, tag="3")]
1565    pub manager_service: ::core::option::Option<bool>,
1566}
1567/// Data source that records kernel (and native) wakelock data.
1568#[derive(Clone, PartialEq, ::prost::Message)]
1569pub struct KernelWakelocksConfig {
1570    /// Record at this frequency.
1571    #[prost(uint32, optional, tag="1")]
1572    pub poll_ms: ::core::option::Option<u32>,
1573}
1574/// Network tracing data source that records details on all packets sent or
1575/// received by the network.
1576#[derive(Clone, PartialEq, ::prost::Message)]
1577pub struct NetworkPacketTraceConfig {
1578    /// Polling frequency in milliseconds. Network tracing writes to a fixed size
1579    /// ring buffer. The polling interval should be such that the ring buffer is
1580    /// unlikely to fill in that interval (or that filling is an acceptable risk).
1581    /// The minimum polling rate is 100ms (values below this are ignored).
1582    /// Introduced in Android 14 (U).
1583    #[prost(uint32, optional, tag="1")]
1584    pub poll_ms: ::core::option::Option<u32>,
1585    /// The aggregation_threshold is the number of packets at which an event will
1586    /// switch from per-packet details to aggregate details. For example, a value
1587    /// of 50 means that if a particular event (grouped by the unique combinations
1588    /// of metadata fields: {interface, direction, uid, etc}) has fewer than 50
1589    /// packets, the exact timestamp and length are recorded for each packet. If
1590    /// there were 50 or more packets in an event, it would only record the total
1591    /// duration, packets, and length. A value of zero or unspecified will always
1592    /// / record per-packet details. A value of 1 always records aggregate details.
1593    #[prost(uint32, optional, tag="2")]
1594    pub aggregation_threshold: ::core::option::Option<u32>,
1595    /// Specifies the maximum number of packet contexts to intern at a time. This
1596    /// prevents the interning table from growing too large and controls whether
1597    /// interning is enabled or disabled (a value of zero disables interning and
1598    /// is the default). When a data sources interning table reaches this amount,
1599    /// packet contexts will be inlined into NetworkPacketEvents.
1600    #[prost(uint32, optional, tag="3")]
1601    pub intern_limit: ::core::option::Option<u32>,
1602    /// The following fields specify whether certain fields should be dropped from
1603    /// the output. Dropping fields improves normalization results, reduces the
1604    /// size of the interning table, and slightly reduces event size.
1605    #[prost(bool, optional, tag="4")]
1606    pub drop_local_port: ::core::option::Option<bool>,
1607    #[prost(bool, optional, tag="5")]
1608    pub drop_remote_port: ::core::option::Option<bool>,
1609    #[prost(bool, optional, tag="6")]
1610    pub drop_tcp_flags: ::core::option::Option<bool>,
1611}
1612/// Data source that lists details (such as version code) about packages on an
1613/// Android device.
1614#[derive(Clone, PartialEq, ::prost::Message)]
1615pub struct PackagesListConfig {
1616    /// If not empty, emit info about only the following list of package names
1617    /// (exact match, no regex). Can be combined with
1618    /// |package_name_regex_filter|: a package is included if it matches either
1619    /// filter. If both filters are empty, emit info about all packages.
1620    #[prost(string, repeated, tag="1")]
1621    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1622    /// If not empty, emit info about only the packages whose names match any of
1623    /// the following regexes (full match, not partial). Can be combined with
1624    /// |package_name_filter|: a package is included if it matches either filter.
1625    /// If both filters are empty, emit info about all packages.
1626    /// This field was introduced in Android 26Q2 (Perfetto v55).
1627    #[prost(string, repeated, tag="3")]
1628    pub package_name_regex_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1629    /// If present and non-zero, the data source will periodically poll for CPU
1630    /// use by packages and only emit results for those that it sees. If absent,
1631    /// the data source will emit results for all packages at startup. The package
1632    /// name filters apply either way.
1633    #[prost(uint32, optional, tag="2")]
1634    pub only_write_on_cpu_use_every_ms: ::core::option::Option<u32>,
1635}
1636/// Data source that records events from the modem.
1637#[derive(Clone, PartialEq, ::prost::Message)]
1638pub struct PixelModemConfig {
1639    #[prost(enumeration="pixel_modem_config::EventGroup", optional, tag="1")]
1640    pub event_group: ::core::option::Option<i32>,
1641    /// If set, record only events with these hashes.
1642    #[prost(int64, repeated, packed="false", tag="2")]
1643    pub pigweed_hash_allow_list: ::prost::alloc::vec::Vec<i64>,
1644    /// If set and allow_list is not set, deny events with these hashes.
1645    #[prost(int64, repeated, packed="false", tag="3")]
1646    pub pigweed_hash_deny_list: ::prost::alloc::vec::Vec<i64>,
1647}
1648/// Nested message and enum types in `PixelModemConfig`.
1649pub mod pixel_modem_config {
1650    /// Event group to record, as defined by the modem.
1651    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1652    #[repr(i32)]
1653    pub enum EventGroup {
1654        Unknown = 0,
1655        /// Events suitable for low bandwidth tracing only.
1656        LowBandwidth = 1,
1657        /// Events suitable for high and low bandwidth tracing.
1658        HighAndLowBandwidth = 2,
1659    }
1660    impl EventGroup {
1661        /// String value of the enum field names used in the ProtoBuf definition.
1662        ///
1663        /// The values are not transformed in any way and thus are considered stable
1664        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1665        pub fn as_str_name(&self) -> &'static str {
1666            match self {
1667                EventGroup::Unknown => "EVENT_GROUP_UNKNOWN",
1668                EventGroup::LowBandwidth => "EVENT_GROUP_LOW_BANDWIDTH",
1669                EventGroup::HighAndLowBandwidth => "EVENT_GROUP_HIGH_AND_LOW_BANDWIDTH",
1670            }
1671        }
1672    }
1673}
1674#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1675#[repr(i32)]
1676pub enum ProtoLogLevel {
1677    ProtologLevelUndefined = 0,
1678    ProtologLevelDebug = 1,
1679    ProtologLevelVerbose = 2,
1680    ProtologLevelInfo = 3,
1681    ProtologLevelWarn = 4,
1682    ProtologLevelError = 5,
1683    ProtologLevelWtf = 6,
1684}
1685impl ProtoLogLevel {
1686    /// String value of the enum field names used in the ProtoBuf definition.
1687    ///
1688    /// The values are not transformed in any way and thus are considered stable
1689    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1690    pub fn as_str_name(&self) -> &'static str {
1691        match self {
1692            ProtoLogLevel::ProtologLevelUndefined => "PROTOLOG_LEVEL_UNDEFINED",
1693            ProtoLogLevel::ProtologLevelDebug => "PROTOLOG_LEVEL_DEBUG",
1694            ProtoLogLevel::ProtologLevelVerbose => "PROTOLOG_LEVEL_VERBOSE",
1695            ProtoLogLevel::ProtologLevelInfo => "PROTOLOG_LEVEL_INFO",
1696            ProtoLogLevel::ProtologLevelWarn => "PROTOLOG_LEVEL_WARN",
1697            ProtoLogLevel::ProtologLevelError => "PROTOLOG_LEVEL_ERROR",
1698            ProtoLogLevel::ProtologLevelWtf => "PROTOLOG_LEVEL_WTF",
1699        }
1700    }
1701}
1702/// Custom configuration for the "android.protolog" data source.
1703/// ProtoLog is a logging mechanism that is intented to be more efficient than
1704/// logcat. This configures what logs to capture in the tracing instance.
1705#[derive(Clone, PartialEq, ::prost::Message)]
1706pub struct ProtoLogConfig {
1707    /// Specified the configurations for each of the logging groups. If none is
1708    /// specified for a group the defaults will be used.
1709    #[prost(message, repeated, tag="1")]
1710    pub group_overrides: ::prost::alloc::vec::Vec<ProtoLogGroup>,
1711    /// Specified what tracing mode to use for the tracing instance.
1712    #[prost(enumeration="proto_log_config::TracingMode", optional, tag="2")]
1713    pub tracing_mode: ::core::option::Option<i32>,
1714    /// If set, any message with log level higher than this level (inclusive) will
1715    /// be traced. Group overrides take precedence over this value.
1716    #[prost(enumeration="ProtoLogLevel", optional, tag="3")]
1717    pub default_log_from_level: ::core::option::Option<i32>,
1718}
1719/// Nested message and enum types in `ProtoLogConfig`.
1720pub mod proto_log_config {
1721    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1722    #[repr(i32)]
1723    pub enum TracingMode {
1724        /// When using the DEFAULT tracing mode, only log groups and levels specified
1725        /// in the group_overrides are traced.
1726        Default = 0,
1727        /// When using the ENABLE_ALL tracing mode, all log groups and levels are
1728        /// traced, unless specified in the group_overrides.
1729        EnableAll = 1,
1730    }
1731    impl TracingMode {
1732        /// String value of the enum field names used in the ProtoBuf definition.
1733        ///
1734        /// The values are not transformed in any way and thus are considered stable
1735        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1736        pub fn as_str_name(&self) -> &'static str {
1737            match self {
1738                TracingMode::Default => "DEFAULT",
1739                TracingMode::EnableAll => "ENABLE_ALL",
1740            }
1741        }
1742    }
1743}
1744#[derive(Clone, PartialEq, ::prost::Message)]
1745pub struct ProtoLogGroup {
1746    /// The ProtoLog group name this configuration entry applies to.
1747    #[prost(string, optional, tag="1")]
1748    pub group_name: ::core::option::Option<::prost::alloc::string::String>,
1749    /// Specify the level from which to start capturing protologs.
1750    /// e.g. if ProtoLogLevel.WARN is specified only warning, errors and fatal log
1751    /// message will be traced.
1752    #[prost(enumeration="ProtoLogLevel", optional, tag="2")]
1753    pub log_from: ::core::option::Option<i32>,
1754    /// When set to true we will collect the stacktrace for each protolog message
1755    /// in this group that we are tracing.
1756    #[prost(bool, optional, tag="3")]
1757    pub collect_stacktrace: ::core::option::Option<bool>,
1758}
1759/// Custom configuration for the "android.surfaceflinger.layers" data source.
1760#[derive(Clone, PartialEq, ::prost::Message)]
1761pub struct SurfaceFlingerLayersConfig {
1762    #[prost(enumeration="surface_flinger_layers_config::Mode", optional, tag="1")]
1763    pub mode: ::core::option::Option<i32>,
1764    #[prost(enumeration="surface_flinger_layers_config::TraceFlag", repeated, packed="false", tag="2")]
1765    pub trace_flags: ::prost::alloc::vec::Vec<i32>,
1766}
1767/// Nested message and enum types in `SurfaceFlingerLayersConfig`.
1768pub mod surface_flinger_layers_config {
1769    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1770    #[repr(i32)]
1771    pub enum Mode {
1772        Unspecified = 0,
1773        /// Trace layers snapshots. A snapshot is taken every time a layers change
1774        /// occurs.
1775        Active = 1,
1776        /// Generate layers snapshots from the transactions kept in the
1777        /// SurfaceFlinger's internal ring buffer.
1778        /// The layers snapshots generation occurs when this data source is flushed.
1779        Generated = 2,
1780        /// Trace a single layers snapshot.
1781        Dump = 3,
1782        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1783        /// Same as MODE_GENERATED, but triggers the layers snapshots generation only
1784        /// when a bugreport is taken.
1785        GeneratedBugreportOnly = 4,
1786        /// Layer snapshots are generated by ProtoVM from layer patches
1787        Protovm = 5,
1788    }
1789    impl Mode {
1790        /// String value of the enum field names used in the ProtoBuf definition.
1791        ///
1792        /// The values are not transformed in any way and thus are considered stable
1793        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1794        pub fn as_str_name(&self) -> &'static str {
1795            match self {
1796                Mode::Unspecified => "MODE_UNSPECIFIED",
1797                Mode::Active => "MODE_ACTIVE",
1798                Mode::Generated => "MODE_GENERATED",
1799                Mode::Dump => "MODE_DUMP",
1800                Mode::GeneratedBugreportOnly => "MODE_GENERATED_BUGREPORT_ONLY",
1801                Mode::Protovm => "MODE_PROTOVM",
1802            }
1803        }
1804    }
1805    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1806    #[repr(i32)]
1807    pub enum TraceFlag {
1808        Unspecified = 0,
1809        Input = 2,
1810        Composition = 4,
1811        Extra = 8,
1812        Hwc = 16,
1813        Buffers = 32,
1814        VirtualDisplays = 64,
1815        /// INPUT | COMPOSITION | EXTRA
1816        All = 14,
1817    }
1818    impl TraceFlag {
1819        /// String value of the enum field names used in the ProtoBuf definition.
1820        ///
1821        /// The values are not transformed in any way and thus are considered stable
1822        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1823        pub fn as_str_name(&self) -> &'static str {
1824            match self {
1825                TraceFlag::Unspecified => "TRACE_FLAG_UNSPECIFIED",
1826                TraceFlag::Input => "TRACE_FLAG_INPUT",
1827                TraceFlag::Composition => "TRACE_FLAG_COMPOSITION",
1828                TraceFlag::Extra => "TRACE_FLAG_EXTRA",
1829                TraceFlag::Hwc => "TRACE_FLAG_HWC",
1830                TraceFlag::Buffers => "TRACE_FLAG_BUFFERS",
1831                TraceFlag::VirtualDisplays => "TRACE_FLAG_VIRTUAL_DISPLAYS",
1832                TraceFlag::All => "TRACE_FLAG_ALL",
1833            }
1834        }
1835    }
1836}
1837/// Custom configuration for the "android.surfaceflinger.transactions" data
1838/// source.
1839#[derive(Clone, PartialEq, ::prost::Message)]
1840pub struct SurfaceFlingerTransactionsConfig {
1841    #[prost(enumeration="surface_flinger_transactions_config::Mode", optional, tag="1")]
1842    pub mode: ::core::option::Option<i32>,
1843}
1844/// Nested message and enum types in `SurfaceFlingerTransactionsConfig`.
1845pub mod surface_flinger_transactions_config {
1846    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1847    #[repr(i32)]
1848    pub enum Mode {
1849        Unspecified = 0,
1850        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1851        /// SurfaceFlinger writes its internal ring buffer of transactions every time
1852        /// the data source is flushed. The ring buffer contains the SurfaceFlinger's
1853        /// initial state and the latest transactions.
1854        Continuous = 1,
1855        /// SurfaceFlinger writes the initial state and then each incoming
1856        /// transaction until the data source is stopped.
1857        Active = 2,
1858    }
1859    impl Mode {
1860        /// String value of the enum field names used in the ProtoBuf definition.
1861        ///
1862        /// The values are not transformed in any way and thus are considered stable
1863        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1864        pub fn as_str_name(&self) -> &'static str {
1865            match self {
1866                Mode::Unspecified => "MODE_UNSPECIFIED",
1867                Mode::Continuous => "MODE_CONTINUOUS",
1868                Mode::Active => "MODE_ACTIVE",
1869            }
1870        }
1871    }
1872}
1873/// Data source that lists details (such as version code) about users on an
1874/// Android device.
1875#[derive(Clone, PartialEq, ::prost::Message)]
1876pub struct AndroidUserListConfig {
1877    /// An allowlist of user type strings, used to control the granularity of
1878    /// user type information emitted in the trace. Exact, case-sensitive string
1879    /// matching is used.
1880    ///
1881    /// Any user type read from the device that is NOT present in the
1882    /// effective allowlist will have its type reported as
1883    /// "android.os.usertype.FILTERED".
1884    ///
1885    /// The effective allowlist is determined as follows:
1886    ///
1887    /// 1. If this 'user_type_filter' field is provided and non-empty:
1888    ///     This list itself is the effective allowlist.
1889    ///     Example TraceConfig:
1890    ///     --------------------
1891    ///     data_sources {
1892    ///         config {
1893    ///             name: "android.user_list"
1894    ///             target_buffer: 0
1895    ///             user_list_config {
1896    ///               # Only report these specific types, others become FILTERED.
1897    ///               user_type_filter: "android.os.usertype.full.SYSTEM"
1898    ///               user_type_filter: "android.os.usertype.system.HEADLESS"
1899    ///             }
1900    ///         }
1901    ///     }
1902    ///
1903    ///
1904    /// Note: This field does not support regular expressions.
1905    #[prost(string, repeated, tag="1")]
1906    pub user_type_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1907}
1908/// Custom configuration for the "android.windowmanager" data source.
1909#[derive(Clone, PartialEq, ::prost::Message)]
1910pub struct WindowManagerConfig {
1911    #[prost(enumeration="window_manager_config::LogFrequency", optional, tag="1")]
1912    pub log_frequency: ::core::option::Option<i32>,
1913    #[prost(enumeration="window_manager_config::LogLevel", optional, tag="2")]
1914    pub log_level: ::core::option::Option<i32>,
1915    #[prost(enumeration="window_manager_config::LogMode", optional, tag="3")]
1916    pub log_mode: ::core::option::Option<i32>,
1917}
1918/// Nested message and enum types in `WindowManagerConfig`.
1919pub mod window_manager_config {
1920    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1921    #[repr(i32)]
1922    pub enum LogFrequency {
1923        Unspecified = 0,
1924        /// Trace state snapshots when a frame is committed.
1925        Frame = 1,
1926        /// Trace state snapshots every time a transaction is committed.
1927        Transaction = 2,
1928        /// Trace single state snapshots when the data source is started.
1929        SingleDump = 3,
1930    }
1931    impl LogFrequency {
1932        /// String value of the enum field names used in the ProtoBuf definition.
1933        ///
1934        /// The values are not transformed in any way and thus are considered stable
1935        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1936        pub fn as_str_name(&self) -> &'static str {
1937            match self {
1938                LogFrequency::Unspecified => "LOG_FREQUENCY_UNSPECIFIED",
1939                LogFrequency::Frame => "LOG_FREQUENCY_FRAME",
1940                LogFrequency::Transaction => "LOG_FREQUENCY_TRANSACTION",
1941                LogFrequency::SingleDump => "LOG_FREQUENCY_SINGLE_DUMP",
1942            }
1943        }
1944    }
1945    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1946    #[repr(i32)]
1947    pub enum LogLevel {
1948        Unspecified = 0,
1949        /// Logs all elements with maximum amount of information.
1950        Verbose = 1,
1951        /// Logs all elements but doesn't write all configuration data.
1952        Debug = 2,
1953        /// Logs only visible elements, with the minimum amount of performance
1954        /// overhead
1955        Critical = 3,
1956    }
1957    impl LogLevel {
1958        /// String value of the enum field names used in the ProtoBuf definition.
1959        ///
1960        /// The values are not transformed in any way and thus are considered stable
1961        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1962        pub fn as_str_name(&self) -> &'static str {
1963            match self {
1964                LogLevel::Unspecified => "LOG_LEVEL_UNSPECIFIED",
1965                LogLevel::Verbose => "LOG_LEVEL_VERBOSE",
1966                LogLevel::Debug => "LOG_LEVEL_DEBUG",
1967                LogLevel::Critical => "LOG_LEVEL_CRITICAL",
1968            }
1969        }
1970    }
1971    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1972    #[repr(i32)]
1973    pub enum LogMode {
1974        Unspecified = 0,
1975        /// Always logs a full state dump of the window hierarchy.
1976        FullState = 1,
1977        /// Logs a full state dump of the window hierarchy only when tracing starts.
1978        /// The following trace packets are lightweight patches containing only the
1979        /// last changes.
1980        Incremental = 2,
1981    }
1982    impl LogMode {
1983        /// String value of the enum field names used in the ProtoBuf definition.
1984        ///
1985        /// The values are not transformed in any way and thus are considered stable
1986        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1987        pub fn as_str_name(&self) -> &'static str {
1988            match self {
1989                LogMode::Unspecified => "LOG_MODE_UNSPECIFIED",
1990                LogMode::FullState => "LOG_MODE_FULL_STATE",
1991                LogMode::Incremental => "LOG_MODE_INCREMENTAL",
1992            }
1993        }
1994    }
1995}
1996#[derive(Clone, PartialEq, ::prost::Message)]
1997pub struct ChromeConfig {
1998    #[prost(string, optional, tag="1")]
1999    pub trace_config: ::core::option::Option<::prost::alloc::string::String>,
2000    /// When enabled, the data source should only fill in fields in the output that
2001    /// are not potentially privacy sensitive.
2002    #[prost(bool, optional, tag="2")]
2003    pub privacy_filtering_enabled: ::core::option::Option<bool>,
2004    /// Instead of emitting binary protobuf, convert the trace data to the legacy
2005    /// JSON format. Note that the trace data will still be returned as a series of
2006    /// TracePackets, but the embedded data will be JSON instead of serialized
2007    /// protobuf.
2008    #[prost(bool, optional, tag="3")]
2009    pub convert_to_legacy_json: ::core::option::Option<bool>,
2010    #[prost(enumeration="chrome_config::ClientPriority", optional, tag="4")]
2011    pub client_priority: ::core::option::Option<i32>,
2012    /// Applicable only when using legacy JSON format.
2013    /// If |json_agent_label_filter| is not empty, only data pertaining to
2014    /// the specified tracing agent label (e.g. "traceEvents") will be returned.
2015    #[prost(string, optional, tag="5")]
2016    pub json_agent_label_filter: ::core::option::Option<::prost::alloc::string::String>,
2017    ///   When enabled, event names should not contain package names.
2018    #[prost(bool, optional, tag="6")]
2019    pub event_package_name_filter_enabled: ::core::option::Option<bool>,
2020}
2021/// Nested message and enum types in `ChromeConfig`.
2022pub mod chrome_config {
2023    /// Priority of the tracing session client. A higher priority session may
2024    /// preempt a lower priority one in configurations where concurrent sessions
2025    /// aren't supported.
2026    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2027    #[repr(i32)]
2028    pub enum ClientPriority {
2029        Unknown = 0,
2030        Background = 1,
2031        UserInitiated = 2,
2032    }
2033    impl ClientPriority {
2034        /// String value of the enum field names used in the ProtoBuf definition.
2035        ///
2036        /// The values are not transformed in any way and thus are considered stable
2037        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2038        pub fn as_str_name(&self) -> &'static str {
2039            match self {
2040                ClientPriority::Unknown => "UNKNOWN",
2041                ClientPriority::Background => "BACKGROUND",
2042                ClientPriority::UserInitiated => "USER_INITIATED",
2043            }
2044        }
2045    }
2046}
2047#[derive(Clone, PartialEq, ::prost::Message)]
2048pub struct V8Config {
2049    /// Whether to log the actual content of scripts (e.g. content of the JS file
2050    /// that was compiled to generate code).
2051    /// ATTENTION: This could considerably increase the size of the resuling trace
2052    ///             file.
2053    #[prost(bool, optional, tag="1")]
2054    pub log_script_sources: ::core::option::Option<bool>,
2055    /// Whether to log the generated code for jitted functions (machine code or
2056    /// bytecode).
2057    /// ATTENTION: This could considerably increase the size of the resuling trace
2058    ///             file.
2059    #[prost(bool, optional, tag="2")]
2060    pub log_instructions: ::core::option::Option<bool>,
2061}
2062/// Proto definition based on the struct _EVENT_TRACE_PROPERTIES definition
2063/// See: <https://learn.microsoft.com/en-us/windows/win32/api/evntrace/>
2064/// ns-evntrace-event_trace_properties
2065#[derive(Clone, PartialEq, ::prost::Message)]
2066pub struct EtwConfig {
2067    /// The kernel_flags determines the flags that will be used by the etw tracing
2068    /// session. These kernel flags have been built to expose the useful events
2069    /// captured from the kernel mode only.
2070    #[prost(enumeration="etw_config::KernelFlag", repeated, packed="false", tag="1")]
2071    pub kernel_flags: ::prost::alloc::vec::Vec<i32>,
2072    // See the list of keywords for for individual providers.
2073    // <https://learn.microsoft.com/en-us/windows/win32/etw/system-providers>
2074
2075    /// Provides events relating to the scheduler.
2076    #[prost(string, repeated, tag="2")]
2077    pub scheduler_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2078    /// Provides events relating to the memory manager.
2079    #[prost(string, repeated, tag="3")]
2080    pub memory_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2081    /// Provides events relating to file I/O.
2082    #[prost(string, repeated, tag="4")]
2083    pub file_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2084    /// Events for which stacks should be collected.
2085    #[prost(string, repeated, tag="5")]
2086    pub stack_sampling_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2087    /// Provides events relating to disk I/O.
2088    #[prost(string, repeated, tag="6")]
2089    pub disk_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2090}
2091/// Nested message and enum types in `EtwConfig`.
2092pub mod etw_config {
2093    /// The KernelFlag represent list of kernel flags that we are intrested in.
2094    /// To get a more extensive list run 'xperf -providers k'.
2095    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2096    #[repr(i32)]
2097    pub enum KernelFlag {
2098        Cswitch = 0,
2099        Dispatcher = 1,
2100    }
2101    impl KernelFlag {
2102        /// String value of the enum field names used in the ProtoBuf definition.
2103        ///
2104        /// The values are not transformed in any way and thus are considered stable
2105        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2106        pub fn as_str_name(&self) -> &'static str {
2107            match self {
2108                KernelFlag::Cswitch => "CSWITCH",
2109                KernelFlag::Dispatcher => "DISPATCHER",
2110            }
2111        }
2112    }
2113}
2114#[derive(Clone, PartialEq, ::prost::Message)]
2115pub struct ChromiumSystemMetricsConfig {
2116    /// Samples counters every X ms.
2117    #[prost(uint32, optional, tag="1")]
2118    pub sampling_interval_ms: ::core::option::Option<u32>,
2119}
2120/// Next id: 38
2121#[derive(Clone, PartialEq, ::prost::Message)]
2122pub struct FtraceConfig {
2123    /// Ftrace events to record, example: "sched/sched_switch".
2124    #[prost(string, repeated, tag="1")]
2125    pub ftrace_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2126    /// Android-specific event categories:
2127    #[prost(string, repeated, tag="2")]
2128    pub atrace_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2129    #[prost(string, repeated, tag="3")]
2130    pub atrace_apps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2131    /// Some processes can emit data through atrace or through the perfetto SDK via
2132    /// the "track_event" data source. For these categories, the SDK will be
2133    /// preferred, if possible, for this config.
2134    #[prost(string, repeated, tag="28")]
2135    pub atrace_categories_prefer_sdk: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2136    /// If true, do *not* add in extra ftrace events when |atrace_categories| are
2137    /// set. This skips the legacy "atrace" behaviour of adding hardcoded ftrace
2138    /// events for convenience (and the vendor-specific events on top).
2139    /// Introduced in: perfetto v52.
2140    #[prost(bool, optional, tag="34")]
2141    pub atrace_userspace_only: ::core::option::Option<bool>,
2142    /// Size of each per-cpu kernel ftrace ring buffer.
2143    /// Not guaranteed if there are multiple concurrent tracing sessions, as the
2144    /// buffers cannot be resized without pausing recording in the kernel.
2145    #[prost(uint32, optional, tag="10")]
2146    pub buffer_size_kb: ::core::option::Option<u32>,
2147    /// If true, |buffer_size_kb| is interpreted as a lower bound, allowing the
2148    /// implementation to choose a bigger buffer size.
2149    ///
2150    /// Most configs for perfetto v43+ should simply leave both fields unset.
2151    ///
2152    /// If you need a config compatible with a range of perfetto builds and you
2153    /// used to set a non-default buffer_size_kb, consider setting both fields.
2154    /// Example:
2155    ///    buffer_size_kb: 4096
2156    ///    buffer_size_lower_bound: true
2157    /// On older builds, the per-cpu buffers will be exactly 4 MB.
2158    /// On v43+, buffers will be at least 4 MB.
2159    /// In both cases, neither is guaranteed if there are other concurrent
2160    /// perfetto ftrace sessions, as the buffers cannot be resized without pausing
2161    /// the recording in the kernel.
2162    /// Introduced in: perfetto v43.
2163    #[prost(bool, optional, tag="27")]
2164    pub buffer_size_lower_bound: ::core::option::Option<bool>,
2165    /// If set, specifies how often the tracing daemon reads from the kernel ring
2166    /// buffer. Not guaranteed if there are multiple concurrent tracing sessions.
2167    /// Leave unset unless you're fine-tuning a local config.
2168    #[prost(uint32, optional, tag="11")]
2169    pub drain_period_ms: ::core::option::Option<u32>,
2170    /// If set, the tracing daemon will read kernel ring buffers as soon as
2171    /// they're filled past this percentage of occupancy. In other words, a value
2172    /// of 50 means that a read pass is triggered as soon as any per-cpu buffer is
2173    /// half-full. Not guaranteed if there are multiple concurrent tracing
2174    /// sessions.
2175    /// Currently does nothing on Linux kernels below v6.9.
2176    /// Introduced in: perfetto v48.
2177    #[prost(uint32, optional, tag="29")]
2178    pub drain_buffer_percent: ::core::option::Option<u32>,
2179    #[prost(message, optional, tag="12")]
2180    pub compact_sched: ::core::option::Option<ftrace_config::CompactSchedConfig>,
2181    #[prost(message, optional, tag="22")]
2182    pub print_filter: ::core::option::Option<ftrace_config::PrintFilter>,
2183    /// Enables symbol name resolution against /proc/kallsyms.
2184    /// It requires that either traced_probes is running as root or that
2185    /// kptr_restrict has been manually lowered.
2186    /// It does not disclose KASLR, symbol addresses are mangled.
2187    #[prost(bool, optional, tag="13")]
2188    pub symbolize_ksyms: ::core::option::Option<bool>,
2189    #[prost(enumeration="ftrace_config::KsymsMemPolicy", optional, tag="17")]
2190    pub ksyms_mem_policy: ::core::option::Option<i32>,
2191    /// When this boolean is true AND the ftrace_events contains "kmem/rss_stat",
2192    /// this option causes traced_probes to enable the "kmem/rss_stat_throttled"
2193    /// event instead if present, and fall back to "kmem/rss_stat" if not present.
2194    /// The historical context for this is the following:
2195    /// - Up to Android S (12), the rss_stat was internally throttled in its
2196    ///    kernel implementation.
2197    /// - A change introduced in the kernels after S has introduced a new
2198    ///    "rss_stat_throttled" making the original "rss_stat" event unthrottled
2199    ///    (hence very spammy).
2200    /// - Not all Android T/13 devices will receive a new kernel though, hence we
2201    ///    need to deal with both cases.
2202    /// For more context: go/rss-stat-throttled.
2203    #[prost(bool, optional, tag="15")]
2204    pub throttle_rss_stat: ::core::option::Option<bool>,
2205    /// If true, use self-describing proto messages when writing events not known
2206    /// at compile time (aka generic events). Each event bundle will have a set of
2207    /// serialised proto descriptors for events within that bundle.
2208    ///
2209    /// Default if unset:
2210    /// * v53+: true
2211    /// * before v53: false
2212    ///
2213    /// Added in: perfetto v50.
2214    #[prost(bool, optional, tag="32")]
2215    pub denser_generic_event_encoding: ::core::option::Option<bool>,
2216    /// If true, avoid enabling events that aren't statically known by
2217    /// traced_probes. Otherwise, the default is to emit such events as
2218    /// GenericFtraceEvent protos.
2219    /// Prefer to keep this flag at its default. This was added for Android
2220    /// tracing, where atrace categories and/or atrace HAL requested events can
2221    /// expand to events that aren't of interest to the tracing user.
2222    /// Introduced in: Android T.
2223    #[prost(bool, optional, tag="16")]
2224    pub disable_generic_events: ::core::option::Option<bool>,
2225    /// The subset of syscalls to record. To record all syscalls, leave this unset
2226    /// and add "ftrace_events: raw_syscalls/sys_{enter,exit}" to the config.
2227    /// * before perfetto v43, requires the config to also enable
2228    ///    raw_syscalls/sys_{enter,exit}.
2229    /// * perfetto v43+ does the right thing if you set only this field.
2230    /// Example: ["sys_read", "sys_open"].
2231    /// Introduced in: Android U.
2232    #[prost(string, repeated, tag="18")]
2233    pub syscall_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2234    /// If true, enable the "function_graph" kernel tracer that emits events
2235    /// whenever a kernel function is entered and exited
2236    /// (funcgraph_entry/funcgraph_exit).
2237    /// Notes on use:
2238    /// * Requires |symbolize_ksyms| for function name resolution.
2239    /// * Use |function_filters| or |function_graph_roots| to constrain the traced
2240    ///    set of functions, otherwise the event bandwidth will be too high for
2241    ///    practical use.
2242    /// * The data source might be rejected if there is already a concurrent
2243    ///    ftrace data source that does not use function graph itself, as we do not
2244    ///    support switching kernel tracers mid-trace.
2245    /// * Requires a kernel compiled with CONFIG_FUNCTION_GRAPH_TRACER. This is
2246    ///    enabled if "cat /sys/kernel/tracing/available_tracers" includes
2247    ///    "function_graph".
2248    /// Android:
2249    /// * Available only on debuggable builds.
2250    /// * Introduced in: Android U.
2251    #[prost(bool, optional, tag="19")]
2252    pub enable_function_graph: ::core::option::Option<bool>,
2253    /// Constrains the set of functions traced when |enable_function_graph| is
2254    /// true. Supports globs, e.g. "sched*". You can specify multiple filters,
2255    /// in which case all matching functions will be traced. See kernel
2256    /// documentation on ftrace "set_ftrace_filter" file for more details.
2257    /// Android:
2258    /// * Available only on debuggable builds.
2259    /// * Introduced in: Android U.
2260    #[prost(string, repeated, tag="20")]
2261    pub function_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2262    /// If |enable_function_graph| is true, trace this set of functions *and* all
2263    /// of its callees. Supports globs. Can be set together with
2264    /// |function_filters|, in which case only callees matching the filter will be
2265    /// traced. If setting both, you most likely want all roots to also be
2266    /// included in |function_filters|.
2267    /// Android:
2268    /// * Available only on debuggable builds.
2269    /// * Introduced in: Android U.
2270    #[prost(string, repeated, tag="21")]
2271    pub function_graph_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2272    /// If |enable_function_graph| is true, only trace the specified
2273    /// number of calls down the stack. Sets the max_graph_depth value
2274    /// in sys/kernel/tracing/
2275    ///
2276    /// Only respected for the first tracing session that enables
2277    /// function_graph tracing.
2278    ///
2279    /// Introduced in: perfetto v51.
2280    /// Supported on: Android 25Q3+.
2281    #[prost(uint32, optional, tag="33")]
2282    pub function_graph_max_depth: ::core::option::Option<u32>,
2283    /// Ftrace events to record, specific for kprobes and kretprobes
2284    #[prost(message, repeated, tag="30")]
2285    pub kprobe_events: ::prost::alloc::vec::Vec<ftrace_config::KprobeEvent>,
2286    /// If true, does not clear kernel ftrace buffers when starting the trace.
2287    /// This makes sense only if this is the first ftrace data source instance
2288    /// created after the daemon has been started. Can be useful for gathering boot
2289    /// traces, if ftrace has been separately configured (e.g. via kernel
2290    /// commandline).
2291    /// NB: when configuring the pre-perfetto ftrace, prefer to set
2292    /// "/sys/kernel/tracing/trace_clock" to "boot" if your trace will contain
2293    /// anything besides ftrace. Otherwise timestamps might be skewed.
2294    #[prost(bool, optional, tag="23")]
2295    pub preserve_ftrace_buffer: ::core::option::Option<bool>,
2296    /// If true, overrides the default timestamp clock and uses a raw hardware
2297    /// based monotonic clock for getting timestamps.
2298    /// * Introduced in: Android U.
2299    #[prost(bool, optional, tag="24")]
2300    pub use_monotonic_raw_clock: ::core::option::Option<bool>,
2301    /// If |instance_name| is not empty, then attempt to use that tracefs instance
2302    /// for event recording. Normally, this means
2303    /// `/sys/kernel/tracing/instances/$instance_name`.
2304    ///
2305    /// Names "hyp" and "hypervisor" are reserved.
2306    ///
2307    /// The instance must already exist, the tracing daemon *will not* create it
2308    /// for you as it typically doesn't have such permissions.
2309    /// Only a subset of features is guaranteed to work with non-default instances,
2310    /// at the time of writing:
2311    ///   * ftrace_events
2312    ///   * buffer_size_kb
2313    #[prost(string, optional, tag="25")]
2314    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2315    /// For perfetto developer use. If true and on a debuggable android build,
2316    /// serialise raw tracing pages that the implementation cannot parse.
2317    #[prost(bool, optional, tag="31")]
2318    pub debug_ftrace_abi: ::core::option::Option<bool>,
2319    // =================================================
2320    // Exclusive single-tenant features: HERE BE DRAGONS
2321    // =================================================
2322    // The features below are considered "advanced" and require an exclusive
2323    // tracing session (as of Android 25Q3+ and Perfetto v52).
2324    //
2325    // These features directly manipulate the kernel's global ftrace state and
2326    // are incompatible with concurrent ftrace sessions. They are only enabled
2327    // if included in the *first* ftrace data source configured. Subsequent
2328    // ftrace data sources (even those not using advanced features) will be
2329    // rejected while a session with these features is active.
2330    //
2331    // To run the session in exclusive mode, see:
2332    // <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2333
2334    /// Filter ftrace events by Thread ID (TID).
2335    /// This writes the TIDs to `/sys/kernel/tracing/set_event_pid`.
2336    ///
2337    /// Note: this is an exclusive feature, see:
2338    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2339    ///
2340    /// Introduced in: perfetto v52.
2341    /// Supported on: Android 25Q3+.
2342    #[prost(uint32, repeated, packed="false", tag="35")]
2343    pub tids_to_trace: ::prost::alloc::vec::Vec<u32>,
2344    #[prost(message, repeated, tag="36")]
2345    pub tracefs_options: ::prost::alloc::vec::Vec<ftrace_config::TracefsOption>,
2346    /// This mask restricts tracing to a specific set of CPUs using a
2347    /// comma-separated hex mask. Each hex number (up to 8 digits) represents a
2348    /// 32-bit chunk of the CPU mask.
2349    ///
2350    /// The chunks are ordered from high CPUs to low CPUs (left to right):
2351    ///    - Rightmost chunk: CPUs 0-31
2352    ///    - 2nd chunk from right: CPUs 32-63
2353    ///    - ...and so on.
2354    ///
2355    /// Example (assuming NR_CPUS=128, requiring 4 chunks):
2356    /// The full mask would be in the format: "chunk3,chunk2,chunk1,chunk0"
2357    /// where chunk3 maps to CPUs 96-127, chunk2 to 64-95, chunk1 to 32-63, and
2358    /// chunk0 to 0-31.
2359    ///    - "ffffffff,0,0,0": Enables CPUs 96-127 only.
2360    ///    - "f,ff": Enables CPUs 0-7 (from "ff") and CPUs 32-35 (from "f").
2361    ///
2362    /// Note: This is an exclusive feature, see:
2363    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2364    ///
2365    /// Introduced in: perfetto v52.
2366    /// Supported on: Android 25Q3+.
2367    #[prost(string, optional, tag="37")]
2368    pub tracing_cpumask: ::core::option::Option<::prost::alloc::string::String>,
2369    /// No-op in perfetto v28+. Name preserved because of existing references in
2370    /// textproto configs.
2371    #[deprecated]
2372    #[prost(bool, optional, tag="14")]
2373    pub initialize_ksyms_synchronously_for_testing: ::core::option::Option<bool>,
2374}
2375/// Nested message and enum types in `FtraceConfig`.
2376pub mod ftrace_config {
2377    /// Configuration for compact encoding of scheduler events. When enabled (and
2378    /// recording the relevant ftrace events), specific high-volume events are
2379    /// encoded in a denser format than normal.
2380    #[derive(Clone, PartialEq, ::prost::Message)]
2381    pub struct CompactSchedConfig {
2382        /// If true, and sched_switch or sched_waking ftrace events are enabled,
2383        /// record those events in the compact format.
2384        ///
2385        /// If the field is unset, the default is:
2386        /// * perfetto v42.0+: enabled
2387        /// * before: disabled
2388        #[prost(bool, optional, tag="1")]
2389        pub enabled: ::core::option::Option<bool>,
2390    }
2391    /// Optional filter for "ftrace/print" events.
2392    ///
2393    /// The filter consists of multiple rules. As soon as a rule matches (the rules
2394    /// are processed in order), its `allow` field will be used as the outcome: if
2395    /// `allow` is true, the event will be included in the trace, otherwise it will
2396    /// be discarded. If an event does not match any rule, it will be allowed by
2397    /// default (a rule with an empty prefix and allow=false, disallows everything
2398    /// by default).
2399    #[derive(Clone, PartialEq, ::prost::Message)]
2400    pub struct PrintFilter {
2401        #[prost(message, repeated, tag="1")]
2402        pub rules: ::prost::alloc::vec::Vec<print_filter::Rule>,
2403    }
2404    /// Nested message and enum types in `PrintFilter`.
2405    pub mod print_filter {
2406        #[derive(Clone, PartialEq, ::prost::Message)]
2407        pub struct Rule {
2408            #[prost(bool, optional, tag="2")]
2409            pub allow: ::core::option::Option<bool>,
2410            #[prost(oneof="rule::Match", tags="1, 3")]
2411            pub r#match: ::core::option::Option<rule::Match>,
2412        }
2413        /// Nested message and enum types in `Rule`.
2414        pub mod rule {
2415            /// Matches an atrace message of the form:
2416            /// <type>|pid|<prefix>...
2417            #[derive(Clone, PartialEq, ::prost::Message)]
2418            pub struct AtraceMessage {
2419                #[prost(string, optional, tag="1")]
2420                pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2421                #[prost(string, optional, tag="2")]
2422                pub prefix: ::core::option::Option<::prost::alloc::string::String>,
2423            }
2424            #[derive(Clone, PartialEq, ::prost::Oneof)]
2425            pub enum Match {
2426                /// This rule matches if `prefix` matches exactly with the beginning of
2427                /// the "ftrace/print" "buf" field.
2428                #[prost(string, tag="1")]
2429                Prefix(::prost::alloc::string::String),
2430                /// This rule matches if the "buf" field contains an atrace-style print
2431                /// message as specified in `atrace_msg`.
2432                #[prost(message, tag="3")]
2433                AtraceMsg(AtraceMessage),
2434            }
2435        }
2436    }
2437    #[derive(Clone, PartialEq, ::prost::Message)]
2438    pub struct KprobeEvent {
2439        /// Kernel function name to attach to, for example "fuse_file_write_iter"
2440        #[prost(string, optional, tag="1")]
2441        pub probe: ::core::option::Option<::prost::alloc::string::String>,
2442        #[prost(enumeration="kprobe_event::KprobeType", optional, tag="2")]
2443        pub r#type: ::core::option::Option<i32>,
2444    }
2445    /// Nested message and enum types in `KprobeEvent`.
2446    pub mod kprobe_event {
2447        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2448        #[repr(i32)]
2449        pub enum KprobeType {
2450            Unknown = 0,
2451            Kprobe = 1,
2452            Kretprobe = 2,
2453            Both = 3,
2454        }
2455        impl KprobeType {
2456            /// String value of the enum field names used in the ProtoBuf definition.
2457            ///
2458            /// The values are not transformed in any way and thus are considered stable
2459            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2460            pub fn as_str_name(&self) -> &'static str {
2461                match self {
2462                    KprobeType::Unknown => "KPROBE_TYPE_UNKNOWN",
2463                    KprobeType::Kprobe => "KPROBE_TYPE_KPROBE",
2464                    KprobeType::Kretprobe => "KPROBE_TYPE_KRETPROBE",
2465                    KprobeType::Both => "KPROBE_TYPE_BOTH",
2466                }
2467            }
2468        }
2469    }
2470    /// Tracefs options to set directly in the tracefs instance. This is a very
2471    /// niche feature since almost all of the options deal with formatting textual
2472    /// output (the /trace file), which perfetto doesn't use.
2473    ///
2474    /// The options with a known use-case:
2475    /// * event-fork: when using `tids_to_trace` above, the kernel will
2476    ///    automatically add newly spawned descendant threads to the set of TIDs.
2477    ///
2478    /// Full list of options is available at
2479    /// <https://docs.kernel.org/trace/ftrace.html#trace-options.>
2480    ///
2481    /// Note: this is an exclusive feature, see:
2482    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2483    ///
2484    /// Introduced in: perfetto v52.
2485    /// Supported on: Android 25Q3+.
2486    #[derive(Clone, PartialEq, ::prost::Message)]
2487    pub struct TracefsOption {
2488        /// The name of the tracefs option as found in tracefs/trace_options (without
2489        /// the "no" prefix).
2490        #[prost(string, optional, tag="1")]
2491        pub name: ::core::option::Option<::prost::alloc::string::String>,
2492        #[prost(enumeration="tracefs_option::State", optional, tag="2")]
2493        pub state: ::core::option::Option<i32>,
2494    }
2495    /// Nested message and enum types in `TracefsOption`.
2496    pub mod tracefs_option {
2497        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2498        #[repr(i32)]
2499        pub enum State {
2500            Unknown = 0,
2501            Enabled = 1,
2502            Disabled = 2,
2503        }
2504        impl State {
2505            /// String value of the enum field names used in the ProtoBuf definition.
2506            ///
2507            /// The values are not transformed in any way and thus are considered stable
2508            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2509            pub fn as_str_name(&self) -> &'static str {
2510                match self {
2511                    State::Unknown => "STATE_UNKNOWN",
2512                    State::Enabled => "STATE_ENABLED",
2513                    State::Disabled => "STATE_DISABLED",
2514                }
2515            }
2516        }
2517    }
2518    /// When symbolize_ksyms=true, determines whether the traced_probes daemon
2519    /// should keep the symbol map in memory (and reuse it for future tracing
2520    /// sessions) or clear it (saving memory) and re-create it on each tracing
2521    /// session (wasting cpu and wall time).
2522    /// The tradeoff is roughly:
2523    ///   KSYMS_RETAIN: pay a fixed ~1.2 MB cost after the first trace.
2524    ///   KSYMS_CLEANUP_ON_STOP: pay a ~300-500ms cost when starting each trace.
2525    /// Default behavior: KSYMS_CLEANUP_ON_STOP.
2526    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2527    #[repr(i32)]
2528    pub enum KsymsMemPolicy {
2529        KsymsUnspecified = 0,
2530        KsymsCleanupOnStop = 1,
2531        KsymsRetain = 2,
2532    }
2533    impl KsymsMemPolicy {
2534        /// String value of the enum field names used in the ProtoBuf definition.
2535        ///
2536        /// The values are not transformed in any way and thus are considered stable
2537        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2538        pub fn as_str_name(&self) -> &'static str {
2539            match self {
2540                KsymsMemPolicy::KsymsUnspecified => "KSYMS_UNSPECIFIED",
2541                KsymsMemPolicy::KsymsCleanupOnStop => "KSYMS_CLEANUP_ON_STOP",
2542                KsymsMemPolicy::KsymsRetain => "KSYMS_RETAIN",
2543            }
2544        }
2545    }
2546}
2547#[derive(Clone, PartialEq, ::prost::Message)]
2548pub struct FrozenFtraceConfig {
2549    /// The instance name which stores the previous boot ftrace data. Required.
2550    #[prost(string, optional, tag="1")]
2551    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2552}
2553#[derive(Clone, PartialEq, ::prost::Message)]
2554pub struct GpuCounterConfig {
2555    /// Desired sampling interval for counters.
2556    #[prost(uint64, optional, tag="1")]
2557    pub counter_period_ns: ::core::option::Option<u64>,
2558    // Selects which counters to sample. Use either counter_ids or counter_names,
2559    // not both. Counter IDs and names correspond to the ones described in
2560    // GpuCounterSpec in the data source descriptor.
2561
2562    /// List of counter IDs to be sampled.
2563    #[prost(uint32, repeated, packed="false", tag="2")]
2564    pub counter_ids: ::prost::alloc::vec::Vec<u32>,
2565    /// List of counter names to be sampled. Requires producer support; check
2566    /// GpuCounterDescriptor.supports_counter_names in the data source descriptor.
2567    /// Glob patterns may be used to match multiple counters by name; check
2568    /// GpuCounterDescriptor.supports_counter_name_globs for support.
2569    #[prost(string, repeated, tag="6")]
2570    pub counter_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2571    /// Fix gpu clock rate during trace session.
2572    #[prost(bool, optional, tag="4")]
2573    pub fix_gpu_clock: ::core::option::Option<bool>,
2574    /// Sample counters by instrumenting command buffers.
2575    #[prost(oneof="gpu_counter_config::InstrumentedSamplingMode", tags="3, 5")]
2576    pub instrumented_sampling_mode: ::core::option::Option<gpu_counter_config::InstrumentedSamplingMode>,
2577}
2578/// Nested message and enum types in `GpuCounterConfig`.
2579pub mod gpu_counter_config {
2580    /// Configuration for sampling counters by instrumenting command buffers.
2581    ///
2582    /// When instrumented_sampling_config is used (instead of the
2583    /// instrumented_sampling bool), the following steps determine whether
2584    /// instrumented counters are enabled for a given GPU activity:
2585    ///
2586    /// 1. Activity name filtering: If activity_name_filters is non-empty, the
2587    ///     activity must match at least one filter. If empty, all activities
2588    ///     pass this step.
2589    /// 2. TX range filtering: If activity_tx_include_globs is non-empty, the
2590    ///     activity must fall within a matching TX range. Activities in TX
2591    ///     ranges matching activity_tx_exclude_globs are excluded (excludes
2592    ///     take precedence over includes). If both are empty, all activities
2593    ///     pass this step.
2594    /// 3. Range-based sampling: If activity_ranges is non-empty, only
2595    ///     activities within the specified skip/count ranges are instrumented.
2596    ///     If empty, all activities that passed the previous steps are
2597    ///     instrumented.
2598    #[derive(Clone, PartialEq, ::prost::Message)]
2599    pub struct InstrumentedSamplingConfig {
2600        /// GPU activity name filters. An activity matches if it matches any filter.
2601        #[prost(message, repeated, tag="3")]
2602        pub activity_name_filters: ::prost::alloc::vec::Vec<instrumented_sampling_config::ActivityNameFilter>,
2603        /// Glob patterns to use for including GPU activities in TX ranges. TX
2604        /// ranges are in-process annotations that mark different sections of GPU
2605        /// work (e.g. NVTX ranges for CUDA). TX ranges can be nested, and an
2606        /// activity is included if any range in its nesting hierarchy matches.
2607        /// Only activities that fall within a matching TX range will be
2608        /// instrumented.
2609        #[prost(string, repeated, tag="6")]
2610        pub activity_tx_include_globs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2611        /// Glob patterns to use for excluding GPU activities from TX ranges.
2612        /// TX ranges can be nested, and an activity is excluded if any range
2613        /// in its nesting hierarchy matches. Excludes take precedence over
2614        /// includes.
2615        #[prost(string, repeated, tag="7")]
2616        pub activity_tx_exclude_globs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2617        /// Ranges of GPU activities to instrument. Applied after activity name
2618        /// and TX range filters. If empty, all activities that passed the
2619        /// previous filters are instrumented.
2620        #[prost(message, repeated, tag="5")]
2621        pub activity_ranges: ::prost::alloc::vec::Vec<instrumented_sampling_config::ActivityRange>,
2622    }
2623    /// Nested message and enum types in `InstrumentedSamplingConfig`.
2624    pub mod instrumented_sampling_config {
2625        /// Filters GPU activities by name. Each filter specifies a glob pattern
2626        /// and the basis for matching (mangled or demangled kernel name).
2627        #[derive(Clone, PartialEq, ::prost::Message)]
2628        pub struct ActivityNameFilter {
2629            /// required. Glob pattern to use for GPU activity name filtering.
2630            #[prost(string, optional, tag="1")]
2631            pub name_glob: ::core::option::Option<::prost::alloc::string::String>,
2632            /// Basis for name filtering. Defaults to MANGLED_KERNEL_NAME if not
2633            /// specified.
2634            #[prost(enumeration="activity_name_filter::NameBase", optional, tag="2")]
2635            pub name_base: ::core::option::Option<i32>,
2636        }
2637        /// Nested message and enum types in `ActivityNameFilter`.
2638        pub mod activity_name_filter {
2639            #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2640            #[repr(i32)]
2641            pub enum NameBase {
2642                /// Match against the mangled (compiler-encoded) kernel name.
2643                /// Example: for a kernel whose demangled name is
2644                /// "matmul(float*,int,int)", the mangled name might be
2645                /// "_Z6matmulPfii". The glob pattern is matched against this
2646                /// mangled form.
2647                MangledKernelName = 0,
2648                /// Match against the fully demangled kernel name, including
2649                /// parameters, templates, and qualifiers.
2650                /// Example: "matmul(float*,int,int)". The glob pattern is
2651                /// matched against this full demangled form.
2652                DemangledKernelName = 1,
2653                /// Match against only the function name portion of the
2654                /// demangled kernel name, without parameters, templates,
2655                /// return types, or namespaces.
2656                /// Example: "matmul". The glob pattern is matched against
2657                /// just the bare function name.
2658                FunctionName = 2,
2659            }
2660            impl NameBase {
2661                /// String value of the enum field names used in the ProtoBuf definition.
2662                ///
2663                /// The values are not transformed in any way and thus are considered stable
2664                /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2665                pub fn as_str_name(&self) -> &'static str {
2666                    match self {
2667                        NameBase::MangledKernelName => "MANGLED_KERNEL_NAME",
2668                        NameBase::DemangledKernelName => "DEMANGLED_KERNEL_NAME",
2669                        NameBase::FunctionName => "FUNCTION_NAME",
2670                    }
2671                }
2672            }
2673        }
2674        /// Defines a range of GPU activities to instrument.
2675        #[derive(Clone, PartialEq, ::prost::Message)]
2676        pub struct ActivityRange {
2677            /// Number of GPU activities to skip before starting to instrument
2678            /// command buffers. Defaults to 0 if not specified.
2679            #[prost(uint32, optional, tag="1")]
2680            pub skip: ::core::option::Option<u32>,
2681            /// Limit for the number of GPU activities to sample counters for by
2682            /// instrumenting command buffers. Defaults to UINT32_MAX (all
2683            /// remaining activities) if not specified.
2684            #[prost(uint32, optional, tag="2")]
2685            pub count: ::core::option::Option<u32>,
2686        }
2687    }
2688    /// Sample counters by instrumenting command buffers.
2689    #[derive(Clone, PartialEq, ::prost::Oneof)]
2690    pub enum InstrumentedSamplingMode {
2691        #[prost(bool, tag="3")]
2692        InstrumentedSampling(bool),
2693        #[prost(message, tag="5")]
2694        InstrumentedSamplingConfig(InstrumentedSamplingConfig),
2695    }
2696}
2697#[derive(Clone, PartialEq, ::prost::Message)]
2698pub struct VulkanMemoryConfig {
2699    /// Tracking driver memory usage events
2700    #[prost(bool, optional, tag="1")]
2701    pub track_driver_memory_usage: ::core::option::Option<bool>,
2702    /// Tracking device memory usage events
2703    #[prost(bool, optional, tag="2")]
2704    pub track_device_memory_usage: ::core::option::Option<bool>,
2705}
2706#[derive(Clone, PartialEq, ::prost::Message)]
2707pub struct GpuRenderStagesConfig {
2708    /// Enable to separate the color and depth/stencil load and store stages
2709    /// into a separate stages. If disabled, the depth/stencil load and store
2710    /// stages will be combined.  Disabled by default. This option has no effect if
2711    /// Low Overhead mode is enabled.
2712    #[prost(bool, optional, tag="1")]
2713    pub full_loadstore: ::core::option::Option<bool>,
2714    /// Use the low overhead mode for traces. In this mode render stages are
2715    /// combined into a single workload stage. This provides less granular data but
2716    /// induces minimal GPU overhead. Disabled by default.
2717    #[prost(bool, optional, tag="2")]
2718    pub low_overhead: ::core::option::Option<bool>,
2719    /// Trace metrics to capture for each render stage
2720    #[prost(string, repeated, tag="3")]
2721    pub trace_metrics: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2722}
2723/// WARNING: unmaintained and deprecated. Likely won't work at all on modern
2724/// systems.
2725#[derive(Clone, PartialEq, ::prost::Message)]
2726pub struct InodeFileConfig {
2727    /// How long to pause between batches.
2728    #[prost(uint32, optional, tag="1")]
2729    pub scan_interval_ms: ::core::option::Option<u32>,
2730    /// How long to wait before the first scan in order to accumulate inodes.
2731    #[prost(uint32, optional, tag="2")]
2732    pub scan_delay_ms: ::core::option::Option<u32>,
2733    /// How many inodes to scan in one batch.
2734    #[prost(uint32, optional, tag="3")]
2735    pub scan_batch_size: ::core::option::Option<u32>,
2736    /// Do not scan for inodes not found in the static map.
2737    #[prost(bool, optional, tag="4")]
2738    pub do_not_scan: ::core::option::Option<bool>,
2739    /// If non-empty, only scan inodes corresponding to block devices named in
2740    /// this list.
2741    #[prost(string, repeated, tag="5")]
2742    pub scan_mount_points: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2743    /// When encountering an inode belonging to a block device corresponding
2744    /// to one of the mount points in this map, scan its scan_roots instead.
2745    #[prost(message, repeated, tag="6")]
2746    pub mount_point_mapping: ::prost::alloc::vec::Vec<inode_file_config::MountPointMappingEntry>,
2747}
2748/// Nested message and enum types in `InodeFileConfig`.
2749pub mod inode_file_config {
2750    #[derive(Clone, PartialEq, ::prost::Message)]
2751    pub struct MountPointMappingEntry {
2752        #[prost(string, optional, tag="1")]
2753        pub mountpoint: ::core::option::Option<::prost::alloc::string::String>,
2754        #[prost(string, repeated, tag="2")]
2755        pub scan_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2756    }
2757}
2758#[derive(Clone, PartialEq, ::prost::Message)]
2759pub struct ConsoleConfig {
2760    #[prost(enumeration="console_config::Output", optional, tag="1")]
2761    pub output: ::core::option::Option<i32>,
2762    #[prost(bool, optional, tag="2")]
2763    pub enable_colors: ::core::option::Option<bool>,
2764}
2765/// Nested message and enum types in `ConsoleConfig`.
2766pub mod console_config {
2767    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2768    #[repr(i32)]
2769    pub enum Output {
2770        Unspecified = 0,
2771        Stdout = 1,
2772        Stderr = 2,
2773    }
2774    impl Output {
2775        /// String value of the enum field names used in the ProtoBuf definition.
2776        ///
2777        /// The values are not transformed in any way and thus are considered stable
2778        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2779        pub fn as_str_name(&self) -> &'static str {
2780            match self {
2781                Output::Unspecified => "OUTPUT_UNSPECIFIED",
2782                Output::Stdout => "OUTPUT_STDOUT",
2783                Output::Stderr => "OUTPUT_STDERR",
2784            }
2785        }
2786    }
2787}
2788/// Configuration for trace packet interception. Used for diverting trace data to
2789/// non-Perfetto sources (e.g., logging to the console, ETW) when using the
2790/// Perfetto SDK.
2791#[derive(Clone, PartialEq, ::prost::Message)]
2792pub struct InterceptorConfig {
2793    /// Matches the name given to RegisterInterceptor().
2794    #[prost(string, optional, tag="1")]
2795    pub name: ::core::option::Option<::prost::alloc::string::String>,
2796    #[prost(message, optional, tag="100")]
2797    pub console_config: ::core::option::Option<ConsoleConfig>,
2798}
2799#[derive(Clone, PartialEq, ::prost::Message)]
2800pub struct AndroidPowerConfig {
2801    #[prost(uint32, optional, tag="1")]
2802    pub battery_poll_ms: ::core::option::Option<u32>,
2803    #[prost(enumeration="android_power_config::BatteryCounters", repeated, packed="false", tag="2")]
2804    pub battery_counters: ::prost::alloc::vec::Vec<i32>,
2805    /// Where available enables per-power-rail measurements.
2806    #[prost(bool, optional, tag="3")]
2807    pub collect_power_rails: ::core::option::Option<bool>,
2808    /// Provides a breakdown of energy estimation for various subsystem (e.g. GPU).
2809    /// Available from Android S.
2810    #[prost(bool, optional, tag="4")]
2811    pub collect_energy_estimation_breakdown: ::core::option::Option<bool>,
2812    /// Provides a breakdown of time in state for various subsystems.
2813    /// Available from Android U.
2814    #[prost(bool, optional, tag="5")]
2815    pub collect_entity_state_residency: ::core::option::Option<bool>,
2816}
2817/// Nested message and enum types in `AndroidPowerConfig`.
2818pub mod android_power_config {
2819    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2820    #[repr(i32)]
2821    pub enum BatteryCounters {
2822        BatteryCounterUnspecified = 0,
2823        /// Coulomb counter.
2824        BatteryCounterCharge = 1,
2825        /// Charge (%).
2826        BatteryCounterCapacityPercent = 2,
2827        /// Instantaneous current.
2828        BatteryCounterCurrent = 3,
2829        /// Avg current.
2830        BatteryCounterCurrentAvg = 4,
2831        /// Instantaneous voltage.
2832        BatteryCounterVoltage = 5,
2833    }
2834    impl BatteryCounters {
2835        /// String value of the enum field names used in the ProtoBuf definition.
2836        ///
2837        /// The values are not transformed in any way and thus are considered stable
2838        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2839        pub fn as_str_name(&self) -> &'static str {
2840            match self {
2841                BatteryCounters::BatteryCounterUnspecified => "BATTERY_COUNTER_UNSPECIFIED",
2842                BatteryCounters::BatteryCounterCharge => "BATTERY_COUNTER_CHARGE",
2843                BatteryCounters::BatteryCounterCapacityPercent => "BATTERY_COUNTER_CAPACITY_PERCENT",
2844                BatteryCounters::BatteryCounterCurrent => "BATTERY_COUNTER_CURRENT",
2845                BatteryCounters::BatteryCounterCurrentAvg => "BATTERY_COUNTER_CURRENT_AVG",
2846                BatteryCounters::BatteryCounterVoltage => "BATTERY_COUNTER_VOLTAGE",
2847            }
2848        }
2849    }
2850}
2851#[derive(Clone, PartialEq, ::prost::Message)]
2852pub struct ProtoVmConfig {
2853    #[prost(uint32, optional, tag="1")]
2854    pub memory_limit_kb: ::core::option::Option<u32>,
2855}
2856/// This enum is obtained by post-processing
2857/// AOSP/frameworks/proto_logging/stats/atoms.proto through
2858/// AOSP/external/perfetto/tools/update-statsd-descriptor, which extracts one
2859/// enum value for each proto field defined in the upstream atoms.proto.
2860#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2861#[repr(i32)]
2862pub enum AtomId {
2863    AtomUnspecified = 0,
2864    AtomBleScanStateChanged = 2,
2865    AtomProcessStateChanged = 3,
2866    AtomBleScanResultReceived = 4,
2867    AtomSensorStateChanged = 5,
2868    AtomGpsScanStateChanged = 6,
2869    AtomSyncStateChanged = 7,
2870    AtomScheduledJobStateChanged = 8,
2871    AtomScreenBrightnessChanged = 9,
2872    AtomWakelockStateChanged = 10,
2873    AtomLongPartialWakelockStateChanged = 11,
2874    AtomMobileRadioPowerStateChanged = 12,
2875    AtomWifiRadioPowerStateChanged = 13,
2876    AtomActivityManagerSleepStateChanged = 14,
2877    AtomMemoryFactorStateChanged = 15,
2878    AtomExcessiveCpuUsageReported = 16,
2879    AtomCachedKillReported = 17,
2880    AtomProcessMemoryStatReported = 18,
2881    AtomLauncherEvent = 19,
2882    AtomBatterySaverModeStateChanged = 20,
2883    AtomDeviceIdleModeStateChanged = 21,
2884    AtomDeviceIdlingModeStateChanged = 22,
2885    AtomAudioStateChanged = 23,
2886    AtomMediaCodecStateChanged = 24,
2887    AtomCameraStateChanged = 25,
2888    AtomFlashlightStateChanged = 26,
2889    AtomUidProcessStateChanged = 27,
2890    AtomProcessLifeCycleStateChanged = 28,
2891    AtomScreenStateChanged = 29,
2892    AtomBatteryLevelChanged = 30,
2893    AtomChargingStateChanged = 31,
2894    AtomPluggedStateChanged = 32,
2895    AtomInteractiveStateChanged = 33,
2896    AtomTouchEventReported = 34,
2897    AtomWakeupAlarmOccurred = 35,
2898    AtomKernelWakeupReported = 36,
2899    AtomWifiLockStateChanged = 37,
2900    AtomWifiSignalStrengthChanged = 38,
2901    AtomWifiScanStateChanged = 39,
2902    AtomPhoneSignalStrengthChanged = 40,
2903    AtomSettingChanged = 41,
2904    AtomActivityForegroundStateChanged = 42,
2905    AtomIsolatedUidChanged = 43,
2906    AtomPacketWakeupOccurred = 44,
2907    AtomWallClockTimeShifted = 45,
2908    AtomAnomalyDetected = 46,
2909    AtomAppBreadcrumbReported = 47,
2910    AtomAppStartOccurred = 48,
2911    AtomAppStartCanceled = 49,
2912    AtomAppStartFullyDrawn = 50,
2913    AtomLmkKillOccurred = 51,
2914    AtomPictureInPictureStateChanged = 52,
2915    AtomWifiMulticastLockStateChanged = 53,
2916    AtomAppStartMemoryStateCaptured = 55,
2917    AtomShutdownSequenceReported = 56,
2918    AtomBootSequenceReported = 57,
2919    AtomOverlayStateChanged = 59,
2920    AtomForegroundServiceStateChanged = 60,
2921    AtomCallStateChanged = 61,
2922    AtomKeyguardStateChanged = 62,
2923    AtomKeyguardBouncerStateChanged = 63,
2924    AtomKeyguardBouncerPasswordEntered = 64,
2925    AtomAppDied = 65,
2926    AtomResourceConfigurationChanged = 66,
2927    AtomBluetoothEnabledStateChanged = 67,
2928    AtomBluetoothConnectionStateChanged = 68,
2929    AtomGpsSignalQualityChanged = 69,
2930    AtomUsbConnectorStateChanged = 70,
2931    AtomSpeakerImpedanceReported = 71,
2932    AtomHardwareFailed = 72,
2933    AtomPhysicalDropDetected = 73,
2934    AtomChargeCyclesReported = 74,
2935    AtomMobileConnectionStateChanged = 75,
2936    AtomMobileRadioTechnologyChanged = 76,
2937    AtomUsbDeviceAttached = 77,
2938    AtomAppCrashOccurred = 78,
2939    AtomAnrOccurred = 79,
2940    AtomWtfOccurred = 80,
2941    AtomLowMemReported = 81,
2942    AtomGenericAtom = 82,
2943    AtomVibratorStateChanged = 84,
2944    AtomDeferredJobStatsReported = 85,
2945    AtomThermalThrottling = 86,
2946    AtomBiometricAcquired = 87,
2947    AtomBiometricAuthenticated = 88,
2948    AtomBiometricErrorOccurred = 89,
2949    AtomUiEventReported = 90,
2950    AtomBatteryHealthSnapshot = 91,
2951    AtomSlowIo = 92,
2952    AtomBatteryCausedShutdown = 93,
2953    AtomPhoneServiceStateChanged = 94,
2954    AtomPhoneStateChanged = 95,
2955    AtomUserRestrictionChanged = 96,
2956    AtomSettingsUiChanged = 97,
2957    AtomConnectivityStateChanged = 98,
2958    AtomServiceStateChanged = 99,
2959    AtomServiceLaunchReported = 100,
2960    AtomFlagFlipUpdateOccurred = 101,
2961    AtomBinaryPushStateChanged = 102,
2962    AtomDevicePolicyEvent = 103,
2963    AtomDocsUiFileOpCanceled = 104,
2964    AtomDocsUiFileOpCopyMoveModeReported = 105,
2965    AtomDocsUiFileOpFailure = 106,
2966    AtomDocsUiProviderFileOp = 107,
2967    AtomDocsUiInvalidScopedAccessRequest = 108,
2968    AtomDocsUiLaunchReported = 109,
2969    AtomDocsUiRootVisited = 110,
2970    AtomDocsUiStartupMs = 111,
2971    AtomDocsUiUserActionReported = 112,
2972    AtomWifiEnabledStateChanged = 113,
2973    AtomWifiRunningStateChanged = 114,
2974    AtomAppCompacted = 115,
2975    AtomNetworkDnsEventReported = 116,
2976    AtomDocsUiPickerLaunchedFromReported = 117,
2977    AtomDocsUiPickResultReported = 118,
2978    AtomDocsUiSearchModeReported = 119,
2979    AtomDocsUiSearchTypeReported = 120,
2980    AtomDataStallEvent = 121,
2981    AtomRescuePartyResetReported = 122,
2982    AtomSignedConfigReported = 123,
2983    AtomGnssNiEventReported = 124,
2984    AtomBluetoothLinkLayerConnectionEvent = 125,
2985    AtomBluetoothAclConnectionStateChanged = 126,
2986    AtomBluetoothScoConnectionStateChanged = 127,
2987    AtomAppDowngraded = 128,
2988    AtomAppOptimizedAfterDowngraded = 129,
2989    AtomLowStorageStateChanged = 130,
2990    AtomGnssNfwNotificationReported = 131,
2991    AtomGnssConfigurationReported = 132,
2992    AtomUsbPortOverheatEventReported = 133,
2993    AtomNfcErrorOccurred = 134,
2994    AtomNfcStateChanged = 135,
2995    AtomNfcBeamOccurred = 136,
2996    AtomNfcCardemulationOccurred = 137,
2997    AtomNfcTagOccurred = 138,
2998    AtomNfcHceTransactionOccurred = 139,
2999    AtomSeStateChanged = 140,
3000    AtomSeOmapiReported = 141,
3001    AtomBroadcastDispatchLatencyReported = 142,
3002    AtomAttentionManagerServiceResultReported = 143,
3003    AtomAdbConnectionChanged = 144,
3004    AtomSpeechDspStatReported = 145,
3005    AtomUsbContaminantReported = 146,
3006    AtomWatchdogRollbackOccurred = 147,
3007    AtomBiometricSystemHealthIssueDetected = 148,
3008    AtomBubbleUiChanged = 149,
3009    AtomScheduledJobConstraintChanged = 150,
3010    AtomBluetoothActiveDeviceChanged = 151,
3011    AtomBluetoothA2dpPlaybackStateChanged = 152,
3012    AtomBluetoothA2dpCodecConfigChanged = 153,
3013    AtomBluetoothA2dpCodecCapabilityChanged = 154,
3014    AtomBluetoothA2dpAudioUnderrunReported = 155,
3015    AtomBluetoothA2dpAudioOverrunReported = 156,
3016    AtomBluetoothDeviceRssiReported = 157,
3017    AtomBluetoothDeviceFailedContactCounterReported = 158,
3018    AtomBluetoothDeviceTxPowerLevelReported = 159,
3019    AtomBluetoothHciTimeoutReported = 160,
3020    AtomBluetoothQualityReportReported = 161,
3021    AtomBluetoothDeviceInfoReported = 162,
3022    AtomBluetoothRemoteVersionInfoReported = 163,
3023    AtomBluetoothSdpAttributeReported = 164,
3024    AtomBluetoothBondStateChanged = 165,
3025    AtomBluetoothClassicPairingEventReported = 166,
3026    AtomBluetoothSmpPairingEventReported = 167,
3027    AtomScreenTimeoutExtensionReported = 168,
3028    AtomProcessStartTime = 169,
3029    AtomPermissionGrantRequestResultReported = 170,
3030    AtomBluetoothSocketConnectionStateChanged = 171,
3031    AtomDeviceIdentifierAccessDenied = 172,
3032    AtomBubbleDeveloperErrorReported = 173,
3033    AtomAssistGestureStageReported = 174,
3034    AtomAssistGestureFeedbackReported = 175,
3035    AtomAssistGestureProgressReported = 176,
3036    AtomTouchGestureClassified = 177,
3037    AtomHiddenApiUsed = 178,
3038    AtomStyleUiChanged = 179,
3039    AtomPrivacyIndicatorsInteracted = 180,
3040    AtomAppInstallOnExternalStorageReported = 181,
3041    AtomNetworkStackReported = 182,
3042    AtomAppMovedStorageReported = 183,
3043    AtomBiometricEnrolled = 184,
3044    AtomSystemServerWatchdogOccurred = 185,
3045    AtomTombStoneOccurred = 186,
3046    AtomBluetoothClassOfDeviceReported = 187,
3047    AtomIntelligenceEventReported = 188,
3048    AtomThermalThrottlingSeverityStateChanged = 189,
3049    AtomRoleRequestResultReported = 190,
3050    AtomMediametricsAudiopolicyReported = 191,
3051    AtomMediametricsAudiorecordReported = 192,
3052    AtomMediametricsAudiothreadReported = 193,
3053    AtomMediametricsAudiotrackReported = 194,
3054    AtomMediametricsCodecReported = 195,
3055    AtomMediametricsDrmWidevineReported = 196,
3056    AtomMediametricsExtractorReported = 197,
3057    AtomMediametricsMediadrmReported = 198,
3058    AtomMediametricsNuplayerReported = 199,
3059    AtomMediametricsRecorderReported = 200,
3060    AtomMediametricsDrmmanagerReported = 201,
3061    AtomCarPowerStateChanged = 203,
3062    AtomGarageModeInfo = 204,
3063    AtomTestAtomReported = 205,
3064    AtomContentCaptureCallerMismatchReported = 206,
3065    AtomContentCaptureServiceEvents = 207,
3066    AtomContentCaptureSessionEvents = 208,
3067    AtomContentCaptureFlushed = 209,
3068    AtomLocationManagerApiUsageReported = 210,
3069    AtomReviewPermissionsFragmentResultReported = 211,
3070    AtomRuntimePermissionsUpgradeResult = 212,
3071    AtomGrantPermissionsActivityButtonActions = 213,
3072    AtomLocationAccessCheckNotificationAction = 214,
3073    AtomAppPermissionFragmentActionReported = 215,
3074    AtomAppPermissionFragmentViewed = 216,
3075    AtomAppPermissionsFragmentViewed = 217,
3076    AtomPermissionAppsFragmentViewed = 218,
3077    AtomTextSelectionEvent = 219,
3078    AtomTextLinkifyEvent = 220,
3079    AtomConversationActionsEvent = 221,
3080    AtomLanguageDetectionEvent = 222,
3081    AtomExclusionRectStateChanged = 223,
3082    AtomBackGestureReportedReported = 224,
3083    AtomUpdateEngineUpdateAttemptReported = 225,
3084    AtomUpdateEngineSuccessfulUpdateReported = 226,
3085    AtomCameraActionEvent = 227,
3086    AtomAppCompatibilityChangeReported = 228,
3087    AtomPerfettoUploaded = 229,
3088    AtomVmsClientConnectionStateChanged = 230,
3089    AtomMediaProviderScanOccurred = 233,
3090    AtomMediaContentDeleted = 234,
3091    AtomMediaProviderPermissionRequested = 235,
3092    AtomMediaProviderSchemaChanged = 236,
3093    AtomMediaProviderIdleMaintenanceFinished = 237,
3094    AtomRebootEscrowRecoveryReported = 238,
3095    AtomBootTimeEventDurationReported = 239,
3096    AtomBootTimeEventElapsedTimeReported = 240,
3097    AtomBootTimeEventUtcTimeReported = 241,
3098    AtomBootTimeEventErrorCodeReported = 242,
3099    AtomUserspaceRebootReported = 243,
3100    AtomNotificationReported = 244,
3101    AtomNotificationPanelReported = 245,
3102    AtomNotificationChannelModified = 246,
3103    AtomIntegrityCheckResultReported = 247,
3104    AtomIntegrityRulesPushed = 248,
3105    AtomCbMessageReported = 249,
3106    AtomCbMessageError = 250,
3107    AtomWifiHealthStatReported = 251,
3108    AtomWifiFailureStatReported = 252,
3109    AtomWifiConnectionResultReported = 253,
3110    AtomAppFreezeChanged = 254,
3111    AtomSnapshotMergeReported = 255,
3112    AtomForegroundServiceAppOpSessionEnded = 256,
3113    AtomDisplayJankReported = 257,
3114    AtomAppStandbyBucketChanged = 258,
3115    AtomSharesheetStarted = 259,
3116    AtomRankingSelected = 260,
3117    AtomTvsettingsUiInteracted = 261,
3118    AtomLauncherSnapshot = 262,
3119    AtomPackageInstallerV2Reported = 263,
3120    AtomUserLifecycleJourneyReported = 264,
3121    AtomUserLifecycleEventOccurred = 265,
3122    AtomAccessibilityShortcutReported = 266,
3123    AtomAccessibilityServiceReported = 267,
3124    AtomDocsUiDragAndDropReported = 268,
3125    AtomAppUsageEventOccurred = 269,
3126    AtomAutoRevokeNotificationClicked = 270,
3127    AtomAutoRevokeFragmentAppViewed = 271,
3128    AtomAutoRevokedAppInteraction = 272,
3129    AtomAppPermissionGroupsFragmentAutoRevokeAction = 273,
3130    AtomEvsUsageStatsReported = 274,
3131    AtomAudioPowerUsageDataReported = 275,
3132    AtomTvTunerStateChanged = 276,
3133    AtomMediaoutputOpSwitchReported = 277,
3134    AtomCbMessageFiltered = 278,
3135    AtomTvTunerDvrStatus = 279,
3136    AtomTvCasSessionOpenStatus = 280,
3137    AtomAssistantInvocationReported = 281,
3138    AtomDisplayWakeReported = 282,
3139    AtomCarUserHalModifyUserRequestReported = 283,
3140    AtomCarUserHalModifyUserResponseReported = 284,
3141    AtomCarUserHalPostSwitchResponseReported = 285,
3142    AtomCarUserHalInitialUserInfoRequestReported = 286,
3143    AtomCarUserHalInitialUserInfoResponseReported = 287,
3144    AtomCarUserHalUserAssociationRequestReported = 288,
3145    AtomCarUserHalSetUserAssociationResponseReported = 289,
3146    AtomNetworkIpProvisioningReported = 290,
3147    AtomNetworkDhcpRenewReported = 291,
3148    AtomNetworkValidationReported = 292,
3149    AtomNetworkStackQuirkReported = 293,
3150    AtomMediametricsAudiorecorddeviceusageReported = 294,
3151    AtomMediametricsAudiothreaddeviceusageReported = 295,
3152    AtomMediametricsAudiotrackdeviceusageReported = 296,
3153    AtomMediametricsAudiodeviceconnectionReported = 297,
3154    AtomBlobCommitted = 298,
3155    AtomBlobLeased = 299,
3156    AtomBlobOpened = 300,
3157    AtomContactsProviderStatusReported = 301,
3158    AtomKeystoreKeyEventReported = 302,
3159    AtomNetworkTetheringReported = 303,
3160    AtomImeTouchReported = 304,
3161    AtomUiInteractionFrameInfoReported = 305,
3162    AtomUiActionLatencyReported = 306,
3163    AtomWifiDisconnectReported = 307,
3164    AtomWifiConnectionStateChanged = 308,
3165    AtomHdmiCecActiveSourceChanged = 309,
3166    AtomHdmiCecMessageReported = 310,
3167    AtomAirplaneMode = 311,
3168    AtomModemRestart = 312,
3169    AtomCarrierIdMismatchReported = 313,
3170    AtomCarrierIdTableUpdated = 314,
3171    AtomDataStallRecoveryReported = 315,
3172    AtomMediametricsMediaparserReported = 316,
3173    AtomTlsHandshakeReported = 317,
3174    AtomTextClassifierApiUsageReported = 318,
3175    AtomCarWatchdogKillStatsReported = 319,
3176    AtomMediametricsPlaybackReported = 320,
3177    AtomMediaNetworkInfoChanged = 321,
3178    AtomMediaPlaybackStateChanged = 322,
3179    AtomMediaPlaybackErrorReported = 323,
3180    AtomMediaPlaybackTrackChanged = 324,
3181    AtomWifiScanReported = 325,
3182    AtomWifiPnoScanReported = 326,
3183    AtomTifTuneChanged = 327,
3184    AtomAutoRotateReported = 328,
3185    AtomPerfettoTrigger = 329,
3186    AtomTranscodingData = 330,
3187    AtomImsServiceEntitlementUpdated = 331,
3188    AtomDeviceRotated = 333,
3189    AtomSimSpecificSettingsRestored = 334,
3190    AtomTextClassifierDownloadReported = 335,
3191    AtomPinStorageEvent = 336,
3192    AtomFaceDownReported = 337,
3193    AtomBluetoothHalCrashReasonReported = 338,
3194    AtomRebootEscrowPreparationReported = 339,
3195    AtomRebootEscrowLskfCaptureReported = 340,
3196    AtomRebootEscrowRebootReported = 341,
3197    AtomBinderLatencyReported = 342,
3198    AtomMediametricsAaudiostreamReported = 343,
3199    AtomMediaTranscodingSessionEnded = 344,
3200    AtomMagnificationUsageReported = 345,
3201    AtomMagnificationModeWithImeOnReported = 346,
3202    AtomAppSearchCallStatsReported = 347,
3203    AtomAppSearchPutDocumentStatsReported = 348,
3204    AtomDeviceControlChanged = 349,
3205    AtomDeviceStateChanged = 350,
3206    AtomInputdeviceRegistered = 351,
3207    AtomSmartspaceCardReported = 352,
3208    AtomAuthPromptAuthenticateInvoked = 353,
3209    AtomAuthManagerCanAuthenticateInvoked = 354,
3210    AtomAuthEnrollActionInvoked = 355,
3211    AtomAuthDeprecatedApiUsed = 356,
3212    AtomUnattendedRebootOccurred = 357,
3213    AtomLongRebootBlockingReported = 358,
3214    AtomLocationTimeZoneProviderStateChanged = 359,
3215    AtomFdtrackEventOccurred = 364,
3216    AtomTimeoutAutoExtendedReported = 365,
3217    AtomAlarmBatchDelivered = 367,
3218    AtomAlarmScheduled = 368,
3219    AtomCarWatchdogIoOveruseStatsReported = 369,
3220    AtomUserLevelHibernationStateChanged = 370,
3221    AtomAppSearchInitializeStatsReported = 371,
3222    AtomAppSearchQueryStatsReported = 372,
3223    AtomAppProcessDied = 373,
3224    AtomNetworkIpReachabilityMonitorReported = 374,
3225    AtomSlowInputEventReported = 375,
3226    AtomAnrOccurredProcessingStarted = 376,
3227    AtomAppSearchRemoveStatsReported = 377,
3228    AtomMediaCodecReported = 378,
3229    AtomPermissionUsageFragmentInteraction = 379,
3230    AtomPermissionDetailsInteraction = 380,
3231    AtomPrivacySensorToggleInteraction = 381,
3232    AtomPrivacyToggleDialogInteraction = 382,
3233    AtomAppSearchOptimizeStatsReported = 383,
3234    AtomNonA11yToolServiceWarningReport = 384,
3235    AtomAppCompatStateChanged = 386,
3236    AtomSizeCompatRestartButtonEventReported = 387,
3237    AtomSplitscreenUiChanged = 388,
3238    AtomNetworkDnsHandshakeReported = 389,
3239    AtomBluetoothCodePathCounter = 390,
3240    AtomBluetoothLeBatchScanReportDelay = 392,
3241    AtomAccessibilityFloatingMenuUiChanged = 393,
3242    AtomNeuralnetworksCompilationCompleted = 394,
3243    AtomNeuralnetworksExecutionCompleted = 395,
3244    AtomNeuralnetworksCompilationFailed = 396,
3245    AtomNeuralnetworksExecutionFailed = 397,
3246    AtomContextHubBooted = 398,
3247    AtomContextHubRestarted = 399,
3248    AtomContextHubLoadedNanoappSnapshotReported = 400,
3249    AtomChreCodeDownloadTransacted = 401,
3250    AtomUwbSessionInited = 402,
3251    AtomUwbSessionClosed = 403,
3252    AtomUwbFirstRangingReceived = 404,
3253    AtomUwbRangingMeasurementReceived = 405,
3254    AtomTextClassifierDownloadWorkScheduled = 406,
3255    AtomTextClassifierDownloadWorkCompleted = 407,
3256    AtomClipboardCleared = 408,
3257    AtomVmCreationRequested = 409,
3258    AtomNearbyDeviceScanStateChanged = 410,
3259    AtomApplicationLocalesChanged = 412,
3260    AtomMediametricsAudiotrackstatusReported = 413,
3261    AtomFoldStateDurationReported = 414,
3262    AtomLocationTimeZoneProviderControllerStateChanged = 415,
3263    AtomDisplayHbmStateChanged = 416,
3264    AtomDisplayHbmBrightnessChanged = 417,
3265    AtomPersistentUriPermissionsFlushed = 418,
3266    AtomEarlyBootCompOsArtifactsCheckReported = 419,
3267    AtomVbmetaDigestReported = 420,
3268    AtomApexInfoGathered = 421,
3269    AtomPvmInfoGathered = 422,
3270    AtomWearSettingsUiInteracted = 423,
3271    AtomTracingServiceReportEvent = 424,
3272    AtomMediametricsAudiorecordstatusReported = 425,
3273    AtomLauncherLatency = 426,
3274    AtomDropboxEntryDropped = 427,
3275    AtomWifiP2pConnectionReported = 428,
3276    AtomGameStateChanged = 429,
3277    AtomHotwordDetectorCreateRequested = 430,
3278    AtomHotwordDetectionServiceInitResultReported = 431,
3279    AtomHotwordDetectionServiceRestarted = 432,
3280    AtomHotwordDetectorKeyphraseTriggered = 433,
3281    AtomHotwordDetectorEvents = 434,
3282    AtomBootCompletedBroadcastCompletionLatencyReported = 437,
3283    AtomContactsIndexerUpdateStatsReported = 440,
3284    AtomAppBackgroundRestrictionsInfo = 441,
3285    AtomMmsSmsProviderGetThreadIdFailed = 442,
3286    AtomMmsSmsDatabaseHelperOnUpgradeFailed = 443,
3287    AtomPermissionReminderNotificationInteracted = 444,
3288    AtomRecentPermissionDecisionsInteracted = 445,
3289    AtomGnssPsdsDownloadReported = 446,
3290    AtomLeAudioConnectionSessionReported = 447,
3291    AtomLeAudioBroadcastSessionReported = 448,
3292    AtomDreamUiEventReported = 449,
3293    AtomTaskManagerEventReported = 450,
3294    AtomCdmAssociationAction = 451,
3295    AtomMagnificationTripleTapAndHoldActivatedSessionReported = 452,
3296    AtomMagnificationFollowTypingFocusActivatedSessionReported = 453,
3297    AtomAccessibilityTextReadingOptionsChanged = 454,
3298    AtomWifiSetupFailureCrashReported = 455,
3299    AtomUwbDeviceErrorReported = 456,
3300    AtomIsolatedCompilationScheduled = 457,
3301    AtomIsolatedCompilationEnded = 458,
3302    AtomOnsOpportunisticEsimProvisioningComplete = 459,
3303    AtomSystemServerPreWatchdogOccurred = 460,
3304    AtomTelephonyAnomalyDetected = 461,
3305    AtomLetterboxPositionChanged = 462,
3306    AtomRemoteKeyProvisioningAttempt = 463,
3307    AtomRemoteKeyProvisioningNetworkInfo = 464,
3308    AtomRemoteKeyProvisioningTiming = 465,
3309    AtomMediaoutputOpInteractionReport = 466,
3310    AtomSyncExemptionOccurred = 468,
3311    AtomAutofillPresentationEventReported = 469,
3312    AtomDockStateChanged = 470,
3313    AtomSafetySourceStateCollected = 471,
3314    AtomSafetyCenterSystemEventReported = 472,
3315    AtomSafetyCenterInteractionReported = 473,
3316    AtomSettingsProviderSettingChanged = 474,
3317    AtomBroadcastDeliveryEventReported = 475,
3318    AtomServiceRequestEventReported = 476,
3319    AtomProviderAcquisitionEventReported = 477,
3320    AtomBluetoothDeviceNameReported = 478,
3321    AtomCbConfigUpdated = 479,
3322    AtomCbModuleErrorReported = 480,
3323    AtomCbServiceFeatureChanged = 481,
3324    AtomCbReceiverFeatureChanged = 482,
3325    AtomPrivacySignalNotificationInteraction = 484,
3326    AtomPrivacySignalIssueCardInteraction = 485,
3327    AtomPrivacySignalsJobFailure = 486,
3328    AtomVibrationReported = 487,
3329    AtomUwbRangingStart = 489,
3330    AtomAppCompactedV2 = 491,
3331    AtomDisplayBrightnessChanged = 494,
3332    AtomActivityActionBlocked = 495,
3333    AtomNetworkDnsServerSupportReported = 504,
3334    AtomVmBooted = 505,
3335    AtomVmExited = 506,
3336    AtomAmbientBrightnessStatsReported = 507,
3337    AtomMediametricsSpatializercapabilitiesReported = 508,
3338    AtomMediametricsSpatializerdeviceenabledReported = 509,
3339    AtomMediametricsHeadtrackerdeviceenabledReported = 510,
3340    AtomMediametricsHeadtrackerdevicesupportedReported = 511,
3341    AtomHearingAidInfoReported = 513,
3342    AtomDeviceWideJobConstraintChanged = 514,
3343    AtomAmbientModeChanged = 515,
3344    AtomAnrLatencyReported = 516,
3345    AtomResourceApiInfo = 517,
3346    AtomSystemDefaultNetworkChanged = 518,
3347    AtomIwlanSetupDataCallResultReported = 519,
3348    AtomIwlanPdnDisconnectedReasonReported = 520,
3349    AtomAirplaneModeSessionReported = 521,
3350    AtomVmCpuStatusReported = 522,
3351    AtomVmMemStatusReported = 523,
3352    AtomPackageInstallationSessionReported = 524,
3353    AtomDefaultNetworkRematchInfo = 525,
3354    AtomNetworkSelectionPerformance = 526,
3355    AtomNetworkNsdReported = 527,
3356    AtomBluetoothDisconnectionReasonReported = 529,
3357    AtomBluetoothLocalVersionsReported = 530,
3358    AtomBluetoothRemoteSupportedFeaturesReported = 531,
3359    AtomBluetoothLocalSupportedFeaturesReported = 532,
3360    AtomBluetoothGattAppInfo = 533,
3361    AtomBrightnessConfigurationUpdated = 534,
3362    AtomWearMediaOutputSwitcherLaunched = 538,
3363    AtomWearMediaOutputSwitcherFinished = 539,
3364    AtomWearMediaOutputSwitcherConnectionReported = 540,
3365    AtomWearMediaOutputSwitcherDeviceScanTriggered = 541,
3366    AtomWearMediaOutputSwitcherFirstDeviceScanLatency = 542,
3367    AtomWearMediaOutputSwitcherConnectDeviceLatency = 543,
3368    AtomPackageManagerSnapshotReported = 544,
3369    AtomPackageManagerAppsFilterCacheBuildReported = 545,
3370    AtomPackageManagerAppsFilterCacheUpdateReported = 546,
3371    AtomLauncherImpressionEvent = 547,
3372    AtomWearMediaOutputSwitcherAllDevicesScanLatency = 549,
3373    AtomWsWatchFaceEdited = 551,
3374    AtomWsWatchFaceFavoriteActionReported = 552,
3375    AtomWsWatchFaceSetActionReported = 553,
3376    AtomPackageUninstallationReported = 554,
3377    AtomGameModeChanged = 555,
3378    AtomGameModeConfigurationChanged = 556,
3379    AtomBedtimeModeStateChanged = 557,
3380    AtomNetworkSliceSessionEnded = 558,
3381    AtomNetworkSliceDailyDataUsageReported = 559,
3382    AtomNfcTagTypeOccurred = 560,
3383    AtomNfcAidConflictOccurred = 561,
3384    AtomNfcReaderConflictOccurred = 562,
3385    AtomWsTileListChanged = 563,
3386    AtomGetTypeAccessedWithoutPermission = 564,
3387    AtomMobileBundledAppInfoGathered = 566,
3388    AtomWsWatchFaceComplicationSetChanged = 567,
3389    AtomMediaDrmCreated = 568,
3390    AtomMediaDrmErrored = 569,
3391    AtomMediaDrmSessionOpened = 570,
3392    AtomMediaDrmSessionClosed = 571,
3393    AtomUserSelectedResolution = 572,
3394    AtomUnsafeIntentEventReported = 573,
3395    AtomPerformanceHintSessionReported = 574,
3396    AtomMediametricsMidiDeviceCloseReported = 576,
3397    AtomBiometricTouchReported = 577,
3398    AtomHotwordAudioEgressEventReported = 578,
3399    AtomLocationEnabledStateChanged = 580,
3400    AtomImeRequestFinished = 581,
3401    AtomUsbComplianceWarningsReported = 582,
3402    AtomAppSupportedLocalesChanged = 583,
3403    AtomMediaProviderVolumeRecoveryReported = 586,
3404    AtomBiometricPropertiesCollected = 587,
3405    AtomKernelWakeupAttributed = 588,
3406    AtomScreenStateChangedV2 = 589,
3407    AtomWsBackupActionReported = 590,
3408    AtomWsRestoreActionReported = 591,
3409    AtomDeviceLogAccessEventReported = 592,
3410    AtomMediaSessionUpdated = 594,
3411    AtomWearOobeStateChanged = 595,
3412    AtomWsNotificationUpdated = 596,
3413    AtomNetworkValidationFailureStatsDailyReported = 601,
3414    AtomWsComplicationTapped = 602,
3415    AtomWsNotificationBlocking = 780,
3416    AtomWsNotificationBridgemodeUpdated = 822,
3417    AtomWsNotificationDismissalActioned = 823,
3418    AtomWsNotificationActioned = 824,
3419    AtomWsNotificationLatency = 880,
3420    AtomWifiBytesTransfer = 10000,
3421    AtomWifiBytesTransferByFgBg = 10001,
3422    AtomMobileBytesTransfer = 10002,
3423    AtomMobileBytesTransferByFgBg = 10003,
3424    AtomBluetoothBytesTransfer = 10006,
3425    AtomKernelWakelock = 10004,
3426    AtomSubsystemSleepState = 10005,
3427    AtomCpuTimePerUid = 10009,
3428    AtomCpuTimePerUidFreq = 10010,
3429    AtomWifiActivityInfo = 10011,
3430    AtomModemActivityInfo = 10012,
3431    AtomBluetoothActivityInfo = 10007,
3432    AtomProcessMemoryState = 10013,
3433    AtomSystemElapsedRealtime = 10014,
3434    AtomSystemUptime = 10015,
3435    AtomCpuActiveTime = 10016,
3436    AtomCpuClusterTime = 10017,
3437    AtomDiskSpace = 10018,
3438    AtomRemainingBatteryCapacity = 10019,
3439    AtomFullBatteryCapacity = 10020,
3440    AtomTemperature = 10021,
3441    AtomBinderCalls = 10022,
3442    AtomBinderCallsExceptions = 10023,
3443    AtomLooperStats = 10024,
3444    AtomDiskStats = 10025,
3445    AtomDirectoryUsage = 10026,
3446    AtomAppSize = 10027,
3447    AtomCategorySize = 10028,
3448    AtomProcStats = 10029,
3449    AtomBatteryVoltage = 10030,
3450    AtomNumFingerprintsEnrolled = 10031,
3451    AtomDiskIo = 10032,
3452    AtomPowerProfile = 10033,
3453    AtomProcStatsPkgProc = 10034,
3454    AtomProcessCpuTime = 10035,
3455    AtomCpuTimePerThreadFreq = 10037,
3456    AtomOnDevicePowerMeasurement = 10038,
3457    AtomDeviceCalculatedPowerUse = 10039,
3458    AtomProcessMemoryHighWaterMark = 10042,
3459    AtomBatteryLevel = 10043,
3460    AtomBuildInformation = 10044,
3461    AtomBatteryCycleCount = 10045,
3462    AtomDebugElapsedClock = 10046,
3463    AtomDebugFailingElapsedClock = 10047,
3464    AtomNumFacesEnrolled = 10048,
3465    AtomRoleHolder = 10049,
3466    AtomDangerousPermissionState = 10050,
3467    AtomTrainInfo = 10051,
3468    AtomTimeZoneDataInfo = 10052,
3469    AtomExternalStorageInfo = 10053,
3470    AtomGpuStatsGlobalInfo = 10054,
3471    AtomGpuStatsAppInfo = 10055,
3472    AtomSystemIonHeapSize = 10056,
3473    AtomAppsOnExternalStorageInfo = 10057,
3474    AtomFaceSettings = 10058,
3475    AtomCoolingDevice = 10059,
3476    AtomAppOps = 10060,
3477    AtomProcessSystemIonHeapSize = 10061,
3478    AtomSurfaceflingerStatsGlobalInfo = 10062,
3479    AtomSurfaceflingerStatsLayerInfo = 10063,
3480    AtomProcessMemorySnapshot = 10064,
3481    AtomVmsClientStats = 10065,
3482    AtomNotificationRemoteViews = 10066,
3483    AtomDangerousPermissionStateSampled = 10067,
3484    AtomGraphicsStats = 10068,
3485    AtomRuntimeAppOpAccess = 10069,
3486    AtomIonHeapSize = 10070,
3487    AtomPackageNotificationPreferences = 10071,
3488    AtomPackageNotificationChannelPreferences = 10072,
3489    AtomPackageNotificationChannelGroupPreferences = 10073,
3490    AtomGnssStats = 10074,
3491    AtomAttributedAppOps = 10075,
3492    AtomVoiceCallSession = 10076,
3493    AtomVoiceCallRatUsage = 10077,
3494    AtomSimSlotState = 10078,
3495    AtomSupportedRadioAccessFamily = 10079,
3496    AtomSettingSnapshot = 10080,
3497    AtomBlobInfo = 10081,
3498    AtomDataUsageBytesTransfer = 10082,
3499    AtomBytesTransferByTagAndMetered = 10083,
3500    AtomDndModeRule = 10084,
3501    AtomGeneralExternalStorageAccessStats = 10085,
3502    AtomIncomingSms = 10086,
3503    AtomOutgoingSms = 10087,
3504    AtomCarrierIdTableVersion = 10088,
3505    AtomDataCallSession = 10089,
3506    AtomCellularServiceState = 10090,
3507    AtomCellularDataServiceSwitch = 10091,
3508    AtomSystemMemory = 10092,
3509    AtomImsRegistrationTermination = 10093,
3510    AtomImsRegistrationStats = 10094,
3511    AtomCpuTimePerClusterFreq = 10095,
3512    AtomCpuCyclesPerUidCluster = 10096,
3513    AtomDeviceRotatedData = 10097,
3514    AtomCpuCyclesPerThreadGroupCluster = 10098,
3515    AtomMediaDrmActivityInfo = 10099,
3516    AtomOemManagedBytesTransfer = 10100,
3517    AtomGnssPowerStats = 10101,
3518    AtomTimeZoneDetectorState = 10102,
3519    AtomKeystore2StorageStats = 10103,
3520    AtomRkpPoolStats = 10104,
3521    AtomProcessDmabufMemory = 10105,
3522    AtomPendingAlarmInfo = 10106,
3523    AtomUserLevelHibernatedApps = 10107,
3524    AtomLauncherLayoutSnapshot = 10108,
3525    AtomGlobalHibernatedApps = 10109,
3526    AtomInputEventLatencySketch = 10110,
3527    AtomBatteryUsageStatsBeforeReset = 10111,
3528    AtomBatteryUsageStatsSinceReset = 10112,
3529    AtomBatteryUsageStatsSinceResetUsingPowerProfileModel = 10113,
3530    AtomInstalledIncrementalPackage = 10114,
3531    AtomTelephonyNetworkRequests = 10115,
3532    AtomAppSearchStorageInfo = 10116,
3533    AtomVmstat = 10117,
3534    AtomKeystore2KeyCreationWithGeneralInfo = 10118,
3535    AtomKeystore2KeyCreationWithAuthInfo = 10119,
3536    AtomKeystore2KeyCreationWithPurposeAndModesInfo = 10120,
3537    AtomKeystore2AtomWithOverflow = 10121,
3538    AtomKeystore2KeyOperationWithPurposeAndModesInfo = 10122,
3539    AtomKeystore2KeyOperationWithGeneralInfo = 10123,
3540    AtomRkpErrorStats = 10124,
3541    AtomKeystore2CrashStats = 10125,
3542    AtomVendorApexInfo = 10126,
3543    AtomAccessibilityShortcutStats = 10127,
3544    AtomAccessibilityFloatingMenuStats = 10128,
3545    AtomDataUsageBytesTransferV2 = 10129,
3546    AtomMediaCapabilities = 10130,
3547    AtomCarWatchdogSystemIoUsageSummary = 10131,
3548    AtomCarWatchdogUidIoUsageSummary = 10132,
3549    AtomImsRegistrationFeatureTagStats = 10133,
3550    AtomRcsClientProvisioningStats = 10134,
3551    AtomRcsAcsProvisioningStats = 10135,
3552    AtomSipDelegateStats = 10136,
3553    AtomSipTransportFeatureTagStats = 10137,
3554    AtomSipMessageResponse = 10138,
3555    AtomSipTransportSession = 10139,
3556    AtomImsDedicatedBearerListenerEvent = 10140,
3557    AtomImsDedicatedBearerEvent = 10141,
3558    AtomImsRegistrationServiceDescStats = 10142,
3559    AtomUceEventStats = 10143,
3560    AtomPresenceNotifyEvent = 10144,
3561    AtomGbaEvent = 10145,
3562    AtomPerSimStatus = 10146,
3563    AtomGpuWorkPerUid = 10147,
3564    AtomPersistentUriPermissionsAmountPerPackage = 10148,
3565    AtomSignedPartitionInfo = 10149,
3566    AtomPinnedFileSizesPerPackage = 10150,
3567    AtomPendingIntentsPerPackage = 10151,
3568    AtomUserInfo = 10152,
3569    AtomTelephonyNetworkRequestsV2 = 10153,
3570    AtomDeviceTelephonyProperties = 10154,
3571    AtomRemoteKeyProvisioningErrorCounts = 10155,
3572    AtomSafetyState = 10156,
3573    AtomIncomingMms = 10157,
3574    AtomOutgoingMms = 10158,
3575    AtomMultiUserInfo = 10160,
3576    AtomNetworkBpfMapInfo = 10161,
3577    AtomOutgoingShortCodeSms = 10162,
3578    AtomConnectivityStateSample = 10163,
3579    AtomNetworkSelectionRematchReasonsInfo = 10164,
3580    AtomGameModeInfo = 10165,
3581    AtomGameModeConfiguration = 10166,
3582    AtomGameModeListener = 10167,
3583    AtomNetworkSliceRequestCount = 10168,
3584    AtomWsTileSnapshot = 10169,
3585    AtomWsActiveWatchFaceComplicationSetSnapshot = 10170,
3586    AtomProcessState = 10171,
3587    AtomProcessAssociation = 10172,
3588    AtomAdpfSystemComponentInfo = 10173,
3589    AtomNotificationMemoryUse = 10174,
3590    AtomHdrCapabilities = 10175,
3591    AtomWsFavouriteWatchFaceListSnapshot = 10176,
3592    AtomAccessibilityCheckResultReported = 910,
3593    AtomAdaptiveAuthUnlockAfterLockReported = 820,
3594    AtomThermalStatusCalled = 772,
3595    AtomThermalHeadroomCalled = 773,
3596    AtomThermalHeadroomThresholdsCalled = 774,
3597    AtomAdpfHintSessionTidCleanup = 839,
3598    AtomThermalHeadroomThresholds = 10201,
3599    AtomAdpfSessionSnapshot = 10218,
3600    AtomJsscriptengineLatencyReported = 483,
3601    AtomAdServicesApiCalled = 435,
3602    AtomAdServicesMesurementReportsUploaded = 436,
3603    AtomMobileDataDownloadFileGroupStatusReported = 490,
3604    AtomMobileDataDownloadDownloadResultReported = 502,
3605    AtomAdServicesSettingsUsageReported = 493,
3606    AtomBackgroundFetchProcessReported = 496,
3607    AtomUpdateCustomAudienceProcessReported = 497,
3608    AtomRunAdBiddingProcessReported = 498,
3609    AtomRunAdScoringProcessReported = 499,
3610    AtomRunAdSelectionProcessReported = 500,
3611    AtomRunAdBiddingPerCaProcessReported = 501,
3612    AtomMobileDataDownloadFileGroupStorageStatsReported = 503,
3613    AtomAdServicesMeasurementRegistrations = 512,
3614    AtomAdServicesGetTopicsReported = 535,
3615    AtomAdServicesEpochComputationGetTopTopicsReported = 536,
3616    AtomAdServicesEpochComputationClassifierReported = 537,
3617    AtomAdServicesBackCompatGetTopicsReported = 598,
3618    AtomAdServicesBackCompatEpochComputationClassifierReported = 599,
3619    AtomAdServicesMeasurementDebugKeys = 640,
3620    AtomAdServicesErrorReported = 662,
3621    AtomAdServicesBackgroundJobsExecutionReported = 663,
3622    AtomAdServicesMeasurementDelayedSourceRegistration = 673,
3623    AtomAdServicesMeasurementAttribution = 674,
3624    AtomAdServicesMeasurementJobs = 675,
3625    AtomAdServicesMeasurementWipeout = 676,
3626    AtomAdServicesMeasurementAdIdMatchForDebugKeys = 695,
3627    AtomAdServicesEnrollmentDataStored = 697,
3628    AtomAdServicesEnrollmentFileDownloaded = 698,
3629    AtomAdServicesEnrollmentMatched = 699,
3630    AtomAdServicesConsentMigrated = 702,
3631    AtomAdServicesEnrollmentFailed = 714,
3632    AtomAdServicesMeasurementClickVerification = 756,
3633    AtomAdServicesEncryptionKeyFetched = 765,
3634    AtomAdServicesEncryptionKeyDbTransactionEnded = 766,
3635    AtomDestinationRegisteredBeacons = 767,
3636    AtomReportInteractionApiCalled = 768,
3637    AtomInteractionReportingTableCleared = 769,
3638    AtomAppManifestConfigHelperCalled = 788,
3639    AtomAdFilteringProcessJoinCaReported = 793,
3640    AtomAdFilteringProcessAdSelectionReported = 794,
3641    AtomAdCounterHistogramUpdaterReported = 795,
3642    AtomSignatureVerification = 807,
3643    AtomKAnonImmediateSignJoinStatusReported = 808,
3644    AtomKAnonBackgroundJobStatusReported = 809,
3645    AtomKAnonInitializeStatusReported = 810,
3646    AtomKAnonSignStatusReported = 811,
3647    AtomKAnonJoinStatusReported = 812,
3648    AtomKAnonKeyAttestationStatusReported = 813,
3649    AtomGetAdSelectionDataApiCalled = 814,
3650    AtomGetAdSelectionDataBuyerInputGenerated = 815,
3651    AtomBackgroundJobSchedulingReported = 834,
3652    AtomTopicsEncryptionEpochComputationReported = 840,
3653    AtomTopicsEncryptionGetTopicsReported = 841,
3654    AtomAdservicesShellCommandCalled = 842,
3655    AtomUpdateSignalsApiCalled = 843,
3656    AtomEncodingJobRun = 844,
3657    AtomEncodingJsFetch = 845,
3658    AtomEncodingJsExecution = 846,
3659    AtomPersistAdSelectionResultCalled = 847,
3660    AtomServerAuctionKeyFetchCalled = 848,
3661    AtomServerAuctionBackgroundKeyFetchEnabled = 849,
3662    AtomAdServicesMeasurementProcessOdpRegistration = 864,
3663    AtomAdServicesMeasurementNotifyRegistrationToOdp = 865,
3664    AtomSelectAdsFromOutcomesApiCalled = 876,
3665    AtomReportImpressionApiCalled = 877,
3666    AtomAdServicesEnrollmentTransactionStats = 885,
3667    AtomAdServicesCobaltLoggerEventReported = 902,
3668    AtomAdServicesCobaltPeriodicJobEventReported = 903,
3669    AtomUpdateSignalsProcessReported = 905,
3670    AtomTopicsScheduleEpochJobSettingReported = 930,
3671    AtomAiWallpapersButtonPressed = 706,
3672    AtomAiWallpapersTemplateSelected = 707,
3673    AtomAiWallpapersTermSelected = 708,
3674    AtomAiWallpapersWallpaperSet = 709,
3675    AtomAiWallpapersSessionSummary = 710,
3676    AtomApexInstallationRequested = 732,
3677    AtomApexInstallationStaged = 733,
3678    AtomApexInstallationEnded = 734,
3679    AtomAppSearchSetSchemaStatsReported = 385,
3680    AtomAppSearchSchemaMigrationStatsReported = 579,
3681    AtomAppSearchUsageSearchIntentStatsReported = 825,
3682    AtomAppSearchUsageSearchIntentRawQueryStatsReported = 826,
3683    AtomAppSearchAppsIndexerStatsReported = 909,
3684    AtomArtDatumReported = 332,
3685    AtomArtDeviceDatumReported = 550,
3686    AtomArtDatumDeltaReported = 565,
3687    AtomArtDex2oatReported = 929,
3688    AtomArtDeviceStatus = 10205,
3689    AtomBackgroundDexoptJobEnded = 467,
3690    AtomPrerebootDexoptJobEnded = 883,
3691    AtomOdrefreshReported = 366,
3692    AtomOdsignReported = 548,
3693    AtomAutofillUiEventReported = 603,
3694    AtomAutofillFillRequestReported = 604,
3695    AtomAutofillFillResponseReported = 605,
3696    AtomAutofillSaveEventReported = 606,
3697    AtomAutofillSessionCommitted = 607,
3698    AtomAutofillFieldClassificationEventReported = 659,
3699    AtomCarRecentsEventReported = 770,
3700    AtomCarCalmModeEventReported = 797,
3701    AtomCarWakeupFromSuspendReported = 852,
3702    AtomPluginInitialized = 655,
3703    AtomBluetoothHashedDeviceNameReported = 613,
3704    AtomBluetoothL2capCocClientConnection = 614,
3705    AtomBluetoothL2capCocServerConnection = 615,
3706    AtomBluetoothLeSessionConnected = 656,
3707    AtomRestrictedBluetoothDeviceNameReported = 666,
3708    AtomBluetoothProfileConnectionAttempted = 696,
3709    AtomBluetoothContentProfileErrorReported = 781,
3710    AtomBluetoothRfcommConnectionAttempted = 782,
3711    AtomRemoteDeviceInformationWithMetricId = 862,
3712    AtomLeAppScanStateChanged = 870,
3713    AtomLeRadioScanStopped = 871,
3714    AtomLeScanResultReceived = 872,
3715    AtomLeScanAbused = 873,
3716    AtomLeAdvStateChanged = 874,
3717    AtomLeAdvErrorReported = 875,
3718    AtomA2dpSessionReported = 904,
3719    AtomBluetoothCrossLayerEventReported = 916,
3720    AtomBroadcastAudioSessionReported = 927,
3721    AtomBroadcastAudioSyncReported = 928,
3722    AtomBluetoothRfcommConnectionReportedAtClose = 982,
3723    AtomBluetoothLeConnection = 988,
3724    AtomBroadcastSent = 922,
3725    AtomCameraFeatureCombinationQueryEvent = 900,
3726    AtomCertificateTransparencyLogListStateChanged = 934,
3727    AtomCertificateTransparencyLogListUpdateFailed = 972,
3728    AtomDailyKeepaliveInfoReported = 650,
3729    AtomNetworkRequestStateChanged = 779,
3730    AtomTetheringActiveSessionsReported = 925,
3731    AtomNetworkStatsRecorderFileOperated = 783,
3732    AtomCoreNetworkingTerribleErrorOccurred = 979,
3733    AtomApfSessionInfoReported = 777,
3734    AtomIpClientRaInfoReported = 778,
3735    AtomVpnConnectionStateChanged = 850,
3736    AtomVpnConnectionReported = 851,
3737    AtomCpuPolicy = 10199,
3738    AtomCredentialManagerApiCalled = 585,
3739    AtomCredentialManagerInitPhaseReported = 651,
3740    AtomCredentialManagerCandidatePhaseReported = 652,
3741    AtomCredentialManagerFinalPhaseReported = 653,
3742    AtomCredentialManagerTotalReported = 667,
3743    AtomCredentialManagerFinalnouidReported = 668,
3744    AtomCredentialManagerGetReported = 669,
3745    AtomCredentialManagerAuthClickReported = 670,
3746    AtomCredentialManagerApiv2Called = 671,
3747    AtomCronetEngineCreated = 703,
3748    AtomCronetTrafficReported = 704,
3749    AtomCronetEngineBuilderInitialized = 762,
3750    AtomCronetHttpFlagsInitialized = 763,
3751    AtomCronetInitialized = 764,
3752    AtomDesktopModeUiChanged = 818,
3753    AtomDesktopModeSessionTaskUpdate = 819,
3754    AtomDesktopModeTaskSizeUpdated = 935,
3755    AtomDeviceLockCheckInRequestReported = 726,
3756    AtomDeviceLockProvisioningCompleteReported = 727,
3757    AtomDeviceLockKioskAppRequestReported = 728,
3758    AtomDeviceLockCheckInRetryReported = 789,
3759    AtomDeviceLockProvisionFailureReported = 790,
3760    AtomDeviceLockLockUnlockDeviceFailureReported = 791,
3761    AtomDevicePolicyManagementMode = 10216,
3762    AtomDevicePolicyState = 10217,
3763    AtomDisplayModeDirectorVoteChanged = 792,
3764    AtomExternalDisplayStateChanged = 806,
3765    AtomDndStateChanged = 657,
3766    AtomDreamSettingChanged = 705,
3767    AtomDreamSettingSnapshot = 10192,
3768    AtomExpressEventReported = 528,
3769    AtomExpressHistogramSampleReported = 593,
3770    AtomExpressUidEventReported = 644,
3771    AtomExpressUidHistogramSampleReported = 658,
3772    AtomFederatedComputeApiCalled = 712,
3773    AtomFederatedComputeTrainingEventReported = 771,
3774    AtomExampleIteratorNextLatencyReported = 838,
3775    AtomFullScreenIntentLaunched = 631,
3776    AtomBalAllowed = 632,
3777    AtomInTaskActivityStarted = 685,
3778    AtomDeviceOrientationChanged = 906,
3779    AtomCachedAppsHighWatermark = 10189,
3780    AtomStylusPredictionMetricsReported = 718,
3781    AtomUserRiskEventReported = 725,
3782    AtomMediaProjectionStateChanged = 729,
3783    AtomMediaProjectionTargetChanged = 730,
3784    AtomExcessiveBinderProxyCountReported = 853,
3785    AtomProxyBytesTransferByFgBg = 10200,
3786    AtomMobileBytesTransferByProcState = 10204,
3787    AtomBiometricFrrNotification = 817,
3788    AtomSensitiveContentMediaProjectionSession = 830,
3789    AtomSensitiveNotificationAppProtectionSession = 831,
3790    AtomSensitiveNotificationAppProtectionApplied = 832,
3791    AtomSensitiveNotificationRedaction = 833,
3792    AtomSensitiveContentAppProtection = 835,
3793    AtomAppRestrictionStateChanged = 866,
3794    AtomBatteryUsageStatsPerUid = 10209,
3795    AtomPostgcMemorySnapshot = 924,
3796    AtomPowerSaveTempAllowlistChanged = 926,
3797    AtomAppOpAccessTracked = 931,
3798    AtomContentOrFileUriEventReported = 933,
3799    AtomApplicationGrammaticalInflectionChanged = 584,
3800    AtomSystemGrammaticalInflectionChanged = 816,
3801    AtomBatteryHealth = 10220,
3802    AtomHdmiEarcStatusReported = 701,
3803    AtomHdmiSoundbarModeStatusReported = 724,
3804    AtomHealthConnectApiCalled = 616,
3805    AtomHealthConnectUsageStats = 617,
3806    AtomHealthConnectStorageStats = 618,
3807    AtomHealthConnectApiInvoked = 643,
3808    AtomExerciseRouteApiCalled = 654,
3809    AtomHealthConnectExportInvoked = 907,
3810    AtomHealthConnectImportInvoked = 918,
3811    AtomHealthConnectExportImportStatsReported = 919,
3812    AtomHealthConnectUiImpression = 623,
3813    AtomHealthConnectUiInteraction = 624,
3814    AtomHealthConnectAppOpenedReported = 625,
3815    AtomHotwordEgressSizeAtomReported = 761,
3816    AtomIkeSessionTerminated = 678,
3817    AtomIkeLivenessCheckSessionValidated = 760,
3818    AtomNegotiatedSecurityAssociation = 821,
3819    AtomKeyboardConfigured = 682,
3820    AtomKeyboardSystemsEventReported = 683,
3821    AtomInputdeviceUsageReported = 686,
3822    AtomInputEventLatencyReported = 932,
3823    AtomTouchpadUsage = 10191,
3824    AtomKernelOomKillOccurred = 754,
3825    AtomEmergencyStateChanged = 633,
3826    AtomChreSignificantMotionStateChanged = 868,
3827    AtomPopulationDensityProviderLoadingReported = 1002,
3828    AtomDensityBasedCoarseLocationsUsageReported = 1003,
3829    AtomDensityBasedCoarseLocationsProviderQueryReported = 1004,
3830    AtomMediaCodecReclaimRequestCompleted = 600,
3831    AtomMediaCodecStarted = 641,
3832    AtomMediaCodecStopped = 642,
3833    AtomMediaCodecRendered = 684,
3834    AtomMediaEditingEndedReported = 798,
3835    AtomMteState = 10181,
3836    AtomMicroxrDeviceBootCompleteReported = 901,
3837    AtomNfcObserveModeStateChanged = 855,
3838    AtomNfcFieldChanged = 856,
3839    AtomNfcPollingLoopNotificationReported = 857,
3840    AtomNfcProprietaryCapabilitiesReported = 858,
3841    AtomOndevicepersonalizationApiCalled = 711,
3842    AtomComponentStateChangedReported = 863,
3843    AtomPdfLoadReported = 859,
3844    AtomPdfApiUsageReported = 860,
3845    AtomPdfSearchReported = 861,
3846    AtomPressureStallInformation = 10229,
3847    AtomPermissionRationaleDialogViewed = 645,
3848    AtomPermissionRationaleDialogActionReported = 646,
3849    AtomAppDataSharingUpdatesNotificationInteraction = 647,
3850    AtomAppDataSharingUpdatesFragmentViewed = 648,
3851    AtomAppDataSharingUpdatesFragmentActionReported = 649,
3852    AtomEnhancedConfirmationDialogResultReported = 827,
3853    AtomEnhancedConfirmationRestrictionCleared = 828,
3854    AtomPhotopickerSessionInfoReported = 886,
3855    AtomPhotopickerApiInfoReported = 887,
3856    AtomPhotopickerUiEventLogged = 888,
3857    AtomPhotopickerMediaItemStatusReported = 889,
3858    AtomPhotopickerPreviewInfoLogged = 890,
3859    AtomPhotopickerMenuInteractionLogged = 891,
3860    AtomPhotopickerBannerInteractionLogged = 892,
3861    AtomPhotopickerMediaLibraryInfoLogged = 893,
3862    AtomPhotopickerPageInfoLogged = 894,
3863    AtomPhotopickerMediaGridSyncInfoReported = 895,
3864    AtomPhotopickerAlbumSyncInfoReported = 896,
3865    AtomPhotopickerSearchInfoReported = 897,
3866    AtomSearchDataExtractionDetailsReported = 898,
3867    AtomEmbeddedPhotopickerInfoReported = 899,
3868    AtomAtom9999 = 9999,
3869    AtomAtom99999 = 99999,
3870    AtomScreenOffReported = 776,
3871    AtomScreenTimeoutOverrideReported = 836,
3872    AtomScreenInteractiveSessionReported = 837,
3873    AtomScreenDimReported = 867,
3874    AtomMediaProviderDatabaseRollbackReported = 784,
3875    AtomBackupSetupStatusReported = 785,
3876    AtomRangingSessionConfigured = 993,
3877    AtomRangingSessionStarted = 994,
3878    AtomRangingSessionClosed = 995,
3879    AtomRangingTechnologyStarted = 996,
3880    AtomRangingTechnologyStopped = 997,
3881    AtomRkpdPoolStats = 664,
3882    AtomRkpdClientOperation = 665,
3883    AtomSandboxApiCalled = 488,
3884    AtomSandboxActivityEventOccurred = 735,
3885    AtomSdkSandboxRestrictedAccessInSession = 796,
3886    AtomSandboxSdkStorage = 10159,
3887    AtomSelinuxAuditLog = 799,
3888    AtomSettingsSpaReported = 622,
3889    AtomTestExtensionAtomReported = 660,
3890    AtomTestRestrictedAtomReported = 672,
3891    AtomStatsSocketLossReported = 752,
3892    AtomLockscreenShortcutSelected = 611,
3893    AtomLockscreenShortcutTriggered = 612,
3894    AtomLauncherImpressionEventV2 = 716,
3895    AtomDisplaySwitchLatencyTracked = 753,
3896    AtomNotificationListenerService = 829,
3897    AtomNavHandleTouchPoints = 869,
3898    AtomCommunalHubWidgetEventReported = 908,
3899    AtomCommunalHubSnapshot = 10226,
3900    AtomEmergencyNumberDialed = 637,
3901    AtomCallStats = 10221,
3902    AtomCallAudioRouteStats = 10222,
3903    AtomTelecomApiStats = 10223,
3904    AtomTelecomErrorStats = 10224,
3905    AtomCellularRadioPowerStateChanged = 713,
3906    AtomEmergencyNumbersInfo = 10180,
3907    AtomDataNetworkValidation = 10207,
3908    AtomDataRatStateChanged = 854,
3909    AtomConnectedChannelChanged = 882,
3910    AtomIwlanUnderlyingNetworkValidationResultReported = 923,
3911    AtomQualifiedRatListChanged = 634,
3912    AtomQnsImsCallDropStats = 635,
3913    AtomQnsFallbackRestrictionChanged = 636,
3914    AtomQnsRatPreferenceMismatchInfo = 10177,
3915    AtomQnsHandoverTimeMillis = 10178,
3916    AtomQnsHandoverPingpong = 10179,
3917    AtomSatelliteController = 10182,
3918    AtomSatelliteSession = 10183,
3919    AtomSatelliteIncomingDatagram = 10184,
3920    AtomSatelliteOutgoingDatagram = 10185,
3921    AtomSatelliteProvision = 10186,
3922    AtomSatelliteSosMessageRecommender = 10187,
3923    AtomCarrierRoamingSatelliteSession = 10211,
3924    AtomCarrierRoamingSatelliteControllerStats = 10212,
3925    AtomControllerStatsPerPackage = 10213,
3926    AtomSatelliteEntitlement = 10214,
3927    AtomSatelliteConfigUpdater = 10215,
3928    AtomSatelliteAccessController = 10219,
3929    AtomCellularIdentifierDisclosed = 800,
3930    AtomThreadnetworkTelemetryDataReported = 738,
3931    AtomThreadnetworkTopoEntryRepeated = 739,
3932    AtomThreadnetworkDeviceInfoReported = 740,
3933    AtomBootIntegrityInfoReported = 775,
3934    AtomTvLowPowerStandbyPolicy = 679,
3935    AtomExternalTvInputEvent = 717,
3936    AtomTestUprobestatsAtomReported = 915,
3937    AtomUwbActivityInfo = 10188,
3938    AtomMediatorUpdated = 721,
3939    AtomSysproxyBluetoothBytesTransfer = 10196,
3940    AtomSysproxyConnectionUpdated = 786,
3941    AtomWearCompanionConnectionState = 921,
3942    AtomMediaActionReported = 608,
3943    AtomMediaControlsLaunched = 609,
3944    AtomMediaSessionStateChanged = 677,
3945    AtomWearMediaOutputSwitcherDeviceScanApiLatency = 757,
3946    AtomWearMediaOutputSwitcherSassDeviceUnavailable = 758,
3947    AtomWearMediaOutputSwitcherFastpairApiTimeout = 759,
3948    AtomWearModeStateChanged = 715,
3949    AtomRendererInitialized = 736,
3950    AtomSchemaVersionReceived = 737,
3951    AtomLayoutInspected = 741,
3952    AtomLayoutExpressionInspected = 742,
3953    AtomLayoutAnimationsInspected = 743,
3954    AtomMaterialComponentsInspected = 744,
3955    AtomTileRequested = 745,
3956    AtomStateResponseReceived = 746,
3957    AtomTileResponseReceived = 747,
3958    AtomInflationFinished = 748,
3959    AtomInflationFailed = 749,
3960    AtomIgnoredInflationFailuresReported = 750,
3961    AtomDrawableRendered = 751,
3962    AtomWearTimeSyncRequested = 911,
3963    AtomWearTimeUpdateStarted = 912,
3964    AtomWearTimeSyncAttemptCompleted = 913,
3965    AtomWearTimeChanged = 914,
3966    AtomWearAdaptiveSuspendStatsReported = 619,
3967    AtomWearPowerAnomalyServiceOperationalStatsReported = 620,
3968    AtomWearPowerAnomalyServiceEventStatsReported = 621,
3969    AtomWsWearTimeSession = 610,
3970    AtomWsIncomingCallActionReported = 626,
3971    AtomWsCallDisconnectionReported = 627,
3972    AtomWsCallDurationReported = 628,
3973    AtomWsCallUserExperienceLatencyReported = 629,
3974    AtomWsCallInteractionReported = 630,
3975    AtomWsOnBodyStateChanged = 787,
3976    AtomWsWatchFaceRestrictedComplicationsImpacted = 802,
3977    AtomWsWatchFaceDefaultRestrictedComplicationsRemoved = 803,
3978    AtomWsComplicationsImpactedNotificationEventReported = 804,
3979    AtomWsRemoteEventUsageReported = 920,
3980    AtomWsBugreportRequested = 936,
3981    AtomWsBugreportTriggered = 937,
3982    AtomWsBugreportFinished = 938,
3983    AtomWsBugreportResultReceived = 939,
3984    AtomWsStandaloneModeSnapshot = 10197,
3985    AtomWsFavoriteWatchFaceSnapshot = 10206,
3986    AtomWsPhotosWatchFaceFeatureSnapshot = 10225,
3987    AtomWsWatchFaceCustomizationSnapshot = 10227,
3988    AtomWearPowerMenuOpened = 731,
3989    AtomWearAssistantOpened = 755,
3990    AtomFirstOverlayStateChanged = 917,
3991    AtomWifiAwareNdpReported = 638,
3992    AtomWifiAwareAttachReported = 639,
3993    AtomWifiSelfRecoveryTriggered = 661,
3994    AtomSoftApStarted = 680,
3995    AtomSoftApStopped = 681,
3996    AtomWifiLockReleased = 687,
3997    AtomWifiLockDeactivated = 688,
3998    AtomWifiConfigSaved = 689,
3999    AtomWifiAwareResourceUsingChanged = 690,
4000    AtomWifiAwareHalApiCalled = 691,
4001    AtomWifiLocalOnlyRequestReceived = 692,
4002    AtomWifiLocalOnlyRequestScanTriggered = 693,
4003    AtomWifiThreadTaskExecuted = 694,
4004    AtomWifiStateChanged = 700,
4005    AtomPnoScanStarted = 719,
4006    AtomPnoScanStopped = 720,
4007    AtomWifiIsUnusableReported = 722,
4008    AtomWifiApCapabilitiesReported = 723,
4009    AtomSoftApStateChanged = 805,
4010    AtomScorerPredictionResultReported = 884,
4011    AtomWifiAwareCapabilities = 10190,
4012    AtomWifiModuleInfo = 10193,
4013    AtomWifiSettingInfo = 10194,
4014    AtomWifiComplexSettingInfo = 10195,
4015    AtomWifiConfiguredNetworkInfo = 10198,
4016}
4017impl AtomId {
4018    /// String value of the enum field names used in the ProtoBuf definition.
4019    ///
4020    /// The values are not transformed in any way and thus are considered stable
4021    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
4022    pub fn as_str_name(&self) -> &'static str {
4023        match self {
4024            AtomId::AtomUnspecified => "ATOM_UNSPECIFIED",
4025            AtomId::AtomBleScanStateChanged => "ATOM_BLE_SCAN_STATE_CHANGED",
4026            AtomId::AtomProcessStateChanged => "ATOM_PROCESS_STATE_CHANGED",
4027            AtomId::AtomBleScanResultReceived => "ATOM_BLE_SCAN_RESULT_RECEIVED",
4028            AtomId::AtomSensorStateChanged => "ATOM_SENSOR_STATE_CHANGED",
4029            AtomId::AtomGpsScanStateChanged => "ATOM_GPS_SCAN_STATE_CHANGED",
4030            AtomId::AtomSyncStateChanged => "ATOM_SYNC_STATE_CHANGED",
4031            AtomId::AtomScheduledJobStateChanged => "ATOM_SCHEDULED_JOB_STATE_CHANGED",
4032            AtomId::AtomScreenBrightnessChanged => "ATOM_SCREEN_BRIGHTNESS_CHANGED",
4033            AtomId::AtomWakelockStateChanged => "ATOM_WAKELOCK_STATE_CHANGED",
4034            AtomId::AtomLongPartialWakelockStateChanged => "ATOM_LONG_PARTIAL_WAKELOCK_STATE_CHANGED",
4035            AtomId::AtomMobileRadioPowerStateChanged => "ATOM_MOBILE_RADIO_POWER_STATE_CHANGED",
4036            AtomId::AtomWifiRadioPowerStateChanged => "ATOM_WIFI_RADIO_POWER_STATE_CHANGED",
4037            AtomId::AtomActivityManagerSleepStateChanged => "ATOM_ACTIVITY_MANAGER_SLEEP_STATE_CHANGED",
4038            AtomId::AtomMemoryFactorStateChanged => "ATOM_MEMORY_FACTOR_STATE_CHANGED",
4039            AtomId::AtomExcessiveCpuUsageReported => "ATOM_EXCESSIVE_CPU_USAGE_REPORTED",
4040            AtomId::AtomCachedKillReported => "ATOM_CACHED_KILL_REPORTED",
4041            AtomId::AtomProcessMemoryStatReported => "ATOM_PROCESS_MEMORY_STAT_REPORTED",
4042            AtomId::AtomLauncherEvent => "ATOM_LAUNCHER_EVENT",
4043            AtomId::AtomBatterySaverModeStateChanged => "ATOM_BATTERY_SAVER_MODE_STATE_CHANGED",
4044            AtomId::AtomDeviceIdleModeStateChanged => "ATOM_DEVICE_IDLE_MODE_STATE_CHANGED",
4045            AtomId::AtomDeviceIdlingModeStateChanged => "ATOM_DEVICE_IDLING_MODE_STATE_CHANGED",
4046            AtomId::AtomAudioStateChanged => "ATOM_AUDIO_STATE_CHANGED",
4047            AtomId::AtomMediaCodecStateChanged => "ATOM_MEDIA_CODEC_STATE_CHANGED",
4048            AtomId::AtomCameraStateChanged => "ATOM_CAMERA_STATE_CHANGED",
4049            AtomId::AtomFlashlightStateChanged => "ATOM_FLASHLIGHT_STATE_CHANGED",
4050            AtomId::AtomUidProcessStateChanged => "ATOM_UID_PROCESS_STATE_CHANGED",
4051            AtomId::AtomProcessLifeCycleStateChanged => "ATOM_PROCESS_LIFE_CYCLE_STATE_CHANGED",
4052            AtomId::AtomScreenStateChanged => "ATOM_SCREEN_STATE_CHANGED",
4053            AtomId::AtomBatteryLevelChanged => "ATOM_BATTERY_LEVEL_CHANGED",
4054            AtomId::AtomChargingStateChanged => "ATOM_CHARGING_STATE_CHANGED",
4055            AtomId::AtomPluggedStateChanged => "ATOM_PLUGGED_STATE_CHANGED",
4056            AtomId::AtomInteractiveStateChanged => "ATOM_INTERACTIVE_STATE_CHANGED",
4057            AtomId::AtomTouchEventReported => "ATOM_TOUCH_EVENT_REPORTED",
4058            AtomId::AtomWakeupAlarmOccurred => "ATOM_WAKEUP_ALARM_OCCURRED",
4059            AtomId::AtomKernelWakeupReported => "ATOM_KERNEL_WAKEUP_REPORTED",
4060            AtomId::AtomWifiLockStateChanged => "ATOM_WIFI_LOCK_STATE_CHANGED",
4061            AtomId::AtomWifiSignalStrengthChanged => "ATOM_WIFI_SIGNAL_STRENGTH_CHANGED",
4062            AtomId::AtomWifiScanStateChanged => "ATOM_WIFI_SCAN_STATE_CHANGED",
4063            AtomId::AtomPhoneSignalStrengthChanged => "ATOM_PHONE_SIGNAL_STRENGTH_CHANGED",
4064            AtomId::AtomSettingChanged => "ATOM_SETTING_CHANGED",
4065            AtomId::AtomActivityForegroundStateChanged => "ATOM_ACTIVITY_FOREGROUND_STATE_CHANGED",
4066            AtomId::AtomIsolatedUidChanged => "ATOM_ISOLATED_UID_CHANGED",
4067            AtomId::AtomPacketWakeupOccurred => "ATOM_PACKET_WAKEUP_OCCURRED",
4068            AtomId::AtomWallClockTimeShifted => "ATOM_WALL_CLOCK_TIME_SHIFTED",
4069            AtomId::AtomAnomalyDetected => "ATOM_ANOMALY_DETECTED",
4070            AtomId::AtomAppBreadcrumbReported => "ATOM_APP_BREADCRUMB_REPORTED",
4071            AtomId::AtomAppStartOccurred => "ATOM_APP_START_OCCURRED",
4072            AtomId::AtomAppStartCanceled => "ATOM_APP_START_CANCELED",
4073            AtomId::AtomAppStartFullyDrawn => "ATOM_APP_START_FULLY_DRAWN",
4074            AtomId::AtomLmkKillOccurred => "ATOM_LMK_KILL_OCCURRED",
4075            AtomId::AtomPictureInPictureStateChanged => "ATOM_PICTURE_IN_PICTURE_STATE_CHANGED",
4076            AtomId::AtomWifiMulticastLockStateChanged => "ATOM_WIFI_MULTICAST_LOCK_STATE_CHANGED",
4077            AtomId::AtomAppStartMemoryStateCaptured => "ATOM_APP_START_MEMORY_STATE_CAPTURED",
4078            AtomId::AtomShutdownSequenceReported => "ATOM_SHUTDOWN_SEQUENCE_REPORTED",
4079            AtomId::AtomBootSequenceReported => "ATOM_BOOT_SEQUENCE_REPORTED",
4080            AtomId::AtomOverlayStateChanged => "ATOM_OVERLAY_STATE_CHANGED",
4081            AtomId::AtomForegroundServiceStateChanged => "ATOM_FOREGROUND_SERVICE_STATE_CHANGED",
4082            AtomId::AtomCallStateChanged => "ATOM_CALL_STATE_CHANGED",
4083            AtomId::AtomKeyguardStateChanged => "ATOM_KEYGUARD_STATE_CHANGED",
4084            AtomId::AtomKeyguardBouncerStateChanged => "ATOM_KEYGUARD_BOUNCER_STATE_CHANGED",
4085            AtomId::AtomKeyguardBouncerPasswordEntered => "ATOM_KEYGUARD_BOUNCER_PASSWORD_ENTERED",
4086            AtomId::AtomAppDied => "ATOM_APP_DIED",
4087            AtomId::AtomResourceConfigurationChanged => "ATOM_RESOURCE_CONFIGURATION_CHANGED",
4088            AtomId::AtomBluetoothEnabledStateChanged => "ATOM_BLUETOOTH_ENABLED_STATE_CHANGED",
4089            AtomId::AtomBluetoothConnectionStateChanged => "ATOM_BLUETOOTH_CONNECTION_STATE_CHANGED",
4090            AtomId::AtomGpsSignalQualityChanged => "ATOM_GPS_SIGNAL_QUALITY_CHANGED",
4091            AtomId::AtomUsbConnectorStateChanged => "ATOM_USB_CONNECTOR_STATE_CHANGED",
4092            AtomId::AtomSpeakerImpedanceReported => "ATOM_SPEAKER_IMPEDANCE_REPORTED",
4093            AtomId::AtomHardwareFailed => "ATOM_HARDWARE_FAILED",
4094            AtomId::AtomPhysicalDropDetected => "ATOM_PHYSICAL_DROP_DETECTED",
4095            AtomId::AtomChargeCyclesReported => "ATOM_CHARGE_CYCLES_REPORTED",
4096            AtomId::AtomMobileConnectionStateChanged => "ATOM_MOBILE_CONNECTION_STATE_CHANGED",
4097            AtomId::AtomMobileRadioTechnologyChanged => "ATOM_MOBILE_RADIO_TECHNOLOGY_CHANGED",
4098            AtomId::AtomUsbDeviceAttached => "ATOM_USB_DEVICE_ATTACHED",
4099            AtomId::AtomAppCrashOccurred => "ATOM_APP_CRASH_OCCURRED",
4100            AtomId::AtomAnrOccurred => "ATOM_ANR_OCCURRED",
4101            AtomId::AtomWtfOccurred => "ATOM_WTF_OCCURRED",
4102            AtomId::AtomLowMemReported => "ATOM_LOW_MEM_REPORTED",
4103            AtomId::AtomGenericAtom => "ATOM_GENERIC_ATOM",
4104            AtomId::AtomVibratorStateChanged => "ATOM_VIBRATOR_STATE_CHANGED",
4105            AtomId::AtomDeferredJobStatsReported => "ATOM_DEFERRED_JOB_STATS_REPORTED",
4106            AtomId::AtomThermalThrottling => "ATOM_THERMAL_THROTTLING",
4107            AtomId::AtomBiometricAcquired => "ATOM_BIOMETRIC_ACQUIRED",
4108            AtomId::AtomBiometricAuthenticated => "ATOM_BIOMETRIC_AUTHENTICATED",
4109            AtomId::AtomBiometricErrorOccurred => "ATOM_BIOMETRIC_ERROR_OCCURRED",
4110            AtomId::AtomUiEventReported => "ATOM_UI_EVENT_REPORTED",
4111            AtomId::AtomBatteryHealthSnapshot => "ATOM_BATTERY_HEALTH_SNAPSHOT",
4112            AtomId::AtomSlowIo => "ATOM_SLOW_IO",
4113            AtomId::AtomBatteryCausedShutdown => "ATOM_BATTERY_CAUSED_SHUTDOWN",
4114            AtomId::AtomPhoneServiceStateChanged => "ATOM_PHONE_SERVICE_STATE_CHANGED",
4115            AtomId::AtomPhoneStateChanged => "ATOM_PHONE_STATE_CHANGED",
4116            AtomId::AtomUserRestrictionChanged => "ATOM_USER_RESTRICTION_CHANGED",
4117            AtomId::AtomSettingsUiChanged => "ATOM_SETTINGS_UI_CHANGED",
4118            AtomId::AtomConnectivityStateChanged => "ATOM_CONNECTIVITY_STATE_CHANGED",
4119            AtomId::AtomServiceStateChanged => "ATOM_SERVICE_STATE_CHANGED",
4120            AtomId::AtomServiceLaunchReported => "ATOM_SERVICE_LAUNCH_REPORTED",
4121            AtomId::AtomFlagFlipUpdateOccurred => "ATOM_FLAG_FLIP_UPDATE_OCCURRED",
4122            AtomId::AtomBinaryPushStateChanged => "ATOM_BINARY_PUSH_STATE_CHANGED",
4123            AtomId::AtomDevicePolicyEvent => "ATOM_DEVICE_POLICY_EVENT",
4124            AtomId::AtomDocsUiFileOpCanceled => "ATOM_DOCS_UI_FILE_OP_CANCELED",
4125            AtomId::AtomDocsUiFileOpCopyMoveModeReported => "ATOM_DOCS_UI_FILE_OP_COPY_MOVE_MODE_REPORTED",
4126            AtomId::AtomDocsUiFileOpFailure => "ATOM_DOCS_UI_FILE_OP_FAILURE",
4127            AtomId::AtomDocsUiProviderFileOp => "ATOM_DOCS_UI_PROVIDER_FILE_OP",
4128            AtomId::AtomDocsUiInvalidScopedAccessRequest => "ATOM_DOCS_UI_INVALID_SCOPED_ACCESS_REQUEST",
4129            AtomId::AtomDocsUiLaunchReported => "ATOM_DOCS_UI_LAUNCH_REPORTED",
4130            AtomId::AtomDocsUiRootVisited => "ATOM_DOCS_UI_ROOT_VISITED",
4131            AtomId::AtomDocsUiStartupMs => "ATOM_DOCS_UI_STARTUP_MS",
4132            AtomId::AtomDocsUiUserActionReported => "ATOM_DOCS_UI_USER_ACTION_REPORTED",
4133            AtomId::AtomWifiEnabledStateChanged => "ATOM_WIFI_ENABLED_STATE_CHANGED",
4134            AtomId::AtomWifiRunningStateChanged => "ATOM_WIFI_RUNNING_STATE_CHANGED",
4135            AtomId::AtomAppCompacted => "ATOM_APP_COMPACTED",
4136            AtomId::AtomNetworkDnsEventReported => "ATOM_NETWORK_DNS_EVENT_REPORTED",
4137            AtomId::AtomDocsUiPickerLaunchedFromReported => "ATOM_DOCS_UI_PICKER_LAUNCHED_FROM_REPORTED",
4138            AtomId::AtomDocsUiPickResultReported => "ATOM_DOCS_UI_PICK_RESULT_REPORTED",
4139            AtomId::AtomDocsUiSearchModeReported => "ATOM_DOCS_UI_SEARCH_MODE_REPORTED",
4140            AtomId::AtomDocsUiSearchTypeReported => "ATOM_DOCS_UI_SEARCH_TYPE_REPORTED",
4141            AtomId::AtomDataStallEvent => "ATOM_DATA_STALL_EVENT",
4142            AtomId::AtomRescuePartyResetReported => "ATOM_RESCUE_PARTY_RESET_REPORTED",
4143            AtomId::AtomSignedConfigReported => "ATOM_SIGNED_CONFIG_REPORTED",
4144            AtomId::AtomGnssNiEventReported => "ATOM_GNSS_NI_EVENT_REPORTED",
4145            AtomId::AtomBluetoothLinkLayerConnectionEvent => "ATOM_BLUETOOTH_LINK_LAYER_CONNECTION_EVENT",
4146            AtomId::AtomBluetoothAclConnectionStateChanged => "ATOM_BLUETOOTH_ACL_CONNECTION_STATE_CHANGED",
4147            AtomId::AtomBluetoothScoConnectionStateChanged => "ATOM_BLUETOOTH_SCO_CONNECTION_STATE_CHANGED",
4148            AtomId::AtomAppDowngraded => "ATOM_APP_DOWNGRADED",
4149            AtomId::AtomAppOptimizedAfterDowngraded => "ATOM_APP_OPTIMIZED_AFTER_DOWNGRADED",
4150            AtomId::AtomLowStorageStateChanged => "ATOM_LOW_STORAGE_STATE_CHANGED",
4151            AtomId::AtomGnssNfwNotificationReported => "ATOM_GNSS_NFW_NOTIFICATION_REPORTED",
4152            AtomId::AtomGnssConfigurationReported => "ATOM_GNSS_CONFIGURATION_REPORTED",
4153            AtomId::AtomUsbPortOverheatEventReported => "ATOM_USB_PORT_OVERHEAT_EVENT_REPORTED",
4154            AtomId::AtomNfcErrorOccurred => "ATOM_NFC_ERROR_OCCURRED",
4155            AtomId::AtomNfcStateChanged => "ATOM_NFC_STATE_CHANGED",
4156            AtomId::AtomNfcBeamOccurred => "ATOM_NFC_BEAM_OCCURRED",
4157            AtomId::AtomNfcCardemulationOccurred => "ATOM_NFC_CARDEMULATION_OCCURRED",
4158            AtomId::AtomNfcTagOccurred => "ATOM_NFC_TAG_OCCURRED",
4159            AtomId::AtomNfcHceTransactionOccurred => "ATOM_NFC_HCE_TRANSACTION_OCCURRED",
4160            AtomId::AtomSeStateChanged => "ATOM_SE_STATE_CHANGED",
4161            AtomId::AtomSeOmapiReported => "ATOM_SE_OMAPI_REPORTED",
4162            AtomId::AtomBroadcastDispatchLatencyReported => "ATOM_BROADCAST_DISPATCH_LATENCY_REPORTED",
4163            AtomId::AtomAttentionManagerServiceResultReported => "ATOM_ATTENTION_MANAGER_SERVICE_RESULT_REPORTED",
4164            AtomId::AtomAdbConnectionChanged => "ATOM_ADB_CONNECTION_CHANGED",
4165            AtomId::AtomSpeechDspStatReported => "ATOM_SPEECH_DSP_STAT_REPORTED",
4166            AtomId::AtomUsbContaminantReported => "ATOM_USB_CONTAMINANT_REPORTED",
4167            AtomId::AtomWatchdogRollbackOccurred => "ATOM_WATCHDOG_ROLLBACK_OCCURRED",
4168            AtomId::AtomBiometricSystemHealthIssueDetected => "ATOM_BIOMETRIC_SYSTEM_HEALTH_ISSUE_DETECTED",
4169            AtomId::AtomBubbleUiChanged => "ATOM_BUBBLE_UI_CHANGED",
4170            AtomId::AtomScheduledJobConstraintChanged => "ATOM_SCHEDULED_JOB_CONSTRAINT_CHANGED",
4171            AtomId::AtomBluetoothActiveDeviceChanged => "ATOM_BLUETOOTH_ACTIVE_DEVICE_CHANGED",
4172            AtomId::AtomBluetoothA2dpPlaybackStateChanged => "ATOM_BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED",
4173            AtomId::AtomBluetoothA2dpCodecConfigChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CONFIG_CHANGED",
4174            AtomId::AtomBluetoothA2dpCodecCapabilityChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CAPABILITY_CHANGED",
4175            AtomId::AtomBluetoothA2dpAudioUnderrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_UNDERRUN_REPORTED",
4176            AtomId::AtomBluetoothA2dpAudioOverrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_OVERRUN_REPORTED",
4177            AtomId::AtomBluetoothDeviceRssiReported => "ATOM_BLUETOOTH_DEVICE_RSSI_REPORTED",
4178            AtomId::AtomBluetoothDeviceFailedContactCounterReported => "ATOM_BLUETOOTH_DEVICE_FAILED_CONTACT_COUNTER_REPORTED",
4179            AtomId::AtomBluetoothDeviceTxPowerLevelReported => "ATOM_BLUETOOTH_DEVICE_TX_POWER_LEVEL_REPORTED",
4180            AtomId::AtomBluetoothHciTimeoutReported => "ATOM_BLUETOOTH_HCI_TIMEOUT_REPORTED",
4181            AtomId::AtomBluetoothQualityReportReported => "ATOM_BLUETOOTH_QUALITY_REPORT_REPORTED",
4182            AtomId::AtomBluetoothDeviceInfoReported => "ATOM_BLUETOOTH_DEVICE_INFO_REPORTED",
4183            AtomId::AtomBluetoothRemoteVersionInfoReported => "ATOM_BLUETOOTH_REMOTE_VERSION_INFO_REPORTED",
4184            AtomId::AtomBluetoothSdpAttributeReported => "ATOM_BLUETOOTH_SDP_ATTRIBUTE_REPORTED",
4185            AtomId::AtomBluetoothBondStateChanged => "ATOM_BLUETOOTH_BOND_STATE_CHANGED",
4186            AtomId::AtomBluetoothClassicPairingEventReported => "ATOM_BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED",
4187            AtomId::AtomBluetoothSmpPairingEventReported => "ATOM_BLUETOOTH_SMP_PAIRING_EVENT_REPORTED",
4188            AtomId::AtomScreenTimeoutExtensionReported => "ATOM_SCREEN_TIMEOUT_EXTENSION_REPORTED",
4189            AtomId::AtomProcessStartTime => "ATOM_PROCESS_START_TIME",
4190            AtomId::AtomPermissionGrantRequestResultReported => "ATOM_PERMISSION_GRANT_REQUEST_RESULT_REPORTED",
4191            AtomId::AtomBluetoothSocketConnectionStateChanged => "ATOM_BLUETOOTH_SOCKET_CONNECTION_STATE_CHANGED",
4192            AtomId::AtomDeviceIdentifierAccessDenied => "ATOM_DEVICE_IDENTIFIER_ACCESS_DENIED",
4193            AtomId::AtomBubbleDeveloperErrorReported => "ATOM_BUBBLE_DEVELOPER_ERROR_REPORTED",
4194            AtomId::AtomAssistGestureStageReported => "ATOM_ASSIST_GESTURE_STAGE_REPORTED",
4195            AtomId::AtomAssistGestureFeedbackReported => "ATOM_ASSIST_GESTURE_FEEDBACK_REPORTED",
4196            AtomId::AtomAssistGestureProgressReported => "ATOM_ASSIST_GESTURE_PROGRESS_REPORTED",
4197            AtomId::AtomTouchGestureClassified => "ATOM_TOUCH_GESTURE_CLASSIFIED",
4198            AtomId::AtomHiddenApiUsed => "ATOM_HIDDEN_API_USED",
4199            AtomId::AtomStyleUiChanged => "ATOM_STYLE_UI_CHANGED",
4200            AtomId::AtomPrivacyIndicatorsInteracted => "ATOM_PRIVACY_INDICATORS_INTERACTED",
4201            AtomId::AtomAppInstallOnExternalStorageReported => "ATOM_APP_INSTALL_ON_EXTERNAL_STORAGE_REPORTED",
4202            AtomId::AtomNetworkStackReported => "ATOM_NETWORK_STACK_REPORTED",
4203            AtomId::AtomAppMovedStorageReported => "ATOM_APP_MOVED_STORAGE_REPORTED",
4204            AtomId::AtomBiometricEnrolled => "ATOM_BIOMETRIC_ENROLLED",
4205            AtomId::AtomSystemServerWatchdogOccurred => "ATOM_SYSTEM_SERVER_WATCHDOG_OCCURRED",
4206            AtomId::AtomTombStoneOccurred => "ATOM_TOMB_STONE_OCCURRED",
4207            AtomId::AtomBluetoothClassOfDeviceReported => "ATOM_BLUETOOTH_CLASS_OF_DEVICE_REPORTED",
4208            AtomId::AtomIntelligenceEventReported => "ATOM_INTELLIGENCE_EVENT_REPORTED",
4209            AtomId::AtomThermalThrottlingSeverityStateChanged => "ATOM_THERMAL_THROTTLING_SEVERITY_STATE_CHANGED",
4210            AtomId::AtomRoleRequestResultReported => "ATOM_ROLE_REQUEST_RESULT_REPORTED",
4211            AtomId::AtomMediametricsAudiopolicyReported => "ATOM_MEDIAMETRICS_AUDIOPOLICY_REPORTED",
4212            AtomId::AtomMediametricsAudiorecordReported => "ATOM_MEDIAMETRICS_AUDIORECORD_REPORTED",
4213            AtomId::AtomMediametricsAudiothreadReported => "ATOM_MEDIAMETRICS_AUDIOTHREAD_REPORTED",
4214            AtomId::AtomMediametricsAudiotrackReported => "ATOM_MEDIAMETRICS_AUDIOTRACK_REPORTED",
4215            AtomId::AtomMediametricsCodecReported => "ATOM_MEDIAMETRICS_CODEC_REPORTED",
4216            AtomId::AtomMediametricsDrmWidevineReported => "ATOM_MEDIAMETRICS_DRM_WIDEVINE_REPORTED",
4217            AtomId::AtomMediametricsExtractorReported => "ATOM_MEDIAMETRICS_EXTRACTOR_REPORTED",
4218            AtomId::AtomMediametricsMediadrmReported => "ATOM_MEDIAMETRICS_MEDIADRM_REPORTED",
4219            AtomId::AtomMediametricsNuplayerReported => "ATOM_MEDIAMETRICS_NUPLAYER_REPORTED",
4220            AtomId::AtomMediametricsRecorderReported => "ATOM_MEDIAMETRICS_RECORDER_REPORTED",
4221            AtomId::AtomMediametricsDrmmanagerReported => "ATOM_MEDIAMETRICS_DRMMANAGER_REPORTED",
4222            AtomId::AtomCarPowerStateChanged => "ATOM_CAR_POWER_STATE_CHANGED",
4223            AtomId::AtomGarageModeInfo => "ATOM_GARAGE_MODE_INFO",
4224            AtomId::AtomTestAtomReported => "ATOM_TEST_ATOM_REPORTED",
4225            AtomId::AtomContentCaptureCallerMismatchReported => "ATOM_CONTENT_CAPTURE_CALLER_MISMATCH_REPORTED",
4226            AtomId::AtomContentCaptureServiceEvents => "ATOM_CONTENT_CAPTURE_SERVICE_EVENTS",
4227            AtomId::AtomContentCaptureSessionEvents => "ATOM_CONTENT_CAPTURE_SESSION_EVENTS",
4228            AtomId::AtomContentCaptureFlushed => "ATOM_CONTENT_CAPTURE_FLUSHED",
4229            AtomId::AtomLocationManagerApiUsageReported => "ATOM_LOCATION_MANAGER_API_USAGE_REPORTED",
4230            AtomId::AtomReviewPermissionsFragmentResultReported => "ATOM_REVIEW_PERMISSIONS_FRAGMENT_RESULT_REPORTED",
4231            AtomId::AtomRuntimePermissionsUpgradeResult => "ATOM_RUNTIME_PERMISSIONS_UPGRADE_RESULT",
4232            AtomId::AtomGrantPermissionsActivityButtonActions => "ATOM_GRANT_PERMISSIONS_ACTIVITY_BUTTON_ACTIONS",
4233            AtomId::AtomLocationAccessCheckNotificationAction => "ATOM_LOCATION_ACCESS_CHECK_NOTIFICATION_ACTION",
4234            AtomId::AtomAppPermissionFragmentActionReported => "ATOM_APP_PERMISSION_FRAGMENT_ACTION_REPORTED",
4235            AtomId::AtomAppPermissionFragmentViewed => "ATOM_APP_PERMISSION_FRAGMENT_VIEWED",
4236            AtomId::AtomAppPermissionsFragmentViewed => "ATOM_APP_PERMISSIONS_FRAGMENT_VIEWED",
4237            AtomId::AtomPermissionAppsFragmentViewed => "ATOM_PERMISSION_APPS_FRAGMENT_VIEWED",
4238            AtomId::AtomTextSelectionEvent => "ATOM_TEXT_SELECTION_EVENT",
4239            AtomId::AtomTextLinkifyEvent => "ATOM_TEXT_LINKIFY_EVENT",
4240            AtomId::AtomConversationActionsEvent => "ATOM_CONVERSATION_ACTIONS_EVENT",
4241            AtomId::AtomLanguageDetectionEvent => "ATOM_LANGUAGE_DETECTION_EVENT",
4242            AtomId::AtomExclusionRectStateChanged => "ATOM_EXCLUSION_RECT_STATE_CHANGED",
4243            AtomId::AtomBackGestureReportedReported => "ATOM_BACK_GESTURE_REPORTED_REPORTED",
4244            AtomId::AtomUpdateEngineUpdateAttemptReported => "ATOM_UPDATE_ENGINE_UPDATE_ATTEMPT_REPORTED",
4245            AtomId::AtomUpdateEngineSuccessfulUpdateReported => "ATOM_UPDATE_ENGINE_SUCCESSFUL_UPDATE_REPORTED",
4246            AtomId::AtomCameraActionEvent => "ATOM_CAMERA_ACTION_EVENT",
4247            AtomId::AtomAppCompatibilityChangeReported => "ATOM_APP_COMPATIBILITY_CHANGE_REPORTED",
4248            AtomId::AtomPerfettoUploaded => "ATOM_PERFETTO_UPLOADED",
4249            AtomId::AtomVmsClientConnectionStateChanged => "ATOM_VMS_CLIENT_CONNECTION_STATE_CHANGED",
4250            AtomId::AtomMediaProviderScanOccurred => "ATOM_MEDIA_PROVIDER_SCAN_OCCURRED",
4251            AtomId::AtomMediaContentDeleted => "ATOM_MEDIA_CONTENT_DELETED",
4252            AtomId::AtomMediaProviderPermissionRequested => "ATOM_MEDIA_PROVIDER_PERMISSION_REQUESTED",
4253            AtomId::AtomMediaProviderSchemaChanged => "ATOM_MEDIA_PROVIDER_SCHEMA_CHANGED",
4254            AtomId::AtomMediaProviderIdleMaintenanceFinished => "ATOM_MEDIA_PROVIDER_IDLE_MAINTENANCE_FINISHED",
4255            AtomId::AtomRebootEscrowRecoveryReported => "ATOM_REBOOT_ESCROW_RECOVERY_REPORTED",
4256            AtomId::AtomBootTimeEventDurationReported => "ATOM_BOOT_TIME_EVENT_DURATION_REPORTED",
4257            AtomId::AtomBootTimeEventElapsedTimeReported => "ATOM_BOOT_TIME_EVENT_ELAPSED_TIME_REPORTED",
4258            AtomId::AtomBootTimeEventUtcTimeReported => "ATOM_BOOT_TIME_EVENT_UTC_TIME_REPORTED",
4259            AtomId::AtomBootTimeEventErrorCodeReported => "ATOM_BOOT_TIME_EVENT_ERROR_CODE_REPORTED",
4260            AtomId::AtomUserspaceRebootReported => "ATOM_USERSPACE_REBOOT_REPORTED",
4261            AtomId::AtomNotificationReported => "ATOM_NOTIFICATION_REPORTED",
4262            AtomId::AtomNotificationPanelReported => "ATOM_NOTIFICATION_PANEL_REPORTED",
4263            AtomId::AtomNotificationChannelModified => "ATOM_NOTIFICATION_CHANNEL_MODIFIED",
4264            AtomId::AtomIntegrityCheckResultReported => "ATOM_INTEGRITY_CHECK_RESULT_REPORTED",
4265            AtomId::AtomIntegrityRulesPushed => "ATOM_INTEGRITY_RULES_PUSHED",
4266            AtomId::AtomCbMessageReported => "ATOM_CB_MESSAGE_REPORTED",
4267            AtomId::AtomCbMessageError => "ATOM_CB_MESSAGE_ERROR",
4268            AtomId::AtomWifiHealthStatReported => "ATOM_WIFI_HEALTH_STAT_REPORTED",
4269            AtomId::AtomWifiFailureStatReported => "ATOM_WIFI_FAILURE_STAT_REPORTED",
4270            AtomId::AtomWifiConnectionResultReported => "ATOM_WIFI_CONNECTION_RESULT_REPORTED",
4271            AtomId::AtomAppFreezeChanged => "ATOM_APP_FREEZE_CHANGED",
4272            AtomId::AtomSnapshotMergeReported => "ATOM_SNAPSHOT_MERGE_REPORTED",
4273            AtomId::AtomForegroundServiceAppOpSessionEnded => "ATOM_FOREGROUND_SERVICE_APP_OP_SESSION_ENDED",
4274            AtomId::AtomDisplayJankReported => "ATOM_DISPLAY_JANK_REPORTED",
4275            AtomId::AtomAppStandbyBucketChanged => "ATOM_APP_STANDBY_BUCKET_CHANGED",
4276            AtomId::AtomSharesheetStarted => "ATOM_SHARESHEET_STARTED",
4277            AtomId::AtomRankingSelected => "ATOM_RANKING_SELECTED",
4278            AtomId::AtomTvsettingsUiInteracted => "ATOM_TVSETTINGS_UI_INTERACTED",
4279            AtomId::AtomLauncherSnapshot => "ATOM_LAUNCHER_SNAPSHOT",
4280            AtomId::AtomPackageInstallerV2Reported => "ATOM_PACKAGE_INSTALLER_V2_REPORTED",
4281            AtomId::AtomUserLifecycleJourneyReported => "ATOM_USER_LIFECYCLE_JOURNEY_REPORTED",
4282            AtomId::AtomUserLifecycleEventOccurred => "ATOM_USER_LIFECYCLE_EVENT_OCCURRED",
4283            AtomId::AtomAccessibilityShortcutReported => "ATOM_ACCESSIBILITY_SHORTCUT_REPORTED",
4284            AtomId::AtomAccessibilityServiceReported => "ATOM_ACCESSIBILITY_SERVICE_REPORTED",
4285            AtomId::AtomDocsUiDragAndDropReported => "ATOM_DOCS_UI_DRAG_AND_DROP_REPORTED",
4286            AtomId::AtomAppUsageEventOccurred => "ATOM_APP_USAGE_EVENT_OCCURRED",
4287            AtomId::AtomAutoRevokeNotificationClicked => "ATOM_AUTO_REVOKE_NOTIFICATION_CLICKED",
4288            AtomId::AtomAutoRevokeFragmentAppViewed => "ATOM_AUTO_REVOKE_FRAGMENT_APP_VIEWED",
4289            AtomId::AtomAutoRevokedAppInteraction => "ATOM_AUTO_REVOKED_APP_INTERACTION",
4290            AtomId::AtomAppPermissionGroupsFragmentAutoRevokeAction => "ATOM_APP_PERMISSION_GROUPS_FRAGMENT_AUTO_REVOKE_ACTION",
4291            AtomId::AtomEvsUsageStatsReported => "ATOM_EVS_USAGE_STATS_REPORTED",
4292            AtomId::AtomAudioPowerUsageDataReported => "ATOM_AUDIO_POWER_USAGE_DATA_REPORTED",
4293            AtomId::AtomTvTunerStateChanged => "ATOM_TV_TUNER_STATE_CHANGED",
4294            AtomId::AtomMediaoutputOpSwitchReported => "ATOM_MEDIAOUTPUT_OP_SWITCH_REPORTED",
4295            AtomId::AtomCbMessageFiltered => "ATOM_CB_MESSAGE_FILTERED",
4296            AtomId::AtomTvTunerDvrStatus => "ATOM_TV_TUNER_DVR_STATUS",
4297            AtomId::AtomTvCasSessionOpenStatus => "ATOM_TV_CAS_SESSION_OPEN_STATUS",
4298            AtomId::AtomAssistantInvocationReported => "ATOM_ASSISTANT_INVOCATION_REPORTED",
4299            AtomId::AtomDisplayWakeReported => "ATOM_DISPLAY_WAKE_REPORTED",
4300            AtomId::AtomCarUserHalModifyUserRequestReported => "ATOM_CAR_USER_HAL_MODIFY_USER_REQUEST_REPORTED",
4301            AtomId::AtomCarUserHalModifyUserResponseReported => "ATOM_CAR_USER_HAL_MODIFY_USER_RESPONSE_REPORTED",
4302            AtomId::AtomCarUserHalPostSwitchResponseReported => "ATOM_CAR_USER_HAL_POST_SWITCH_RESPONSE_REPORTED",
4303            AtomId::AtomCarUserHalInitialUserInfoRequestReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_REQUEST_REPORTED",
4304            AtomId::AtomCarUserHalInitialUserInfoResponseReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_RESPONSE_REPORTED",
4305            AtomId::AtomCarUserHalUserAssociationRequestReported => "ATOM_CAR_USER_HAL_USER_ASSOCIATION_REQUEST_REPORTED",
4306            AtomId::AtomCarUserHalSetUserAssociationResponseReported => "ATOM_CAR_USER_HAL_SET_USER_ASSOCIATION_RESPONSE_REPORTED",
4307            AtomId::AtomNetworkIpProvisioningReported => "ATOM_NETWORK_IP_PROVISIONING_REPORTED",
4308            AtomId::AtomNetworkDhcpRenewReported => "ATOM_NETWORK_DHCP_RENEW_REPORTED",
4309            AtomId::AtomNetworkValidationReported => "ATOM_NETWORK_VALIDATION_REPORTED",
4310            AtomId::AtomNetworkStackQuirkReported => "ATOM_NETWORK_STACK_QUIRK_REPORTED",
4311            AtomId::AtomMediametricsAudiorecorddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIORECORDDEVICEUSAGE_REPORTED",
4312            AtomId::AtomMediametricsAudiothreaddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTHREADDEVICEUSAGE_REPORTED",
4313            AtomId::AtomMediametricsAudiotrackdeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTRACKDEVICEUSAGE_REPORTED",
4314            AtomId::AtomMediametricsAudiodeviceconnectionReported => "ATOM_MEDIAMETRICS_AUDIODEVICECONNECTION_REPORTED",
4315            AtomId::AtomBlobCommitted => "ATOM_BLOB_COMMITTED",
4316            AtomId::AtomBlobLeased => "ATOM_BLOB_LEASED",
4317            AtomId::AtomBlobOpened => "ATOM_BLOB_OPENED",
4318            AtomId::AtomContactsProviderStatusReported => "ATOM_CONTACTS_PROVIDER_STATUS_REPORTED",
4319            AtomId::AtomKeystoreKeyEventReported => "ATOM_KEYSTORE_KEY_EVENT_REPORTED",
4320            AtomId::AtomNetworkTetheringReported => "ATOM_NETWORK_TETHERING_REPORTED",
4321            AtomId::AtomImeTouchReported => "ATOM_IME_TOUCH_REPORTED",
4322            AtomId::AtomUiInteractionFrameInfoReported => "ATOM_UI_INTERACTION_FRAME_INFO_REPORTED",
4323            AtomId::AtomUiActionLatencyReported => "ATOM_UI_ACTION_LATENCY_REPORTED",
4324            AtomId::AtomWifiDisconnectReported => "ATOM_WIFI_DISCONNECT_REPORTED",
4325            AtomId::AtomWifiConnectionStateChanged => "ATOM_WIFI_CONNECTION_STATE_CHANGED",
4326            AtomId::AtomHdmiCecActiveSourceChanged => "ATOM_HDMI_CEC_ACTIVE_SOURCE_CHANGED",
4327            AtomId::AtomHdmiCecMessageReported => "ATOM_HDMI_CEC_MESSAGE_REPORTED",
4328            AtomId::AtomAirplaneMode => "ATOM_AIRPLANE_MODE",
4329            AtomId::AtomModemRestart => "ATOM_MODEM_RESTART",
4330            AtomId::AtomCarrierIdMismatchReported => "ATOM_CARRIER_ID_MISMATCH_REPORTED",
4331            AtomId::AtomCarrierIdTableUpdated => "ATOM_CARRIER_ID_TABLE_UPDATED",
4332            AtomId::AtomDataStallRecoveryReported => "ATOM_DATA_STALL_RECOVERY_REPORTED",
4333            AtomId::AtomMediametricsMediaparserReported => "ATOM_MEDIAMETRICS_MEDIAPARSER_REPORTED",
4334            AtomId::AtomTlsHandshakeReported => "ATOM_TLS_HANDSHAKE_REPORTED",
4335            AtomId::AtomTextClassifierApiUsageReported => "ATOM_TEXT_CLASSIFIER_API_USAGE_REPORTED",
4336            AtomId::AtomCarWatchdogKillStatsReported => "ATOM_CAR_WATCHDOG_KILL_STATS_REPORTED",
4337            AtomId::AtomMediametricsPlaybackReported => "ATOM_MEDIAMETRICS_PLAYBACK_REPORTED",
4338            AtomId::AtomMediaNetworkInfoChanged => "ATOM_MEDIA_NETWORK_INFO_CHANGED",
4339            AtomId::AtomMediaPlaybackStateChanged => "ATOM_MEDIA_PLAYBACK_STATE_CHANGED",
4340            AtomId::AtomMediaPlaybackErrorReported => "ATOM_MEDIA_PLAYBACK_ERROR_REPORTED",
4341            AtomId::AtomMediaPlaybackTrackChanged => "ATOM_MEDIA_PLAYBACK_TRACK_CHANGED",
4342            AtomId::AtomWifiScanReported => "ATOM_WIFI_SCAN_REPORTED",
4343            AtomId::AtomWifiPnoScanReported => "ATOM_WIFI_PNO_SCAN_REPORTED",
4344            AtomId::AtomTifTuneChanged => "ATOM_TIF_TUNE_CHANGED",
4345            AtomId::AtomAutoRotateReported => "ATOM_AUTO_ROTATE_REPORTED",
4346            AtomId::AtomPerfettoTrigger => "ATOM_PERFETTO_TRIGGER",
4347            AtomId::AtomTranscodingData => "ATOM_TRANSCODING_DATA",
4348            AtomId::AtomImsServiceEntitlementUpdated => "ATOM_IMS_SERVICE_ENTITLEMENT_UPDATED",
4349            AtomId::AtomDeviceRotated => "ATOM_DEVICE_ROTATED",
4350            AtomId::AtomSimSpecificSettingsRestored => "ATOM_SIM_SPECIFIC_SETTINGS_RESTORED",
4351            AtomId::AtomTextClassifierDownloadReported => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_REPORTED",
4352            AtomId::AtomPinStorageEvent => "ATOM_PIN_STORAGE_EVENT",
4353            AtomId::AtomFaceDownReported => "ATOM_FACE_DOWN_REPORTED",
4354            AtomId::AtomBluetoothHalCrashReasonReported => "ATOM_BLUETOOTH_HAL_CRASH_REASON_REPORTED",
4355            AtomId::AtomRebootEscrowPreparationReported => "ATOM_REBOOT_ESCROW_PREPARATION_REPORTED",
4356            AtomId::AtomRebootEscrowLskfCaptureReported => "ATOM_REBOOT_ESCROW_LSKF_CAPTURE_REPORTED",
4357            AtomId::AtomRebootEscrowRebootReported => "ATOM_REBOOT_ESCROW_REBOOT_REPORTED",
4358            AtomId::AtomBinderLatencyReported => "ATOM_BINDER_LATENCY_REPORTED",
4359            AtomId::AtomMediametricsAaudiostreamReported => "ATOM_MEDIAMETRICS_AAUDIOSTREAM_REPORTED",
4360            AtomId::AtomMediaTranscodingSessionEnded => "ATOM_MEDIA_TRANSCODING_SESSION_ENDED",
4361            AtomId::AtomMagnificationUsageReported => "ATOM_MAGNIFICATION_USAGE_REPORTED",
4362            AtomId::AtomMagnificationModeWithImeOnReported => "ATOM_MAGNIFICATION_MODE_WITH_IME_ON_REPORTED",
4363            AtomId::AtomAppSearchCallStatsReported => "ATOM_APP_SEARCH_CALL_STATS_REPORTED",
4364            AtomId::AtomAppSearchPutDocumentStatsReported => "ATOM_APP_SEARCH_PUT_DOCUMENT_STATS_REPORTED",
4365            AtomId::AtomDeviceControlChanged => "ATOM_DEVICE_CONTROL_CHANGED",
4366            AtomId::AtomDeviceStateChanged => "ATOM_DEVICE_STATE_CHANGED",
4367            AtomId::AtomInputdeviceRegistered => "ATOM_INPUTDEVICE_REGISTERED",
4368            AtomId::AtomSmartspaceCardReported => "ATOM_SMARTSPACE_CARD_REPORTED",
4369            AtomId::AtomAuthPromptAuthenticateInvoked => "ATOM_AUTH_PROMPT_AUTHENTICATE_INVOKED",
4370            AtomId::AtomAuthManagerCanAuthenticateInvoked => "ATOM_AUTH_MANAGER_CAN_AUTHENTICATE_INVOKED",
4371            AtomId::AtomAuthEnrollActionInvoked => "ATOM_AUTH_ENROLL_ACTION_INVOKED",
4372            AtomId::AtomAuthDeprecatedApiUsed => "ATOM_AUTH_DEPRECATED_API_USED",
4373            AtomId::AtomUnattendedRebootOccurred => "ATOM_UNATTENDED_REBOOT_OCCURRED",
4374            AtomId::AtomLongRebootBlockingReported => "ATOM_LONG_REBOOT_BLOCKING_REPORTED",
4375            AtomId::AtomLocationTimeZoneProviderStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_STATE_CHANGED",
4376            AtomId::AtomFdtrackEventOccurred => "ATOM_FDTRACK_EVENT_OCCURRED",
4377            AtomId::AtomTimeoutAutoExtendedReported => "ATOM_TIMEOUT_AUTO_EXTENDED_REPORTED",
4378            AtomId::AtomAlarmBatchDelivered => "ATOM_ALARM_BATCH_DELIVERED",
4379            AtomId::AtomAlarmScheduled => "ATOM_ALARM_SCHEDULED",
4380            AtomId::AtomCarWatchdogIoOveruseStatsReported => "ATOM_CAR_WATCHDOG_IO_OVERUSE_STATS_REPORTED",
4381            AtomId::AtomUserLevelHibernationStateChanged => "ATOM_USER_LEVEL_HIBERNATION_STATE_CHANGED",
4382            AtomId::AtomAppSearchInitializeStatsReported => "ATOM_APP_SEARCH_INITIALIZE_STATS_REPORTED",
4383            AtomId::AtomAppSearchQueryStatsReported => "ATOM_APP_SEARCH_QUERY_STATS_REPORTED",
4384            AtomId::AtomAppProcessDied => "ATOM_APP_PROCESS_DIED",
4385            AtomId::AtomNetworkIpReachabilityMonitorReported => "ATOM_NETWORK_IP_REACHABILITY_MONITOR_REPORTED",
4386            AtomId::AtomSlowInputEventReported => "ATOM_SLOW_INPUT_EVENT_REPORTED",
4387            AtomId::AtomAnrOccurredProcessingStarted => "ATOM_ANR_OCCURRED_PROCESSING_STARTED",
4388            AtomId::AtomAppSearchRemoveStatsReported => "ATOM_APP_SEARCH_REMOVE_STATS_REPORTED",
4389            AtomId::AtomMediaCodecReported => "ATOM_MEDIA_CODEC_REPORTED",
4390            AtomId::AtomPermissionUsageFragmentInteraction => "ATOM_PERMISSION_USAGE_FRAGMENT_INTERACTION",
4391            AtomId::AtomPermissionDetailsInteraction => "ATOM_PERMISSION_DETAILS_INTERACTION",
4392            AtomId::AtomPrivacySensorToggleInteraction => "ATOM_PRIVACY_SENSOR_TOGGLE_INTERACTION",
4393            AtomId::AtomPrivacyToggleDialogInteraction => "ATOM_PRIVACY_TOGGLE_DIALOG_INTERACTION",
4394            AtomId::AtomAppSearchOptimizeStatsReported => "ATOM_APP_SEARCH_OPTIMIZE_STATS_REPORTED",
4395            AtomId::AtomNonA11yToolServiceWarningReport => "ATOM_NON_A11Y_TOOL_SERVICE_WARNING_REPORT",
4396            AtomId::AtomAppCompatStateChanged => "ATOM_APP_COMPAT_STATE_CHANGED",
4397            AtomId::AtomSizeCompatRestartButtonEventReported => "ATOM_SIZE_COMPAT_RESTART_BUTTON_EVENT_REPORTED",
4398            AtomId::AtomSplitscreenUiChanged => "ATOM_SPLITSCREEN_UI_CHANGED",
4399            AtomId::AtomNetworkDnsHandshakeReported => "ATOM_NETWORK_DNS_HANDSHAKE_REPORTED",
4400            AtomId::AtomBluetoothCodePathCounter => "ATOM_BLUETOOTH_CODE_PATH_COUNTER",
4401            AtomId::AtomBluetoothLeBatchScanReportDelay => "ATOM_BLUETOOTH_LE_BATCH_SCAN_REPORT_DELAY",
4402            AtomId::AtomAccessibilityFloatingMenuUiChanged => "ATOM_ACCESSIBILITY_FLOATING_MENU_UI_CHANGED",
4403            AtomId::AtomNeuralnetworksCompilationCompleted => "ATOM_NEURALNETWORKS_COMPILATION_COMPLETED",
4404            AtomId::AtomNeuralnetworksExecutionCompleted => "ATOM_NEURALNETWORKS_EXECUTION_COMPLETED",
4405            AtomId::AtomNeuralnetworksCompilationFailed => "ATOM_NEURALNETWORKS_COMPILATION_FAILED",
4406            AtomId::AtomNeuralnetworksExecutionFailed => "ATOM_NEURALNETWORKS_EXECUTION_FAILED",
4407            AtomId::AtomContextHubBooted => "ATOM_CONTEXT_HUB_BOOTED",
4408            AtomId::AtomContextHubRestarted => "ATOM_CONTEXT_HUB_RESTARTED",
4409            AtomId::AtomContextHubLoadedNanoappSnapshotReported => "ATOM_CONTEXT_HUB_LOADED_NANOAPP_SNAPSHOT_REPORTED",
4410            AtomId::AtomChreCodeDownloadTransacted => "ATOM_CHRE_CODE_DOWNLOAD_TRANSACTED",
4411            AtomId::AtomUwbSessionInited => "ATOM_UWB_SESSION_INITED",
4412            AtomId::AtomUwbSessionClosed => "ATOM_UWB_SESSION_CLOSED",
4413            AtomId::AtomUwbFirstRangingReceived => "ATOM_UWB_FIRST_RANGING_RECEIVED",
4414            AtomId::AtomUwbRangingMeasurementReceived => "ATOM_UWB_RANGING_MEASUREMENT_RECEIVED",
4415            AtomId::AtomTextClassifierDownloadWorkScheduled => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_SCHEDULED",
4416            AtomId::AtomTextClassifierDownloadWorkCompleted => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_COMPLETED",
4417            AtomId::AtomClipboardCleared => "ATOM_CLIPBOARD_CLEARED",
4418            AtomId::AtomVmCreationRequested => "ATOM_VM_CREATION_REQUESTED",
4419            AtomId::AtomNearbyDeviceScanStateChanged => "ATOM_NEARBY_DEVICE_SCAN_STATE_CHANGED",
4420            AtomId::AtomApplicationLocalesChanged => "ATOM_APPLICATION_LOCALES_CHANGED",
4421            AtomId::AtomMediametricsAudiotrackstatusReported => "ATOM_MEDIAMETRICS_AUDIOTRACKSTATUS_REPORTED",
4422            AtomId::AtomFoldStateDurationReported => "ATOM_FOLD_STATE_DURATION_REPORTED",
4423            AtomId::AtomLocationTimeZoneProviderControllerStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_CONTROLLER_STATE_CHANGED",
4424            AtomId::AtomDisplayHbmStateChanged => "ATOM_DISPLAY_HBM_STATE_CHANGED",
4425            AtomId::AtomDisplayHbmBrightnessChanged => "ATOM_DISPLAY_HBM_BRIGHTNESS_CHANGED",
4426            AtomId::AtomPersistentUriPermissionsFlushed => "ATOM_PERSISTENT_URI_PERMISSIONS_FLUSHED",
4427            AtomId::AtomEarlyBootCompOsArtifactsCheckReported => "ATOM_EARLY_BOOT_COMP_OS_ARTIFACTS_CHECK_REPORTED",
4428            AtomId::AtomVbmetaDigestReported => "ATOM_VBMETA_DIGEST_REPORTED",
4429            AtomId::AtomApexInfoGathered => "ATOM_APEX_INFO_GATHERED",
4430            AtomId::AtomPvmInfoGathered => "ATOM_PVM_INFO_GATHERED",
4431            AtomId::AtomWearSettingsUiInteracted => "ATOM_WEAR_SETTINGS_UI_INTERACTED",
4432            AtomId::AtomTracingServiceReportEvent => "ATOM_TRACING_SERVICE_REPORT_EVENT",
4433            AtomId::AtomMediametricsAudiorecordstatusReported => "ATOM_MEDIAMETRICS_AUDIORECORDSTATUS_REPORTED",
4434            AtomId::AtomLauncherLatency => "ATOM_LAUNCHER_LATENCY",
4435            AtomId::AtomDropboxEntryDropped => "ATOM_DROPBOX_ENTRY_DROPPED",
4436            AtomId::AtomWifiP2pConnectionReported => "ATOM_WIFI_P2P_CONNECTION_REPORTED",
4437            AtomId::AtomGameStateChanged => "ATOM_GAME_STATE_CHANGED",
4438            AtomId::AtomHotwordDetectorCreateRequested => "ATOM_HOTWORD_DETECTOR_CREATE_REQUESTED",
4439            AtomId::AtomHotwordDetectionServiceInitResultReported => "ATOM_HOTWORD_DETECTION_SERVICE_INIT_RESULT_REPORTED",
4440            AtomId::AtomHotwordDetectionServiceRestarted => "ATOM_HOTWORD_DETECTION_SERVICE_RESTARTED",
4441            AtomId::AtomHotwordDetectorKeyphraseTriggered => "ATOM_HOTWORD_DETECTOR_KEYPHRASE_TRIGGERED",
4442            AtomId::AtomHotwordDetectorEvents => "ATOM_HOTWORD_DETECTOR_EVENTS",
4443            AtomId::AtomBootCompletedBroadcastCompletionLatencyReported => "ATOM_BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED",
4444            AtomId::AtomContactsIndexerUpdateStatsReported => "ATOM_CONTACTS_INDEXER_UPDATE_STATS_REPORTED",
4445            AtomId::AtomAppBackgroundRestrictionsInfo => "ATOM_APP_BACKGROUND_RESTRICTIONS_INFO",
4446            AtomId::AtomMmsSmsProviderGetThreadIdFailed => "ATOM_MMS_SMS_PROVIDER_GET_THREAD_ID_FAILED",
4447            AtomId::AtomMmsSmsDatabaseHelperOnUpgradeFailed => "ATOM_MMS_SMS_DATABASE_HELPER_ON_UPGRADE_FAILED",
4448            AtomId::AtomPermissionReminderNotificationInteracted => "ATOM_PERMISSION_REMINDER_NOTIFICATION_INTERACTED",
4449            AtomId::AtomRecentPermissionDecisionsInteracted => "ATOM_RECENT_PERMISSION_DECISIONS_INTERACTED",
4450            AtomId::AtomGnssPsdsDownloadReported => "ATOM_GNSS_PSDS_DOWNLOAD_REPORTED",
4451            AtomId::AtomLeAudioConnectionSessionReported => "ATOM_LE_AUDIO_CONNECTION_SESSION_REPORTED",
4452            AtomId::AtomLeAudioBroadcastSessionReported => "ATOM_LE_AUDIO_BROADCAST_SESSION_REPORTED",
4453            AtomId::AtomDreamUiEventReported => "ATOM_DREAM_UI_EVENT_REPORTED",
4454            AtomId::AtomTaskManagerEventReported => "ATOM_TASK_MANAGER_EVENT_REPORTED",
4455            AtomId::AtomCdmAssociationAction => "ATOM_CDM_ASSOCIATION_ACTION",
4456            AtomId::AtomMagnificationTripleTapAndHoldActivatedSessionReported => "ATOM_MAGNIFICATION_TRIPLE_TAP_AND_HOLD_ACTIVATED_SESSION_REPORTED",
4457            AtomId::AtomMagnificationFollowTypingFocusActivatedSessionReported => "ATOM_MAGNIFICATION_FOLLOW_TYPING_FOCUS_ACTIVATED_SESSION_REPORTED",
4458            AtomId::AtomAccessibilityTextReadingOptionsChanged => "ATOM_ACCESSIBILITY_TEXT_READING_OPTIONS_CHANGED",
4459            AtomId::AtomWifiSetupFailureCrashReported => "ATOM_WIFI_SETUP_FAILURE_CRASH_REPORTED",
4460            AtomId::AtomUwbDeviceErrorReported => "ATOM_UWB_DEVICE_ERROR_REPORTED",
4461            AtomId::AtomIsolatedCompilationScheduled => "ATOM_ISOLATED_COMPILATION_SCHEDULED",
4462            AtomId::AtomIsolatedCompilationEnded => "ATOM_ISOLATED_COMPILATION_ENDED",
4463            AtomId::AtomOnsOpportunisticEsimProvisioningComplete => "ATOM_ONS_OPPORTUNISTIC_ESIM_PROVISIONING_COMPLETE",
4464            AtomId::AtomSystemServerPreWatchdogOccurred => "ATOM_SYSTEM_SERVER_PRE_WATCHDOG_OCCURRED",
4465            AtomId::AtomTelephonyAnomalyDetected => "ATOM_TELEPHONY_ANOMALY_DETECTED",
4466            AtomId::AtomLetterboxPositionChanged => "ATOM_LETTERBOX_POSITION_CHANGED",
4467            AtomId::AtomRemoteKeyProvisioningAttempt => "ATOM_REMOTE_KEY_PROVISIONING_ATTEMPT",
4468            AtomId::AtomRemoteKeyProvisioningNetworkInfo => "ATOM_REMOTE_KEY_PROVISIONING_NETWORK_INFO",
4469            AtomId::AtomRemoteKeyProvisioningTiming => "ATOM_REMOTE_KEY_PROVISIONING_TIMING",
4470            AtomId::AtomMediaoutputOpInteractionReport => "ATOM_MEDIAOUTPUT_OP_INTERACTION_REPORT",
4471            AtomId::AtomSyncExemptionOccurred => "ATOM_SYNC_EXEMPTION_OCCURRED",
4472            AtomId::AtomAutofillPresentationEventReported => "ATOM_AUTOFILL_PRESENTATION_EVENT_REPORTED",
4473            AtomId::AtomDockStateChanged => "ATOM_DOCK_STATE_CHANGED",
4474            AtomId::AtomSafetySourceStateCollected => "ATOM_SAFETY_SOURCE_STATE_COLLECTED",
4475            AtomId::AtomSafetyCenterSystemEventReported => "ATOM_SAFETY_CENTER_SYSTEM_EVENT_REPORTED",
4476            AtomId::AtomSafetyCenterInteractionReported => "ATOM_SAFETY_CENTER_INTERACTION_REPORTED",
4477            AtomId::AtomSettingsProviderSettingChanged => "ATOM_SETTINGS_PROVIDER_SETTING_CHANGED",
4478            AtomId::AtomBroadcastDeliveryEventReported => "ATOM_BROADCAST_DELIVERY_EVENT_REPORTED",
4479            AtomId::AtomServiceRequestEventReported => "ATOM_SERVICE_REQUEST_EVENT_REPORTED",
4480            AtomId::AtomProviderAcquisitionEventReported => "ATOM_PROVIDER_ACQUISITION_EVENT_REPORTED",
4481            AtomId::AtomBluetoothDeviceNameReported => "ATOM_BLUETOOTH_DEVICE_NAME_REPORTED",
4482            AtomId::AtomCbConfigUpdated => "ATOM_CB_CONFIG_UPDATED",
4483            AtomId::AtomCbModuleErrorReported => "ATOM_CB_MODULE_ERROR_REPORTED",
4484            AtomId::AtomCbServiceFeatureChanged => "ATOM_CB_SERVICE_FEATURE_CHANGED",
4485            AtomId::AtomCbReceiverFeatureChanged => "ATOM_CB_RECEIVER_FEATURE_CHANGED",
4486            AtomId::AtomPrivacySignalNotificationInteraction => "ATOM_PRIVACY_SIGNAL_NOTIFICATION_INTERACTION",
4487            AtomId::AtomPrivacySignalIssueCardInteraction => "ATOM_PRIVACY_SIGNAL_ISSUE_CARD_INTERACTION",
4488            AtomId::AtomPrivacySignalsJobFailure => "ATOM_PRIVACY_SIGNALS_JOB_FAILURE",
4489            AtomId::AtomVibrationReported => "ATOM_VIBRATION_REPORTED",
4490            AtomId::AtomUwbRangingStart => "ATOM_UWB_RANGING_START",
4491            AtomId::AtomAppCompactedV2 => "ATOM_APP_COMPACTED_V2",
4492            AtomId::AtomDisplayBrightnessChanged => "ATOM_DISPLAY_BRIGHTNESS_CHANGED",
4493            AtomId::AtomActivityActionBlocked => "ATOM_ACTIVITY_ACTION_BLOCKED",
4494            AtomId::AtomNetworkDnsServerSupportReported => "ATOM_NETWORK_DNS_SERVER_SUPPORT_REPORTED",
4495            AtomId::AtomVmBooted => "ATOM_VM_BOOTED",
4496            AtomId::AtomVmExited => "ATOM_VM_EXITED",
4497            AtomId::AtomAmbientBrightnessStatsReported => "ATOM_AMBIENT_BRIGHTNESS_STATS_REPORTED",
4498            AtomId::AtomMediametricsSpatializercapabilitiesReported => "ATOM_MEDIAMETRICS_SPATIALIZERCAPABILITIES_REPORTED",
4499            AtomId::AtomMediametricsSpatializerdeviceenabledReported => "ATOM_MEDIAMETRICS_SPATIALIZERDEVICEENABLED_REPORTED",
4500            AtomId::AtomMediametricsHeadtrackerdeviceenabledReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICEENABLED_REPORTED",
4501            AtomId::AtomMediametricsHeadtrackerdevicesupportedReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICESUPPORTED_REPORTED",
4502            AtomId::AtomHearingAidInfoReported => "ATOM_HEARING_AID_INFO_REPORTED",
4503            AtomId::AtomDeviceWideJobConstraintChanged => "ATOM_DEVICE_WIDE_JOB_CONSTRAINT_CHANGED",
4504            AtomId::AtomAmbientModeChanged => "ATOM_AMBIENT_MODE_CHANGED",
4505            AtomId::AtomAnrLatencyReported => "ATOM_ANR_LATENCY_REPORTED",
4506            AtomId::AtomResourceApiInfo => "ATOM_RESOURCE_API_INFO",
4507            AtomId::AtomSystemDefaultNetworkChanged => "ATOM_SYSTEM_DEFAULT_NETWORK_CHANGED",
4508            AtomId::AtomIwlanSetupDataCallResultReported => "ATOM_IWLAN_SETUP_DATA_CALL_RESULT_REPORTED",
4509            AtomId::AtomIwlanPdnDisconnectedReasonReported => "ATOM_IWLAN_PDN_DISCONNECTED_REASON_REPORTED",
4510            AtomId::AtomAirplaneModeSessionReported => "ATOM_AIRPLANE_MODE_SESSION_REPORTED",
4511            AtomId::AtomVmCpuStatusReported => "ATOM_VM_CPU_STATUS_REPORTED",
4512            AtomId::AtomVmMemStatusReported => "ATOM_VM_MEM_STATUS_REPORTED",
4513            AtomId::AtomPackageInstallationSessionReported => "ATOM_PACKAGE_INSTALLATION_SESSION_REPORTED",
4514            AtomId::AtomDefaultNetworkRematchInfo => "ATOM_DEFAULT_NETWORK_REMATCH_INFO",
4515            AtomId::AtomNetworkSelectionPerformance => "ATOM_NETWORK_SELECTION_PERFORMANCE",
4516            AtomId::AtomNetworkNsdReported => "ATOM_NETWORK_NSD_REPORTED",
4517            AtomId::AtomBluetoothDisconnectionReasonReported => "ATOM_BLUETOOTH_DISCONNECTION_REASON_REPORTED",
4518            AtomId::AtomBluetoothLocalVersionsReported => "ATOM_BLUETOOTH_LOCAL_VERSIONS_REPORTED",
4519            AtomId::AtomBluetoothRemoteSupportedFeaturesReported => "ATOM_BLUETOOTH_REMOTE_SUPPORTED_FEATURES_REPORTED",
4520            AtomId::AtomBluetoothLocalSupportedFeaturesReported => "ATOM_BLUETOOTH_LOCAL_SUPPORTED_FEATURES_REPORTED",
4521            AtomId::AtomBluetoothGattAppInfo => "ATOM_BLUETOOTH_GATT_APP_INFO",
4522            AtomId::AtomBrightnessConfigurationUpdated => "ATOM_BRIGHTNESS_CONFIGURATION_UPDATED",
4523            AtomId::AtomWearMediaOutputSwitcherLaunched => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_LAUNCHED",
4524            AtomId::AtomWearMediaOutputSwitcherFinished => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FINISHED",
4525            AtomId::AtomWearMediaOutputSwitcherConnectionReported => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECTION_REPORTED",
4526            AtomId::AtomWearMediaOutputSwitcherDeviceScanTriggered => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_TRIGGERED",
4527            AtomId::AtomWearMediaOutputSwitcherFirstDeviceScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FIRST_DEVICE_SCAN_LATENCY",
4528            AtomId::AtomWearMediaOutputSwitcherConnectDeviceLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECT_DEVICE_LATENCY",
4529            AtomId::AtomPackageManagerSnapshotReported => "ATOM_PACKAGE_MANAGER_SNAPSHOT_REPORTED",
4530            AtomId::AtomPackageManagerAppsFilterCacheBuildReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_BUILD_REPORTED",
4531            AtomId::AtomPackageManagerAppsFilterCacheUpdateReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_UPDATE_REPORTED",
4532            AtomId::AtomLauncherImpressionEvent => "ATOM_LAUNCHER_IMPRESSION_EVENT",
4533            AtomId::AtomWearMediaOutputSwitcherAllDevicesScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_ALL_DEVICES_SCAN_LATENCY",
4534            AtomId::AtomWsWatchFaceEdited => "ATOM_WS_WATCH_FACE_EDITED",
4535            AtomId::AtomWsWatchFaceFavoriteActionReported => "ATOM_WS_WATCH_FACE_FAVORITE_ACTION_REPORTED",
4536            AtomId::AtomWsWatchFaceSetActionReported => "ATOM_WS_WATCH_FACE_SET_ACTION_REPORTED",
4537            AtomId::AtomPackageUninstallationReported => "ATOM_PACKAGE_UNINSTALLATION_REPORTED",
4538            AtomId::AtomGameModeChanged => "ATOM_GAME_MODE_CHANGED",
4539            AtomId::AtomGameModeConfigurationChanged => "ATOM_GAME_MODE_CONFIGURATION_CHANGED",
4540            AtomId::AtomBedtimeModeStateChanged => "ATOM_BEDTIME_MODE_STATE_CHANGED",
4541            AtomId::AtomNetworkSliceSessionEnded => "ATOM_NETWORK_SLICE_SESSION_ENDED",
4542            AtomId::AtomNetworkSliceDailyDataUsageReported => "ATOM_NETWORK_SLICE_DAILY_DATA_USAGE_REPORTED",
4543            AtomId::AtomNfcTagTypeOccurred => "ATOM_NFC_TAG_TYPE_OCCURRED",
4544            AtomId::AtomNfcAidConflictOccurred => "ATOM_NFC_AID_CONFLICT_OCCURRED",
4545            AtomId::AtomNfcReaderConflictOccurred => "ATOM_NFC_READER_CONFLICT_OCCURRED",
4546            AtomId::AtomWsTileListChanged => "ATOM_WS_TILE_LIST_CHANGED",
4547            AtomId::AtomGetTypeAccessedWithoutPermission => "ATOM_GET_TYPE_ACCESSED_WITHOUT_PERMISSION",
4548            AtomId::AtomMobileBundledAppInfoGathered => "ATOM_MOBILE_BUNDLED_APP_INFO_GATHERED",
4549            AtomId::AtomWsWatchFaceComplicationSetChanged => "ATOM_WS_WATCH_FACE_COMPLICATION_SET_CHANGED",
4550            AtomId::AtomMediaDrmCreated => "ATOM_MEDIA_DRM_CREATED",
4551            AtomId::AtomMediaDrmErrored => "ATOM_MEDIA_DRM_ERRORED",
4552            AtomId::AtomMediaDrmSessionOpened => "ATOM_MEDIA_DRM_SESSION_OPENED",
4553            AtomId::AtomMediaDrmSessionClosed => "ATOM_MEDIA_DRM_SESSION_CLOSED",
4554            AtomId::AtomUserSelectedResolution => "ATOM_USER_SELECTED_RESOLUTION",
4555            AtomId::AtomUnsafeIntentEventReported => "ATOM_UNSAFE_INTENT_EVENT_REPORTED",
4556            AtomId::AtomPerformanceHintSessionReported => "ATOM_PERFORMANCE_HINT_SESSION_REPORTED",
4557            AtomId::AtomMediametricsMidiDeviceCloseReported => "ATOM_MEDIAMETRICS_MIDI_DEVICE_CLOSE_REPORTED",
4558            AtomId::AtomBiometricTouchReported => "ATOM_BIOMETRIC_TOUCH_REPORTED",
4559            AtomId::AtomHotwordAudioEgressEventReported => "ATOM_HOTWORD_AUDIO_EGRESS_EVENT_REPORTED",
4560            AtomId::AtomLocationEnabledStateChanged => "ATOM_LOCATION_ENABLED_STATE_CHANGED",
4561            AtomId::AtomImeRequestFinished => "ATOM_IME_REQUEST_FINISHED",
4562            AtomId::AtomUsbComplianceWarningsReported => "ATOM_USB_COMPLIANCE_WARNINGS_REPORTED",
4563            AtomId::AtomAppSupportedLocalesChanged => "ATOM_APP_SUPPORTED_LOCALES_CHANGED",
4564            AtomId::AtomMediaProviderVolumeRecoveryReported => "ATOM_MEDIA_PROVIDER_VOLUME_RECOVERY_REPORTED",
4565            AtomId::AtomBiometricPropertiesCollected => "ATOM_BIOMETRIC_PROPERTIES_COLLECTED",
4566            AtomId::AtomKernelWakeupAttributed => "ATOM_KERNEL_WAKEUP_ATTRIBUTED",
4567            AtomId::AtomScreenStateChangedV2 => "ATOM_SCREEN_STATE_CHANGED_V2",
4568            AtomId::AtomWsBackupActionReported => "ATOM_WS_BACKUP_ACTION_REPORTED",
4569            AtomId::AtomWsRestoreActionReported => "ATOM_WS_RESTORE_ACTION_REPORTED",
4570            AtomId::AtomDeviceLogAccessEventReported => "ATOM_DEVICE_LOG_ACCESS_EVENT_REPORTED",
4571            AtomId::AtomMediaSessionUpdated => "ATOM_MEDIA_SESSION_UPDATED",
4572            AtomId::AtomWearOobeStateChanged => "ATOM_WEAR_OOBE_STATE_CHANGED",
4573            AtomId::AtomWsNotificationUpdated => "ATOM_WS_NOTIFICATION_UPDATED",
4574            AtomId::AtomNetworkValidationFailureStatsDailyReported => "ATOM_NETWORK_VALIDATION_FAILURE_STATS_DAILY_REPORTED",
4575            AtomId::AtomWsComplicationTapped => "ATOM_WS_COMPLICATION_TAPPED",
4576            AtomId::AtomWsNotificationBlocking => "ATOM_WS_NOTIFICATION_BLOCKING",
4577            AtomId::AtomWsNotificationBridgemodeUpdated => "ATOM_WS_NOTIFICATION_BRIDGEMODE_UPDATED",
4578            AtomId::AtomWsNotificationDismissalActioned => "ATOM_WS_NOTIFICATION_DISMISSAL_ACTIONED",
4579            AtomId::AtomWsNotificationActioned => "ATOM_WS_NOTIFICATION_ACTIONED",
4580            AtomId::AtomWsNotificationLatency => "ATOM_WS_NOTIFICATION_LATENCY",
4581            AtomId::AtomWifiBytesTransfer => "ATOM_WIFI_BYTES_TRANSFER",
4582            AtomId::AtomWifiBytesTransferByFgBg => "ATOM_WIFI_BYTES_TRANSFER_BY_FG_BG",
4583            AtomId::AtomMobileBytesTransfer => "ATOM_MOBILE_BYTES_TRANSFER",
4584            AtomId::AtomMobileBytesTransferByFgBg => "ATOM_MOBILE_BYTES_TRANSFER_BY_FG_BG",
4585            AtomId::AtomBluetoothBytesTransfer => "ATOM_BLUETOOTH_BYTES_TRANSFER",
4586            AtomId::AtomKernelWakelock => "ATOM_KERNEL_WAKELOCK",
4587            AtomId::AtomSubsystemSleepState => "ATOM_SUBSYSTEM_SLEEP_STATE",
4588            AtomId::AtomCpuTimePerUid => "ATOM_CPU_TIME_PER_UID",
4589            AtomId::AtomCpuTimePerUidFreq => "ATOM_CPU_TIME_PER_UID_FREQ",
4590            AtomId::AtomWifiActivityInfo => "ATOM_WIFI_ACTIVITY_INFO",
4591            AtomId::AtomModemActivityInfo => "ATOM_MODEM_ACTIVITY_INFO",
4592            AtomId::AtomBluetoothActivityInfo => "ATOM_BLUETOOTH_ACTIVITY_INFO",
4593            AtomId::AtomProcessMemoryState => "ATOM_PROCESS_MEMORY_STATE",
4594            AtomId::AtomSystemElapsedRealtime => "ATOM_SYSTEM_ELAPSED_REALTIME",
4595            AtomId::AtomSystemUptime => "ATOM_SYSTEM_UPTIME",
4596            AtomId::AtomCpuActiveTime => "ATOM_CPU_ACTIVE_TIME",
4597            AtomId::AtomCpuClusterTime => "ATOM_CPU_CLUSTER_TIME",
4598            AtomId::AtomDiskSpace => "ATOM_DISK_SPACE",
4599            AtomId::AtomRemainingBatteryCapacity => "ATOM_REMAINING_BATTERY_CAPACITY",
4600            AtomId::AtomFullBatteryCapacity => "ATOM_FULL_BATTERY_CAPACITY",
4601            AtomId::AtomTemperature => "ATOM_TEMPERATURE",
4602            AtomId::AtomBinderCalls => "ATOM_BINDER_CALLS",
4603            AtomId::AtomBinderCallsExceptions => "ATOM_BINDER_CALLS_EXCEPTIONS",
4604            AtomId::AtomLooperStats => "ATOM_LOOPER_STATS",
4605            AtomId::AtomDiskStats => "ATOM_DISK_STATS",
4606            AtomId::AtomDirectoryUsage => "ATOM_DIRECTORY_USAGE",
4607            AtomId::AtomAppSize => "ATOM_APP_SIZE",
4608            AtomId::AtomCategorySize => "ATOM_CATEGORY_SIZE",
4609            AtomId::AtomProcStats => "ATOM_PROC_STATS",
4610            AtomId::AtomBatteryVoltage => "ATOM_BATTERY_VOLTAGE",
4611            AtomId::AtomNumFingerprintsEnrolled => "ATOM_NUM_FINGERPRINTS_ENROLLED",
4612            AtomId::AtomDiskIo => "ATOM_DISK_IO",
4613            AtomId::AtomPowerProfile => "ATOM_POWER_PROFILE",
4614            AtomId::AtomProcStatsPkgProc => "ATOM_PROC_STATS_PKG_PROC",
4615            AtomId::AtomProcessCpuTime => "ATOM_PROCESS_CPU_TIME",
4616            AtomId::AtomCpuTimePerThreadFreq => "ATOM_CPU_TIME_PER_THREAD_FREQ",
4617            AtomId::AtomOnDevicePowerMeasurement => "ATOM_ON_DEVICE_POWER_MEASUREMENT",
4618            AtomId::AtomDeviceCalculatedPowerUse => "ATOM_DEVICE_CALCULATED_POWER_USE",
4619            AtomId::AtomProcessMemoryHighWaterMark => "ATOM_PROCESS_MEMORY_HIGH_WATER_MARK",
4620            AtomId::AtomBatteryLevel => "ATOM_BATTERY_LEVEL",
4621            AtomId::AtomBuildInformation => "ATOM_BUILD_INFORMATION",
4622            AtomId::AtomBatteryCycleCount => "ATOM_BATTERY_CYCLE_COUNT",
4623            AtomId::AtomDebugElapsedClock => "ATOM_DEBUG_ELAPSED_CLOCK",
4624            AtomId::AtomDebugFailingElapsedClock => "ATOM_DEBUG_FAILING_ELAPSED_CLOCK",
4625            AtomId::AtomNumFacesEnrolled => "ATOM_NUM_FACES_ENROLLED",
4626            AtomId::AtomRoleHolder => "ATOM_ROLE_HOLDER",
4627            AtomId::AtomDangerousPermissionState => "ATOM_DANGEROUS_PERMISSION_STATE",
4628            AtomId::AtomTrainInfo => "ATOM_TRAIN_INFO",
4629            AtomId::AtomTimeZoneDataInfo => "ATOM_TIME_ZONE_DATA_INFO",
4630            AtomId::AtomExternalStorageInfo => "ATOM_EXTERNAL_STORAGE_INFO",
4631            AtomId::AtomGpuStatsGlobalInfo => "ATOM_GPU_STATS_GLOBAL_INFO",
4632            AtomId::AtomGpuStatsAppInfo => "ATOM_GPU_STATS_APP_INFO",
4633            AtomId::AtomSystemIonHeapSize => "ATOM_SYSTEM_ION_HEAP_SIZE",
4634            AtomId::AtomAppsOnExternalStorageInfo => "ATOM_APPS_ON_EXTERNAL_STORAGE_INFO",
4635            AtomId::AtomFaceSettings => "ATOM_FACE_SETTINGS",
4636            AtomId::AtomCoolingDevice => "ATOM_COOLING_DEVICE",
4637            AtomId::AtomAppOps => "ATOM_APP_OPS",
4638            AtomId::AtomProcessSystemIonHeapSize => "ATOM_PROCESS_SYSTEM_ION_HEAP_SIZE",
4639            AtomId::AtomSurfaceflingerStatsGlobalInfo => "ATOM_SURFACEFLINGER_STATS_GLOBAL_INFO",
4640            AtomId::AtomSurfaceflingerStatsLayerInfo => "ATOM_SURFACEFLINGER_STATS_LAYER_INFO",
4641            AtomId::AtomProcessMemorySnapshot => "ATOM_PROCESS_MEMORY_SNAPSHOT",
4642            AtomId::AtomVmsClientStats => "ATOM_VMS_CLIENT_STATS",
4643            AtomId::AtomNotificationRemoteViews => "ATOM_NOTIFICATION_REMOTE_VIEWS",
4644            AtomId::AtomDangerousPermissionStateSampled => "ATOM_DANGEROUS_PERMISSION_STATE_SAMPLED",
4645            AtomId::AtomGraphicsStats => "ATOM_GRAPHICS_STATS",
4646            AtomId::AtomRuntimeAppOpAccess => "ATOM_RUNTIME_APP_OP_ACCESS",
4647            AtomId::AtomIonHeapSize => "ATOM_ION_HEAP_SIZE",
4648            AtomId::AtomPackageNotificationPreferences => "ATOM_PACKAGE_NOTIFICATION_PREFERENCES",
4649            AtomId::AtomPackageNotificationChannelPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_PREFERENCES",
4650            AtomId::AtomPackageNotificationChannelGroupPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_GROUP_PREFERENCES",
4651            AtomId::AtomGnssStats => "ATOM_GNSS_STATS",
4652            AtomId::AtomAttributedAppOps => "ATOM_ATTRIBUTED_APP_OPS",
4653            AtomId::AtomVoiceCallSession => "ATOM_VOICE_CALL_SESSION",
4654            AtomId::AtomVoiceCallRatUsage => "ATOM_VOICE_CALL_RAT_USAGE",
4655            AtomId::AtomSimSlotState => "ATOM_SIM_SLOT_STATE",
4656            AtomId::AtomSupportedRadioAccessFamily => "ATOM_SUPPORTED_RADIO_ACCESS_FAMILY",
4657            AtomId::AtomSettingSnapshot => "ATOM_SETTING_SNAPSHOT",
4658            AtomId::AtomBlobInfo => "ATOM_BLOB_INFO",
4659            AtomId::AtomDataUsageBytesTransfer => "ATOM_DATA_USAGE_BYTES_TRANSFER",
4660            AtomId::AtomBytesTransferByTagAndMetered => "ATOM_BYTES_TRANSFER_BY_TAG_AND_METERED",
4661            AtomId::AtomDndModeRule => "ATOM_DND_MODE_RULE",
4662            AtomId::AtomGeneralExternalStorageAccessStats => "ATOM_GENERAL_EXTERNAL_STORAGE_ACCESS_STATS",
4663            AtomId::AtomIncomingSms => "ATOM_INCOMING_SMS",
4664            AtomId::AtomOutgoingSms => "ATOM_OUTGOING_SMS",
4665            AtomId::AtomCarrierIdTableVersion => "ATOM_CARRIER_ID_TABLE_VERSION",
4666            AtomId::AtomDataCallSession => "ATOM_DATA_CALL_SESSION",
4667            AtomId::AtomCellularServiceState => "ATOM_CELLULAR_SERVICE_STATE",
4668            AtomId::AtomCellularDataServiceSwitch => "ATOM_CELLULAR_DATA_SERVICE_SWITCH",
4669            AtomId::AtomSystemMemory => "ATOM_SYSTEM_MEMORY",
4670            AtomId::AtomImsRegistrationTermination => "ATOM_IMS_REGISTRATION_TERMINATION",
4671            AtomId::AtomImsRegistrationStats => "ATOM_IMS_REGISTRATION_STATS",
4672            AtomId::AtomCpuTimePerClusterFreq => "ATOM_CPU_TIME_PER_CLUSTER_FREQ",
4673            AtomId::AtomCpuCyclesPerUidCluster => "ATOM_CPU_CYCLES_PER_UID_CLUSTER",
4674            AtomId::AtomDeviceRotatedData => "ATOM_DEVICE_ROTATED_DATA",
4675            AtomId::AtomCpuCyclesPerThreadGroupCluster => "ATOM_CPU_CYCLES_PER_THREAD_GROUP_CLUSTER",
4676            AtomId::AtomMediaDrmActivityInfo => "ATOM_MEDIA_DRM_ACTIVITY_INFO",
4677            AtomId::AtomOemManagedBytesTransfer => "ATOM_OEM_MANAGED_BYTES_TRANSFER",
4678            AtomId::AtomGnssPowerStats => "ATOM_GNSS_POWER_STATS",
4679            AtomId::AtomTimeZoneDetectorState => "ATOM_TIME_ZONE_DETECTOR_STATE",
4680            AtomId::AtomKeystore2StorageStats => "ATOM_KEYSTORE2_STORAGE_STATS",
4681            AtomId::AtomRkpPoolStats => "ATOM_RKP_POOL_STATS",
4682            AtomId::AtomProcessDmabufMemory => "ATOM_PROCESS_DMABUF_MEMORY",
4683            AtomId::AtomPendingAlarmInfo => "ATOM_PENDING_ALARM_INFO",
4684            AtomId::AtomUserLevelHibernatedApps => "ATOM_USER_LEVEL_HIBERNATED_APPS",
4685            AtomId::AtomLauncherLayoutSnapshot => "ATOM_LAUNCHER_LAYOUT_SNAPSHOT",
4686            AtomId::AtomGlobalHibernatedApps => "ATOM_GLOBAL_HIBERNATED_APPS",
4687            AtomId::AtomInputEventLatencySketch => "ATOM_INPUT_EVENT_LATENCY_SKETCH",
4688            AtomId::AtomBatteryUsageStatsBeforeReset => "ATOM_BATTERY_USAGE_STATS_BEFORE_RESET",
4689            AtomId::AtomBatteryUsageStatsSinceReset => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET",
4690            AtomId::AtomBatteryUsageStatsSinceResetUsingPowerProfileModel => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET_USING_POWER_PROFILE_MODEL",
4691            AtomId::AtomInstalledIncrementalPackage => "ATOM_INSTALLED_INCREMENTAL_PACKAGE",
4692            AtomId::AtomTelephonyNetworkRequests => "ATOM_TELEPHONY_NETWORK_REQUESTS",
4693            AtomId::AtomAppSearchStorageInfo => "ATOM_APP_SEARCH_STORAGE_INFO",
4694            AtomId::AtomVmstat => "ATOM_VMSTAT",
4695            AtomId::AtomKeystore2KeyCreationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_GENERAL_INFO",
4696            AtomId::AtomKeystore2KeyCreationWithAuthInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_AUTH_INFO",
4697            AtomId::AtomKeystore2KeyCreationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_PURPOSE_AND_MODES_INFO",
4698            AtomId::AtomKeystore2AtomWithOverflow => "ATOM_KEYSTORE2_ATOM_WITH_OVERFLOW",
4699            AtomId::AtomKeystore2KeyOperationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_PURPOSE_AND_MODES_INFO",
4700            AtomId::AtomKeystore2KeyOperationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_GENERAL_INFO",
4701            AtomId::AtomRkpErrorStats => "ATOM_RKP_ERROR_STATS",
4702            AtomId::AtomKeystore2CrashStats => "ATOM_KEYSTORE2_CRASH_STATS",
4703            AtomId::AtomVendorApexInfo => "ATOM_VENDOR_APEX_INFO",
4704            AtomId::AtomAccessibilityShortcutStats => "ATOM_ACCESSIBILITY_SHORTCUT_STATS",
4705            AtomId::AtomAccessibilityFloatingMenuStats => "ATOM_ACCESSIBILITY_FLOATING_MENU_STATS",
4706            AtomId::AtomDataUsageBytesTransferV2 => "ATOM_DATA_USAGE_BYTES_TRANSFER_V2",
4707            AtomId::AtomMediaCapabilities => "ATOM_MEDIA_CAPABILITIES",
4708            AtomId::AtomCarWatchdogSystemIoUsageSummary => "ATOM_CAR_WATCHDOG_SYSTEM_IO_USAGE_SUMMARY",
4709            AtomId::AtomCarWatchdogUidIoUsageSummary => "ATOM_CAR_WATCHDOG_UID_IO_USAGE_SUMMARY",
4710            AtomId::AtomImsRegistrationFeatureTagStats => "ATOM_IMS_REGISTRATION_FEATURE_TAG_STATS",
4711            AtomId::AtomRcsClientProvisioningStats => "ATOM_RCS_CLIENT_PROVISIONING_STATS",
4712            AtomId::AtomRcsAcsProvisioningStats => "ATOM_RCS_ACS_PROVISIONING_STATS",
4713            AtomId::AtomSipDelegateStats => "ATOM_SIP_DELEGATE_STATS",
4714            AtomId::AtomSipTransportFeatureTagStats => "ATOM_SIP_TRANSPORT_FEATURE_TAG_STATS",
4715            AtomId::AtomSipMessageResponse => "ATOM_SIP_MESSAGE_RESPONSE",
4716            AtomId::AtomSipTransportSession => "ATOM_SIP_TRANSPORT_SESSION",
4717            AtomId::AtomImsDedicatedBearerListenerEvent => "ATOM_IMS_DEDICATED_BEARER_LISTENER_EVENT",
4718            AtomId::AtomImsDedicatedBearerEvent => "ATOM_IMS_DEDICATED_BEARER_EVENT",
4719            AtomId::AtomImsRegistrationServiceDescStats => "ATOM_IMS_REGISTRATION_SERVICE_DESC_STATS",
4720            AtomId::AtomUceEventStats => "ATOM_UCE_EVENT_STATS",
4721            AtomId::AtomPresenceNotifyEvent => "ATOM_PRESENCE_NOTIFY_EVENT",
4722            AtomId::AtomGbaEvent => "ATOM_GBA_EVENT",
4723            AtomId::AtomPerSimStatus => "ATOM_PER_SIM_STATUS",
4724            AtomId::AtomGpuWorkPerUid => "ATOM_GPU_WORK_PER_UID",
4725            AtomId::AtomPersistentUriPermissionsAmountPerPackage => "ATOM_PERSISTENT_URI_PERMISSIONS_AMOUNT_PER_PACKAGE",
4726            AtomId::AtomSignedPartitionInfo => "ATOM_SIGNED_PARTITION_INFO",
4727            AtomId::AtomPinnedFileSizesPerPackage => "ATOM_PINNED_FILE_SIZES_PER_PACKAGE",
4728            AtomId::AtomPendingIntentsPerPackage => "ATOM_PENDING_INTENTS_PER_PACKAGE",
4729            AtomId::AtomUserInfo => "ATOM_USER_INFO",
4730            AtomId::AtomTelephonyNetworkRequestsV2 => "ATOM_TELEPHONY_NETWORK_REQUESTS_V2",
4731            AtomId::AtomDeviceTelephonyProperties => "ATOM_DEVICE_TELEPHONY_PROPERTIES",
4732            AtomId::AtomRemoteKeyProvisioningErrorCounts => "ATOM_REMOTE_KEY_PROVISIONING_ERROR_COUNTS",
4733            AtomId::AtomSafetyState => "ATOM_SAFETY_STATE",
4734            AtomId::AtomIncomingMms => "ATOM_INCOMING_MMS",
4735            AtomId::AtomOutgoingMms => "ATOM_OUTGOING_MMS",
4736            AtomId::AtomMultiUserInfo => "ATOM_MULTI_USER_INFO",
4737            AtomId::AtomNetworkBpfMapInfo => "ATOM_NETWORK_BPF_MAP_INFO",
4738            AtomId::AtomOutgoingShortCodeSms => "ATOM_OUTGOING_SHORT_CODE_SMS",
4739            AtomId::AtomConnectivityStateSample => "ATOM_CONNECTIVITY_STATE_SAMPLE",
4740            AtomId::AtomNetworkSelectionRematchReasonsInfo => "ATOM_NETWORK_SELECTION_REMATCH_REASONS_INFO",
4741            AtomId::AtomGameModeInfo => "ATOM_GAME_MODE_INFO",
4742            AtomId::AtomGameModeConfiguration => "ATOM_GAME_MODE_CONFIGURATION",
4743            AtomId::AtomGameModeListener => "ATOM_GAME_MODE_LISTENER",
4744            AtomId::AtomNetworkSliceRequestCount => "ATOM_NETWORK_SLICE_REQUEST_COUNT",
4745            AtomId::AtomWsTileSnapshot => "ATOM_WS_TILE_SNAPSHOT",
4746            AtomId::AtomWsActiveWatchFaceComplicationSetSnapshot => "ATOM_WS_ACTIVE_WATCH_FACE_COMPLICATION_SET_SNAPSHOT",
4747            AtomId::AtomProcessState => "ATOM_PROCESS_STATE",
4748            AtomId::AtomProcessAssociation => "ATOM_PROCESS_ASSOCIATION",
4749            AtomId::AtomAdpfSystemComponentInfo => "ATOM_ADPF_SYSTEM_COMPONENT_INFO",
4750            AtomId::AtomNotificationMemoryUse => "ATOM_NOTIFICATION_MEMORY_USE",
4751            AtomId::AtomHdrCapabilities => "ATOM_HDR_CAPABILITIES",
4752            AtomId::AtomWsFavouriteWatchFaceListSnapshot => "ATOM_WS_FAVOURITE_WATCH_FACE_LIST_SNAPSHOT",
4753            AtomId::AtomAccessibilityCheckResultReported => "ATOM_ACCESSIBILITY_CHECK_RESULT_REPORTED",
4754            AtomId::AtomAdaptiveAuthUnlockAfterLockReported => "ATOM_ADAPTIVE_AUTH_UNLOCK_AFTER_LOCK_REPORTED",
4755            AtomId::AtomThermalStatusCalled => "ATOM_THERMAL_STATUS_CALLED",
4756            AtomId::AtomThermalHeadroomCalled => "ATOM_THERMAL_HEADROOM_CALLED",
4757            AtomId::AtomThermalHeadroomThresholdsCalled => "ATOM_THERMAL_HEADROOM_THRESHOLDS_CALLED",
4758            AtomId::AtomAdpfHintSessionTidCleanup => "ATOM_ADPF_HINT_SESSION_TID_CLEANUP",
4759            AtomId::AtomThermalHeadroomThresholds => "ATOM_THERMAL_HEADROOM_THRESHOLDS",
4760            AtomId::AtomAdpfSessionSnapshot => "ATOM_ADPF_SESSION_SNAPSHOT",
4761            AtomId::AtomJsscriptengineLatencyReported => "ATOM_JSSCRIPTENGINE_LATENCY_REPORTED",
4762            AtomId::AtomAdServicesApiCalled => "ATOM_AD_SERVICES_API_CALLED",
4763            AtomId::AtomAdServicesMesurementReportsUploaded => "ATOM_AD_SERVICES_MESUREMENT_REPORTS_UPLOADED",
4764            AtomId::AtomMobileDataDownloadFileGroupStatusReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STATUS_REPORTED",
4765            AtomId::AtomMobileDataDownloadDownloadResultReported => "ATOM_MOBILE_DATA_DOWNLOAD_DOWNLOAD_RESULT_REPORTED",
4766            AtomId::AtomAdServicesSettingsUsageReported => "ATOM_AD_SERVICES_SETTINGS_USAGE_REPORTED",
4767            AtomId::AtomBackgroundFetchProcessReported => "ATOM_BACKGROUND_FETCH_PROCESS_REPORTED",
4768            AtomId::AtomUpdateCustomAudienceProcessReported => "ATOM_UPDATE_CUSTOM_AUDIENCE_PROCESS_REPORTED",
4769            AtomId::AtomRunAdBiddingProcessReported => "ATOM_RUN_AD_BIDDING_PROCESS_REPORTED",
4770            AtomId::AtomRunAdScoringProcessReported => "ATOM_RUN_AD_SCORING_PROCESS_REPORTED",
4771            AtomId::AtomRunAdSelectionProcessReported => "ATOM_RUN_AD_SELECTION_PROCESS_REPORTED",
4772            AtomId::AtomRunAdBiddingPerCaProcessReported => "ATOM_RUN_AD_BIDDING_PER_CA_PROCESS_REPORTED",
4773            AtomId::AtomMobileDataDownloadFileGroupStorageStatsReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STORAGE_STATS_REPORTED",
4774            AtomId::AtomAdServicesMeasurementRegistrations => "ATOM_AD_SERVICES_MEASUREMENT_REGISTRATIONS",
4775            AtomId::AtomAdServicesGetTopicsReported => "ATOM_AD_SERVICES_GET_TOPICS_REPORTED",
4776            AtomId::AtomAdServicesEpochComputationGetTopTopicsReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_GET_TOP_TOPICS_REPORTED",
4777            AtomId::AtomAdServicesEpochComputationClassifierReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4778            AtomId::AtomAdServicesBackCompatGetTopicsReported => "ATOM_AD_SERVICES_BACK_COMPAT_GET_TOPICS_REPORTED",
4779            AtomId::AtomAdServicesBackCompatEpochComputationClassifierReported => "ATOM_AD_SERVICES_BACK_COMPAT_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4780            AtomId::AtomAdServicesMeasurementDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_DEBUG_KEYS",
4781            AtomId::AtomAdServicesErrorReported => "ATOM_AD_SERVICES_ERROR_REPORTED",
4782            AtomId::AtomAdServicesBackgroundJobsExecutionReported => "ATOM_AD_SERVICES_BACKGROUND_JOBS_EXECUTION_REPORTED",
4783            AtomId::AtomAdServicesMeasurementDelayedSourceRegistration => "ATOM_AD_SERVICES_MEASUREMENT_DELAYED_SOURCE_REGISTRATION",
4784            AtomId::AtomAdServicesMeasurementAttribution => "ATOM_AD_SERVICES_MEASUREMENT_ATTRIBUTION",
4785            AtomId::AtomAdServicesMeasurementJobs => "ATOM_AD_SERVICES_MEASUREMENT_JOBS",
4786            AtomId::AtomAdServicesMeasurementWipeout => "ATOM_AD_SERVICES_MEASUREMENT_WIPEOUT",
4787            AtomId::AtomAdServicesMeasurementAdIdMatchForDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_AD_ID_MATCH_FOR_DEBUG_KEYS",
4788            AtomId::AtomAdServicesEnrollmentDataStored => "ATOM_AD_SERVICES_ENROLLMENT_DATA_STORED",
4789            AtomId::AtomAdServicesEnrollmentFileDownloaded => "ATOM_AD_SERVICES_ENROLLMENT_FILE_DOWNLOADED",
4790            AtomId::AtomAdServicesEnrollmentMatched => "ATOM_AD_SERVICES_ENROLLMENT_MATCHED",
4791            AtomId::AtomAdServicesConsentMigrated => "ATOM_AD_SERVICES_CONSENT_MIGRATED",
4792            AtomId::AtomAdServicesEnrollmentFailed => "ATOM_AD_SERVICES_ENROLLMENT_FAILED",
4793            AtomId::AtomAdServicesMeasurementClickVerification => "ATOM_AD_SERVICES_MEASUREMENT_CLICK_VERIFICATION",
4794            AtomId::AtomAdServicesEncryptionKeyFetched => "ATOM_AD_SERVICES_ENCRYPTION_KEY_FETCHED",
4795            AtomId::AtomAdServicesEncryptionKeyDbTransactionEnded => "ATOM_AD_SERVICES_ENCRYPTION_KEY_DB_TRANSACTION_ENDED",
4796            AtomId::AtomDestinationRegisteredBeacons => "ATOM_DESTINATION_REGISTERED_BEACONS",
4797            AtomId::AtomReportInteractionApiCalled => "ATOM_REPORT_INTERACTION_API_CALLED",
4798            AtomId::AtomInteractionReportingTableCleared => "ATOM_INTERACTION_REPORTING_TABLE_CLEARED",
4799            AtomId::AtomAppManifestConfigHelperCalled => "ATOM_APP_MANIFEST_CONFIG_HELPER_CALLED",
4800            AtomId::AtomAdFilteringProcessJoinCaReported => "ATOM_AD_FILTERING_PROCESS_JOIN_CA_REPORTED",
4801            AtomId::AtomAdFilteringProcessAdSelectionReported => "ATOM_AD_FILTERING_PROCESS_AD_SELECTION_REPORTED",
4802            AtomId::AtomAdCounterHistogramUpdaterReported => "ATOM_AD_COUNTER_HISTOGRAM_UPDATER_REPORTED",
4803            AtomId::AtomSignatureVerification => "ATOM_SIGNATURE_VERIFICATION",
4804            AtomId::AtomKAnonImmediateSignJoinStatusReported => "ATOM_K_ANON_IMMEDIATE_SIGN_JOIN_STATUS_REPORTED",
4805            AtomId::AtomKAnonBackgroundJobStatusReported => "ATOM_K_ANON_BACKGROUND_JOB_STATUS_REPORTED",
4806            AtomId::AtomKAnonInitializeStatusReported => "ATOM_K_ANON_INITIALIZE_STATUS_REPORTED",
4807            AtomId::AtomKAnonSignStatusReported => "ATOM_K_ANON_SIGN_STATUS_REPORTED",
4808            AtomId::AtomKAnonJoinStatusReported => "ATOM_K_ANON_JOIN_STATUS_REPORTED",
4809            AtomId::AtomKAnonKeyAttestationStatusReported => "ATOM_K_ANON_KEY_ATTESTATION_STATUS_REPORTED",
4810            AtomId::AtomGetAdSelectionDataApiCalled => "ATOM_GET_AD_SELECTION_DATA_API_CALLED",
4811            AtomId::AtomGetAdSelectionDataBuyerInputGenerated => "ATOM_GET_AD_SELECTION_DATA_BUYER_INPUT_GENERATED",
4812            AtomId::AtomBackgroundJobSchedulingReported => "ATOM_BACKGROUND_JOB_SCHEDULING_REPORTED",
4813            AtomId::AtomTopicsEncryptionEpochComputationReported => "ATOM_TOPICS_ENCRYPTION_EPOCH_COMPUTATION_REPORTED",
4814            AtomId::AtomTopicsEncryptionGetTopicsReported => "ATOM_TOPICS_ENCRYPTION_GET_TOPICS_REPORTED",
4815            AtomId::AtomAdservicesShellCommandCalled => "ATOM_ADSERVICES_SHELL_COMMAND_CALLED",
4816            AtomId::AtomUpdateSignalsApiCalled => "ATOM_UPDATE_SIGNALS_API_CALLED",
4817            AtomId::AtomEncodingJobRun => "ATOM_ENCODING_JOB_RUN",
4818            AtomId::AtomEncodingJsFetch => "ATOM_ENCODING_JS_FETCH",
4819            AtomId::AtomEncodingJsExecution => "ATOM_ENCODING_JS_EXECUTION",
4820            AtomId::AtomPersistAdSelectionResultCalled => "ATOM_PERSIST_AD_SELECTION_RESULT_CALLED",
4821            AtomId::AtomServerAuctionKeyFetchCalled => "ATOM_SERVER_AUCTION_KEY_FETCH_CALLED",
4822            AtomId::AtomServerAuctionBackgroundKeyFetchEnabled => "ATOM_SERVER_AUCTION_BACKGROUND_KEY_FETCH_ENABLED",
4823            AtomId::AtomAdServicesMeasurementProcessOdpRegistration => "ATOM_AD_SERVICES_MEASUREMENT_PROCESS_ODP_REGISTRATION",
4824            AtomId::AtomAdServicesMeasurementNotifyRegistrationToOdp => "ATOM_AD_SERVICES_MEASUREMENT_NOTIFY_REGISTRATION_TO_ODP",
4825            AtomId::AtomSelectAdsFromOutcomesApiCalled => "ATOM_SELECT_ADS_FROM_OUTCOMES_API_CALLED",
4826            AtomId::AtomReportImpressionApiCalled => "ATOM_REPORT_IMPRESSION_API_CALLED",
4827            AtomId::AtomAdServicesEnrollmentTransactionStats => "ATOM_AD_SERVICES_ENROLLMENT_TRANSACTION_STATS",
4828            AtomId::AtomAdServicesCobaltLoggerEventReported => "ATOM_AD_SERVICES_COBALT_LOGGER_EVENT_REPORTED",
4829            AtomId::AtomAdServicesCobaltPeriodicJobEventReported => "ATOM_AD_SERVICES_COBALT_PERIODIC_JOB_EVENT_REPORTED",
4830            AtomId::AtomUpdateSignalsProcessReported => "ATOM_UPDATE_SIGNALS_PROCESS_REPORTED",
4831            AtomId::AtomTopicsScheduleEpochJobSettingReported => "ATOM_TOPICS_SCHEDULE_EPOCH_JOB_SETTING_REPORTED",
4832            AtomId::AtomAiWallpapersButtonPressed => "ATOM_AI_WALLPAPERS_BUTTON_PRESSED",
4833            AtomId::AtomAiWallpapersTemplateSelected => "ATOM_AI_WALLPAPERS_TEMPLATE_SELECTED",
4834            AtomId::AtomAiWallpapersTermSelected => "ATOM_AI_WALLPAPERS_TERM_SELECTED",
4835            AtomId::AtomAiWallpapersWallpaperSet => "ATOM_AI_WALLPAPERS_WALLPAPER_SET",
4836            AtomId::AtomAiWallpapersSessionSummary => "ATOM_AI_WALLPAPERS_SESSION_SUMMARY",
4837            AtomId::AtomApexInstallationRequested => "ATOM_APEX_INSTALLATION_REQUESTED",
4838            AtomId::AtomApexInstallationStaged => "ATOM_APEX_INSTALLATION_STAGED",
4839            AtomId::AtomApexInstallationEnded => "ATOM_APEX_INSTALLATION_ENDED",
4840            AtomId::AtomAppSearchSetSchemaStatsReported => "ATOM_APP_SEARCH_SET_SCHEMA_STATS_REPORTED",
4841            AtomId::AtomAppSearchSchemaMigrationStatsReported => "ATOM_APP_SEARCH_SCHEMA_MIGRATION_STATS_REPORTED",
4842            AtomId::AtomAppSearchUsageSearchIntentStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_STATS_REPORTED",
4843            AtomId::AtomAppSearchUsageSearchIntentRawQueryStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_RAW_QUERY_STATS_REPORTED",
4844            AtomId::AtomAppSearchAppsIndexerStatsReported => "ATOM_APP_SEARCH_APPS_INDEXER_STATS_REPORTED",
4845            AtomId::AtomArtDatumReported => "ATOM_ART_DATUM_REPORTED",
4846            AtomId::AtomArtDeviceDatumReported => "ATOM_ART_DEVICE_DATUM_REPORTED",
4847            AtomId::AtomArtDatumDeltaReported => "ATOM_ART_DATUM_DELTA_REPORTED",
4848            AtomId::AtomArtDex2oatReported => "ATOM_ART_DEX2OAT_REPORTED",
4849            AtomId::AtomArtDeviceStatus => "ATOM_ART_DEVICE_STATUS",
4850            AtomId::AtomBackgroundDexoptJobEnded => "ATOM_BACKGROUND_DEXOPT_JOB_ENDED",
4851            AtomId::AtomPrerebootDexoptJobEnded => "ATOM_PREREBOOT_DEXOPT_JOB_ENDED",
4852            AtomId::AtomOdrefreshReported => "ATOM_ODREFRESH_REPORTED",
4853            AtomId::AtomOdsignReported => "ATOM_ODSIGN_REPORTED",
4854            AtomId::AtomAutofillUiEventReported => "ATOM_AUTOFILL_UI_EVENT_REPORTED",
4855            AtomId::AtomAutofillFillRequestReported => "ATOM_AUTOFILL_FILL_REQUEST_REPORTED",
4856            AtomId::AtomAutofillFillResponseReported => "ATOM_AUTOFILL_FILL_RESPONSE_REPORTED",
4857            AtomId::AtomAutofillSaveEventReported => "ATOM_AUTOFILL_SAVE_EVENT_REPORTED",
4858            AtomId::AtomAutofillSessionCommitted => "ATOM_AUTOFILL_SESSION_COMMITTED",
4859            AtomId::AtomAutofillFieldClassificationEventReported => "ATOM_AUTOFILL_FIELD_CLASSIFICATION_EVENT_REPORTED",
4860            AtomId::AtomCarRecentsEventReported => "ATOM_CAR_RECENTS_EVENT_REPORTED",
4861            AtomId::AtomCarCalmModeEventReported => "ATOM_CAR_CALM_MODE_EVENT_REPORTED",
4862            AtomId::AtomCarWakeupFromSuspendReported => "ATOM_CAR_WAKEUP_FROM_SUSPEND_REPORTED",
4863            AtomId::AtomPluginInitialized => "ATOM_PLUGIN_INITIALIZED",
4864            AtomId::AtomBluetoothHashedDeviceNameReported => "ATOM_BLUETOOTH_HASHED_DEVICE_NAME_REPORTED",
4865            AtomId::AtomBluetoothL2capCocClientConnection => "ATOM_BLUETOOTH_L2CAP_COC_CLIENT_CONNECTION",
4866            AtomId::AtomBluetoothL2capCocServerConnection => "ATOM_BLUETOOTH_L2CAP_COC_SERVER_CONNECTION",
4867            AtomId::AtomBluetoothLeSessionConnected => "ATOM_BLUETOOTH_LE_SESSION_CONNECTED",
4868            AtomId::AtomRestrictedBluetoothDeviceNameReported => "ATOM_RESTRICTED_BLUETOOTH_DEVICE_NAME_REPORTED",
4869            AtomId::AtomBluetoothProfileConnectionAttempted => "ATOM_BLUETOOTH_PROFILE_CONNECTION_ATTEMPTED",
4870            AtomId::AtomBluetoothContentProfileErrorReported => "ATOM_BLUETOOTH_CONTENT_PROFILE_ERROR_REPORTED",
4871            AtomId::AtomBluetoothRfcommConnectionAttempted => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_ATTEMPTED",
4872            AtomId::AtomRemoteDeviceInformationWithMetricId => "ATOM_REMOTE_DEVICE_INFORMATION_WITH_METRIC_ID",
4873            AtomId::AtomLeAppScanStateChanged => "ATOM_LE_APP_SCAN_STATE_CHANGED",
4874            AtomId::AtomLeRadioScanStopped => "ATOM_LE_RADIO_SCAN_STOPPED",
4875            AtomId::AtomLeScanResultReceived => "ATOM_LE_SCAN_RESULT_RECEIVED",
4876            AtomId::AtomLeScanAbused => "ATOM_LE_SCAN_ABUSED",
4877            AtomId::AtomLeAdvStateChanged => "ATOM_LE_ADV_STATE_CHANGED",
4878            AtomId::AtomLeAdvErrorReported => "ATOM_LE_ADV_ERROR_REPORTED",
4879            AtomId::AtomA2dpSessionReported => "ATOM_A2DP_SESSION_REPORTED",
4880            AtomId::AtomBluetoothCrossLayerEventReported => "ATOM_BLUETOOTH_CROSS_LAYER_EVENT_REPORTED",
4881            AtomId::AtomBroadcastAudioSessionReported => "ATOM_BROADCAST_AUDIO_SESSION_REPORTED",
4882            AtomId::AtomBroadcastAudioSyncReported => "ATOM_BROADCAST_AUDIO_SYNC_REPORTED",
4883            AtomId::AtomBluetoothRfcommConnectionReportedAtClose => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_REPORTED_AT_CLOSE",
4884            AtomId::AtomBluetoothLeConnection => "ATOM_BLUETOOTH_LE_CONNECTION",
4885            AtomId::AtomBroadcastSent => "ATOM_BROADCAST_SENT",
4886            AtomId::AtomCameraFeatureCombinationQueryEvent => "ATOM_CAMERA_FEATURE_COMBINATION_QUERY_EVENT",
4887            AtomId::AtomCertificateTransparencyLogListStateChanged => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_STATE_CHANGED",
4888            AtomId::AtomCertificateTransparencyLogListUpdateFailed => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_UPDATE_FAILED",
4889            AtomId::AtomDailyKeepaliveInfoReported => "ATOM_DAILY_KEEPALIVE_INFO_REPORTED",
4890            AtomId::AtomNetworkRequestStateChanged => "ATOM_NETWORK_REQUEST_STATE_CHANGED",
4891            AtomId::AtomTetheringActiveSessionsReported => "ATOM_TETHERING_ACTIVE_SESSIONS_REPORTED",
4892            AtomId::AtomNetworkStatsRecorderFileOperated => "ATOM_NETWORK_STATS_RECORDER_FILE_OPERATED",
4893            AtomId::AtomCoreNetworkingTerribleErrorOccurred => "ATOM_CORE_NETWORKING_TERRIBLE_ERROR_OCCURRED",
4894            AtomId::AtomApfSessionInfoReported => "ATOM_APF_SESSION_INFO_REPORTED",
4895            AtomId::AtomIpClientRaInfoReported => "ATOM_IP_CLIENT_RA_INFO_REPORTED",
4896            AtomId::AtomVpnConnectionStateChanged => "ATOM_VPN_CONNECTION_STATE_CHANGED",
4897            AtomId::AtomVpnConnectionReported => "ATOM_VPN_CONNECTION_REPORTED",
4898            AtomId::AtomCpuPolicy => "ATOM_CPU_POLICY",
4899            AtomId::AtomCredentialManagerApiCalled => "ATOM_CREDENTIAL_MANAGER_API_CALLED",
4900            AtomId::AtomCredentialManagerInitPhaseReported => "ATOM_CREDENTIAL_MANAGER_INIT_PHASE_REPORTED",
4901            AtomId::AtomCredentialManagerCandidatePhaseReported => "ATOM_CREDENTIAL_MANAGER_CANDIDATE_PHASE_REPORTED",
4902            AtomId::AtomCredentialManagerFinalPhaseReported => "ATOM_CREDENTIAL_MANAGER_FINAL_PHASE_REPORTED",
4903            AtomId::AtomCredentialManagerTotalReported => "ATOM_CREDENTIAL_MANAGER_TOTAL_REPORTED",
4904            AtomId::AtomCredentialManagerFinalnouidReported => "ATOM_CREDENTIAL_MANAGER_FINALNOUID_REPORTED",
4905            AtomId::AtomCredentialManagerGetReported => "ATOM_CREDENTIAL_MANAGER_GET_REPORTED",
4906            AtomId::AtomCredentialManagerAuthClickReported => "ATOM_CREDENTIAL_MANAGER_AUTH_CLICK_REPORTED",
4907            AtomId::AtomCredentialManagerApiv2Called => "ATOM_CREDENTIAL_MANAGER_APIV2_CALLED",
4908            AtomId::AtomCronetEngineCreated => "ATOM_CRONET_ENGINE_CREATED",
4909            AtomId::AtomCronetTrafficReported => "ATOM_CRONET_TRAFFIC_REPORTED",
4910            AtomId::AtomCronetEngineBuilderInitialized => "ATOM_CRONET_ENGINE_BUILDER_INITIALIZED",
4911            AtomId::AtomCronetHttpFlagsInitialized => "ATOM_CRONET_HTTP_FLAGS_INITIALIZED",
4912            AtomId::AtomCronetInitialized => "ATOM_CRONET_INITIALIZED",
4913            AtomId::AtomDesktopModeUiChanged => "ATOM_DESKTOP_MODE_UI_CHANGED",
4914            AtomId::AtomDesktopModeSessionTaskUpdate => "ATOM_DESKTOP_MODE_SESSION_TASK_UPDATE",
4915            AtomId::AtomDesktopModeTaskSizeUpdated => "ATOM_DESKTOP_MODE_TASK_SIZE_UPDATED",
4916            AtomId::AtomDeviceLockCheckInRequestReported => "ATOM_DEVICE_LOCK_CHECK_IN_REQUEST_REPORTED",
4917            AtomId::AtomDeviceLockProvisioningCompleteReported => "ATOM_DEVICE_LOCK_PROVISIONING_COMPLETE_REPORTED",
4918            AtomId::AtomDeviceLockKioskAppRequestReported => "ATOM_DEVICE_LOCK_KIOSK_APP_REQUEST_REPORTED",
4919            AtomId::AtomDeviceLockCheckInRetryReported => "ATOM_DEVICE_LOCK_CHECK_IN_RETRY_REPORTED",
4920            AtomId::AtomDeviceLockProvisionFailureReported => "ATOM_DEVICE_LOCK_PROVISION_FAILURE_REPORTED",
4921            AtomId::AtomDeviceLockLockUnlockDeviceFailureReported => "ATOM_DEVICE_LOCK_LOCK_UNLOCK_DEVICE_FAILURE_REPORTED",
4922            AtomId::AtomDevicePolicyManagementMode => "ATOM_DEVICE_POLICY_MANAGEMENT_MODE",
4923            AtomId::AtomDevicePolicyState => "ATOM_DEVICE_POLICY_STATE",
4924            AtomId::AtomDisplayModeDirectorVoteChanged => "ATOM_DISPLAY_MODE_DIRECTOR_VOTE_CHANGED",
4925            AtomId::AtomExternalDisplayStateChanged => "ATOM_EXTERNAL_DISPLAY_STATE_CHANGED",
4926            AtomId::AtomDndStateChanged => "ATOM_DND_STATE_CHANGED",
4927            AtomId::AtomDreamSettingChanged => "ATOM_DREAM_SETTING_CHANGED",
4928            AtomId::AtomDreamSettingSnapshot => "ATOM_DREAM_SETTING_SNAPSHOT",
4929            AtomId::AtomExpressEventReported => "ATOM_EXPRESS_EVENT_REPORTED",
4930            AtomId::AtomExpressHistogramSampleReported => "ATOM_EXPRESS_HISTOGRAM_SAMPLE_REPORTED",
4931            AtomId::AtomExpressUidEventReported => "ATOM_EXPRESS_UID_EVENT_REPORTED",
4932            AtomId::AtomExpressUidHistogramSampleReported => "ATOM_EXPRESS_UID_HISTOGRAM_SAMPLE_REPORTED",
4933            AtomId::AtomFederatedComputeApiCalled => "ATOM_FEDERATED_COMPUTE_API_CALLED",
4934            AtomId::AtomFederatedComputeTrainingEventReported => "ATOM_FEDERATED_COMPUTE_TRAINING_EVENT_REPORTED",
4935            AtomId::AtomExampleIteratorNextLatencyReported => "ATOM_EXAMPLE_ITERATOR_NEXT_LATENCY_REPORTED",
4936            AtomId::AtomFullScreenIntentLaunched => "ATOM_FULL_SCREEN_INTENT_LAUNCHED",
4937            AtomId::AtomBalAllowed => "ATOM_BAL_ALLOWED",
4938            AtomId::AtomInTaskActivityStarted => "ATOM_IN_TASK_ACTIVITY_STARTED",
4939            AtomId::AtomDeviceOrientationChanged => "ATOM_DEVICE_ORIENTATION_CHANGED",
4940            AtomId::AtomCachedAppsHighWatermark => "ATOM_CACHED_APPS_HIGH_WATERMARK",
4941            AtomId::AtomStylusPredictionMetricsReported => "ATOM_STYLUS_PREDICTION_METRICS_REPORTED",
4942            AtomId::AtomUserRiskEventReported => "ATOM_USER_RISK_EVENT_REPORTED",
4943            AtomId::AtomMediaProjectionStateChanged => "ATOM_MEDIA_PROJECTION_STATE_CHANGED",
4944            AtomId::AtomMediaProjectionTargetChanged => "ATOM_MEDIA_PROJECTION_TARGET_CHANGED",
4945            AtomId::AtomExcessiveBinderProxyCountReported => "ATOM_EXCESSIVE_BINDER_PROXY_COUNT_REPORTED",
4946            AtomId::AtomProxyBytesTransferByFgBg => "ATOM_PROXY_BYTES_TRANSFER_BY_FG_BG",
4947            AtomId::AtomMobileBytesTransferByProcState => "ATOM_MOBILE_BYTES_TRANSFER_BY_PROC_STATE",
4948            AtomId::AtomBiometricFrrNotification => "ATOM_BIOMETRIC_FRR_NOTIFICATION",
4949            AtomId::AtomSensitiveContentMediaProjectionSession => "ATOM_SENSITIVE_CONTENT_MEDIA_PROJECTION_SESSION",
4950            AtomId::AtomSensitiveNotificationAppProtectionSession => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_SESSION",
4951            AtomId::AtomSensitiveNotificationAppProtectionApplied => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_APPLIED",
4952            AtomId::AtomSensitiveNotificationRedaction => "ATOM_SENSITIVE_NOTIFICATION_REDACTION",
4953            AtomId::AtomSensitiveContentAppProtection => "ATOM_SENSITIVE_CONTENT_APP_PROTECTION",
4954            AtomId::AtomAppRestrictionStateChanged => "ATOM_APP_RESTRICTION_STATE_CHANGED",
4955            AtomId::AtomBatteryUsageStatsPerUid => "ATOM_BATTERY_USAGE_STATS_PER_UID",
4956            AtomId::AtomPostgcMemorySnapshot => "ATOM_POSTGC_MEMORY_SNAPSHOT",
4957            AtomId::AtomPowerSaveTempAllowlistChanged => "ATOM_POWER_SAVE_TEMP_ALLOWLIST_CHANGED",
4958            AtomId::AtomAppOpAccessTracked => "ATOM_APP_OP_ACCESS_TRACKED",
4959            AtomId::AtomContentOrFileUriEventReported => "ATOM_CONTENT_OR_FILE_URI_EVENT_REPORTED",
4960            AtomId::AtomApplicationGrammaticalInflectionChanged => "ATOM_APPLICATION_GRAMMATICAL_INFLECTION_CHANGED",
4961            AtomId::AtomSystemGrammaticalInflectionChanged => "ATOM_SYSTEM_GRAMMATICAL_INFLECTION_CHANGED",
4962            AtomId::AtomBatteryHealth => "ATOM_BATTERY_HEALTH",
4963            AtomId::AtomHdmiEarcStatusReported => "ATOM_HDMI_EARC_STATUS_REPORTED",
4964            AtomId::AtomHdmiSoundbarModeStatusReported => "ATOM_HDMI_SOUNDBAR_MODE_STATUS_REPORTED",
4965            AtomId::AtomHealthConnectApiCalled => "ATOM_HEALTH_CONNECT_API_CALLED",
4966            AtomId::AtomHealthConnectUsageStats => "ATOM_HEALTH_CONNECT_USAGE_STATS",
4967            AtomId::AtomHealthConnectStorageStats => "ATOM_HEALTH_CONNECT_STORAGE_STATS",
4968            AtomId::AtomHealthConnectApiInvoked => "ATOM_HEALTH_CONNECT_API_INVOKED",
4969            AtomId::AtomExerciseRouteApiCalled => "ATOM_EXERCISE_ROUTE_API_CALLED",
4970            AtomId::AtomHealthConnectExportInvoked => "ATOM_HEALTH_CONNECT_EXPORT_INVOKED",
4971            AtomId::AtomHealthConnectImportInvoked => "ATOM_HEALTH_CONNECT_IMPORT_INVOKED",
4972            AtomId::AtomHealthConnectExportImportStatsReported => "ATOM_HEALTH_CONNECT_EXPORT_IMPORT_STATS_REPORTED",
4973            AtomId::AtomHealthConnectUiImpression => "ATOM_HEALTH_CONNECT_UI_IMPRESSION",
4974            AtomId::AtomHealthConnectUiInteraction => "ATOM_HEALTH_CONNECT_UI_INTERACTION",
4975            AtomId::AtomHealthConnectAppOpenedReported => "ATOM_HEALTH_CONNECT_APP_OPENED_REPORTED",
4976            AtomId::AtomHotwordEgressSizeAtomReported => "ATOM_HOTWORD_EGRESS_SIZE_ATOM_REPORTED",
4977            AtomId::AtomIkeSessionTerminated => "ATOM_IKE_SESSION_TERMINATED",
4978            AtomId::AtomIkeLivenessCheckSessionValidated => "ATOM_IKE_LIVENESS_CHECK_SESSION_VALIDATED",
4979            AtomId::AtomNegotiatedSecurityAssociation => "ATOM_NEGOTIATED_SECURITY_ASSOCIATION",
4980            AtomId::AtomKeyboardConfigured => "ATOM_KEYBOARD_CONFIGURED",
4981            AtomId::AtomKeyboardSystemsEventReported => "ATOM_KEYBOARD_SYSTEMS_EVENT_REPORTED",
4982            AtomId::AtomInputdeviceUsageReported => "ATOM_INPUTDEVICE_USAGE_REPORTED",
4983            AtomId::AtomInputEventLatencyReported => "ATOM_INPUT_EVENT_LATENCY_REPORTED",
4984            AtomId::AtomTouchpadUsage => "ATOM_TOUCHPAD_USAGE",
4985            AtomId::AtomKernelOomKillOccurred => "ATOM_KERNEL_OOM_KILL_OCCURRED",
4986            AtomId::AtomEmergencyStateChanged => "ATOM_EMERGENCY_STATE_CHANGED",
4987            AtomId::AtomChreSignificantMotionStateChanged => "ATOM_CHRE_SIGNIFICANT_MOTION_STATE_CHANGED",
4988            AtomId::AtomPopulationDensityProviderLoadingReported => "ATOM_POPULATION_DENSITY_PROVIDER_LOADING_REPORTED",
4989            AtomId::AtomDensityBasedCoarseLocationsUsageReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_USAGE_REPORTED",
4990            AtomId::AtomDensityBasedCoarseLocationsProviderQueryReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_PROVIDER_QUERY_REPORTED",
4991            AtomId::AtomMediaCodecReclaimRequestCompleted => "ATOM_MEDIA_CODEC_RECLAIM_REQUEST_COMPLETED",
4992            AtomId::AtomMediaCodecStarted => "ATOM_MEDIA_CODEC_STARTED",
4993            AtomId::AtomMediaCodecStopped => "ATOM_MEDIA_CODEC_STOPPED",
4994            AtomId::AtomMediaCodecRendered => "ATOM_MEDIA_CODEC_RENDERED",
4995            AtomId::AtomMediaEditingEndedReported => "ATOM_MEDIA_EDITING_ENDED_REPORTED",
4996            AtomId::AtomMteState => "ATOM_MTE_STATE",
4997            AtomId::AtomMicroxrDeviceBootCompleteReported => "ATOM_MICROXR_DEVICE_BOOT_COMPLETE_REPORTED",
4998            AtomId::AtomNfcObserveModeStateChanged => "ATOM_NFC_OBSERVE_MODE_STATE_CHANGED",
4999            AtomId::AtomNfcFieldChanged => "ATOM_NFC_FIELD_CHANGED",
5000            AtomId::AtomNfcPollingLoopNotificationReported => "ATOM_NFC_POLLING_LOOP_NOTIFICATION_REPORTED",
5001            AtomId::AtomNfcProprietaryCapabilitiesReported => "ATOM_NFC_PROPRIETARY_CAPABILITIES_REPORTED",
5002            AtomId::AtomOndevicepersonalizationApiCalled => "ATOM_ONDEVICEPERSONALIZATION_API_CALLED",
5003            AtomId::AtomComponentStateChangedReported => "ATOM_COMPONENT_STATE_CHANGED_REPORTED",
5004            AtomId::AtomPdfLoadReported => "ATOM_PDF_LOAD_REPORTED",
5005            AtomId::AtomPdfApiUsageReported => "ATOM_PDF_API_USAGE_REPORTED",
5006            AtomId::AtomPdfSearchReported => "ATOM_PDF_SEARCH_REPORTED",
5007            AtomId::AtomPressureStallInformation => "ATOM_PRESSURE_STALL_INFORMATION",
5008            AtomId::AtomPermissionRationaleDialogViewed => "ATOM_PERMISSION_RATIONALE_DIALOG_VIEWED",
5009            AtomId::AtomPermissionRationaleDialogActionReported => "ATOM_PERMISSION_RATIONALE_DIALOG_ACTION_REPORTED",
5010            AtomId::AtomAppDataSharingUpdatesNotificationInteraction => "ATOM_APP_DATA_SHARING_UPDATES_NOTIFICATION_INTERACTION",
5011            AtomId::AtomAppDataSharingUpdatesFragmentViewed => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_VIEWED",
5012            AtomId::AtomAppDataSharingUpdatesFragmentActionReported => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_ACTION_REPORTED",
5013            AtomId::AtomEnhancedConfirmationDialogResultReported => "ATOM_ENHANCED_CONFIRMATION_DIALOG_RESULT_REPORTED",
5014            AtomId::AtomEnhancedConfirmationRestrictionCleared => "ATOM_ENHANCED_CONFIRMATION_RESTRICTION_CLEARED",
5015            AtomId::AtomPhotopickerSessionInfoReported => "ATOM_PHOTOPICKER_SESSION_INFO_REPORTED",
5016            AtomId::AtomPhotopickerApiInfoReported => "ATOM_PHOTOPICKER_API_INFO_REPORTED",
5017            AtomId::AtomPhotopickerUiEventLogged => "ATOM_PHOTOPICKER_UI_EVENT_LOGGED",
5018            AtomId::AtomPhotopickerMediaItemStatusReported => "ATOM_PHOTOPICKER_MEDIA_ITEM_STATUS_REPORTED",
5019            AtomId::AtomPhotopickerPreviewInfoLogged => "ATOM_PHOTOPICKER_PREVIEW_INFO_LOGGED",
5020            AtomId::AtomPhotopickerMenuInteractionLogged => "ATOM_PHOTOPICKER_MENU_INTERACTION_LOGGED",
5021            AtomId::AtomPhotopickerBannerInteractionLogged => "ATOM_PHOTOPICKER_BANNER_INTERACTION_LOGGED",
5022            AtomId::AtomPhotopickerMediaLibraryInfoLogged => "ATOM_PHOTOPICKER_MEDIA_LIBRARY_INFO_LOGGED",
5023            AtomId::AtomPhotopickerPageInfoLogged => "ATOM_PHOTOPICKER_PAGE_INFO_LOGGED",
5024            AtomId::AtomPhotopickerMediaGridSyncInfoReported => "ATOM_PHOTOPICKER_MEDIA_GRID_SYNC_INFO_REPORTED",
5025            AtomId::AtomPhotopickerAlbumSyncInfoReported => "ATOM_PHOTOPICKER_ALBUM_SYNC_INFO_REPORTED",
5026            AtomId::AtomPhotopickerSearchInfoReported => "ATOM_PHOTOPICKER_SEARCH_INFO_REPORTED",
5027            AtomId::AtomSearchDataExtractionDetailsReported => "ATOM_SEARCH_DATA_EXTRACTION_DETAILS_REPORTED",
5028            AtomId::AtomEmbeddedPhotopickerInfoReported => "ATOM_EMBEDDED_PHOTOPICKER_INFO_REPORTED",
5029            AtomId::AtomAtom9999 => "ATOM_ATOM_9999",
5030            AtomId::AtomAtom99999 => "ATOM_ATOM_99999",
5031            AtomId::AtomScreenOffReported => "ATOM_SCREEN_OFF_REPORTED",
5032            AtomId::AtomScreenTimeoutOverrideReported => "ATOM_SCREEN_TIMEOUT_OVERRIDE_REPORTED",
5033            AtomId::AtomScreenInteractiveSessionReported => "ATOM_SCREEN_INTERACTIVE_SESSION_REPORTED",
5034            AtomId::AtomScreenDimReported => "ATOM_SCREEN_DIM_REPORTED",
5035            AtomId::AtomMediaProviderDatabaseRollbackReported => "ATOM_MEDIA_PROVIDER_DATABASE_ROLLBACK_REPORTED",
5036            AtomId::AtomBackupSetupStatusReported => "ATOM_BACKUP_SETUP_STATUS_REPORTED",
5037            AtomId::AtomRangingSessionConfigured => "ATOM_RANGING_SESSION_CONFIGURED",
5038            AtomId::AtomRangingSessionStarted => "ATOM_RANGING_SESSION_STARTED",
5039            AtomId::AtomRangingSessionClosed => "ATOM_RANGING_SESSION_CLOSED",
5040            AtomId::AtomRangingTechnologyStarted => "ATOM_RANGING_TECHNOLOGY_STARTED",
5041            AtomId::AtomRangingTechnologyStopped => "ATOM_RANGING_TECHNOLOGY_STOPPED",
5042            AtomId::AtomRkpdPoolStats => "ATOM_RKPD_POOL_STATS",
5043            AtomId::AtomRkpdClientOperation => "ATOM_RKPD_CLIENT_OPERATION",
5044            AtomId::AtomSandboxApiCalled => "ATOM_SANDBOX_API_CALLED",
5045            AtomId::AtomSandboxActivityEventOccurred => "ATOM_SANDBOX_ACTIVITY_EVENT_OCCURRED",
5046            AtomId::AtomSdkSandboxRestrictedAccessInSession => "ATOM_SDK_SANDBOX_RESTRICTED_ACCESS_IN_SESSION",
5047            AtomId::AtomSandboxSdkStorage => "ATOM_SANDBOX_SDK_STORAGE",
5048            AtomId::AtomSelinuxAuditLog => "ATOM_SELINUX_AUDIT_LOG",
5049            AtomId::AtomSettingsSpaReported => "ATOM_SETTINGS_SPA_REPORTED",
5050            AtomId::AtomTestExtensionAtomReported => "ATOM_TEST_EXTENSION_ATOM_REPORTED",
5051            AtomId::AtomTestRestrictedAtomReported => "ATOM_TEST_RESTRICTED_ATOM_REPORTED",
5052            AtomId::AtomStatsSocketLossReported => "ATOM_STATS_SOCKET_LOSS_REPORTED",
5053            AtomId::AtomLockscreenShortcutSelected => "ATOM_LOCKSCREEN_SHORTCUT_SELECTED",
5054            AtomId::AtomLockscreenShortcutTriggered => "ATOM_LOCKSCREEN_SHORTCUT_TRIGGERED",
5055            AtomId::AtomLauncherImpressionEventV2 => "ATOM_LAUNCHER_IMPRESSION_EVENT_V2",
5056            AtomId::AtomDisplaySwitchLatencyTracked => "ATOM_DISPLAY_SWITCH_LATENCY_TRACKED",
5057            AtomId::AtomNotificationListenerService => "ATOM_NOTIFICATION_LISTENER_SERVICE",
5058            AtomId::AtomNavHandleTouchPoints => "ATOM_NAV_HANDLE_TOUCH_POINTS",
5059            AtomId::AtomCommunalHubWidgetEventReported => "ATOM_COMMUNAL_HUB_WIDGET_EVENT_REPORTED",
5060            AtomId::AtomCommunalHubSnapshot => "ATOM_COMMUNAL_HUB_SNAPSHOT",
5061            AtomId::AtomEmergencyNumberDialed => "ATOM_EMERGENCY_NUMBER_DIALED",
5062            AtomId::AtomCallStats => "ATOM_CALL_STATS",
5063            AtomId::AtomCallAudioRouteStats => "ATOM_CALL_AUDIO_ROUTE_STATS",
5064            AtomId::AtomTelecomApiStats => "ATOM_TELECOM_API_STATS",
5065            AtomId::AtomTelecomErrorStats => "ATOM_TELECOM_ERROR_STATS",
5066            AtomId::AtomCellularRadioPowerStateChanged => "ATOM_CELLULAR_RADIO_POWER_STATE_CHANGED",
5067            AtomId::AtomEmergencyNumbersInfo => "ATOM_EMERGENCY_NUMBERS_INFO",
5068            AtomId::AtomDataNetworkValidation => "ATOM_DATA_NETWORK_VALIDATION",
5069            AtomId::AtomDataRatStateChanged => "ATOM_DATA_RAT_STATE_CHANGED",
5070            AtomId::AtomConnectedChannelChanged => "ATOM_CONNECTED_CHANNEL_CHANGED",
5071            AtomId::AtomIwlanUnderlyingNetworkValidationResultReported => "ATOM_IWLAN_UNDERLYING_NETWORK_VALIDATION_RESULT_REPORTED",
5072            AtomId::AtomQualifiedRatListChanged => "ATOM_QUALIFIED_RAT_LIST_CHANGED",
5073            AtomId::AtomQnsImsCallDropStats => "ATOM_QNS_IMS_CALL_DROP_STATS",
5074            AtomId::AtomQnsFallbackRestrictionChanged => "ATOM_QNS_FALLBACK_RESTRICTION_CHANGED",
5075            AtomId::AtomQnsRatPreferenceMismatchInfo => "ATOM_QNS_RAT_PREFERENCE_MISMATCH_INFO",
5076            AtomId::AtomQnsHandoverTimeMillis => "ATOM_QNS_HANDOVER_TIME_MILLIS",
5077            AtomId::AtomQnsHandoverPingpong => "ATOM_QNS_HANDOVER_PINGPONG",
5078            AtomId::AtomSatelliteController => "ATOM_SATELLITE_CONTROLLER",
5079            AtomId::AtomSatelliteSession => "ATOM_SATELLITE_SESSION",
5080            AtomId::AtomSatelliteIncomingDatagram => "ATOM_SATELLITE_INCOMING_DATAGRAM",
5081            AtomId::AtomSatelliteOutgoingDatagram => "ATOM_SATELLITE_OUTGOING_DATAGRAM",
5082            AtomId::AtomSatelliteProvision => "ATOM_SATELLITE_PROVISION",
5083            AtomId::AtomSatelliteSosMessageRecommender => "ATOM_SATELLITE_SOS_MESSAGE_RECOMMENDER",
5084            AtomId::AtomCarrierRoamingSatelliteSession => "ATOM_CARRIER_ROAMING_SATELLITE_SESSION",
5085            AtomId::AtomCarrierRoamingSatelliteControllerStats => "ATOM_CARRIER_ROAMING_SATELLITE_CONTROLLER_STATS",
5086            AtomId::AtomControllerStatsPerPackage => "ATOM_CONTROLLER_STATS_PER_PACKAGE",
5087            AtomId::AtomSatelliteEntitlement => "ATOM_SATELLITE_ENTITLEMENT",
5088            AtomId::AtomSatelliteConfigUpdater => "ATOM_SATELLITE_CONFIG_UPDATER",
5089            AtomId::AtomSatelliteAccessController => "ATOM_SATELLITE_ACCESS_CONTROLLER",
5090            AtomId::AtomCellularIdentifierDisclosed => "ATOM_CELLULAR_IDENTIFIER_DISCLOSED",
5091            AtomId::AtomThreadnetworkTelemetryDataReported => "ATOM_THREADNETWORK_TELEMETRY_DATA_REPORTED",
5092            AtomId::AtomThreadnetworkTopoEntryRepeated => "ATOM_THREADNETWORK_TOPO_ENTRY_REPEATED",
5093            AtomId::AtomThreadnetworkDeviceInfoReported => "ATOM_THREADNETWORK_DEVICE_INFO_REPORTED",
5094            AtomId::AtomBootIntegrityInfoReported => "ATOM_BOOT_INTEGRITY_INFO_REPORTED",
5095            AtomId::AtomTvLowPowerStandbyPolicy => "ATOM_TV_LOW_POWER_STANDBY_POLICY",
5096            AtomId::AtomExternalTvInputEvent => "ATOM_EXTERNAL_TV_INPUT_EVENT",
5097            AtomId::AtomTestUprobestatsAtomReported => "ATOM_TEST_UPROBESTATS_ATOM_REPORTED",
5098            AtomId::AtomUwbActivityInfo => "ATOM_UWB_ACTIVITY_INFO",
5099            AtomId::AtomMediatorUpdated => "ATOM_MEDIATOR_UPDATED",
5100            AtomId::AtomSysproxyBluetoothBytesTransfer => "ATOM_SYSPROXY_BLUETOOTH_BYTES_TRANSFER",
5101            AtomId::AtomSysproxyConnectionUpdated => "ATOM_SYSPROXY_CONNECTION_UPDATED",
5102            AtomId::AtomWearCompanionConnectionState => "ATOM_WEAR_COMPANION_CONNECTION_STATE",
5103            AtomId::AtomMediaActionReported => "ATOM_MEDIA_ACTION_REPORTED",
5104            AtomId::AtomMediaControlsLaunched => "ATOM_MEDIA_CONTROLS_LAUNCHED",
5105            AtomId::AtomMediaSessionStateChanged => "ATOM_MEDIA_SESSION_STATE_CHANGED",
5106            AtomId::AtomWearMediaOutputSwitcherDeviceScanApiLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_API_LATENCY",
5107            AtomId::AtomWearMediaOutputSwitcherSassDeviceUnavailable => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_SASS_DEVICE_UNAVAILABLE",
5108            AtomId::AtomWearMediaOutputSwitcherFastpairApiTimeout => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FASTPAIR_API_TIMEOUT",
5109            AtomId::AtomWearModeStateChanged => "ATOM_WEAR_MODE_STATE_CHANGED",
5110            AtomId::AtomRendererInitialized => "ATOM_RENDERER_INITIALIZED",
5111            AtomId::AtomSchemaVersionReceived => "ATOM_SCHEMA_VERSION_RECEIVED",
5112            AtomId::AtomLayoutInspected => "ATOM_LAYOUT_INSPECTED",
5113            AtomId::AtomLayoutExpressionInspected => "ATOM_LAYOUT_EXPRESSION_INSPECTED",
5114            AtomId::AtomLayoutAnimationsInspected => "ATOM_LAYOUT_ANIMATIONS_INSPECTED",
5115            AtomId::AtomMaterialComponentsInspected => "ATOM_MATERIAL_COMPONENTS_INSPECTED",
5116            AtomId::AtomTileRequested => "ATOM_TILE_REQUESTED",
5117            AtomId::AtomStateResponseReceived => "ATOM_STATE_RESPONSE_RECEIVED",
5118            AtomId::AtomTileResponseReceived => "ATOM_TILE_RESPONSE_RECEIVED",
5119            AtomId::AtomInflationFinished => "ATOM_INFLATION_FINISHED",
5120            AtomId::AtomInflationFailed => "ATOM_INFLATION_FAILED",
5121            AtomId::AtomIgnoredInflationFailuresReported => "ATOM_IGNORED_INFLATION_FAILURES_REPORTED",
5122            AtomId::AtomDrawableRendered => "ATOM_DRAWABLE_RENDERED",
5123            AtomId::AtomWearTimeSyncRequested => "ATOM_WEAR_TIME_SYNC_REQUESTED",
5124            AtomId::AtomWearTimeUpdateStarted => "ATOM_WEAR_TIME_UPDATE_STARTED",
5125            AtomId::AtomWearTimeSyncAttemptCompleted => "ATOM_WEAR_TIME_SYNC_ATTEMPT_COMPLETED",
5126            AtomId::AtomWearTimeChanged => "ATOM_WEAR_TIME_CHANGED",
5127            AtomId::AtomWearAdaptiveSuspendStatsReported => "ATOM_WEAR_ADAPTIVE_SUSPEND_STATS_REPORTED",
5128            AtomId::AtomWearPowerAnomalyServiceOperationalStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_OPERATIONAL_STATS_REPORTED",
5129            AtomId::AtomWearPowerAnomalyServiceEventStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_EVENT_STATS_REPORTED",
5130            AtomId::AtomWsWearTimeSession => "ATOM_WS_WEAR_TIME_SESSION",
5131            AtomId::AtomWsIncomingCallActionReported => "ATOM_WS_INCOMING_CALL_ACTION_REPORTED",
5132            AtomId::AtomWsCallDisconnectionReported => "ATOM_WS_CALL_DISCONNECTION_REPORTED",
5133            AtomId::AtomWsCallDurationReported => "ATOM_WS_CALL_DURATION_REPORTED",
5134            AtomId::AtomWsCallUserExperienceLatencyReported => "ATOM_WS_CALL_USER_EXPERIENCE_LATENCY_REPORTED",
5135            AtomId::AtomWsCallInteractionReported => "ATOM_WS_CALL_INTERACTION_REPORTED",
5136            AtomId::AtomWsOnBodyStateChanged => "ATOM_WS_ON_BODY_STATE_CHANGED",
5137            AtomId::AtomWsWatchFaceRestrictedComplicationsImpacted => "ATOM_WS_WATCH_FACE_RESTRICTED_COMPLICATIONS_IMPACTED",
5138            AtomId::AtomWsWatchFaceDefaultRestrictedComplicationsRemoved => "ATOM_WS_WATCH_FACE_DEFAULT_RESTRICTED_COMPLICATIONS_REMOVED",
5139            AtomId::AtomWsComplicationsImpactedNotificationEventReported => "ATOM_WS_COMPLICATIONS_IMPACTED_NOTIFICATION_EVENT_REPORTED",
5140            AtomId::AtomWsRemoteEventUsageReported => "ATOM_WS_REMOTE_EVENT_USAGE_REPORTED",
5141            AtomId::AtomWsBugreportRequested => "ATOM_WS_BUGREPORT_REQUESTED",
5142            AtomId::AtomWsBugreportTriggered => "ATOM_WS_BUGREPORT_TRIGGERED",
5143            AtomId::AtomWsBugreportFinished => "ATOM_WS_BUGREPORT_FINISHED",
5144            AtomId::AtomWsBugreportResultReceived => "ATOM_WS_BUGREPORT_RESULT_RECEIVED",
5145            AtomId::AtomWsStandaloneModeSnapshot => "ATOM_WS_STANDALONE_MODE_SNAPSHOT",
5146            AtomId::AtomWsFavoriteWatchFaceSnapshot => "ATOM_WS_FAVORITE_WATCH_FACE_SNAPSHOT",
5147            AtomId::AtomWsPhotosWatchFaceFeatureSnapshot => "ATOM_WS_PHOTOS_WATCH_FACE_FEATURE_SNAPSHOT",
5148            AtomId::AtomWsWatchFaceCustomizationSnapshot => "ATOM_WS_WATCH_FACE_CUSTOMIZATION_SNAPSHOT",
5149            AtomId::AtomWearPowerMenuOpened => "ATOM_WEAR_POWER_MENU_OPENED",
5150            AtomId::AtomWearAssistantOpened => "ATOM_WEAR_ASSISTANT_OPENED",
5151            AtomId::AtomFirstOverlayStateChanged => "ATOM_FIRST_OVERLAY_STATE_CHANGED",
5152            AtomId::AtomWifiAwareNdpReported => "ATOM_WIFI_AWARE_NDP_REPORTED",
5153            AtomId::AtomWifiAwareAttachReported => "ATOM_WIFI_AWARE_ATTACH_REPORTED",
5154            AtomId::AtomWifiSelfRecoveryTriggered => "ATOM_WIFI_SELF_RECOVERY_TRIGGERED",
5155            AtomId::AtomSoftApStarted => "ATOM_SOFT_AP_STARTED",
5156            AtomId::AtomSoftApStopped => "ATOM_SOFT_AP_STOPPED",
5157            AtomId::AtomWifiLockReleased => "ATOM_WIFI_LOCK_RELEASED",
5158            AtomId::AtomWifiLockDeactivated => "ATOM_WIFI_LOCK_DEACTIVATED",
5159            AtomId::AtomWifiConfigSaved => "ATOM_WIFI_CONFIG_SAVED",
5160            AtomId::AtomWifiAwareResourceUsingChanged => "ATOM_WIFI_AWARE_RESOURCE_USING_CHANGED",
5161            AtomId::AtomWifiAwareHalApiCalled => "ATOM_WIFI_AWARE_HAL_API_CALLED",
5162            AtomId::AtomWifiLocalOnlyRequestReceived => "ATOM_WIFI_LOCAL_ONLY_REQUEST_RECEIVED",
5163            AtomId::AtomWifiLocalOnlyRequestScanTriggered => "ATOM_WIFI_LOCAL_ONLY_REQUEST_SCAN_TRIGGERED",
5164            AtomId::AtomWifiThreadTaskExecuted => "ATOM_WIFI_THREAD_TASK_EXECUTED",
5165            AtomId::AtomWifiStateChanged => "ATOM_WIFI_STATE_CHANGED",
5166            AtomId::AtomPnoScanStarted => "ATOM_PNO_SCAN_STARTED",
5167            AtomId::AtomPnoScanStopped => "ATOM_PNO_SCAN_STOPPED",
5168            AtomId::AtomWifiIsUnusableReported => "ATOM_WIFI_IS_UNUSABLE_REPORTED",
5169            AtomId::AtomWifiApCapabilitiesReported => "ATOM_WIFI_AP_CAPABILITIES_REPORTED",
5170            AtomId::AtomSoftApStateChanged => "ATOM_SOFT_AP_STATE_CHANGED",
5171            AtomId::AtomScorerPredictionResultReported => "ATOM_SCORER_PREDICTION_RESULT_REPORTED",
5172            AtomId::AtomWifiAwareCapabilities => "ATOM_WIFI_AWARE_CAPABILITIES",
5173            AtomId::AtomWifiModuleInfo => "ATOM_WIFI_MODULE_INFO",
5174            AtomId::AtomWifiSettingInfo => "ATOM_WIFI_SETTING_INFO",
5175            AtomId::AtomWifiComplexSettingInfo => "ATOM_WIFI_COMPLEX_SETTING_INFO",
5176            AtomId::AtomWifiConfiguredNetworkInfo => "ATOM_WIFI_CONFIGURED_NETWORK_INFO",
5177        }
5178    }
5179}
5180/// This file is named 'statsd_tracing_config.proto' rather than
5181/// 'statsd_config.proto' (which would be more consistent with the other
5182/// config protos) so it doesn't show up and confuse folks looking for
5183/// the existing statsd_config.proto for configuring statsd itself.
5184/// Same for the config proto itself.
5185#[derive(Clone, PartialEq, ::prost::Message)]
5186pub struct StatsdTracingConfig {
5187    /// This is for the common case of the atom id being known in the enum AtomId.
5188    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
5189    pub push_atom_id: ::prost::alloc::vec::Vec<i32>,
5190    /// Escape hatch for Atom IDs that are not yet in the AtomId enum
5191    /// (e.g. non-upstream atoms that don't exist in AOSP).
5192    #[prost(int32, repeated, packed="false", tag="2")]
5193    pub raw_push_atom_id: ::prost::alloc::vec::Vec<i32>,
5194    #[prost(message, repeated, tag="3")]
5195    pub pull_config: ::prost::alloc::vec::Vec<StatsdPullAtomConfig>,
5196}
5197#[derive(Clone, PartialEq, ::prost::Message)]
5198pub struct StatsdPullAtomConfig {
5199    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
5200    pub pull_atom_id: ::prost::alloc::vec::Vec<i32>,
5201    #[prost(int32, repeated, packed="false", tag="2")]
5202    pub raw_pull_atom_id: ::prost::alloc::vec::Vec<i32>,
5203    #[prost(int32, optional, tag="3")]
5204    pub pull_frequency_ms: ::core::option::Option<i32>,
5205    #[prost(string, repeated, tag="4")]
5206    pub packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5207}
5208/// Configuration that allows to boost the priority of the 'traced' or
5209/// 'traced_probs' processes, by changing the scheduler configuration.
5210/// Only supported on Linux and Android the boosted process must have
5211/// 'CAP_SYS_NICE' capability.
5212#[derive(Clone, PartialEq, ::prost::Message)]
5213pub struct PriorityBoostConfig {
5214    #[prost(enumeration="priority_boost_config::BoostPolicy", optional, tag="1")]
5215    pub policy: ::core::option::Option<i32>,
5216    #[prost(uint32, optional, tag="2")]
5217    pub priority: ::core::option::Option<u32>,
5218}
5219/// Nested message and enum types in `PriorityBoostConfig`.
5220pub mod priority_boost_config {
5221    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5222    #[repr(i32)]
5223    pub enum BoostPolicy {
5224        PolicyUnspecified = 0,
5225        /// The default policy (e.g., CFS on Linux). Priority range: [0; 20]
5226        /// priority is interpreted as -(nice), i.e., 1 is slightly higher prio
5227        /// than default 0, 20 is the highest priority.
5228        /// Note: this is the opposite semantic of the cmdline nice, and is done for
5229        /// consistency with POLICY_SCHED_FIFO, so higher number == higher prio.
5230        PolicySchedOther = 1,
5231        /// The Real-time policy, Priority range: [1; 99]
5232        PolicySchedFifo = 2,
5233    }
5234    impl BoostPolicy {
5235        /// String value of the enum field names used in the ProtoBuf definition.
5236        ///
5237        /// The values are not transformed in any way and thus are considered stable
5238        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5239        pub fn as_str_name(&self) -> &'static str {
5240            match self {
5241                BoostPolicy::PolicyUnspecified => "POLICY_UNSPECIFIED",
5242                BoostPolicy::PolicySchedOther => "POLICY_SCHED_OTHER",
5243                BoostPolicy::PolicySchedFifo => "POLICY_SCHED_FIFO",
5244            }
5245        }
5246    }
5247}
5248/// Config for polling process-related information from /proc/pid/status and
5249/// related files on Linux.
5250///
5251/// Data source name: "linux.process_stats".
5252#[derive(Clone, PartialEq, ::prost::Message)]
5253pub struct ProcessStatsConfig {
5254    #[prost(enumeration="process_stats_config::Quirks", repeated, packed="false", tag="1")]
5255    pub quirks: ::prost::alloc::vec::Vec<i32>,
5256    /// If enabled all processes will be scanned and dumped when the trace starts.
5257    #[prost(bool, optional, tag="2")]
5258    pub scan_all_processes_on_start: ::core::option::Option<bool>,
5259    /// If enabled thread names are also recoded (this is redundant if sched_switch
5260    /// is enabled).
5261    #[prost(bool, optional, tag="3")]
5262    pub record_thread_names: ::core::option::Option<bool>,
5263    /// If > 0 samples counters (see process_stats.proto) from
5264    /// /proc/pid/status and oom_score_adj every X ms.
5265    /// This is required to be > 100ms to avoid excessive CPU usage.
5266    #[prost(uint32, optional, tag="4")]
5267    pub proc_stats_poll_ms: ::core::option::Option<u32>,
5268    // id 5 never used
5269
5270    /// Explicit caching period during which the polling won't re-emit identical
5271    /// counter values. This is required to be either = 0 or a multiple of
5272    /// |proc_stats_poll_ms| (default: |proc_stats_poll_ms|). Non-multiples will be
5273    /// rounded down to the nearest multiple.
5274    #[prost(uint32, optional, tag="6")]
5275    pub proc_stats_cache_ttl_ms: ::core::option::Option<u32>,
5276    /// If true and |proc_stats_poll_ms| is set, sample memory stats from
5277    /// /proc/pid/smaps_rollup.
5278    ///
5279    /// Android: does NOT work with the system daemons by default, as it requires
5280    /// running the recording process (traced_probes or tracebox) as root. It is
5281    /// possible to avoid the root requirement, but the exact steps depend on the
5282    /// Linux distibution. The proc file requires passing a PTRACE_MODE_READ
5283    /// check, and might be further covered by the procfs "hidepid" mount option.
5284    #[prost(bool, optional, tag="10")]
5285    pub scan_smaps_rollup: ::core::option::Option<bool>,
5286    /// If true: process descriptions will include process age (starttime in
5287    /// /proc/pid/stat).
5288    /// Introduced in: perfetto v44.
5289    #[prost(bool, optional, tag="11")]
5290    pub record_process_age: ::core::option::Option<bool>,
5291    /// If true and |proc_stats_poll_ms| is set, process stats will include time
5292    /// spent running in user/kernel mode (utime/stime in /proc/pid/stat).
5293    /// Introduced in: perfetto v44.
5294    #[prost(bool, optional, tag="12")]
5295    pub record_process_runtime: ::core::option::Option<bool>,
5296    /// If true obtain per-process dmabuf resident set size from
5297    /// /proc/pid/dmabuf_rss.
5298    /// This feature is not in upstream linux, and is available only on some
5299    /// Android kernels.
5300    #[prost(bool, optional, tag="13")]
5301    pub record_process_dmabuf_rss: ::core::option::Option<bool>,
5302    /// WARNING: unmaintained and deprecated. If true this will resolve file
5303    /// descriptors for each process so these can be mapped to their actual device
5304    /// or file. Requires raw_syscalls/sys_{enter,exit} ftrace events to be enabled
5305    /// or new fds opened after initially scanning a process will not be
5306    /// recognized.
5307    #[prost(bool, optional, tag="9")]
5308    pub resolve_process_fds: ::core::option::Option<bool>,
5309}
5310/// Nested message and enum types in `ProcessStatsConfig`.
5311pub mod process_stats_config {
5312    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5313    #[repr(i32)]
5314    pub enum Quirks {
5315        Unspecified = 0,
5316        /// This has been deprecated and ignored as per 2018-05-01. Full scan at
5317        /// startup is now disabled by default and can be re-enabled using the
5318        /// |scan_all_processes_on_start| arg.
5319        DisableInitialDump = 1,
5320        /// If set, disables the special interaction with "linux.ftrace" data source,
5321        /// where the process stats rescrapes any thread id seen in the ftrace
5322        /// stream.
5323        DisableOnDemand = 2,
5324    }
5325    impl Quirks {
5326        /// String value of the enum field names used in the ProtoBuf definition.
5327        ///
5328        /// The values are not transformed in any way and thus are considered stable
5329        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5330        pub fn as_str_name(&self) -> &'static str {
5331            match self {
5332                Quirks::Unspecified => "QUIRKS_UNSPECIFIED",
5333                Quirks::DisableInitialDump => "DISABLE_INITIAL_DUMP",
5334                Quirks::DisableOnDemand => "DISABLE_ON_DEMAND",
5335            }
5336        }
5337    }
5338}
5339/// Configuration for go/heapprofd.
5340/// Next id: 28
5341#[derive(Clone, PartialEq, ::prost::Message)]
5342pub struct HeapprofdConfig {
5343    /// Sampling rate for all heaps not specified via heap_sampling_intervals.
5344    ///
5345    /// These are:
5346    /// * All heaps if heap_sampling_intervals is empty.
5347    /// * Those profiled due to all_heaps and not named in heaps if
5348    ///    heap_sampling_intervals is not empty.
5349    /// * The implicit libc.malloc heap if heaps is empty.
5350    ///
5351    /// Set to 1 for perfect accuracy.
5352    /// Otherwise, sample every sample_interval_bytes on average.
5353    ///
5354    /// See
5355    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#sampling-interval>
5356    /// for more details.
5357    ///
5358    /// BUGS
5359    /// Before Android 12, setting this to 0 would crash the target process.
5360    ///
5361    /// N.B. This must be explicitly set to a non-zero value for all heaps (with
5362    /// this field or with heap_sampling_intervals), otherwise the producer will
5363    /// not start.
5364    #[prost(uint64, optional, tag="1")]
5365    pub sampling_interval_bytes: ::core::option::Option<u64>,
5366    /// If less than the given numbers of bytes are left free in the shared
5367    /// memory buffer, increase sampling interval by a factor of two.
5368    /// Adaptive sampling is disabled when set to 0.
5369    #[prost(uint64, optional, tag="24")]
5370    pub adaptive_sampling_shmem_threshold: ::core::option::Option<u64>,
5371    /// Stop doubling the sampling_interval once the sampling interval has reached
5372    /// this value.
5373    #[prost(uint64, optional, tag="25")]
5374    pub adaptive_sampling_max_sampling_interval_bytes: ::core::option::Option<u64>,
5375    /// E.g. surfaceflinger, com.android.phone
5376    /// This input is normalized in the following way: if it contains slashes,
5377    /// everything up to the last slash is discarded. If it contains "@",
5378    /// everything after the first @ is discared.
5379    /// E.g. /system/bin/surfaceflinger@1.0 normalizes to surfaceflinger.
5380    /// This transformation is also applied to the processes' command lines when
5381    /// matching.
5382    #[prost(string, repeated, tag="2")]
5383    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5384    /// For watermark based triggering or local debugging.
5385    #[prost(uint64, repeated, packed="false", tag="4")]
5386    pub pid: ::prost::alloc::vec::Vec<u64>,
5387    /// Only profile target if it was installed by one of the packages given.
5388    /// Special values are:
5389    /// * @system: installed on the system partition
5390    /// * @product: installed on the product partition
5391    /// * @null: sideloaded
5392    /// Supported on Android 12+.
5393    #[prost(string, repeated, tag="26")]
5394    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5395    /// Which heaps to sample, e.g. "libc.malloc". If left empty, only samples
5396    /// "malloc".
5397    ///
5398    /// Introduced in Android 12.
5399    #[prost(string, repeated, tag="20")]
5400    pub heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5401    /// Which heaps not to sample, e.g. "libc.malloc". This is useful when used in
5402    /// combination with all_heaps;
5403    ///
5404    /// Introduced in Android 12.
5405    #[prost(string, repeated, tag="27")]
5406    pub exclude_heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5407    #[prost(bool, optional, tag="23")]
5408    pub stream_allocations: ::core::option::Option<bool>,
5409    /// If given, needs to be the same length as heaps and gives the sampling
5410    /// interval for the respective entry in heaps.
5411    ///
5412    /// Otherwise, sampling_interval_bytes is used.
5413    ///
5414    /// It is recommended to set sampling_interval_bytes to a reasonable default
5415    /// value when using this, as a value of 0 for sampling_interval_bytes will
5416    /// crash the target process before Android 12.
5417    ///
5418    /// Introduced in Android 12.
5419    ///
5420    /// All values must be non-zero or the producer will not start.
5421    #[prost(uint64, repeated, packed="false", tag="22")]
5422    pub heap_sampling_intervals: ::prost::alloc::vec::Vec<u64>,
5423    /// Sample all heaps registered by target process. Introduced in Android 12.
5424    #[prost(bool, optional, tag="21")]
5425    pub all_heaps: ::core::option::Option<bool>,
5426    /// Profile all processes eligible for profiling on the system.
5427    /// See
5428    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#heapprofd-targets>
5429    /// for which processes are eligible.
5430    ///
5431    /// On unmodified userdebug builds, this will lead to system crashes. Zygote
5432    /// will crash when trying to launch a new process as it will have an
5433    /// unexpected open socket to heapprofd.
5434    ///
5435    /// heapprofd will likely be overloaded by the amount of data for low
5436    /// sampling intervals.
5437    #[prost(bool, optional, tag="5")]
5438    pub all: ::core::option::Option<bool>,
5439    /// Do not profile processes whose anon RSS + swap < given value.
5440    /// Introduced in Android 11.
5441    #[prost(uint32, optional, tag="15")]
5442    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
5443    /// Stop profile if heapprofd memory usage goes beyond the given value.
5444    /// Introduced in Android 11.
5445    #[prost(uint32, optional, tag="16")]
5446    pub max_heapprofd_memory_kb: ::core::option::Option<u32>,
5447    /// Stop profile if heapprofd CPU time since start of this data-source
5448    /// goes beyond given value.
5449    /// Introduced in Android 11.
5450    #[prost(uint64, optional, tag="17")]
5451    pub max_heapprofd_cpu_secs: ::core::option::Option<u64>,
5452    /// Do not emit function names for mappings starting with this prefix.
5453    /// E.g. /system to not emit symbols for any system libraries.
5454    #[prost(string, repeated, tag="7")]
5455    pub skip_symbol_prefix: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5456    /// Dump at a predefined interval.
5457    #[prost(message, optional, tag="6")]
5458    pub continuous_dump_config: ::core::option::Option<heapprofd_config::ContinuousDumpConfig>,
5459    /// Size of the shared memory buffer between the profiled processes and
5460    /// heapprofd. Defaults to 8 MiB. If larger than 500 MiB, truncated to 500
5461    /// MiB.
5462    ///
5463    /// Needs to be:
5464    /// * at least 8192,
5465    /// * a power of two,
5466    /// * a multiple of 4096.
5467    #[prost(uint64, optional, tag="8")]
5468    pub shmem_size_bytes: ::core::option::Option<u64>,
5469    /// When the shmem buffer is full, block the client instead of ending the
5470    /// trace. Use with caution as this will significantly slow down the target
5471    /// process.
5472    #[prost(bool, optional, tag="9")]
5473    pub block_client: ::core::option::Option<bool>,
5474    /// If set, stop the trace session after blocking the client for this
5475    /// timeout. Needs to be larger than 100 us, otherwise no retries are done.
5476    /// Introduced in Android 11.
5477    #[prost(uint32, optional, tag="14")]
5478    pub block_client_timeout_us: ::core::option::Option<u32>,
5479    /// Do not profile processes from startup, only match already running
5480    /// processes.
5481    ///
5482    /// Can not be set at the same time as no_running.
5483    /// Introduced in Android 11.
5484    #[prost(bool, optional, tag="10")]
5485    pub no_startup: ::core::option::Option<bool>,
5486    /// Do not profile running processes. Only match processes on startup.
5487    ///
5488    /// Can not be set at the same time as no_startup.
5489    /// Introduced in Android 11.
5490    #[prost(bool, optional, tag="11")]
5491    pub no_running: ::core::option::Option<bool>,
5492    /// Cause heapprofd to emit a single dump at the end, showing the memory usage
5493    /// at the point in time when the sampled heap usage of the process was at its
5494    /// maximum. This causes ProfilePacket.HeapSample.self_max to be set, and
5495    /// self_allocated and self_freed to not be set.
5496    /// Introduced in Android 11.
5497    #[prost(bool, optional, tag="13")]
5498    pub dump_at_max: ::core::option::Option<bool>,
5499    // FEATURE FLAGS. THERE BE DRAGONS.
5500
5501    /// Escape hatch if the session is being torn down because of a forked child
5502    /// that shares memory space, but is not correctly identified as a vforked
5503    /// child.
5504    /// Introduced in Android 11.
5505    #[prost(bool, optional, tag="18")]
5506    pub disable_fork_teardown: ::core::option::Option<bool>,
5507    /// We try to automatically detect when a target applicatation vforks but then
5508    /// does a memory allocation (or free). This auto-detection can be disabled
5509    /// with this.
5510    /// Introduced in Android 11.
5511    #[prost(bool, optional, tag="19")]
5512    pub disable_vfork_detection: ::core::option::Option<bool>,
5513}
5514/// Nested message and enum types in `HeapprofdConfig`.
5515pub mod heapprofd_config {
5516    #[derive(Clone, PartialEq, ::prost::Message)]
5517    pub struct ContinuousDumpConfig {
5518        /// ms to wait before first dump.
5519        #[prost(uint32, optional, tag="5")]
5520        pub dump_phase_ms: ::core::option::Option<u32>,
5521        /// ms to wait between following dumps.
5522        #[prost(uint32, optional, tag="6")]
5523        pub dump_interval_ms: ::core::option::Option<u32>,
5524    }
5525}
5526/// Configuration for managed app heap graph snapshots.
5527#[derive(Clone, PartialEq, ::prost::Message)]
5528pub struct JavaHprofConfig {
5529    /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
5530    /// comm string). The semantics of this field were changed since its original
5531    /// introduction.
5532    ///
5533    /// On Android T+ (13+), this field can specify a single wildcard (*), and
5534    /// the profiler will attempt to match it in two possible ways:
5535    /// * if the pattern starts with a '/', then it is matched against the first
5536    ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
5537    ///    "/bin/echo".
5538    /// * otherwise the pattern is matched against the part of argv0
5539    ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
5540    ///    For example "echo" would match "/bin/echo".
5541    ///
5542    /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
5543    /// normalized prior to an exact string comparison. Normalization is as
5544    /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
5545    /// the string contains forward slashes, trim everything up to and including
5546    /// the last one.
5547    ///
5548    /// Implementation note: in either case, at most 511 characters of cmdline
5549    /// are considered.
5550    #[prost(string, repeated, tag="1")]
5551    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5552    /// For watermark based triggering or local debugging.
5553    #[prost(uint64, repeated, packed="false", tag="2")]
5554    pub pid: ::prost::alloc::vec::Vec<u64>,
5555    /// Only profile target if it was installed by one of the packages given.
5556    /// Special values are:
5557    /// * @system: installed on the system partition
5558    /// * @product: installed on the product partition
5559    /// * @null: sideloaded
5560    /// Supported on Android 12+.
5561    #[prost(string, repeated, tag="7")]
5562    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5563    /// Dump at a predefined interval.
5564    #[prost(message, optional, tag="3")]
5565    pub continuous_dump_config: ::core::option::Option<java_hprof_config::ContinuousDumpConfig>,
5566    /// Do not profile processes whose anon RSS + swap < given value.
5567    #[prost(uint32, optional, tag="4")]
5568    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
5569    /// Include the process' /proc/self/smaps.
5570    /// This only shows maps that:
5571    /// * start with /system
5572    /// * start with /vendor
5573    /// * start with /data/app
5574    /// * contain "extracted in memory from Y", where Y matches any of the above
5575    #[prost(bool, optional, tag="5")]
5576    pub dump_smaps: ::core::option::Option<bool>,
5577    /// Exclude objects of the following types from the profile. This can be
5578    /// useful if lots of uninteresting objects, e.g. "sun.misc.Cleaner".
5579    #[prost(string, repeated, tag="6")]
5580    pub ignored_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5581}
5582/// Nested message and enum types in `JavaHprofConfig`.
5583pub mod java_hprof_config {
5584    /// If dump_interval_ms != 0, the following configuration is used.
5585    #[derive(Clone, PartialEq, ::prost::Message)]
5586    pub struct ContinuousDumpConfig {
5587        /// ms to wait before first continuous dump.
5588        /// A dump is always created at the beginning of the trace.
5589        #[prost(uint32, optional, tag="1")]
5590        pub dump_phase_ms: ::core::option::Option<u32>,
5591        /// ms to wait between following dumps.
5592        #[prost(uint32, optional, tag="2")]
5593        pub dump_interval_ms: ::core::option::Option<u32>,
5594        /// If true, scans all the processes to find `process_cmdline` and filter by
5595        /// `min_anonymous_memory_kb` only at data source start. Default on Android
5596        /// S-.
5597        ///
5598        /// If false, rescans all the processes to find on every dump. Default on
5599        /// Android T+.
5600        #[prost(bool, optional, tag="3")]
5601        pub scan_pids_only_on_start: ::core::option::Option<bool>,
5602    }
5603}
5604#[derive(Clone, PartialEq, ::prost::Message)]
5605pub struct PerfEvents {
5606}
5607/// Nested message and enum types in `PerfEvents`.
5608pub mod perf_events {
5609    /// The primary event to count. If recording multiple events, this
5610    /// counter is the "group leader".
5611    /// Commented from the perspective of its use in |PerfEventConfig|.
5612    /// Next id: 13
5613    #[derive(Clone, PartialEq, ::prost::Message)]
5614    pub struct Timebase {
5615        /// Optional modifiers for the event. Modelled after the perftool's
5616        /// <https://man7.org/linux/man-pages/man1/perf-list.1.html#EVENT_MODIFIERS>
5617        /// Currently supported: count scoping such as :u, :k, :uk, ...
5618        /// Modifiers can differ between the timebase and followers.
5619        #[prost(enumeration="EventModifier", repeated, packed="false", tag="12")]
5620        pub modifiers: ::prost::alloc::vec::Vec<i32>,
5621        /// If set, samples will be timestamped with the given clock.
5622        /// If unset, the clock is chosen by the implementation.
5623        /// For software events, prefer PERF_CLOCK_BOOTTIME. However it cannot be
5624        /// used for hardware events (due to interrupt safety), for which the
5625        /// recommendation is to use one of the monotonic clocks.
5626        #[prost(enumeration="PerfClock", optional, tag="11")]
5627        pub timestamp_clock: ::core::option::Option<i32>,
5628        /// Optional arbitrary name for the event, to identify it in the parsed
5629        /// trace. Does *not* affect the profiling itself. If unset, the trace
5630        /// parser will choose a suitable name.
5631        #[prost(string, optional, tag="10")]
5632        pub name: ::core::option::Option<::prost::alloc::string::String>,
5633        /// How often to snapshot the counter, along with any follower events and
5634        /// any additional sampled data such as callstacks.
5635        ///
5636        /// This choice also controls how the readings are taken:
5637        /// * With |frequency| or |period|, samples are taken by the kernel
5638        ///    into a ring buffer. Analogous to `perf record`.
5639        /// * With |poll_period_ms|, the userspace periodically snapshots
5640        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5641        /// Prefer the sampling options unless you're recording PMUs whose
5642        /// perf drivers only support the reading mode.
5643        ///
5644        /// If unset, an implementation-defined sampling default is used.
5645        #[prost(oneof="timebase::Interval", tags="2, 1, 6")]
5646        pub interval: ::core::option::Option<timebase::Interval>,
5647        /// Counting event to use as the timebase.
5648        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5649        /// which is what you usually want.
5650        #[prost(oneof="timebase::Event", tags="4, 3, 5")]
5651        pub event: ::core::option::Option<timebase::Event>,
5652    }
5653    /// Nested message and enum types in `Timebase`.
5654    pub mod timebase {
5655        /// How often to snapshot the counter, along with any follower events and
5656        /// any additional sampled data such as callstacks.
5657        ///
5658        /// This choice also controls how the readings are taken:
5659        /// * With |frequency| or |period|, samples are taken by the kernel
5660        ///    into a ring buffer. Analogous to `perf record`.
5661        /// * With |poll_period_ms|, the userspace periodically snapshots
5662        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5663        /// Prefer the sampling options unless you're recording PMUs whose
5664        /// perf drivers only support the reading mode.
5665        ///
5666        /// If unset, an implementation-defined sampling default is used.
5667        #[derive(Clone, PartialEq, ::prost::Oneof)]
5668        pub enum Interval {
5669            /// Per-cpu sampling frequency in Hz, as requested from the kernel. Not the
5670            /// same as 1/period.
5671            /// Details: the actual sampling will still be based on a period, but the
5672            /// kernel will dynamically adjust it based on the observed event rate, to
5673            /// approximate this frequency. Works best with steady-rate events like
5674            /// timers.
5675            /// Not guaranteed to be honored as the kernel can throttle the sampling
5676            /// rate if it's too high.
5677            #[prost(uint64, tag="2")]
5678            Frequency(u64),
5679            /// Per-cpu sampling will occur every |period| counts of |event|.
5680            /// Prefer |frequency| by default, as it's easier to oversample with a
5681            /// fixed period.
5682            /// Not guaranteed to be honored as the kernel can throttle the sampling
5683            /// rate if it's too high.
5684            #[prost(uint64, tag="1")]
5685            Period(u64),
5686            /// Per-cpu values are read by the userspace every interval. If using this
5687            /// mode, only follower events are supported. Options such as
5688            /// |PerfEventConfig.CallstackSampling| are incompatible.
5689            /// The period can't be guaranteed to be exact since the readings are taken
5690            /// by userspace.
5691            #[prost(uint32, tag="6")]
5692            PollPeriodMs(u32),
5693        }
5694        /// Counting event to use as the timebase.
5695        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5696        /// which is what you usually want.
5697        #[derive(Clone, PartialEq, ::prost::Oneof)]
5698        pub enum Event {
5699            #[prost(enumeration="super::Counter", tag="4")]
5700            Counter(i32),
5701            #[prost(message, tag="3")]
5702            Tracepoint(super::Tracepoint),
5703            #[prost(message, tag="5")]
5704            RawEvent(super::RawEvent),
5705        }
5706    }
5707    #[derive(Clone, PartialEq, ::prost::Message)]
5708    pub struct Tracepoint {
5709        /// Group and name for the tracepoint, acceptable forms:
5710        /// * "sched/sched_switch"
5711        /// * "sched:sched_switch"
5712        #[prost(string, optional, tag="1")]
5713        pub name: ::core::option::Option<::prost::alloc::string::String>,
5714        /// Optional field-level filter for the tracepoint. Only events matching this
5715        /// filter will be counted (and therefore contribute to the sampling period).
5716        /// Example: "prev_pid >= 42 && next_pid == 0".
5717        /// For full syntax, see kernel documentation on "Event filtering":
5718        /// <https://www.kernel.org/doc/Documentation/trace/events.txt>
5719        #[prost(string, optional, tag="2")]
5720        pub filter: ::core::option::Option<::prost::alloc::string::String>,
5721    }
5722    /// Syscall-level description of the event, propagated to the perf_event_attr
5723    /// struct. Primarily for local use-cases, since the event availability and
5724    /// encoding is hardware-specific.
5725    #[derive(Clone, PartialEq, ::prost::Message)]
5726    pub struct RawEvent {
5727        /// Either |type| or |pmu_name| can be set.
5728        #[prost(uint32, optional, tag="1")]
5729        pub r#type: ::core::option::Option<u32>,
5730        #[prost(uint64, optional, tag="2")]
5731        pub config: ::core::option::Option<u64>,
5732        #[prost(uint64, optional, tag="3")]
5733        pub config1: ::core::option::Option<u64>,
5734        #[prost(uint64, optional, tag="4")]
5735        pub config2: ::core::option::Option<u64>,
5736        /// The name of a dynamic PMU under /sys/bus/event_source/devices
5737        /// (e.g. "armv8_pmuv3").
5738        /// If set, leave |type| unset.
5739        /// Android: the relevant sysfs paths are not allowlisted by default, so
5740        /// this option will require a rooted device with selinux disabled.
5741        #[prost(string, optional, tag="5")]
5742        pub pmu_name: ::core::option::Option<::prost::alloc::string::String>,
5743    }
5744    /// Builtin counter names from the uapi header. Commented with their perf tool
5745    /// aliases.
5746    /// TODO(rsavitski): consider generating enums for cache events (should be
5747    /// finite), and generally make this list as extensive as possible. Excluding
5748    /// things like dynamic PMUs since those don't fit into a static enum.
5749    /// Next id: 21
5750    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5751    #[repr(i32)]
5752    pub enum Counter {
5753        UnknownCounter = 0,
5754        /// cpu-clock
5755        SwCpuClock = 1,
5756        /// page-faults, faults
5757        SwPageFaults = 2,
5758        /// task-clock
5759        SwTaskClock = 3,
5760        /// context-switches, cs
5761        SwContextSwitches = 4,
5762        /// cpu-migrations, migrations
5763        SwCpuMigrations = 5,
5764        /// minor-faults
5765        SwPageFaultsMin = 6,
5766        /// major-faults
5767        SwPageFaultsMaj = 7,
5768        /// alignment-faults
5769        SwAlignmentFaults = 8,
5770        /// emulation-faults
5771        SwEmulationFaults = 9,
5772        /// dummy
5773        SwDummy = 20,
5774        /// cpu-cycles, cycles
5775        HwCpuCycles = 10,
5776        /// instructions
5777        HwInstructions = 11,
5778        /// cache-references
5779        HwCacheReferences = 12,
5780        /// cache-misses
5781        HwCacheMisses = 13,
5782        /// branch-instructions, branches
5783        HwBranchInstructions = 14,
5784        /// branch-misses
5785        HwBranchMisses = 15,
5786        /// bus-cycles
5787        HwBusCycles = 16,
5788        /// stalled-cycles-frontend, idle-cycles-frontend
5789        HwStalledCyclesFrontend = 17,
5790        /// stalled-cycles-backend, idle-cycles-backend
5791        HwStalledCyclesBackend = 18,
5792        /// ref-cycles
5793        HwRefCpuCycles = 19,
5794    }
5795    impl Counter {
5796        /// String value of the enum field names used in the ProtoBuf definition.
5797        ///
5798        /// The values are not transformed in any way and thus are considered stable
5799        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5800        pub fn as_str_name(&self) -> &'static str {
5801            match self {
5802                Counter::UnknownCounter => "UNKNOWN_COUNTER",
5803                Counter::SwCpuClock => "SW_CPU_CLOCK",
5804                Counter::SwPageFaults => "SW_PAGE_FAULTS",
5805                Counter::SwTaskClock => "SW_TASK_CLOCK",
5806                Counter::SwContextSwitches => "SW_CONTEXT_SWITCHES",
5807                Counter::SwCpuMigrations => "SW_CPU_MIGRATIONS",
5808                Counter::SwPageFaultsMin => "SW_PAGE_FAULTS_MIN",
5809                Counter::SwPageFaultsMaj => "SW_PAGE_FAULTS_MAJ",
5810                Counter::SwAlignmentFaults => "SW_ALIGNMENT_FAULTS",
5811                Counter::SwEmulationFaults => "SW_EMULATION_FAULTS",
5812                Counter::SwDummy => "SW_DUMMY",
5813                Counter::HwCpuCycles => "HW_CPU_CYCLES",
5814                Counter::HwInstructions => "HW_INSTRUCTIONS",
5815                Counter::HwCacheReferences => "HW_CACHE_REFERENCES",
5816                Counter::HwCacheMisses => "HW_CACHE_MISSES",
5817                Counter::HwBranchInstructions => "HW_BRANCH_INSTRUCTIONS",
5818                Counter::HwBranchMisses => "HW_BRANCH_MISSES",
5819                Counter::HwBusCycles => "HW_BUS_CYCLES",
5820                Counter::HwStalledCyclesFrontend => "HW_STALLED_CYCLES_FRONTEND",
5821                Counter::HwStalledCyclesBackend => "HW_STALLED_CYCLES_BACKEND",
5822                Counter::HwRefCpuCycles => "HW_REF_CPU_CYCLES",
5823            }
5824        }
5825    }
5826    /// Subset of clocks that is supported by perf timestamping.
5827    /// CLOCK_TAI is excluded since it's not expected to be used in practice, but
5828    /// would require additions to the trace clock synchronisation logic.
5829    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5830    #[repr(i32)]
5831    pub enum PerfClock {
5832        UnknownPerfClock = 0,
5833        Realtime = 1,
5834        Monotonic = 2,
5835        MonotonicRaw = 3,
5836        Boottime = 4,
5837    }
5838    impl PerfClock {
5839        /// String value of the enum field names used in the ProtoBuf definition.
5840        ///
5841        /// The values are not transformed in any way and thus are considered stable
5842        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5843        pub fn as_str_name(&self) -> &'static str {
5844            match self {
5845                PerfClock::UnknownPerfClock => "UNKNOWN_PERF_CLOCK",
5846                PerfClock::Realtime => "PERF_CLOCK_REALTIME",
5847                PerfClock::Monotonic => "PERF_CLOCK_MONOTONIC",
5848                PerfClock::MonotonicRaw => "PERF_CLOCK_MONOTONIC_RAW",
5849                PerfClock::Boottime => "PERF_CLOCK_BOOTTIME",
5850            }
5851        }
5852    }
5853    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5854    #[repr(i32)]
5855    pub enum EventModifier {
5856        UnknownEventModifier = 0,
5857        /// count only while in userspace
5858        CountUserspace = 1,
5859        /// count only while in kernel
5860        CountKernel = 2,
5861        /// count only while in hypervisor
5862        CountHypervisor = 3,
5863    }
5864    impl EventModifier {
5865        /// String value of the enum field names used in the ProtoBuf definition.
5866        ///
5867        /// The values are not transformed in any way and thus are considered stable
5868        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5869        pub fn as_str_name(&self) -> &'static str {
5870            match self {
5871                EventModifier::UnknownEventModifier => "UNKNOWN_EVENT_MODIFIER",
5872                EventModifier::CountUserspace => "EVENT_MODIFIER_COUNT_USERSPACE",
5873                EventModifier::CountKernel => "EVENT_MODIFIER_COUNT_KERNEL",
5874                EventModifier::CountHypervisor => "EVENT_MODIFIER_COUNT_HYPERVISOR",
5875            }
5876        }
5877    }
5878}
5879/// Additional events associated with a leader.
5880/// See <https://man7.org/linux/man-pages/man1/perf-list.1.html#LEADER_SAMPLING>
5881#[derive(Clone, PartialEq, ::prost::Message)]
5882pub struct FollowerEvent {
5883    /// Modifiers can differ between the timebase and followers.
5884    #[prost(enumeration="perf_events::EventModifier", repeated, packed="false", tag="5")]
5885    pub modifiers: ::prost::alloc::vec::Vec<i32>,
5886    /// Optional arbitrary name for the event, to identify it in the parsed
5887    /// trace. Does *not* affect the profiling itself. If unset, the trace
5888    /// parser will choose a suitable name.
5889    #[prost(string, optional, tag="4")]
5890    pub name: ::core::option::Option<::prost::alloc::string::String>,
5891    #[prost(oneof="follower_event::Event", tags="1, 2, 3")]
5892    pub event: ::core::option::Option<follower_event::Event>,
5893}
5894/// Nested message and enum types in `FollowerEvent`.
5895pub mod follower_event {
5896    #[derive(Clone, PartialEq, ::prost::Oneof)]
5897    pub enum Event {
5898        #[prost(enumeration="super::perf_events::Counter", tag="1")]
5899        Counter(i32),
5900        #[prost(message, tag="2")]
5901        Tracepoint(super::perf_events::Tracepoint),
5902        #[prost(message, tag="3")]
5903        RawEvent(super::perf_events::RawEvent),
5904    }
5905}
5906/// Configuration for the traced_perf profiler.
5907///
5908/// Example config for basic cpu profiling:
5909///    perf_event_config {
5910///      timebase {
5911///        frequency: 80
5912///      }
5913///      callstack_sampling {
5914///        scope {
5915///          target_cmdline: "surfaceflinger"
5916///          target_cmdline: "system_server"
5917///        }
5918///        kernel_frames: true
5919///      }
5920///    }
5921///
5922/// Next id: 23
5923#[derive(Clone, PartialEq, ::prost::Message)]
5924pub struct PerfEventConfig {
5925    /// What event to sample on, and how often.
5926    /// Defined in common/perf_events.proto.
5927    #[prost(message, optional, tag="15")]
5928    pub timebase: ::core::option::Option<perf_events::Timebase>,
5929    /// Other events associated with the leader described in the timebase.
5930    #[prost(message, repeated, tag="19")]
5931    pub followers: ::prost::alloc::vec::Vec<FollowerEvent>,
5932    /// If set, the profiler will sample userspace processes' callstacks at the
5933    /// interval specified by the |timebase|.
5934    /// If unset, the profiler will record only the event counts.
5935    #[prost(message, optional, tag="16")]
5936    pub callstack_sampling: ::core::option::Option<perf_event_config::CallstackSampling>,
5937    /// List of cpu indices for counting. If empty, the default is all cpus.
5938    ///
5939    /// Note: this is not inside |callstack_sampling.scope| as it also applies to
5940    /// counter-only traces. A future change will likely reorganise the options,
5941    /// but this field will continue to be supported.
5942    ///
5943    /// Available since: perfetto v50.
5944    #[prost(uint32, repeated, packed="false", tag="20")]
5945    pub target_cpu: ::prost::alloc::vec::Vec<u32>,
5946    /// Allow failure of perf_event_open
5947    #[prost(bool, optional, tag="21")]
5948    pub ignore_open_failure: ::core::option::Option<bool>,
5949    /// If not empty, consider only CPUs whose CPUID matches one of these values.
5950    #[prost(string, repeated, tag="22")]
5951    pub cpuid: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5952    //
5953    // Kernel <-> userspace ring buffer options:
5954    //
5955
5956    /// How often the per-cpu ring buffers are read by the producer.
5957    /// If unset, an implementation-defined default is used.
5958    #[prost(uint32, optional, tag="8")]
5959    pub ring_buffer_read_period_ms: ::core::option::Option<u32>,
5960    /// Size (in 4k pages) of each per-cpu ring buffer that is filled by the
5961    /// kernel. If set, must be a power of two.
5962    /// If unset, an implementation-defined default is used.
5963    #[prost(uint32, optional, tag="3")]
5964    pub ring_buffer_pages: ::core::option::Option<u32>,
5965    //
5966    // Daemon's resource usage limits:
5967    //
5968
5969    /// Drop samples if the heap memory held by the samples in the unwinder queue
5970    /// is above the given limit. This counts the memory across all concurrent data
5971    /// sources (not just this one's), and there is no fairness guarantee - the
5972    /// whole quota might be used up by a concurrent source.
5973    #[prost(uint64, optional, tag="17")]
5974    pub max_enqueued_footprint_kb: ::core::option::Option<u64>,
5975    /// Stop the data source if traced_perf's combined {RssAnon + Swap} memory
5976    /// footprint exceeds this value.
5977    #[prost(uint32, optional, tag="13")]
5978    pub max_daemon_memory_kb: ::core::option::Option<u32>,
5979    //
5980    // Niche options:
5981    //
5982
5983    /// Timeout for the remote /proc/<pid>/{maps,mem} file descriptors for a
5984    /// sampled process. This is primarily for Android, where this lookup is
5985    /// asynchronous. As long as the producer is waiting, the associated samples
5986    /// will be kept enqueued (putting pressure on the capacity of the shared
5987    /// unwinding queue). Once a lookup for a process expires, all associated
5988    /// samples are discarded. However, if the lookup still succeeds after the
5989    /// timeout, future samples will be handled normally.
5990    /// If unset, an implementation-defined default is used.
5991    #[prost(uint32, optional, tag="9")]
5992    pub remote_descriptor_timeout_ms: ::core::option::Option<u32>,
5993    /// Optional period for clearing state cached by the userspace unwinder. This
5994    /// is a heavy operation that is only necessary for traces that target a wide
5995    /// set of processes, and require the memory footprint to be reset
5996    /// periodically. To effectively disable the cache clearing, set to a value
5997    /// greater than your trace duration.
5998    ///
5999    /// Relevant only if |callstack_sampling.user_frames| is set to UNWIND_DWARF.
6000    ///
6001    /// If zero or unset:
6002    /// * before perfetto v52: no cache clearing.
6003    /// * perfetto v52+: implementation chooses an infrequent default.
6004    #[prost(uint32, optional, tag="10")]
6005    pub unwind_state_clear_period_ms: ::core::option::Option<u32>,
6006    /// If set, only profile target if it was installed by a package with one of
6007    /// these names. Special values:
6008    /// * "@system": installed on the system partition
6009    /// * "@product": installed on the product partition
6010    /// * "@null": sideloaded
6011    /// Supported on Android 12+.
6012    #[prost(string, repeated, tag="18")]
6013    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6014    //
6015    // Deprecated (superseded by options above):
6016    //
6017    // Do not set *any* of these fields in new configs.
6018    //
6019
6020    /// Note: legacy configs had to set |all_cpus| to true to pass parsing.
6021    /// We rely on this to detect such configs.
6022    #[prost(bool, optional, tag="1")]
6023    pub all_cpus: ::core::option::Option<bool>,
6024    #[prost(uint32, optional, tag="2")]
6025    pub sampling_frequency: ::core::option::Option<u32>,
6026    #[prost(bool, optional, tag="12")]
6027    pub kernel_frames: ::core::option::Option<bool>,
6028    #[prost(int32, repeated, packed="false", tag="4")]
6029    pub target_pid: ::prost::alloc::vec::Vec<i32>,
6030    #[prost(string, repeated, tag="5")]
6031    pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6032    #[prost(int32, repeated, packed="false", tag="6")]
6033    pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
6034    #[prost(string, repeated, tag="7")]
6035    pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6036    #[prost(uint32, optional, tag="11")]
6037    pub additional_cmdline_count: ::core::option::Option<u32>,
6038}
6039/// Nested message and enum types in `PerfEventConfig`.
6040pub mod perf_event_config {
6041    //
6042    // Sub-messages (nested for generated code namespacing).
6043    //
6044
6045    #[derive(Clone, PartialEq, ::prost::Message)]
6046    pub struct CallstackSampling {
6047        /// Defines a set of processes for which samples are retained/skipped. If
6048        /// unset, all samples are kept, but beware that it will be very heavy on the
6049        /// stack unwinder, which might start dropping samples due to overload.
6050        #[prost(message, optional, tag="1")]
6051        pub scope: ::core::option::Option<Scope>,
6052        /// If true, callstacks will include the kernel-space frames. Such frames can
6053        /// be identified by a magical "kernel" string as their mapping name.
6054        /// Requires traced_perf to be running as root, or kptr_restrict to have been
6055        /// manually unrestricted. On Android, the platform should do the right thing
6056        /// on debug builds.
6057        /// This does *not* disclose KASLR, as only the function names are emitted.
6058        #[prost(bool, optional, tag="2")]
6059        pub kernel_frames: ::core::option::Option<bool>,
6060        /// Whether to record and unwind userspace callstacks. If unset, defaults to
6061        /// including userspace (UNWIND_DWARF) both for backwards compatibility and
6062        /// as the most common default (this defaulting is only applicable if the
6063        /// outer CallstackSampling message is explicitly set).
6064        #[prost(enumeration="UnwindMode", optional, tag="3")]
6065        pub user_frames: ::core::option::Option<i32>,
6066    }
6067    #[derive(Clone, PartialEq, ::prost::Message)]
6068    pub struct Scope {
6069        /// Process ID (TGID) allowlist. If this list is not empty, only matching
6070        /// samples will be retained. If multiple allow/deny-lists are
6071        /// specified by the config, then all of them are evaluated for each sampled
6072        /// process.
6073        #[prost(int32, repeated, packed="false", tag="1")]
6074        pub target_pid: ::prost::alloc::vec::Vec<i32>,
6075        /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
6076        /// comm string). The semantics of this field were changed since its original
6077        /// introduction.
6078        ///
6079        /// On Android T+ (13+), this field can specify a single wildcard (*), and
6080        /// the profiler will attempt to match it in two possible ways:
6081        /// * if the pattern starts with a '/', then it is matched against the first
6082        ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
6083        ///    "/bin/echo".
6084        /// * otherwise the pattern is matched against the part of argv0
6085        ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
6086        ///    For example "echo" would match "/bin/echo".
6087        ///
6088        /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
6089        /// normalized prior to an exact string comparison. Normalization is as
6090        /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
6091        /// the string contains forward slashes, trim everything up to and including
6092        /// the last one.
6093        ///
6094        /// Implementation note: in either case, at most 511 characters of cmdline
6095        /// are considered.
6096        #[prost(string, repeated, tag="2")]
6097        pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6098        /// List of excluded pids.
6099        #[prost(int32, repeated, packed="false", tag="3")]
6100        pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
6101        /// List of excluded cmdlines. See description of |target_cmdline| for how
6102        /// this is handled.
6103        #[prost(string, repeated, tag="4")]
6104        pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6105        // Niche features for systemwide callstacks:
6106
6107        /// Number of additional command lines to sample. Only those which are
6108        /// neither explicitly included nor excluded will be considered. Processes
6109        /// are accepted on a first come, first served basis.
6110        #[prost(uint32, optional, tag="5")]
6111        pub additional_cmdline_count: ::core::option::Option<u32>,
6112        /// If set to N, all encountered processes will be put into one of the N
6113        /// possible bins, and only one randomly-chosen bin will be selected for
6114        /// unwinding. The binning is simply "pid % N", under the assumption that
6115        /// low-order bits of pids are roughly uniformly distributed. Other explicit
6116        /// inclusions/exclusions in this |Scope| message are still respected.
6117        ///
6118        /// The profiler will report the chosen shard in PerfSampleDefaults, and the
6119        /// values will be queryable in trace processor under the "stats" table as
6120        /// "perf_process_shard_count" and "perf_chosen_process_shard".
6121        ///
6122        /// NB: all data sources in a config that set |process_shard_count| must set
6123        /// it to the same value. The profiler will choose one bin for all those data
6124        /// sources.
6125        #[prost(uint32, optional, tag="6")]
6126        pub process_shard_count: ::core::option::Option<u32>,
6127    }
6128    /// Userspace unwinding mode.
6129    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6130    #[repr(i32)]
6131    pub enum UnwindMode {
6132        UnwindUnknown = 0,
6133        /// Do not unwind userspace:
6134        UnwindSkip = 1,
6135        /// Use libunwindstack (default):
6136        UnwindDwarf = 2,
6137        /// Use userspace frame pointer unwinder:
6138        UnwindFramePointer = 3,
6139        /// Ask the kernel to unwind the userspace stack via frame pointers, using
6140        /// PERF_SAMPLE_CALLCHAIN. The user stack bytes are not copied into the
6141        /// sample, which avoids the per-sample copy cost and the depth limit
6142        /// imposed by PERF_SAMPLE_STACK_USER. Requires that the userspace code
6143        /// (including system libraries) is built with frame pointers - the kernel
6144        /// walks the chain and returns instruction addresses, which still need to
6145        /// be symbolized offline using the recorded process mappings.
6146        UnwindKernelFramePointer = 4,
6147    }
6148    impl UnwindMode {
6149        /// String value of the enum field names used in the ProtoBuf definition.
6150        ///
6151        /// The values are not transformed in any way and thus are considered stable
6152        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6153        pub fn as_str_name(&self) -> &'static str {
6154            match self {
6155                UnwindMode::UnwindUnknown => "UNWIND_UNKNOWN",
6156                UnwindMode::UnwindSkip => "UNWIND_SKIP",
6157                UnwindMode::UnwindDwarf => "UNWIND_DWARF",
6158                UnwindMode::UnwindFramePointer => "UNWIND_FRAME_POINTER",
6159                UnwindMode::UnwindKernelFramePointer => "UNWIND_KERNEL_FRAME_POINTER",
6160            }
6161        }
6162    }
6163}
6164// When editing entries here remember also to update "sys_stats_counters.h" with
6165// the corresponding string definitions for the actual /proc files parser.
6166
6167/// Counter definitions for Linux's /proc/meminfo.
6168#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6169#[repr(i32)]
6170pub enum MeminfoCounters {
6171    MeminfoUnspecified = 0,
6172    MeminfoMemTotal = 1,
6173    MeminfoMemFree = 2,
6174    MeminfoMemAvailable = 3,
6175    MeminfoBuffers = 4,
6176    MeminfoCached = 5,
6177    MeminfoSwapCached = 6,
6178    MeminfoActive = 7,
6179    MeminfoInactive = 8,
6180    MeminfoActiveAnon = 9,
6181    MeminfoInactiveAnon = 10,
6182    MeminfoActiveFile = 11,
6183    MeminfoInactiveFile = 12,
6184    MeminfoUnevictable = 13,
6185    MeminfoMlocked = 14,
6186    MeminfoSwapTotal = 15,
6187    MeminfoSwapFree = 16,
6188    MeminfoDirty = 17,
6189    MeminfoWriteback = 18,
6190    MeminfoAnonPages = 19,
6191    MeminfoMapped = 20,
6192    MeminfoShmem = 21,
6193    MeminfoSlab = 22,
6194    MeminfoSlabReclaimable = 23,
6195    MeminfoSlabUnreclaimable = 24,
6196    MeminfoKernelStack = 25,
6197    MeminfoPageTables = 26,
6198    MeminfoCommitLimit = 27,
6199    MeminfoCommitedAs = 28,
6200    MeminfoVmallocTotal = 29,
6201    MeminfoVmallocUsed = 30,
6202    MeminfoVmallocChunk = 31,
6203    MeminfoCmaTotal = 32,
6204    MeminfoCmaFree = 33,
6205    MeminfoGpu = 34,
6206    MeminfoZram = 35,
6207    MeminfoMisc = 36,
6208    MeminfoIonHeap = 37,
6209    MeminfoIonHeapPool = 38,
6210}
6211impl MeminfoCounters {
6212    /// String value of the enum field names used in the ProtoBuf definition.
6213    ///
6214    /// The values are not transformed in any way and thus are considered stable
6215    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6216    pub fn as_str_name(&self) -> &'static str {
6217        match self {
6218            MeminfoCounters::MeminfoUnspecified => "MEMINFO_UNSPECIFIED",
6219            MeminfoCounters::MeminfoMemTotal => "MEMINFO_MEM_TOTAL",
6220            MeminfoCounters::MeminfoMemFree => "MEMINFO_MEM_FREE",
6221            MeminfoCounters::MeminfoMemAvailable => "MEMINFO_MEM_AVAILABLE",
6222            MeminfoCounters::MeminfoBuffers => "MEMINFO_BUFFERS",
6223            MeminfoCounters::MeminfoCached => "MEMINFO_CACHED",
6224            MeminfoCounters::MeminfoSwapCached => "MEMINFO_SWAP_CACHED",
6225            MeminfoCounters::MeminfoActive => "MEMINFO_ACTIVE",
6226            MeminfoCounters::MeminfoInactive => "MEMINFO_INACTIVE",
6227            MeminfoCounters::MeminfoActiveAnon => "MEMINFO_ACTIVE_ANON",
6228            MeminfoCounters::MeminfoInactiveAnon => "MEMINFO_INACTIVE_ANON",
6229            MeminfoCounters::MeminfoActiveFile => "MEMINFO_ACTIVE_FILE",
6230            MeminfoCounters::MeminfoInactiveFile => "MEMINFO_INACTIVE_FILE",
6231            MeminfoCounters::MeminfoUnevictable => "MEMINFO_UNEVICTABLE",
6232            MeminfoCounters::MeminfoMlocked => "MEMINFO_MLOCKED",
6233            MeminfoCounters::MeminfoSwapTotal => "MEMINFO_SWAP_TOTAL",
6234            MeminfoCounters::MeminfoSwapFree => "MEMINFO_SWAP_FREE",
6235            MeminfoCounters::MeminfoDirty => "MEMINFO_DIRTY",
6236            MeminfoCounters::MeminfoWriteback => "MEMINFO_WRITEBACK",
6237            MeminfoCounters::MeminfoAnonPages => "MEMINFO_ANON_PAGES",
6238            MeminfoCounters::MeminfoMapped => "MEMINFO_MAPPED",
6239            MeminfoCounters::MeminfoShmem => "MEMINFO_SHMEM",
6240            MeminfoCounters::MeminfoSlab => "MEMINFO_SLAB",
6241            MeminfoCounters::MeminfoSlabReclaimable => "MEMINFO_SLAB_RECLAIMABLE",
6242            MeminfoCounters::MeminfoSlabUnreclaimable => "MEMINFO_SLAB_UNRECLAIMABLE",
6243            MeminfoCounters::MeminfoKernelStack => "MEMINFO_KERNEL_STACK",
6244            MeminfoCounters::MeminfoPageTables => "MEMINFO_PAGE_TABLES",
6245            MeminfoCounters::MeminfoCommitLimit => "MEMINFO_COMMIT_LIMIT",
6246            MeminfoCounters::MeminfoCommitedAs => "MEMINFO_COMMITED_AS",
6247            MeminfoCounters::MeminfoVmallocTotal => "MEMINFO_VMALLOC_TOTAL",
6248            MeminfoCounters::MeminfoVmallocUsed => "MEMINFO_VMALLOC_USED",
6249            MeminfoCounters::MeminfoVmallocChunk => "MEMINFO_VMALLOC_CHUNK",
6250            MeminfoCounters::MeminfoCmaTotal => "MEMINFO_CMA_TOTAL",
6251            MeminfoCounters::MeminfoCmaFree => "MEMINFO_CMA_FREE",
6252            MeminfoCounters::MeminfoGpu => "MEMINFO_GPU",
6253            MeminfoCounters::MeminfoZram => "MEMINFO_ZRAM",
6254            MeminfoCounters::MeminfoMisc => "MEMINFO_MISC",
6255            MeminfoCounters::MeminfoIonHeap => "MEMINFO_ION_HEAP",
6256            MeminfoCounters::MeminfoIonHeapPool => "MEMINFO_ION_HEAP_POOL",
6257        }
6258    }
6259}
6260/// Counter definitions for Linux's /proc/vmstat.
6261#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6262#[repr(i32)]
6263pub enum VmstatCounters {
6264    VmstatUnspecified = 0,
6265    VmstatNrFreePages = 1,
6266    VmstatNrAllocBatch = 2,
6267    VmstatNrInactiveAnon = 3,
6268    VmstatNrActiveAnon = 4,
6269    VmstatNrInactiveFile = 5,
6270    VmstatNrActiveFile = 6,
6271    VmstatNrUnevictable = 7,
6272    VmstatNrMlock = 8,
6273    VmstatNrAnonPages = 9,
6274    VmstatNrMapped = 10,
6275    VmstatNrFilePages = 11,
6276    VmstatNrDirty = 12,
6277    VmstatNrWriteback = 13,
6278    VmstatNrSlabReclaimable = 14,
6279    VmstatNrSlabUnreclaimable = 15,
6280    VmstatNrPageTablePages = 16,
6281    VmstatNrKernelStack = 17,
6282    VmstatNrOverhead = 18,
6283    VmstatNrUnstable = 19,
6284    VmstatNrBounce = 20,
6285    VmstatNrVmscanWrite = 21,
6286    VmstatNrVmscanImmediateReclaim = 22,
6287    VmstatNrWritebackTemp = 23,
6288    VmstatNrIsolatedAnon = 24,
6289    VmstatNrIsolatedFile = 25,
6290    VmstatNrShmem = 26,
6291    VmstatNrDirtied = 27,
6292    VmstatNrWritten = 28,
6293    VmstatNrPagesScanned = 29,
6294    VmstatWorkingsetRefault = 30,
6295    VmstatWorkingsetActivate = 31,
6296    VmstatWorkingsetNodereclaim = 32,
6297    VmstatNrAnonTransparentHugepages = 33,
6298    VmstatNrFreeCma = 34,
6299    VmstatNrSwapcache = 35,
6300    VmstatNrDirtyThreshold = 36,
6301    VmstatNrDirtyBackgroundThreshold = 37,
6302    VmstatPgpgin = 38,
6303    VmstatPgpgout = 39,
6304    VmstatPgpgoutclean = 40,
6305    VmstatPswpin = 41,
6306    VmstatPswpout = 42,
6307    VmstatPgallocDma = 43,
6308    VmstatPgallocNormal = 44,
6309    VmstatPgallocMovable = 45,
6310    VmstatPgfree = 46,
6311    VmstatPgactivate = 47,
6312    VmstatPgdeactivate = 48,
6313    VmstatPgfault = 49,
6314    VmstatPgmajfault = 50,
6315    VmstatPgrefillDma = 51,
6316    VmstatPgrefillNormal = 52,
6317    VmstatPgrefillMovable = 53,
6318    VmstatPgstealKswapdDma = 54,
6319    VmstatPgstealKswapdNormal = 55,
6320    VmstatPgstealKswapdMovable = 56,
6321    VmstatPgstealDirectDma = 57,
6322    VmstatPgstealDirectNormal = 58,
6323    VmstatPgstealDirectMovable = 59,
6324    VmstatPgscanKswapdDma = 60,
6325    VmstatPgscanKswapdNormal = 61,
6326    VmstatPgscanKswapdMovable = 62,
6327    VmstatPgscanDirectDma = 63,
6328    VmstatPgscanDirectNormal = 64,
6329    VmstatPgscanDirectMovable = 65,
6330    VmstatPgscanDirectThrottle = 66,
6331    VmstatPginodesteal = 67,
6332    VmstatSlabsScanned = 68,
6333    VmstatKswapdInodesteal = 69,
6334    VmstatKswapdLowWmarkHitQuickly = 70,
6335    VmstatKswapdHighWmarkHitQuickly = 71,
6336    VmstatPageoutrun = 72,
6337    VmstatAllocstall = 73,
6338    VmstatPgrotated = 74,
6339    VmstatDropPagecache = 75,
6340    VmstatDropSlab = 76,
6341    VmstatPgmigrateSuccess = 77,
6342    VmstatPgmigrateFail = 78,
6343    VmstatCompactMigrateScanned = 79,
6344    VmstatCompactFreeScanned = 80,
6345    VmstatCompactIsolated = 81,
6346    VmstatCompactStall = 82,
6347    VmstatCompactFail = 83,
6348    VmstatCompactSuccess = 84,
6349    VmstatCompactDaemonWake = 85,
6350    VmstatUnevictablePgsCulled = 86,
6351    VmstatUnevictablePgsScanned = 87,
6352    VmstatUnevictablePgsRescued = 88,
6353    VmstatUnevictablePgsMlocked = 89,
6354    VmstatUnevictablePgsMunlocked = 90,
6355    VmstatUnevictablePgsCleared = 91,
6356    VmstatUnevictablePgsStranded = 92,
6357    VmstatNrZspages = 93,
6358    VmstatNrIonHeap = 94,
6359    VmstatNrGpuHeap = 95,
6360    VmstatAllocstallDma = 96,
6361    VmstatAllocstallMovable = 97,
6362    VmstatAllocstallNormal = 98,
6363    VmstatCompactDaemonFreeScanned = 99,
6364    VmstatCompactDaemonMigrateScanned = 100,
6365    VmstatNrFastrpc = 101,
6366    VmstatNrIndirectlyReclaimable = 102,
6367    VmstatNrIonHeapPool = 103,
6368    VmstatNrKernelMiscReclaimable = 104,
6369    VmstatNrShadowCallStackBytes = 105,
6370    VmstatNrShmemHugepages = 106,
6371    VmstatNrShmemPmdmapped = 107,
6372    VmstatNrUnreclaimablePages = 108,
6373    VmstatNrZoneActiveAnon = 109,
6374    VmstatNrZoneActiveFile = 110,
6375    VmstatNrZoneInactiveAnon = 111,
6376    VmstatNrZoneInactiveFile = 112,
6377    VmstatNrZoneUnevictable = 113,
6378    VmstatNrZoneWritePending = 114,
6379    VmstatOomKill = 115,
6380    VmstatPglazyfree = 116,
6381    VmstatPglazyfreed = 117,
6382    VmstatPgrefill = 118,
6383    VmstatPgscanDirect = 119,
6384    VmstatPgscanKswapd = 120,
6385    VmstatPgskipDma = 121,
6386    VmstatPgskipMovable = 122,
6387    VmstatPgskipNormal = 123,
6388    VmstatPgstealDirect = 124,
6389    VmstatPgstealKswapd = 125,
6390    VmstatSwapRa = 126,
6391    VmstatSwapRaHit = 127,
6392    VmstatWorkingsetRestore = 128,
6393    VmstatAllocstallDevice = 129,
6394    VmstatAllocstallDma32 = 130,
6395    VmstatBalloonDeflate = 131,
6396    VmstatBalloonInflate = 132,
6397    VmstatBalloonMigrate = 133,
6398    VmstatCmaAllocFail = 134,
6399    VmstatCmaAllocSuccess = 135,
6400    VmstatNrFileHugepages = 136,
6401    VmstatNrFilePmdmapped = 137,
6402    VmstatNrFollPinAcquired = 138,
6403    VmstatNrFollPinReleased = 139,
6404    VmstatNrSecPageTablePages = 140,
6405    VmstatNrShadowCallStack = 141,
6406    VmstatNrSwapcached = 142,
6407    VmstatNrThrottledWritten = 143,
6408    VmstatPgallocDevice = 144,
6409    VmstatPgallocDma32 = 145,
6410    VmstatPgdemoteDirect = 146,
6411    VmstatPgdemoteKswapd = 147,
6412    VmstatPgreuse = 148,
6413    VmstatPgscanAnon = 149,
6414    VmstatPgscanFile = 150,
6415    VmstatPgskipDevice = 151,
6416    VmstatPgskipDma32 = 152,
6417    VmstatPgstealAnon = 153,
6418    VmstatPgstealFile = 154,
6419    VmstatThpCollapseAlloc = 155,
6420    VmstatThpCollapseAllocFailed = 156,
6421    VmstatThpDeferredSplitPage = 157,
6422    VmstatThpFaultAlloc = 158,
6423    VmstatThpFaultFallback = 159,
6424    VmstatThpFaultFallbackCharge = 160,
6425    VmstatThpFileAlloc = 161,
6426    VmstatThpFileFallback = 162,
6427    VmstatThpFileFallbackCharge = 163,
6428    VmstatThpFileMapped = 164,
6429    VmstatThpMigrationFail = 165,
6430    VmstatThpMigrationSplit = 166,
6431    VmstatThpMigrationSuccess = 167,
6432    VmstatThpScanExceedNonePte = 168,
6433    VmstatThpScanExceedSharePte = 169,
6434    VmstatThpScanExceedSwapPte = 170,
6435    VmstatThpSplitPage = 171,
6436    VmstatThpSplitPageFailed = 172,
6437    VmstatThpSplitPmd = 173,
6438    VmstatThpSwpout = 174,
6439    VmstatThpSwpoutFallback = 175,
6440    VmstatThpZeroPageAlloc = 176,
6441    VmstatThpZeroPageAllocFailed = 177,
6442    VmstatVmaLockAbort = 178,
6443    VmstatVmaLockMiss = 179,
6444    VmstatVmaLockRetry = 180,
6445    VmstatVmaLockSuccess = 181,
6446    VmstatWorkingsetActivateAnon = 182,
6447    VmstatWorkingsetActivateFile = 183,
6448    VmstatWorkingsetNodes = 184,
6449    VmstatWorkingsetRefaultAnon = 185,
6450    VmstatWorkingsetRefaultFile = 186,
6451    VmstatWorkingsetRestoreAnon = 187,
6452    VmstatWorkingsetRestoreFile = 188,
6453}
6454impl VmstatCounters {
6455    /// String value of the enum field names used in the ProtoBuf definition.
6456    ///
6457    /// The values are not transformed in any way and thus are considered stable
6458    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6459    pub fn as_str_name(&self) -> &'static str {
6460        match self {
6461            VmstatCounters::VmstatUnspecified => "VMSTAT_UNSPECIFIED",
6462            VmstatCounters::VmstatNrFreePages => "VMSTAT_NR_FREE_PAGES",
6463            VmstatCounters::VmstatNrAllocBatch => "VMSTAT_NR_ALLOC_BATCH",
6464            VmstatCounters::VmstatNrInactiveAnon => "VMSTAT_NR_INACTIVE_ANON",
6465            VmstatCounters::VmstatNrActiveAnon => "VMSTAT_NR_ACTIVE_ANON",
6466            VmstatCounters::VmstatNrInactiveFile => "VMSTAT_NR_INACTIVE_FILE",
6467            VmstatCounters::VmstatNrActiveFile => "VMSTAT_NR_ACTIVE_FILE",
6468            VmstatCounters::VmstatNrUnevictable => "VMSTAT_NR_UNEVICTABLE",
6469            VmstatCounters::VmstatNrMlock => "VMSTAT_NR_MLOCK",
6470            VmstatCounters::VmstatNrAnonPages => "VMSTAT_NR_ANON_PAGES",
6471            VmstatCounters::VmstatNrMapped => "VMSTAT_NR_MAPPED",
6472            VmstatCounters::VmstatNrFilePages => "VMSTAT_NR_FILE_PAGES",
6473            VmstatCounters::VmstatNrDirty => "VMSTAT_NR_DIRTY",
6474            VmstatCounters::VmstatNrWriteback => "VMSTAT_NR_WRITEBACK",
6475            VmstatCounters::VmstatNrSlabReclaimable => "VMSTAT_NR_SLAB_RECLAIMABLE",
6476            VmstatCounters::VmstatNrSlabUnreclaimable => "VMSTAT_NR_SLAB_UNRECLAIMABLE",
6477            VmstatCounters::VmstatNrPageTablePages => "VMSTAT_NR_PAGE_TABLE_PAGES",
6478            VmstatCounters::VmstatNrKernelStack => "VMSTAT_NR_KERNEL_STACK",
6479            VmstatCounters::VmstatNrOverhead => "VMSTAT_NR_OVERHEAD",
6480            VmstatCounters::VmstatNrUnstable => "VMSTAT_NR_UNSTABLE",
6481            VmstatCounters::VmstatNrBounce => "VMSTAT_NR_BOUNCE",
6482            VmstatCounters::VmstatNrVmscanWrite => "VMSTAT_NR_VMSCAN_WRITE",
6483            VmstatCounters::VmstatNrVmscanImmediateReclaim => "VMSTAT_NR_VMSCAN_IMMEDIATE_RECLAIM",
6484            VmstatCounters::VmstatNrWritebackTemp => "VMSTAT_NR_WRITEBACK_TEMP",
6485            VmstatCounters::VmstatNrIsolatedAnon => "VMSTAT_NR_ISOLATED_ANON",
6486            VmstatCounters::VmstatNrIsolatedFile => "VMSTAT_NR_ISOLATED_FILE",
6487            VmstatCounters::VmstatNrShmem => "VMSTAT_NR_SHMEM",
6488            VmstatCounters::VmstatNrDirtied => "VMSTAT_NR_DIRTIED",
6489            VmstatCounters::VmstatNrWritten => "VMSTAT_NR_WRITTEN",
6490            VmstatCounters::VmstatNrPagesScanned => "VMSTAT_NR_PAGES_SCANNED",
6491            VmstatCounters::VmstatWorkingsetRefault => "VMSTAT_WORKINGSET_REFAULT",
6492            VmstatCounters::VmstatWorkingsetActivate => "VMSTAT_WORKINGSET_ACTIVATE",
6493            VmstatCounters::VmstatWorkingsetNodereclaim => "VMSTAT_WORKINGSET_NODERECLAIM",
6494            VmstatCounters::VmstatNrAnonTransparentHugepages => "VMSTAT_NR_ANON_TRANSPARENT_HUGEPAGES",
6495            VmstatCounters::VmstatNrFreeCma => "VMSTAT_NR_FREE_CMA",
6496            VmstatCounters::VmstatNrSwapcache => "VMSTAT_NR_SWAPCACHE",
6497            VmstatCounters::VmstatNrDirtyThreshold => "VMSTAT_NR_DIRTY_THRESHOLD",
6498            VmstatCounters::VmstatNrDirtyBackgroundThreshold => "VMSTAT_NR_DIRTY_BACKGROUND_THRESHOLD",
6499            VmstatCounters::VmstatPgpgin => "VMSTAT_PGPGIN",
6500            VmstatCounters::VmstatPgpgout => "VMSTAT_PGPGOUT",
6501            VmstatCounters::VmstatPgpgoutclean => "VMSTAT_PGPGOUTCLEAN",
6502            VmstatCounters::VmstatPswpin => "VMSTAT_PSWPIN",
6503            VmstatCounters::VmstatPswpout => "VMSTAT_PSWPOUT",
6504            VmstatCounters::VmstatPgallocDma => "VMSTAT_PGALLOC_DMA",
6505            VmstatCounters::VmstatPgallocNormal => "VMSTAT_PGALLOC_NORMAL",
6506            VmstatCounters::VmstatPgallocMovable => "VMSTAT_PGALLOC_MOVABLE",
6507            VmstatCounters::VmstatPgfree => "VMSTAT_PGFREE",
6508            VmstatCounters::VmstatPgactivate => "VMSTAT_PGACTIVATE",
6509            VmstatCounters::VmstatPgdeactivate => "VMSTAT_PGDEACTIVATE",
6510            VmstatCounters::VmstatPgfault => "VMSTAT_PGFAULT",
6511            VmstatCounters::VmstatPgmajfault => "VMSTAT_PGMAJFAULT",
6512            VmstatCounters::VmstatPgrefillDma => "VMSTAT_PGREFILL_DMA",
6513            VmstatCounters::VmstatPgrefillNormal => "VMSTAT_PGREFILL_NORMAL",
6514            VmstatCounters::VmstatPgrefillMovable => "VMSTAT_PGREFILL_MOVABLE",
6515            VmstatCounters::VmstatPgstealKswapdDma => "VMSTAT_PGSTEAL_KSWAPD_DMA",
6516            VmstatCounters::VmstatPgstealKswapdNormal => "VMSTAT_PGSTEAL_KSWAPD_NORMAL",
6517            VmstatCounters::VmstatPgstealKswapdMovable => "VMSTAT_PGSTEAL_KSWAPD_MOVABLE",
6518            VmstatCounters::VmstatPgstealDirectDma => "VMSTAT_PGSTEAL_DIRECT_DMA",
6519            VmstatCounters::VmstatPgstealDirectNormal => "VMSTAT_PGSTEAL_DIRECT_NORMAL",
6520            VmstatCounters::VmstatPgstealDirectMovable => "VMSTAT_PGSTEAL_DIRECT_MOVABLE",
6521            VmstatCounters::VmstatPgscanKswapdDma => "VMSTAT_PGSCAN_KSWAPD_DMA",
6522            VmstatCounters::VmstatPgscanKswapdNormal => "VMSTAT_PGSCAN_KSWAPD_NORMAL",
6523            VmstatCounters::VmstatPgscanKswapdMovable => "VMSTAT_PGSCAN_KSWAPD_MOVABLE",
6524            VmstatCounters::VmstatPgscanDirectDma => "VMSTAT_PGSCAN_DIRECT_DMA",
6525            VmstatCounters::VmstatPgscanDirectNormal => "VMSTAT_PGSCAN_DIRECT_NORMAL",
6526            VmstatCounters::VmstatPgscanDirectMovable => "VMSTAT_PGSCAN_DIRECT_MOVABLE",
6527            VmstatCounters::VmstatPgscanDirectThrottle => "VMSTAT_PGSCAN_DIRECT_THROTTLE",
6528            VmstatCounters::VmstatPginodesteal => "VMSTAT_PGINODESTEAL",
6529            VmstatCounters::VmstatSlabsScanned => "VMSTAT_SLABS_SCANNED",
6530            VmstatCounters::VmstatKswapdInodesteal => "VMSTAT_KSWAPD_INODESTEAL",
6531            VmstatCounters::VmstatKswapdLowWmarkHitQuickly => "VMSTAT_KSWAPD_LOW_WMARK_HIT_QUICKLY",
6532            VmstatCounters::VmstatKswapdHighWmarkHitQuickly => "VMSTAT_KSWAPD_HIGH_WMARK_HIT_QUICKLY",
6533            VmstatCounters::VmstatPageoutrun => "VMSTAT_PAGEOUTRUN",
6534            VmstatCounters::VmstatAllocstall => "VMSTAT_ALLOCSTALL",
6535            VmstatCounters::VmstatPgrotated => "VMSTAT_PGROTATED",
6536            VmstatCounters::VmstatDropPagecache => "VMSTAT_DROP_PAGECACHE",
6537            VmstatCounters::VmstatDropSlab => "VMSTAT_DROP_SLAB",
6538            VmstatCounters::VmstatPgmigrateSuccess => "VMSTAT_PGMIGRATE_SUCCESS",
6539            VmstatCounters::VmstatPgmigrateFail => "VMSTAT_PGMIGRATE_FAIL",
6540            VmstatCounters::VmstatCompactMigrateScanned => "VMSTAT_COMPACT_MIGRATE_SCANNED",
6541            VmstatCounters::VmstatCompactFreeScanned => "VMSTAT_COMPACT_FREE_SCANNED",
6542            VmstatCounters::VmstatCompactIsolated => "VMSTAT_COMPACT_ISOLATED",
6543            VmstatCounters::VmstatCompactStall => "VMSTAT_COMPACT_STALL",
6544            VmstatCounters::VmstatCompactFail => "VMSTAT_COMPACT_FAIL",
6545            VmstatCounters::VmstatCompactSuccess => "VMSTAT_COMPACT_SUCCESS",
6546            VmstatCounters::VmstatCompactDaemonWake => "VMSTAT_COMPACT_DAEMON_WAKE",
6547            VmstatCounters::VmstatUnevictablePgsCulled => "VMSTAT_UNEVICTABLE_PGS_CULLED",
6548            VmstatCounters::VmstatUnevictablePgsScanned => "VMSTAT_UNEVICTABLE_PGS_SCANNED",
6549            VmstatCounters::VmstatUnevictablePgsRescued => "VMSTAT_UNEVICTABLE_PGS_RESCUED",
6550            VmstatCounters::VmstatUnevictablePgsMlocked => "VMSTAT_UNEVICTABLE_PGS_MLOCKED",
6551            VmstatCounters::VmstatUnevictablePgsMunlocked => "VMSTAT_UNEVICTABLE_PGS_MUNLOCKED",
6552            VmstatCounters::VmstatUnevictablePgsCleared => "VMSTAT_UNEVICTABLE_PGS_CLEARED",
6553            VmstatCounters::VmstatUnevictablePgsStranded => "VMSTAT_UNEVICTABLE_PGS_STRANDED",
6554            VmstatCounters::VmstatNrZspages => "VMSTAT_NR_ZSPAGES",
6555            VmstatCounters::VmstatNrIonHeap => "VMSTAT_NR_ION_HEAP",
6556            VmstatCounters::VmstatNrGpuHeap => "VMSTAT_NR_GPU_HEAP",
6557            VmstatCounters::VmstatAllocstallDma => "VMSTAT_ALLOCSTALL_DMA",
6558            VmstatCounters::VmstatAllocstallMovable => "VMSTAT_ALLOCSTALL_MOVABLE",
6559            VmstatCounters::VmstatAllocstallNormal => "VMSTAT_ALLOCSTALL_NORMAL",
6560            VmstatCounters::VmstatCompactDaemonFreeScanned => "VMSTAT_COMPACT_DAEMON_FREE_SCANNED",
6561            VmstatCounters::VmstatCompactDaemonMigrateScanned => "VMSTAT_COMPACT_DAEMON_MIGRATE_SCANNED",
6562            VmstatCounters::VmstatNrFastrpc => "VMSTAT_NR_FASTRPC",
6563            VmstatCounters::VmstatNrIndirectlyReclaimable => "VMSTAT_NR_INDIRECTLY_RECLAIMABLE",
6564            VmstatCounters::VmstatNrIonHeapPool => "VMSTAT_NR_ION_HEAP_POOL",
6565            VmstatCounters::VmstatNrKernelMiscReclaimable => "VMSTAT_NR_KERNEL_MISC_RECLAIMABLE",
6566            VmstatCounters::VmstatNrShadowCallStackBytes => "VMSTAT_NR_SHADOW_CALL_STACK_BYTES",
6567            VmstatCounters::VmstatNrShmemHugepages => "VMSTAT_NR_SHMEM_HUGEPAGES",
6568            VmstatCounters::VmstatNrShmemPmdmapped => "VMSTAT_NR_SHMEM_PMDMAPPED",
6569            VmstatCounters::VmstatNrUnreclaimablePages => "VMSTAT_NR_UNRECLAIMABLE_PAGES",
6570            VmstatCounters::VmstatNrZoneActiveAnon => "VMSTAT_NR_ZONE_ACTIVE_ANON",
6571            VmstatCounters::VmstatNrZoneActiveFile => "VMSTAT_NR_ZONE_ACTIVE_FILE",
6572            VmstatCounters::VmstatNrZoneInactiveAnon => "VMSTAT_NR_ZONE_INACTIVE_ANON",
6573            VmstatCounters::VmstatNrZoneInactiveFile => "VMSTAT_NR_ZONE_INACTIVE_FILE",
6574            VmstatCounters::VmstatNrZoneUnevictable => "VMSTAT_NR_ZONE_UNEVICTABLE",
6575            VmstatCounters::VmstatNrZoneWritePending => "VMSTAT_NR_ZONE_WRITE_PENDING",
6576            VmstatCounters::VmstatOomKill => "VMSTAT_OOM_KILL",
6577            VmstatCounters::VmstatPglazyfree => "VMSTAT_PGLAZYFREE",
6578            VmstatCounters::VmstatPglazyfreed => "VMSTAT_PGLAZYFREED",
6579            VmstatCounters::VmstatPgrefill => "VMSTAT_PGREFILL",
6580            VmstatCounters::VmstatPgscanDirect => "VMSTAT_PGSCAN_DIRECT",
6581            VmstatCounters::VmstatPgscanKswapd => "VMSTAT_PGSCAN_KSWAPD",
6582            VmstatCounters::VmstatPgskipDma => "VMSTAT_PGSKIP_DMA",
6583            VmstatCounters::VmstatPgskipMovable => "VMSTAT_PGSKIP_MOVABLE",
6584            VmstatCounters::VmstatPgskipNormal => "VMSTAT_PGSKIP_NORMAL",
6585            VmstatCounters::VmstatPgstealDirect => "VMSTAT_PGSTEAL_DIRECT",
6586            VmstatCounters::VmstatPgstealKswapd => "VMSTAT_PGSTEAL_KSWAPD",
6587            VmstatCounters::VmstatSwapRa => "VMSTAT_SWAP_RA",
6588            VmstatCounters::VmstatSwapRaHit => "VMSTAT_SWAP_RA_HIT",
6589            VmstatCounters::VmstatWorkingsetRestore => "VMSTAT_WORKINGSET_RESTORE",
6590            VmstatCounters::VmstatAllocstallDevice => "VMSTAT_ALLOCSTALL_DEVICE",
6591            VmstatCounters::VmstatAllocstallDma32 => "VMSTAT_ALLOCSTALL_DMA32",
6592            VmstatCounters::VmstatBalloonDeflate => "VMSTAT_BALLOON_DEFLATE",
6593            VmstatCounters::VmstatBalloonInflate => "VMSTAT_BALLOON_INFLATE",
6594            VmstatCounters::VmstatBalloonMigrate => "VMSTAT_BALLOON_MIGRATE",
6595            VmstatCounters::VmstatCmaAllocFail => "VMSTAT_CMA_ALLOC_FAIL",
6596            VmstatCounters::VmstatCmaAllocSuccess => "VMSTAT_CMA_ALLOC_SUCCESS",
6597            VmstatCounters::VmstatNrFileHugepages => "VMSTAT_NR_FILE_HUGEPAGES",
6598            VmstatCounters::VmstatNrFilePmdmapped => "VMSTAT_NR_FILE_PMDMAPPED",
6599            VmstatCounters::VmstatNrFollPinAcquired => "VMSTAT_NR_FOLL_PIN_ACQUIRED",
6600            VmstatCounters::VmstatNrFollPinReleased => "VMSTAT_NR_FOLL_PIN_RELEASED",
6601            VmstatCounters::VmstatNrSecPageTablePages => "VMSTAT_NR_SEC_PAGE_TABLE_PAGES",
6602            VmstatCounters::VmstatNrShadowCallStack => "VMSTAT_NR_SHADOW_CALL_STACK",
6603            VmstatCounters::VmstatNrSwapcached => "VMSTAT_NR_SWAPCACHED",
6604            VmstatCounters::VmstatNrThrottledWritten => "VMSTAT_NR_THROTTLED_WRITTEN",
6605            VmstatCounters::VmstatPgallocDevice => "VMSTAT_PGALLOC_DEVICE",
6606            VmstatCounters::VmstatPgallocDma32 => "VMSTAT_PGALLOC_DMA32",
6607            VmstatCounters::VmstatPgdemoteDirect => "VMSTAT_PGDEMOTE_DIRECT",
6608            VmstatCounters::VmstatPgdemoteKswapd => "VMSTAT_PGDEMOTE_KSWAPD",
6609            VmstatCounters::VmstatPgreuse => "VMSTAT_PGREUSE",
6610            VmstatCounters::VmstatPgscanAnon => "VMSTAT_PGSCAN_ANON",
6611            VmstatCounters::VmstatPgscanFile => "VMSTAT_PGSCAN_FILE",
6612            VmstatCounters::VmstatPgskipDevice => "VMSTAT_PGSKIP_DEVICE",
6613            VmstatCounters::VmstatPgskipDma32 => "VMSTAT_PGSKIP_DMA32",
6614            VmstatCounters::VmstatPgstealAnon => "VMSTAT_PGSTEAL_ANON",
6615            VmstatCounters::VmstatPgstealFile => "VMSTAT_PGSTEAL_FILE",
6616            VmstatCounters::VmstatThpCollapseAlloc => "VMSTAT_THP_COLLAPSE_ALLOC",
6617            VmstatCounters::VmstatThpCollapseAllocFailed => "VMSTAT_THP_COLLAPSE_ALLOC_FAILED",
6618            VmstatCounters::VmstatThpDeferredSplitPage => "VMSTAT_THP_DEFERRED_SPLIT_PAGE",
6619            VmstatCounters::VmstatThpFaultAlloc => "VMSTAT_THP_FAULT_ALLOC",
6620            VmstatCounters::VmstatThpFaultFallback => "VMSTAT_THP_FAULT_FALLBACK",
6621            VmstatCounters::VmstatThpFaultFallbackCharge => "VMSTAT_THP_FAULT_FALLBACK_CHARGE",
6622            VmstatCounters::VmstatThpFileAlloc => "VMSTAT_THP_FILE_ALLOC",
6623            VmstatCounters::VmstatThpFileFallback => "VMSTAT_THP_FILE_FALLBACK",
6624            VmstatCounters::VmstatThpFileFallbackCharge => "VMSTAT_THP_FILE_FALLBACK_CHARGE",
6625            VmstatCounters::VmstatThpFileMapped => "VMSTAT_THP_FILE_MAPPED",
6626            VmstatCounters::VmstatThpMigrationFail => "VMSTAT_THP_MIGRATION_FAIL",
6627            VmstatCounters::VmstatThpMigrationSplit => "VMSTAT_THP_MIGRATION_SPLIT",
6628            VmstatCounters::VmstatThpMigrationSuccess => "VMSTAT_THP_MIGRATION_SUCCESS",
6629            VmstatCounters::VmstatThpScanExceedNonePte => "VMSTAT_THP_SCAN_EXCEED_NONE_PTE",
6630            VmstatCounters::VmstatThpScanExceedSharePte => "VMSTAT_THP_SCAN_EXCEED_SHARE_PTE",
6631            VmstatCounters::VmstatThpScanExceedSwapPte => "VMSTAT_THP_SCAN_EXCEED_SWAP_PTE",
6632            VmstatCounters::VmstatThpSplitPage => "VMSTAT_THP_SPLIT_PAGE",
6633            VmstatCounters::VmstatThpSplitPageFailed => "VMSTAT_THP_SPLIT_PAGE_FAILED",
6634            VmstatCounters::VmstatThpSplitPmd => "VMSTAT_THP_SPLIT_PMD",
6635            VmstatCounters::VmstatThpSwpout => "VMSTAT_THP_SWPOUT",
6636            VmstatCounters::VmstatThpSwpoutFallback => "VMSTAT_THP_SWPOUT_FALLBACK",
6637            VmstatCounters::VmstatThpZeroPageAlloc => "VMSTAT_THP_ZERO_PAGE_ALLOC",
6638            VmstatCounters::VmstatThpZeroPageAllocFailed => "VMSTAT_THP_ZERO_PAGE_ALLOC_FAILED",
6639            VmstatCounters::VmstatVmaLockAbort => "VMSTAT_VMA_LOCK_ABORT",
6640            VmstatCounters::VmstatVmaLockMiss => "VMSTAT_VMA_LOCK_MISS",
6641            VmstatCounters::VmstatVmaLockRetry => "VMSTAT_VMA_LOCK_RETRY",
6642            VmstatCounters::VmstatVmaLockSuccess => "VMSTAT_VMA_LOCK_SUCCESS",
6643            VmstatCounters::VmstatWorkingsetActivateAnon => "VMSTAT_WORKINGSET_ACTIVATE_ANON",
6644            VmstatCounters::VmstatWorkingsetActivateFile => "VMSTAT_WORKINGSET_ACTIVATE_FILE",
6645            VmstatCounters::VmstatWorkingsetNodes => "VMSTAT_WORKINGSET_NODES",
6646            VmstatCounters::VmstatWorkingsetRefaultAnon => "VMSTAT_WORKINGSET_REFAULT_ANON",
6647            VmstatCounters::VmstatWorkingsetRefaultFile => "VMSTAT_WORKINGSET_REFAULT_FILE",
6648            VmstatCounters::VmstatWorkingsetRestoreAnon => "VMSTAT_WORKINGSET_RESTORE_ANON",
6649            VmstatCounters::VmstatWorkingsetRestoreFile => "VMSTAT_WORKINGSET_RESTORE_FILE",
6650        }
6651    }
6652}
6653/// This file defines the configuration for the Linux /proc poller data source,
6654/// which injects counters in the trace.
6655/// Counters that are needed in the trace must be explicitly listed in the
6656/// *_counters fields. This is to avoid spamming the trace with all counters
6657/// at all times.
6658/// The sampling rate is configurable. All polling rates (*_period_ms) need
6659/// to be integer multiples of each other.
6660/// OK:     [10ms, 10ms, 10ms],  [10ms, 20ms, 10ms],  [10ms, 20ms, 60ms]
6661/// Not OK: [10ms, 10ms, 11ms],  [10ms, 15ms, 20ms]
6662#[derive(Clone, PartialEq, ::prost::Message)]
6663pub struct SysStatsConfig {
6664    /// Polls /proc/meminfo every X ms, if non-zero.
6665    /// This is required to be > 10ms to avoid excessive CPU usage.
6666    /// Cost: 0.3 ms \[read\] + 0.07 ms [parse + trace injection]
6667    #[prost(uint32, optional, tag="1")]
6668    pub meminfo_period_ms: ::core::option::Option<u32>,
6669    /// If empty all known counters are reported. Otherwise, only the counters
6670    /// specified below are reported.
6671    #[prost(enumeration="MeminfoCounters", repeated, packed="false", tag="2")]
6672    pub meminfo_counters: ::prost::alloc::vec::Vec<i32>,
6673    /// Polls /proc/vmstat every X ms, if non-zero.
6674    /// This is required to be > 10ms to avoid excessive CPU usage.
6675    /// Cost: 0.2 ms \[read\] + 0.3 ms [parse + trace injection]
6676    #[prost(uint32, optional, tag="3")]
6677    pub vmstat_period_ms: ::core::option::Option<u32>,
6678    #[prost(enumeration="VmstatCounters", repeated, packed="false", tag="4")]
6679    pub vmstat_counters: ::prost::alloc::vec::Vec<i32>,
6680    /// Pols /proc/stat every X ms, if non-zero.
6681    /// This is required to be > 10ms to avoid excessive CPU usage.
6682    /// Cost: 4.1 ms \[read\] + 1.9 ms [parse + trace injection]
6683    #[prost(uint32, optional, tag="5")]
6684    pub stat_period_ms: ::core::option::Option<u32>,
6685    #[prost(enumeration="sys_stats_config::StatCounters", repeated, packed="false", tag="6")]
6686    pub stat_counters: ::prost::alloc::vec::Vec<i32>,
6687    /// Polls /sys/devfreq/*/curfreq every X ms, if non-zero.
6688    /// This is required to be > 10ms to avoid excessive CPU usage.
6689    /// This option can be used to record unchanging values.
6690    /// Updates from frequency changes can come from ftrace/set_clock_rate.
6691    #[prost(uint32, optional, tag="7")]
6692    pub devfreq_period_ms: ::core::option::Option<u32>,
6693    /// Polls /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq every X ms.
6694    /// This is required to be > 10ms to avoid excessive CPU usage.
6695    #[prost(uint32, optional, tag="8")]
6696    pub cpufreq_period_ms: ::core::option::Option<u32>,
6697    /// Polls /proc/buddyinfo every X ms, if non-zero.
6698    /// This is required to be > 10ms to avoid excessive CPU usage.
6699    #[prost(uint32, optional, tag="9")]
6700    pub buddyinfo_period_ms: ::core::option::Option<u32>,
6701    /// Polls /proc/diskstats every X ms, if non-zero.
6702    /// This is required to be > 10ms to avoid excessive CPU usage.
6703    #[prost(uint32, optional, tag="10")]
6704    pub diskstat_period_ms: ::core::option::Option<u32>,
6705    /// Polls /proc/pressure/* every X ms, if non-zero.
6706    /// This is required to be > 10ms to avoid excessive CPU usage.
6707    #[prost(uint32, optional, tag="11")]
6708    pub psi_period_ms: ::core::option::Option<u32>,
6709    /// Polls /sys/class/thermal/* every X ms, if non-zero.
6710    /// This is required to be > 10ms to avoid excessive CPU usage.
6711    #[prost(uint32, optional, tag="12")]
6712    pub thermal_period_ms: ::core::option::Option<u32>,
6713    /// Polls /sys/devices/system/cpu/cpu*/cpuidle/state* every X ms, if non-zero.
6714    /// This is required to be > 10ms to avoid excessive CPU usage.
6715    #[prost(uint32, optional, tag="13")]
6716    pub cpuidle_period_ms: ::core::option::Option<u32>,
6717    /// Polls device-specific GPU frequency info every X ms, if non-zero.
6718    /// This is required to be > 10ms to avoid excessive CPU usage.
6719    #[prost(uint32, optional, tag="14")]
6720    pub gpufreq_period_ms: ::core::option::Option<u32>,
6721    /// Polls /proc/slabinfo every X ms, if non-zero.
6722    /// This is required to be > 10ms to avoid excessive CPU usage.
6723    #[prost(uint32, optional, tag="15")]
6724    pub slab_period_ms: ::core::option::Option<u32>,
6725}
6726/// Nested message and enum types in `SysStatsConfig`.
6727pub mod sys_stats_config {
6728    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6729    #[repr(i32)]
6730    pub enum StatCounters {
6731        StatUnspecified = 0,
6732        StatCpuTimes = 1,
6733        StatIrqCounts = 2,
6734        StatSoftirqCounts = 3,
6735        StatForkCount = 4,
6736    }
6737    impl StatCounters {
6738        /// String value of the enum field names used in the ProtoBuf definition.
6739        ///
6740        /// The values are not transformed in any way and thus are considered stable
6741        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6742        pub fn as_str_name(&self) -> &'static str {
6743            match self {
6744                StatCounters::StatUnspecified => "STAT_UNSPECIFIED",
6745                StatCounters::StatCpuTimes => "STAT_CPU_TIMES",
6746                StatCounters::StatIrqCounts => "STAT_IRQ_COUNTS",
6747                StatCounters::StatSoftirqCounts => "STAT_SOFTIRQ_COUNTS",
6748                StatCounters::StatForkCount => "STAT_FORK_COUNT",
6749            }
6750        }
6751    }
6752}
6753/// The configuration for a fake producer used in tests.
6754#[derive(Clone, PartialEq, ::prost::Message)]
6755pub struct TestConfig {
6756    /// The number of messages the fake producer should send.
6757    #[prost(uint32, optional, tag="1")]
6758    pub message_count: ::core::option::Option<u32>,
6759    /// The maximum number of messages which should be sent each second.
6760    /// The actual obserced speed may be lower if the producer is unable to
6761    /// work fast enough.
6762    /// If this is zero or unset, the producer will send as fast as possible.
6763    #[prost(uint32, optional, tag="2")]
6764    pub max_messages_per_second: ::core::option::Option<u32>,
6765    /// The seed value for a simple multiplicative congruential pseudo-random
6766    /// number sequence.
6767    #[prost(uint32, optional, tag="3")]
6768    pub seed: ::core::option::Option<u32>,
6769    /// The size of each message in bytes. Should be greater than or equal 5 to
6770    /// account for the number of bytes needed to encode the random number and a
6771    /// null byte for the string.
6772    #[prost(uint32, optional, tag="4")]
6773    pub message_size: ::core::option::Option<u32>,
6774    /// Whether the producer should send a event batch when the data source is
6775    /// is initially registered.
6776    #[prost(bool, optional, tag="5")]
6777    pub send_batch_on_register: ::core::option::Option<bool>,
6778    #[prost(message, optional, tag="6")]
6779    pub dummy_fields: ::core::option::Option<test_config::DummyFields>,
6780}
6781/// Nested message and enum types in `TestConfig`.
6782pub mod test_config {
6783    #[derive(Clone, PartialEq, ::prost::Message)]
6784    pub struct DummyFields {
6785        #[prost(uint32, optional, tag="1")]
6786        pub field_uint32: ::core::option::Option<u32>,
6787        #[prost(int32, optional, tag="2")]
6788        pub field_int32: ::core::option::Option<i32>,
6789        #[prost(uint64, optional, tag="3")]
6790        pub field_uint64: ::core::option::Option<u64>,
6791        #[prost(int64, optional, tag="4")]
6792        pub field_int64: ::core::option::Option<i64>,
6793        #[prost(fixed64, optional, tag="5")]
6794        pub field_fixed64: ::core::option::Option<u64>,
6795        #[prost(sfixed64, optional, tag="6")]
6796        pub field_sfixed64: ::core::option::Option<i64>,
6797        #[prost(fixed32, optional, tag="7")]
6798        pub field_fixed32: ::core::option::Option<u32>,
6799        #[prost(sfixed32, optional, tag="8")]
6800        pub field_sfixed32: ::core::option::Option<i32>,
6801        #[prost(double, optional, tag="9")]
6802        pub field_double: ::core::option::Option<f64>,
6803        #[prost(float, optional, tag="10")]
6804        pub field_float: ::core::option::Option<f32>,
6805        #[prost(sint64, optional, tag="11")]
6806        pub field_sint64: ::core::option::Option<i64>,
6807        #[prost(sint32, optional, tag="12")]
6808        pub field_sint32: ::core::option::Option<i32>,
6809        #[prost(string, optional, tag="13")]
6810        pub field_string: ::core::option::Option<::prost::alloc::string::String>,
6811        #[prost(bytes="vec", optional, tag="14")]
6812        pub field_bytes: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
6813    }
6814}
6815/// The following fields define the set of enabled trace categories. Each list
6816/// item is a glob.
6817///
6818/// To determine if category is enabled, it is checked against the filters in
6819/// the following order:
6820///
6821///    1. Exact matches in enabled categories.
6822///    2. Exact matches in enabled tags.
6823///    3. Exact matches in disabled categories.
6824///    4. Exact matches in disabled tags.
6825///    5. Pattern matches in enabled categories.
6826///    6. Pattern matches in enabled tags.
6827///    7. Pattern matches in disabled categories.
6828///    8. Pattern matches in disabled tags.
6829///
6830/// If none of the steps produced a match:
6831///   - In the C++ SDK (`perfetto::Category`), categories are enabled by
6832///   default.
6833///   - In the C SDK (`PerfettoTeCategory`), categories are disabled by default.
6834///
6835/// Examples:
6836///
6837///   - To enable all non-slow/debug categories:
6838///
6839///        enabled_categories: "*"
6840///
6841///   - To enable specific categories:
6842///
6843///        disabled_categories: "*"
6844///        enabled_categories: "my_category"
6845///        enabled_categories: "my_category2"
6846///
6847///   - To enable only categories with a specific tag:
6848///
6849///        disabled_tags: "*"
6850///        enabled_tags: "my_tag"
6851///
6852#[derive(Clone, PartialEq, ::prost::Message)]
6853pub struct TrackEventConfig {
6854    /// Default: []
6855    #[prost(string, repeated, tag="1")]
6856    pub disabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6857    /// Default: []
6858    #[prost(string, repeated, tag="2")]
6859    pub enabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6860    /// Default: ["slow", "debug"]
6861    #[prost(string, repeated, tag="3")]
6862    pub disabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6863    /// Default: []
6864    #[prost(string, repeated, tag="4")]
6865    pub enabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6866    /// Default: false (i.e. enabled by default)
6867    #[prost(bool, optional, tag="5")]
6868    pub disable_incremental_timestamps: ::core::option::Option<bool>,
6869    /// Allows to specify a custom unit different than the default (ns).
6870    /// Also affects thread timestamps if enable_thread_time_sampling = true.
6871    /// A multiplier of 1000 means that a timestamp = 3 should be interpreted as
6872    /// 3000 ns = 3 us.
6873    /// Default: 1 (if unset, it should be read as 1).
6874    #[prost(uint64, optional, tag="6")]
6875    pub timestamp_unit_multiplier: ::core::option::Option<u64>,
6876    /// Default: false (i.e. debug_annotations is NOT filtered out by default)
6877    /// When true, any debug annotations provided as arguments to the
6878    /// TRACE_EVENT macros are not written into the trace. Typed arguments will
6879    /// still be emitted even if set to true.
6880    #[prost(bool, optional, tag="7")]
6881    pub filter_debug_annotations: ::core::option::Option<bool>,
6882    /// Default: false (i.e. disabled)
6883    /// When true, the SDK samples and emits the current thread time counter value
6884    /// for each event on the current thread's track. This value represents the
6885    /// total CPU time consumed by that thread since its creation.
6886    /// Learn more: "CLOCK_THREAD_CPUTIME_ID" flag at
6887    /// <https://man7.org/linux/man-pages/man3/clock_gettime.3.html>
6888    #[prost(bool, optional, tag="8")]
6889    pub enable_thread_time_sampling: ::core::option::Option<bool>,
6890    /// When enable_thread_time_sampling is true, and this is specified, thread
6891    /// time is sampled only if the elapsed wall time >
6892    /// `thread_time_subsampling_ns`. Otherwise, thread time is considered nil.
6893    /// Effectively, this means thread time will have a leeway of
6894    /// `thread_time_subsampling_ns` and won't be emitted for shorter events.
6895    #[prost(uint64, optional, tag="10")]
6896    pub thread_time_subsampling_ns: ::core::option::Option<u64>,
6897    /// Default: false (i.e. dynamic event names are NOT filtered out by default)
6898    /// When true, event_names wrapped in perfetto::DynamicString will be filtered
6899    /// out.
6900    #[prost(bool, optional, tag="9")]
6901    pub filter_dynamic_event_names: ::core::option::Option<bool>,
6902}
6903/// This data-source does a one-off recording of system information when
6904/// the trace starts.
6905/// Currently this includes:
6906/// - Values of
6907/// /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies This
6908/// datasource has no configuration options at present.
6909#[derive(Clone, PartialEq, ::prost::Message)]
6910pub struct SystemInfoConfig {
6911    /// If true, records hardware interrupt ID-to-name mappings from
6912    /// /proc/interrupts.
6913    #[prost(bool, optional, tag="1")]
6914    pub irq_names: ::core::option::Option<bool>,
6915}
6916#[derive(Clone, PartialEq, ::prost::Message)]
6917pub struct ChromiumHistogramSamplesConfig {
6918    /// List of histograms to record. If no histogram is specified, all histograms
6919    /// are recorded.
6920    #[prost(message, repeated, tag="1")]
6921    pub histograms: ::prost::alloc::vec::Vec<chromium_histogram_samples_config::HistogramSample>,
6922    /// Default: false (i.e. histogram names are NOT filtered out by default)
6923    /// When true, histogram_name will be filtered out.
6924    #[prost(bool, optional, tag="2")]
6925    pub filter_histogram_names: ::core::option::Option<bool>,
6926}
6927/// Nested message and enum types in `ChromiumHistogramSamplesConfig`.
6928pub mod chromium_histogram_samples_config {
6929    /// Records when a value within the specified bounds [min_value, max_value] is
6930    /// emitted into a Chrome histogram.
6931    #[derive(Clone, PartialEq, ::prost::Message)]
6932    pub struct HistogramSample {
6933        #[prost(string, optional, tag="1")]
6934        pub histogram_name: ::core::option::Option<::prost::alloc::string::String>,
6935        #[prost(int64, optional, tag="2")]
6936        pub min_value: ::core::option::Option<i64>,
6937        #[prost(int64, optional, tag="3")]
6938        pub max_value: ::core::option::Option<i64>,
6939    }
6940}
6941/// Configuration for the "linux.systemd_journald" data source.
6942/// Next field id: 4
6943#[derive(Clone, PartialEq, ::prost::Message)]
6944pub struct SystemdJournaldConfig {
6945    /// Minimum syslog priority level to capture (inclusive).
6946    /// 0=EMERG, 1=ALERT, 2=CRIT, 3=ERR, 4=WARNING, 5=NOTICE, 6=INFO, 7=DEBUG.
6947    /// Default (0 / unset): capture all priorities (equivalent to 7).
6948    #[prost(uint32, optional, tag="1")]
6949    pub min_prio: ::core::option::Option<u32>,
6950    /// If non-empty, only capture journal entries whose SYSLOG_IDENTIFIER
6951    /// matches one of these strings.
6952    #[prost(string, repeated, tag="2")]
6953    pub filter_identifiers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6954    /// If non-empty, only capture journal entries from these systemd unit names.
6955    #[prost(string, repeated, tag="3")]
6956    pub filter_units: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6957}
6958/// QnxConfig is used with trace_qnx_probes build from
6959/// <https://github.com/qnx-ports/perfetto>
6960#[derive(Clone, PartialEq, ::prost::Message)]
6961pub struct QnxConfig {
6962    /// The number of buffers that tracelog will init for the QNX trace.
6963    #[prost(uint32, optional, tag="1")]
6964    pub qnx_kernel_buffers: ::core::option::Option<u32>,
6965    /// The number of kernel buffers that tracelog will init for the QNX trace.
6966    #[prost(uint32, optional, tag="2")]
6967    pub qnx_kernel_kbuffers: ::core::option::Option<u32>,
6968    /// Flag indicating whether the QNX kernel tracing should produce wide
6969    /// events which contain additional data or fast events which are most
6970    /// concise. In fast mode we lose the priority information
6971    #[prost(bool, optional, tag="3")]
6972    pub qnx_kernel_wide_events: ::core::option::Option<bool>,
6973    /// The number of pages initialized by default the parser's page cache.
6974    #[prost(uint32, optional, tag="4")]
6975    pub qnx_cache_pages: ::core::option::Option<u32>,
6976    /// The max pages the page cache should allocate (must be at least as big)
6977    /// as the qnx_cache_pages value. Using -1 will allow the cache to grow
6978    /// unbounded. The cache will prefer to re-use existing pages so growth will
6979    /// only happen when needed (when parser is not keeping up).
6980    #[prost(int32, optional, tag="5")]
6981    pub qnx_cache_max_pages: ::core::option::Option<i32>,
6982    /// The initial size of the the buffer used to hold the trace header values
6983    /// this dynamic buffer will grow as needed but reallocs can be avoided by
6984    /// selecting an initial size large enough to hold all the initial header
6985    /// data.
6986    #[prost(uint32, optional, tag="6")]
6987    pub qnx_trace_buffer_init_bytes: ::core::option::Option<u32>,
6988}
6989/// The configuration that is passed to each data source when starting tracing.
6990/// Next id: 141
6991#[derive(Clone, PartialEq, ::prost::Message)]
6992pub struct DataSourceConfig {
6993    /// Data source unique name, e.g., "linux.ftrace". This must match
6994    /// the name passed by the data source when it registers (see
6995    /// RegisterDataSource()).
6996    #[prost(string, optional, tag="1")]
6997    pub name: ::core::option::Option<::prost::alloc::string::String>,
6998    /// The index of the logging buffer where TracePacket(s) will be stored.
6999    /// This field is quite subtle as it has a double semantic:
7000    /// 1) When the config is passed, this field is a 0-based index relative to the
7001    ///     buffer array in the TraceConfig and defines the mapping between data
7002    ///     sources and config. From v54 this is optional because the user can
7003    ///     instead use target_buffer_name.
7004    /// 2) When the TracingService issues a SetupDataSource/StartDataSource to the
7005    ///     producer, it overwrites this field with the global buffer index (which
7006    ///     depends on other tracing sessions active). This tells the producer which
7007    ///     buffer id should be passed to CreateTraceWriter. In this case, the trace
7008    ///     service always sets the resolved global id, even when using
7009    ///     `target_buffer_name`.
7010    /// In hindsight we should have used two different fields given even in v0 they
7011    /// had a different semantic. But now it's too late as this would be a major
7012    /// protocol breaking change.
7013    #[prost(uint32, optional, tag="2")]
7014    pub target_buffer: ::core::option::Option<u32>,
7015    /// Alternative to |target_buffer|. References a buffer by name (as specified
7016    /// in TraceConfig.BufferConfig.name) rather than by index. This is more
7017    /// readable and less error-prone than using buffer indices.
7018    /// If both |target_buffer| and |target_buffer_name| are specified, they must
7019    /// refer to the same buffer, otherwise the service will reject the config.
7020    /// Using both fields allows configs to work with both old and new versions
7021    /// of the tracing service. Introduced in v54.
7022    #[prost(string, optional, tag="11")]
7023    pub target_buffer_name: ::core::option::Option<::prost::alloc::string::String>,
7024    /// Set by the service to indicate the duration of the trace.
7025    /// DO NOT SET in consumer as this will be overridden by the service.
7026    #[prost(uint32, optional, tag="3")]
7027    pub trace_duration_ms: ::core::option::Option<u32>,
7028    /// If true, |trace_duration_ms| should count also time in suspend. This
7029    /// is propagated from TraceConfig.prefer_suspend_clock_for_duration.
7030    #[prost(bool, optional, tag="122")]
7031    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
7032    /// Set by the service to indicate how long it waits after StopDataSource.
7033    /// DO NOT SET in consumer as this will be overridden by the service.
7034    #[prost(uint32, optional, tag="7")]
7035    pub stop_timeout_ms: ::core::option::Option<u32>,
7036    /// Set by the service to indicate whether this tracing session has extra
7037    /// guardrails.
7038    /// DO NOT SET in consumer as this will be overridden by the service.
7039    #[prost(bool, optional, tag="6")]
7040    pub enable_extra_guardrails: ::core::option::Option<bool>,
7041    /// Set by the service to indicate which user initiated this trace.
7042    /// DO NOT SET in consumer as this will be overridden by the service.
7043    #[prost(enumeration="data_source_config::SessionInitiator", optional, tag="8")]
7044    pub session_initiator: ::core::option::Option<i32>,
7045    /// Set by the service to indicate which tracing session the data source
7046    /// belongs to. The intended use case for this is checking if two data sources,
7047    /// one of which produces metadata for the other one, belong to the same trace
7048    /// session and hence should be linked together.
7049    /// This field was introduced in Aug 2018 after Android P.
7050    /// DO NOT SET in consumer as this will be overridden by the service.
7051    #[prost(uint64, optional, tag="4")]
7052    pub tracing_session_id: ::core::option::Option<u64>,
7053    /// How to behave when the producer runs out of space in the shared memory
7054    /// buffer. This is only honored by some data sources (in the SDK, the data
7055    /// sources registered with a configurable buffer exhausted policy).
7056    #[prost(enumeration="data_source_config::BufferExhaustedPolicy", optional, tag="9")]
7057    pub buffer_exhausted_policy: ::core::option::Option<i32>,
7058    #[prost(message, optional, tag="10")]
7059    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
7060    // If specified, the data source requires the tracing service to process
7061    // overwritten packets (patches) using a ProtoVM instance with this config.
7062    // The ProtoVM program is specified at data source registration time through
7063    // the descriptor.
7064
7065    /// TODO(primiano): today when we enable a protovm_config, we actually accept
7066    /// that if N producers advertise M different versions of the same program we
7067    /// will create M instances of that program.
7068    /// To overcome this, we could move the program to the TraceConfig. But doing
7069    /// so would bloat the trace config size too big and create problems to statsd.
7070    /// Once the config store (b/482305876) exists we should move protovm programs
7071    /// onto that.
7072    #[prost(message, optional, tag="12")]
7073    pub protovm_config: ::core::option::Option<ProtoVmConfig>,
7074    // Keep the lower IDs (up to 99) for fields that are *not* specific to
7075    // data-sources and needs to be processed by the traced daemon.
7076
7077    // All data source config fields must be marked as \[lazy=true\]. This prevents
7078    // the proto-to-cpp generator from recursing into those when generating the
7079    // cpp classes and polluting tracing/core with data-source-specific classes.
7080    // Instead they are treated as opaque strings containing raw proto bytes.
7081
7082    /// Data source name: linux.ftrace
7083    #[prost(message, optional, tag="100")]
7084    pub ftrace_config: ::core::option::Option<FtraceConfig>,
7085    /// Data source name: linux.inode_file_map
7086    #[prost(message, optional, tag="102")]
7087    pub inode_file_config: ::core::option::Option<InodeFileConfig>,
7088    /// Data source name: linux.process_stats
7089    #[prost(message, optional, tag="103")]
7090    pub process_stats_config: ::core::option::Option<ProcessStatsConfig>,
7091    /// Data source name: linux.sys_stats
7092    #[prost(message, optional, tag="104")]
7093    pub sys_stats_config: ::core::option::Option<SysStatsConfig>,
7094    /// Data source name: android.heapprofd
7095    /// Introduced in Android 10.
7096    #[prost(message, optional, tag="105")]
7097    pub heapprofd_config: ::core::option::Option<HeapprofdConfig>,
7098    /// Data source name: android.java_hprof
7099    /// Introduced in Android 11.
7100    #[prost(message, optional, tag="110")]
7101    pub java_hprof_config: ::core::option::Option<JavaHprofConfig>,
7102    /// Data source name: android.power
7103    #[prost(message, optional, tag="106")]
7104    pub android_power_config: ::core::option::Option<AndroidPowerConfig>,
7105    /// Data source name: android.log
7106    #[prost(message, optional, tag="107")]
7107    pub android_log_config: ::core::option::Option<AndroidLogConfig>,
7108    /// Data source name: gpu.counters
7109    #[prost(message, optional, tag="108")]
7110    pub gpu_counter_config: ::core::option::Option<GpuCounterConfig>,
7111    /// Data source name: android.game_interventions
7112    #[prost(message, optional, tag="116")]
7113    pub android_game_intervention_list_config: ::core::option::Option<AndroidGameInterventionListConfig>,
7114    /// Data source name: android.packages_list
7115    #[prost(message, optional, tag="109")]
7116    pub packages_list_config: ::core::option::Option<PackagesListConfig>,
7117    /// Data source name: linux.perf
7118    #[prost(message, optional, tag="111")]
7119    pub perf_event_config: ::core::option::Option<PerfEventConfig>,
7120    /// Data source name: vulkan.memory_tracker
7121    #[prost(message, optional, tag="112")]
7122    pub vulkan_memory_config: ::core::option::Option<VulkanMemoryConfig>,
7123    /// Data source name: track_event
7124    #[prost(message, optional, tag="113")]
7125    pub track_event_config: ::core::option::Option<TrackEventConfig>,
7126    /// Data source name: android.polled_state
7127    #[prost(message, optional, tag="114")]
7128    pub android_polled_state_config: ::core::option::Option<AndroidPolledStateConfig>,
7129    /// Data source name: android.system_property
7130    #[prost(message, optional, tag="118")]
7131    pub android_system_property_config: ::core::option::Option<AndroidSystemPropertyConfig>,
7132    /// Data source name: android.statsd
7133    #[prost(message, optional, tag="117")]
7134    pub statsd_tracing_config: ::core::option::Option<StatsdTracingConfig>,
7135    /// Data source name: linux.system_info
7136    #[prost(message, optional, tag="119")]
7137    pub system_info_config: ::core::option::Option<SystemInfoConfig>,
7138    /// Data source name: linux.frozen_ftrace
7139    #[prost(message, optional, tag="136")]
7140    pub frozen_ftrace_config: ::core::option::Option<FrozenFtraceConfig>,
7141    /// Chrome is special as it doesn't use the perfetto IPC layer. We want to
7142    /// avoid proto serialization and de-serialization there because that would
7143    /// just add extra hops on top of the Mojo ser/des. Instead we auto-generate a
7144    /// C++ class for it so it can pass around plain C++ objets.
7145    #[prost(message, optional, tag="101")]
7146    pub chrome_config: ::core::option::Option<ChromeConfig>,
7147    /// Data source name: code.v8.dev
7148    #[prost(message, optional, tag="127")]
7149    pub v8_config: ::core::option::Option<V8Config>,
7150    /// If an interceptor is specified here, packets for this data source will be
7151    /// rerouted to the interceptor instead of the main trace buffer. This can be
7152    /// used, for example, to write trace data into ETW or for logging trace points
7153    /// to the console.
7154    ///
7155    /// Note that interceptors are only supported by data sources registered
7156    /// through the Perfetto SDK API. Data sources that don't use that API (e.g.,
7157    /// traced_probes) may not support interception.
7158    #[prost(message, optional, tag="115")]
7159    pub interceptor_config: ::core::option::Option<InterceptorConfig>,
7160    /// Data source name: android.network_packets.
7161    /// Introduced in Android 14 (U).
7162    #[prost(message, optional, tag="120")]
7163    pub network_packet_trace_config: ::core::option::Option<NetworkPacketTraceConfig>,
7164    /// Data source name: android.surfaceflinger.layers
7165    #[prost(message, optional, tag="121")]
7166    pub surfaceflinger_layers_config: ::core::option::Option<SurfaceFlingerLayersConfig>,
7167    /// Data source name: android.surfaceflinger.transactions
7168    #[prost(message, optional, tag="123")]
7169    pub surfaceflinger_transactions_config: ::core::option::Option<SurfaceFlingerTransactionsConfig>,
7170    /// Data source name: android.sdk_sysprop_guard
7171    /// Introduced in Android 14 (U) QPR1.
7172    #[prost(message, optional, tag="124")]
7173    pub android_sdk_sysprop_guard_config: ::core::option::Option<AndroidSdkSyspropGuardConfig>,
7174    /// Data source name: windows.etw
7175    #[prost(message, optional, tag="125")]
7176    pub etw_config: ::core::option::Option<EtwConfig>,
7177    /// Data source name: android.protolog
7178    #[prost(message, optional, tag="126")]
7179    pub protolog_config: ::core::option::Option<ProtoLogConfig>,
7180    /// Data source name: android.input.inputevent
7181    #[prost(message, optional, tag="128")]
7182    pub android_input_event_config: ::core::option::Option<AndroidInputEventConfig>,
7183    /// Data source name: android.pixel.modem
7184    #[prost(message, optional, tag="129")]
7185    pub pixel_modem_config: ::core::option::Option<PixelModemConfig>,
7186    /// Data source name: android.windowmanager
7187    #[prost(message, optional, tag="130")]
7188    pub windowmanager_config: ::core::option::Option<WindowManagerConfig>,
7189    /// Data source name: org.chromium.system_metrics
7190    #[prost(message, optional, tag="131")]
7191    pub chromium_system_metrics: ::core::option::Option<ChromiumSystemMetricsConfig>,
7192    /// Data source name: android.kernel_wakelocks
7193    #[prost(message, optional, tag="132")]
7194    pub kernel_wakelocks_config: ::core::option::Option<KernelWakelocksConfig>,
7195    /// Data source name: gpu.renderstages
7196    #[prost(message, optional, tag="133")]
7197    pub gpu_renderstages_config: ::core::option::Option<GpuRenderStagesConfig>,
7198    /// Data source name: org.chromium.histogram_samples
7199    #[prost(message, optional, tag="134")]
7200    pub chromium_histogram_samples: ::core::option::Option<ChromiumHistogramSamplesConfig>,
7201    /// Data source name: android.app_wakelocks
7202    #[prost(message, optional, tag="135")]
7203    pub app_wakelocks_config: ::core::option::Option<AppWakelocksConfig>,
7204    /// Data source name: android.cpu_per_uid
7205    #[prost(message, optional, tag="137")]
7206    pub cpu_per_uid_config: ::core::option::Option<CpuPerUidConfig>,
7207    /// Data source name: android.user_list
7208    #[prost(message, optional, tag="138")]
7209    pub user_list_config: ::core::option::Option<AndroidUserListConfig>,
7210    /// Data source name: android.inputmethod
7211    #[prost(message, optional, tag="139")]
7212    pub inputmethod_config: ::core::option::Option<InputMethodConfig>,
7213    /// Data source name: android.aflags
7214    #[prost(message, optional, tag="140")]
7215    pub android_aflags_config: ::core::option::Option<AndroidAflagsConfig>,
7216    /// Data source name: linux.systemd_journald
7217    #[prost(message, optional, tag="141")]
7218    pub journald_config: ::core::option::Option<SystemdJournaldConfig>,
7219    /// Data source name: qnx.kernel
7220    #[prost(message, optional, tag="150")]
7221    pub qnx_config: ::core::option::Option<QnxConfig>,
7222    /// This is a fallback mechanism to send a free-form text config to the
7223    /// producer. In theory this should never be needed. All the code that
7224    /// is part of the platform (i.e. traced service) is supposed to *not* truncate
7225    /// the trace config proto and propagate unknown fields. However, if anything
7226    /// in the pipeline (client or backend) ends up breaking this forward compat
7227    /// plan, this field will become the escape hatch to allow future data sources
7228    /// to get some meaningful configuration.
7229    #[prost(string, optional, tag="1000")]
7230    pub legacy_config: ::core::option::Option<::prost::alloc::string::String>,
7231    /// This field is only used for testing.
7232    #[prost(message, optional, tag="1001")]
7233    pub for_testing: ::core::option::Option<TestConfig>,
7234}
7235/// Nested message and enum types in `DataSourceConfig`.
7236pub mod data_source_config {
7237    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7238    #[repr(i32)]
7239    pub enum SessionInitiator {
7240        Unspecified = 0,
7241        /// This trace was initiated from a trusted system app has DUMP and
7242        /// USAGE_STATS permission. This system app is expected to not expose the
7243        /// trace to the user of the device.
7244        /// This is determined by checking the UID initiating the trace.
7245        TrustedSystem = 1,
7246    }
7247    impl SessionInitiator {
7248        /// String value of the enum field names used in the ProtoBuf definition.
7249        ///
7250        /// The values are not transformed in any way and thus are considered stable
7251        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7252        pub fn as_str_name(&self) -> &'static str {
7253            match self {
7254                SessionInitiator::Unspecified => "SESSION_INITIATOR_UNSPECIFIED",
7255                SessionInitiator::TrustedSystem => "SESSION_INITIATOR_TRUSTED_SYSTEM",
7256            }
7257        }
7258    }
7259    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7260    #[repr(i32)]
7261    pub enum BufferExhaustedPolicy {
7262        /// The data source will use its default buffer exhausted policy, specified
7263        /// by the code when the data source is registered.
7264        BufferExhaustedUnspecified = 0,
7265        /// The data source will drop packets when there's no space in the shared
7266        /// memory buffer.
7267        BufferExhaustedDrop = 1,
7268        /// The data source will wait when there's no space in the shared memory
7269        /// buffer. If there's still not space, after a few seconds, the whole
7270        /// producer process will be aborted.
7271        BufferExhaustedStallThenAbort = 2,
7272        /// The data source will wait when there's no space in the shared memory
7273        /// buffer.  If there's still not space, after a few seconds, the data source
7274        /// will drop packets.
7275        BufferExhaustedStallThenDrop = 3,
7276    }
7277    impl BufferExhaustedPolicy {
7278        /// String value of the enum field names used in the ProtoBuf definition.
7279        ///
7280        /// The values are not transformed in any way and thus are considered stable
7281        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7282        pub fn as_str_name(&self) -> &'static str {
7283            match self {
7284                BufferExhaustedPolicy::BufferExhaustedUnspecified => "BUFFER_EXHAUSTED_UNSPECIFIED",
7285                BufferExhaustedPolicy::BufferExhaustedDrop => "BUFFER_EXHAUSTED_DROP",
7286                BufferExhaustedPolicy::BufferExhaustedStallThenAbort => "BUFFER_EXHAUSTED_STALL_THEN_ABORT",
7287                BufferExhaustedPolicy::BufferExhaustedStallThenDrop => "BUFFER_EXHAUSTED_STALL_THEN_DROP",
7288            }
7289        }
7290    }
7291}
7292/// The overall config that is used when starting a new tracing session through
7293/// ProducerPort::StartTracing().
7294/// It contains the general config for the logging buffer(s) and the configs for
7295/// all the data source being enabled.
7296///
7297/// Next id: 47.
7298#[derive(Clone, PartialEq, ::prost::Message)]
7299pub struct TraceConfig {
7300    #[prost(message, repeated, tag="1")]
7301    pub buffers: ::prost::alloc::vec::Vec<trace_config::BufferConfig>,
7302    #[prost(message, repeated, tag="2")]
7303    pub data_sources: ::prost::alloc::vec::Vec<trace_config::DataSource>,
7304    #[prost(message, optional, tag="20")]
7305    pub builtin_data_sources: ::core::option::Option<trace_config::BuiltinDataSource>,
7306    /// If specified, the trace will be stopped |duration_ms| after starting.
7307    /// This does *not* count the time the system is suspended, so we will run
7308    /// for duration_ms of system activity, not wall time.
7309    ///
7310    /// However in case of traces with triggers, see
7311    /// TriggerConfig.trigger_timeout_ms instead.
7312    #[prost(uint32, optional, tag="3")]
7313    pub duration_ms: ::core::option::Option<u32>,
7314    /// If true, tries to use CLOCK_BOOTTIME for duration_ms rather than
7315    /// CLOCK_MONOTONIC (which doesn't count time in suspend). Supported only on
7316    /// Linux/Android, no-op on other platforms. This is used when dealing with
7317    /// long (e.g. 24h) traces, where suspend can inflate them to weeks of
7318    /// wall-time, making them more likely to hit device reboots (and hence loss).
7319    /// This option also changes consistently the semantic of
7320    /// TriggerConfig.stop_delay_ms.
7321    #[prost(bool, optional, tag="36")]
7322    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
7323    /// This is set when --dropbox is passed to the Perfetto command line client
7324    /// and enables guardrails that limit resource usage for traces requested
7325    /// by statsd.
7326    #[prost(bool, optional, tag="4")]
7327    pub enable_extra_guardrails: ::core::option::Option<bool>,
7328    /// Reject producers that are not running under the same UID as the tracing
7329    /// service.
7330    #[prost(enumeration="trace_config::LockdownModeOperation", optional, tag="5")]
7331    pub lockdown_mode: ::core::option::Option<i32>,
7332    #[prost(message, repeated, tag="6")]
7333    pub producers: ::prost::alloc::vec::Vec<trace_config::ProducerConfig>,
7334    /// Statsd-specific metadata.
7335    #[prost(message, optional, tag="7")]
7336    pub statsd_metadata: ::core::option::Option<trace_config::StatsdMetadata>,
7337    /// When true && |output_path| is empty, the EnableTracing() request must
7338    /// provide a file descriptor. The service will then periodically read packets
7339    /// out of the trace buffer and store it into the passed file.
7340    /// If |output_path| is not empty no fd should be passed, the service
7341    /// will create a new file and write into that (see comment below).
7342    #[prost(bool, optional, tag="8")]
7343    pub write_into_file: ::core::option::Option<bool>,
7344    /// This must point to a non-existing file. If the file exists the service
7345    /// will NOT overwrite and will fail instead as a security precaution.
7346    /// On Android, when this is used with the system traced, the path must be
7347    /// within /data/misc/perfetto-traces/ or the trace will fail.
7348    /// This option has been introduced in Android R. Before R write_into_file
7349    /// can be used only with the "pass a file descriptor over IPC" mode.
7350    #[prost(string, optional, tag="29")]
7351    pub output_path: ::core::option::Option<::prost::alloc::string::String>,
7352    /// Optional. If non-zero tunes the write period. A min value of 100ms is
7353    /// enforced (i.e. smaller values are ignored).
7354    #[prost(uint32, optional, tag="9")]
7355    pub file_write_period_ms: ::core::option::Option<u32>,
7356    /// Optional. When non zero the periodic write stops once at most X bytes
7357    /// have been written into the file. Tracing is disabled when this limit is
7358    /// reached, even if |duration_ms| has not been reached yet.
7359    #[prost(uint64, optional, tag="10")]
7360    pub max_file_size_bytes: ::core::option::Option<u64>,
7361    #[prost(message, optional, tag="11")]
7362    pub guardrail_overrides: ::core::option::Option<trace_config::GuardrailOverrides>,
7363    /// When true, data sources are not started until an explicit call to
7364    /// StartTracing() on the consumer port. This is to support early
7365    /// initialization and fast trace triggering. This can be used only when the
7366    /// Consumer explicitly triggers the StartTracing() method.
7367    /// This should not be used in a remote trace config via statsd, doing so will
7368    /// result in a hung trace session.
7369    #[prost(bool, optional, tag="12")]
7370    pub deferred_start: ::core::option::Option<bool>,
7371    /// When set, it periodically issues a Flush() to all data source, forcing them
7372    /// to commit their data into the tracing service. This can be used for
7373    /// quasi-real-time streaming mode and to guarantee some partial ordering of
7374    /// events in the trace in windows of X ms.
7375    ///
7376    /// Warning: Perfetto automatically handles periodic flushing so in most
7377    /// scenarios setting this field is not needed. High frequency flushing can
7378    /// significantly impact performance.
7379    #[prost(uint32, optional, tag="13")]
7380    pub flush_period_ms: ::core::option::Option<u32>,
7381    /// Wait for this long for producers to acknowledge flush requests.
7382    /// Default 5s.
7383    #[prost(uint32, optional, tag="14")]
7384    pub flush_timeout_ms: ::core::option::Option<u32>,
7385    /// Wait for this long for producers to acknowledge stop requests.
7386    /// Default 5s.
7387    #[prost(uint32, optional, tag="23")]
7388    pub data_source_stop_timeout_ms: ::core::option::Option<u32>,
7389    /// Android-only. If set, sends an intent to the Traceur system app when the
7390    /// trace ends to notify it about the trace readiness.
7391    #[prost(bool, optional, tag="16")]
7392    pub notify_traceur: ::core::option::Option<bool>,
7393    /// This field was introduced in Android S.
7394    /// Android-only. If set to a value > 0, marks the trace session as a candidate
7395    /// for being attached to a bugreport. This field effectively acts as a z-index
7396    /// for bugreports. When Android's dumpstate runs perfetto
7397    /// --save-for-bugreport, traced will pick the tracing session with the highest
7398    /// score (score <= 0 is ignored) and:
7399    /// On Android S, T:  will steal its contents, save the trace into
7400    ///      a known path and stop prematurely.
7401    /// On Android U+: will create a read-only snapshot and save that into a known
7402    ///      path, without stoppin the original tracing session.
7403    /// When this field is set the tracing session becomes eligible to be cloned
7404    /// by other UIDs.
7405    #[prost(int32, optional, tag="30")]
7406    pub bugreport_score: ::core::option::Option<i32>,
7407    /// When set, defines name of the file that will be saved under
7408    /// /data/misc/perfetto-traces/bugreport/ when using --save-all-for-bugreport.
7409    /// If omitted, traces will be named systrace.pftrace, systrace_1.pftrace, etc,
7410    /// starting from the highest `bugreport_score`.
7411    /// Introduced in v42 / Android V.
7412    #[prost(string, optional, tag="38")]
7413    pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
7414    #[prost(message, optional, tag="17")]
7415    pub trigger_config: ::core::option::Option<trace_config::TriggerConfig>,
7416    /// When this is non-empty the perfetto command line tool will ignore the rest
7417    /// of this TraceConfig and instead connect to the perfetto service as a
7418    /// producer and send these triggers, potentially stopping or starting traces
7419    /// that were previous configured to use a TriggerConfig.
7420    #[prost(string, repeated, tag="18")]
7421    pub activate_triggers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7422    #[prost(message, optional, tag="21")]
7423    pub incremental_state_config: ::core::option::Option<trace_config::IncrementalStateConfig>,
7424    /// No longer needed as we unconditionally allow tracing on user builds.
7425    #[deprecated]
7426    #[prost(bool, optional, tag="19")]
7427    pub allow_user_build_tracing: ::core::option::Option<bool>,
7428    /// If set the tracing service will ensure there is at most one tracing session
7429    /// with this key.
7430    #[prost(string, optional, tag="22")]
7431    pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
7432    #[prost(enumeration="trace_config::CompressionType", optional, tag="24")]
7433    pub compression_type: ::core::option::Option<i32>,
7434    #[prost(message, optional, tag="25")]
7435    pub incident_report_config: ::core::option::Option<trace_config::IncidentReportConfig>,
7436    /// Android-only. Not for general use. If specified, sets the logging to statsd
7437    /// of guardrails and checkpoints in the tracing service. perfetto_cmd sets
7438    /// this to enabled (if not explicitly set in the config) when specifying
7439    /// --upload.
7440    #[prost(enumeration="trace_config::StatsdLogging", optional, tag="31")]
7441    pub statsd_logging: ::core::option::Option<i32>,
7442    /// An identifier clients can use to tie this trace to other logging.
7443    /// DEPRECATED as per v32. See TracePacket.trace_uuid for the authoritative
7444    /// Trace UUID. If this field is set, the tracing service will respect the
7445    /// requested UUID (i.e. TracePacket.trace_uuid == this field) but only if
7446    /// gap-less snapshotting is not used.
7447    #[deprecated]
7448    #[prost(int64, optional, tag="27")]
7449    pub trace_uuid_msb: ::core::option::Option<i64>,
7450    #[deprecated]
7451    #[prost(int64, optional, tag="28")]
7452    pub trace_uuid_lsb: ::core::option::Option<i64>,
7453    #[prost(message, optional, tag="33")]
7454    pub trace_filter: ::core::option::Option<trace_config::TraceFilter>,
7455    #[prost(message, optional, tag="34")]
7456    pub android_report_config: ::core::option::Option<trace_config::AndroidReportConfig>,
7457    #[prost(message, optional, tag="35")]
7458    pub cmd_trace_start_delay: ::core::option::Option<trace_config::CmdTraceStartDelay>,
7459    #[prost(message, repeated, tag="39")]
7460    pub session_semaphores: ::prost::alloc::vec::Vec<trace_config::SessionSemaphore>,
7461    /// Priority boost to be applied to the traced process, when the session is
7462    /// running.
7463    #[prost(message, optional, tag="40")]
7464    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
7465    /// When set to a value > 0, this tracing session will be started in
7466    /// "exclusive mode". This has the following semantics:
7467    /// - It can only be set by shell or root users.
7468    /// - A new exclusive session will only be started if its priority is strictly
7469    ///    higher than any other active tracing session.
7470    /// - If a new exclusive session is started, all other existing tracing
7471    ///    sessions (exclusive or not) are aborted.
7472    /// - While an exclusive session is active, any new non-exclusive session (or
7473    ///    any exclusive session with a lower or equal priority) will be rejected.
7474    ///
7475    /// Introduced in: perfetto v52.
7476    /// Supported on: Android 25Q3+.
7477    #[prost(uint32, optional, tag="41")]
7478    pub exclusive_prio: ::core::option::Option<u32>,
7479    /// Configures how the service should handle flushing data from producers
7480    /// before periodically writing the trace into the output file.
7481    /// Only applicable when |write_into_file| is true.
7482    ///
7483    /// By default, if |write_into_file| is set, the service periodically issues
7484    /// a Flush() to all data sources before writing buffers into the file.
7485    /// This ensures the file always contains the latest available data.
7486    ///
7487    /// Introduced in: perfetto v54.
7488    /// Supported on: Android 26Q1+.
7489    #[prost(enumeration="trace_config::WriteFlushMode", optional, tag="44")]
7490    pub write_flush_mode: ::core::option::Option<i32>,
7491    /// Whether to sync the output file to storage after each periodic write pass.
7492    /// Only applicable when |write_into_file| is true.
7493    ///
7494    /// By default, no fflush is invoked. FFLUSH_ENABLED must be set to explicitly
7495    /// sync to storage on every write.
7496    ///
7497    /// Introduced in: perfetto v54.
7498    /// Supported on: Android 26Q1+.
7499    #[prost(enumeration="trace_config::FFlushMode", optional, tag="45")]
7500    pub fflush_post_write: ::core::option::Option<i32>,
7501    /// When true, data sources in remote producers (machines connected via
7502    /// traced_relay) will be matched by default. When false (the default), data
7503    /// sources only match the host machine. In either case, an explicit
7504    /// |DataSource.machine_name_filter| takes priority.
7505    ///
7506    /// NB: perfetto versions before v54 do not have this option and match across
7507    /// machines by default. To be compatible across this version boundary, either
7508    /// set this field to true, or set an explicit machine_name_filter on all data
7509    /// sources.
7510    ///
7511    /// Introduced in: perfetto v54.
7512    #[prost(bool, optional, tag="43")]
7513    pub trace_all_machines: ::core::option::Option<bool>,
7514    #[prost(message, repeated, tag="46")]
7515    pub notes: ::prost::alloc::vec::Vec<trace_config::Note>,
7516}
7517/// Nested message and enum types in `TraceConfig`.
7518pub mod trace_config {
7519    #[derive(Clone, PartialEq, ::prost::Message)]
7520    pub struct BufferConfig {
7521        #[prost(uint32, optional, tag="1")]
7522        pub size_kb: ::core::option::Option<u32>,
7523        #[prost(enumeration="buffer_config::FillPolicy", optional, tag="4")]
7524        pub fill_policy: ::core::option::Option<i32>,
7525        /// When true the buffer is moved (rather than copied) onto the cloned
7526        /// session, and an empty buffer of the same size is allocated in the source
7527        /// tracing session. This feature will likely get deprecated in the future.
7528        /// It been introduced mainly to support the surfaceflinger snapshot dump
7529        /// for bugreports, where SF can dumps O(400MB) into the bugreport trace. In
7530        /// that case we don't want to retain another in-memory copy of the buffer.
7531        #[prost(bool, optional, tag="5")]
7532        pub transfer_on_clone: ::core::option::Option<bool>,
7533        /// Used in conjunction with transfer_on_clone. When true the buffer is
7534        /// cleared before issuing the Flush(reason=kTraceClone). This is to ensure
7535        /// that if the data source took too long to write the data in a previous
7536        /// clone-related flush, we don't end up with a mixture of leftovers from
7537        /// the previous write and new data.
7538        #[prost(bool, optional, tag="6")]
7539        pub clear_before_clone: ::core::option::Option<bool>,
7540        /// Optional name for this buffer. If set, data sources can reference this
7541        /// buffer by name using |target_buffer_name| in DataSourceConfig instead of
7542        /// using the buffer index. Buffer names must be unique within a tracing
7543        /// session. This provides a more human-readable and less error-prone way to
7544        /// configure which buffer a data source writes to.
7545        #[prost(string, optional, tag="7")]
7546        pub name: ::core::option::Option<::prost::alloc::string::String>,
7547        #[prost(enumeration="buffer_config::ExperimentalMode", optional, tag="8")]
7548        pub experimental_mode: ::core::option::Option<i32>,
7549    }
7550    /// Nested message and enum types in `BufferConfig`.
7551    pub mod buffer_config {
7552        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7553        #[repr(i32)]
7554        pub enum FillPolicy {
7555            Unspecified = 0,
7556            /// Default behavior. The buffer operates as a conventional ring buffer.
7557            /// If the writer is faster than the reader (or if the reader reads only
7558            /// after tracing is stopped) newly written packets will overwrite old
7559            /// packets.
7560            RingBuffer = 1,
7561            /// Behaves like RING_BUFFER as long as there is space in the buffer or
7562            /// the reader catches up with the writer. As soon as the writer hits
7563            /// an unread chunk, it stops accepting new data in the buffer.
7564            Discard = 2,
7565        }
7566        impl FillPolicy {
7567            /// String value of the enum field names used in the ProtoBuf definition.
7568            ///
7569            /// The values are not transformed in any way and thus are considered stable
7570            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7571            pub fn as_str_name(&self) -> &'static str {
7572                match self {
7573                    FillPolicy::Unspecified => "UNSPECIFIED",
7574                    FillPolicy::RingBuffer => "RING_BUFFER",
7575                    FillPolicy::Discard => "DISCARD",
7576                }
7577            }
7578        }
7579        /// When true, uses the experimental TraceBufferV2 implementation for this
7580        /// buffer. This is for testing purposes only and may be removed in future
7581        /// versions.
7582        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7583        #[repr(i32)]
7584        pub enum ExperimentalMode {
7585            /// Use the default V1 implementation.
7586            ModeUnspecified = 0,
7587            /// Use TraceBufferV2.
7588            TraceBufferV2 = 1,
7589            /// Use both V1 and V2 in shadow mode. Data is written to both buffers,
7590            /// but only V1 data is returned. Comparison stats are reported to
7591            /// validate V2 returns equivalent data.
7592            TraceBufferV2ShadowMode = 2,
7593        }
7594        impl ExperimentalMode {
7595            /// String value of the enum field names used in the ProtoBuf definition.
7596            ///
7597            /// The values are not transformed in any way and thus are considered stable
7598            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7599            pub fn as_str_name(&self) -> &'static str {
7600                match self {
7601                    ExperimentalMode::ModeUnspecified => "MODE_UNSPECIFIED",
7602                    ExperimentalMode::TraceBufferV2 => "TRACE_BUFFER_V2",
7603                    ExperimentalMode::TraceBufferV2ShadowMode => "TRACE_BUFFER_V2_SHADOW_MODE",
7604                }
7605            }
7606        }
7607    }
7608    #[derive(Clone, PartialEq, ::prost::Message)]
7609    pub struct DataSource {
7610        /// Filters and data-source specific config. It contains also the unique name
7611        /// of the data source, the one passed in the  DataSourceDescriptor when they
7612        /// register on the service.
7613        #[prost(message, optional, tag="1")]
7614        pub config: ::core::option::Option<super::DataSourceConfig>,
7615        /// Optional. If multiple producers (~processes) expose the same data source
7616        /// and either |producer_name_filter| or |producer_name_regex_filter| is set,
7617        /// the data source is enabled only for producers whose names match any of
7618        /// the filters.
7619        /// |producer_name_filter| has to be an exact match, while
7620        /// |producer_name_regex_filter| is a regular expression.
7621        /// This allows to enable a data source only for specific processes.
7622        /// The "repeated" fields have OR semantics: specifying a filter ["foo",
7623        /// "bar"] will enable data sources on both "foo" and "bar" (if they exist).
7624        #[prost(string, repeated, tag="2")]
7625        pub producer_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7626        #[prost(string, repeated, tag="3")]
7627        pub producer_name_regex_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7628        /// Filter by machine names. The name of a machine is determined by the
7629        /// PERFETTO_MACHINE_NAME env variable. In Android systems, if the env
7630        /// variable is not set then the
7631        /// persist.traced_relay.machine_name system property is used. If the
7632        /// sysprop isn't set or not in an Android system, then the machine name by
7633        /// default is set to the utsname sysname (e.g. Linux), which can be obtained
7634        /// via the 'uname -s' command. As a convenience, one can use "host" to refer
7635        /// to the host machine, which is the machine running traced.
7636        #[prost(string, repeated, tag="4")]
7637        pub machine_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7638    }
7639    /// Config for disabling builtin data sources in the tracing service.
7640    #[derive(Clone, PartialEq, ::prost::Message)]
7641    pub struct BuiltinDataSource {
7642        /// Disable emitting clock timestamps into the trace.
7643        #[prost(bool, optional, tag="1")]
7644        pub disable_clock_snapshotting: ::core::option::Option<bool>,
7645        /// Disable echoing the original trace config in the trace.
7646        #[prost(bool, optional, tag="2")]
7647        pub disable_trace_config: ::core::option::Option<bool>,
7648        /// Disable emitting system info (build fingerprint, cpuinfo, etc).
7649        #[prost(bool, optional, tag="3")]
7650        pub disable_system_info: ::core::option::Option<bool>,
7651        /// Disable emitting events for data-source state changes (e.g. the marker
7652        /// for all data sources having ACKed the start of the trace).
7653        #[prost(bool, optional, tag="4")]
7654        pub disable_service_events: ::core::option::Option<bool>,
7655        /// The authoritative clock domain for the trace. Defaults to BOOTTIME. See
7656        /// also ClockSnapshot's primary_trace_clock. The configured value is written
7657        /// into the trace as part of the ClockSnapshots emitted by the service.
7658        /// Trace processor will attempt to translate packet/event timestamps from
7659        /// various data sources (and their chosen clock domains) to this domain
7660        /// during import. Added in Android R.
7661        #[prost(enumeration="super::BuiltinClock", optional, tag="5")]
7662        pub primary_trace_clock: ::core::option::Option<i32>,
7663        /// Time interval in between snapshotting of sync markers, clock snapshots,
7664        /// stats, and other periodic service-emitted events. Note that the service
7665        /// only keeps track of the first and the most recent snapshot until
7666        /// ReadBuffers() is called.
7667        #[prost(uint32, optional, tag="6")]
7668        pub snapshot_interval_ms: ::core::option::Option<u32>,
7669        /// Hints to the service that a suspend-aware (i.e. counting time in suspend)
7670        /// clock should be used for periodic snapshots of service-emitted events.
7671        /// This means, if a snapshot *should* have happened during suspend, it will
7672        /// happen immediately after the device resumes.
7673        ///
7674        /// Choosing a clock like this is done on best-effort basis; not all
7675        /// platforms (e.g. Windows) expose a clock which can be used for periodic
7676        /// tasks counting suspend. If such a clock is not available, the service
7677        /// falls back to the best-available alternative.
7678        ///
7679        /// Introduced in Android S.
7680        /// TODO(lalitm): deprecate this in T and make this the default if nothing
7681        /// crashes in S.
7682        #[prost(bool, optional, tag="7")]
7683        pub prefer_suspend_clock_for_snapshot: ::core::option::Option<bool>,
7684        /// Disables the reporting of per-trace-writer histograms in TraceStats.
7685        #[prost(bool, optional, tag="8")]
7686        pub disable_chunk_usage_histograms: ::core::option::Option<bool>,
7687        /// Disable emitting extension descriptors into the trace.
7688        #[prost(bool, optional, tag="9")]
7689        pub disable_extension_descriptors: ::core::option::Option<bool>,
7690    }
7691    #[derive(Clone, PartialEq, ::prost::Message)]
7692    pub struct ProducerConfig {
7693        /// Identifies the producer for which this config is for.
7694        #[prost(string, optional, tag="1")]
7695        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
7696        /// Specifies the preferred size of the shared memory buffer. If the size is
7697        /// larger than the max size, the max will be used. If it is smaller than
7698        /// the page size or doesn't fit pages evenly into it, it will fall back to
7699        /// the size specified by the producer or finally the default shared memory
7700        /// size.
7701        #[prost(uint32, optional, tag="2")]
7702        pub shm_size_kb: ::core::option::Option<u32>,
7703        /// Specifies the preferred size of each page in the shared memory buffer.
7704        /// Must be an integer multiple of 4K.
7705        #[prost(uint32, optional, tag="3")]
7706        pub page_size_kb: ::core::option::Option<u32>,
7707    }
7708    /// Contains statsd-specific metadata about an alert associated with the trace.
7709    #[derive(Clone, PartialEq, ::prost::Message)]
7710    pub struct StatsdMetadata {
7711        /// The identifier of the alert which triggered this trace.
7712        #[prost(int64, optional, tag="1")]
7713        pub triggering_alert_id: ::core::option::Option<i64>,
7714        /// The uid which registered the triggering configuration with statsd.
7715        #[prost(int32, optional, tag="2")]
7716        pub triggering_config_uid: ::core::option::Option<i32>,
7717        /// The identifier of the config which triggered the alert.
7718        #[prost(int64, optional, tag="3")]
7719        pub triggering_config_id: ::core::option::Option<i64>,
7720        /// The identifier of the subscription which triggered this trace.
7721        #[prost(int64, optional, tag="4")]
7722        pub triggering_subscription_id: ::core::option::Option<i64>,
7723    }
7724    /// Contains flags which override the default values of the guardrails inside
7725    /// Perfetto.
7726    #[derive(Clone, PartialEq, ::prost::Message)]
7727    pub struct GuardrailOverrides {
7728        /// Override the default limit (in bytes) for uploading data to server within
7729        /// a 24 hour period.
7730        /// On R-, this override only affected userdebug builds. Since S, it also
7731        /// affects user builds.
7732        /// In 24Q3+ (V+), this override is a noop because upload guardrail logic
7733        /// was removed from Perfetto.
7734        #[deprecated]
7735        #[prost(uint64, optional, tag="1")]
7736        pub max_upload_per_day_bytes: ::core::option::Option<u64>,
7737        /// Overrides the guardrail for maximum trace buffer size.
7738        /// Available on U+
7739        #[prost(uint32, optional, tag="2")]
7740        pub max_tracing_buffer_size_kb: ::core::option::Option<u32>,
7741    }
7742    /// Triggers allow producers to start or stop the tracing session when an event
7743    /// occurs.
7744    ///
7745    /// For example if we are tracing probabilistically, most traces will be
7746    /// uninteresting. Triggers allow us to keep only the interesting ones such as
7747    /// those traces during which the device temperature reached a certain
7748    /// threshold. In this case the producer can activate a trigger to keep
7749    /// (STOP_TRACING) the trace, otherwise it can also begin a trace
7750    /// (START_TRACING) because it knows something is about to happen.
7751    #[derive(Clone, PartialEq, ::prost::Message)]
7752    pub struct TriggerConfig {
7753        #[prost(enumeration="trigger_config::TriggerMode", optional, tag="1")]
7754        pub trigger_mode: ::core::option::Option<i32>,
7755        /// This flag is really a workaround for b/274931668. This is needed only
7756        /// when deploying configs to different versions of the tracing service.
7757        /// When this is set to true this has the same effect of setting trigger_mode
7758        /// to CLONE_SNAPSHOT on newer versions of the service. This boolean has been
7759        /// introduced to allow to have configs that use CLONE_SNAPSHOT on newer
7760        /// versions of Android and fall back to STOP_TRACING on older versions where
7761        /// CLONE_SNAPSHOT did not exist.
7762        /// When using this flag, trigger_mode must be set to STOP_TRACING.
7763        #[prost(bool, optional, tag="5")]
7764        pub use_clone_snapshot_if_available: ::core::option::Option<bool>,
7765        /// A list of triggers which are related to this configuration. If ANY
7766        /// trigger is seen then an action will be performed based on |trigger_mode|.
7767        #[prost(message, repeated, tag="2")]
7768        pub triggers: ::prost::alloc::vec::Vec<trigger_config::Trigger>,
7769        /// Required and must be positive if a TriggerConfig is specified. This is
7770        /// how long this TraceConfig should wait for a trigger to arrive. After this
7771        /// period of time if no trigger is seen the TracingSession will be cleaned
7772        /// up.
7773        #[prost(uint32, optional, tag="3")]
7774        pub trigger_timeout_ms: ::core::option::Option<u32>,
7775    }
7776    /// Nested message and enum types in `TriggerConfig`.
7777    pub mod trigger_config {
7778        #[derive(Clone, PartialEq, ::prost::Message)]
7779        pub struct Trigger {
7780            /// The producer must specify this name to activate the trigger.
7781            #[prost(string, optional, tag="1")]
7782            pub name: ::core::option::Option<::prost::alloc::string::String>,
7783            /// An std::regex that will match the producer that can activate this
7784            /// trigger. This is optional. If unset any producers can activate this
7785            /// trigger.
7786            #[prost(string, optional, tag="2")]
7787            pub producer_name_regex: ::core::option::Option<::prost::alloc::string::String>,
7788            /// After a trigger is received either in START_TRACING or STOP_TRACING
7789            /// mode then the trace will end |stop_delay_ms| after triggering.
7790            /// In CLONE_SNAPSHOT mode, this is the delay between the trigger and the
7791            /// snapshot.
7792            /// If |prefer_suspend_clock_for_duration| is set, the duration will be
7793            /// based on wall-clock, counting also time in suspend.
7794            #[prost(uint32, optional, tag="3")]
7795            pub stop_delay_ms: ::core::option::Option<u32>,
7796            /// Limits the number of traces this trigger can start/stop in a rolling
7797            /// 24 hour window. If this field is unset or zero, no limit is applied and
7798            /// activiation of this trigger *always* starts/stops the trace.
7799            #[prost(uint32, optional, tag="4")]
7800            pub max_per_24_h: ::core::option::Option<u32>,
7801            /// A value between 0 and 1 which encodes the probability of skipping a
7802            /// trigger with this name. This is useful for reducing the probability
7803            /// of high-frequency triggers from dominating trace finaization. If this
7804            /// field is unset or zero, the trigger will *never* be skipped. If this
7805            /// field is greater than or equal to 1, this trigger will *always* be
7806            /// skipped i.e. it will be as if this trigger was never included in the
7807            /// first place.
7808            /// This probability check is applied *before* any other limits. For
7809            /// example, if |max_per_24_h| is also set, first we will check if the
7810            /// probability bar is met and only then will we check the |max_per_24_h|
7811            /// limit.
7812            #[prost(double, optional, tag="5")]
7813            pub skip_probability: ::core::option::Option<f64>,
7814        }
7815        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7816        #[repr(i32)]
7817        pub enum TriggerMode {
7818            Unspecified = 0,
7819            /// When this mode is chosen, data sources are not started until one of the
7820            /// |triggers| are received. This supports early initialization and fast
7821            /// starting of the tracing system. On triggering, the session will then
7822            /// record for |stop_delay_ms|. However if no trigger is seen
7823            /// after |trigger_timeout_ms| the session will be stopped and no data will
7824            /// be returned.
7825            StartTracing = 1,
7826            /// When this mode is chosen, the session will be started via the normal
7827            /// EnableTracing() & StartTracing(). If no trigger is ever seen
7828            /// the session will be stopped after |trigger_timeout_ms| and no data will
7829            /// be returned. However if triggered the trace will stop after
7830            /// |stop_delay_ms| and any data in the buffer will be returned to the
7831            /// consumer.
7832            StopTracing = 2,
7833            /// When this mode is chosen, this causes a snapshot of the current tracing
7834            /// session to be created after |stop_delay_ms| while the current tracing
7835            /// session continues undisturbed (% an extra flush). This mode can be
7836            /// used only when the tracing session is handled by the "perfetto" cmdline
7837            /// client (which is true in 90% of cases). Part of the business logic
7838            /// necessary for this behavior, and ensuing file handling, lives in
7839            /// perfetto_cmd.cc . On other consumers, this causes only a notification
7840            /// of the trigger through a CloneTriggerHit ObservableEvent. The custom
7841            /// consumer is supposed to call CloneSession() itself after the event.
7842            /// Use use_clone_snapshot_if_available=true when targeting older versions
7843            /// of perfetto.
7844            CloneSnapshot = 4,
7845        }
7846        impl TriggerMode {
7847            /// String value of the enum field names used in the ProtoBuf definition.
7848            ///
7849            /// The values are not transformed in any way and thus are considered stable
7850            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7851            pub fn as_str_name(&self) -> &'static str {
7852                match self {
7853                    TriggerMode::Unspecified => "UNSPECIFIED",
7854                    TriggerMode::StartTracing => "START_TRACING",
7855                    TriggerMode::StopTracing => "STOP_TRACING",
7856                    TriggerMode::CloneSnapshot => "CLONE_SNAPSHOT",
7857                }
7858            }
7859        }
7860    }
7861    /// Configuration for trace contents that reference earlier trace data. For
7862    /// example, a data source might intern strings, and emit packets containing
7863    /// {interned id : string} pairs. Future packets from that data source can then
7864    /// use the interned ids instead of duplicating the raw string contents. The
7865    /// trace parser will then need to use that interning table to fully interpret
7866    /// the rest of the trace.
7867    #[derive(Clone, PartialEq, ::prost::Message)]
7868    pub struct IncrementalStateConfig {
7869        /// If nonzero, notify eligible data sources to clear their incremental state
7870        /// periodically, with the given period. The notification is sent only to
7871        /// data sources that have |handles_incremental_state_clear| set in their
7872        /// DataSourceDescriptor. The notification requests that the data source
7873        /// stops referring to past trace contents. This is particularly useful when
7874        /// tracing in ring buffer mode, where it is not exceptional to overwrite old
7875        /// trace data.
7876        ///
7877        /// Warning: this time-based global clearing is likely to be removed in the
7878        /// future, to be replaced with a smarter way of sending the notifications
7879        /// only when necessary.
7880        #[prost(uint32, optional, tag="1")]
7881        pub clear_period_ms: ::core::option::Option<u32>,
7882    }
7883    /// Android-only. Not for general use. If set, saves the trace into an
7884    /// incident. This field is read by perfetto_cmd, rather than the tracing
7885    /// service. This field must be set when passing the --upload flag to
7886    /// perfetto_cmd.
7887    ///
7888    /// In this message, either:
7889    ///   * all of |destination_package|, |destination_class| and |privacy_level|
7890    ///     must be set.
7891    ///   * |skip_incidentd| must be explicitly set to true.
7892    #[derive(Clone, PartialEq, ::prost::Message)]
7893    pub struct IncidentReportConfig {
7894        #[prost(string, optional, tag="1")]
7895        pub destination_package: ::core::option::Option<::prost::alloc::string::String>,
7896        #[prost(string, optional, tag="2")]
7897        pub destination_class: ::core::option::Option<::prost::alloc::string::String>,
7898        /// Level of filtering in the requested incident. See |Destination| in
7899        /// frameworks/base/core/proto/android/privacy.proto.
7900        #[prost(int32, optional, tag="3")]
7901        pub privacy_level: ::core::option::Option<i32>,
7902        /// If true, then skips saving the trace to incidentd.
7903        ///
7904        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
7905        /// or when we explicitly don't want traces to go to incidentd even when they
7906        /// usually would (e.g. configs deployed using statsd but only used for
7907        /// inclusion in bugreports using |bugreport_score|).
7908        ///
7909        /// The motivation for having this flag, instead of just not setting
7910        /// |incident_report_config|, is prevent accidents where
7911        /// |incident_report_config| is omitted by mistake.
7912        #[prost(bool, optional, tag="5")]
7913        pub skip_incidentd: ::core::option::Option<bool>,
7914        /// If true, do not write the trace into dropbox (i.e. incident only).
7915        /// Otherwise, write to both dropbox and incident.
7916        /// TODO(lalitm): remove this field as we no longer use Dropbox.
7917        #[deprecated]
7918        #[prost(bool, optional, tag="4")]
7919        pub skip_dropbox: ::core::option::Option<bool>,
7920    }
7921    /// When set applies a post-filter to the trace contents using the filter
7922    /// provided. The filter is applied at ReadBuffers() time and works both in the
7923    /// case of IPC readback and write_into_file. This filter can be generated
7924    /// using `tools/proto_filter -s schema.proto -F filter_out.bytes` or
7925    /// `-T filter_out.escaped_string` (for .pbtx). See go/trace-filtering for
7926    /// design.
7927    ///
7928    /// Introduced in Android S, but it was broken (b/195065199). Reintroduced in
7929    /// Android T with a different field number. Updated in Android U with a new
7930    /// bytecode version which supports string filtering.
7931    ///
7932    /// =========================
7933    /// Filter bytecode.
7934    /// =========================
7935    #[derive(Clone, PartialEq, ::prost::Message)]
7936    pub struct TraceFilter {
7937        /// The bytecode as implemented in Android T.
7938        #[prost(bytes="vec", optional, tag="1")]
7939        pub bytecode: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7940        /// The bytecode as implemented in Android U. Adds support for string
7941        /// filtering.
7942        #[prost(bytes="vec", optional, tag="2")]
7943        pub bytecode_v2: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7944        #[prost(message, optional, tag="3")]
7945        pub string_filter_chain: ::core::option::Option<trace_filter::StringFilterChain>,
7946        /// Bytecode overlay for Perfetto v54+. This overlay is applied on top of
7947        /// bytecode_v2 to upgrade specific simple fields to new values. Old Perfetto
7948        /// versions ignore this field; new versions apply it.
7949        ///
7950        /// The motivation for this is that adding new opcodes in a backwards
7951        /// compatible way while also minimizing config size is hard. Instead, the
7952        /// overlay mechanism allows us to "patch" specific fields in the original
7953        /// bytecode_v2 with new semantics.
7954        ///
7955        /// See RFC 0011-subset-string-filter-rules.md for more info.
7956        ///
7957        /// Note:
7958        /// Unlike bytecode_v2 (which uses implicit message indices via EndOfMessage
7959        /// markers), this overlay uses a triplet format with explicit indices:
7960        ///    [msg_index, field_id << 3 | opcode, argument] ... \[checksum\]
7961        /// Each entry is exactly 3 varints. The argument is 0 when not needed.
7962        /// Entries must be sorted by (msg_index, field_id).
7963        ///
7964        /// The parser processes bytecode_v2 and this overlay simultaneously:
7965        ///   - any field not mentioned in the overlay is parsed as usual
7966        ///   - any field in the overlay but *not* in the bytecode_v2 is added
7967        ///     with its overlay value
7968        ///   - any field in both the overlay and bytecode_v2 takes the value in the
7969        ///     overlay, the bytecode_v2 value is ignored.
7970        ///
7971        /// Note: despite the name, this was broken in v54 (the overlay was not
7972        /// passed through to the bytecode parser). Only works in v55+.
7973        #[prost(bytes="vec", optional, tag="4")]
7974        pub bytecode_overlay_v54: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7975        /// String filter chain for Perfetto v54+. Rules in this chain either
7976        /// overwrite rules in string_filter_chain (if the name matches) or are
7977        /// appended (if the name doesn't match). This allows modifying existing
7978        /// rules (e.g., changing policy) without duplicating the entire chain.
7979        /// Rules without a name are always appended.
7980        /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7981        /// Introduced in: Perfetto v54.
7982        #[prost(message, optional, tag="5")]
7983        pub string_filter_chain_v54: ::core::option::Option<trace_filter::StringFilterChain>,
7984    }
7985    /// Nested message and enum types in `TraceFilter`.
7986    pub mod trace_filter {
7987        /// A rule specifies how strings should be filtered.
7988        #[derive(Clone, PartialEq, ::prost::Message)]
7989        pub struct StringFilterRule {
7990            /// The policy (i.e. algorithm) dictating how strings matching this rule
7991            /// should be handled.
7992            #[prost(enumeration="StringFilterPolicy", optional, tag="1")]
7993            pub policy: ::core::option::Option<i32>,
7994            /// The regex pattern used to match against each string.
7995            #[prost(string, optional, tag="2")]
7996            pub regex_pattern: ::core::option::Option<::prost::alloc::string::String>,
7997            /// The string which should appear after the tgid in atrace tracepoint
7998            /// strings.
7999            #[prost(string, optional, tag="3")]
8000            pub atrace_payload_starts_with: ::core::option::Option<::prost::alloc::string::String>,
8001            /// Optional name for the rule. When merging chains (e.g. via
8002            /// string_filter_chain_v54), rules with matching names in the newer chain
8003            /// will overwrite rules in the base chain. Rules without a name (empty or
8004            /// unset) are always treated as distinct and will be appended.
8005            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
8006            /// Introduced in: Perfetto v54.
8007            #[prost(string, optional, tag="4")]
8008            pub name: ::core::option::Option<::prost::alloc::string::String>,
8009            /// The semantic types this rule applies to.
8010            ///
8011            /// SEMANTIC_TYPE_UNSPECIFIED (0) is treated as its own distinct category:
8012            /// - If empty, the rule applies only to fields with UNSPECIFIED type.
8013            /// - If non-empty, the rule applies only to fields whose semantic type
8014            ///    is explicitly listed. To match UNSPECIFIED fields, you must include
8015            ///    SEMANTIC_TYPE_UNSPECIFIED in the list.
8016            ///
8017            /// Examples:
8018            ///    semantic_type: []           -> matches only UNSPECIFIED fields
8019            ///    semantic_type: \[ATRACE\]     -> matches only ATRACE fields
8020            ///    semantic_type: [UNSPECIFIED, ATRACE] -> matches both
8021            ///
8022            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
8023            /// Introduced in: Perfetto v54.
8024            #[prost(enumeration="super::super::SemanticType", repeated, packed="false", tag="5")]
8025            pub semantic_type: ::prost::alloc::vec::Vec<i32>,
8026        }
8027        /// A chain is a list of rules which string will be sequentially checked
8028        /// against.
8029        #[derive(Clone, PartialEq, ::prost::Message)]
8030        pub struct StringFilterChain {
8031            #[prost(message, repeated, tag="1")]
8032            pub rules: ::prost::alloc::vec::Vec<StringFilterRule>,
8033        }
8034        // =========================
8035        // String filtering
8036        // =========================
8037
8038        // The principles and terminology of string filtering is heavily inspired by
8039        // iptables. A "rule" decide how strings should be filtered. Each rule
8040        // contains a "policy" which indicates the algorithm to use for filtering.
8041        // A "chain" is a list of rules which will be sequentially checked against
8042        // each string.
8043        //
8044        // The first rule which applies to the string terminates filtering for that
8045        // string. If no rules apply, the string is left unchanged.
8046
8047        /// A policy specifies which algorithm should be used for filtering the
8048        /// string.
8049        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8050        #[repr(i32)]
8051        pub enum StringFilterPolicy {
8052            SfpUnspecified = 0,
8053            /// Tries to match the string field against |regex_pattern|. If it
8054            /// matches, all matching groups are "redacted" (i.e. replaced with a
8055            /// constant string) and filtering is terminated (i.e. no further rules are
8056            /// checked). If it doesn't match, the string is left unchanged and the
8057            /// next rule in chain is considered.
8058            SfpMatchRedactGroups = 1,
8059            /// Like |SFP_MATCH_REDACT_GROUPS| but tries to do some pre-work before
8060            /// checking the regex. Specifically, it tries to parse the string field as
8061            /// an atrace tracepoint and checks if the post-tgid field starts with
8062            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
8063            /// this check succeeds.
8064            SfpAtraceMatchRedactGroups = 2,
8065            /// Tries to match the string field against |regex_pattern|. If it
8066            /// matches, filtering is terminated (i.e. no further rules are checked).
8067            /// If it doesn't match, the string is left unchanged and the next rule in
8068            /// chain is considered.
8069            SfpMatchBreak = 3,
8070            /// Like |SFP_MATCH_BREAK| but tries to do some pre-work before checking
8071            /// the regex. Specifically, it tries to parse the string field as an
8072            /// atrace tracepoint and checks if the post-tgid field starts with
8073            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
8074            /// this check succeeds.
8075            SfpAtraceMatchBreak = 4,
8076            /// Tries to repeatedly search (i.e. find substrings of) the string field
8077            /// with |regex_pattern|. For each match, redacts any matching groups (i.e.
8078            /// replaced with a constant string). Once there are no further matches,
8079            /// filtering is terminated (i.e. no further rules are checked).
8080            ///
8081            /// Note that this is policy is a "search" policy not a "match" policy
8082            /// unlike the above policies:
8083            ///   * Match policies require matching the full string i.e. there is an
8084            ///     implicit leading `^` and trailing `$`.
8085            ///   * Search policies perform repeated partial matching of the string
8086            ///     e.g.
8087            ///       - String: `foo=aaa,bar=123,foo=bbb,baz=456`
8088            ///       - Pattern: `foo=(\d+)`
8089            ///       - Output: `foo=P6O,bar=123,foo=P6O,baz=456`
8090            ///     where P6O is the redaction string
8091            ///
8092            /// All of this is only performed after some pre-work where we try to parse
8093            /// the string field as an atrace tracepoint and check if the post-tgid
8094            /// field starts with |atrace_post_tgid_starts_with|.
8095            ///
8096            /// If there are no partial matches, the string is left unchanged and the
8097            /// next rule in chain is considered.
8098            SfpAtraceRepeatedSearchRedactGroups = 5,
8099        }
8100        impl StringFilterPolicy {
8101            /// String value of the enum field names used in the ProtoBuf definition.
8102            ///
8103            /// The values are not transformed in any way and thus are considered stable
8104            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8105            pub fn as_str_name(&self) -> &'static str {
8106                match self {
8107                    StringFilterPolicy::SfpUnspecified => "SFP_UNSPECIFIED",
8108                    StringFilterPolicy::SfpMatchRedactGroups => "SFP_MATCH_REDACT_GROUPS",
8109                    StringFilterPolicy::SfpAtraceMatchRedactGroups => "SFP_ATRACE_MATCH_REDACT_GROUPS",
8110                    StringFilterPolicy::SfpMatchBreak => "SFP_MATCH_BREAK",
8111                    StringFilterPolicy::SfpAtraceMatchBreak => "SFP_ATRACE_MATCH_BREAK",
8112                    StringFilterPolicy::SfpAtraceRepeatedSearchRedactGroups => "SFP_ATRACE_REPEATED_SEARCH_REDACT_GROUPS",
8113                }
8114            }
8115        }
8116    }
8117    /// Android-only. Not for general use. If set, reports the trace to the
8118    /// Android framework. This field is read by perfetto_cmd, rather than the
8119    /// tracing service. This field must be set when passing the --upload flag to
8120    /// perfetto_cmd.
8121    ///
8122    /// In this message, either:
8123    ///   * |reporter_service_package| and |reporter_service_class| must be set.
8124    ///   * |skip_reporting| must be explicitly set to true.
8125    #[derive(Clone, PartialEq, ::prost::Message)]
8126    pub struct AndroidReportConfig {
8127        #[prost(string, optional, tag="1")]
8128        pub reporter_service_package: ::core::option::Option<::prost::alloc::string::String>,
8129        #[prost(string, optional, tag="2")]
8130        pub reporter_service_class: ::core::option::Option<::prost::alloc::string::String>,
8131        /// If true, then skips reporting the trace to Android framework.
8132        ///
8133        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
8134        /// or when we explicitly don't want to report traces to the framework even
8135        /// when they usually would (e.g. configs deployed using statsd but only
8136        /// used for inclusion in bugreports using |bugreport_score|).
8137        ///
8138        /// The motivation for having this flag, instead of just not setting
8139        /// |framework_report_config|, is prevent accidents where
8140        /// |framework_report_config| is omitted by mistake.
8141        #[prost(bool, optional, tag="3")]
8142        pub skip_report: ::core::option::Option<bool>,
8143        /// If true, will direct the Android framework to read the data in trace
8144        /// file and pass it to the reporter class over a pipe instead of passing
8145        /// the file descriptor directly.
8146        ///
8147        /// This flag is needed because the Android test framework does not
8148        /// currently support priv-app helper apps (in terms of SELinux) and we
8149        /// really don't want to add an allow rule for untrusted_app to receive
8150        /// trace fds.
8151        ///
8152        /// Because of this, we instead will direct the framework to create a new
8153        /// pipe and pass this to the reporter process instead. As the pipe is
8154        /// created by the framework, we won't have any problems with SELinux
8155        /// (system_server is already allowed to pass pipe fds, even
8156        /// to untrusted apps).
8157        ///
8158        /// As the name suggests this option *MUST* only be used for testing.
8159        /// Note that the framework will reject (and drop) files which are too
8160        /// large both for simplicity and to be minimize the amount of data we
8161        /// pass to a non-priv app (note that the framework will still check
8162        /// manifest permissions even though SELinux permissions are worked around).
8163        #[prost(bool, optional, tag="4")]
8164        pub use_pipe_in_framework_for_testing: ::core::option::Option<bool>,
8165    }
8166    /// If set, delays the start of tracing by a random duration. The duration is
8167    /// chosen from a uniform distribution between the specified minimum and
8168    /// maximum.
8169    /// Note: this delay is implemented by perfetto_cmd *not* by traced so will
8170    /// not work if you communicate with traced directly over the consumer API.
8171    /// Introduced in Android T.
8172    #[derive(Clone, PartialEq, ::prost::Message)]
8173    pub struct CmdTraceStartDelay {
8174        #[prost(uint32, optional, tag="1")]
8175        pub min_delay_ms: ::core::option::Option<u32>,
8176        #[prost(uint32, optional, tag="2")]
8177        pub max_delay_ms: ::core::option::Option<u32>,
8178    }
8179    /// When non-empty, ensures that for a each semaphore named `name at most
8180    /// `max_other_session_count`` *other* sessions (whose value is taken of the
8181    /// minimum of all values specified by this config or any already-running
8182    /// session) can be be running.
8183    ///
8184    /// If a semaphore "acquisition" fails, EnableTracing will return an error
8185    /// and the tracing session will not be started (or elgible to start in
8186    /// the case of deferred sessions).
8187    ///
8188    /// This is easiest to explain with an example. Suppose the tracing service has
8189    /// the following active tracing sessions:
8190    ///    S1 = [{name=foo, max_other_session_count=2},
8191    ///          {name=bar, max_other_session_count=0}]
8192    ///    S2 = [{name=foo, max_other_session_count=1},
8193    ///          {name=baz, max_other_session_count=1}]
8194    ///
8195    /// Then, for a new session, the following would be the expected behaviour of
8196    /// EnableSession given the state of `session_semaphores`.
8197    ///    Q: session_semaphores = []
8198    ///    A: Allowed because it does not specify any semaphores. Will be allowed
8199    ///       no matter the state of any other tracing session.
8200    ///    Q: session_semaphores = [{name=baz, max_other_session_count=1}]
8201    ///    A: Allowed because both S2 and this config specify
8202    ///       max_other_session_count=1 for baz.
8203    ///    Q: session_semaphores = [{name=foo, max_other_session_count=3}]
8204    ///    A: Denied because S2 specified max_other_session_count=1 for foo and S1
8205    ///       takes that slot.
8206    ///    Q: session_semaphores = [{name=bar, max_other_session_count=0}]
8207    ///    A: Denied because S1 takes the the slot specified by both S1 and
8208    ///       this config.
8209    ///
8210    /// Introduced in 24Q3 (Android V).
8211    #[derive(Clone, PartialEq, ::prost::Message)]
8212    pub struct SessionSemaphore {
8213        /// The name of the semaphore. Acts as a unique identifier across all
8214        /// tracing sessions (including the one being started).
8215        #[prost(string, optional, tag="1")]
8216        pub name: ::core::option::Option<::prost::alloc::string::String>,
8217        /// The maximum number of *other* sesssions which specify the same semaphore
8218        /// which can be active. The minimum of this value across all tracing
8219        /// sessions and the value specified by the config is used when deciding
8220        /// whether the tracing session can be started.
8221        #[prost(uint64, optional, tag="2")]
8222        pub max_other_session_count: ::core::option::Option<u64>,
8223    }
8224    /// Allow key, value pairs to save arbitrary data about trace.
8225    #[derive(Clone, PartialEq, ::prost::Message)]
8226    pub struct Note {
8227        /// Required.
8228        #[prost(string, optional, tag="1")]
8229        pub key: ::core::option::Option<::prost::alloc::string::String>,
8230        /// Required.
8231        #[prost(string, optional, tag="2")]
8232        pub value: ::core::option::Option<::prost::alloc::string::String>,
8233    }
8234    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8235    #[repr(i32)]
8236    pub enum LockdownModeOperation {
8237        LockdownUnchanged = 0,
8238        LockdownClear = 1,
8239        LockdownSet = 2,
8240    }
8241    impl LockdownModeOperation {
8242        /// String value of the enum field names used in the ProtoBuf definition.
8243        ///
8244        /// The values are not transformed in any way and thus are considered stable
8245        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8246        pub fn as_str_name(&self) -> &'static str {
8247            match self {
8248                LockdownModeOperation::LockdownUnchanged => "LOCKDOWN_UNCHANGED",
8249                LockdownModeOperation::LockdownClear => "LOCKDOWN_CLEAR",
8250                LockdownModeOperation::LockdownSet => "LOCKDOWN_SET",
8251            }
8252        }
8253    }
8254    /// Compress trace with the given method. Best effort.
8255    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8256    #[repr(i32)]
8257    pub enum CompressionType {
8258        Unspecified = 0,
8259        Deflate = 1,
8260    }
8261    impl CompressionType {
8262        /// String value of the enum field names used in the ProtoBuf definition.
8263        ///
8264        /// The values are not transformed in any way and thus are considered stable
8265        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8266        pub fn as_str_name(&self) -> &'static str {
8267            match self {
8268                CompressionType::Unspecified => "COMPRESSION_TYPE_UNSPECIFIED",
8269                CompressionType::Deflate => "COMPRESSION_TYPE_DEFLATE",
8270            }
8271        }
8272    }
8273    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8274    #[repr(i32)]
8275    pub enum StatsdLogging {
8276        Unspecified = 0,
8277        Enabled = 1,
8278        Disabled = 2,
8279    }
8280    impl StatsdLogging {
8281        /// String value of the enum field names used in the ProtoBuf definition.
8282        ///
8283        /// The values are not transformed in any way and thus are considered stable
8284        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8285        pub fn as_str_name(&self) -> &'static str {
8286            match self {
8287                StatsdLogging::Unspecified => "STATSD_LOGGING_UNSPECIFIED",
8288                StatsdLogging::Enabled => "STATSD_LOGGING_ENABLED",
8289                StatsdLogging::Disabled => "STATSD_LOGGING_DISABLED",
8290            }
8291        }
8292    }
8293    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8294    #[repr(i32)]
8295    pub enum WriteFlushMode {
8296        /// Same as WRITE_FLUSH_AUTO.
8297        WriteFlushUnspecified = 0,
8298        /// Default mode. The service automatically determines the flush frequency
8299        /// to balance performance and data freshness:
8300        /// 1) If file_write_period_ms <= 5s (kDefaultWriteIntoFilePeriodMs):
8301        ///     Flushes are NOT issued on every write. Instead, a periodic flush is
8302        ///     issued every 5s.
8303        /// 2) If file_write_period_ms > 5s:
8304        ///     A flush is issued before every periodic write into the file.
8305        WriteFlushAuto = 1,
8306        // The following modes are intended for advanced usage and not recommended
8307        // for general use.
8308
8309        /// Do not flush buffers before periodic writes into the file.
8310        /// Use this mode if you want to minimize the performance impact of flushes
8311        /// and can tolerate potentially missing the most recent data in the trace
8312        /// file until the end of the session or an explicit flush.
8313        /// When this mode is selected, |flush_period_ms| is respected.
8314        WriteFlushDisabled = 2,
8315        /// Issue a flush before every periodic write into the file.
8316        /// This ensures that each write into the file contains the most up-to-date
8317        /// data from all data sources, but may have a higher performance overhead.
8318        WriteFlushEnabled = 3,
8319    }
8320    impl WriteFlushMode {
8321        /// String value of the enum field names used in the ProtoBuf definition.
8322        ///
8323        /// The values are not transformed in any way and thus are considered stable
8324        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8325        pub fn as_str_name(&self) -> &'static str {
8326            match self {
8327                WriteFlushMode::WriteFlushUnspecified => "WRITE_FLUSH_UNSPECIFIED",
8328                WriteFlushMode::WriteFlushAuto => "WRITE_FLUSH_AUTO",
8329                WriteFlushMode::WriteFlushDisabled => "WRITE_FLUSH_DISABLED",
8330                WriteFlushMode::WriteFlushEnabled => "WRITE_FLUSH_ENABLED",
8331            }
8332        }
8333    }
8334    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8335    #[repr(i32)]
8336    pub enum FFlushMode {
8337        /// Default: same as FFLUSH_DISABLED.
8338        FflushUnspecified = 0,
8339        /// Do not explicitly sync the file to storage after each write pass.
8340        FflushDisabled = 1,
8341        /// Explicitly sync the file to storage (via fdatasync) after each periodic
8342        /// write pass. Increases data durability at the cost of higher disk I/O
8343        /// overhead.
8344        FflushEnabled = 2,
8345    }
8346    impl FFlushMode {
8347        /// String value of the enum field names used in the ProtoBuf definition.
8348        ///
8349        /// The values are not transformed in any way and thus are considered stable
8350        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8351        pub fn as_str_name(&self) -> &'static str {
8352            match self {
8353                FFlushMode::FflushUnspecified => "FFLUSH_UNSPECIFIED",
8354                FFlushMode::FflushDisabled => "FFLUSH_DISABLED",
8355                FFlushMode::FflushEnabled => "FFLUSH_ENABLED",
8356            }
8357        }
8358    }
8359}
8360/// Arguments for rpc EnableTracing().
8361#[derive(Clone, PartialEq, ::prost::Message)]
8362pub struct EnableTracingRequest {
8363    #[prost(message, optional, tag="1")]
8364    pub trace_config: ::core::option::Option<TraceConfig>,
8365    /// Introduced in Android Q. This is used for re-attaching to the end-of-trace
8366    /// EnableTracingResponse notification after a Detach+Attach request.
8367    /// When this flag is set the |trace_config| is ignored and no method is called
8368    /// on the tracing service.
8369    #[prost(bool, optional, tag="2")]
8370    pub attach_notification_only: ::core::option::Option<bool>,
8371}
8372#[derive(Clone, PartialEq, ::prost::Message)]
8373pub struct EnableTracingResponse {
8374    /// If present and non-empty tracing was disabled because of an error.
8375    /// Introduced in Android S.
8376    #[prost(string, optional, tag="3")]
8377    pub error: ::core::option::Option<::prost::alloc::string::String>,
8378    #[prost(oneof="enable_tracing_response::State", tags="1")]
8379    pub state: ::core::option::Option<enable_tracing_response::State>,
8380}
8381/// Nested message and enum types in `EnableTracingResponse`.
8382pub mod enable_tracing_response {
8383    #[derive(Clone, PartialEq, ::prost::Oneof)]
8384    pub enum State {
8385        #[prost(bool, tag="1")]
8386        Disabled(bool),
8387    }
8388}
8389/// Arguments for rpc StartTracing().
8390#[derive(Clone, PartialEq, ::prost::Message)]
8391pub struct StartTracingRequest {
8392}
8393#[derive(Clone, PartialEq, ::prost::Message)]
8394pub struct StartTracingResponse {
8395}
8396/// Arguments for rpc ChangeTraceConfig().
8397#[derive(Clone, PartialEq, ::prost::Message)]
8398pub struct ChangeTraceConfigRequest {
8399    #[prost(message, optional, tag="1")]
8400    pub trace_config: ::core::option::Option<TraceConfig>,
8401}
8402#[derive(Clone, PartialEq, ::prost::Message)]
8403pub struct ChangeTraceConfigResponse {
8404}
8405/// Arguments for rpc DisableTracing().
8406///
8407/// TODO: not supported yet, selectively disable only some data sources.
8408/// repeated string data_source_name;
8409#[derive(Clone, PartialEq, ::prost::Message)]
8410pub struct DisableTracingRequest {
8411}
8412#[derive(Clone, PartialEq, ::prost::Message)]
8413pub struct DisableTracingResponse {
8414}
8415/// Arguments for rpc ReadBuffers().
8416///
8417/// The |id|s of the buffer, as passed to CreateBuffers().
8418/// TODO: repeated uint32 buffer_ids = 1;
8419#[derive(Clone, PartialEq, ::prost::Message)]
8420pub struct ReadBuffersRequest {
8421}
8422/// TODO: uint32 buffer_id = 1;
8423#[derive(Clone, PartialEq, ::prost::Message)]
8424pub struct ReadBuffersResponse {
8425    #[prost(message, repeated, tag="2")]
8426    pub slices: ::prost::alloc::vec::Vec<read_buffers_response::Slice>,
8427}
8428/// Nested message and enum types in `ReadBuffersResponse`.
8429pub mod read_buffers_response {
8430    /// Each streaming reply returns one or more slices for one or more trace
8431    /// packets, or even just a portion of it (if it's too big to fit within one
8432    /// IPC). The returned slices are ordered and contiguous: packets' slices are
8433    /// not interleaved and slices are sent only once all slices for a packet are
8434    /// available (i.e. the consumer will never see any gap).
8435    #[derive(Clone, PartialEq, ::prost::Message)]
8436    pub struct Slice {
8437        #[prost(bytes="vec", optional, tag="1")]
8438        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8439        /// When true, this is the last slice for the packet. A ReadBufferResponse
8440        /// might have no slices marked as |last_slice_for_packet|==true, in the case
8441        /// of a very large packet that gets chunked into several IPCs (in which case
8442        /// only the last IPC for the packet will have this flag set).
8443        #[prost(bool, optional, tag="2")]
8444        pub last_slice_for_packet: ::core::option::Option<bool>,
8445    }
8446}
8447/// Arguments for rpc FreeBuffers().
8448#[derive(Clone, PartialEq, ::prost::Message)]
8449pub struct FreeBuffersRequest {
8450    /// The |id|s of the buffer, as passed to CreateBuffers().
8451    #[prost(uint32, repeated, packed="false", tag="1")]
8452    pub buffer_ids: ::prost::alloc::vec::Vec<u32>,
8453}
8454#[derive(Clone, PartialEq, ::prost::Message)]
8455pub struct FreeBuffersResponse {
8456}
8457/// Arguments for rpc Flush().
8458#[derive(Clone, PartialEq, ::prost::Message)]
8459pub struct FlushRequest {
8460    #[prost(uint32, optional, tag="1")]
8461    pub timeout_ms: ::core::option::Option<u32>,
8462    /// More details such as flush reason and originator. Introduced in v38 / V.
8463    /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8464    #[prost(uint64, optional, tag="2")]
8465    pub flags: ::core::option::Option<u64>,
8466}
8467#[derive(Clone, PartialEq, ::prost::Message)]
8468pub struct FlushResponse {
8469}
8470/// Arguments for rpc Detach
8471#[derive(Clone, PartialEq, ::prost::Message)]
8472pub struct DetachRequest {
8473    #[prost(string, optional, tag="1")]
8474    pub key: ::core::option::Option<::prost::alloc::string::String>,
8475}
8476#[derive(Clone, PartialEq, ::prost::Message)]
8477pub struct DetachResponse {
8478}
8479/// Arguments for rpc Attach.
8480#[derive(Clone, PartialEq, ::prost::Message)]
8481pub struct AttachRequest {
8482    #[prost(string, optional, tag="1")]
8483    pub key: ::core::option::Option<::prost::alloc::string::String>,
8484}
8485#[derive(Clone, PartialEq, ::prost::Message)]
8486pub struct AttachResponse {
8487    #[prost(message, optional, tag="1")]
8488    pub trace_config: ::core::option::Option<TraceConfig>,
8489}
8490// Arguments for rpc GetTraceStats.
8491
8492#[derive(Clone, PartialEq, ::prost::Message)]
8493pub struct GetTraceStatsRequest {
8494}
8495#[derive(Clone, PartialEq, ::prost::Message)]
8496pub struct GetTraceStatsResponse {
8497    #[prost(message, optional, tag="1")]
8498    pub trace_stats: ::core::option::Option<TraceStats>,
8499}
8500// Arguments for rpc ObserveEvents.
8501
8502/// To stop observing events of a certain type, send a request with the remaining
8503/// types. To stop observing completely, send an empty request.
8504#[derive(Clone, PartialEq, ::prost::Message)]
8505pub struct ObserveEventsRequest {
8506    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="1")]
8507    pub events_to_observe: ::prost::alloc::vec::Vec<i32>,
8508}
8509#[derive(Clone, PartialEq, ::prost::Message)]
8510pub struct ObserveEventsResponse {
8511    #[prost(message, optional, tag="1")]
8512    pub events: ::core::option::Option<ObservableEvents>,
8513}
8514/// Arguments for rpc QueryServiceState.
8515#[derive(Clone, PartialEq, ::prost::Message)]
8516pub struct QueryServiceStateRequest {
8517    /// If set, only the TracingServiceState.tracing_sessions is filled. Producers
8518    /// and data sources are omitted.
8519    #[prost(bool, optional, tag="1")]
8520    pub sessions_only: ::core::option::Option<bool>,
8521}
8522#[derive(Clone, PartialEq, ::prost::Message)]
8523pub struct QueryServiceStateResponse {
8524    /// In order to avoid hitting IPC message size limitations, the service will
8525    /// return >1 replies for each query, chunking the TracingServiceState. The
8526    /// receiver is expected to merge replies together and parse that when the
8527    /// last reply is received (i.e. when IPC's |has_more| == false).
8528    #[prost(message, optional, tag="1")]
8529    pub service_state: ::core::option::Option<TracingServiceState>,
8530}
8531/// Arguments for rpc QueryCapabilities.
8532#[derive(Clone, PartialEq, ::prost::Message)]
8533pub struct QueryCapabilitiesRequest {
8534}
8535#[derive(Clone, PartialEq, ::prost::Message)]
8536pub struct QueryCapabilitiesResponse {
8537    #[prost(message, optional, tag="1")]
8538    pub capabilities: ::core::option::Option<TracingServiceCapabilities>,
8539}
8540/// Arguments for rpc SaveTraceForBugreport.
8541#[derive(Clone, PartialEq, ::prost::Message)]
8542pub struct SaveTraceForBugreportRequest {
8543}
8544/// This response is sent only after the trace was saved into file (if succeeded)
8545/// or something failed.
8546#[derive(Clone, PartialEq, ::prost::Message)]
8547pub struct SaveTraceForBugreportResponse {
8548    /// If true, an eligible the trace was saved into a known location (on Android
8549    /// /data/misc/perfetto-traces, see GetBugreportTracePath()).
8550    /// If false no trace with bugreport_score > 0 was found or an error occurred.
8551    /// see |msg| in that case for details about the failure.
8552    #[prost(bool, optional, tag="1")]
8553    pub success: ::core::option::Option<bool>,
8554    #[prost(string, optional, tag="2")]
8555    pub msg: ::core::option::Option<::prost::alloc::string::String>,
8556}
8557/// Arguments for rpc CloneSession.
8558#[derive(Clone, PartialEq, ::prost::Message)]
8559pub struct CloneSessionRequest {
8560    /// If set, the trace filter will not have effect on the cloned session.
8561    /// Used for bugreports.
8562    #[prost(bool, optional, tag="2")]
8563    pub skip_trace_filter: ::core::option::Option<bool>,
8564    /// If set, affects the generation of the FlushFlags::CloneTarget to be set
8565    /// to kBugreport when requesting the flush to the producers.
8566    #[prost(bool, optional, tag="3")]
8567    pub for_bugreport: ::core::option::Option<bool>,
8568    /// If set, this is stored in the trace as name of the trigger that caused the
8569    /// clone.
8570    #[prost(string, optional, tag="5")]
8571    pub clone_trigger_name: ::core::option::Option<::prost::alloc::string::String>,
8572    /// If set, this is stored in the trace as name of the producer that triggered
8573    /// the clone.
8574    #[prost(string, optional, tag="6")]
8575    pub clone_trigger_producer_name: ::core::option::Option<::prost::alloc::string::String>,
8576    /// If set, this is stored in the trace as uid of the producer that triggered
8577    /// the clone.
8578    #[prost(int32, optional, tag="7")]
8579    pub clone_trigger_trusted_producer_uid: ::core::option::Option<i32>,
8580    /// If set, this is stored in the trace as timestamp of the trigger that caused
8581    /// the clone.
8582    #[prost(uint64, optional, tag="8")]
8583    pub clone_trigger_boot_time_ns: ::core::option::Option<u64>,
8584    /// If set, this is stored in the trace as the configured delay of the trigger
8585    /// that caused the clone.
8586    ///
8587    /// Consumer may also send a file descriptor with this rpc message. If the
8588    /// descriptor is valid, and the session that should be cloned is
8589    /// 'write_into_file' session, traced writes the cloned session content to that
8590    /// file descriptor, instead of writing it in the cloned session buffers.
8591    #[prost(uint64, optional, tag="9")]
8592    pub clone_trigger_delay_ms: ::core::option::Option<u64>,
8593    #[prost(oneof="clone_session_request::Selector", tags="1, 4")]
8594    pub selector: ::core::option::Option<clone_session_request::Selector>,
8595}
8596/// Nested message and enum types in `CloneSessionRequest`.
8597pub mod clone_session_request {
8598    #[derive(Clone, PartialEq, ::prost::Oneof)]
8599    pub enum Selector {
8600        /// The session ID to clone. If session_id == kBugreportSessionId (0xff...ff)
8601        /// the session with the highest bugreport score is cloned (if any exists).
8602        #[prost(uint64, tag="1")]
8603        SessionId(u64),
8604        /// The unique_session_name of the tracing session to clone. Tracing sessions
8605        /// that are clones of other tracing sessions are ignored.
8606        #[prost(string, tag="4")]
8607        UniqueSessionName(::prost::alloc::string::String),
8608    }
8609}
8610#[derive(Clone, PartialEq, ::prost::Message)]
8611pub struct CloneSessionResponse {
8612    /// If true, the clone was successful. If false it failed and |error| contains
8613    /// the details about the failure.
8614    #[prost(bool, optional, tag="1")]
8615    pub success: ::core::option::Option<bool>,
8616    #[prost(string, optional, tag="2")]
8617    pub error: ::core::option::Option<::prost::alloc::string::String>,
8618    /// The UUID of the cloned session.
8619    #[prost(int64, optional, tag="3")]
8620    pub uuid_msb: ::core::option::Option<i64>,
8621    #[prost(int64, optional, tag="4")]
8622    pub uuid_lsb: ::core::option::Option<i64>,
8623    /// TracingService sets this when the cloned session was write_into_file=true.
8624    /// The consumer cannot know upfront if a session is WIF or not.
8625    /// Introduced in v53.
8626    #[prost(bool, optional, tag="5")]
8627    pub was_write_into_file: ::core::option::Option<bool>,
8628}
8629#[derive(Clone, PartialEq, ::prost::Message)]
8630pub struct CommitDataRequest {
8631    #[prost(message, repeated, tag="1")]
8632    pub chunks_to_move: ::prost::alloc::vec::Vec<commit_data_request::ChunksToMove>,
8633    #[prost(message, repeated, tag="2")]
8634    pub chunks_to_patch: ::prost::alloc::vec::Vec<commit_data_request::ChunkToPatch>,
8635    /// Optional. If this commit is made in response to a Flush(id) request coming
8636    /// from the service, copy back the id of the request so the service can tell
8637    /// when the flush happened.
8638    #[prost(uint64, optional, tag="3")]
8639    pub flush_request_id: ::core::option::Option<u64>,
8640}
8641/// Nested message and enum types in `CommitDataRequest`.
8642pub mod commit_data_request {
8643    /// When |chunks_to_move| is present, the producer is requesting the service to
8644    /// move the given chunks form the share memory buffer into the central
8645    /// trace buffer(s).
8646    #[derive(Clone, PartialEq, ::prost::Message)]
8647    pub struct ChunksToMove {
8648        /// The 0-based index of the page in the Shared Memory Buffer.
8649        #[prost(uint32, optional, tag="1")]
8650        pub page: ::core::option::Option<u32>,
8651        /// The 0-based chunk index \[0..13\] within the page.
8652        #[prost(uint32, optional, tag="2")]
8653        pub chunk: ::core::option::Option<u32>,
8654        /// The target buffer it should be moved onto. The service will check that
8655        /// the producer is allowed to write into that buffer before the move.
8656        #[prost(uint32, optional, tag="3")]
8657        pub target_buffer: ::core::option::Option<u32>,
8658        /// Sending the chunk data over the wire. Used for transports that don't
8659        /// support shared memory (e.g. vsock or TCP sockets). In the default case
8660        /// (tracing protocol over a Unix socket), this field is not used and tracing
8661        /// data is stored in the shmem buffer and referenced by the fields above.
8662        /// See |use_shemem_emulation| in the codebase for reference.
8663        #[prost(bytes="vec", optional, tag="4")]
8664        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8665        /// Set to true when scraping data in shmem emulation (aka commits-over-ipc)
8666        /// AND the chunk was still in kChunkBeingWritten. This is necessary because
8667        /// in emulation mode, the service cannot tell whether this is a complete
8668        /// chunk coming from a regular TraceWriter commit, or a scraped one.
8669        /// This field is only set when `data` is present. It is never set (and is
8670        /// ignored by the service) for the regular case of doing commits over
8671        /// shmem. Introduced in Perfetto v54.
8672        /// See /rfcs/0010-smb-scraping-remote-producers.md .
8673        #[prost(bool, optional, tag="5")]
8674        pub chunk_incomplete: ::core::option::Option<bool>,
8675    }
8676    /// Used to patch chunks that have already been sent to the service. The chunk
8677    /// might not be in the shared memory buffer anymore as it could have been
8678    /// moved by the service in response to a prior CommitDataRequest.
8679    /// It is perfectly valid to patch a chunk that is being notified in the same
8680    /// message (a chunk can show up both in the |changed_pages| and |patches|
8681    /// field within the same CommitDataRequest message).
8682    /// In other words, |chunks_to_patch| is always processed after
8683    /// |chunks_to_move|.
8684    #[derive(Clone, PartialEq, ::prost::Message)]
8685    pub struct ChunkToPatch {
8686        #[prost(uint32, optional, tag="1")]
8687        pub target_buffer: ::core::option::Option<u32>,
8688        /// {WriterID, ChunkID} uniquely identify a chunk for the current producer.
8689        #[prost(uint32, optional, tag="2")]
8690        pub writer_id: ::core::option::Option<u32>,
8691        #[prost(uint32, optional, tag="3")]
8692        pub chunk_id: ::core::option::Option<u32>,
8693        /// List of patches to apply to the given chunk.
8694        #[prost(message, repeated, tag="4")]
8695        pub patches: ::prost::alloc::vec::Vec<chunk_to_patch::Patch>,
8696        /// When true more patches will follow in future requests and the chunk
8697        /// should be still considered as patch-pending. When false the chunk becomes
8698        /// eligible for reading.
8699        #[prost(bool, optional, tag="5")]
8700        pub has_more_patches: ::core::option::Option<bool>,
8701    }
8702    /// Nested message and enum types in `ChunkToPatch`.
8703    pub mod chunk_to_patch {
8704        #[derive(Clone, PartialEq, ::prost::Message)]
8705        pub struct Patch {
8706            /// Offset in bytes from the start of the chunk payload. e.g., offset == 0
8707            /// corresponds to the first byte of the first packet (or fragment) in the
8708            /// chunk.
8709            #[prost(uint32, optional, tag="1")]
8710            pub offset: ::core::option::Option<u32>,
8711            /// Bytes to patch at the given offset.
8712            #[prost(bytes="vec", optional, tag="2")]
8713            pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8714        }
8715    }
8716}
8717/// Arguments for rpc InitializeConnection().
8718#[derive(Clone, PartialEq, ::prost::Message)]
8719pub struct InitializeConnectionRequest {
8720    /// Optional. Provides a hint to the tracing service about the suggested size
8721    /// of the shared memory buffer pages. The service is not required to respect
8722    /// this if it has already another value in the configuration or if the hint
8723    /// is unreasonably large. Must be an integer multiple of 4096. See tradeoff
8724    /// considerations in shared_memory_abi.h.
8725    #[prost(uint32, optional, tag="1")]
8726    pub shared_memory_page_size_hint_bytes: ::core::option::Option<u32>,
8727    /// Optional. Provides a hint to the tracing service about the suggested size
8728    /// of the shared memory buffer. The service is not required to respect this
8729    /// and might return a smaller buffer.
8730    #[prost(uint32, optional, tag="2")]
8731    pub shared_memory_size_hint_bytes: ::core::option::Option<u32>,
8732    /// Required to match the producer config set by the service to the correct
8733    /// producer.
8734    #[prost(string, optional, tag="3")]
8735    pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
8736    /// If provided, overrides the service's SMB scraping setting for the producer.
8737    #[prost(enumeration="initialize_connection_request::ProducerSmbScrapingMode", optional, tag="4")]
8738    pub smb_scraping_mode: ::core::option::Option<i32>,
8739    // ---------------------------------------------------
8740    // All fields below have been introduced in Android R.
8741    // ---------------------------------------------------
8742
8743    /// Since Android R, this request can also transport an FD for the producer's
8744    /// shared memory buffer, if allocated by the producer (e.g. for startup
8745    /// tracing). In this case, |shared_memory_page_size_hint_bytes| is a required
8746    /// field, and describes the SMB's page size. Note that the service may not
8747    /// accept this SMB (e.g. because it is too old or its size / page size are
8748    /// invalid) and instead allocate a new SMB which is provided in the
8749    /// SetupTracing response. See TracingService::ConnectProducer() and
8750    /// |using_shmem_provided_by_producer| in InitializeConnectionResponse.
8751    #[prost(bool, optional, tag="6")]
8752    pub producer_provided_shmem: ::core::option::Option<bool>,
8753    // ---------------------------------------------------
8754    // All fields below have been introduced in Android S.
8755    // ---------------------------------------------------
8756
8757    /// The version of the client library used by the producer.
8758    /// This is a human readable string with and its format varies depending on
8759    /// the build system that is used to build the code and the repo (standalone
8760    /// vs AOSP). This is intended for human debugging only.
8761    #[prost(string, optional, tag="8")]
8762    pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
8763    /// On Windows, when producer_provided_shmem = true, the client creates a named
8764    /// SHM region and passes the name (an unguessable token) back to the service.
8765    /// Introduced in v13.
8766    #[prost(string, optional, tag="7")]
8767    pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
8768}
8769/// Nested message and enum types in `InitializeConnectionRequest`.
8770pub mod initialize_connection_request {
8771    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8772    #[repr(i32)]
8773    pub enum ProducerSmbScrapingMode {
8774        /// Use the service's default setting for SMB scraping.
8775        SmbScrapingUnspecified = 0,
8776        /// Enable scraping of uncommitted chunks from the producer's shared memory
8777        /// buffer.
8778        SmbScrapingEnabled = 1,
8779        /// Disable scraping of uncommitted chunks from the producer's shared memory
8780        /// buffer.
8781        SmbScrapingDisabled = 2,
8782    }
8783    impl ProducerSmbScrapingMode {
8784        /// String value of the enum field names used in the ProtoBuf definition.
8785        ///
8786        /// The values are not transformed in any way and thus are considered stable
8787        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8788        pub fn as_str_name(&self) -> &'static str {
8789            match self {
8790                ProducerSmbScrapingMode::SmbScrapingUnspecified => "SMB_SCRAPING_UNSPECIFIED",
8791                ProducerSmbScrapingMode::SmbScrapingEnabled => "SMB_SCRAPING_ENABLED",
8792                ProducerSmbScrapingMode::SmbScrapingDisabled => "SMB_SCRAPING_DISABLED",
8793            }
8794        }
8795    }
8796}
8797#[derive(Clone, PartialEq, ::prost::Message)]
8798pub struct InitializeConnectionResponse {
8799    /// Indicates whether the service accepted the SMB provided by the producer in
8800    /// InitializeConnectionRequest (if any). If false, the shared memory buffer FD
8801    /// will provided by the service via the SetupTracing async command.
8802    #[prost(bool, optional, tag="1")]
8803    pub using_shmem_provided_by_producer: ::core::option::Option<bool>,
8804    /// Indicates to the producer that the service allows direct SMB patching of
8805    /// chunks that have not yet been committed to it.
8806    /// This field has been introduced in Android S.
8807    #[prost(bool, optional, tag="2")]
8808    pub direct_smb_patching_supported: ::core::option::Option<bool>,
8809    /// Indicates whether the service would like to use SMB emulation for the
8810    /// connection, and request the client to send chunk data over the socket e.g.
8811    /// for remote connection from a VM guest.
8812    #[prost(bool, optional, tag="3")]
8813    pub use_shmem_emulation: ::core::option::Option<bool>,
8814}
8815// Arguments for rpc RegisterDataSource().
8816
8817#[derive(Clone, PartialEq, ::prost::Message)]
8818pub struct RegisterDataSourceRequest {
8819    #[prost(message, optional, tag="1")]
8820    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
8821}
8822#[derive(Clone, PartialEq, ::prost::Message)]
8823pub struct RegisterDataSourceResponse {
8824    /// Only set in case of errors, when |data_source_id| == 0.
8825    #[prost(string, optional, tag="1")]
8826    pub error: ::core::option::Option<::prost::alloc::string::String>,
8827}
8828// Arguments for rpc UpdateDataSource().
8829
8830#[derive(Clone, PartialEq, ::prost::Message)]
8831pub struct UpdateDataSourceRequest {
8832    /// The new data_source_descriptor.{id, name} must match {id, name} of a
8833    /// data source previously registered via RegisterDataSource().
8834    #[prost(message, optional, tag="1")]
8835    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
8836}
8837#[derive(Clone, PartialEq, ::prost::Message)]
8838pub struct UpdateDataSourceResponse {
8839}
8840// Arguments for rpc UnregisterDataSource().
8841
8842#[derive(Clone, PartialEq, ::prost::Message)]
8843pub struct UnregisterDataSourceRequest {
8844    /// The name of the data source to unregister, as previously passed in
8845    /// |RegisterDataSourceRequest.name|.
8846    #[prost(string, optional, tag="1")]
8847    pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
8848}
8849#[derive(Clone, PartialEq, ::prost::Message)]
8850pub struct UnregisterDataSourceResponse {
8851}
8852// Arguments for rpc RegisterTraceWriter().
8853
8854#[derive(Clone, PartialEq, ::prost::Message)]
8855pub struct RegisterTraceWriterRequest {
8856    /// The ID of a producer's trace writer.
8857    #[prost(uint32, optional, tag="1")]
8858    pub trace_writer_id: ::core::option::Option<u32>,
8859    /// The ID of the target buffer that the trace writer commits its chunks to.
8860    #[prost(uint32, optional, tag="2")]
8861    pub target_buffer: ::core::option::Option<u32>,
8862}
8863#[derive(Clone, PartialEq, ::prost::Message)]
8864pub struct RegisterTraceWriterResponse {
8865}
8866// Arguments for rpc UnregisterTraceWriter().
8867
8868#[derive(Clone, PartialEq, ::prost::Message)]
8869pub struct UnregisterTraceWriterRequest {
8870    /// The ID of a producer's trace writer.
8871    #[prost(uint32, optional, tag="1")]
8872    pub trace_writer_id: ::core::option::Option<u32>,
8873}
8874#[derive(Clone, PartialEq, ::prost::Message)]
8875pub struct UnregisterTraceWriterResponse {
8876}
8877// Arguments for rpc CommitData().
8878// See commit_data_request.proto for CommitDataRequest. That has its own file
8879// because it is used also as input to generate C++ classes (xxx.gen.h).
8880
8881#[derive(Clone, PartialEq, ::prost::Message)]
8882pub struct CommitDataResponse {
8883}
8884// Arguments for rpc NotifyDataSourceStarted().
8885
8886#[derive(Clone, PartialEq, ::prost::Message)]
8887pub struct NotifyDataSourceStartedRequest {
8888    /// ID of the data source that has successfully started.
8889    #[prost(uint64, optional, tag="1")]
8890    pub data_source_id: ::core::option::Option<u64>,
8891}
8892#[derive(Clone, PartialEq, ::prost::Message)]
8893pub struct NotifyDataSourceStartedResponse {
8894}
8895// Arguments for rpc NotifyDataSourceStopped().
8896
8897#[derive(Clone, PartialEq, ::prost::Message)]
8898pub struct NotifyDataSourceStoppedRequest {
8899    /// ID of the data source that has successfully stopped.
8900    #[prost(uint64, optional, tag="1")]
8901    pub data_source_id: ::core::option::Option<u64>,
8902}
8903#[derive(Clone, PartialEq, ::prost::Message)]
8904pub struct NotifyDataSourceStoppedResponse {
8905}
8906// Arguments for rpc ActivateTriggersRequest().
8907
8908#[derive(Clone, PartialEq, ::prost::Message)]
8909pub struct ActivateTriggersRequest {
8910    #[prost(string, repeated, tag="1")]
8911    pub trigger_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
8912}
8913#[derive(Clone, PartialEq, ::prost::Message)]
8914pub struct ActivateTriggersResponse {
8915}
8916// Arguments for rpc GetAsyncCommand().
8917
8918#[derive(Clone, PartialEq, ::prost::Message)]
8919pub struct GetAsyncCommandRequest {
8920}
8921#[derive(Clone, PartialEq, ::prost::Message)]
8922pub struct GetAsyncCommandResponse {
8923    /// Next id: 8.
8924    #[prost(oneof="get_async_command_response::Cmd", tags="3, 6, 1, 2, 5, 7")]
8925    pub cmd: ::core::option::Option<get_async_command_response::Cmd>,
8926}
8927/// Nested message and enum types in `GetAsyncCommandResponse`.
8928pub mod get_async_command_response {
8929    /// Called after SetupTracing and before StartDataSource.
8930    /// This message was introduced in Android Q.
8931    #[derive(Clone, PartialEq, ::prost::Message)]
8932    pub struct SetupDataSource {
8933        #[prost(uint64, optional, tag="1")]
8934        pub new_instance_id: ::core::option::Option<u64>,
8935        #[prost(message, optional, tag="2")]
8936        pub config: ::core::option::Option<super::DataSourceConfig>,
8937    }
8938    #[derive(Clone, PartialEq, ::prost::Message)]
8939    pub struct StartDataSource {
8940        #[prost(uint64, optional, tag="1")]
8941        pub new_instance_id: ::core::option::Option<u64>,
8942        /// For backwards compat reasons (with Android P), the config passed here
8943        /// is identical to the one passed to SetupDataSource.config.
8944        #[prost(message, optional, tag="2")]
8945        pub config: ::core::option::Option<super::DataSourceConfig>,
8946    }
8947    #[derive(Clone, PartialEq, ::prost::Message)]
8948    pub struct StopDataSource {
8949        #[prost(uint64, optional, tag="1")]
8950        pub instance_id: ::core::option::Option<u64>,
8951    }
8952    /// On Android/Linux/Mac this message also transports the file descriptor for
8953    /// the shared memory buffer (not a proto field).
8954    #[derive(Clone, PartialEq, ::prost::Message)]
8955    pub struct SetupTracing {
8956        #[prost(uint32, optional, tag="1")]
8957        pub shared_buffer_page_size_kb: ::core::option::Option<u32>,
8958        /// On Windows, instead, we pass the name (an unguessable token) of a shared
8959        /// memory region that can be attached by the other process by name.
8960        /// Introduced in v13.
8961        #[prost(string, optional, tag="2")]
8962        pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
8963    }
8964    #[derive(Clone, PartialEq, ::prost::Message)]
8965    pub struct Flush {
8966        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8967        /// sources to flush.
8968        #[prost(uint64, repeated, packed="false", tag="1")]
8969        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8970        /// A monotonic counter generated by the service. The producer is simply
8971        /// expected to copy this value back into the CommitDataRequest, so the
8972        /// service can tell when the data for this flush has been committed.
8973        #[prost(uint64, optional, tag="2")]
8974        pub request_id: ::core::option::Option<u64>,
8975        /// More details such as flush reason and originator. Introduced in v38 / V.
8976        /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8977        #[prost(uint64, optional, tag="3")]
8978        pub flags: ::core::option::Option<u64>,
8979    }
8980    /// Instructs the given data sources to stop referring to any trace contents
8981    /// emitted so far. Sent only to active data sources that set
8982    /// |handles_incremental_state_clear| in their DataSourceDescriptor.
8983    ///
8984    /// Added to perfetto tree in May 2019.
8985    #[derive(Clone, PartialEq, ::prost::Message)]
8986    pub struct ClearIncrementalState {
8987        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8988        /// sources that should clear their incremental state.
8989        #[prost(uint64, repeated, packed="false", tag="1")]
8990        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8991    }
8992    /// Next id: 8.
8993    #[derive(Clone, PartialEq, ::prost::Oneof)]
8994    pub enum Cmd {
8995        #[prost(message, tag="3")]
8996        SetupTracing(SetupTracing),
8997        #[prost(message, tag="6")]
8998        SetupDataSource(SetupDataSource),
8999        #[prost(message, tag="1")]
9000        StartDataSource(StartDataSource),
9001        #[prost(message, tag="2")]
9002        StopDataSource(StopDataSource),
9003        /// id == 4 was teardown_tracing, never implemented.
9004        #[prost(message, tag="5")]
9005        Flush(Flush),
9006        #[prost(message, tag="7")]
9007        ClearIncrementalState(ClearIncrementalState),
9008    }
9009}
9010/// Arguments for rpc Sync().
9011#[derive(Clone, PartialEq, ::prost::Message)]
9012pub struct SyncRequest {
9013}
9014#[derive(Clone, PartialEq, ::prost::Message)]
9015pub struct SyncResponse {
9016}
9017#[derive(Clone, PartialEq, ::prost::Message)]
9018pub struct IpcFrame {
9019    /// The client is expected to send requests with monotonically increasing
9020    /// request_id. The host will match the request_id sent from the client.
9021    /// In the case of a Streaming response (has_more = true) the host will send
9022    /// several InvokeMethodReply with the same request_id.
9023    #[prost(uint64, optional, tag="2")]
9024    pub request_id: ::core::option::Option<u64>,
9025    /// Used only in unittests to generate a parsable message of arbitrary size.
9026    #[prost(bytes="vec", repeated, tag="1")]
9027    pub data_for_testing: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
9028    #[prost(oneof="ipc_frame::Msg", tags="3, 4, 5, 6, 7, 8")]
9029    pub msg: ::core::option::Option<ipc_frame::Msg>,
9030}
9031/// Nested message and enum types in `IPCFrame`.
9032pub mod ipc_frame {
9033    /// Client -> Host.
9034    #[derive(Clone, PartialEq, ::prost::Message)]
9035    pub struct BindService {
9036        #[prost(string, optional, tag="1")]
9037        pub service_name: ::core::option::Option<::prost::alloc::string::String>,
9038    }
9039    /// Host -> Client.
9040    #[derive(Clone, PartialEq, ::prost::Message)]
9041    pub struct BindServiceReply {
9042        #[prost(bool, optional, tag="1")]
9043        pub success: ::core::option::Option<bool>,
9044        #[prost(uint32, optional, tag="2")]
9045        pub service_id: ::core::option::Option<u32>,
9046        #[prost(message, repeated, tag="3")]
9047        pub methods: ::prost::alloc::vec::Vec<bind_service_reply::MethodInfo>,
9048    }
9049    /// Nested message and enum types in `BindServiceReply`.
9050    pub mod bind_service_reply {
9051        #[derive(Clone, PartialEq, ::prost::Message)]
9052        pub struct MethodInfo {
9053            #[prost(uint32, optional, tag="1")]
9054            pub id: ::core::option::Option<u32>,
9055            #[prost(string, optional, tag="2")]
9056            pub name: ::core::option::Option<::prost::alloc::string::String>,
9057        }
9058    }
9059    /// Client -> Host.
9060    #[derive(Clone, PartialEq, ::prost::Message)]
9061    pub struct InvokeMethod {
9062        /// BindServiceReply.id.
9063        #[prost(uint32, optional, tag="1")]
9064        pub service_id: ::core::option::Option<u32>,
9065        /// BindServiceReply.method.id.
9066        #[prost(uint32, optional, tag="2")]
9067        pub method_id: ::core::option::Option<u32>,
9068        /// Proto-encoded request argument.
9069        #[prost(bytes="vec", optional, tag="3")]
9070        pub args_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
9071        /// When true the client specifies that a reply is not needed. The use case
9072        /// is a method with an empty, where the client doesn't care about the
9073        /// success/failure of the method invocation and rather prefers avoiding the
9074        /// IPC roundtrip + context switch associated with the reply.
9075        #[prost(bool, optional, tag="4")]
9076        pub drop_reply: ::core::option::Option<bool>,
9077    }
9078    /// Host -> Client.
9079    #[derive(Clone, PartialEq, ::prost::Message)]
9080    pub struct InvokeMethodReply {
9081        #[prost(bool, optional, tag="1")]
9082        pub success: ::core::option::Option<bool>,
9083        /// only for streaming RPCs.
9084        #[prost(bool, optional, tag="2")]
9085        pub has_more: ::core::option::Option<bool>,
9086        /// proto-encoded response value.
9087        #[prost(bytes="vec", optional, tag="3")]
9088        pub reply_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
9089    }
9090    /// Host -> Client.
9091    #[derive(Clone, PartialEq, ::prost::Message)]
9092    pub struct RequestError {
9093        #[prost(string, optional, tag="1")]
9094        pub error: ::core::option::Option<::prost::alloc::string::String>,
9095    }
9096    /// Client (relay service) -> Host. This is generated by the relay service to
9097    /// fill the producer identity in the guest. This message is sent to the host
9098    /// service *before* any IPCFrame is from a local producer is relayed. This is
9099    /// accepted only on AF_VSOCK and AF_INET sockets, where we cannot validate the
9100    /// endpoont of the connection. for AF_UNIX sockets, this is ignored and traced
9101    /// uses instead the SO_PEERCRED.
9102    #[derive(Clone, PartialEq, ::prost::Message)]
9103    pub struct SetPeerIdentity {
9104        /// The UID and PID of the producer process.
9105        #[prost(int32, optional, tag="1")]
9106        pub pid: ::core::option::Option<i32>,
9107        #[prost(int32, optional, tag="2")]
9108        pub uid: ::core::option::Option<i32>,
9109        /// The hint for the tracing service to infer the machine ID. This field
9110        /// should satisfy the requriement that different machines should have
9111        /// different values. In practice, this filed contains the Linux kernel
9112        /// boot_id, or a hash of kernel bootup timestamp and uname(2) if boot_id
9113        /// isn't available.
9114        #[prost(string, optional, tag="3")]
9115        pub machine_id_hint: ::core::option::Option<::prost::alloc::string::String>,
9116        /// Human-readable name associated to the producer's machine. Provides the
9117        /// tracing service a new dimension to filter data sources on. Given the
9118        /// perfetto machine name is provided by users, there is no expectation of
9119        /// uniqueness across machines in a tracing session.
9120        #[prost(string, optional, tag="4")]
9121        pub machine_name: ::core::option::Option<::prost::alloc::string::String>,
9122    }
9123    #[derive(Clone, PartialEq, ::prost::Oneof)]
9124    pub enum Msg {
9125        #[prost(message, tag="3")]
9126        MsgBindService(BindService),
9127        #[prost(message, tag="4")]
9128        MsgBindServiceReply(BindServiceReply),
9129        #[prost(message, tag="5")]
9130        MsgInvokeMethod(InvokeMethod),
9131        #[prost(message, tag="6")]
9132        MsgInvokeMethodReply(InvokeMethodReply),
9133        #[prost(message, tag="7")]
9134        MsgRequestError(RequestError),
9135        #[prost(message, tag="8")]
9136        SetPeerIdentity(SetPeerIdentity),
9137    }
9138}