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(oneof="gpu_counter_spec::PeakValue", tags="5, 6")]
170        pub peak_value: ::core::option::Option<gpu_counter_spec::PeakValue>,
171    }
172    /// Nested message and enum types in `GpuCounterSpec`.
173    pub mod gpu_counter_spec {
174        #[derive(Clone, PartialEq, ::prost::Oneof)]
175        pub enum PeakValue {
176            #[prost(int64, tag="5")]
177            IntPeakValue(i64),
178            #[prost(double, tag="6")]
179            DoublePeakValue(f64),
180        }
181    }
182    /// Allow producer to group counters into block to represent counter islands.
183    /// A capacity may be specified to indicate the number of counters that can be
184    /// enable simultaneously in that block.
185    #[derive(Clone, PartialEq, ::prost::Message)]
186    pub struct GpuCounterBlock {
187        /// required. Unique ID for the counter group.
188        #[prost(uint32, optional, tag="1")]
189        pub block_id: ::core::option::Option<u32>,
190        /// optional. Number of counters supported by the block. No limit if unset.
191        #[prost(uint32, optional, tag="2")]
192        pub block_capacity: ::core::option::Option<u32>,
193        /// optional. Name of block.
194        #[prost(string, optional, tag="3")]
195        pub name: ::core::option::Option<::prost::alloc::string::String>,
196        /// optional. Description for the block.
197        #[prost(string, optional, tag="4")]
198        pub description: ::core::option::Option<::prost::alloc::string::String>,
199        /// list of counters that are part of the block.
200        #[prost(uint32, repeated, packed="false", tag="5")]
201        pub counter_ids: ::prost::alloc::vec::Vec<u32>,
202    }
203    /// Allow producer to define custom counter groups. Unlike the fixed
204    /// GpuCounterGroup enum (which provides broad categories), these groups
205    /// let the producer define hardware-specific groupings that the UI uses
206    /// to organize counter tracks. Can also be used to provide display names
207    /// and descriptions for the fixed GpuCounterGroup enum values by setting
208    /// group_id to the enum value.
209    #[derive(Clone, PartialEq, ::prost::Message)]
210    pub struct GpuCounterGroupSpec {
211        /// required. Unique ID for this group within the descriptor.
212        #[prost(uint32, optional, tag="1")]
213        pub group_id: ::core::option::Option<u32>,
214        /// optional. Display name for the group.
215        #[prost(string, optional, tag="2")]
216        pub name: ::core::option::Option<::prost::alloc::string::String>,
217        /// optional. Description of the group.
218        #[prost(string, optional, tag="3")]
219        pub description: ::core::option::Option<::prost::alloc::string::String>,
220        /// Counters that belong directly to this group (by counter_id).
221        #[prost(uint32, repeated, packed="false", tag="4")]
222        pub counter_ids: ::prost::alloc::vec::Vec<u32>,
223    }
224    /// Logical groups for a counter.  This is used in the UI to present the
225    /// related counters together.
226    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
227    #[repr(i32)]
228    pub enum GpuCounterGroup {
229        Unclassified = 0,
230        System = 1,
231        Vertices = 2,
232        Fragments = 3,
233        Primitives = 4,
234        /// Includes counters relating to caching and bandwidth.
235        Memory = 5,
236        Compute = 6,
237        RayTracing = 7,
238    }
239    impl GpuCounterGroup {
240        /// String value of the enum field names used in the ProtoBuf definition.
241        ///
242        /// The values are not transformed in any way and thus are considered stable
243        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
244        pub fn as_str_name(&self) -> &'static str {
245            match self {
246                GpuCounterGroup::Unclassified => "UNCLASSIFIED",
247                GpuCounterGroup::System => "SYSTEM",
248                GpuCounterGroup::Vertices => "VERTICES",
249                GpuCounterGroup::Fragments => "FRAGMENTS",
250                GpuCounterGroup::Primitives => "PRIMITIVES",
251                GpuCounterGroup::Memory => "MEMORY",
252                GpuCounterGroup::Compute => "COMPUTE",
253                GpuCounterGroup::RayTracing => "RAY_TRACING",
254            }
255        }
256    }
257    /// next id: 41
258    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
259    #[repr(i32)]
260    pub enum MeasureUnit {
261        None = 0,
262        Bit = 1,
263        Kilobit = 2,
264        Megabit = 3,
265        Gigabit = 4,
266        Terabit = 5,
267        Petabit = 6,
268        Byte = 7,
269        Kilobyte = 8,
270        Megabyte = 9,
271        Gigabyte = 10,
272        Terabyte = 11,
273        Petabyte = 12,
274        Hertz = 13,
275        Kilohertz = 14,
276        Megahertz = 15,
277        Gigahertz = 16,
278        Terahertz = 17,
279        Petahertz = 18,
280        Nanosecond = 19,
281        Microsecond = 20,
282        Millisecond = 21,
283        Second = 22,
284        Minute = 23,
285        Hour = 24,
286        Vertex = 25,
287        Pixel = 26,
288        Triangle = 27,
289        Primitive = 38,
290        Fragment = 39,
291        Milliwatt = 28,
292        Watt = 29,
293        Kilowatt = 30,
294        Joule = 31,
295        Volt = 32,
296        Ampere = 33,
297        Celsius = 34,
298        Fahrenheit = 35,
299        Kelvin = 36,
300        /// Values should be out of 100.
301        Percent = 37,
302        Instruction = 40,
303    }
304    impl MeasureUnit {
305        /// String value of the enum field names used in the ProtoBuf definition.
306        ///
307        /// The values are not transformed in any way and thus are considered stable
308        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
309        pub fn as_str_name(&self) -> &'static str {
310            match self {
311                MeasureUnit::None => "NONE",
312                MeasureUnit::Bit => "BIT",
313                MeasureUnit::Kilobit => "KILOBIT",
314                MeasureUnit::Megabit => "MEGABIT",
315                MeasureUnit::Gigabit => "GIGABIT",
316                MeasureUnit::Terabit => "TERABIT",
317                MeasureUnit::Petabit => "PETABIT",
318                MeasureUnit::Byte => "BYTE",
319                MeasureUnit::Kilobyte => "KILOBYTE",
320                MeasureUnit::Megabyte => "MEGABYTE",
321                MeasureUnit::Gigabyte => "GIGABYTE",
322                MeasureUnit::Terabyte => "TERABYTE",
323                MeasureUnit::Petabyte => "PETABYTE",
324                MeasureUnit::Hertz => "HERTZ",
325                MeasureUnit::Kilohertz => "KILOHERTZ",
326                MeasureUnit::Megahertz => "MEGAHERTZ",
327                MeasureUnit::Gigahertz => "GIGAHERTZ",
328                MeasureUnit::Terahertz => "TERAHERTZ",
329                MeasureUnit::Petahertz => "PETAHERTZ",
330                MeasureUnit::Nanosecond => "NANOSECOND",
331                MeasureUnit::Microsecond => "MICROSECOND",
332                MeasureUnit::Millisecond => "MILLISECOND",
333                MeasureUnit::Second => "SECOND",
334                MeasureUnit::Minute => "MINUTE",
335                MeasureUnit::Hour => "HOUR",
336                MeasureUnit::Vertex => "VERTEX",
337                MeasureUnit::Pixel => "PIXEL",
338                MeasureUnit::Triangle => "TRIANGLE",
339                MeasureUnit::Primitive => "PRIMITIVE",
340                MeasureUnit::Fragment => "FRAGMENT",
341                MeasureUnit::Milliwatt => "MILLIWATT",
342                MeasureUnit::Watt => "WATT",
343                MeasureUnit::Kilowatt => "KILOWATT",
344                MeasureUnit::Joule => "JOULE",
345                MeasureUnit::Volt => "VOLT",
346                MeasureUnit::Ampere => "AMPERE",
347                MeasureUnit::Celsius => "CELSIUS",
348                MeasureUnit::Fahrenheit => "FAHRENHEIT",
349                MeasureUnit::Kelvin => "KELVIN",
350                MeasureUnit::Percent => "PERCENT",
351                MeasureUnit::Instruction => "INSTRUCTION",
352            }
353        }
354    }
355}
356#[derive(Clone, PartialEq, ::prost::Message)]
357pub struct TrackEventCategory {
358    #[prost(string, optional, tag="1")]
359    pub name: ::core::option::Option<::prost::alloc::string::String>,
360    #[prost(string, optional, tag="2")]
361    pub description: ::core::option::Option<::prost::alloc::string::String>,
362    #[prost(string, repeated, tag="3")]
363    pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
364}
365#[derive(Clone, PartialEq, ::prost::Message)]
366pub struct TrackEventDescriptor {
367    #[prost(message, repeated, tag="1")]
368    pub available_categories: ::prost::alloc::vec::Vec<TrackEventCategory>,
369}
370#[derive(Clone, PartialEq, ::prost::Message)]
371pub struct VmProgram {
372    #[prost(uint32, optional, tag="1")]
373    pub version: ::core::option::Option<u32>,
374    #[prost(message, repeated, tag="2")]
375    pub instructions: ::prost::alloc::vec::Vec<VmInstruction>,
376}
377#[derive(Clone, PartialEq, ::prost::Message)]
378pub struct VmInstruction {
379    #[prost(enumeration="vm_instruction::AbortLevel", optional, tag="6")]
380    pub abort_level: ::core::option::Option<i32>,
381    /// Sub-instructions executed if the current instruction succeeds
382    #[prost(message, repeated, tag="7")]
383    pub nested_instructions: ::prost::alloc::vec::Vec<VmInstruction>,
384    #[prost(oneof="vm_instruction::Operation", tags="1, 2, 3, 4, 5")]
385    pub operation: ::core::option::Option<vm_instruction::Operation>,
386}
387/// Nested message and enum types in `VmInstruction`.
388pub mod vm_instruction {
389    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
390    #[repr(i32)]
391    pub enum AbortLevel {
392        /// Skip current instruction but execute following ones
393        SkipCurrentInstruction = 1,
394        /// Skip current instruction as well as following ones (default)
395        SkipCurrentInstructionAndBreakOuter = 2,
396        /// Abort whole program
397        Abort = 3,
398    }
399    impl AbortLevel {
400        /// String value of the enum field names used in the ProtoBuf definition.
401        ///
402        /// The values are not transformed in any way and thus are considered stable
403        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
404        pub fn as_str_name(&self) -> &'static str {
405            match self {
406                AbortLevel::SkipCurrentInstruction => "SKIP_CURRENT_INSTRUCTION",
407                AbortLevel::SkipCurrentInstructionAndBreakOuter => "SKIP_CURRENT_INSTRUCTION_AND_BREAK_OUTER",
408                AbortLevel::Abort => "ABORT",
409            }
410        }
411    }
412    #[derive(Clone, PartialEq, ::prost::Oneof)]
413    pub enum Operation {
414        #[prost(message, tag="1")]
415        Select(super::VmOpSelect),
416        #[prost(message, tag="2")]
417        RegLoad(super::VmOpRegLoad),
418        #[prost(message, tag="3")]
419        Merge(super::VmOpMerge),
420        #[prost(message, tag="4")]
421        Set(super::VmOpSet),
422        #[prost(message, tag="5")]
423        Del(super::VmOpDel),
424    }
425}
426#[derive(Clone, PartialEq, ::prost::Message)]
427pub struct VmOpSelect {
428    /// Enum SRC|DST|BOTH. Default=SRC.
429    #[prost(enumeration="VmCursorEnum", optional, tag="1")]
430    pub cursor: ::core::option::Option<i32>,
431    #[prost(message, repeated, tag="2")]
432    pub relative_path: ::prost::alloc::vec::Vec<vm_op_select::PathComponent>,
433    /// Creates the submessage if doesn't exist in the DST cursor
434    /// (think of mkdir -p). Only valid when cursor=DST|BOTH.
435    #[prost(bool, optional, tag="3")]
436    pub create_if_not_exist: ::core::option::Option<bool>,
437}
438/// Nested message and enum types in `VmOpSelect`.
439pub mod vm_op_select {
440    /// A path component is either: (1) a field id to descend into (common case);
441    /// (2) an array index (for repeated fields); (3) a map lookup operation (for
442    /// repeated fields, where we snoop a sub-field as a map key)
443    #[derive(Clone, PartialEq, ::prost::Message)]
444    pub struct PathComponent {
445        // When we are selecting a leaf field, tell what's the field type
446        // to disambiguate integer types. Using uint64 by default will likely
447        // do the right thing in 99% cases (so probably we don't need to impl
448        // this until much later if somebody does a map with a fixed64 key)
449        // enum ProtoFieldType field_type = 4;  // bool | int32 | fixed32 | ...
450
451        /// Only valid when using field_id. This makes select have foreach
452        /// semantics. This means that the body of nested_instructions is
453        /// executed several times, once per each repeated submessage.
454        #[prost(bool, optional, tag="5")]
455        pub is_repeated: ::core::option::Option<bool>,
456        /// Only valid when using map_key_field_id. This defines which
457        /// register (R1..R32) should be used to match the key of the dict
458        /// in a map lookup operation.
459        /// In other words:
460        /// foreach msg in repeated message {
461        ///    if msg\[map_key_field_id\] == R\[register_to_match\] {
462        ///       break;  // Lookup succeeded, PathComponent resolves here.
463        ///    }
464        /// }
465        #[prost(uint32, optional, tag="6")]
466        pub register_to_match: ::core::option::Option<u32>,
467        /// Only valid when using field_id and is_repeated=true. When iterating
468        /// over repeated fields, stores the current iteration index into the
469        /// the register R1..R32 defined below. This can be used to do complex
470        /// operations like "find the entry in the array that has width==100,
471        /// remember its offset in the SRC array and overwrite the matching
472        /// i-th element in the DST array. We will probably never implement
473        /// this but it's here for completeness.
474        #[prost(uint32, optional, tag="7")]
475        pub store_foreach_index_into_register: ::core::option::Option<u32>,
476        #[prost(oneof="path_component::Field", tags="1, 2, 3")]
477        pub field: ::core::option::Option<path_component::Field>,
478    }
479    /// Nested message and enum types in `PathComponent`.
480    pub mod path_component {
481        #[derive(Clone, PartialEq, ::prost::Oneof)]
482        pub enum Field {
483            #[prost(uint32, tag="1")]
484            FieldId(u32),
485            #[prost(uint32, tag="2")]
486            ArrayIndex(u32),
487            /// The ID of the field in the repeated submessage that we
488            /// use as a key (e.g. LayerState.layer_id). When setting this
489            /// register_to_match must also be set, to tell what's the
490            /// expected value of the key we are looking up.
491            #[prost(uint32, tag="3")]
492            MapKeyFieldId(u32),
493        }
494    }
495}
496#[derive(Clone, PartialEq, ::prost::Message)]
497pub struct VmOpRegLoad {
498    /// SRC(default) | DST.
499    #[prost(enumeration="VmCursorEnum", optional, tag="1")]
500    pub cursor: ::core::option::Option<i32>,
501    /// 1=R1, 2=R2... 32=R32
502    #[prost(uint32, optional, tag="2")]
503    pub dst_register: ::core::option::Option<u32>,
504}
505/// Merges SRC into DST. Both need to point to a message (not a field).
506#[derive(Clone, PartialEq, ::prost::Message)]
507pub struct VmOpMerge {
508    /// When true, the merge operation will skip any field that is already
509    /// resolved as a message node in the destination tree.
510    ///
511    /// This is used to support merging of nested messages. Because ProtoVM
512    /// does not know the schema, a standard MERGE cannot distinguish
513    /// between a string and a message on the wire and it would overwrite
514    /// the entire blob, destroying granular updates.
515    ///
516    /// By setting this to true, a program can be implemented to do a
517    /// bottom-up, multi-step merge by traversing into and merging
518    /// the deepest submessages first, then moving up to the parent
519    /// message and merging it with skip_submessages = true.
520    #[prost(bool, optional, tag="1")]
521    pub skip_submessages: ::core::option::Option<bool>,
522}
523/// Copies SRC into DST. If a message, replaces the DST node, discarding any
524/// pre-existing field.
525#[derive(Clone, PartialEq, ::prost::Message)]
526pub struct VmOpSet {
527}
528/// Delete the field or message pointed by DST.
529#[derive(Clone, PartialEq, ::prost::Message)]
530pub struct VmOpDel {
531}
532#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
533#[repr(i32)]
534pub enum VmCursorEnum {
535    VmCursorUnspecified = 0,
536    VmCursorSrc = 1,
537    VmCursorDst = 2,
538    VmCursorBoth = 3,
539}
540impl VmCursorEnum {
541    /// String value of the enum field names used in the ProtoBuf definition.
542    ///
543    /// The values are not transformed in any way and thus are considered stable
544    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
545    pub fn as_str_name(&self) -> &'static str {
546        match self {
547            VmCursorEnum::VmCursorUnspecified => "VM_CURSOR_UNSPECIFIED",
548            VmCursorEnum::VmCursorSrc => "VM_CURSOR_SRC",
549            VmCursorEnum::VmCursorDst => "VM_CURSOR_DST",
550            VmCursorEnum::VmCursorBoth => "VM_CURSOR_BOTH",
551        }
552    }
553}
554/// This message is sent from Producer(s) to the tracing Service when registering
555/// to advertise their capabilities. It describes the structure of tracing
556/// protos that will be produced by the data source and the supported filters.
557#[derive(Clone, PartialEq, ::prost::Message)]
558pub struct DataSourceDescriptor {
559    /// e.g., "linux.ftrace", "chromium.tracing"
560    #[prost(string, optional, tag="1")]
561    pub name: ::core::option::Option<::prost::alloc::string::String>,
562    /// When non-zero, this is a unique ID within the scope of the Producer for
563    /// this data source (it is NOT globally unique). This is useful to
564    /// differentiate between data sources with matching names when calling
565    /// UpdateDataSource(). This field has been introduced in November 2021
566    /// (v22, Android T) and is not supported on older versions.
567    #[prost(uint64, optional, tag="7")]
568    pub id: ::core::option::Option<u64>,
569    /// When true the data source is expected to ack the stop request through the
570    /// NotifyDataSourceStopped() IPC. This field has been introduced after
571    /// Android P in Jul 2018 and is not supported on older versions.
572    #[prost(bool, optional, tag="2")]
573    pub will_notify_on_stop: ::core::option::Option<bool>,
574    /// When true the data source is expected to ack the start request through the
575    /// NotifyDataSourceStarted() IPC. This field has been introduced after
576    /// Android P in March 2019 and is not supported on older versions.
577    #[prost(bool, optional, tag="3")]
578    pub will_notify_on_start: ::core::option::Option<bool>,
579    /// If true, opt into receiving the ClearIncrementalState() IPC. This should be
580    /// set if the data source writes packets that refer to previous trace
581    /// contents, and knows how to stop referring to the already-emitted data.
582    #[prost(bool, optional, tag="4")]
583    pub handles_incremental_state_clear: ::core::option::Option<bool>,
584    /// If true, indicates that the data source does nothing upon Flush. This
585    /// allows the service to reduce the flush-related IPC traffic and better deal
586    /// with frozen producers (see go/perfetto-frozen). This is usually the case
587    /// for data sources like 'track_event' that don't have access to the various
588    /// thread task runners to post a flush task and rely purely on server-side
589    /// scraping.
590    /// Introduced in v39 / Android V.
591    #[prost(bool, optional, tag="9")]
592    pub no_flush: ::core::option::Option<bool>,
593    /// If present, the tracing service executes this program within a ProtoVM to
594    /// process overwritten packets (patches). The service computes a hash of the
595    /// program to detect and disambiguate between different versions; if multiple
596    /// versions (from different producers) are specified for the same data source,
597    /// the service instantiates a dedicated ProtoVM for each.
598    #[prost(message, optional, tag="10")]
599    pub protovm_program: ::core::option::Option<VmProgram>,
600    /// Optional specification about available GPU counters.
601    #[prost(message, optional, tag="5")]
602    pub gpu_counter_descriptor: ::core::option::Option<GpuCounterDescriptor>,
603    #[prost(message, optional, tag="6")]
604    pub track_event_descriptor: ::core::option::Option<TrackEventDescriptor>,
605    #[prost(message, optional, tag="8")]
606    pub ftrace_descriptor: ::core::option::Option<FtraceDescriptor>,
607}
608/// Reports the state of the tracing service. Used to gather details about the
609/// data sources connected.
610/// See ConsumerPort::QueryServiceState().
611#[derive(Clone, PartialEq, ::prost::Message)]
612pub struct TracingServiceState {
613    /// Lists all the producers connected.
614    #[prost(message, repeated, tag="1")]
615    pub producers: ::prost::alloc::vec::Vec<tracing_service_state::Producer>,
616    /// Lists the data sources available.
617    #[prost(message, repeated, tag="2")]
618    pub data_sources: ::prost::alloc::vec::Vec<tracing_service_state::DataSource>,
619    /// Lists the tracing sessions active AND owned by a consumer that has the same
620    /// UID of the caller (or all of them if the caller is root).
621    /// Introduced in v24 / Android T.
622    #[prost(message, repeated, tag="6")]
623    pub tracing_sessions: ::prost::alloc::vec::Vec<tracing_service_state::TracingSession>,
624    /// This is always set to true from v24 and beyond. This flag is only used to
625    /// tell the difference between: (1) talking to a recent service which happens
626    /// to have no tracing session active; (2) talking to an older version of the
627    /// service which will never report any tracing session.
628    #[prost(bool, optional, tag="7")]
629    pub supports_tracing_sessions: ::core::option::Option<bool>,
630    /// Total number of tracing sessions.
631    #[prost(int32, optional, tag="3")]
632    pub num_sessions: ::core::option::Option<i32>,
633    /// Number of tracing sessions in the started state. Always <= num_sessions.
634    #[prost(int32, optional, tag="4")]
635    pub num_sessions_started: ::core::option::Option<i32>,
636    /// The version of traced (the same returned by `traced --version`).
637    /// This is a human readable string with and its format varies depending on
638    /// the build system and the repo (standalone vs AOSP).
639    /// This is intended for human debugging only.
640    #[prost(string, optional, tag="5")]
641    pub tracing_service_version: ::core::option::Option<::prost::alloc::string::String>,
642}
643/// Nested message and enum types in `TracingServiceState`.
644pub mod tracing_service_state {
645    /// Describes a producer process.
646    #[derive(Clone, PartialEq, ::prost::Message)]
647    pub struct Producer {
648        /// Unique ID of the producer (monotonic counter).
649        #[prost(int32, optional, tag="1")]
650        pub id: ::core::option::Option<i32>,
651        /// Typically matches the process name.
652        #[prost(string, optional, tag="2")]
653        pub name: ::core::option::Option<::prost::alloc::string::String>,
654        /// Unix pid of the remote process. Supported only on Linux-based systems.
655        /// Introduced in v24 / Android T.
656        #[prost(int32, optional, tag="5")]
657        pub pid: ::core::option::Option<i32>,
658        /// Unix uid of the remote process.
659        #[prost(int32, optional, tag="3")]
660        pub uid: ::core::option::Option<i32>,
661        /// The version of the client library used by the producer.
662        /// This is a human readable string with and its format varies depending on
663        /// the build system and the repo (standalone vs AOSP).
664        /// This is intended for human debugging only.
665        #[prost(string, optional, tag="4")]
666        pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
667        /// Returns true if the process appears to be frozen (Android only).
668        /// Introduced in Perfetto V49 / Android 24Q4.
669        #[prost(bool, optional, tag="6")]
670        pub frozen: ::core::option::Option<bool>,
671    }
672    /// Describes a data source registered by a producer. Data sources are listed
673    /// regardless of the fact that they are being used or not.
674    #[derive(Clone, PartialEq, ::prost::Message)]
675    pub struct DataSource {
676        /// Descriptor passed by the data source when calling RegisterDataSource().
677        #[prost(message, optional, tag="1")]
678        pub ds_descriptor: ::core::option::Option<super::DataSourceDescriptor>,
679        /// ID of the producer, as per Producer.id.
680        #[prost(int32, optional, tag="2")]
681        pub producer_id: ::core::option::Option<i32>,
682    }
683    #[derive(Clone, PartialEq, ::prost::Message)]
684    pub struct TracingSession {
685        /// The TracingSessionID.
686        #[prost(uint64, optional, tag="1")]
687        pub id: ::core::option::Option<u64>,
688        /// The Unix uid of the consumer that started the session.
689        /// This is meaningful only if the caller is root. In all other cases only
690        /// tracing sessions that match the caller UID will be displayed.
691        #[prost(int32, optional, tag="2")]
692        pub consumer_uid: ::core::option::Option<i32>,
693        /// Internal state of the tracing session.
694        /// These strings are FYI only and subjected to change.
695        #[prost(string, optional, tag="3")]
696        pub state: ::core::option::Option<::prost::alloc::string::String>,
697        /// The unique_session_name as set in the trace config (might be empty).
698        #[prost(string, optional, tag="4")]
699        pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
700        /// The number and size of each buffer.
701        #[prost(uint32, repeated, packed="false", tag="5")]
702        pub buffer_size_kb: ::prost::alloc::vec::Vec<u32>,
703        /// Duration, as specified in the TraceConfig.duration_ms.
704        #[prost(uint32, optional, tag="6")]
705        pub duration_ms: ::core::option::Option<u32>,
706        /// Number of data sources involved in the session.
707        #[prost(uint32, optional, tag="7")]
708        pub num_data_sources: ::core::option::Option<u32>,
709        /// Time when the session was started, in the CLOCK_REALTIME domain.
710        /// Available only on Linux-based systems.
711        #[prost(int64, optional, tag="8")]
712        pub start_realtime_ns: ::core::option::Option<i64>,
713        // The fields below have been introduced in v42.
714
715        /// The bugreport_score, as set in TraceConfig.bugreport_score.
716        #[prost(int32, optional, tag="9")]
717        pub bugreport_score: ::core::option::Option<i32>,
718        /// As per TraceConfig.bugreport_filename.
719        #[prost(string, optional, tag="10")]
720        pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
721        /// If true, the session is in the STARTED state. If false the session is in
722        /// any other state (see `state` field).
723        #[prost(bool, optional, tag="11")]
724        pub is_started: ::core::option::Option<bool>,
725    }
726}
727#[derive(Clone, PartialEq, ::prost::Message)]
728pub struct TracingServiceCapabilities {
729    /// Whether the service supports QueryCapabilities() at all or not.
730    /// This is only used at the C++ level to distinguish the case of talking to
731    /// an older version of the service that doesn't support QueryCapabilities().
732    /// In that case the IPC layer will just reject the unknown call, and the
733    /// consumer_ipc_client_impl.cc will return an empty message where this field
734    /// is false. In all other cases, this is always set to true.
735    #[prost(bool, optional, tag="1")]
736    pub has_query_capabilities: ::core::option::Option<bool>,
737    /// The set of known events that can be passed to ConsumerPort.ObserveEvents().
738    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="2")]
739    pub observable_events: ::prost::alloc::vec::Vec<i32>,
740    /// Whether the service supports TraceConfig.output_path (for asking traced to
741    /// create the output file instead of passing a file descriptor).
742    #[prost(bool, optional, tag="3")]
743    pub has_trace_config_output_path: ::core::option::Option<bool>,
744    /// Whether the service supports CloneSession and CLONE_SNAPSHOT triggers.
745    #[prost(bool, optional, tag="4")]
746    pub has_clone_session: ::core::option::Option<bool>,
747}
748/// Statistics for the internals of the tracing service.
749///
750/// Next id: 19.
751#[derive(Clone, PartialEq, ::prost::Message)]
752pub struct TraceStats {
753    /// Stats for the TraceBuffer(s) of the current trace session.
754    #[prost(message, repeated, tag="1")]
755    pub buffer_stats: ::prost::alloc::vec::Vec<trace_stats::BufferStats>,
756    /// The thresholds of each the `writer_stats` histogram buckets. This is
757    /// emitted only once as all WriterStats share the same bucket layout.
758    /// This field has the same cardinality of the
759    /// `writer_stats.chunk_payload_histogram_{counts,sum}` - 1.
760    /// (The -1 is because the last overflow bucket is not reported in the _def).
761    /// An array of values [10, 100, 1000] in the _def array means that there are
762    /// four buckets (3 + the implicit overflow bucket):
763    /// \[0\]: x <= 10; \[1\]: 100 < x <= 1000; \[2\]: 1000 < x <= 1000; \[3\]: x > 1000.
764    #[prost(int64, repeated, packed="false", tag="17")]
765    pub chunk_payload_histogram_def: ::prost::alloc::vec::Vec<i64>,
766    #[prost(message, repeated, tag="18")]
767    pub writer_stats: ::prost::alloc::vec::Vec<trace_stats::WriterStats>,
768    /// Num. producers connected (whether they are involved in the current tracing
769    /// session or not).
770    #[prost(uint32, optional, tag="2")]
771    pub producers_connected: ::core::option::Option<u32>,
772    /// Num. producers ever seen for all trace sessions since startup (it's a good
773    /// proxy for inferring num. producers crashed / killed).
774    #[prost(uint64, optional, tag="3")]
775    pub producers_seen: ::core::option::Option<u64>,
776    /// Num. data sources registered for all trace sessions.
777    #[prost(uint32, optional, tag="4")]
778    pub data_sources_registered: ::core::option::Option<u32>,
779    /// Num. data sources ever seen for all trace sessions since startup.
780    #[prost(uint64, optional, tag="5")]
781    pub data_sources_seen: ::core::option::Option<u64>,
782    /// Num. concurrently active tracing sessions.
783    #[prost(uint32, optional, tag="6")]
784    pub tracing_sessions: ::core::option::Option<u32>,
785    /// Num. buffers for all tracing session (not just the current one). This will
786    /// be >= buffer_stats.size(), because the latter is only about the current
787    /// session.
788    #[prost(uint32, optional, tag="7")]
789    pub total_buffers: ::core::option::Option<u32>,
790    // The fields below have been introduced in Android Q.
791
792    /// Num. chunks that were discarded by the service before attempting to commit
793    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
794    #[prost(uint64, optional, tag="8")]
795    pub chunks_discarded: ::core::option::Option<u64>,
796    /// Num. patches that were discarded by the service before attempting to apply
797    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
798    #[prost(uint64, optional, tag="9")]
799    pub patches_discarded: ::core::option::Option<u64>,
800    /// Packets that failed validation of the TrustedPacket. If this is > 0, there
801    /// is a bug in the producer.
802    #[prost(uint64, optional, tag="10")]
803    pub invalid_packets: ::core::option::Option<u64>,
804    #[prost(message, optional, tag="11")]
805    pub filter_stats: ::core::option::Option<trace_stats::FilterStats>,
806    /// Count of Flush() requests (either from the Consumer, or self-induced
807    /// periodic flushes). The final Flush() is also included in the count.
808    #[prost(uint64, optional, tag="12")]
809    pub flushes_requested: ::core::option::Option<u64>,
810    /// The count of the Flush() requests that were completed successfully.
811    /// In a well behaving trace this should always be == `flush_requests`.
812    #[prost(uint64, optional, tag="13")]
813    pub flushes_succeeded: ::core::option::Option<u64>,
814    /// The count of the Flush() requests that failed (in most timed out).
815    /// In a well behaving trace this should always be == 0.
816    #[prost(uint64, optional, tag="14")]
817    pub flushes_failed: ::core::option::Option<u64>,
818    #[prost(enumeration="trace_stats::FinalFlushOutcome", optional, tag="15")]
819    pub final_flush_outcome: ::core::option::Option<i32>,
820}
821/// Nested message and enum types in `TraceStats`.
822pub mod trace_stats {
823    /// From TraceBuffer::Stats.
824    ///
825    /// Next id: 22.
826    #[derive(Clone, PartialEq, ::prost::Message)]
827    pub struct BufferStats {
828        /// Size of the circular buffer in bytes.
829        #[prost(uint64, optional, tag="12")]
830        pub buffer_size: ::core::option::Option<u64>,
831        /// Num. bytes written into the circular buffer, including chunk headers.
832        #[prost(uint64, optional, tag="1")]
833        pub bytes_written: ::core::option::Option<u64>,
834        /// Num. bytes overwritten before they have been read (i.e. loss of data).
835        #[prost(uint64, optional, tag="13")]
836        pub bytes_overwritten: ::core::option::Option<u64>,
837        /// Total size of chunks that were fully read from the circular buffer by the
838        /// consumer. This may not be equal to |bytes_written| either in the middle
839        /// of tracing, or if |chunks_overwritten| is non-zero. Note that this is the
840        /// size of the chunks read from the buffer, including chunk headers, which
841        /// will be different from the total size of packets returned to the
842        /// consumer.
843        ///
844        /// The current utilization of the trace buffer (mid-tracing) can be obtained
845        /// by subtracting |bytes_read| and |bytes_overwritten| from |bytes_written|,
846        /// adding the difference of |padding_bytes_written| and
847        /// |padding_bytes_cleared|, and comparing this sum to the |buffer_size|.
848        /// Note that this represents the total size of buffered data in the buffer,
849        /// yet this data may be spread non-contiguously through the buffer and may
850        /// be overridden before the utilization reaches 100%.
851        #[prost(uint64, optional, tag="14")]
852        pub bytes_read: ::core::option::Option<u64>,
853        /// Num. bytes that were allocated as padding between chunks in the circular
854        /// buffer.
855        #[prost(uint64, optional, tag="15")]
856        pub padding_bytes_written: ::core::option::Option<u64>,
857        /// Num. of padding bytes that were removed from the circular buffer when
858        /// they were overwritten.
859        ///
860        /// The difference between |padding_bytes_written| and
861        /// |padding_bytes_cleared| denotes the total size of padding currently
862        /// present in the buffer.
863        #[prost(uint64, optional, tag="16")]
864        pub padding_bytes_cleared: ::core::option::Option<u64>,
865        /// Num. chunks (!= packets) written into the buffer.
866        #[prost(uint64, optional, tag="2")]
867        pub chunks_written: ::core::option::Option<u64>,
868        /// Num. chunks (!= packets) rewritten into the buffer. This means we rewrote
869        /// the same chunk with additional packets appended to the end.
870        #[prost(uint64, optional, tag="10")]
871        pub chunks_rewritten: ::core::option::Option<u64>,
872        /// Num. chunks overwritten before they have been read (i.e. loss of data).
873        #[prost(uint64, optional, tag="3")]
874        pub chunks_overwritten: ::core::option::Option<u64>,
875        /// Num. chunks discarded (i.e. loss of data). Can be > 0 only when a buffer
876        /// is configured with FillPolicy == DISCARD.
877        #[prost(uint64, optional, tag="18")]
878        pub chunks_discarded: ::core::option::Option<u64>,
879        /// Num. chunks (!= packets) that were fully read from the circular buffer by
880        /// the consumer. This may not be equal to |chunks_written| either in the
881        /// middle of tracing, or if |chunks_overwritten| is non-zero.
882        #[prost(uint64, optional, tag="17")]
883        pub chunks_read: ::core::option::Option<u64>,
884        /// Num. chunks that were committed out of order.
885        #[prost(uint64, optional, tag="11")]
886        pub chunks_committed_out_of_order: ::core::option::Option<u64>,
887        /// Num. times the ring buffer wrapped around.
888        #[prost(uint64, optional, tag="4")]
889        pub write_wrap_count: ::core::option::Option<u64>,
890        /// Num. out-of-band (OOB) patches that succeeded.
891        #[prost(uint64, optional, tag="5")]
892        pub patches_succeeded: ::core::option::Option<u64>,
893        /// Num. OOB patches that failed (e.g., the chunk to patch was gone).
894        #[prost(uint64, optional, tag="6")]
895        pub patches_failed: ::core::option::Option<u64>,
896        /// Num. readaheads (for large multi-chunk packet reads) that ended up in a
897        /// successful packet read.
898        #[prost(uint64, optional, tag="7")]
899        pub readaheads_succeeded: ::core::option::Option<u64>,
900        /// Num. readaheads aborted because of missing chunks in the sequence stream.
901        /// Note that a small number > 0 is totally expected: occasionally, when
902        /// issuing a read, the very last packet in a sequence might be incomplete
903        /// (because the producer is still writing it while we read). The read will
904        /// stop at that point, for that sequence, increasing this counter.
905        #[prost(uint64, optional, tag="8")]
906        pub readaheads_failed: ::core::option::Option<u64>,
907        /// Num. of violations of the SharedMemoryABI found while writing or reading
908        /// the buffer. This is an indication of either a bug in the producer(s) or
909        /// malicious producer(s).
910        #[prost(uint64, optional, tag="9")]
911        pub abi_violations: ::core::option::Option<u64>,
912        // The fields below have been introduced in Android R.
913
914        /// Num. of times the service detected packet loss on a trace writer
915        /// sequence. This is usually caused by exhaustion of available chunks in the
916        /// writer process's SMB. Note that this relies on the client's TraceWriter
917        /// indicating this loss to the service -- packets lost for other reasons are
918        /// not reflected in this stat.
919        #[prost(uint64, optional, tag="19")]
920        pub trace_writer_packet_loss: ::core::option::Option<u64>,
921        #[prost(message, optional, tag="21")]
922        pub shadow_buffer_stats: ::core::option::Option<buffer_stats::ShadowBufferStats>,
923    }
924    /// Nested message and enum types in `BufferStats`.
925    pub mod buffer_stats {
926        /// Statistics for TRACE_BUFFER_V2_SHADOW_MODE comparison.
927        /// Only populated when the buffer is configured with shadow mode.
928        #[derive(Clone, PartialEq, ::prost::Message)]
929        pub struct ShadowBufferStats {
930            /// Total num. packets read. This is not affected by capping of the hasher
931            /// to 32K elements.
932            #[prost(uint64, optional, tag="1")]
933            pub packets_seen: ::core::option::Option<u64>,
934            // The stats below are keps only for 32k packets. After reading 32K
935            // packets hashes are randomly evicted and that might lead to slightly
936            // inconsistent results.
937
938            /// Num. packets found in both V1 and V2 buffers (matched by content hash).
939            #[prost(uint64, optional, tag="2")]
940            pub packets_in_both: ::core::option::Option<u64>,
941            /// Num. packets found only in V1 buffer but not in V2.
942            #[prost(uint64, optional, tag="3")]
943            pub packets_only_v1: ::core::option::Option<u64>,
944            /// Num. packets found only in V2 buffer but not in V1.
945            #[prost(uint64, optional, tag="4")]
946            pub packets_only_v2: ::core::option::Option<u64>,
947            /// Num. patch operations attempted.
948            #[prost(uint64, optional, tag="5")]
949            pub patches_attempted: ::core::option::Option<u64>,
950            /// Num. patches that succeeded on V1 buffer.
951            #[prost(uint64, optional, tag="6")]
952            pub v1_patches_succeeded: ::core::option::Option<u64>,
953            /// Num. patches that succeeded on V2 buffer.
954            #[prost(uint64, optional, tag="7")]
955            pub v2_patches_succeeded: ::core::option::Option<u64>,
956            /// This is to distinguish the updated calculations after fixing the
957            /// hashes. This field is either empty or "2"
958            #[prost(uint32, optional, tag="8")]
959            pub stats_version: ::core::option::Option<u32>,
960        }
961    }
962    /// Per TraceWriter stat. Each {producer, trace writer} tuple is publicly
963    /// visible as a unique sequence ID in the trace.
964    #[derive(Clone, PartialEq, ::prost::Message)]
965    pub struct WriterStats {
966        /// This matches the TracePacket.trusted_packet_sequence_id and is used to
967        /// correlate the stats with the actual packet types.
968        #[prost(uint64, optional, tag="1")]
969        pub sequence_id: ::core::option::Option<u64>,
970        /// The buffer index (0..N, as defined in the TraceConfig).
971        #[prost(uint32, optional, tag="4")]
972        pub buffer: ::core::option::Option<u32>,
973        /// These two arrays have the same cardinality and match the cardinality of
974        /// chunk_payload_histogram_def + 1 (for the overflow bucket, see below).
975        /// `sum` contains the SUM(entries) and `counts` contains the COUNT(entries)
976        /// for each bucket.
977        #[prost(uint64, repeated, tag="2")]
978        pub chunk_payload_histogram_counts: ::prost::alloc::vec::Vec<u64>,
979        #[prost(int64, repeated, tag="3")]
980        pub chunk_payload_histogram_sum: ::prost::alloc::vec::Vec<i64>,
981    }
982    /// This is set only when the TraceConfig specifies a TraceFilter.
983    #[derive(Clone, PartialEq, ::prost::Message)]
984    pub struct FilterStats {
985        #[prost(uint64, optional, tag="1")]
986        pub input_packets: ::core::option::Option<u64>,
987        #[prost(uint64, optional, tag="2")]
988        pub input_bytes: ::core::option::Option<u64>,
989        #[prost(uint64, optional, tag="3")]
990        pub output_bytes: ::core::option::Option<u64>,
991        #[prost(uint64, optional, tag="4")]
992        pub errors: ::core::option::Option<u64>,
993        #[prost(uint64, optional, tag="5")]
994        pub time_taken_ns: ::core::option::Option<u64>,
995        /// The number of bytes discarded by the filter (i.e. output - input).
996        /// The array has one entry for each buffer defined in the config (unless no
997        /// packets for that buffer were seen and hence filtered).
998        /// Note: the SUM(bytes_discarded_per_buffer) will be <= but not == the total
999        /// (output_bytes - input_bytes) because the filter might also discard
1000        /// server-generated synthetic packets, that have no buffer index.
1001        #[prost(uint64, repeated, packed="false", tag="20")]
1002        pub bytes_discarded_per_buffer: ::prost::alloc::vec::Vec<u64>,
1003    }
1004    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1005    #[repr(i32)]
1006    pub enum FinalFlushOutcome {
1007        FinalFlushUnspecified = 0,
1008        FinalFlushSucceeded = 1,
1009        FinalFlushFailed = 2,
1010    }
1011    impl FinalFlushOutcome {
1012        /// String value of the enum field names used in the ProtoBuf definition.
1013        ///
1014        /// The values are not transformed in any way and thus are considered stable
1015        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1016        pub fn as_str_name(&self) -> &'static str {
1017            match self {
1018                FinalFlushOutcome::FinalFlushUnspecified => "FINAL_FLUSH_UNSPECIFIED",
1019                FinalFlushOutcome::FinalFlushSucceeded => "FINAL_FLUSH_SUCCEEDED",
1020                FinalFlushOutcome::FinalFlushFailed => "FINAL_FLUSH_FAILED",
1021            }
1022        }
1023    }
1024}
1025/// Builtin clock domains used in Perfetto traces.
1026///
1027/// The default trace time clock is BUILTIN_CLOCK_TRACE_FILE: a synthetic clock
1028/// representing the trace file's own timeline. Each trace file gets its own
1029/// instance (scoped by trace file index).
1030///
1031/// For backwards compatibility, Perfetto proto traces register BOOTTIME as a
1032/// fallback: if the first timestamp conversion uses a clock other than the
1033/// trace file clock and no explicit clock snapshot data exists, the trace time
1034/// is switched to BOOTTIME. This fallback does not fire for modern traces that
1035/// include ClockSnapshots or that only use the trace file clock directly.
1036///
1037/// The `primary_trace_clock` field in ClockSnapshot can definitively override
1038/// the trace time clock regardless of the above.
1039#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1040#[repr(i32)]
1041pub enum BuiltinClock {
1042    Unknown = 0,
1043    /// Corresponds to CLOCK_REALTIME. See clock_gettime(2).
1044    Realtime = 1,
1045    /// Corresponds to CLOCK_REALTIME_COARSE. See clock_gettime(2).
1046    RealtimeCoarse = 2,
1047    /// Corresponds to CLOCK_MONOTONIC. See clock_gettime(2).
1048    Monotonic = 3,
1049    /// Corresponds to CLOCK_MONOTONIC_COARSE. See clock_gettime(2).
1050    MonotonicCoarse = 4,
1051    /// Corresponds to CLOCK_MONOTONIC_RAW. See clock_gettime(2).
1052    MonotonicRaw = 5,
1053    /// Corresponds to CLOCK_BOOTTIME. See clock_gettime(2).
1054    /// For proto traces, this is used as a backwards-compatible fallback trace
1055    /// time clock when no explicit clock snapshots are present.
1056    Boottime = 6,
1057    /// TSC (Time Stamp Counter). Architecture-specific high-resolution counter.
1058    Tsc = 9,
1059    /// Corresponds to the perf event clock (PERF_CLOCK).
1060    Perf = 10,
1061    /// A synthetic clock representing the trace file's own timeline. Each trace
1062    /// file gets its own instance (scoped by trace file index). This is the
1063    /// default trace time clock before any clock snapshot or format-specific
1064    /// override takes effect.
1065    TraceFile = 11,
1066    MaxId = 63,
1067}
1068impl BuiltinClock {
1069    /// String value of the enum field names used in the ProtoBuf definition.
1070    ///
1071    /// The values are not transformed in any way and thus are considered stable
1072    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1073    pub fn as_str_name(&self) -> &'static str {
1074        match self {
1075            BuiltinClock::Unknown => "BUILTIN_CLOCK_UNKNOWN",
1076            BuiltinClock::Realtime => "BUILTIN_CLOCK_REALTIME",
1077            BuiltinClock::RealtimeCoarse => "BUILTIN_CLOCK_REALTIME_COARSE",
1078            BuiltinClock::Monotonic => "BUILTIN_CLOCK_MONOTONIC",
1079            BuiltinClock::MonotonicCoarse => "BUILTIN_CLOCK_MONOTONIC_COARSE",
1080            BuiltinClock::MonotonicRaw => "BUILTIN_CLOCK_MONOTONIC_RAW",
1081            BuiltinClock::Boottime => "BUILTIN_CLOCK_BOOTTIME",
1082            BuiltinClock::Tsc => "BUILTIN_CLOCK_TSC",
1083            BuiltinClock::Perf => "BUILTIN_CLOCK_PERF",
1084            BuiltinClock::TraceFile => "BUILTIN_CLOCK_TRACE_FILE",
1085            BuiltinClock::MaxId => "BUILTIN_CLOCK_MAX_ID",
1086        }
1087    }
1088}
1089/// Semantic types for string fields. This tells the filter what kind of
1090/// data the field contains, so it can apply the right filtering rules.
1091/// See /rfcs/0011-subset-string-filter-rules.md for design details.
1092/// Introduced in: Perfetto v54.
1093#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1094#[repr(i32)]
1095pub enum SemanticType {
1096    Unspecified = 0,
1097    Atrace = 1,
1098    Job = 2,
1099    Wakelock = 3,
1100}
1101impl SemanticType {
1102    /// String value of the enum field names used in the ProtoBuf definition.
1103    ///
1104    /// The values are not transformed in any way and thus are considered stable
1105    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1106    pub fn as_str_name(&self) -> &'static str {
1107        match self {
1108            SemanticType::Unspecified => "SEMANTIC_TYPE_UNSPECIFIED",
1109            SemanticType::Atrace => "SEMANTIC_TYPE_ATRACE",
1110            SemanticType::Job => "SEMANTIC_TYPE_JOB",
1111            SemanticType::Wakelock => "SEMANTIC_TYPE_WAKELOCK",
1112        }
1113    }
1114}
1115/// Options for the android.aflags data source.
1116/// This data source captures snapshots of Android aconfig flags.
1117/// See <https://source.android.com/docs/setup/build/feature-flagging/declare-flag>
1118/// for more information on aconfig flags.
1119#[derive(Clone, PartialEq, ::prost::Message)]
1120pub struct AndroidAflagsConfig {
1121    /// Frequency of polling. If absent or 0, the state will be recorded once,
1122    /// at the start of the trace.
1123    ///
1124    /// It is recommended to either leave this absent or set it to a large
1125    /// value as each invocation of the `aflags` tool can be time consuming
1126    /// (approx. 350ms) and also triggers an expensive flush. This is required to
1127    /// be > 1000ms if set, to avoid excessive CPU usage.
1128    #[prost(uint32, optional, tag="1")]
1129    pub poll_ms: ::core::option::Option<u32>,
1130}
1131/// Data source that lists game modes and game interventions of games
1132/// on an Android device.
1133#[derive(Clone, PartialEq, ::prost::Message)]
1134pub struct AndroidGameInterventionListConfig {
1135    /// If not empty, emit info about only the following list of package names
1136    /// (exact match, no regex). Otherwise, emit info about all packages.
1137    #[prost(string, repeated, tag="1")]
1138    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1139}
1140/// Custom configuration for the "android.input.inputevent" data source.
1141///
1142/// NOTE: Input traces can only be taken on debuggable (userdebug/eng) builds!
1143///
1144/// Next ID: 5
1145#[derive(Clone, PartialEq, ::prost::Message)]
1146pub struct AndroidInputEventConfig {
1147    /// The tracing mode to use. If unspecified, it will default to
1148    /// TRACE_MODE_USE_RULES.
1149    #[prost(enumeration="android_input_event_config::TraceMode", optional, tag="1")]
1150    pub mode: ::core::option::Option<i32>,
1151    /// The list of rules to use to determine the trace level of events.
1152    /// Each event will be traced using the TraceLevel of the first rule that it
1153    /// triggers from this list. The rules are evaluated in the order in which they
1154    /// are specified. If an event does not match any of the rules,
1155    /// TRACE_LEVEL_NONE will be used by default.
1156    #[prost(message, repeated, tag="2")]
1157    pub rules: ::prost::alloc::vec::Vec<android_input_event_config::TraceRule>,
1158    // --- Control flags ---
1159
1160    /// Trace input events processed by the system as they are being dispatched
1161    /// to application windows. All trace rules will apply.
1162    ///    - If this flag is used without enabling trace_dispatcher_window_dispatch,
1163    ///    it will
1164    ///      trace InputDispatcher's inbound events (which does not include events
1165    ///      synthesized within InputDispatcher) that match the rules.
1166    ///    - If used with trace_dispatcher_window_dispatch, all inbound and outbound
1167    ///    events
1168    ///      matching the rules, including all events synthesized within
1169    ///      InputDispatcher, will be traced.
1170    #[prost(bool, optional, tag="3")]
1171    pub trace_dispatcher_input_events: ::core::option::Option<bool>,
1172    /// Trace details about which windows the system is sending each input event
1173    /// to. All trace rules will apply.
1174    #[prost(bool, optional, tag="4")]
1175    pub trace_dispatcher_window_dispatch: ::core::option::Option<bool>,
1176}
1177/// Nested message and enum types in `AndroidInputEventConfig`.
1178pub mod android_input_event_config {
1179    /// A rule that specifies the TraceLevel for an event based on matching
1180    /// conditions. All matchers in the rule are optional. To trigger this rule, an
1181    /// event must match all of its specified matchers (i.e. the matchers function
1182    /// like a series of conditions connected by a logical 'AND' operator). A rule
1183    /// with no specified matchers will match all events. Next ID: 6
1184    #[derive(Clone, PartialEq, ::prost::Message)]
1185    pub struct TraceRule {
1186        /// The trace level to be used for events that trigger this rule.
1187        /// If unspecified, TRACE_LEVEL_NONE will be used by default.
1188        #[prost(enumeration="TraceLevel", optional, tag="1")]
1189        pub trace_level: ::core::option::Option<i32>,
1190        // --- Optional Matchers ---
1191
1192        /// Package matchers
1193        ///
1194        /// Respectively matches if all or any of the target apps for this event are
1195        /// contained in the specified list of package names.
1196        ///
1197        /// Intended usage:
1198        ///    - Use match_all_packages to selectively allow tracing for the listed
1199        ///    packages.
1200        ///    - Use match_any_packages to selectively deny tracing for certain
1201        ///    packages.
1202        ///
1203        /// WARNING: Great care must be taken when designing rules for field tracing!
1204        ///           This is because each event is almost always sent to more than
1205        ///           one app.
1206        ///               For example, when allowing tracing for a package that has a
1207        ///               spy window
1208        ///           over the display (e.g. SystemUI) using match_any_packages,
1209        ///           essentially all input will be recorded on that display. This is
1210        ///           because the events will be sent to the spy as well as the
1211        ///           foreground app, and regardless of what the foreground app is,
1212        ///           the event will end up being traced.
1213        ///               Alternatively, when attempting to block tracing for specific
1214        ///               packages using
1215        ///           match_all_packages, no events will likely be blocked. This is
1216        ///           because the event will also be sent to other apps (such as, but
1217        ///           not limited to, ones with spy windows), so the matcher will not
1218        ///           match unless all other targets are also listed under the
1219        ///           match_all_packages list.
1220        #[prost(string, repeated, tag="2")]
1221        pub match_all_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1222        #[prost(string, repeated, tag="3")]
1223        pub match_any_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1224        /// Matches if the event is secure, which means that at least one of the
1225        /// targets of this event is using the window flag FLAG_SECURE.
1226        #[prost(bool, optional, tag="4")]
1227        pub match_secure: ::core::option::Option<bool>,
1228        /// Matches if there was an active IME connection while this event was being
1229        /// processed.
1230        #[prost(bool, optional, tag="5")]
1231        pub match_ime_connection_active: ::core::option::Option<bool>,
1232    }
1233    /// Trace modes are tracing presets that are included in the system.
1234    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1235    #[repr(i32)]
1236    pub enum TraceMode {
1237        /// Preset mode for maximal tracing.
1238        /// WARNING: This will bypass all privacy measures on debuggable builds, and
1239        /// will record all
1240        ///           input events processed by the system, regardless of the context
1241        ///           in which they were processed. It should only be used for tracing
1242        ///           on a local device or for tests. It should NEVER be used for
1243        ///           field tracing.
1244        TraceAll = 0,
1245        /// Use the tracing rules defined in this config to specify what events to
1246        /// trace.
1247        UseRules = 1,
1248    }
1249    impl TraceMode {
1250        /// String value of the enum field names used in the ProtoBuf definition.
1251        ///
1252        /// The values are not transformed in any way and thus are considered stable
1253        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1254        pub fn as_str_name(&self) -> &'static str {
1255            match self {
1256                TraceMode::TraceAll => "TRACE_MODE_TRACE_ALL",
1257                TraceMode::UseRules => "TRACE_MODE_USE_RULES",
1258            }
1259        }
1260    }
1261    /// The level of tracing that should be applied to an event.
1262    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1263    #[repr(i32)]
1264    pub enum TraceLevel {
1265        /// Do not trace the input event.
1266        None = 0,
1267        /// Trace the event as a redacted event, where certain sensitive fields are
1268        /// omitted from the trace, including the coordinates of pointer events and
1269        /// the key/scan codes of key events.
1270        Redacted = 1,
1271        /// Trace the complete event.
1272        Complete = 2,
1273    }
1274    impl TraceLevel {
1275        /// String value of the enum field names used in the ProtoBuf definition.
1276        ///
1277        /// The values are not transformed in any way and thus are considered stable
1278        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1279        pub fn as_str_name(&self) -> &'static str {
1280            match self {
1281                TraceLevel::None => "TRACE_LEVEL_NONE",
1282                TraceLevel::Redacted => "TRACE_LEVEL_REDACTED",
1283                TraceLevel::Complete => "TRACE_LEVEL_COMPLETE",
1284            }
1285        }
1286    }
1287}
1288/// Values from NDK's android/log.h.
1289#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1290#[repr(i32)]
1291pub enum AndroidLogId {
1292    /// MAIN.
1293    LidDefault = 0,
1294    LidRadio = 1,
1295    LidEvents = 2,
1296    LidSystem = 3,
1297    LidCrash = 4,
1298    LidStats = 5,
1299    LidSecurity = 6,
1300    LidKernel = 7,
1301}
1302impl AndroidLogId {
1303    /// String value of the enum field names used in the ProtoBuf definition.
1304    ///
1305    /// The values are not transformed in any way and thus are considered stable
1306    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1307    pub fn as_str_name(&self) -> &'static str {
1308        match self {
1309            AndroidLogId::LidDefault => "LID_DEFAULT",
1310            AndroidLogId::LidRadio => "LID_RADIO",
1311            AndroidLogId::LidEvents => "LID_EVENTS",
1312            AndroidLogId::LidSystem => "LID_SYSTEM",
1313            AndroidLogId::LidCrash => "LID_CRASH",
1314            AndroidLogId::LidStats => "LID_STATS",
1315            AndroidLogId::LidSecurity => "LID_SECURITY",
1316            AndroidLogId::LidKernel => "LID_KERNEL",
1317        }
1318    }
1319}
1320#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1321#[repr(i32)]
1322pub enum AndroidLogPriority {
1323    PrioUnspecified = 0,
1324    /// _DEFAULT, but should never be seen in logs.
1325    PrioUnused = 1,
1326    PrioVerbose = 2,
1327    PrioDebug = 3,
1328    PrioInfo = 4,
1329    PrioWarn = 5,
1330    PrioError = 6,
1331    PrioFatal = 7,
1332}
1333impl AndroidLogPriority {
1334    /// String value of the enum field names used in the ProtoBuf definition.
1335    ///
1336    /// The values are not transformed in any way and thus are considered stable
1337    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1338    pub fn as_str_name(&self) -> &'static str {
1339        match self {
1340            AndroidLogPriority::PrioUnspecified => "PRIO_UNSPECIFIED",
1341            AndroidLogPriority::PrioUnused => "PRIO_UNUSED",
1342            AndroidLogPriority::PrioVerbose => "PRIO_VERBOSE",
1343            AndroidLogPriority::PrioDebug => "PRIO_DEBUG",
1344            AndroidLogPriority::PrioInfo => "PRIO_INFO",
1345            AndroidLogPriority::PrioWarn => "PRIO_WARN",
1346            AndroidLogPriority::PrioError => "PRIO_ERROR",
1347            AndroidLogPriority::PrioFatal => "PRIO_FATAL",
1348        }
1349    }
1350}
1351#[derive(Clone, PartialEq, ::prost::Message)]
1352pub struct AndroidLogConfig {
1353    #[prost(enumeration="AndroidLogId", repeated, packed="false", tag="1")]
1354    pub log_ids: ::prost::alloc::vec::Vec<i32>,
1355    /// If set ignores all log messages whose prio is < the given value.
1356    #[prost(enumeration="AndroidLogPriority", optional, tag="3")]
1357    pub min_prio: ::core::option::Option<i32>,
1358    /// If non-empty ignores all log messages whose tag doesn't match one of the
1359    /// specified values.
1360    #[prost(string, repeated, tag="4")]
1361    pub filter_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1362    /// If true, includes the contents of the logcat buffers that were already
1363    /// present before the data source started. By default (false), only new
1364    /// log entries produced after the data source starts are recorded.
1365    /// Can be useful for boot traces or situations where logs from before
1366    /// traced started are important.
1367    #[prost(bool, optional, tag="5")]
1368    pub preserve_log_buffer: ::core::option::Option<bool>,
1369}
1370/// Data source that polls for display state. This should only be used for
1371/// backward-compatibility; AndroidSystemPropertyConfig should be preferred.
1372#[derive(Clone, PartialEq, ::prost::Message)]
1373pub struct AndroidPolledStateConfig {
1374    /// Frequency of polling. If absent the state will be recorded once, at the
1375    /// start of the trace.
1376    /// This is required to be > 100ms to avoid excessive CPU usage.
1377    #[prost(uint32, optional, tag="1")]
1378    pub poll_ms: ::core::option::Option<u32>,
1379}
1380/// Data source that polls for system properties.
1381#[derive(Clone, PartialEq, ::prost::Message)]
1382pub struct AndroidSystemPropertyConfig {
1383    /// Frequency of polling. If absent the state will be recorded once, at the
1384    /// start of the trace.
1385    /// This is required to be > 100ms to avoid excessive CPU usage.
1386    #[prost(uint32, optional, tag="1")]
1387    pub poll_ms: ::core::option::Option<u32>,
1388    /// Properties to poll. All property names must start with "debug.tracing.".
1389    #[prost(string, repeated, tag="2")]
1390    pub property_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1391}
1392/// Data source that controls the system properties used to guard initialization
1393/// of track_event producers (i.e. Skia) in apps using HWUI, and certain
1394/// processes like SurfaceFlinger.
1395///
1396/// This data source only tells Skia to initialized the Perfetto SDK and start
1397/// routing data to the Track Event system instead of ATrace. For those events
1398/// to actually show up in a trace, the track_event data source must be used as
1399/// well. The Perfetto SDK cannot be de-initialized, so some long-lived apps and
1400/// processes may need to be restarted for Skia to revert to using ATrace if
1401/// Track Events are no longer desired.
1402///
1403/// In addition to switching Skia to use Perfetto's track_event data source,
1404/// this "guard" also controls Skia's "broad tracing", which removes Skia's
1405/// internal tracing constraints and allows the track_event config to specify
1406/// which categories should be traced. Filtering to the "skia.always" category
1407/// *tag* in a track_event config can be used to re-enable the standard
1408/// constraints typically used with ATrace.
1409///
1410/// Data source name: android.sdk_sysprop_guard
1411/// Introduced in Android 14 (U) QPR1.
1412/// Next id: 4
1413#[derive(Clone, PartialEq, ::prost::Message)]
1414pub struct AndroidSdkSyspropGuardConfig {
1415    /// If true, configures SurfaceFlinger to initialize Skia's Perfetto
1416    /// integration with the track_event data source in RenderEngine.
1417    /// If false or omitted, the simpler ATrace fallback is used.
1418    ///
1419    /// NOTE: once enabled, Skia will only revert to ATrace if SurfaceFlinger is
1420    /// restarted.
1421    ///
1422    /// Specifically this sets the following system properties:
1423    ///    - debug.tracing.ctl.renderengine.skia_tracing_enabled
1424    ///    - debug.tracing.ctl.renderengine.skia_use_perfetto_track_events
1425    ///
1426    /// Does not affect actual track_event data *collection*, which must be
1427    /// configured separately.
1428    #[prost(bool, optional, tag="1")]
1429    pub surfaceflinger_skia_track_events: ::core::option::Option<bool>,
1430    /// If true, configures HWUI apps to initialize Skia's Perfetto integration
1431    /// with the track_event data source. hwui_package_name_filter
1432    /// can be used to control which apps are affected.
1433    /// If false or omitted, the simpler ATrace fallback is used.
1434    ///
1435    /// NOTE: once enabled, Skia will only revert to ATrace if the app is
1436    /// restarted.
1437    ///
1438    /// ATTENTION: affects ALL HWUI APPS if hwui_package_name_filter is not set!
1439    /// If filtering is NOT set, this controls these GLOBAL system properties:
1440    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled
1441    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events
1442    /// If filtering IS set, this controls these APP-SPECIFIC system properties,
1443    /// for each package listed in the filter:
1444    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled.<package.name>
1445    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events.<package.name>
1446    ///
1447    /// Does not affect actual track_event data *collection*, which must be
1448    /// configured separately.
1449    #[prost(bool, optional, tag="2")]
1450    pub hwui_skia_track_events: ::core::option::Option<bool>,
1451    /// If non-empty, hwui_skia_track_events applies to only the packages listed.
1452    /// Otherwise, hwui_skia_track_events applies globally to all HWUI apps.
1453    #[prost(string, repeated, tag="3")]
1454    pub hwui_package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1455}
1456/// Configuration for the android.app_wakelocks data source.
1457#[derive(Clone, PartialEq, ::prost::Message)]
1458pub struct AppWakelocksConfig {
1459    /// Specifies the delay (in milliseconds) after which the data source will
1460    /// attempt to write events. Writing less frequently reduces the trace size by
1461    /// making better use of the packed arrays and reducing the total number of
1462    /// TracePackets needed (which each have dozens of bytes of overhead). The
1463    /// suggested delay is 5000ms.
1464    #[prost(int32, optional, tag="1")]
1465    pub write_delay_ms: ::core::option::Option<i32>,
1466    /// When set, wakelocks held for less than this amount of time are filtered
1467    /// from the resulting trace. Note: duration is computed by matching wakelocks
1468    /// with identical attributes, not by tracking the underlying objects. The
1469    /// threshold should be < the trace's flush_period_ms.
1470    #[prost(int32, optional, tag="2")]
1471    pub filter_duration_below_ms: ::core::option::Option<i32>,
1472    /// When true, the owner_pid is dropped from the resulting output, reducing the
1473    /// size of the interning tables.
1474    #[prost(bool, optional, tag="3")]
1475    pub drop_owner_pid: ::core::option::Option<bool>,
1476}
1477/// Data source that records CPU per UID data.
1478#[derive(Clone, PartialEq, ::prost::Message)]
1479pub struct CpuPerUidConfig {
1480    /// Record at this frequency.
1481    #[prost(uint32, optional, tag="1")]
1482    pub poll_ms: ::core::option::Option<u32>,
1483}
1484/// Custom configuration for the "android.inputmethod" data source.
1485#[derive(Clone, PartialEq, ::prost::Message)]
1486pub struct InputMethodConfig {
1487    /// If true, enables tracing in the clients.
1488    #[prost(bool, optional, tag="1")]
1489    pub client: ::core::option::Option<bool>,
1490    /// If true, enables tracing in InputMethodService.
1491    #[prost(bool, optional, tag="2")]
1492    pub service: ::core::option::Option<bool>,
1493    /// If true, enables tracing in InputMethodManagerService.
1494    #[prost(bool, optional, tag="3")]
1495    pub manager_service: ::core::option::Option<bool>,
1496}
1497/// Data source that records kernel (and native) wakelock data.
1498#[derive(Clone, PartialEq, ::prost::Message)]
1499pub struct KernelWakelocksConfig {
1500    /// Record at this frequency.
1501    #[prost(uint32, optional, tag="1")]
1502    pub poll_ms: ::core::option::Option<u32>,
1503}
1504/// Network tracing data source that records details on all packets sent or
1505/// received by the network.
1506#[derive(Clone, PartialEq, ::prost::Message)]
1507pub struct NetworkPacketTraceConfig {
1508    /// Polling frequency in milliseconds. Network tracing writes to a fixed size
1509    /// ring buffer. The polling interval should be such that the ring buffer is
1510    /// unlikely to fill in that interval (or that filling is an acceptable risk).
1511    /// The minimum polling rate is 100ms (values below this are ignored).
1512    /// Introduced in Android 14 (U).
1513    #[prost(uint32, optional, tag="1")]
1514    pub poll_ms: ::core::option::Option<u32>,
1515    /// The aggregation_threshold is the number of packets at which an event will
1516    /// switch from per-packet details to aggregate details. For example, a value
1517    /// of 50 means that if a particular event (grouped by the unique combinations
1518    /// of metadata fields: {interface, direction, uid, etc}) has fewer than 50
1519    /// packets, the exact timestamp and length are recorded for each packet. If
1520    /// there were 50 or more packets in an event, it would only record the total
1521    /// duration, packets, and length. A value of zero or unspecified will always
1522    /// / record per-packet details. A value of 1 always records aggregate details.
1523    #[prost(uint32, optional, tag="2")]
1524    pub aggregation_threshold: ::core::option::Option<u32>,
1525    /// Specifies the maximum number of packet contexts to intern at a time. This
1526    /// prevents the interning table from growing too large and controls whether
1527    /// interning is enabled or disabled (a value of zero disables interning and
1528    /// is the default). When a data sources interning table reaches this amount,
1529    /// packet contexts will be inlined into NetworkPacketEvents.
1530    #[prost(uint32, optional, tag="3")]
1531    pub intern_limit: ::core::option::Option<u32>,
1532    /// The following fields specify whether certain fields should be dropped from
1533    /// the output. Dropping fields improves normalization results, reduces the
1534    /// size of the interning table, and slightly reduces event size.
1535    #[prost(bool, optional, tag="4")]
1536    pub drop_local_port: ::core::option::Option<bool>,
1537    #[prost(bool, optional, tag="5")]
1538    pub drop_remote_port: ::core::option::Option<bool>,
1539    #[prost(bool, optional, tag="6")]
1540    pub drop_tcp_flags: ::core::option::Option<bool>,
1541}
1542/// Data source that lists details (such as version code) about packages on an
1543/// Android device.
1544#[derive(Clone, PartialEq, ::prost::Message)]
1545pub struct PackagesListConfig {
1546    /// If not empty, emit info about only the following list of package names
1547    /// (exact match, no regex). Can be combined with
1548    /// |package_name_regex_filter|: a package is included if it matches either
1549    /// filter. If both filters are empty, emit info about all packages.
1550    #[prost(string, repeated, tag="1")]
1551    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1552    /// If not empty, emit info about only the packages whose names match any of
1553    /// the following regexes (full match, not partial). Can be combined with
1554    /// |package_name_filter|: a package is included if it matches either filter.
1555    /// If both filters are empty, emit info about all packages.
1556    /// This field was introduced in Android 26Q2 (Perfetto v55).
1557    #[prost(string, repeated, tag="3")]
1558    pub package_name_regex_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1559    /// If present and non-zero, the data source will periodically poll for CPU
1560    /// use by packages and only emit results for those that it sees. If absent,
1561    /// the data source will emit results for all packages at startup. The package
1562    /// name filters apply either way.
1563    #[prost(uint32, optional, tag="2")]
1564    pub only_write_on_cpu_use_every_ms: ::core::option::Option<u32>,
1565}
1566/// Data source that records events from the modem.
1567#[derive(Clone, PartialEq, ::prost::Message)]
1568pub struct PixelModemConfig {
1569    #[prost(enumeration="pixel_modem_config::EventGroup", optional, tag="1")]
1570    pub event_group: ::core::option::Option<i32>,
1571    /// If set, record only events with these hashes.
1572    #[prost(int64, repeated, packed="false", tag="2")]
1573    pub pigweed_hash_allow_list: ::prost::alloc::vec::Vec<i64>,
1574    /// If set and allow_list is not set, deny events with these hashes.
1575    #[prost(int64, repeated, packed="false", tag="3")]
1576    pub pigweed_hash_deny_list: ::prost::alloc::vec::Vec<i64>,
1577}
1578/// Nested message and enum types in `PixelModemConfig`.
1579pub mod pixel_modem_config {
1580    /// Event group to record, as defined by the modem.
1581    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1582    #[repr(i32)]
1583    pub enum EventGroup {
1584        Unknown = 0,
1585        /// Events suitable for low bandwidth tracing only.
1586        LowBandwidth = 1,
1587        /// Events suitable for high and low bandwidth tracing.
1588        HighAndLowBandwidth = 2,
1589    }
1590    impl EventGroup {
1591        /// String value of the enum field names used in the ProtoBuf definition.
1592        ///
1593        /// The values are not transformed in any way and thus are considered stable
1594        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1595        pub fn as_str_name(&self) -> &'static str {
1596            match self {
1597                EventGroup::Unknown => "EVENT_GROUP_UNKNOWN",
1598                EventGroup::LowBandwidth => "EVENT_GROUP_LOW_BANDWIDTH",
1599                EventGroup::HighAndLowBandwidth => "EVENT_GROUP_HIGH_AND_LOW_BANDWIDTH",
1600            }
1601        }
1602    }
1603}
1604#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1605#[repr(i32)]
1606pub enum ProtoLogLevel {
1607    ProtologLevelUndefined = 0,
1608    ProtologLevelDebug = 1,
1609    ProtologLevelVerbose = 2,
1610    ProtologLevelInfo = 3,
1611    ProtologLevelWarn = 4,
1612    ProtologLevelError = 5,
1613    ProtologLevelWtf = 6,
1614}
1615impl ProtoLogLevel {
1616    /// String value of the enum field names used in the ProtoBuf definition.
1617    ///
1618    /// The values are not transformed in any way and thus are considered stable
1619    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1620    pub fn as_str_name(&self) -> &'static str {
1621        match self {
1622            ProtoLogLevel::ProtologLevelUndefined => "PROTOLOG_LEVEL_UNDEFINED",
1623            ProtoLogLevel::ProtologLevelDebug => "PROTOLOG_LEVEL_DEBUG",
1624            ProtoLogLevel::ProtologLevelVerbose => "PROTOLOG_LEVEL_VERBOSE",
1625            ProtoLogLevel::ProtologLevelInfo => "PROTOLOG_LEVEL_INFO",
1626            ProtoLogLevel::ProtologLevelWarn => "PROTOLOG_LEVEL_WARN",
1627            ProtoLogLevel::ProtologLevelError => "PROTOLOG_LEVEL_ERROR",
1628            ProtoLogLevel::ProtologLevelWtf => "PROTOLOG_LEVEL_WTF",
1629        }
1630    }
1631}
1632/// Custom configuration for the "android.protolog" data source.
1633/// ProtoLog is a logging mechanism that is intented to be more efficient than
1634/// logcat. This configures what logs to capture in the tracing instance.
1635#[derive(Clone, PartialEq, ::prost::Message)]
1636pub struct ProtoLogConfig {
1637    /// Specified the configurations for each of the logging groups. If none is
1638    /// specified for a group the defaults will be used.
1639    #[prost(message, repeated, tag="1")]
1640    pub group_overrides: ::prost::alloc::vec::Vec<ProtoLogGroup>,
1641    /// Specified what tracing mode to use for the tracing instance.
1642    #[prost(enumeration="proto_log_config::TracingMode", optional, tag="2")]
1643    pub tracing_mode: ::core::option::Option<i32>,
1644    /// If set, any message with log level higher than this level (inclusive) will
1645    /// be traced. Group overrides take precedence over this value.
1646    #[prost(enumeration="ProtoLogLevel", optional, tag="3")]
1647    pub default_log_from_level: ::core::option::Option<i32>,
1648}
1649/// Nested message and enum types in `ProtoLogConfig`.
1650pub mod proto_log_config {
1651    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1652    #[repr(i32)]
1653    pub enum TracingMode {
1654        /// When using the DEFAULT tracing mode, only log groups and levels specified
1655        /// in the group_overrides are traced.
1656        Default = 0,
1657        /// When using the ENABLE_ALL tracing mode, all log groups and levels are
1658        /// traced, unless specified in the group_overrides.
1659        EnableAll = 1,
1660    }
1661    impl TracingMode {
1662        /// String value of the enum field names used in the ProtoBuf definition.
1663        ///
1664        /// The values are not transformed in any way and thus are considered stable
1665        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1666        pub fn as_str_name(&self) -> &'static str {
1667            match self {
1668                TracingMode::Default => "DEFAULT",
1669                TracingMode::EnableAll => "ENABLE_ALL",
1670            }
1671        }
1672    }
1673}
1674#[derive(Clone, PartialEq, ::prost::Message)]
1675pub struct ProtoLogGroup {
1676    /// The ProtoLog group name this configuration entry applies to.
1677    #[prost(string, optional, tag="1")]
1678    pub group_name: ::core::option::Option<::prost::alloc::string::String>,
1679    /// Specify the level from which to start capturing protologs.
1680    /// e.g. if ProtoLogLevel.WARN is specified only warning, errors and fatal log
1681    /// message will be traced.
1682    #[prost(enumeration="ProtoLogLevel", optional, tag="2")]
1683    pub log_from: ::core::option::Option<i32>,
1684    /// When set to true we will collect the stacktrace for each protolog message
1685    /// in this group that we are tracing.
1686    #[prost(bool, optional, tag="3")]
1687    pub collect_stacktrace: ::core::option::Option<bool>,
1688}
1689/// Custom configuration for the "android.surfaceflinger.layers" data source.
1690#[derive(Clone, PartialEq, ::prost::Message)]
1691pub struct SurfaceFlingerLayersConfig {
1692    #[prost(enumeration="surface_flinger_layers_config::Mode", optional, tag="1")]
1693    pub mode: ::core::option::Option<i32>,
1694    #[prost(enumeration="surface_flinger_layers_config::TraceFlag", repeated, packed="false", tag="2")]
1695    pub trace_flags: ::prost::alloc::vec::Vec<i32>,
1696}
1697/// Nested message and enum types in `SurfaceFlingerLayersConfig`.
1698pub mod surface_flinger_layers_config {
1699    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1700    #[repr(i32)]
1701    pub enum Mode {
1702        Unspecified = 0,
1703        /// Trace layers snapshots. A snapshot is taken every time a layers change
1704        /// occurs.
1705        Active = 1,
1706        /// Generate layers snapshots from the transactions kept in the
1707        /// SurfaceFlinger's internal ring buffer.
1708        /// The layers snapshots generation occurs when this data source is flushed.
1709        Generated = 2,
1710        /// Trace a single layers snapshot.
1711        Dump = 3,
1712        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1713        /// Same as MODE_GENERATED, but triggers the layers snapshots generation only
1714        /// when a bugreport is taken.
1715        GeneratedBugreportOnly = 4,
1716        /// Layer snapshots are generated by ProtoVM from layer patches
1717        Protovm = 5,
1718    }
1719    impl Mode {
1720        /// String value of the enum field names used in the ProtoBuf definition.
1721        ///
1722        /// The values are not transformed in any way and thus are considered stable
1723        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1724        pub fn as_str_name(&self) -> &'static str {
1725            match self {
1726                Mode::Unspecified => "MODE_UNSPECIFIED",
1727                Mode::Active => "MODE_ACTIVE",
1728                Mode::Generated => "MODE_GENERATED",
1729                Mode::Dump => "MODE_DUMP",
1730                Mode::GeneratedBugreportOnly => "MODE_GENERATED_BUGREPORT_ONLY",
1731                Mode::Protovm => "MODE_PROTOVM",
1732            }
1733        }
1734    }
1735    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1736    #[repr(i32)]
1737    pub enum TraceFlag {
1738        Unspecified = 0,
1739        Input = 2,
1740        Composition = 4,
1741        Extra = 8,
1742        Hwc = 16,
1743        Buffers = 32,
1744        VirtualDisplays = 64,
1745        /// INPUT | COMPOSITION | EXTRA
1746        All = 14,
1747    }
1748    impl TraceFlag {
1749        /// String value of the enum field names used in the ProtoBuf definition.
1750        ///
1751        /// The values are not transformed in any way and thus are considered stable
1752        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1753        pub fn as_str_name(&self) -> &'static str {
1754            match self {
1755                TraceFlag::Unspecified => "TRACE_FLAG_UNSPECIFIED",
1756                TraceFlag::Input => "TRACE_FLAG_INPUT",
1757                TraceFlag::Composition => "TRACE_FLAG_COMPOSITION",
1758                TraceFlag::Extra => "TRACE_FLAG_EXTRA",
1759                TraceFlag::Hwc => "TRACE_FLAG_HWC",
1760                TraceFlag::Buffers => "TRACE_FLAG_BUFFERS",
1761                TraceFlag::VirtualDisplays => "TRACE_FLAG_VIRTUAL_DISPLAYS",
1762                TraceFlag::All => "TRACE_FLAG_ALL",
1763            }
1764        }
1765    }
1766}
1767/// Custom configuration for the "android.surfaceflinger.transactions" data
1768/// source.
1769#[derive(Clone, PartialEq, ::prost::Message)]
1770pub struct SurfaceFlingerTransactionsConfig {
1771    #[prost(enumeration="surface_flinger_transactions_config::Mode", optional, tag="1")]
1772    pub mode: ::core::option::Option<i32>,
1773}
1774/// Nested message and enum types in `SurfaceFlingerTransactionsConfig`.
1775pub mod surface_flinger_transactions_config {
1776    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1777    #[repr(i32)]
1778    pub enum Mode {
1779        Unspecified = 0,
1780        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1781        /// SurfaceFlinger writes its internal ring buffer of transactions every time
1782        /// the data source is flushed. The ring buffer contains the SurfaceFlinger's
1783        /// initial state and the latest transactions.
1784        Continuous = 1,
1785        /// SurfaceFlinger writes the initial state and then each incoming
1786        /// transaction until the data source is stopped.
1787        Active = 2,
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::Continuous => "MODE_CONTINUOUS",
1798                Mode::Active => "MODE_ACTIVE",
1799            }
1800        }
1801    }
1802}
1803/// Data source that lists details (such as version code) about users on an
1804/// Android device.
1805#[derive(Clone, PartialEq, ::prost::Message)]
1806pub struct AndroidUserListConfig {
1807    /// An allowlist of user type strings, used to control the granularity of
1808    /// user type information emitted in the trace. Exact, case-sensitive string
1809    /// matching is used.
1810    ///
1811    /// Any user type read from the device that is NOT present in the
1812    /// effective allowlist will have its type reported as
1813    /// "android.os.usertype.FILTERED".
1814    ///
1815    /// The effective allowlist is determined as follows:
1816    ///
1817    /// 1. If this 'user_type_filter' field is provided and non-empty:
1818    ///     This list itself is the effective allowlist.
1819    ///     Example TraceConfig:
1820    ///     --------------------
1821    ///     data_sources {
1822    ///         config {
1823    ///             name: "android.user_list"
1824    ///             target_buffer: 0
1825    ///             user_list_config {
1826    ///               # Only report these specific types, others become FILTERED.
1827    ///               user_type_filter: "android.os.usertype.full.SYSTEM"
1828    ///               user_type_filter: "android.os.usertype.system.HEADLESS"
1829    ///             }
1830    ///         }
1831    ///     }
1832    ///
1833    ///
1834    /// Note: This field does not support regular expressions.
1835    #[prost(string, repeated, tag="1")]
1836    pub user_type_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1837}
1838/// Custom configuration for the "android.windowmanager" data source.
1839#[derive(Clone, PartialEq, ::prost::Message)]
1840pub struct WindowManagerConfig {
1841    #[prost(enumeration="window_manager_config::LogFrequency", optional, tag="1")]
1842    pub log_frequency: ::core::option::Option<i32>,
1843    #[prost(enumeration="window_manager_config::LogLevel", optional, tag="2")]
1844    pub log_level: ::core::option::Option<i32>,
1845}
1846/// Nested message and enum types in `WindowManagerConfig`.
1847pub mod window_manager_config {
1848    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1849    #[repr(i32)]
1850    pub enum LogFrequency {
1851        Unspecified = 0,
1852        /// Trace state snapshots when a frame is committed.
1853        Frame = 1,
1854        /// Trace state snapshots every time a transaction is committed.
1855        Transaction = 2,
1856        /// Trace single state snapshots when the data source is started.
1857        SingleDump = 3,
1858    }
1859    impl LogFrequency {
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                LogFrequency::Unspecified => "LOG_FREQUENCY_UNSPECIFIED",
1867                LogFrequency::Frame => "LOG_FREQUENCY_FRAME",
1868                LogFrequency::Transaction => "LOG_FREQUENCY_TRANSACTION",
1869                LogFrequency::SingleDump => "LOG_FREQUENCY_SINGLE_DUMP",
1870            }
1871        }
1872    }
1873    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1874    #[repr(i32)]
1875    pub enum LogLevel {
1876        Unspecified = 0,
1877        /// Logs all elements with maximum amount of information.
1878        Verbose = 1,
1879        /// Logs all elements but doesn't write all configuration data.
1880        Debug = 2,
1881        /// Logs only visible elements, with the minimum amount of performance
1882        /// overhead
1883        Critical = 3,
1884    }
1885    impl LogLevel {
1886        /// String value of the enum field names used in the ProtoBuf definition.
1887        ///
1888        /// The values are not transformed in any way and thus are considered stable
1889        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1890        pub fn as_str_name(&self) -> &'static str {
1891            match self {
1892                LogLevel::Unspecified => "LOG_LEVEL_UNSPECIFIED",
1893                LogLevel::Verbose => "LOG_LEVEL_VERBOSE",
1894                LogLevel::Debug => "LOG_LEVEL_DEBUG",
1895                LogLevel::Critical => "LOG_LEVEL_CRITICAL",
1896            }
1897        }
1898    }
1899}
1900#[derive(Clone, PartialEq, ::prost::Message)]
1901pub struct ChromeConfig {
1902    #[prost(string, optional, tag="1")]
1903    pub trace_config: ::core::option::Option<::prost::alloc::string::String>,
1904    /// When enabled, the data source should only fill in fields in the output that
1905    /// are not potentially privacy sensitive.
1906    #[prost(bool, optional, tag="2")]
1907    pub privacy_filtering_enabled: ::core::option::Option<bool>,
1908    /// Instead of emitting binary protobuf, convert the trace data to the legacy
1909    /// JSON format. Note that the trace data will still be returned as a series of
1910    /// TracePackets, but the embedded data will be JSON instead of serialized
1911    /// protobuf.
1912    #[prost(bool, optional, tag="3")]
1913    pub convert_to_legacy_json: ::core::option::Option<bool>,
1914    #[prost(enumeration="chrome_config::ClientPriority", optional, tag="4")]
1915    pub client_priority: ::core::option::Option<i32>,
1916    /// Applicable only when using legacy JSON format.
1917    /// If |json_agent_label_filter| is not empty, only data pertaining to
1918    /// the specified tracing agent label (e.g. "traceEvents") will be returned.
1919    #[prost(string, optional, tag="5")]
1920    pub json_agent_label_filter: ::core::option::Option<::prost::alloc::string::String>,
1921    ///   When enabled, event names should not contain package names.
1922    #[prost(bool, optional, tag="6")]
1923    pub event_package_name_filter_enabled: ::core::option::Option<bool>,
1924}
1925/// Nested message and enum types in `ChromeConfig`.
1926pub mod chrome_config {
1927    /// Priority of the tracing session client. A higher priority session may
1928    /// preempt a lower priority one in configurations where concurrent sessions
1929    /// aren't supported.
1930    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1931    #[repr(i32)]
1932    pub enum ClientPriority {
1933        Unknown = 0,
1934        Background = 1,
1935        UserInitiated = 2,
1936    }
1937    impl ClientPriority {
1938        /// String value of the enum field names used in the ProtoBuf definition.
1939        ///
1940        /// The values are not transformed in any way and thus are considered stable
1941        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1942        pub fn as_str_name(&self) -> &'static str {
1943            match self {
1944                ClientPriority::Unknown => "UNKNOWN",
1945                ClientPriority::Background => "BACKGROUND",
1946                ClientPriority::UserInitiated => "USER_INITIATED",
1947            }
1948        }
1949    }
1950}
1951#[derive(Clone, PartialEq, ::prost::Message)]
1952pub struct V8Config {
1953    /// Whether to log the actual content of scripts (e.g. content of the JS file
1954    /// that was compiled to generate code).
1955    /// ATTENTION: This could considerably increase the size of the resuling trace
1956    ///             file.
1957    #[prost(bool, optional, tag="1")]
1958    pub log_script_sources: ::core::option::Option<bool>,
1959    /// Whether to log the generated code for jitted functions (machine code or
1960    /// bytecode).
1961    /// ATTENTION: This could considerably increase the size of the resuling trace
1962    ///             file.
1963    #[prost(bool, optional, tag="2")]
1964    pub log_instructions: ::core::option::Option<bool>,
1965}
1966/// Proto definition based on the struct _EVENT_TRACE_PROPERTIES definition
1967/// See: <https://learn.microsoft.com/en-us/windows/win32/api/evntrace/>
1968/// ns-evntrace-event_trace_properties
1969#[derive(Clone, PartialEq, ::prost::Message)]
1970pub struct EtwConfig {
1971    /// The kernel_flags determines the flags that will be used by the etw tracing
1972    /// session. These kernel flags have been built to expose the useful events
1973    /// captured from the kernel mode only.
1974    #[prost(enumeration="etw_config::KernelFlag", repeated, packed="false", tag="1")]
1975    pub kernel_flags: ::prost::alloc::vec::Vec<i32>,
1976    // See the list of keywords for for individual providers.
1977    // <https://learn.microsoft.com/en-us/windows/win32/etw/system-providers>
1978
1979    /// Provides events relating to the scheduler.
1980    #[prost(string, repeated, tag="2")]
1981    pub scheduler_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1982    /// Provides events relating to the memory manager.
1983    #[prost(string, repeated, tag="3")]
1984    pub memory_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1985    /// Provides events relating to file I/O.
1986    #[prost(string, repeated, tag="4")]
1987    pub file_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1988    /// Events for which stacks should be collected.
1989    #[prost(string, repeated, tag="5")]
1990    pub stack_sampling_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1991}
1992/// Nested message and enum types in `EtwConfig`.
1993pub mod etw_config {
1994    /// The KernelFlag represent list of kernel flags that we are intrested in.
1995    /// To get a more extensive list run 'xperf -providers k'.
1996    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1997    #[repr(i32)]
1998    pub enum KernelFlag {
1999        Cswitch = 0,
2000        Dispatcher = 1,
2001    }
2002    impl KernelFlag {
2003        /// String value of the enum field names used in the ProtoBuf definition.
2004        ///
2005        /// The values are not transformed in any way and thus are considered stable
2006        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2007        pub fn as_str_name(&self) -> &'static str {
2008            match self {
2009                KernelFlag::Cswitch => "CSWITCH",
2010                KernelFlag::Dispatcher => "DISPATCHER",
2011            }
2012        }
2013    }
2014}
2015#[derive(Clone, PartialEq, ::prost::Message)]
2016pub struct ChromiumSystemMetricsConfig {
2017    /// Samples counters every X ms.
2018    #[prost(uint32, optional, tag="1")]
2019    pub sampling_interval_ms: ::core::option::Option<u32>,
2020}
2021/// Next id: 38
2022#[derive(Clone, PartialEq, ::prost::Message)]
2023pub struct FtraceConfig {
2024    /// Ftrace events to record, example: "sched/sched_switch".
2025    #[prost(string, repeated, tag="1")]
2026    pub ftrace_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2027    /// Android-specific event categories:
2028    #[prost(string, repeated, tag="2")]
2029    pub atrace_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2030    #[prost(string, repeated, tag="3")]
2031    pub atrace_apps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2032    /// Some processes can emit data through atrace or through the perfetto SDK via
2033    /// the "track_event" data source. For these categories, the SDK will be
2034    /// preferred, if possible, for this config.
2035    #[prost(string, repeated, tag="28")]
2036    pub atrace_categories_prefer_sdk: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2037    /// If true, do *not* add in extra ftrace events when |atrace_categories| are
2038    /// set. This skips the legacy "atrace" behaviour of adding hardcoded ftrace
2039    /// events for convenience (and the vendor-specific events on top).
2040    /// Introduced in: perfetto v52.
2041    #[prost(bool, optional, tag="34")]
2042    pub atrace_userspace_only: ::core::option::Option<bool>,
2043    /// Size of each per-cpu kernel ftrace ring buffer.
2044    /// Not guaranteed if there are multiple concurrent tracing sessions, as the
2045    /// buffers cannot be resized without pausing recording in the kernel.
2046    #[prost(uint32, optional, tag="10")]
2047    pub buffer_size_kb: ::core::option::Option<u32>,
2048    /// If true, |buffer_size_kb| is interpreted as a lower bound, allowing the
2049    /// implementation to choose a bigger buffer size.
2050    ///
2051    /// Most configs for perfetto v43+ should simply leave both fields unset.
2052    ///
2053    /// If you need a config compatible with a range of perfetto builds and you
2054    /// used to set a non-default buffer_size_kb, consider setting both fields.
2055    /// Example:
2056    ///    buffer_size_kb: 4096
2057    ///    buffer_size_lower_bound: true
2058    /// On older builds, the per-cpu buffers will be exactly 4 MB.
2059    /// On v43+, buffers will be at least 4 MB.
2060    /// In both cases, neither is guaranteed if there are other concurrent
2061    /// perfetto ftrace sessions, as the buffers cannot be resized without pausing
2062    /// the recording in the kernel.
2063    /// Introduced in: perfetto v43.
2064    #[prost(bool, optional, tag="27")]
2065    pub buffer_size_lower_bound: ::core::option::Option<bool>,
2066    /// If set, specifies how often the tracing daemon reads from the kernel ring
2067    /// buffer. Not guaranteed if there are multiple concurrent tracing sessions.
2068    /// Leave unset unless you're fine-tuning a local config.
2069    #[prost(uint32, optional, tag="11")]
2070    pub drain_period_ms: ::core::option::Option<u32>,
2071    /// If set, the tracing daemon will read kernel ring buffers as soon as
2072    /// they're filled past this percentage of occupancy. In other words, a value
2073    /// of 50 means that a read pass is triggered as soon as any per-cpu buffer is
2074    /// half-full. Not guaranteed if there are multiple concurrent tracing
2075    /// sessions.
2076    /// Currently does nothing on Linux kernels below v6.9.
2077    /// Introduced in: perfetto v48.
2078    #[prost(uint32, optional, tag="29")]
2079    pub drain_buffer_percent: ::core::option::Option<u32>,
2080    #[prost(message, optional, tag="12")]
2081    pub compact_sched: ::core::option::Option<ftrace_config::CompactSchedConfig>,
2082    #[prost(message, optional, tag="22")]
2083    pub print_filter: ::core::option::Option<ftrace_config::PrintFilter>,
2084    /// Enables symbol name resolution against /proc/kallsyms.
2085    /// It requires that either traced_probes is running as root or that
2086    /// kptr_restrict has been manually lowered.
2087    /// It does not disclose KASLR, symbol addresses are mangled.
2088    #[prost(bool, optional, tag="13")]
2089    pub symbolize_ksyms: ::core::option::Option<bool>,
2090    #[prost(enumeration="ftrace_config::KsymsMemPolicy", optional, tag="17")]
2091    pub ksyms_mem_policy: ::core::option::Option<i32>,
2092    /// When this boolean is true AND the ftrace_events contains "kmem/rss_stat",
2093    /// this option causes traced_probes to enable the "kmem/rss_stat_throttled"
2094    /// event instead if present, and fall back to "kmem/rss_stat" if not present.
2095    /// The historical context for this is the following:
2096    /// - Up to Android S (12), the rss_stat was internally throttled in its
2097    ///    kernel implementation.
2098    /// - A change introduced in the kernels after S has introduced a new
2099    ///    "rss_stat_throttled" making the original "rss_stat" event unthrottled
2100    ///    (hence very spammy).
2101    /// - Not all Android T/13 devices will receive a new kernel though, hence we
2102    ///    need to deal with both cases.
2103    /// For more context: go/rss-stat-throttled.
2104    #[prost(bool, optional, tag="15")]
2105    pub throttle_rss_stat: ::core::option::Option<bool>,
2106    /// If true, use self-describing proto messages when writing events not known
2107    /// at compile time (aka generic events). Each event bundle will have a set of
2108    /// serialised proto descriptors for events within that bundle.
2109    ///
2110    /// Default if unset:
2111    /// * v53+: true
2112    /// * before v53: false
2113    ///
2114    /// Added in: perfetto v50.
2115    #[prost(bool, optional, tag="32")]
2116    pub denser_generic_event_encoding: ::core::option::Option<bool>,
2117    /// If true, avoid enabling events that aren't statically known by
2118    /// traced_probes. Otherwise, the default is to emit such events as
2119    /// GenericFtraceEvent protos.
2120    /// Prefer to keep this flag at its default. This was added for Android
2121    /// tracing, where atrace categories and/or atrace HAL requested events can
2122    /// expand to events that aren't of interest to the tracing user.
2123    /// Introduced in: Android T.
2124    #[prost(bool, optional, tag="16")]
2125    pub disable_generic_events: ::core::option::Option<bool>,
2126    /// The subset of syscalls to record. To record all syscalls, leave this unset
2127    /// and add "ftrace_events: raw_syscalls/sys_{enter,exit}" to the config.
2128    /// * before perfetto v43, requires the config to also enable
2129    ///    raw_syscalls/sys_{enter,exit}.
2130    /// * perfetto v43+ does the right thing if you set only this field.
2131    /// Example: ["sys_read", "sys_open"].
2132    /// Introduced in: Android U.
2133    #[prost(string, repeated, tag="18")]
2134    pub syscall_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2135    /// If true, enable the "function_graph" kernel tracer that emits events
2136    /// whenever a kernel function is entered and exited
2137    /// (funcgraph_entry/funcgraph_exit).
2138    /// Notes on use:
2139    /// * Requires |symbolize_ksyms| for function name resolution.
2140    /// * Use |function_filters| or |function_graph_roots| to constrain the traced
2141    ///    set of functions, otherwise the event bandwidth will be too high for
2142    ///    practical use.
2143    /// * The data source might be rejected if there is already a concurrent
2144    ///    ftrace data source that does not use function graph itself, as we do not
2145    ///    support switching kernel tracers mid-trace.
2146    /// * Requires a kernel compiled with CONFIG_FUNCTION_GRAPH_TRACER. This is
2147    ///    enabled if "cat /sys/kernel/tracing/available_tracers" includes
2148    ///    "function_graph".
2149    /// Android:
2150    /// * Available only on debuggable builds.
2151    /// * Introduced in: Android U.
2152    #[prost(bool, optional, tag="19")]
2153    pub enable_function_graph: ::core::option::Option<bool>,
2154    /// Constrains the set of functions traced when |enable_function_graph| is
2155    /// true. Supports globs, e.g. "sched*". You can specify multiple filters,
2156    /// in which case all matching functions will be traced. See kernel
2157    /// documentation on ftrace "set_ftrace_filter" file for more details.
2158    /// Android:
2159    /// * Available only on debuggable builds.
2160    /// * Introduced in: Android U.
2161    #[prost(string, repeated, tag="20")]
2162    pub function_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2163    /// If |enable_function_graph| is true, trace this set of functions *and* all
2164    /// of its callees. Supports globs. Can be set together with
2165    /// |function_filters|, in which case only callees matching the filter will be
2166    /// traced. If setting both, you most likely want all roots to also be
2167    /// included in |function_filters|.
2168    /// Android:
2169    /// * Available only on debuggable builds.
2170    /// * Introduced in: Android U.
2171    #[prost(string, repeated, tag="21")]
2172    pub function_graph_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2173    /// If |enable_function_graph| is true, only trace the specified
2174    /// number of calls down the stack. Sets the max_graph_depth value
2175    /// in sys/kernel/tracing/
2176    ///
2177    /// Only respected for the first tracing session that enables
2178    /// function_graph tracing.
2179    ///
2180    /// Introduced in: perfetto v51.
2181    /// Supported on: Android 25Q3+.
2182    #[prost(uint32, optional, tag="33")]
2183    pub function_graph_max_depth: ::core::option::Option<u32>,
2184    /// Ftrace events to record, specific for kprobes and kretprobes
2185    #[prost(message, repeated, tag="30")]
2186    pub kprobe_events: ::prost::alloc::vec::Vec<ftrace_config::KprobeEvent>,
2187    /// If true, does not clear kernel ftrace buffers when starting the trace.
2188    /// This makes sense only if this is the first ftrace data source instance
2189    /// created after the daemon has been started. Can be useful for gathering boot
2190    /// traces, if ftrace has been separately configured (e.g. via kernel
2191    /// commandline).
2192    /// NB: when configuring the pre-perfetto ftrace, prefer to set
2193    /// "/sys/kernel/tracing/trace_clock" to "boot" if your trace will contain
2194    /// anything besides ftrace. Otherwise timestamps might be skewed.
2195    #[prost(bool, optional, tag="23")]
2196    pub preserve_ftrace_buffer: ::core::option::Option<bool>,
2197    /// If true, overrides the default timestamp clock and uses a raw hardware
2198    /// based monotonic clock for getting timestamps.
2199    /// * Introduced in: Android U.
2200    #[prost(bool, optional, tag="24")]
2201    pub use_monotonic_raw_clock: ::core::option::Option<bool>,
2202    /// If |instance_name| is not empty, then attempt to use that tracefs instance
2203    /// for event recording. Normally, this means
2204    /// `/sys/kernel/tracing/instances/$instance_name`.
2205    ///
2206    /// Names "hyp" and "hypervisor" are reserved.
2207    ///
2208    /// The instance must already exist, the tracing daemon *will not* create it
2209    /// for you as it typically doesn't have such permissions.
2210    /// Only a subset of features is guaranteed to work with non-default instances,
2211    /// at the time of writing:
2212    ///   * ftrace_events
2213    ///   * buffer_size_kb
2214    #[prost(string, optional, tag="25")]
2215    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2216    /// For perfetto developer use. If true and on a debuggable android build,
2217    /// serialise raw tracing pages that the implementation cannot parse.
2218    #[prost(bool, optional, tag="31")]
2219    pub debug_ftrace_abi: ::core::option::Option<bool>,
2220    // =================================================
2221    // Exclusive single-tenant features: HERE BE DRAGONS
2222    // =================================================
2223    // The features below are considered "advanced" and require an exclusive
2224    // tracing session (as of Android 25Q3+ and Perfetto v52).
2225    //
2226    // These features directly manipulate the kernel's global ftrace state and
2227    // are incompatible with concurrent ftrace sessions. They are only enabled
2228    // if included in the *first* ftrace data source configured. Subsequent
2229    // ftrace data sources (even those not using advanced features) will be
2230    // rejected while a session with these features is active.
2231    //
2232    // To run the session in exclusive mode, see:
2233    // <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2234
2235    /// Filter ftrace events by Thread ID (TID).
2236    /// This writes the TIDs to `/sys/kernel/tracing/set_event_pid`.
2237    ///
2238    /// Note: this is an exclusive feature, see:
2239    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2240    ///
2241    /// Introduced in: perfetto v52.
2242    /// Supported on: Android 25Q3+.
2243    #[prost(uint32, repeated, packed="false", tag="35")]
2244    pub tids_to_trace: ::prost::alloc::vec::Vec<u32>,
2245    #[prost(message, repeated, tag="36")]
2246    pub tracefs_options: ::prost::alloc::vec::Vec<ftrace_config::TracefsOption>,
2247    /// This mask restricts tracing to a specific set of CPUs using a
2248    /// comma-separated hex mask. Each hex number (up to 8 digits) represents a
2249    /// 32-bit chunk of the CPU mask.
2250    ///
2251    /// The chunks are ordered from high CPUs to low CPUs (left to right):
2252    ///    - Rightmost chunk: CPUs 0-31
2253    ///    - 2nd chunk from right: CPUs 32-63
2254    ///    - ...and so on.
2255    ///
2256    /// Example (assuming NR_CPUS=128, requiring 4 chunks):
2257    /// The full mask would be in the format: "chunk3,chunk2,chunk1,chunk0"
2258    /// where chunk3 maps to CPUs 96-127, chunk2 to 64-95, chunk1 to 32-63, and
2259    /// chunk0 to 0-31.
2260    ///    - "ffffffff,0,0,0": Enables CPUs 96-127 only.
2261    ///    - "f,ff": Enables CPUs 0-7 (from "ff") and CPUs 32-35 (from "f").
2262    ///
2263    /// Note: This is an exclusive feature, see:
2264    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2265    ///
2266    /// Introduced in: perfetto v52.
2267    /// Supported on: Android 25Q3+.
2268    #[prost(string, optional, tag="37")]
2269    pub tracing_cpumask: ::core::option::Option<::prost::alloc::string::String>,
2270    /// No-op in perfetto v28+. Name preserved because of existing references in
2271    /// textproto configs.
2272    #[deprecated]
2273    #[prost(bool, optional, tag="14")]
2274    pub initialize_ksyms_synchronously_for_testing: ::core::option::Option<bool>,
2275}
2276/// Nested message and enum types in `FtraceConfig`.
2277pub mod ftrace_config {
2278    /// Configuration for compact encoding of scheduler events. When enabled (and
2279    /// recording the relevant ftrace events), specific high-volume events are
2280    /// encoded in a denser format than normal.
2281    #[derive(Clone, PartialEq, ::prost::Message)]
2282    pub struct CompactSchedConfig {
2283        /// If true, and sched_switch or sched_waking ftrace events are enabled,
2284        /// record those events in the compact format.
2285        ///
2286        /// If the field is unset, the default is:
2287        /// * perfetto v42.0+: enabled
2288        /// * before: disabled
2289        #[prost(bool, optional, tag="1")]
2290        pub enabled: ::core::option::Option<bool>,
2291    }
2292    /// Optional filter for "ftrace/print" events.
2293    ///
2294    /// The filter consists of multiple rules. As soon as a rule matches (the rules
2295    /// are processed in order), its `allow` field will be used as the outcome: if
2296    /// `allow` is true, the event will be included in the trace, otherwise it will
2297    /// be discarded. If an event does not match any rule, it will be allowed by
2298    /// default (a rule with an empty prefix and allow=false, disallows everything
2299    /// by default).
2300    #[derive(Clone, PartialEq, ::prost::Message)]
2301    pub struct PrintFilter {
2302        #[prost(message, repeated, tag="1")]
2303        pub rules: ::prost::alloc::vec::Vec<print_filter::Rule>,
2304    }
2305    /// Nested message and enum types in `PrintFilter`.
2306    pub mod print_filter {
2307        #[derive(Clone, PartialEq, ::prost::Message)]
2308        pub struct Rule {
2309            #[prost(bool, optional, tag="2")]
2310            pub allow: ::core::option::Option<bool>,
2311            #[prost(oneof="rule::Match", tags="1, 3")]
2312            pub r#match: ::core::option::Option<rule::Match>,
2313        }
2314        /// Nested message and enum types in `Rule`.
2315        pub mod rule {
2316            /// Matches an atrace message of the form:
2317            /// <type>|pid|<prefix>...
2318            #[derive(Clone, PartialEq, ::prost::Message)]
2319            pub struct AtraceMessage {
2320                #[prost(string, optional, tag="1")]
2321                pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2322                #[prost(string, optional, tag="2")]
2323                pub prefix: ::core::option::Option<::prost::alloc::string::String>,
2324            }
2325            #[derive(Clone, PartialEq, ::prost::Oneof)]
2326            pub enum Match {
2327                /// This rule matches if `prefix` matches exactly with the beginning of
2328                /// the "ftrace/print" "buf" field.
2329                #[prost(string, tag="1")]
2330                Prefix(::prost::alloc::string::String),
2331                /// This rule matches if the "buf" field contains an atrace-style print
2332                /// message as specified in `atrace_msg`.
2333                #[prost(message, tag="3")]
2334                AtraceMsg(AtraceMessage),
2335            }
2336        }
2337    }
2338    #[derive(Clone, PartialEq, ::prost::Message)]
2339    pub struct KprobeEvent {
2340        /// Kernel function name to attach to, for example "fuse_file_write_iter"
2341        #[prost(string, optional, tag="1")]
2342        pub probe: ::core::option::Option<::prost::alloc::string::String>,
2343        #[prost(enumeration="kprobe_event::KprobeType", optional, tag="2")]
2344        pub r#type: ::core::option::Option<i32>,
2345    }
2346    /// Nested message and enum types in `KprobeEvent`.
2347    pub mod kprobe_event {
2348        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2349        #[repr(i32)]
2350        pub enum KprobeType {
2351            Unknown = 0,
2352            Kprobe = 1,
2353            Kretprobe = 2,
2354            Both = 3,
2355        }
2356        impl KprobeType {
2357            /// String value of the enum field names used in the ProtoBuf definition.
2358            ///
2359            /// The values are not transformed in any way and thus are considered stable
2360            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2361            pub fn as_str_name(&self) -> &'static str {
2362                match self {
2363                    KprobeType::Unknown => "KPROBE_TYPE_UNKNOWN",
2364                    KprobeType::Kprobe => "KPROBE_TYPE_KPROBE",
2365                    KprobeType::Kretprobe => "KPROBE_TYPE_KRETPROBE",
2366                    KprobeType::Both => "KPROBE_TYPE_BOTH",
2367                }
2368            }
2369        }
2370    }
2371    /// Tracefs options to set directly in the tracefs instance. This is a very
2372    /// niche feature since almost all of the options deal with formatting textual
2373    /// output (the /trace file), which perfetto doesn't use.
2374    ///
2375    /// The options with a known use-case:
2376    /// * event-fork: when using `tids_to_trace` above, the kernel will
2377    ///    automatically add newly spawned descendant threads to the set of TIDs.
2378    ///
2379    /// Full list of options is available at
2380    /// <https://docs.kernel.org/trace/ftrace.html#trace-options.>
2381    ///
2382    /// Note: this is an exclusive feature, see:
2383    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2384    ///
2385    /// Introduced in: perfetto v52.
2386    /// Supported on: Android 25Q3+.
2387    #[derive(Clone, PartialEq, ::prost::Message)]
2388    pub struct TracefsOption {
2389        /// The name of the tracefs option as found in tracefs/trace_options (without
2390        /// the "no" prefix).
2391        #[prost(string, optional, tag="1")]
2392        pub name: ::core::option::Option<::prost::alloc::string::String>,
2393        #[prost(enumeration="tracefs_option::State", optional, tag="2")]
2394        pub state: ::core::option::Option<i32>,
2395    }
2396    /// Nested message and enum types in `TracefsOption`.
2397    pub mod tracefs_option {
2398        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2399        #[repr(i32)]
2400        pub enum State {
2401            Unknown = 0,
2402            Enabled = 1,
2403            Disabled = 2,
2404        }
2405        impl State {
2406            /// String value of the enum field names used in the ProtoBuf definition.
2407            ///
2408            /// The values are not transformed in any way and thus are considered stable
2409            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2410            pub fn as_str_name(&self) -> &'static str {
2411                match self {
2412                    State::Unknown => "STATE_UNKNOWN",
2413                    State::Enabled => "STATE_ENABLED",
2414                    State::Disabled => "STATE_DISABLED",
2415                }
2416            }
2417        }
2418    }
2419    /// When symbolize_ksyms=true, determines whether the traced_probes daemon
2420    /// should keep the symbol map in memory (and reuse it for future tracing
2421    /// sessions) or clear it (saving memory) and re-create it on each tracing
2422    /// session (wasting cpu and wall time).
2423    /// The tradeoff is roughly:
2424    ///   KSYMS_RETAIN: pay a fixed ~1.2 MB cost after the first trace.
2425    ///   KSYMS_CLEANUP_ON_STOP: pay a ~300-500ms cost when starting each trace.
2426    /// Default behavior: KSYMS_CLEANUP_ON_STOP.
2427    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2428    #[repr(i32)]
2429    pub enum KsymsMemPolicy {
2430        KsymsUnspecified = 0,
2431        KsymsCleanupOnStop = 1,
2432        KsymsRetain = 2,
2433    }
2434    impl KsymsMemPolicy {
2435        /// String value of the enum field names used in the ProtoBuf definition.
2436        ///
2437        /// The values are not transformed in any way and thus are considered stable
2438        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2439        pub fn as_str_name(&self) -> &'static str {
2440            match self {
2441                KsymsMemPolicy::KsymsUnspecified => "KSYMS_UNSPECIFIED",
2442                KsymsMemPolicy::KsymsCleanupOnStop => "KSYMS_CLEANUP_ON_STOP",
2443                KsymsMemPolicy::KsymsRetain => "KSYMS_RETAIN",
2444            }
2445        }
2446    }
2447}
2448#[derive(Clone, PartialEq, ::prost::Message)]
2449pub struct FrozenFtraceConfig {
2450    /// The instance name which stores the previous boot ftrace data. Required.
2451    #[prost(string, optional, tag="1")]
2452    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2453}
2454#[derive(Clone, PartialEq, ::prost::Message)]
2455pub struct GpuCounterConfig {
2456    /// Desired sampling interval for counters.
2457    #[prost(uint64, optional, tag="1")]
2458    pub counter_period_ns: ::core::option::Option<u64>,
2459    // Selects which counters to sample. Use either counter_ids or counter_names,
2460    // not both. Counter IDs and names correspond to the ones described in
2461    // GpuCounterSpec in the data source descriptor.
2462
2463    /// List of counter IDs to be sampled.
2464    #[prost(uint32, repeated, packed="false", tag="2")]
2465    pub counter_ids: ::prost::alloc::vec::Vec<u32>,
2466    /// List of counter names to be sampled. Requires producer support; check
2467    /// GpuCounterDescriptor.supports_counter_names in the data source descriptor.
2468    /// Glob patterns may be used to match multiple counters by name; check
2469    /// GpuCounterDescriptor.supports_counter_name_globs for support.
2470    #[prost(string, repeated, tag="6")]
2471    pub counter_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2472    /// Fix gpu clock rate during trace session.
2473    #[prost(bool, optional, tag="4")]
2474    pub fix_gpu_clock: ::core::option::Option<bool>,
2475    /// Sample counters by instrumenting command buffers.
2476    #[prost(oneof="gpu_counter_config::InstrumentedSamplingMode", tags="3, 5")]
2477    pub instrumented_sampling_mode: ::core::option::Option<gpu_counter_config::InstrumentedSamplingMode>,
2478}
2479/// Nested message and enum types in `GpuCounterConfig`.
2480pub mod gpu_counter_config {
2481    /// Configuration for sampling counters by instrumenting command buffers.
2482    ///
2483    /// When instrumented_sampling_config is used (instead of the
2484    /// instrumented_sampling bool), the following steps determine whether
2485    /// instrumented counters are enabled for a given GPU activity:
2486    ///
2487    /// 1. Activity name filtering: If activity_name_filters is non-empty, the
2488    ///     activity must match at least one filter. If empty, all activities
2489    ///     pass this step.
2490    /// 2. TX range filtering: If activity_tx_include_globs is non-empty, the
2491    ///     activity must fall within a matching TX range. Activities in TX
2492    ///     ranges matching activity_tx_exclude_globs are excluded (excludes
2493    ///     take precedence over includes). If both are empty, all activities
2494    ///     pass this step.
2495    /// 3. Range-based sampling: If activity_ranges is non-empty, only
2496    ///     activities within the specified skip/count ranges are instrumented.
2497    ///     If empty, all activities that passed the previous steps are
2498    ///     instrumented.
2499    #[derive(Clone, PartialEq, ::prost::Message)]
2500    pub struct InstrumentedSamplingConfig {
2501        /// GPU activity name filters. An activity matches if it matches any filter.
2502        #[prost(message, repeated, tag="3")]
2503        pub activity_name_filters: ::prost::alloc::vec::Vec<instrumented_sampling_config::ActivityNameFilter>,
2504        /// Glob patterns to use for including GPU activities in TX ranges. TX
2505        /// ranges are in-process annotations that mark different sections of GPU
2506        /// work (e.g. NVTX ranges for CUDA). TX ranges can be nested, and an
2507        /// activity is included if any range in its nesting hierarchy matches.
2508        /// Only activities that fall within a matching TX range will be
2509        /// instrumented.
2510        #[prost(string, repeated, tag="6")]
2511        pub activity_tx_include_globs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2512        /// Glob patterns to use for excluding GPU activities from TX ranges.
2513        /// TX ranges can be nested, and an activity is excluded if any range
2514        /// in its nesting hierarchy matches. Excludes take precedence over
2515        /// includes.
2516        #[prost(string, repeated, tag="7")]
2517        pub activity_tx_exclude_globs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2518        /// Ranges of GPU activities to instrument. Applied after activity name
2519        /// and TX range filters. If empty, all activities that passed the
2520        /// previous filters are instrumented.
2521        #[prost(message, repeated, tag="5")]
2522        pub activity_ranges: ::prost::alloc::vec::Vec<instrumented_sampling_config::ActivityRange>,
2523    }
2524    /// Nested message and enum types in `InstrumentedSamplingConfig`.
2525    pub mod instrumented_sampling_config {
2526        /// Filters GPU activities by name. Each filter specifies a glob pattern
2527        /// and the basis for matching (mangled or demangled kernel name).
2528        #[derive(Clone, PartialEq, ::prost::Message)]
2529        pub struct ActivityNameFilter {
2530            /// required. Glob pattern to use for GPU activity name filtering.
2531            #[prost(string, optional, tag="1")]
2532            pub name_glob: ::core::option::Option<::prost::alloc::string::String>,
2533            /// Basis for name filtering. Defaults to MANGLED_KERNEL_NAME if not
2534            /// specified.
2535            #[prost(enumeration="activity_name_filter::NameBase", optional, tag="2")]
2536            pub name_base: ::core::option::Option<i32>,
2537        }
2538        /// Nested message and enum types in `ActivityNameFilter`.
2539        pub mod activity_name_filter {
2540            #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2541            #[repr(i32)]
2542            pub enum NameBase {
2543                /// Match against the mangled (compiler-encoded) kernel name.
2544                /// Example: for a kernel whose demangled name is
2545                /// "matmul(float*,int,int)", the mangled name might be
2546                /// "_Z6matmulPfii". The glob pattern is matched against this
2547                /// mangled form.
2548                MangledKernelName = 0,
2549                /// Match against the fully demangled kernel name, including
2550                /// parameters, templates, and qualifiers.
2551                /// Example: "matmul(float*,int,int)". The glob pattern is
2552                /// matched against this full demangled form.
2553                DemangledKernelName = 1,
2554                /// Match against only the function name portion of the
2555                /// demangled kernel name, without parameters, templates,
2556                /// return types, or namespaces.
2557                /// Example: "matmul". The glob pattern is matched against
2558                /// just the bare function name.
2559                FunctionName = 2,
2560            }
2561            impl NameBase {
2562                /// String value of the enum field names used in the ProtoBuf definition.
2563                ///
2564                /// The values are not transformed in any way and thus are considered stable
2565                /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2566                pub fn as_str_name(&self) -> &'static str {
2567                    match self {
2568                        NameBase::MangledKernelName => "MANGLED_KERNEL_NAME",
2569                        NameBase::DemangledKernelName => "DEMANGLED_KERNEL_NAME",
2570                        NameBase::FunctionName => "FUNCTION_NAME",
2571                    }
2572                }
2573            }
2574        }
2575        /// Defines a range of GPU activities to instrument.
2576        #[derive(Clone, PartialEq, ::prost::Message)]
2577        pub struct ActivityRange {
2578            /// Number of GPU activities to skip before starting to instrument
2579            /// command buffers. Defaults to 0 if not specified.
2580            #[prost(uint32, optional, tag="1")]
2581            pub skip: ::core::option::Option<u32>,
2582            /// Limit for the number of GPU activities to sample counters for by
2583            /// instrumenting command buffers. Defaults to UINT32_MAX (all
2584            /// remaining activities) if not specified.
2585            #[prost(uint32, optional, tag="2")]
2586            pub count: ::core::option::Option<u32>,
2587        }
2588    }
2589    /// Sample counters by instrumenting command buffers.
2590    #[derive(Clone, PartialEq, ::prost::Oneof)]
2591    pub enum InstrumentedSamplingMode {
2592        #[prost(bool, tag="3")]
2593        InstrumentedSampling(bool),
2594        #[prost(message, tag="5")]
2595        InstrumentedSamplingConfig(InstrumentedSamplingConfig),
2596    }
2597}
2598#[derive(Clone, PartialEq, ::prost::Message)]
2599pub struct VulkanMemoryConfig {
2600    /// Tracking driver memory usage events
2601    #[prost(bool, optional, tag="1")]
2602    pub track_driver_memory_usage: ::core::option::Option<bool>,
2603    /// Tracking device memory usage events
2604    #[prost(bool, optional, tag="2")]
2605    pub track_device_memory_usage: ::core::option::Option<bool>,
2606}
2607#[derive(Clone, PartialEq, ::prost::Message)]
2608pub struct GpuRenderStagesConfig {
2609    /// Enable to separate the color and depth/stencil load and store stages
2610    /// into a separate stages. If disabled, the depth/stencil load and store
2611    /// stages will be combined.  Disabled by default. This option has no effect if
2612    /// Low Overhead mode is enabled.
2613    #[prost(bool, optional, tag="1")]
2614    pub full_loadstore: ::core::option::Option<bool>,
2615    /// Use the low overhead mode for traces. In this mode render stages are
2616    /// combined into a single workload stage. This provides less granular data but
2617    /// induces minimal GPU overhead. Disabled by default.
2618    #[prost(bool, optional, tag="2")]
2619    pub low_overhead: ::core::option::Option<bool>,
2620    /// Trace metrics to capture for each render stage
2621    #[prost(string, repeated, tag="3")]
2622    pub trace_metrics: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2623}
2624/// WARNING: unmaintained and deprecated. Likely won't work at all on modern
2625/// systems.
2626#[derive(Clone, PartialEq, ::prost::Message)]
2627pub struct InodeFileConfig {
2628    /// How long to pause between batches.
2629    #[prost(uint32, optional, tag="1")]
2630    pub scan_interval_ms: ::core::option::Option<u32>,
2631    /// How long to wait before the first scan in order to accumulate inodes.
2632    #[prost(uint32, optional, tag="2")]
2633    pub scan_delay_ms: ::core::option::Option<u32>,
2634    /// How many inodes to scan in one batch.
2635    #[prost(uint32, optional, tag="3")]
2636    pub scan_batch_size: ::core::option::Option<u32>,
2637    /// Do not scan for inodes not found in the static map.
2638    #[prost(bool, optional, tag="4")]
2639    pub do_not_scan: ::core::option::Option<bool>,
2640    /// If non-empty, only scan inodes corresponding to block devices named in
2641    /// this list.
2642    #[prost(string, repeated, tag="5")]
2643    pub scan_mount_points: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2644    /// When encountering an inode belonging to a block device corresponding
2645    /// to one of the mount points in this map, scan its scan_roots instead.
2646    #[prost(message, repeated, tag="6")]
2647    pub mount_point_mapping: ::prost::alloc::vec::Vec<inode_file_config::MountPointMappingEntry>,
2648}
2649/// Nested message and enum types in `InodeFileConfig`.
2650pub mod inode_file_config {
2651    #[derive(Clone, PartialEq, ::prost::Message)]
2652    pub struct MountPointMappingEntry {
2653        #[prost(string, optional, tag="1")]
2654        pub mountpoint: ::core::option::Option<::prost::alloc::string::String>,
2655        #[prost(string, repeated, tag="2")]
2656        pub scan_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2657    }
2658}
2659#[derive(Clone, PartialEq, ::prost::Message)]
2660pub struct ConsoleConfig {
2661    #[prost(enumeration="console_config::Output", optional, tag="1")]
2662    pub output: ::core::option::Option<i32>,
2663    #[prost(bool, optional, tag="2")]
2664    pub enable_colors: ::core::option::Option<bool>,
2665}
2666/// Nested message and enum types in `ConsoleConfig`.
2667pub mod console_config {
2668    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2669    #[repr(i32)]
2670    pub enum Output {
2671        Unspecified = 0,
2672        Stdout = 1,
2673        Stderr = 2,
2674    }
2675    impl Output {
2676        /// String value of the enum field names used in the ProtoBuf definition.
2677        ///
2678        /// The values are not transformed in any way and thus are considered stable
2679        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2680        pub fn as_str_name(&self) -> &'static str {
2681            match self {
2682                Output::Unspecified => "OUTPUT_UNSPECIFIED",
2683                Output::Stdout => "OUTPUT_STDOUT",
2684                Output::Stderr => "OUTPUT_STDERR",
2685            }
2686        }
2687    }
2688}
2689/// Configuration for trace packet interception. Used for diverting trace data to
2690/// non-Perfetto sources (e.g., logging to the console, ETW) when using the
2691/// Perfetto SDK.
2692#[derive(Clone, PartialEq, ::prost::Message)]
2693pub struct InterceptorConfig {
2694    /// Matches the name given to RegisterInterceptor().
2695    #[prost(string, optional, tag="1")]
2696    pub name: ::core::option::Option<::prost::alloc::string::String>,
2697    #[prost(message, optional, tag="100")]
2698    pub console_config: ::core::option::Option<ConsoleConfig>,
2699}
2700#[derive(Clone, PartialEq, ::prost::Message)]
2701pub struct AndroidPowerConfig {
2702    #[prost(uint32, optional, tag="1")]
2703    pub battery_poll_ms: ::core::option::Option<u32>,
2704    #[prost(enumeration="android_power_config::BatteryCounters", repeated, packed="false", tag="2")]
2705    pub battery_counters: ::prost::alloc::vec::Vec<i32>,
2706    /// Where available enables per-power-rail measurements.
2707    #[prost(bool, optional, tag="3")]
2708    pub collect_power_rails: ::core::option::Option<bool>,
2709    /// Provides a breakdown of energy estimation for various subsystem (e.g. GPU).
2710    /// Available from Android S.
2711    #[prost(bool, optional, tag="4")]
2712    pub collect_energy_estimation_breakdown: ::core::option::Option<bool>,
2713    /// Provides a breakdown of time in state for various subsystems.
2714    /// Available from Android U.
2715    #[prost(bool, optional, tag="5")]
2716    pub collect_entity_state_residency: ::core::option::Option<bool>,
2717}
2718/// Nested message and enum types in `AndroidPowerConfig`.
2719pub mod android_power_config {
2720    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2721    #[repr(i32)]
2722    pub enum BatteryCounters {
2723        BatteryCounterUnspecified = 0,
2724        /// Coulomb counter.
2725        BatteryCounterCharge = 1,
2726        /// Charge (%).
2727        BatteryCounterCapacityPercent = 2,
2728        /// Instantaneous current.
2729        BatteryCounterCurrent = 3,
2730        /// Avg current.
2731        BatteryCounterCurrentAvg = 4,
2732        /// Instantaneous voltage.
2733        BatteryCounterVoltage = 5,
2734    }
2735    impl BatteryCounters {
2736        /// String value of the enum field names used in the ProtoBuf definition.
2737        ///
2738        /// The values are not transformed in any way and thus are considered stable
2739        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2740        pub fn as_str_name(&self) -> &'static str {
2741            match self {
2742                BatteryCounters::BatteryCounterUnspecified => "BATTERY_COUNTER_UNSPECIFIED",
2743                BatteryCounters::BatteryCounterCharge => "BATTERY_COUNTER_CHARGE",
2744                BatteryCounters::BatteryCounterCapacityPercent => "BATTERY_COUNTER_CAPACITY_PERCENT",
2745                BatteryCounters::BatteryCounterCurrent => "BATTERY_COUNTER_CURRENT",
2746                BatteryCounters::BatteryCounterCurrentAvg => "BATTERY_COUNTER_CURRENT_AVG",
2747                BatteryCounters::BatteryCounterVoltage => "BATTERY_COUNTER_VOLTAGE",
2748            }
2749        }
2750    }
2751}
2752#[derive(Clone, PartialEq, ::prost::Message)]
2753pub struct ProtoVmConfig {
2754    #[prost(uint32, optional, tag="1")]
2755    pub memory_limit_kb: ::core::option::Option<u32>,
2756}
2757/// This enum is obtained by post-processing
2758/// AOSP/frameworks/proto_logging/stats/atoms.proto through
2759/// AOSP/external/perfetto/tools/update-statsd-descriptor, which extracts one
2760/// enum value for each proto field defined in the upstream atoms.proto.
2761#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2762#[repr(i32)]
2763pub enum AtomId {
2764    AtomUnspecified = 0,
2765    AtomBleScanStateChanged = 2,
2766    AtomProcessStateChanged = 3,
2767    AtomBleScanResultReceived = 4,
2768    AtomSensorStateChanged = 5,
2769    AtomGpsScanStateChanged = 6,
2770    AtomSyncStateChanged = 7,
2771    AtomScheduledJobStateChanged = 8,
2772    AtomScreenBrightnessChanged = 9,
2773    AtomWakelockStateChanged = 10,
2774    AtomLongPartialWakelockStateChanged = 11,
2775    AtomMobileRadioPowerStateChanged = 12,
2776    AtomWifiRadioPowerStateChanged = 13,
2777    AtomActivityManagerSleepStateChanged = 14,
2778    AtomMemoryFactorStateChanged = 15,
2779    AtomExcessiveCpuUsageReported = 16,
2780    AtomCachedKillReported = 17,
2781    AtomProcessMemoryStatReported = 18,
2782    AtomLauncherEvent = 19,
2783    AtomBatterySaverModeStateChanged = 20,
2784    AtomDeviceIdleModeStateChanged = 21,
2785    AtomDeviceIdlingModeStateChanged = 22,
2786    AtomAudioStateChanged = 23,
2787    AtomMediaCodecStateChanged = 24,
2788    AtomCameraStateChanged = 25,
2789    AtomFlashlightStateChanged = 26,
2790    AtomUidProcessStateChanged = 27,
2791    AtomProcessLifeCycleStateChanged = 28,
2792    AtomScreenStateChanged = 29,
2793    AtomBatteryLevelChanged = 30,
2794    AtomChargingStateChanged = 31,
2795    AtomPluggedStateChanged = 32,
2796    AtomInteractiveStateChanged = 33,
2797    AtomTouchEventReported = 34,
2798    AtomWakeupAlarmOccurred = 35,
2799    AtomKernelWakeupReported = 36,
2800    AtomWifiLockStateChanged = 37,
2801    AtomWifiSignalStrengthChanged = 38,
2802    AtomWifiScanStateChanged = 39,
2803    AtomPhoneSignalStrengthChanged = 40,
2804    AtomSettingChanged = 41,
2805    AtomActivityForegroundStateChanged = 42,
2806    AtomIsolatedUidChanged = 43,
2807    AtomPacketWakeupOccurred = 44,
2808    AtomWallClockTimeShifted = 45,
2809    AtomAnomalyDetected = 46,
2810    AtomAppBreadcrumbReported = 47,
2811    AtomAppStartOccurred = 48,
2812    AtomAppStartCanceled = 49,
2813    AtomAppStartFullyDrawn = 50,
2814    AtomLmkKillOccurred = 51,
2815    AtomPictureInPictureStateChanged = 52,
2816    AtomWifiMulticastLockStateChanged = 53,
2817    AtomAppStartMemoryStateCaptured = 55,
2818    AtomShutdownSequenceReported = 56,
2819    AtomBootSequenceReported = 57,
2820    AtomOverlayStateChanged = 59,
2821    AtomForegroundServiceStateChanged = 60,
2822    AtomCallStateChanged = 61,
2823    AtomKeyguardStateChanged = 62,
2824    AtomKeyguardBouncerStateChanged = 63,
2825    AtomKeyguardBouncerPasswordEntered = 64,
2826    AtomAppDied = 65,
2827    AtomResourceConfigurationChanged = 66,
2828    AtomBluetoothEnabledStateChanged = 67,
2829    AtomBluetoothConnectionStateChanged = 68,
2830    AtomGpsSignalQualityChanged = 69,
2831    AtomUsbConnectorStateChanged = 70,
2832    AtomSpeakerImpedanceReported = 71,
2833    AtomHardwareFailed = 72,
2834    AtomPhysicalDropDetected = 73,
2835    AtomChargeCyclesReported = 74,
2836    AtomMobileConnectionStateChanged = 75,
2837    AtomMobileRadioTechnologyChanged = 76,
2838    AtomUsbDeviceAttached = 77,
2839    AtomAppCrashOccurred = 78,
2840    AtomAnrOccurred = 79,
2841    AtomWtfOccurred = 80,
2842    AtomLowMemReported = 81,
2843    AtomGenericAtom = 82,
2844    AtomVibratorStateChanged = 84,
2845    AtomDeferredJobStatsReported = 85,
2846    AtomThermalThrottling = 86,
2847    AtomBiometricAcquired = 87,
2848    AtomBiometricAuthenticated = 88,
2849    AtomBiometricErrorOccurred = 89,
2850    AtomUiEventReported = 90,
2851    AtomBatteryHealthSnapshot = 91,
2852    AtomSlowIo = 92,
2853    AtomBatteryCausedShutdown = 93,
2854    AtomPhoneServiceStateChanged = 94,
2855    AtomPhoneStateChanged = 95,
2856    AtomUserRestrictionChanged = 96,
2857    AtomSettingsUiChanged = 97,
2858    AtomConnectivityStateChanged = 98,
2859    AtomServiceStateChanged = 99,
2860    AtomServiceLaunchReported = 100,
2861    AtomFlagFlipUpdateOccurred = 101,
2862    AtomBinaryPushStateChanged = 102,
2863    AtomDevicePolicyEvent = 103,
2864    AtomDocsUiFileOpCanceled = 104,
2865    AtomDocsUiFileOpCopyMoveModeReported = 105,
2866    AtomDocsUiFileOpFailure = 106,
2867    AtomDocsUiProviderFileOp = 107,
2868    AtomDocsUiInvalidScopedAccessRequest = 108,
2869    AtomDocsUiLaunchReported = 109,
2870    AtomDocsUiRootVisited = 110,
2871    AtomDocsUiStartupMs = 111,
2872    AtomDocsUiUserActionReported = 112,
2873    AtomWifiEnabledStateChanged = 113,
2874    AtomWifiRunningStateChanged = 114,
2875    AtomAppCompacted = 115,
2876    AtomNetworkDnsEventReported = 116,
2877    AtomDocsUiPickerLaunchedFromReported = 117,
2878    AtomDocsUiPickResultReported = 118,
2879    AtomDocsUiSearchModeReported = 119,
2880    AtomDocsUiSearchTypeReported = 120,
2881    AtomDataStallEvent = 121,
2882    AtomRescuePartyResetReported = 122,
2883    AtomSignedConfigReported = 123,
2884    AtomGnssNiEventReported = 124,
2885    AtomBluetoothLinkLayerConnectionEvent = 125,
2886    AtomBluetoothAclConnectionStateChanged = 126,
2887    AtomBluetoothScoConnectionStateChanged = 127,
2888    AtomAppDowngraded = 128,
2889    AtomAppOptimizedAfterDowngraded = 129,
2890    AtomLowStorageStateChanged = 130,
2891    AtomGnssNfwNotificationReported = 131,
2892    AtomGnssConfigurationReported = 132,
2893    AtomUsbPortOverheatEventReported = 133,
2894    AtomNfcErrorOccurred = 134,
2895    AtomNfcStateChanged = 135,
2896    AtomNfcBeamOccurred = 136,
2897    AtomNfcCardemulationOccurred = 137,
2898    AtomNfcTagOccurred = 138,
2899    AtomNfcHceTransactionOccurred = 139,
2900    AtomSeStateChanged = 140,
2901    AtomSeOmapiReported = 141,
2902    AtomBroadcastDispatchLatencyReported = 142,
2903    AtomAttentionManagerServiceResultReported = 143,
2904    AtomAdbConnectionChanged = 144,
2905    AtomSpeechDspStatReported = 145,
2906    AtomUsbContaminantReported = 146,
2907    AtomWatchdogRollbackOccurred = 147,
2908    AtomBiometricSystemHealthIssueDetected = 148,
2909    AtomBubbleUiChanged = 149,
2910    AtomScheduledJobConstraintChanged = 150,
2911    AtomBluetoothActiveDeviceChanged = 151,
2912    AtomBluetoothA2dpPlaybackStateChanged = 152,
2913    AtomBluetoothA2dpCodecConfigChanged = 153,
2914    AtomBluetoothA2dpCodecCapabilityChanged = 154,
2915    AtomBluetoothA2dpAudioUnderrunReported = 155,
2916    AtomBluetoothA2dpAudioOverrunReported = 156,
2917    AtomBluetoothDeviceRssiReported = 157,
2918    AtomBluetoothDeviceFailedContactCounterReported = 158,
2919    AtomBluetoothDeviceTxPowerLevelReported = 159,
2920    AtomBluetoothHciTimeoutReported = 160,
2921    AtomBluetoothQualityReportReported = 161,
2922    AtomBluetoothDeviceInfoReported = 162,
2923    AtomBluetoothRemoteVersionInfoReported = 163,
2924    AtomBluetoothSdpAttributeReported = 164,
2925    AtomBluetoothBondStateChanged = 165,
2926    AtomBluetoothClassicPairingEventReported = 166,
2927    AtomBluetoothSmpPairingEventReported = 167,
2928    AtomScreenTimeoutExtensionReported = 168,
2929    AtomProcessStartTime = 169,
2930    AtomPermissionGrantRequestResultReported = 170,
2931    AtomBluetoothSocketConnectionStateChanged = 171,
2932    AtomDeviceIdentifierAccessDenied = 172,
2933    AtomBubbleDeveloperErrorReported = 173,
2934    AtomAssistGestureStageReported = 174,
2935    AtomAssistGestureFeedbackReported = 175,
2936    AtomAssistGestureProgressReported = 176,
2937    AtomTouchGestureClassified = 177,
2938    AtomHiddenApiUsed = 178,
2939    AtomStyleUiChanged = 179,
2940    AtomPrivacyIndicatorsInteracted = 180,
2941    AtomAppInstallOnExternalStorageReported = 181,
2942    AtomNetworkStackReported = 182,
2943    AtomAppMovedStorageReported = 183,
2944    AtomBiometricEnrolled = 184,
2945    AtomSystemServerWatchdogOccurred = 185,
2946    AtomTombStoneOccurred = 186,
2947    AtomBluetoothClassOfDeviceReported = 187,
2948    AtomIntelligenceEventReported = 188,
2949    AtomThermalThrottlingSeverityStateChanged = 189,
2950    AtomRoleRequestResultReported = 190,
2951    AtomMediametricsAudiopolicyReported = 191,
2952    AtomMediametricsAudiorecordReported = 192,
2953    AtomMediametricsAudiothreadReported = 193,
2954    AtomMediametricsAudiotrackReported = 194,
2955    AtomMediametricsCodecReported = 195,
2956    AtomMediametricsDrmWidevineReported = 196,
2957    AtomMediametricsExtractorReported = 197,
2958    AtomMediametricsMediadrmReported = 198,
2959    AtomMediametricsNuplayerReported = 199,
2960    AtomMediametricsRecorderReported = 200,
2961    AtomMediametricsDrmmanagerReported = 201,
2962    AtomCarPowerStateChanged = 203,
2963    AtomGarageModeInfo = 204,
2964    AtomTestAtomReported = 205,
2965    AtomContentCaptureCallerMismatchReported = 206,
2966    AtomContentCaptureServiceEvents = 207,
2967    AtomContentCaptureSessionEvents = 208,
2968    AtomContentCaptureFlushed = 209,
2969    AtomLocationManagerApiUsageReported = 210,
2970    AtomReviewPermissionsFragmentResultReported = 211,
2971    AtomRuntimePermissionsUpgradeResult = 212,
2972    AtomGrantPermissionsActivityButtonActions = 213,
2973    AtomLocationAccessCheckNotificationAction = 214,
2974    AtomAppPermissionFragmentActionReported = 215,
2975    AtomAppPermissionFragmentViewed = 216,
2976    AtomAppPermissionsFragmentViewed = 217,
2977    AtomPermissionAppsFragmentViewed = 218,
2978    AtomTextSelectionEvent = 219,
2979    AtomTextLinkifyEvent = 220,
2980    AtomConversationActionsEvent = 221,
2981    AtomLanguageDetectionEvent = 222,
2982    AtomExclusionRectStateChanged = 223,
2983    AtomBackGestureReportedReported = 224,
2984    AtomUpdateEngineUpdateAttemptReported = 225,
2985    AtomUpdateEngineSuccessfulUpdateReported = 226,
2986    AtomCameraActionEvent = 227,
2987    AtomAppCompatibilityChangeReported = 228,
2988    AtomPerfettoUploaded = 229,
2989    AtomVmsClientConnectionStateChanged = 230,
2990    AtomMediaProviderScanOccurred = 233,
2991    AtomMediaContentDeleted = 234,
2992    AtomMediaProviderPermissionRequested = 235,
2993    AtomMediaProviderSchemaChanged = 236,
2994    AtomMediaProviderIdleMaintenanceFinished = 237,
2995    AtomRebootEscrowRecoveryReported = 238,
2996    AtomBootTimeEventDurationReported = 239,
2997    AtomBootTimeEventElapsedTimeReported = 240,
2998    AtomBootTimeEventUtcTimeReported = 241,
2999    AtomBootTimeEventErrorCodeReported = 242,
3000    AtomUserspaceRebootReported = 243,
3001    AtomNotificationReported = 244,
3002    AtomNotificationPanelReported = 245,
3003    AtomNotificationChannelModified = 246,
3004    AtomIntegrityCheckResultReported = 247,
3005    AtomIntegrityRulesPushed = 248,
3006    AtomCbMessageReported = 249,
3007    AtomCbMessageError = 250,
3008    AtomWifiHealthStatReported = 251,
3009    AtomWifiFailureStatReported = 252,
3010    AtomWifiConnectionResultReported = 253,
3011    AtomAppFreezeChanged = 254,
3012    AtomSnapshotMergeReported = 255,
3013    AtomForegroundServiceAppOpSessionEnded = 256,
3014    AtomDisplayJankReported = 257,
3015    AtomAppStandbyBucketChanged = 258,
3016    AtomSharesheetStarted = 259,
3017    AtomRankingSelected = 260,
3018    AtomTvsettingsUiInteracted = 261,
3019    AtomLauncherSnapshot = 262,
3020    AtomPackageInstallerV2Reported = 263,
3021    AtomUserLifecycleJourneyReported = 264,
3022    AtomUserLifecycleEventOccurred = 265,
3023    AtomAccessibilityShortcutReported = 266,
3024    AtomAccessibilityServiceReported = 267,
3025    AtomDocsUiDragAndDropReported = 268,
3026    AtomAppUsageEventOccurred = 269,
3027    AtomAutoRevokeNotificationClicked = 270,
3028    AtomAutoRevokeFragmentAppViewed = 271,
3029    AtomAutoRevokedAppInteraction = 272,
3030    AtomAppPermissionGroupsFragmentAutoRevokeAction = 273,
3031    AtomEvsUsageStatsReported = 274,
3032    AtomAudioPowerUsageDataReported = 275,
3033    AtomTvTunerStateChanged = 276,
3034    AtomMediaoutputOpSwitchReported = 277,
3035    AtomCbMessageFiltered = 278,
3036    AtomTvTunerDvrStatus = 279,
3037    AtomTvCasSessionOpenStatus = 280,
3038    AtomAssistantInvocationReported = 281,
3039    AtomDisplayWakeReported = 282,
3040    AtomCarUserHalModifyUserRequestReported = 283,
3041    AtomCarUserHalModifyUserResponseReported = 284,
3042    AtomCarUserHalPostSwitchResponseReported = 285,
3043    AtomCarUserHalInitialUserInfoRequestReported = 286,
3044    AtomCarUserHalInitialUserInfoResponseReported = 287,
3045    AtomCarUserHalUserAssociationRequestReported = 288,
3046    AtomCarUserHalSetUserAssociationResponseReported = 289,
3047    AtomNetworkIpProvisioningReported = 290,
3048    AtomNetworkDhcpRenewReported = 291,
3049    AtomNetworkValidationReported = 292,
3050    AtomNetworkStackQuirkReported = 293,
3051    AtomMediametricsAudiorecorddeviceusageReported = 294,
3052    AtomMediametricsAudiothreaddeviceusageReported = 295,
3053    AtomMediametricsAudiotrackdeviceusageReported = 296,
3054    AtomMediametricsAudiodeviceconnectionReported = 297,
3055    AtomBlobCommitted = 298,
3056    AtomBlobLeased = 299,
3057    AtomBlobOpened = 300,
3058    AtomContactsProviderStatusReported = 301,
3059    AtomKeystoreKeyEventReported = 302,
3060    AtomNetworkTetheringReported = 303,
3061    AtomImeTouchReported = 304,
3062    AtomUiInteractionFrameInfoReported = 305,
3063    AtomUiActionLatencyReported = 306,
3064    AtomWifiDisconnectReported = 307,
3065    AtomWifiConnectionStateChanged = 308,
3066    AtomHdmiCecActiveSourceChanged = 309,
3067    AtomHdmiCecMessageReported = 310,
3068    AtomAirplaneMode = 311,
3069    AtomModemRestart = 312,
3070    AtomCarrierIdMismatchReported = 313,
3071    AtomCarrierIdTableUpdated = 314,
3072    AtomDataStallRecoveryReported = 315,
3073    AtomMediametricsMediaparserReported = 316,
3074    AtomTlsHandshakeReported = 317,
3075    AtomTextClassifierApiUsageReported = 318,
3076    AtomCarWatchdogKillStatsReported = 319,
3077    AtomMediametricsPlaybackReported = 320,
3078    AtomMediaNetworkInfoChanged = 321,
3079    AtomMediaPlaybackStateChanged = 322,
3080    AtomMediaPlaybackErrorReported = 323,
3081    AtomMediaPlaybackTrackChanged = 324,
3082    AtomWifiScanReported = 325,
3083    AtomWifiPnoScanReported = 326,
3084    AtomTifTuneChanged = 327,
3085    AtomAutoRotateReported = 328,
3086    AtomPerfettoTrigger = 329,
3087    AtomTranscodingData = 330,
3088    AtomImsServiceEntitlementUpdated = 331,
3089    AtomDeviceRotated = 333,
3090    AtomSimSpecificSettingsRestored = 334,
3091    AtomTextClassifierDownloadReported = 335,
3092    AtomPinStorageEvent = 336,
3093    AtomFaceDownReported = 337,
3094    AtomBluetoothHalCrashReasonReported = 338,
3095    AtomRebootEscrowPreparationReported = 339,
3096    AtomRebootEscrowLskfCaptureReported = 340,
3097    AtomRebootEscrowRebootReported = 341,
3098    AtomBinderLatencyReported = 342,
3099    AtomMediametricsAaudiostreamReported = 343,
3100    AtomMediaTranscodingSessionEnded = 344,
3101    AtomMagnificationUsageReported = 345,
3102    AtomMagnificationModeWithImeOnReported = 346,
3103    AtomAppSearchCallStatsReported = 347,
3104    AtomAppSearchPutDocumentStatsReported = 348,
3105    AtomDeviceControlChanged = 349,
3106    AtomDeviceStateChanged = 350,
3107    AtomInputdeviceRegistered = 351,
3108    AtomSmartspaceCardReported = 352,
3109    AtomAuthPromptAuthenticateInvoked = 353,
3110    AtomAuthManagerCanAuthenticateInvoked = 354,
3111    AtomAuthEnrollActionInvoked = 355,
3112    AtomAuthDeprecatedApiUsed = 356,
3113    AtomUnattendedRebootOccurred = 357,
3114    AtomLongRebootBlockingReported = 358,
3115    AtomLocationTimeZoneProviderStateChanged = 359,
3116    AtomFdtrackEventOccurred = 364,
3117    AtomTimeoutAutoExtendedReported = 365,
3118    AtomAlarmBatchDelivered = 367,
3119    AtomAlarmScheduled = 368,
3120    AtomCarWatchdogIoOveruseStatsReported = 369,
3121    AtomUserLevelHibernationStateChanged = 370,
3122    AtomAppSearchInitializeStatsReported = 371,
3123    AtomAppSearchQueryStatsReported = 372,
3124    AtomAppProcessDied = 373,
3125    AtomNetworkIpReachabilityMonitorReported = 374,
3126    AtomSlowInputEventReported = 375,
3127    AtomAnrOccurredProcessingStarted = 376,
3128    AtomAppSearchRemoveStatsReported = 377,
3129    AtomMediaCodecReported = 378,
3130    AtomPermissionUsageFragmentInteraction = 379,
3131    AtomPermissionDetailsInteraction = 380,
3132    AtomPrivacySensorToggleInteraction = 381,
3133    AtomPrivacyToggleDialogInteraction = 382,
3134    AtomAppSearchOptimizeStatsReported = 383,
3135    AtomNonA11yToolServiceWarningReport = 384,
3136    AtomAppCompatStateChanged = 386,
3137    AtomSizeCompatRestartButtonEventReported = 387,
3138    AtomSplitscreenUiChanged = 388,
3139    AtomNetworkDnsHandshakeReported = 389,
3140    AtomBluetoothCodePathCounter = 390,
3141    AtomBluetoothLeBatchScanReportDelay = 392,
3142    AtomAccessibilityFloatingMenuUiChanged = 393,
3143    AtomNeuralnetworksCompilationCompleted = 394,
3144    AtomNeuralnetworksExecutionCompleted = 395,
3145    AtomNeuralnetworksCompilationFailed = 396,
3146    AtomNeuralnetworksExecutionFailed = 397,
3147    AtomContextHubBooted = 398,
3148    AtomContextHubRestarted = 399,
3149    AtomContextHubLoadedNanoappSnapshotReported = 400,
3150    AtomChreCodeDownloadTransacted = 401,
3151    AtomUwbSessionInited = 402,
3152    AtomUwbSessionClosed = 403,
3153    AtomUwbFirstRangingReceived = 404,
3154    AtomUwbRangingMeasurementReceived = 405,
3155    AtomTextClassifierDownloadWorkScheduled = 406,
3156    AtomTextClassifierDownloadWorkCompleted = 407,
3157    AtomClipboardCleared = 408,
3158    AtomVmCreationRequested = 409,
3159    AtomNearbyDeviceScanStateChanged = 410,
3160    AtomApplicationLocalesChanged = 412,
3161    AtomMediametricsAudiotrackstatusReported = 413,
3162    AtomFoldStateDurationReported = 414,
3163    AtomLocationTimeZoneProviderControllerStateChanged = 415,
3164    AtomDisplayHbmStateChanged = 416,
3165    AtomDisplayHbmBrightnessChanged = 417,
3166    AtomPersistentUriPermissionsFlushed = 418,
3167    AtomEarlyBootCompOsArtifactsCheckReported = 419,
3168    AtomVbmetaDigestReported = 420,
3169    AtomApexInfoGathered = 421,
3170    AtomPvmInfoGathered = 422,
3171    AtomWearSettingsUiInteracted = 423,
3172    AtomTracingServiceReportEvent = 424,
3173    AtomMediametricsAudiorecordstatusReported = 425,
3174    AtomLauncherLatency = 426,
3175    AtomDropboxEntryDropped = 427,
3176    AtomWifiP2pConnectionReported = 428,
3177    AtomGameStateChanged = 429,
3178    AtomHotwordDetectorCreateRequested = 430,
3179    AtomHotwordDetectionServiceInitResultReported = 431,
3180    AtomHotwordDetectionServiceRestarted = 432,
3181    AtomHotwordDetectorKeyphraseTriggered = 433,
3182    AtomHotwordDetectorEvents = 434,
3183    AtomBootCompletedBroadcastCompletionLatencyReported = 437,
3184    AtomContactsIndexerUpdateStatsReported = 440,
3185    AtomAppBackgroundRestrictionsInfo = 441,
3186    AtomMmsSmsProviderGetThreadIdFailed = 442,
3187    AtomMmsSmsDatabaseHelperOnUpgradeFailed = 443,
3188    AtomPermissionReminderNotificationInteracted = 444,
3189    AtomRecentPermissionDecisionsInteracted = 445,
3190    AtomGnssPsdsDownloadReported = 446,
3191    AtomLeAudioConnectionSessionReported = 447,
3192    AtomLeAudioBroadcastSessionReported = 448,
3193    AtomDreamUiEventReported = 449,
3194    AtomTaskManagerEventReported = 450,
3195    AtomCdmAssociationAction = 451,
3196    AtomMagnificationTripleTapAndHoldActivatedSessionReported = 452,
3197    AtomMagnificationFollowTypingFocusActivatedSessionReported = 453,
3198    AtomAccessibilityTextReadingOptionsChanged = 454,
3199    AtomWifiSetupFailureCrashReported = 455,
3200    AtomUwbDeviceErrorReported = 456,
3201    AtomIsolatedCompilationScheduled = 457,
3202    AtomIsolatedCompilationEnded = 458,
3203    AtomOnsOpportunisticEsimProvisioningComplete = 459,
3204    AtomSystemServerPreWatchdogOccurred = 460,
3205    AtomTelephonyAnomalyDetected = 461,
3206    AtomLetterboxPositionChanged = 462,
3207    AtomRemoteKeyProvisioningAttempt = 463,
3208    AtomRemoteKeyProvisioningNetworkInfo = 464,
3209    AtomRemoteKeyProvisioningTiming = 465,
3210    AtomMediaoutputOpInteractionReport = 466,
3211    AtomSyncExemptionOccurred = 468,
3212    AtomAutofillPresentationEventReported = 469,
3213    AtomDockStateChanged = 470,
3214    AtomSafetySourceStateCollected = 471,
3215    AtomSafetyCenterSystemEventReported = 472,
3216    AtomSafetyCenterInteractionReported = 473,
3217    AtomSettingsProviderSettingChanged = 474,
3218    AtomBroadcastDeliveryEventReported = 475,
3219    AtomServiceRequestEventReported = 476,
3220    AtomProviderAcquisitionEventReported = 477,
3221    AtomBluetoothDeviceNameReported = 478,
3222    AtomCbConfigUpdated = 479,
3223    AtomCbModuleErrorReported = 480,
3224    AtomCbServiceFeatureChanged = 481,
3225    AtomCbReceiverFeatureChanged = 482,
3226    AtomPrivacySignalNotificationInteraction = 484,
3227    AtomPrivacySignalIssueCardInteraction = 485,
3228    AtomPrivacySignalsJobFailure = 486,
3229    AtomVibrationReported = 487,
3230    AtomUwbRangingStart = 489,
3231    AtomAppCompactedV2 = 491,
3232    AtomDisplayBrightnessChanged = 494,
3233    AtomActivityActionBlocked = 495,
3234    AtomNetworkDnsServerSupportReported = 504,
3235    AtomVmBooted = 505,
3236    AtomVmExited = 506,
3237    AtomAmbientBrightnessStatsReported = 507,
3238    AtomMediametricsSpatializercapabilitiesReported = 508,
3239    AtomMediametricsSpatializerdeviceenabledReported = 509,
3240    AtomMediametricsHeadtrackerdeviceenabledReported = 510,
3241    AtomMediametricsHeadtrackerdevicesupportedReported = 511,
3242    AtomHearingAidInfoReported = 513,
3243    AtomDeviceWideJobConstraintChanged = 514,
3244    AtomAmbientModeChanged = 515,
3245    AtomAnrLatencyReported = 516,
3246    AtomResourceApiInfo = 517,
3247    AtomSystemDefaultNetworkChanged = 518,
3248    AtomIwlanSetupDataCallResultReported = 519,
3249    AtomIwlanPdnDisconnectedReasonReported = 520,
3250    AtomAirplaneModeSessionReported = 521,
3251    AtomVmCpuStatusReported = 522,
3252    AtomVmMemStatusReported = 523,
3253    AtomPackageInstallationSessionReported = 524,
3254    AtomDefaultNetworkRematchInfo = 525,
3255    AtomNetworkSelectionPerformance = 526,
3256    AtomNetworkNsdReported = 527,
3257    AtomBluetoothDisconnectionReasonReported = 529,
3258    AtomBluetoothLocalVersionsReported = 530,
3259    AtomBluetoothRemoteSupportedFeaturesReported = 531,
3260    AtomBluetoothLocalSupportedFeaturesReported = 532,
3261    AtomBluetoothGattAppInfo = 533,
3262    AtomBrightnessConfigurationUpdated = 534,
3263    AtomWearMediaOutputSwitcherLaunched = 538,
3264    AtomWearMediaOutputSwitcherFinished = 539,
3265    AtomWearMediaOutputSwitcherConnectionReported = 540,
3266    AtomWearMediaOutputSwitcherDeviceScanTriggered = 541,
3267    AtomWearMediaOutputSwitcherFirstDeviceScanLatency = 542,
3268    AtomWearMediaOutputSwitcherConnectDeviceLatency = 543,
3269    AtomPackageManagerSnapshotReported = 544,
3270    AtomPackageManagerAppsFilterCacheBuildReported = 545,
3271    AtomPackageManagerAppsFilterCacheUpdateReported = 546,
3272    AtomLauncherImpressionEvent = 547,
3273    AtomWearMediaOutputSwitcherAllDevicesScanLatency = 549,
3274    AtomWsWatchFaceEdited = 551,
3275    AtomWsWatchFaceFavoriteActionReported = 552,
3276    AtomWsWatchFaceSetActionReported = 553,
3277    AtomPackageUninstallationReported = 554,
3278    AtomGameModeChanged = 555,
3279    AtomGameModeConfigurationChanged = 556,
3280    AtomBedtimeModeStateChanged = 557,
3281    AtomNetworkSliceSessionEnded = 558,
3282    AtomNetworkSliceDailyDataUsageReported = 559,
3283    AtomNfcTagTypeOccurred = 560,
3284    AtomNfcAidConflictOccurred = 561,
3285    AtomNfcReaderConflictOccurred = 562,
3286    AtomWsTileListChanged = 563,
3287    AtomGetTypeAccessedWithoutPermission = 564,
3288    AtomMobileBundledAppInfoGathered = 566,
3289    AtomWsWatchFaceComplicationSetChanged = 567,
3290    AtomMediaDrmCreated = 568,
3291    AtomMediaDrmErrored = 569,
3292    AtomMediaDrmSessionOpened = 570,
3293    AtomMediaDrmSessionClosed = 571,
3294    AtomUserSelectedResolution = 572,
3295    AtomUnsafeIntentEventReported = 573,
3296    AtomPerformanceHintSessionReported = 574,
3297    AtomMediametricsMidiDeviceCloseReported = 576,
3298    AtomBiometricTouchReported = 577,
3299    AtomHotwordAudioEgressEventReported = 578,
3300    AtomLocationEnabledStateChanged = 580,
3301    AtomImeRequestFinished = 581,
3302    AtomUsbComplianceWarningsReported = 582,
3303    AtomAppSupportedLocalesChanged = 583,
3304    AtomMediaProviderVolumeRecoveryReported = 586,
3305    AtomBiometricPropertiesCollected = 587,
3306    AtomKernelWakeupAttributed = 588,
3307    AtomScreenStateChangedV2 = 589,
3308    AtomWsBackupActionReported = 590,
3309    AtomWsRestoreActionReported = 591,
3310    AtomDeviceLogAccessEventReported = 592,
3311    AtomMediaSessionUpdated = 594,
3312    AtomWearOobeStateChanged = 595,
3313    AtomWsNotificationUpdated = 596,
3314    AtomNetworkValidationFailureStatsDailyReported = 601,
3315    AtomWsComplicationTapped = 602,
3316    AtomWsNotificationBlocking = 780,
3317    AtomWsNotificationBridgemodeUpdated = 822,
3318    AtomWsNotificationDismissalActioned = 823,
3319    AtomWsNotificationActioned = 824,
3320    AtomWsNotificationLatency = 880,
3321    AtomWifiBytesTransfer = 10000,
3322    AtomWifiBytesTransferByFgBg = 10001,
3323    AtomMobileBytesTransfer = 10002,
3324    AtomMobileBytesTransferByFgBg = 10003,
3325    AtomBluetoothBytesTransfer = 10006,
3326    AtomKernelWakelock = 10004,
3327    AtomSubsystemSleepState = 10005,
3328    AtomCpuTimePerUid = 10009,
3329    AtomCpuTimePerUidFreq = 10010,
3330    AtomWifiActivityInfo = 10011,
3331    AtomModemActivityInfo = 10012,
3332    AtomBluetoothActivityInfo = 10007,
3333    AtomProcessMemoryState = 10013,
3334    AtomSystemElapsedRealtime = 10014,
3335    AtomSystemUptime = 10015,
3336    AtomCpuActiveTime = 10016,
3337    AtomCpuClusterTime = 10017,
3338    AtomDiskSpace = 10018,
3339    AtomRemainingBatteryCapacity = 10019,
3340    AtomFullBatteryCapacity = 10020,
3341    AtomTemperature = 10021,
3342    AtomBinderCalls = 10022,
3343    AtomBinderCallsExceptions = 10023,
3344    AtomLooperStats = 10024,
3345    AtomDiskStats = 10025,
3346    AtomDirectoryUsage = 10026,
3347    AtomAppSize = 10027,
3348    AtomCategorySize = 10028,
3349    AtomProcStats = 10029,
3350    AtomBatteryVoltage = 10030,
3351    AtomNumFingerprintsEnrolled = 10031,
3352    AtomDiskIo = 10032,
3353    AtomPowerProfile = 10033,
3354    AtomProcStatsPkgProc = 10034,
3355    AtomProcessCpuTime = 10035,
3356    AtomCpuTimePerThreadFreq = 10037,
3357    AtomOnDevicePowerMeasurement = 10038,
3358    AtomDeviceCalculatedPowerUse = 10039,
3359    AtomProcessMemoryHighWaterMark = 10042,
3360    AtomBatteryLevel = 10043,
3361    AtomBuildInformation = 10044,
3362    AtomBatteryCycleCount = 10045,
3363    AtomDebugElapsedClock = 10046,
3364    AtomDebugFailingElapsedClock = 10047,
3365    AtomNumFacesEnrolled = 10048,
3366    AtomRoleHolder = 10049,
3367    AtomDangerousPermissionState = 10050,
3368    AtomTrainInfo = 10051,
3369    AtomTimeZoneDataInfo = 10052,
3370    AtomExternalStorageInfo = 10053,
3371    AtomGpuStatsGlobalInfo = 10054,
3372    AtomGpuStatsAppInfo = 10055,
3373    AtomSystemIonHeapSize = 10056,
3374    AtomAppsOnExternalStorageInfo = 10057,
3375    AtomFaceSettings = 10058,
3376    AtomCoolingDevice = 10059,
3377    AtomAppOps = 10060,
3378    AtomProcessSystemIonHeapSize = 10061,
3379    AtomSurfaceflingerStatsGlobalInfo = 10062,
3380    AtomSurfaceflingerStatsLayerInfo = 10063,
3381    AtomProcessMemorySnapshot = 10064,
3382    AtomVmsClientStats = 10065,
3383    AtomNotificationRemoteViews = 10066,
3384    AtomDangerousPermissionStateSampled = 10067,
3385    AtomGraphicsStats = 10068,
3386    AtomRuntimeAppOpAccess = 10069,
3387    AtomIonHeapSize = 10070,
3388    AtomPackageNotificationPreferences = 10071,
3389    AtomPackageNotificationChannelPreferences = 10072,
3390    AtomPackageNotificationChannelGroupPreferences = 10073,
3391    AtomGnssStats = 10074,
3392    AtomAttributedAppOps = 10075,
3393    AtomVoiceCallSession = 10076,
3394    AtomVoiceCallRatUsage = 10077,
3395    AtomSimSlotState = 10078,
3396    AtomSupportedRadioAccessFamily = 10079,
3397    AtomSettingSnapshot = 10080,
3398    AtomBlobInfo = 10081,
3399    AtomDataUsageBytesTransfer = 10082,
3400    AtomBytesTransferByTagAndMetered = 10083,
3401    AtomDndModeRule = 10084,
3402    AtomGeneralExternalStorageAccessStats = 10085,
3403    AtomIncomingSms = 10086,
3404    AtomOutgoingSms = 10087,
3405    AtomCarrierIdTableVersion = 10088,
3406    AtomDataCallSession = 10089,
3407    AtomCellularServiceState = 10090,
3408    AtomCellularDataServiceSwitch = 10091,
3409    AtomSystemMemory = 10092,
3410    AtomImsRegistrationTermination = 10093,
3411    AtomImsRegistrationStats = 10094,
3412    AtomCpuTimePerClusterFreq = 10095,
3413    AtomCpuCyclesPerUidCluster = 10096,
3414    AtomDeviceRotatedData = 10097,
3415    AtomCpuCyclesPerThreadGroupCluster = 10098,
3416    AtomMediaDrmActivityInfo = 10099,
3417    AtomOemManagedBytesTransfer = 10100,
3418    AtomGnssPowerStats = 10101,
3419    AtomTimeZoneDetectorState = 10102,
3420    AtomKeystore2StorageStats = 10103,
3421    AtomRkpPoolStats = 10104,
3422    AtomProcessDmabufMemory = 10105,
3423    AtomPendingAlarmInfo = 10106,
3424    AtomUserLevelHibernatedApps = 10107,
3425    AtomLauncherLayoutSnapshot = 10108,
3426    AtomGlobalHibernatedApps = 10109,
3427    AtomInputEventLatencySketch = 10110,
3428    AtomBatteryUsageStatsBeforeReset = 10111,
3429    AtomBatteryUsageStatsSinceReset = 10112,
3430    AtomBatteryUsageStatsSinceResetUsingPowerProfileModel = 10113,
3431    AtomInstalledIncrementalPackage = 10114,
3432    AtomTelephonyNetworkRequests = 10115,
3433    AtomAppSearchStorageInfo = 10116,
3434    AtomVmstat = 10117,
3435    AtomKeystore2KeyCreationWithGeneralInfo = 10118,
3436    AtomKeystore2KeyCreationWithAuthInfo = 10119,
3437    AtomKeystore2KeyCreationWithPurposeAndModesInfo = 10120,
3438    AtomKeystore2AtomWithOverflow = 10121,
3439    AtomKeystore2KeyOperationWithPurposeAndModesInfo = 10122,
3440    AtomKeystore2KeyOperationWithGeneralInfo = 10123,
3441    AtomRkpErrorStats = 10124,
3442    AtomKeystore2CrashStats = 10125,
3443    AtomVendorApexInfo = 10126,
3444    AtomAccessibilityShortcutStats = 10127,
3445    AtomAccessibilityFloatingMenuStats = 10128,
3446    AtomDataUsageBytesTransferV2 = 10129,
3447    AtomMediaCapabilities = 10130,
3448    AtomCarWatchdogSystemIoUsageSummary = 10131,
3449    AtomCarWatchdogUidIoUsageSummary = 10132,
3450    AtomImsRegistrationFeatureTagStats = 10133,
3451    AtomRcsClientProvisioningStats = 10134,
3452    AtomRcsAcsProvisioningStats = 10135,
3453    AtomSipDelegateStats = 10136,
3454    AtomSipTransportFeatureTagStats = 10137,
3455    AtomSipMessageResponse = 10138,
3456    AtomSipTransportSession = 10139,
3457    AtomImsDedicatedBearerListenerEvent = 10140,
3458    AtomImsDedicatedBearerEvent = 10141,
3459    AtomImsRegistrationServiceDescStats = 10142,
3460    AtomUceEventStats = 10143,
3461    AtomPresenceNotifyEvent = 10144,
3462    AtomGbaEvent = 10145,
3463    AtomPerSimStatus = 10146,
3464    AtomGpuWorkPerUid = 10147,
3465    AtomPersistentUriPermissionsAmountPerPackage = 10148,
3466    AtomSignedPartitionInfo = 10149,
3467    AtomPinnedFileSizesPerPackage = 10150,
3468    AtomPendingIntentsPerPackage = 10151,
3469    AtomUserInfo = 10152,
3470    AtomTelephonyNetworkRequestsV2 = 10153,
3471    AtomDeviceTelephonyProperties = 10154,
3472    AtomRemoteKeyProvisioningErrorCounts = 10155,
3473    AtomSafetyState = 10156,
3474    AtomIncomingMms = 10157,
3475    AtomOutgoingMms = 10158,
3476    AtomMultiUserInfo = 10160,
3477    AtomNetworkBpfMapInfo = 10161,
3478    AtomOutgoingShortCodeSms = 10162,
3479    AtomConnectivityStateSample = 10163,
3480    AtomNetworkSelectionRematchReasonsInfo = 10164,
3481    AtomGameModeInfo = 10165,
3482    AtomGameModeConfiguration = 10166,
3483    AtomGameModeListener = 10167,
3484    AtomNetworkSliceRequestCount = 10168,
3485    AtomWsTileSnapshot = 10169,
3486    AtomWsActiveWatchFaceComplicationSetSnapshot = 10170,
3487    AtomProcessState = 10171,
3488    AtomProcessAssociation = 10172,
3489    AtomAdpfSystemComponentInfo = 10173,
3490    AtomNotificationMemoryUse = 10174,
3491    AtomHdrCapabilities = 10175,
3492    AtomWsFavouriteWatchFaceListSnapshot = 10176,
3493    AtomAccessibilityCheckResultReported = 910,
3494    AtomAdaptiveAuthUnlockAfterLockReported = 820,
3495    AtomThermalStatusCalled = 772,
3496    AtomThermalHeadroomCalled = 773,
3497    AtomThermalHeadroomThresholdsCalled = 774,
3498    AtomAdpfHintSessionTidCleanup = 839,
3499    AtomThermalHeadroomThresholds = 10201,
3500    AtomAdpfSessionSnapshot = 10218,
3501    AtomJsscriptengineLatencyReported = 483,
3502    AtomAdServicesApiCalled = 435,
3503    AtomAdServicesMesurementReportsUploaded = 436,
3504    AtomMobileDataDownloadFileGroupStatusReported = 490,
3505    AtomMobileDataDownloadDownloadResultReported = 502,
3506    AtomAdServicesSettingsUsageReported = 493,
3507    AtomBackgroundFetchProcessReported = 496,
3508    AtomUpdateCustomAudienceProcessReported = 497,
3509    AtomRunAdBiddingProcessReported = 498,
3510    AtomRunAdScoringProcessReported = 499,
3511    AtomRunAdSelectionProcessReported = 500,
3512    AtomRunAdBiddingPerCaProcessReported = 501,
3513    AtomMobileDataDownloadFileGroupStorageStatsReported = 503,
3514    AtomAdServicesMeasurementRegistrations = 512,
3515    AtomAdServicesGetTopicsReported = 535,
3516    AtomAdServicesEpochComputationGetTopTopicsReported = 536,
3517    AtomAdServicesEpochComputationClassifierReported = 537,
3518    AtomAdServicesBackCompatGetTopicsReported = 598,
3519    AtomAdServicesBackCompatEpochComputationClassifierReported = 599,
3520    AtomAdServicesMeasurementDebugKeys = 640,
3521    AtomAdServicesErrorReported = 662,
3522    AtomAdServicesBackgroundJobsExecutionReported = 663,
3523    AtomAdServicesMeasurementDelayedSourceRegistration = 673,
3524    AtomAdServicesMeasurementAttribution = 674,
3525    AtomAdServicesMeasurementJobs = 675,
3526    AtomAdServicesMeasurementWipeout = 676,
3527    AtomAdServicesMeasurementAdIdMatchForDebugKeys = 695,
3528    AtomAdServicesEnrollmentDataStored = 697,
3529    AtomAdServicesEnrollmentFileDownloaded = 698,
3530    AtomAdServicesEnrollmentMatched = 699,
3531    AtomAdServicesConsentMigrated = 702,
3532    AtomAdServicesEnrollmentFailed = 714,
3533    AtomAdServicesMeasurementClickVerification = 756,
3534    AtomAdServicesEncryptionKeyFetched = 765,
3535    AtomAdServicesEncryptionKeyDbTransactionEnded = 766,
3536    AtomDestinationRegisteredBeacons = 767,
3537    AtomReportInteractionApiCalled = 768,
3538    AtomInteractionReportingTableCleared = 769,
3539    AtomAppManifestConfigHelperCalled = 788,
3540    AtomAdFilteringProcessJoinCaReported = 793,
3541    AtomAdFilteringProcessAdSelectionReported = 794,
3542    AtomAdCounterHistogramUpdaterReported = 795,
3543    AtomSignatureVerification = 807,
3544    AtomKAnonImmediateSignJoinStatusReported = 808,
3545    AtomKAnonBackgroundJobStatusReported = 809,
3546    AtomKAnonInitializeStatusReported = 810,
3547    AtomKAnonSignStatusReported = 811,
3548    AtomKAnonJoinStatusReported = 812,
3549    AtomKAnonKeyAttestationStatusReported = 813,
3550    AtomGetAdSelectionDataApiCalled = 814,
3551    AtomGetAdSelectionDataBuyerInputGenerated = 815,
3552    AtomBackgroundJobSchedulingReported = 834,
3553    AtomTopicsEncryptionEpochComputationReported = 840,
3554    AtomTopicsEncryptionGetTopicsReported = 841,
3555    AtomAdservicesShellCommandCalled = 842,
3556    AtomUpdateSignalsApiCalled = 843,
3557    AtomEncodingJobRun = 844,
3558    AtomEncodingJsFetch = 845,
3559    AtomEncodingJsExecution = 846,
3560    AtomPersistAdSelectionResultCalled = 847,
3561    AtomServerAuctionKeyFetchCalled = 848,
3562    AtomServerAuctionBackgroundKeyFetchEnabled = 849,
3563    AtomAdServicesMeasurementProcessOdpRegistration = 864,
3564    AtomAdServicesMeasurementNotifyRegistrationToOdp = 865,
3565    AtomSelectAdsFromOutcomesApiCalled = 876,
3566    AtomReportImpressionApiCalled = 877,
3567    AtomAdServicesEnrollmentTransactionStats = 885,
3568    AtomAdServicesCobaltLoggerEventReported = 902,
3569    AtomAdServicesCobaltPeriodicJobEventReported = 903,
3570    AtomUpdateSignalsProcessReported = 905,
3571    AtomTopicsScheduleEpochJobSettingReported = 930,
3572    AtomAiWallpapersButtonPressed = 706,
3573    AtomAiWallpapersTemplateSelected = 707,
3574    AtomAiWallpapersTermSelected = 708,
3575    AtomAiWallpapersWallpaperSet = 709,
3576    AtomAiWallpapersSessionSummary = 710,
3577    AtomApexInstallationRequested = 732,
3578    AtomApexInstallationStaged = 733,
3579    AtomApexInstallationEnded = 734,
3580    AtomAppSearchSetSchemaStatsReported = 385,
3581    AtomAppSearchSchemaMigrationStatsReported = 579,
3582    AtomAppSearchUsageSearchIntentStatsReported = 825,
3583    AtomAppSearchUsageSearchIntentRawQueryStatsReported = 826,
3584    AtomAppSearchAppsIndexerStatsReported = 909,
3585    AtomArtDatumReported = 332,
3586    AtomArtDeviceDatumReported = 550,
3587    AtomArtDatumDeltaReported = 565,
3588    AtomArtDex2oatReported = 929,
3589    AtomArtDeviceStatus = 10205,
3590    AtomBackgroundDexoptJobEnded = 467,
3591    AtomPrerebootDexoptJobEnded = 883,
3592    AtomOdrefreshReported = 366,
3593    AtomOdsignReported = 548,
3594    AtomAutofillUiEventReported = 603,
3595    AtomAutofillFillRequestReported = 604,
3596    AtomAutofillFillResponseReported = 605,
3597    AtomAutofillSaveEventReported = 606,
3598    AtomAutofillSessionCommitted = 607,
3599    AtomAutofillFieldClassificationEventReported = 659,
3600    AtomCarRecentsEventReported = 770,
3601    AtomCarCalmModeEventReported = 797,
3602    AtomCarWakeupFromSuspendReported = 852,
3603    AtomPluginInitialized = 655,
3604    AtomBluetoothHashedDeviceNameReported = 613,
3605    AtomBluetoothL2capCocClientConnection = 614,
3606    AtomBluetoothL2capCocServerConnection = 615,
3607    AtomBluetoothLeSessionConnected = 656,
3608    AtomRestrictedBluetoothDeviceNameReported = 666,
3609    AtomBluetoothProfileConnectionAttempted = 696,
3610    AtomBluetoothContentProfileErrorReported = 781,
3611    AtomBluetoothRfcommConnectionAttempted = 782,
3612    AtomRemoteDeviceInformationWithMetricId = 862,
3613    AtomLeAppScanStateChanged = 870,
3614    AtomLeRadioScanStopped = 871,
3615    AtomLeScanResultReceived = 872,
3616    AtomLeScanAbused = 873,
3617    AtomLeAdvStateChanged = 874,
3618    AtomLeAdvErrorReported = 875,
3619    AtomA2dpSessionReported = 904,
3620    AtomBluetoothCrossLayerEventReported = 916,
3621    AtomBroadcastAudioSessionReported = 927,
3622    AtomBroadcastAudioSyncReported = 928,
3623    AtomBluetoothRfcommConnectionReportedAtClose = 982,
3624    AtomBluetoothLeConnection = 988,
3625    AtomBroadcastSent = 922,
3626    AtomCameraFeatureCombinationQueryEvent = 900,
3627    AtomCertificateTransparencyLogListStateChanged = 934,
3628    AtomCertificateTransparencyLogListUpdateFailed = 972,
3629    AtomDailyKeepaliveInfoReported = 650,
3630    AtomNetworkRequestStateChanged = 779,
3631    AtomTetheringActiveSessionsReported = 925,
3632    AtomNetworkStatsRecorderFileOperated = 783,
3633    AtomCoreNetworkingTerribleErrorOccurred = 979,
3634    AtomApfSessionInfoReported = 777,
3635    AtomIpClientRaInfoReported = 778,
3636    AtomVpnConnectionStateChanged = 850,
3637    AtomVpnConnectionReported = 851,
3638    AtomCpuPolicy = 10199,
3639    AtomCredentialManagerApiCalled = 585,
3640    AtomCredentialManagerInitPhaseReported = 651,
3641    AtomCredentialManagerCandidatePhaseReported = 652,
3642    AtomCredentialManagerFinalPhaseReported = 653,
3643    AtomCredentialManagerTotalReported = 667,
3644    AtomCredentialManagerFinalnouidReported = 668,
3645    AtomCredentialManagerGetReported = 669,
3646    AtomCredentialManagerAuthClickReported = 670,
3647    AtomCredentialManagerApiv2Called = 671,
3648    AtomCronetEngineCreated = 703,
3649    AtomCronetTrafficReported = 704,
3650    AtomCronetEngineBuilderInitialized = 762,
3651    AtomCronetHttpFlagsInitialized = 763,
3652    AtomCronetInitialized = 764,
3653    AtomDesktopModeUiChanged = 818,
3654    AtomDesktopModeSessionTaskUpdate = 819,
3655    AtomDesktopModeTaskSizeUpdated = 935,
3656    AtomDeviceLockCheckInRequestReported = 726,
3657    AtomDeviceLockProvisioningCompleteReported = 727,
3658    AtomDeviceLockKioskAppRequestReported = 728,
3659    AtomDeviceLockCheckInRetryReported = 789,
3660    AtomDeviceLockProvisionFailureReported = 790,
3661    AtomDeviceLockLockUnlockDeviceFailureReported = 791,
3662    AtomDevicePolicyManagementMode = 10216,
3663    AtomDevicePolicyState = 10217,
3664    AtomDisplayModeDirectorVoteChanged = 792,
3665    AtomExternalDisplayStateChanged = 806,
3666    AtomDndStateChanged = 657,
3667    AtomDreamSettingChanged = 705,
3668    AtomDreamSettingSnapshot = 10192,
3669    AtomExpressEventReported = 528,
3670    AtomExpressHistogramSampleReported = 593,
3671    AtomExpressUidEventReported = 644,
3672    AtomExpressUidHistogramSampleReported = 658,
3673    AtomFederatedComputeApiCalled = 712,
3674    AtomFederatedComputeTrainingEventReported = 771,
3675    AtomExampleIteratorNextLatencyReported = 838,
3676    AtomFullScreenIntentLaunched = 631,
3677    AtomBalAllowed = 632,
3678    AtomInTaskActivityStarted = 685,
3679    AtomDeviceOrientationChanged = 906,
3680    AtomCachedAppsHighWatermark = 10189,
3681    AtomStylusPredictionMetricsReported = 718,
3682    AtomUserRiskEventReported = 725,
3683    AtomMediaProjectionStateChanged = 729,
3684    AtomMediaProjectionTargetChanged = 730,
3685    AtomExcessiveBinderProxyCountReported = 853,
3686    AtomProxyBytesTransferByFgBg = 10200,
3687    AtomMobileBytesTransferByProcState = 10204,
3688    AtomBiometricFrrNotification = 817,
3689    AtomSensitiveContentMediaProjectionSession = 830,
3690    AtomSensitiveNotificationAppProtectionSession = 831,
3691    AtomSensitiveNotificationAppProtectionApplied = 832,
3692    AtomSensitiveNotificationRedaction = 833,
3693    AtomSensitiveContentAppProtection = 835,
3694    AtomAppRestrictionStateChanged = 866,
3695    AtomBatteryUsageStatsPerUid = 10209,
3696    AtomPostgcMemorySnapshot = 924,
3697    AtomPowerSaveTempAllowlistChanged = 926,
3698    AtomAppOpAccessTracked = 931,
3699    AtomContentOrFileUriEventReported = 933,
3700    AtomApplicationGrammaticalInflectionChanged = 584,
3701    AtomSystemGrammaticalInflectionChanged = 816,
3702    AtomBatteryHealth = 10220,
3703    AtomHdmiEarcStatusReported = 701,
3704    AtomHdmiSoundbarModeStatusReported = 724,
3705    AtomHealthConnectApiCalled = 616,
3706    AtomHealthConnectUsageStats = 617,
3707    AtomHealthConnectStorageStats = 618,
3708    AtomHealthConnectApiInvoked = 643,
3709    AtomExerciseRouteApiCalled = 654,
3710    AtomHealthConnectExportInvoked = 907,
3711    AtomHealthConnectImportInvoked = 918,
3712    AtomHealthConnectExportImportStatsReported = 919,
3713    AtomHealthConnectUiImpression = 623,
3714    AtomHealthConnectUiInteraction = 624,
3715    AtomHealthConnectAppOpenedReported = 625,
3716    AtomHotwordEgressSizeAtomReported = 761,
3717    AtomIkeSessionTerminated = 678,
3718    AtomIkeLivenessCheckSessionValidated = 760,
3719    AtomNegotiatedSecurityAssociation = 821,
3720    AtomKeyboardConfigured = 682,
3721    AtomKeyboardSystemsEventReported = 683,
3722    AtomInputdeviceUsageReported = 686,
3723    AtomInputEventLatencyReported = 932,
3724    AtomTouchpadUsage = 10191,
3725    AtomKernelOomKillOccurred = 754,
3726    AtomEmergencyStateChanged = 633,
3727    AtomChreSignificantMotionStateChanged = 868,
3728    AtomPopulationDensityProviderLoadingReported = 1002,
3729    AtomDensityBasedCoarseLocationsUsageReported = 1003,
3730    AtomDensityBasedCoarseLocationsProviderQueryReported = 1004,
3731    AtomMediaCodecReclaimRequestCompleted = 600,
3732    AtomMediaCodecStarted = 641,
3733    AtomMediaCodecStopped = 642,
3734    AtomMediaCodecRendered = 684,
3735    AtomMediaEditingEndedReported = 798,
3736    AtomMteState = 10181,
3737    AtomMicroxrDeviceBootCompleteReported = 901,
3738    AtomNfcObserveModeStateChanged = 855,
3739    AtomNfcFieldChanged = 856,
3740    AtomNfcPollingLoopNotificationReported = 857,
3741    AtomNfcProprietaryCapabilitiesReported = 858,
3742    AtomOndevicepersonalizationApiCalled = 711,
3743    AtomComponentStateChangedReported = 863,
3744    AtomPdfLoadReported = 859,
3745    AtomPdfApiUsageReported = 860,
3746    AtomPdfSearchReported = 861,
3747    AtomPressureStallInformation = 10229,
3748    AtomPermissionRationaleDialogViewed = 645,
3749    AtomPermissionRationaleDialogActionReported = 646,
3750    AtomAppDataSharingUpdatesNotificationInteraction = 647,
3751    AtomAppDataSharingUpdatesFragmentViewed = 648,
3752    AtomAppDataSharingUpdatesFragmentActionReported = 649,
3753    AtomEnhancedConfirmationDialogResultReported = 827,
3754    AtomEnhancedConfirmationRestrictionCleared = 828,
3755    AtomPhotopickerSessionInfoReported = 886,
3756    AtomPhotopickerApiInfoReported = 887,
3757    AtomPhotopickerUiEventLogged = 888,
3758    AtomPhotopickerMediaItemStatusReported = 889,
3759    AtomPhotopickerPreviewInfoLogged = 890,
3760    AtomPhotopickerMenuInteractionLogged = 891,
3761    AtomPhotopickerBannerInteractionLogged = 892,
3762    AtomPhotopickerMediaLibraryInfoLogged = 893,
3763    AtomPhotopickerPageInfoLogged = 894,
3764    AtomPhotopickerMediaGridSyncInfoReported = 895,
3765    AtomPhotopickerAlbumSyncInfoReported = 896,
3766    AtomPhotopickerSearchInfoReported = 897,
3767    AtomSearchDataExtractionDetailsReported = 898,
3768    AtomEmbeddedPhotopickerInfoReported = 899,
3769    AtomAtom9999 = 9999,
3770    AtomAtom99999 = 99999,
3771    AtomScreenOffReported = 776,
3772    AtomScreenTimeoutOverrideReported = 836,
3773    AtomScreenInteractiveSessionReported = 837,
3774    AtomScreenDimReported = 867,
3775    AtomMediaProviderDatabaseRollbackReported = 784,
3776    AtomBackupSetupStatusReported = 785,
3777    AtomRangingSessionConfigured = 993,
3778    AtomRangingSessionStarted = 994,
3779    AtomRangingSessionClosed = 995,
3780    AtomRangingTechnologyStarted = 996,
3781    AtomRangingTechnologyStopped = 997,
3782    AtomRkpdPoolStats = 664,
3783    AtomRkpdClientOperation = 665,
3784    AtomSandboxApiCalled = 488,
3785    AtomSandboxActivityEventOccurred = 735,
3786    AtomSdkSandboxRestrictedAccessInSession = 796,
3787    AtomSandboxSdkStorage = 10159,
3788    AtomSelinuxAuditLog = 799,
3789    AtomSettingsSpaReported = 622,
3790    AtomTestExtensionAtomReported = 660,
3791    AtomTestRestrictedAtomReported = 672,
3792    AtomStatsSocketLossReported = 752,
3793    AtomLockscreenShortcutSelected = 611,
3794    AtomLockscreenShortcutTriggered = 612,
3795    AtomLauncherImpressionEventV2 = 716,
3796    AtomDisplaySwitchLatencyTracked = 753,
3797    AtomNotificationListenerService = 829,
3798    AtomNavHandleTouchPoints = 869,
3799    AtomCommunalHubWidgetEventReported = 908,
3800    AtomCommunalHubSnapshot = 10226,
3801    AtomEmergencyNumberDialed = 637,
3802    AtomCallStats = 10221,
3803    AtomCallAudioRouteStats = 10222,
3804    AtomTelecomApiStats = 10223,
3805    AtomTelecomErrorStats = 10224,
3806    AtomCellularRadioPowerStateChanged = 713,
3807    AtomEmergencyNumbersInfo = 10180,
3808    AtomDataNetworkValidation = 10207,
3809    AtomDataRatStateChanged = 854,
3810    AtomConnectedChannelChanged = 882,
3811    AtomIwlanUnderlyingNetworkValidationResultReported = 923,
3812    AtomQualifiedRatListChanged = 634,
3813    AtomQnsImsCallDropStats = 635,
3814    AtomQnsFallbackRestrictionChanged = 636,
3815    AtomQnsRatPreferenceMismatchInfo = 10177,
3816    AtomQnsHandoverTimeMillis = 10178,
3817    AtomQnsHandoverPingpong = 10179,
3818    AtomSatelliteController = 10182,
3819    AtomSatelliteSession = 10183,
3820    AtomSatelliteIncomingDatagram = 10184,
3821    AtomSatelliteOutgoingDatagram = 10185,
3822    AtomSatelliteProvision = 10186,
3823    AtomSatelliteSosMessageRecommender = 10187,
3824    AtomCarrierRoamingSatelliteSession = 10211,
3825    AtomCarrierRoamingSatelliteControllerStats = 10212,
3826    AtomControllerStatsPerPackage = 10213,
3827    AtomSatelliteEntitlement = 10214,
3828    AtomSatelliteConfigUpdater = 10215,
3829    AtomSatelliteAccessController = 10219,
3830    AtomCellularIdentifierDisclosed = 800,
3831    AtomThreadnetworkTelemetryDataReported = 738,
3832    AtomThreadnetworkTopoEntryRepeated = 739,
3833    AtomThreadnetworkDeviceInfoReported = 740,
3834    AtomBootIntegrityInfoReported = 775,
3835    AtomTvLowPowerStandbyPolicy = 679,
3836    AtomExternalTvInputEvent = 717,
3837    AtomTestUprobestatsAtomReported = 915,
3838    AtomUwbActivityInfo = 10188,
3839    AtomMediatorUpdated = 721,
3840    AtomSysproxyBluetoothBytesTransfer = 10196,
3841    AtomSysproxyConnectionUpdated = 786,
3842    AtomWearCompanionConnectionState = 921,
3843    AtomMediaActionReported = 608,
3844    AtomMediaControlsLaunched = 609,
3845    AtomMediaSessionStateChanged = 677,
3846    AtomWearMediaOutputSwitcherDeviceScanApiLatency = 757,
3847    AtomWearMediaOutputSwitcherSassDeviceUnavailable = 758,
3848    AtomWearMediaOutputSwitcherFastpairApiTimeout = 759,
3849    AtomWearModeStateChanged = 715,
3850    AtomRendererInitialized = 736,
3851    AtomSchemaVersionReceived = 737,
3852    AtomLayoutInspected = 741,
3853    AtomLayoutExpressionInspected = 742,
3854    AtomLayoutAnimationsInspected = 743,
3855    AtomMaterialComponentsInspected = 744,
3856    AtomTileRequested = 745,
3857    AtomStateResponseReceived = 746,
3858    AtomTileResponseReceived = 747,
3859    AtomInflationFinished = 748,
3860    AtomInflationFailed = 749,
3861    AtomIgnoredInflationFailuresReported = 750,
3862    AtomDrawableRendered = 751,
3863    AtomWearTimeSyncRequested = 911,
3864    AtomWearTimeUpdateStarted = 912,
3865    AtomWearTimeSyncAttemptCompleted = 913,
3866    AtomWearTimeChanged = 914,
3867    AtomWearAdaptiveSuspendStatsReported = 619,
3868    AtomWearPowerAnomalyServiceOperationalStatsReported = 620,
3869    AtomWearPowerAnomalyServiceEventStatsReported = 621,
3870    AtomWsWearTimeSession = 610,
3871    AtomWsIncomingCallActionReported = 626,
3872    AtomWsCallDisconnectionReported = 627,
3873    AtomWsCallDurationReported = 628,
3874    AtomWsCallUserExperienceLatencyReported = 629,
3875    AtomWsCallInteractionReported = 630,
3876    AtomWsOnBodyStateChanged = 787,
3877    AtomWsWatchFaceRestrictedComplicationsImpacted = 802,
3878    AtomWsWatchFaceDefaultRestrictedComplicationsRemoved = 803,
3879    AtomWsComplicationsImpactedNotificationEventReported = 804,
3880    AtomWsRemoteEventUsageReported = 920,
3881    AtomWsBugreportRequested = 936,
3882    AtomWsBugreportTriggered = 937,
3883    AtomWsBugreportFinished = 938,
3884    AtomWsBugreportResultReceived = 939,
3885    AtomWsStandaloneModeSnapshot = 10197,
3886    AtomWsFavoriteWatchFaceSnapshot = 10206,
3887    AtomWsPhotosWatchFaceFeatureSnapshot = 10225,
3888    AtomWsWatchFaceCustomizationSnapshot = 10227,
3889    AtomWearPowerMenuOpened = 731,
3890    AtomWearAssistantOpened = 755,
3891    AtomFirstOverlayStateChanged = 917,
3892    AtomWifiAwareNdpReported = 638,
3893    AtomWifiAwareAttachReported = 639,
3894    AtomWifiSelfRecoveryTriggered = 661,
3895    AtomSoftApStarted = 680,
3896    AtomSoftApStopped = 681,
3897    AtomWifiLockReleased = 687,
3898    AtomWifiLockDeactivated = 688,
3899    AtomWifiConfigSaved = 689,
3900    AtomWifiAwareResourceUsingChanged = 690,
3901    AtomWifiAwareHalApiCalled = 691,
3902    AtomWifiLocalOnlyRequestReceived = 692,
3903    AtomWifiLocalOnlyRequestScanTriggered = 693,
3904    AtomWifiThreadTaskExecuted = 694,
3905    AtomWifiStateChanged = 700,
3906    AtomPnoScanStarted = 719,
3907    AtomPnoScanStopped = 720,
3908    AtomWifiIsUnusableReported = 722,
3909    AtomWifiApCapabilitiesReported = 723,
3910    AtomSoftApStateChanged = 805,
3911    AtomScorerPredictionResultReported = 884,
3912    AtomWifiAwareCapabilities = 10190,
3913    AtomWifiModuleInfo = 10193,
3914    AtomWifiSettingInfo = 10194,
3915    AtomWifiComplexSettingInfo = 10195,
3916    AtomWifiConfiguredNetworkInfo = 10198,
3917}
3918impl AtomId {
3919    /// String value of the enum field names used in the ProtoBuf definition.
3920    ///
3921    /// The values are not transformed in any way and thus are considered stable
3922    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3923    pub fn as_str_name(&self) -> &'static str {
3924        match self {
3925            AtomId::AtomUnspecified => "ATOM_UNSPECIFIED",
3926            AtomId::AtomBleScanStateChanged => "ATOM_BLE_SCAN_STATE_CHANGED",
3927            AtomId::AtomProcessStateChanged => "ATOM_PROCESS_STATE_CHANGED",
3928            AtomId::AtomBleScanResultReceived => "ATOM_BLE_SCAN_RESULT_RECEIVED",
3929            AtomId::AtomSensorStateChanged => "ATOM_SENSOR_STATE_CHANGED",
3930            AtomId::AtomGpsScanStateChanged => "ATOM_GPS_SCAN_STATE_CHANGED",
3931            AtomId::AtomSyncStateChanged => "ATOM_SYNC_STATE_CHANGED",
3932            AtomId::AtomScheduledJobStateChanged => "ATOM_SCHEDULED_JOB_STATE_CHANGED",
3933            AtomId::AtomScreenBrightnessChanged => "ATOM_SCREEN_BRIGHTNESS_CHANGED",
3934            AtomId::AtomWakelockStateChanged => "ATOM_WAKELOCK_STATE_CHANGED",
3935            AtomId::AtomLongPartialWakelockStateChanged => "ATOM_LONG_PARTIAL_WAKELOCK_STATE_CHANGED",
3936            AtomId::AtomMobileRadioPowerStateChanged => "ATOM_MOBILE_RADIO_POWER_STATE_CHANGED",
3937            AtomId::AtomWifiRadioPowerStateChanged => "ATOM_WIFI_RADIO_POWER_STATE_CHANGED",
3938            AtomId::AtomActivityManagerSleepStateChanged => "ATOM_ACTIVITY_MANAGER_SLEEP_STATE_CHANGED",
3939            AtomId::AtomMemoryFactorStateChanged => "ATOM_MEMORY_FACTOR_STATE_CHANGED",
3940            AtomId::AtomExcessiveCpuUsageReported => "ATOM_EXCESSIVE_CPU_USAGE_REPORTED",
3941            AtomId::AtomCachedKillReported => "ATOM_CACHED_KILL_REPORTED",
3942            AtomId::AtomProcessMemoryStatReported => "ATOM_PROCESS_MEMORY_STAT_REPORTED",
3943            AtomId::AtomLauncherEvent => "ATOM_LAUNCHER_EVENT",
3944            AtomId::AtomBatterySaverModeStateChanged => "ATOM_BATTERY_SAVER_MODE_STATE_CHANGED",
3945            AtomId::AtomDeviceIdleModeStateChanged => "ATOM_DEVICE_IDLE_MODE_STATE_CHANGED",
3946            AtomId::AtomDeviceIdlingModeStateChanged => "ATOM_DEVICE_IDLING_MODE_STATE_CHANGED",
3947            AtomId::AtomAudioStateChanged => "ATOM_AUDIO_STATE_CHANGED",
3948            AtomId::AtomMediaCodecStateChanged => "ATOM_MEDIA_CODEC_STATE_CHANGED",
3949            AtomId::AtomCameraStateChanged => "ATOM_CAMERA_STATE_CHANGED",
3950            AtomId::AtomFlashlightStateChanged => "ATOM_FLASHLIGHT_STATE_CHANGED",
3951            AtomId::AtomUidProcessStateChanged => "ATOM_UID_PROCESS_STATE_CHANGED",
3952            AtomId::AtomProcessLifeCycleStateChanged => "ATOM_PROCESS_LIFE_CYCLE_STATE_CHANGED",
3953            AtomId::AtomScreenStateChanged => "ATOM_SCREEN_STATE_CHANGED",
3954            AtomId::AtomBatteryLevelChanged => "ATOM_BATTERY_LEVEL_CHANGED",
3955            AtomId::AtomChargingStateChanged => "ATOM_CHARGING_STATE_CHANGED",
3956            AtomId::AtomPluggedStateChanged => "ATOM_PLUGGED_STATE_CHANGED",
3957            AtomId::AtomInteractiveStateChanged => "ATOM_INTERACTIVE_STATE_CHANGED",
3958            AtomId::AtomTouchEventReported => "ATOM_TOUCH_EVENT_REPORTED",
3959            AtomId::AtomWakeupAlarmOccurred => "ATOM_WAKEUP_ALARM_OCCURRED",
3960            AtomId::AtomKernelWakeupReported => "ATOM_KERNEL_WAKEUP_REPORTED",
3961            AtomId::AtomWifiLockStateChanged => "ATOM_WIFI_LOCK_STATE_CHANGED",
3962            AtomId::AtomWifiSignalStrengthChanged => "ATOM_WIFI_SIGNAL_STRENGTH_CHANGED",
3963            AtomId::AtomWifiScanStateChanged => "ATOM_WIFI_SCAN_STATE_CHANGED",
3964            AtomId::AtomPhoneSignalStrengthChanged => "ATOM_PHONE_SIGNAL_STRENGTH_CHANGED",
3965            AtomId::AtomSettingChanged => "ATOM_SETTING_CHANGED",
3966            AtomId::AtomActivityForegroundStateChanged => "ATOM_ACTIVITY_FOREGROUND_STATE_CHANGED",
3967            AtomId::AtomIsolatedUidChanged => "ATOM_ISOLATED_UID_CHANGED",
3968            AtomId::AtomPacketWakeupOccurred => "ATOM_PACKET_WAKEUP_OCCURRED",
3969            AtomId::AtomWallClockTimeShifted => "ATOM_WALL_CLOCK_TIME_SHIFTED",
3970            AtomId::AtomAnomalyDetected => "ATOM_ANOMALY_DETECTED",
3971            AtomId::AtomAppBreadcrumbReported => "ATOM_APP_BREADCRUMB_REPORTED",
3972            AtomId::AtomAppStartOccurred => "ATOM_APP_START_OCCURRED",
3973            AtomId::AtomAppStartCanceled => "ATOM_APP_START_CANCELED",
3974            AtomId::AtomAppStartFullyDrawn => "ATOM_APP_START_FULLY_DRAWN",
3975            AtomId::AtomLmkKillOccurred => "ATOM_LMK_KILL_OCCURRED",
3976            AtomId::AtomPictureInPictureStateChanged => "ATOM_PICTURE_IN_PICTURE_STATE_CHANGED",
3977            AtomId::AtomWifiMulticastLockStateChanged => "ATOM_WIFI_MULTICAST_LOCK_STATE_CHANGED",
3978            AtomId::AtomAppStartMemoryStateCaptured => "ATOM_APP_START_MEMORY_STATE_CAPTURED",
3979            AtomId::AtomShutdownSequenceReported => "ATOM_SHUTDOWN_SEQUENCE_REPORTED",
3980            AtomId::AtomBootSequenceReported => "ATOM_BOOT_SEQUENCE_REPORTED",
3981            AtomId::AtomOverlayStateChanged => "ATOM_OVERLAY_STATE_CHANGED",
3982            AtomId::AtomForegroundServiceStateChanged => "ATOM_FOREGROUND_SERVICE_STATE_CHANGED",
3983            AtomId::AtomCallStateChanged => "ATOM_CALL_STATE_CHANGED",
3984            AtomId::AtomKeyguardStateChanged => "ATOM_KEYGUARD_STATE_CHANGED",
3985            AtomId::AtomKeyguardBouncerStateChanged => "ATOM_KEYGUARD_BOUNCER_STATE_CHANGED",
3986            AtomId::AtomKeyguardBouncerPasswordEntered => "ATOM_KEYGUARD_BOUNCER_PASSWORD_ENTERED",
3987            AtomId::AtomAppDied => "ATOM_APP_DIED",
3988            AtomId::AtomResourceConfigurationChanged => "ATOM_RESOURCE_CONFIGURATION_CHANGED",
3989            AtomId::AtomBluetoothEnabledStateChanged => "ATOM_BLUETOOTH_ENABLED_STATE_CHANGED",
3990            AtomId::AtomBluetoothConnectionStateChanged => "ATOM_BLUETOOTH_CONNECTION_STATE_CHANGED",
3991            AtomId::AtomGpsSignalQualityChanged => "ATOM_GPS_SIGNAL_QUALITY_CHANGED",
3992            AtomId::AtomUsbConnectorStateChanged => "ATOM_USB_CONNECTOR_STATE_CHANGED",
3993            AtomId::AtomSpeakerImpedanceReported => "ATOM_SPEAKER_IMPEDANCE_REPORTED",
3994            AtomId::AtomHardwareFailed => "ATOM_HARDWARE_FAILED",
3995            AtomId::AtomPhysicalDropDetected => "ATOM_PHYSICAL_DROP_DETECTED",
3996            AtomId::AtomChargeCyclesReported => "ATOM_CHARGE_CYCLES_REPORTED",
3997            AtomId::AtomMobileConnectionStateChanged => "ATOM_MOBILE_CONNECTION_STATE_CHANGED",
3998            AtomId::AtomMobileRadioTechnologyChanged => "ATOM_MOBILE_RADIO_TECHNOLOGY_CHANGED",
3999            AtomId::AtomUsbDeviceAttached => "ATOM_USB_DEVICE_ATTACHED",
4000            AtomId::AtomAppCrashOccurred => "ATOM_APP_CRASH_OCCURRED",
4001            AtomId::AtomAnrOccurred => "ATOM_ANR_OCCURRED",
4002            AtomId::AtomWtfOccurred => "ATOM_WTF_OCCURRED",
4003            AtomId::AtomLowMemReported => "ATOM_LOW_MEM_REPORTED",
4004            AtomId::AtomGenericAtom => "ATOM_GENERIC_ATOM",
4005            AtomId::AtomVibratorStateChanged => "ATOM_VIBRATOR_STATE_CHANGED",
4006            AtomId::AtomDeferredJobStatsReported => "ATOM_DEFERRED_JOB_STATS_REPORTED",
4007            AtomId::AtomThermalThrottling => "ATOM_THERMAL_THROTTLING",
4008            AtomId::AtomBiometricAcquired => "ATOM_BIOMETRIC_ACQUIRED",
4009            AtomId::AtomBiometricAuthenticated => "ATOM_BIOMETRIC_AUTHENTICATED",
4010            AtomId::AtomBiometricErrorOccurred => "ATOM_BIOMETRIC_ERROR_OCCURRED",
4011            AtomId::AtomUiEventReported => "ATOM_UI_EVENT_REPORTED",
4012            AtomId::AtomBatteryHealthSnapshot => "ATOM_BATTERY_HEALTH_SNAPSHOT",
4013            AtomId::AtomSlowIo => "ATOM_SLOW_IO",
4014            AtomId::AtomBatteryCausedShutdown => "ATOM_BATTERY_CAUSED_SHUTDOWN",
4015            AtomId::AtomPhoneServiceStateChanged => "ATOM_PHONE_SERVICE_STATE_CHANGED",
4016            AtomId::AtomPhoneStateChanged => "ATOM_PHONE_STATE_CHANGED",
4017            AtomId::AtomUserRestrictionChanged => "ATOM_USER_RESTRICTION_CHANGED",
4018            AtomId::AtomSettingsUiChanged => "ATOM_SETTINGS_UI_CHANGED",
4019            AtomId::AtomConnectivityStateChanged => "ATOM_CONNECTIVITY_STATE_CHANGED",
4020            AtomId::AtomServiceStateChanged => "ATOM_SERVICE_STATE_CHANGED",
4021            AtomId::AtomServiceLaunchReported => "ATOM_SERVICE_LAUNCH_REPORTED",
4022            AtomId::AtomFlagFlipUpdateOccurred => "ATOM_FLAG_FLIP_UPDATE_OCCURRED",
4023            AtomId::AtomBinaryPushStateChanged => "ATOM_BINARY_PUSH_STATE_CHANGED",
4024            AtomId::AtomDevicePolicyEvent => "ATOM_DEVICE_POLICY_EVENT",
4025            AtomId::AtomDocsUiFileOpCanceled => "ATOM_DOCS_UI_FILE_OP_CANCELED",
4026            AtomId::AtomDocsUiFileOpCopyMoveModeReported => "ATOM_DOCS_UI_FILE_OP_COPY_MOVE_MODE_REPORTED",
4027            AtomId::AtomDocsUiFileOpFailure => "ATOM_DOCS_UI_FILE_OP_FAILURE",
4028            AtomId::AtomDocsUiProviderFileOp => "ATOM_DOCS_UI_PROVIDER_FILE_OP",
4029            AtomId::AtomDocsUiInvalidScopedAccessRequest => "ATOM_DOCS_UI_INVALID_SCOPED_ACCESS_REQUEST",
4030            AtomId::AtomDocsUiLaunchReported => "ATOM_DOCS_UI_LAUNCH_REPORTED",
4031            AtomId::AtomDocsUiRootVisited => "ATOM_DOCS_UI_ROOT_VISITED",
4032            AtomId::AtomDocsUiStartupMs => "ATOM_DOCS_UI_STARTUP_MS",
4033            AtomId::AtomDocsUiUserActionReported => "ATOM_DOCS_UI_USER_ACTION_REPORTED",
4034            AtomId::AtomWifiEnabledStateChanged => "ATOM_WIFI_ENABLED_STATE_CHANGED",
4035            AtomId::AtomWifiRunningStateChanged => "ATOM_WIFI_RUNNING_STATE_CHANGED",
4036            AtomId::AtomAppCompacted => "ATOM_APP_COMPACTED",
4037            AtomId::AtomNetworkDnsEventReported => "ATOM_NETWORK_DNS_EVENT_REPORTED",
4038            AtomId::AtomDocsUiPickerLaunchedFromReported => "ATOM_DOCS_UI_PICKER_LAUNCHED_FROM_REPORTED",
4039            AtomId::AtomDocsUiPickResultReported => "ATOM_DOCS_UI_PICK_RESULT_REPORTED",
4040            AtomId::AtomDocsUiSearchModeReported => "ATOM_DOCS_UI_SEARCH_MODE_REPORTED",
4041            AtomId::AtomDocsUiSearchTypeReported => "ATOM_DOCS_UI_SEARCH_TYPE_REPORTED",
4042            AtomId::AtomDataStallEvent => "ATOM_DATA_STALL_EVENT",
4043            AtomId::AtomRescuePartyResetReported => "ATOM_RESCUE_PARTY_RESET_REPORTED",
4044            AtomId::AtomSignedConfigReported => "ATOM_SIGNED_CONFIG_REPORTED",
4045            AtomId::AtomGnssNiEventReported => "ATOM_GNSS_NI_EVENT_REPORTED",
4046            AtomId::AtomBluetoothLinkLayerConnectionEvent => "ATOM_BLUETOOTH_LINK_LAYER_CONNECTION_EVENT",
4047            AtomId::AtomBluetoothAclConnectionStateChanged => "ATOM_BLUETOOTH_ACL_CONNECTION_STATE_CHANGED",
4048            AtomId::AtomBluetoothScoConnectionStateChanged => "ATOM_BLUETOOTH_SCO_CONNECTION_STATE_CHANGED",
4049            AtomId::AtomAppDowngraded => "ATOM_APP_DOWNGRADED",
4050            AtomId::AtomAppOptimizedAfterDowngraded => "ATOM_APP_OPTIMIZED_AFTER_DOWNGRADED",
4051            AtomId::AtomLowStorageStateChanged => "ATOM_LOW_STORAGE_STATE_CHANGED",
4052            AtomId::AtomGnssNfwNotificationReported => "ATOM_GNSS_NFW_NOTIFICATION_REPORTED",
4053            AtomId::AtomGnssConfigurationReported => "ATOM_GNSS_CONFIGURATION_REPORTED",
4054            AtomId::AtomUsbPortOverheatEventReported => "ATOM_USB_PORT_OVERHEAT_EVENT_REPORTED",
4055            AtomId::AtomNfcErrorOccurred => "ATOM_NFC_ERROR_OCCURRED",
4056            AtomId::AtomNfcStateChanged => "ATOM_NFC_STATE_CHANGED",
4057            AtomId::AtomNfcBeamOccurred => "ATOM_NFC_BEAM_OCCURRED",
4058            AtomId::AtomNfcCardemulationOccurred => "ATOM_NFC_CARDEMULATION_OCCURRED",
4059            AtomId::AtomNfcTagOccurred => "ATOM_NFC_TAG_OCCURRED",
4060            AtomId::AtomNfcHceTransactionOccurred => "ATOM_NFC_HCE_TRANSACTION_OCCURRED",
4061            AtomId::AtomSeStateChanged => "ATOM_SE_STATE_CHANGED",
4062            AtomId::AtomSeOmapiReported => "ATOM_SE_OMAPI_REPORTED",
4063            AtomId::AtomBroadcastDispatchLatencyReported => "ATOM_BROADCAST_DISPATCH_LATENCY_REPORTED",
4064            AtomId::AtomAttentionManagerServiceResultReported => "ATOM_ATTENTION_MANAGER_SERVICE_RESULT_REPORTED",
4065            AtomId::AtomAdbConnectionChanged => "ATOM_ADB_CONNECTION_CHANGED",
4066            AtomId::AtomSpeechDspStatReported => "ATOM_SPEECH_DSP_STAT_REPORTED",
4067            AtomId::AtomUsbContaminantReported => "ATOM_USB_CONTAMINANT_REPORTED",
4068            AtomId::AtomWatchdogRollbackOccurred => "ATOM_WATCHDOG_ROLLBACK_OCCURRED",
4069            AtomId::AtomBiometricSystemHealthIssueDetected => "ATOM_BIOMETRIC_SYSTEM_HEALTH_ISSUE_DETECTED",
4070            AtomId::AtomBubbleUiChanged => "ATOM_BUBBLE_UI_CHANGED",
4071            AtomId::AtomScheduledJobConstraintChanged => "ATOM_SCHEDULED_JOB_CONSTRAINT_CHANGED",
4072            AtomId::AtomBluetoothActiveDeviceChanged => "ATOM_BLUETOOTH_ACTIVE_DEVICE_CHANGED",
4073            AtomId::AtomBluetoothA2dpPlaybackStateChanged => "ATOM_BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED",
4074            AtomId::AtomBluetoothA2dpCodecConfigChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CONFIG_CHANGED",
4075            AtomId::AtomBluetoothA2dpCodecCapabilityChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CAPABILITY_CHANGED",
4076            AtomId::AtomBluetoothA2dpAudioUnderrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_UNDERRUN_REPORTED",
4077            AtomId::AtomBluetoothA2dpAudioOverrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_OVERRUN_REPORTED",
4078            AtomId::AtomBluetoothDeviceRssiReported => "ATOM_BLUETOOTH_DEVICE_RSSI_REPORTED",
4079            AtomId::AtomBluetoothDeviceFailedContactCounterReported => "ATOM_BLUETOOTH_DEVICE_FAILED_CONTACT_COUNTER_REPORTED",
4080            AtomId::AtomBluetoothDeviceTxPowerLevelReported => "ATOM_BLUETOOTH_DEVICE_TX_POWER_LEVEL_REPORTED",
4081            AtomId::AtomBluetoothHciTimeoutReported => "ATOM_BLUETOOTH_HCI_TIMEOUT_REPORTED",
4082            AtomId::AtomBluetoothQualityReportReported => "ATOM_BLUETOOTH_QUALITY_REPORT_REPORTED",
4083            AtomId::AtomBluetoothDeviceInfoReported => "ATOM_BLUETOOTH_DEVICE_INFO_REPORTED",
4084            AtomId::AtomBluetoothRemoteVersionInfoReported => "ATOM_BLUETOOTH_REMOTE_VERSION_INFO_REPORTED",
4085            AtomId::AtomBluetoothSdpAttributeReported => "ATOM_BLUETOOTH_SDP_ATTRIBUTE_REPORTED",
4086            AtomId::AtomBluetoothBondStateChanged => "ATOM_BLUETOOTH_BOND_STATE_CHANGED",
4087            AtomId::AtomBluetoothClassicPairingEventReported => "ATOM_BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED",
4088            AtomId::AtomBluetoothSmpPairingEventReported => "ATOM_BLUETOOTH_SMP_PAIRING_EVENT_REPORTED",
4089            AtomId::AtomScreenTimeoutExtensionReported => "ATOM_SCREEN_TIMEOUT_EXTENSION_REPORTED",
4090            AtomId::AtomProcessStartTime => "ATOM_PROCESS_START_TIME",
4091            AtomId::AtomPermissionGrantRequestResultReported => "ATOM_PERMISSION_GRANT_REQUEST_RESULT_REPORTED",
4092            AtomId::AtomBluetoothSocketConnectionStateChanged => "ATOM_BLUETOOTH_SOCKET_CONNECTION_STATE_CHANGED",
4093            AtomId::AtomDeviceIdentifierAccessDenied => "ATOM_DEVICE_IDENTIFIER_ACCESS_DENIED",
4094            AtomId::AtomBubbleDeveloperErrorReported => "ATOM_BUBBLE_DEVELOPER_ERROR_REPORTED",
4095            AtomId::AtomAssistGestureStageReported => "ATOM_ASSIST_GESTURE_STAGE_REPORTED",
4096            AtomId::AtomAssistGestureFeedbackReported => "ATOM_ASSIST_GESTURE_FEEDBACK_REPORTED",
4097            AtomId::AtomAssistGestureProgressReported => "ATOM_ASSIST_GESTURE_PROGRESS_REPORTED",
4098            AtomId::AtomTouchGestureClassified => "ATOM_TOUCH_GESTURE_CLASSIFIED",
4099            AtomId::AtomHiddenApiUsed => "ATOM_HIDDEN_API_USED",
4100            AtomId::AtomStyleUiChanged => "ATOM_STYLE_UI_CHANGED",
4101            AtomId::AtomPrivacyIndicatorsInteracted => "ATOM_PRIVACY_INDICATORS_INTERACTED",
4102            AtomId::AtomAppInstallOnExternalStorageReported => "ATOM_APP_INSTALL_ON_EXTERNAL_STORAGE_REPORTED",
4103            AtomId::AtomNetworkStackReported => "ATOM_NETWORK_STACK_REPORTED",
4104            AtomId::AtomAppMovedStorageReported => "ATOM_APP_MOVED_STORAGE_REPORTED",
4105            AtomId::AtomBiometricEnrolled => "ATOM_BIOMETRIC_ENROLLED",
4106            AtomId::AtomSystemServerWatchdogOccurred => "ATOM_SYSTEM_SERVER_WATCHDOG_OCCURRED",
4107            AtomId::AtomTombStoneOccurred => "ATOM_TOMB_STONE_OCCURRED",
4108            AtomId::AtomBluetoothClassOfDeviceReported => "ATOM_BLUETOOTH_CLASS_OF_DEVICE_REPORTED",
4109            AtomId::AtomIntelligenceEventReported => "ATOM_INTELLIGENCE_EVENT_REPORTED",
4110            AtomId::AtomThermalThrottlingSeverityStateChanged => "ATOM_THERMAL_THROTTLING_SEVERITY_STATE_CHANGED",
4111            AtomId::AtomRoleRequestResultReported => "ATOM_ROLE_REQUEST_RESULT_REPORTED",
4112            AtomId::AtomMediametricsAudiopolicyReported => "ATOM_MEDIAMETRICS_AUDIOPOLICY_REPORTED",
4113            AtomId::AtomMediametricsAudiorecordReported => "ATOM_MEDIAMETRICS_AUDIORECORD_REPORTED",
4114            AtomId::AtomMediametricsAudiothreadReported => "ATOM_MEDIAMETRICS_AUDIOTHREAD_REPORTED",
4115            AtomId::AtomMediametricsAudiotrackReported => "ATOM_MEDIAMETRICS_AUDIOTRACK_REPORTED",
4116            AtomId::AtomMediametricsCodecReported => "ATOM_MEDIAMETRICS_CODEC_REPORTED",
4117            AtomId::AtomMediametricsDrmWidevineReported => "ATOM_MEDIAMETRICS_DRM_WIDEVINE_REPORTED",
4118            AtomId::AtomMediametricsExtractorReported => "ATOM_MEDIAMETRICS_EXTRACTOR_REPORTED",
4119            AtomId::AtomMediametricsMediadrmReported => "ATOM_MEDIAMETRICS_MEDIADRM_REPORTED",
4120            AtomId::AtomMediametricsNuplayerReported => "ATOM_MEDIAMETRICS_NUPLAYER_REPORTED",
4121            AtomId::AtomMediametricsRecorderReported => "ATOM_MEDIAMETRICS_RECORDER_REPORTED",
4122            AtomId::AtomMediametricsDrmmanagerReported => "ATOM_MEDIAMETRICS_DRMMANAGER_REPORTED",
4123            AtomId::AtomCarPowerStateChanged => "ATOM_CAR_POWER_STATE_CHANGED",
4124            AtomId::AtomGarageModeInfo => "ATOM_GARAGE_MODE_INFO",
4125            AtomId::AtomTestAtomReported => "ATOM_TEST_ATOM_REPORTED",
4126            AtomId::AtomContentCaptureCallerMismatchReported => "ATOM_CONTENT_CAPTURE_CALLER_MISMATCH_REPORTED",
4127            AtomId::AtomContentCaptureServiceEvents => "ATOM_CONTENT_CAPTURE_SERVICE_EVENTS",
4128            AtomId::AtomContentCaptureSessionEvents => "ATOM_CONTENT_CAPTURE_SESSION_EVENTS",
4129            AtomId::AtomContentCaptureFlushed => "ATOM_CONTENT_CAPTURE_FLUSHED",
4130            AtomId::AtomLocationManagerApiUsageReported => "ATOM_LOCATION_MANAGER_API_USAGE_REPORTED",
4131            AtomId::AtomReviewPermissionsFragmentResultReported => "ATOM_REVIEW_PERMISSIONS_FRAGMENT_RESULT_REPORTED",
4132            AtomId::AtomRuntimePermissionsUpgradeResult => "ATOM_RUNTIME_PERMISSIONS_UPGRADE_RESULT",
4133            AtomId::AtomGrantPermissionsActivityButtonActions => "ATOM_GRANT_PERMISSIONS_ACTIVITY_BUTTON_ACTIONS",
4134            AtomId::AtomLocationAccessCheckNotificationAction => "ATOM_LOCATION_ACCESS_CHECK_NOTIFICATION_ACTION",
4135            AtomId::AtomAppPermissionFragmentActionReported => "ATOM_APP_PERMISSION_FRAGMENT_ACTION_REPORTED",
4136            AtomId::AtomAppPermissionFragmentViewed => "ATOM_APP_PERMISSION_FRAGMENT_VIEWED",
4137            AtomId::AtomAppPermissionsFragmentViewed => "ATOM_APP_PERMISSIONS_FRAGMENT_VIEWED",
4138            AtomId::AtomPermissionAppsFragmentViewed => "ATOM_PERMISSION_APPS_FRAGMENT_VIEWED",
4139            AtomId::AtomTextSelectionEvent => "ATOM_TEXT_SELECTION_EVENT",
4140            AtomId::AtomTextLinkifyEvent => "ATOM_TEXT_LINKIFY_EVENT",
4141            AtomId::AtomConversationActionsEvent => "ATOM_CONVERSATION_ACTIONS_EVENT",
4142            AtomId::AtomLanguageDetectionEvent => "ATOM_LANGUAGE_DETECTION_EVENT",
4143            AtomId::AtomExclusionRectStateChanged => "ATOM_EXCLUSION_RECT_STATE_CHANGED",
4144            AtomId::AtomBackGestureReportedReported => "ATOM_BACK_GESTURE_REPORTED_REPORTED",
4145            AtomId::AtomUpdateEngineUpdateAttemptReported => "ATOM_UPDATE_ENGINE_UPDATE_ATTEMPT_REPORTED",
4146            AtomId::AtomUpdateEngineSuccessfulUpdateReported => "ATOM_UPDATE_ENGINE_SUCCESSFUL_UPDATE_REPORTED",
4147            AtomId::AtomCameraActionEvent => "ATOM_CAMERA_ACTION_EVENT",
4148            AtomId::AtomAppCompatibilityChangeReported => "ATOM_APP_COMPATIBILITY_CHANGE_REPORTED",
4149            AtomId::AtomPerfettoUploaded => "ATOM_PERFETTO_UPLOADED",
4150            AtomId::AtomVmsClientConnectionStateChanged => "ATOM_VMS_CLIENT_CONNECTION_STATE_CHANGED",
4151            AtomId::AtomMediaProviderScanOccurred => "ATOM_MEDIA_PROVIDER_SCAN_OCCURRED",
4152            AtomId::AtomMediaContentDeleted => "ATOM_MEDIA_CONTENT_DELETED",
4153            AtomId::AtomMediaProviderPermissionRequested => "ATOM_MEDIA_PROVIDER_PERMISSION_REQUESTED",
4154            AtomId::AtomMediaProviderSchemaChanged => "ATOM_MEDIA_PROVIDER_SCHEMA_CHANGED",
4155            AtomId::AtomMediaProviderIdleMaintenanceFinished => "ATOM_MEDIA_PROVIDER_IDLE_MAINTENANCE_FINISHED",
4156            AtomId::AtomRebootEscrowRecoveryReported => "ATOM_REBOOT_ESCROW_RECOVERY_REPORTED",
4157            AtomId::AtomBootTimeEventDurationReported => "ATOM_BOOT_TIME_EVENT_DURATION_REPORTED",
4158            AtomId::AtomBootTimeEventElapsedTimeReported => "ATOM_BOOT_TIME_EVENT_ELAPSED_TIME_REPORTED",
4159            AtomId::AtomBootTimeEventUtcTimeReported => "ATOM_BOOT_TIME_EVENT_UTC_TIME_REPORTED",
4160            AtomId::AtomBootTimeEventErrorCodeReported => "ATOM_BOOT_TIME_EVENT_ERROR_CODE_REPORTED",
4161            AtomId::AtomUserspaceRebootReported => "ATOM_USERSPACE_REBOOT_REPORTED",
4162            AtomId::AtomNotificationReported => "ATOM_NOTIFICATION_REPORTED",
4163            AtomId::AtomNotificationPanelReported => "ATOM_NOTIFICATION_PANEL_REPORTED",
4164            AtomId::AtomNotificationChannelModified => "ATOM_NOTIFICATION_CHANNEL_MODIFIED",
4165            AtomId::AtomIntegrityCheckResultReported => "ATOM_INTEGRITY_CHECK_RESULT_REPORTED",
4166            AtomId::AtomIntegrityRulesPushed => "ATOM_INTEGRITY_RULES_PUSHED",
4167            AtomId::AtomCbMessageReported => "ATOM_CB_MESSAGE_REPORTED",
4168            AtomId::AtomCbMessageError => "ATOM_CB_MESSAGE_ERROR",
4169            AtomId::AtomWifiHealthStatReported => "ATOM_WIFI_HEALTH_STAT_REPORTED",
4170            AtomId::AtomWifiFailureStatReported => "ATOM_WIFI_FAILURE_STAT_REPORTED",
4171            AtomId::AtomWifiConnectionResultReported => "ATOM_WIFI_CONNECTION_RESULT_REPORTED",
4172            AtomId::AtomAppFreezeChanged => "ATOM_APP_FREEZE_CHANGED",
4173            AtomId::AtomSnapshotMergeReported => "ATOM_SNAPSHOT_MERGE_REPORTED",
4174            AtomId::AtomForegroundServiceAppOpSessionEnded => "ATOM_FOREGROUND_SERVICE_APP_OP_SESSION_ENDED",
4175            AtomId::AtomDisplayJankReported => "ATOM_DISPLAY_JANK_REPORTED",
4176            AtomId::AtomAppStandbyBucketChanged => "ATOM_APP_STANDBY_BUCKET_CHANGED",
4177            AtomId::AtomSharesheetStarted => "ATOM_SHARESHEET_STARTED",
4178            AtomId::AtomRankingSelected => "ATOM_RANKING_SELECTED",
4179            AtomId::AtomTvsettingsUiInteracted => "ATOM_TVSETTINGS_UI_INTERACTED",
4180            AtomId::AtomLauncherSnapshot => "ATOM_LAUNCHER_SNAPSHOT",
4181            AtomId::AtomPackageInstallerV2Reported => "ATOM_PACKAGE_INSTALLER_V2_REPORTED",
4182            AtomId::AtomUserLifecycleJourneyReported => "ATOM_USER_LIFECYCLE_JOURNEY_REPORTED",
4183            AtomId::AtomUserLifecycleEventOccurred => "ATOM_USER_LIFECYCLE_EVENT_OCCURRED",
4184            AtomId::AtomAccessibilityShortcutReported => "ATOM_ACCESSIBILITY_SHORTCUT_REPORTED",
4185            AtomId::AtomAccessibilityServiceReported => "ATOM_ACCESSIBILITY_SERVICE_REPORTED",
4186            AtomId::AtomDocsUiDragAndDropReported => "ATOM_DOCS_UI_DRAG_AND_DROP_REPORTED",
4187            AtomId::AtomAppUsageEventOccurred => "ATOM_APP_USAGE_EVENT_OCCURRED",
4188            AtomId::AtomAutoRevokeNotificationClicked => "ATOM_AUTO_REVOKE_NOTIFICATION_CLICKED",
4189            AtomId::AtomAutoRevokeFragmentAppViewed => "ATOM_AUTO_REVOKE_FRAGMENT_APP_VIEWED",
4190            AtomId::AtomAutoRevokedAppInteraction => "ATOM_AUTO_REVOKED_APP_INTERACTION",
4191            AtomId::AtomAppPermissionGroupsFragmentAutoRevokeAction => "ATOM_APP_PERMISSION_GROUPS_FRAGMENT_AUTO_REVOKE_ACTION",
4192            AtomId::AtomEvsUsageStatsReported => "ATOM_EVS_USAGE_STATS_REPORTED",
4193            AtomId::AtomAudioPowerUsageDataReported => "ATOM_AUDIO_POWER_USAGE_DATA_REPORTED",
4194            AtomId::AtomTvTunerStateChanged => "ATOM_TV_TUNER_STATE_CHANGED",
4195            AtomId::AtomMediaoutputOpSwitchReported => "ATOM_MEDIAOUTPUT_OP_SWITCH_REPORTED",
4196            AtomId::AtomCbMessageFiltered => "ATOM_CB_MESSAGE_FILTERED",
4197            AtomId::AtomTvTunerDvrStatus => "ATOM_TV_TUNER_DVR_STATUS",
4198            AtomId::AtomTvCasSessionOpenStatus => "ATOM_TV_CAS_SESSION_OPEN_STATUS",
4199            AtomId::AtomAssistantInvocationReported => "ATOM_ASSISTANT_INVOCATION_REPORTED",
4200            AtomId::AtomDisplayWakeReported => "ATOM_DISPLAY_WAKE_REPORTED",
4201            AtomId::AtomCarUserHalModifyUserRequestReported => "ATOM_CAR_USER_HAL_MODIFY_USER_REQUEST_REPORTED",
4202            AtomId::AtomCarUserHalModifyUserResponseReported => "ATOM_CAR_USER_HAL_MODIFY_USER_RESPONSE_REPORTED",
4203            AtomId::AtomCarUserHalPostSwitchResponseReported => "ATOM_CAR_USER_HAL_POST_SWITCH_RESPONSE_REPORTED",
4204            AtomId::AtomCarUserHalInitialUserInfoRequestReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_REQUEST_REPORTED",
4205            AtomId::AtomCarUserHalInitialUserInfoResponseReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_RESPONSE_REPORTED",
4206            AtomId::AtomCarUserHalUserAssociationRequestReported => "ATOM_CAR_USER_HAL_USER_ASSOCIATION_REQUEST_REPORTED",
4207            AtomId::AtomCarUserHalSetUserAssociationResponseReported => "ATOM_CAR_USER_HAL_SET_USER_ASSOCIATION_RESPONSE_REPORTED",
4208            AtomId::AtomNetworkIpProvisioningReported => "ATOM_NETWORK_IP_PROVISIONING_REPORTED",
4209            AtomId::AtomNetworkDhcpRenewReported => "ATOM_NETWORK_DHCP_RENEW_REPORTED",
4210            AtomId::AtomNetworkValidationReported => "ATOM_NETWORK_VALIDATION_REPORTED",
4211            AtomId::AtomNetworkStackQuirkReported => "ATOM_NETWORK_STACK_QUIRK_REPORTED",
4212            AtomId::AtomMediametricsAudiorecorddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIORECORDDEVICEUSAGE_REPORTED",
4213            AtomId::AtomMediametricsAudiothreaddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTHREADDEVICEUSAGE_REPORTED",
4214            AtomId::AtomMediametricsAudiotrackdeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTRACKDEVICEUSAGE_REPORTED",
4215            AtomId::AtomMediametricsAudiodeviceconnectionReported => "ATOM_MEDIAMETRICS_AUDIODEVICECONNECTION_REPORTED",
4216            AtomId::AtomBlobCommitted => "ATOM_BLOB_COMMITTED",
4217            AtomId::AtomBlobLeased => "ATOM_BLOB_LEASED",
4218            AtomId::AtomBlobOpened => "ATOM_BLOB_OPENED",
4219            AtomId::AtomContactsProviderStatusReported => "ATOM_CONTACTS_PROVIDER_STATUS_REPORTED",
4220            AtomId::AtomKeystoreKeyEventReported => "ATOM_KEYSTORE_KEY_EVENT_REPORTED",
4221            AtomId::AtomNetworkTetheringReported => "ATOM_NETWORK_TETHERING_REPORTED",
4222            AtomId::AtomImeTouchReported => "ATOM_IME_TOUCH_REPORTED",
4223            AtomId::AtomUiInteractionFrameInfoReported => "ATOM_UI_INTERACTION_FRAME_INFO_REPORTED",
4224            AtomId::AtomUiActionLatencyReported => "ATOM_UI_ACTION_LATENCY_REPORTED",
4225            AtomId::AtomWifiDisconnectReported => "ATOM_WIFI_DISCONNECT_REPORTED",
4226            AtomId::AtomWifiConnectionStateChanged => "ATOM_WIFI_CONNECTION_STATE_CHANGED",
4227            AtomId::AtomHdmiCecActiveSourceChanged => "ATOM_HDMI_CEC_ACTIVE_SOURCE_CHANGED",
4228            AtomId::AtomHdmiCecMessageReported => "ATOM_HDMI_CEC_MESSAGE_REPORTED",
4229            AtomId::AtomAirplaneMode => "ATOM_AIRPLANE_MODE",
4230            AtomId::AtomModemRestart => "ATOM_MODEM_RESTART",
4231            AtomId::AtomCarrierIdMismatchReported => "ATOM_CARRIER_ID_MISMATCH_REPORTED",
4232            AtomId::AtomCarrierIdTableUpdated => "ATOM_CARRIER_ID_TABLE_UPDATED",
4233            AtomId::AtomDataStallRecoveryReported => "ATOM_DATA_STALL_RECOVERY_REPORTED",
4234            AtomId::AtomMediametricsMediaparserReported => "ATOM_MEDIAMETRICS_MEDIAPARSER_REPORTED",
4235            AtomId::AtomTlsHandshakeReported => "ATOM_TLS_HANDSHAKE_REPORTED",
4236            AtomId::AtomTextClassifierApiUsageReported => "ATOM_TEXT_CLASSIFIER_API_USAGE_REPORTED",
4237            AtomId::AtomCarWatchdogKillStatsReported => "ATOM_CAR_WATCHDOG_KILL_STATS_REPORTED",
4238            AtomId::AtomMediametricsPlaybackReported => "ATOM_MEDIAMETRICS_PLAYBACK_REPORTED",
4239            AtomId::AtomMediaNetworkInfoChanged => "ATOM_MEDIA_NETWORK_INFO_CHANGED",
4240            AtomId::AtomMediaPlaybackStateChanged => "ATOM_MEDIA_PLAYBACK_STATE_CHANGED",
4241            AtomId::AtomMediaPlaybackErrorReported => "ATOM_MEDIA_PLAYBACK_ERROR_REPORTED",
4242            AtomId::AtomMediaPlaybackTrackChanged => "ATOM_MEDIA_PLAYBACK_TRACK_CHANGED",
4243            AtomId::AtomWifiScanReported => "ATOM_WIFI_SCAN_REPORTED",
4244            AtomId::AtomWifiPnoScanReported => "ATOM_WIFI_PNO_SCAN_REPORTED",
4245            AtomId::AtomTifTuneChanged => "ATOM_TIF_TUNE_CHANGED",
4246            AtomId::AtomAutoRotateReported => "ATOM_AUTO_ROTATE_REPORTED",
4247            AtomId::AtomPerfettoTrigger => "ATOM_PERFETTO_TRIGGER",
4248            AtomId::AtomTranscodingData => "ATOM_TRANSCODING_DATA",
4249            AtomId::AtomImsServiceEntitlementUpdated => "ATOM_IMS_SERVICE_ENTITLEMENT_UPDATED",
4250            AtomId::AtomDeviceRotated => "ATOM_DEVICE_ROTATED",
4251            AtomId::AtomSimSpecificSettingsRestored => "ATOM_SIM_SPECIFIC_SETTINGS_RESTORED",
4252            AtomId::AtomTextClassifierDownloadReported => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_REPORTED",
4253            AtomId::AtomPinStorageEvent => "ATOM_PIN_STORAGE_EVENT",
4254            AtomId::AtomFaceDownReported => "ATOM_FACE_DOWN_REPORTED",
4255            AtomId::AtomBluetoothHalCrashReasonReported => "ATOM_BLUETOOTH_HAL_CRASH_REASON_REPORTED",
4256            AtomId::AtomRebootEscrowPreparationReported => "ATOM_REBOOT_ESCROW_PREPARATION_REPORTED",
4257            AtomId::AtomRebootEscrowLskfCaptureReported => "ATOM_REBOOT_ESCROW_LSKF_CAPTURE_REPORTED",
4258            AtomId::AtomRebootEscrowRebootReported => "ATOM_REBOOT_ESCROW_REBOOT_REPORTED",
4259            AtomId::AtomBinderLatencyReported => "ATOM_BINDER_LATENCY_REPORTED",
4260            AtomId::AtomMediametricsAaudiostreamReported => "ATOM_MEDIAMETRICS_AAUDIOSTREAM_REPORTED",
4261            AtomId::AtomMediaTranscodingSessionEnded => "ATOM_MEDIA_TRANSCODING_SESSION_ENDED",
4262            AtomId::AtomMagnificationUsageReported => "ATOM_MAGNIFICATION_USAGE_REPORTED",
4263            AtomId::AtomMagnificationModeWithImeOnReported => "ATOM_MAGNIFICATION_MODE_WITH_IME_ON_REPORTED",
4264            AtomId::AtomAppSearchCallStatsReported => "ATOM_APP_SEARCH_CALL_STATS_REPORTED",
4265            AtomId::AtomAppSearchPutDocumentStatsReported => "ATOM_APP_SEARCH_PUT_DOCUMENT_STATS_REPORTED",
4266            AtomId::AtomDeviceControlChanged => "ATOM_DEVICE_CONTROL_CHANGED",
4267            AtomId::AtomDeviceStateChanged => "ATOM_DEVICE_STATE_CHANGED",
4268            AtomId::AtomInputdeviceRegistered => "ATOM_INPUTDEVICE_REGISTERED",
4269            AtomId::AtomSmartspaceCardReported => "ATOM_SMARTSPACE_CARD_REPORTED",
4270            AtomId::AtomAuthPromptAuthenticateInvoked => "ATOM_AUTH_PROMPT_AUTHENTICATE_INVOKED",
4271            AtomId::AtomAuthManagerCanAuthenticateInvoked => "ATOM_AUTH_MANAGER_CAN_AUTHENTICATE_INVOKED",
4272            AtomId::AtomAuthEnrollActionInvoked => "ATOM_AUTH_ENROLL_ACTION_INVOKED",
4273            AtomId::AtomAuthDeprecatedApiUsed => "ATOM_AUTH_DEPRECATED_API_USED",
4274            AtomId::AtomUnattendedRebootOccurred => "ATOM_UNATTENDED_REBOOT_OCCURRED",
4275            AtomId::AtomLongRebootBlockingReported => "ATOM_LONG_REBOOT_BLOCKING_REPORTED",
4276            AtomId::AtomLocationTimeZoneProviderStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_STATE_CHANGED",
4277            AtomId::AtomFdtrackEventOccurred => "ATOM_FDTRACK_EVENT_OCCURRED",
4278            AtomId::AtomTimeoutAutoExtendedReported => "ATOM_TIMEOUT_AUTO_EXTENDED_REPORTED",
4279            AtomId::AtomAlarmBatchDelivered => "ATOM_ALARM_BATCH_DELIVERED",
4280            AtomId::AtomAlarmScheduled => "ATOM_ALARM_SCHEDULED",
4281            AtomId::AtomCarWatchdogIoOveruseStatsReported => "ATOM_CAR_WATCHDOG_IO_OVERUSE_STATS_REPORTED",
4282            AtomId::AtomUserLevelHibernationStateChanged => "ATOM_USER_LEVEL_HIBERNATION_STATE_CHANGED",
4283            AtomId::AtomAppSearchInitializeStatsReported => "ATOM_APP_SEARCH_INITIALIZE_STATS_REPORTED",
4284            AtomId::AtomAppSearchQueryStatsReported => "ATOM_APP_SEARCH_QUERY_STATS_REPORTED",
4285            AtomId::AtomAppProcessDied => "ATOM_APP_PROCESS_DIED",
4286            AtomId::AtomNetworkIpReachabilityMonitorReported => "ATOM_NETWORK_IP_REACHABILITY_MONITOR_REPORTED",
4287            AtomId::AtomSlowInputEventReported => "ATOM_SLOW_INPUT_EVENT_REPORTED",
4288            AtomId::AtomAnrOccurredProcessingStarted => "ATOM_ANR_OCCURRED_PROCESSING_STARTED",
4289            AtomId::AtomAppSearchRemoveStatsReported => "ATOM_APP_SEARCH_REMOVE_STATS_REPORTED",
4290            AtomId::AtomMediaCodecReported => "ATOM_MEDIA_CODEC_REPORTED",
4291            AtomId::AtomPermissionUsageFragmentInteraction => "ATOM_PERMISSION_USAGE_FRAGMENT_INTERACTION",
4292            AtomId::AtomPermissionDetailsInteraction => "ATOM_PERMISSION_DETAILS_INTERACTION",
4293            AtomId::AtomPrivacySensorToggleInteraction => "ATOM_PRIVACY_SENSOR_TOGGLE_INTERACTION",
4294            AtomId::AtomPrivacyToggleDialogInteraction => "ATOM_PRIVACY_TOGGLE_DIALOG_INTERACTION",
4295            AtomId::AtomAppSearchOptimizeStatsReported => "ATOM_APP_SEARCH_OPTIMIZE_STATS_REPORTED",
4296            AtomId::AtomNonA11yToolServiceWarningReport => "ATOM_NON_A11Y_TOOL_SERVICE_WARNING_REPORT",
4297            AtomId::AtomAppCompatStateChanged => "ATOM_APP_COMPAT_STATE_CHANGED",
4298            AtomId::AtomSizeCompatRestartButtonEventReported => "ATOM_SIZE_COMPAT_RESTART_BUTTON_EVENT_REPORTED",
4299            AtomId::AtomSplitscreenUiChanged => "ATOM_SPLITSCREEN_UI_CHANGED",
4300            AtomId::AtomNetworkDnsHandshakeReported => "ATOM_NETWORK_DNS_HANDSHAKE_REPORTED",
4301            AtomId::AtomBluetoothCodePathCounter => "ATOM_BLUETOOTH_CODE_PATH_COUNTER",
4302            AtomId::AtomBluetoothLeBatchScanReportDelay => "ATOM_BLUETOOTH_LE_BATCH_SCAN_REPORT_DELAY",
4303            AtomId::AtomAccessibilityFloatingMenuUiChanged => "ATOM_ACCESSIBILITY_FLOATING_MENU_UI_CHANGED",
4304            AtomId::AtomNeuralnetworksCompilationCompleted => "ATOM_NEURALNETWORKS_COMPILATION_COMPLETED",
4305            AtomId::AtomNeuralnetworksExecutionCompleted => "ATOM_NEURALNETWORKS_EXECUTION_COMPLETED",
4306            AtomId::AtomNeuralnetworksCompilationFailed => "ATOM_NEURALNETWORKS_COMPILATION_FAILED",
4307            AtomId::AtomNeuralnetworksExecutionFailed => "ATOM_NEURALNETWORKS_EXECUTION_FAILED",
4308            AtomId::AtomContextHubBooted => "ATOM_CONTEXT_HUB_BOOTED",
4309            AtomId::AtomContextHubRestarted => "ATOM_CONTEXT_HUB_RESTARTED",
4310            AtomId::AtomContextHubLoadedNanoappSnapshotReported => "ATOM_CONTEXT_HUB_LOADED_NANOAPP_SNAPSHOT_REPORTED",
4311            AtomId::AtomChreCodeDownloadTransacted => "ATOM_CHRE_CODE_DOWNLOAD_TRANSACTED",
4312            AtomId::AtomUwbSessionInited => "ATOM_UWB_SESSION_INITED",
4313            AtomId::AtomUwbSessionClosed => "ATOM_UWB_SESSION_CLOSED",
4314            AtomId::AtomUwbFirstRangingReceived => "ATOM_UWB_FIRST_RANGING_RECEIVED",
4315            AtomId::AtomUwbRangingMeasurementReceived => "ATOM_UWB_RANGING_MEASUREMENT_RECEIVED",
4316            AtomId::AtomTextClassifierDownloadWorkScheduled => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_SCHEDULED",
4317            AtomId::AtomTextClassifierDownloadWorkCompleted => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_COMPLETED",
4318            AtomId::AtomClipboardCleared => "ATOM_CLIPBOARD_CLEARED",
4319            AtomId::AtomVmCreationRequested => "ATOM_VM_CREATION_REQUESTED",
4320            AtomId::AtomNearbyDeviceScanStateChanged => "ATOM_NEARBY_DEVICE_SCAN_STATE_CHANGED",
4321            AtomId::AtomApplicationLocalesChanged => "ATOM_APPLICATION_LOCALES_CHANGED",
4322            AtomId::AtomMediametricsAudiotrackstatusReported => "ATOM_MEDIAMETRICS_AUDIOTRACKSTATUS_REPORTED",
4323            AtomId::AtomFoldStateDurationReported => "ATOM_FOLD_STATE_DURATION_REPORTED",
4324            AtomId::AtomLocationTimeZoneProviderControllerStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_CONTROLLER_STATE_CHANGED",
4325            AtomId::AtomDisplayHbmStateChanged => "ATOM_DISPLAY_HBM_STATE_CHANGED",
4326            AtomId::AtomDisplayHbmBrightnessChanged => "ATOM_DISPLAY_HBM_BRIGHTNESS_CHANGED",
4327            AtomId::AtomPersistentUriPermissionsFlushed => "ATOM_PERSISTENT_URI_PERMISSIONS_FLUSHED",
4328            AtomId::AtomEarlyBootCompOsArtifactsCheckReported => "ATOM_EARLY_BOOT_COMP_OS_ARTIFACTS_CHECK_REPORTED",
4329            AtomId::AtomVbmetaDigestReported => "ATOM_VBMETA_DIGEST_REPORTED",
4330            AtomId::AtomApexInfoGathered => "ATOM_APEX_INFO_GATHERED",
4331            AtomId::AtomPvmInfoGathered => "ATOM_PVM_INFO_GATHERED",
4332            AtomId::AtomWearSettingsUiInteracted => "ATOM_WEAR_SETTINGS_UI_INTERACTED",
4333            AtomId::AtomTracingServiceReportEvent => "ATOM_TRACING_SERVICE_REPORT_EVENT",
4334            AtomId::AtomMediametricsAudiorecordstatusReported => "ATOM_MEDIAMETRICS_AUDIORECORDSTATUS_REPORTED",
4335            AtomId::AtomLauncherLatency => "ATOM_LAUNCHER_LATENCY",
4336            AtomId::AtomDropboxEntryDropped => "ATOM_DROPBOX_ENTRY_DROPPED",
4337            AtomId::AtomWifiP2pConnectionReported => "ATOM_WIFI_P2P_CONNECTION_REPORTED",
4338            AtomId::AtomGameStateChanged => "ATOM_GAME_STATE_CHANGED",
4339            AtomId::AtomHotwordDetectorCreateRequested => "ATOM_HOTWORD_DETECTOR_CREATE_REQUESTED",
4340            AtomId::AtomHotwordDetectionServiceInitResultReported => "ATOM_HOTWORD_DETECTION_SERVICE_INIT_RESULT_REPORTED",
4341            AtomId::AtomHotwordDetectionServiceRestarted => "ATOM_HOTWORD_DETECTION_SERVICE_RESTARTED",
4342            AtomId::AtomHotwordDetectorKeyphraseTriggered => "ATOM_HOTWORD_DETECTOR_KEYPHRASE_TRIGGERED",
4343            AtomId::AtomHotwordDetectorEvents => "ATOM_HOTWORD_DETECTOR_EVENTS",
4344            AtomId::AtomBootCompletedBroadcastCompletionLatencyReported => "ATOM_BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED",
4345            AtomId::AtomContactsIndexerUpdateStatsReported => "ATOM_CONTACTS_INDEXER_UPDATE_STATS_REPORTED",
4346            AtomId::AtomAppBackgroundRestrictionsInfo => "ATOM_APP_BACKGROUND_RESTRICTIONS_INFO",
4347            AtomId::AtomMmsSmsProviderGetThreadIdFailed => "ATOM_MMS_SMS_PROVIDER_GET_THREAD_ID_FAILED",
4348            AtomId::AtomMmsSmsDatabaseHelperOnUpgradeFailed => "ATOM_MMS_SMS_DATABASE_HELPER_ON_UPGRADE_FAILED",
4349            AtomId::AtomPermissionReminderNotificationInteracted => "ATOM_PERMISSION_REMINDER_NOTIFICATION_INTERACTED",
4350            AtomId::AtomRecentPermissionDecisionsInteracted => "ATOM_RECENT_PERMISSION_DECISIONS_INTERACTED",
4351            AtomId::AtomGnssPsdsDownloadReported => "ATOM_GNSS_PSDS_DOWNLOAD_REPORTED",
4352            AtomId::AtomLeAudioConnectionSessionReported => "ATOM_LE_AUDIO_CONNECTION_SESSION_REPORTED",
4353            AtomId::AtomLeAudioBroadcastSessionReported => "ATOM_LE_AUDIO_BROADCAST_SESSION_REPORTED",
4354            AtomId::AtomDreamUiEventReported => "ATOM_DREAM_UI_EVENT_REPORTED",
4355            AtomId::AtomTaskManagerEventReported => "ATOM_TASK_MANAGER_EVENT_REPORTED",
4356            AtomId::AtomCdmAssociationAction => "ATOM_CDM_ASSOCIATION_ACTION",
4357            AtomId::AtomMagnificationTripleTapAndHoldActivatedSessionReported => "ATOM_MAGNIFICATION_TRIPLE_TAP_AND_HOLD_ACTIVATED_SESSION_REPORTED",
4358            AtomId::AtomMagnificationFollowTypingFocusActivatedSessionReported => "ATOM_MAGNIFICATION_FOLLOW_TYPING_FOCUS_ACTIVATED_SESSION_REPORTED",
4359            AtomId::AtomAccessibilityTextReadingOptionsChanged => "ATOM_ACCESSIBILITY_TEXT_READING_OPTIONS_CHANGED",
4360            AtomId::AtomWifiSetupFailureCrashReported => "ATOM_WIFI_SETUP_FAILURE_CRASH_REPORTED",
4361            AtomId::AtomUwbDeviceErrorReported => "ATOM_UWB_DEVICE_ERROR_REPORTED",
4362            AtomId::AtomIsolatedCompilationScheduled => "ATOM_ISOLATED_COMPILATION_SCHEDULED",
4363            AtomId::AtomIsolatedCompilationEnded => "ATOM_ISOLATED_COMPILATION_ENDED",
4364            AtomId::AtomOnsOpportunisticEsimProvisioningComplete => "ATOM_ONS_OPPORTUNISTIC_ESIM_PROVISIONING_COMPLETE",
4365            AtomId::AtomSystemServerPreWatchdogOccurred => "ATOM_SYSTEM_SERVER_PRE_WATCHDOG_OCCURRED",
4366            AtomId::AtomTelephonyAnomalyDetected => "ATOM_TELEPHONY_ANOMALY_DETECTED",
4367            AtomId::AtomLetterboxPositionChanged => "ATOM_LETTERBOX_POSITION_CHANGED",
4368            AtomId::AtomRemoteKeyProvisioningAttempt => "ATOM_REMOTE_KEY_PROVISIONING_ATTEMPT",
4369            AtomId::AtomRemoteKeyProvisioningNetworkInfo => "ATOM_REMOTE_KEY_PROVISIONING_NETWORK_INFO",
4370            AtomId::AtomRemoteKeyProvisioningTiming => "ATOM_REMOTE_KEY_PROVISIONING_TIMING",
4371            AtomId::AtomMediaoutputOpInteractionReport => "ATOM_MEDIAOUTPUT_OP_INTERACTION_REPORT",
4372            AtomId::AtomSyncExemptionOccurred => "ATOM_SYNC_EXEMPTION_OCCURRED",
4373            AtomId::AtomAutofillPresentationEventReported => "ATOM_AUTOFILL_PRESENTATION_EVENT_REPORTED",
4374            AtomId::AtomDockStateChanged => "ATOM_DOCK_STATE_CHANGED",
4375            AtomId::AtomSafetySourceStateCollected => "ATOM_SAFETY_SOURCE_STATE_COLLECTED",
4376            AtomId::AtomSafetyCenterSystemEventReported => "ATOM_SAFETY_CENTER_SYSTEM_EVENT_REPORTED",
4377            AtomId::AtomSafetyCenterInteractionReported => "ATOM_SAFETY_CENTER_INTERACTION_REPORTED",
4378            AtomId::AtomSettingsProviderSettingChanged => "ATOM_SETTINGS_PROVIDER_SETTING_CHANGED",
4379            AtomId::AtomBroadcastDeliveryEventReported => "ATOM_BROADCAST_DELIVERY_EVENT_REPORTED",
4380            AtomId::AtomServiceRequestEventReported => "ATOM_SERVICE_REQUEST_EVENT_REPORTED",
4381            AtomId::AtomProviderAcquisitionEventReported => "ATOM_PROVIDER_ACQUISITION_EVENT_REPORTED",
4382            AtomId::AtomBluetoothDeviceNameReported => "ATOM_BLUETOOTH_DEVICE_NAME_REPORTED",
4383            AtomId::AtomCbConfigUpdated => "ATOM_CB_CONFIG_UPDATED",
4384            AtomId::AtomCbModuleErrorReported => "ATOM_CB_MODULE_ERROR_REPORTED",
4385            AtomId::AtomCbServiceFeatureChanged => "ATOM_CB_SERVICE_FEATURE_CHANGED",
4386            AtomId::AtomCbReceiverFeatureChanged => "ATOM_CB_RECEIVER_FEATURE_CHANGED",
4387            AtomId::AtomPrivacySignalNotificationInteraction => "ATOM_PRIVACY_SIGNAL_NOTIFICATION_INTERACTION",
4388            AtomId::AtomPrivacySignalIssueCardInteraction => "ATOM_PRIVACY_SIGNAL_ISSUE_CARD_INTERACTION",
4389            AtomId::AtomPrivacySignalsJobFailure => "ATOM_PRIVACY_SIGNALS_JOB_FAILURE",
4390            AtomId::AtomVibrationReported => "ATOM_VIBRATION_REPORTED",
4391            AtomId::AtomUwbRangingStart => "ATOM_UWB_RANGING_START",
4392            AtomId::AtomAppCompactedV2 => "ATOM_APP_COMPACTED_V2",
4393            AtomId::AtomDisplayBrightnessChanged => "ATOM_DISPLAY_BRIGHTNESS_CHANGED",
4394            AtomId::AtomActivityActionBlocked => "ATOM_ACTIVITY_ACTION_BLOCKED",
4395            AtomId::AtomNetworkDnsServerSupportReported => "ATOM_NETWORK_DNS_SERVER_SUPPORT_REPORTED",
4396            AtomId::AtomVmBooted => "ATOM_VM_BOOTED",
4397            AtomId::AtomVmExited => "ATOM_VM_EXITED",
4398            AtomId::AtomAmbientBrightnessStatsReported => "ATOM_AMBIENT_BRIGHTNESS_STATS_REPORTED",
4399            AtomId::AtomMediametricsSpatializercapabilitiesReported => "ATOM_MEDIAMETRICS_SPATIALIZERCAPABILITIES_REPORTED",
4400            AtomId::AtomMediametricsSpatializerdeviceenabledReported => "ATOM_MEDIAMETRICS_SPATIALIZERDEVICEENABLED_REPORTED",
4401            AtomId::AtomMediametricsHeadtrackerdeviceenabledReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICEENABLED_REPORTED",
4402            AtomId::AtomMediametricsHeadtrackerdevicesupportedReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICESUPPORTED_REPORTED",
4403            AtomId::AtomHearingAidInfoReported => "ATOM_HEARING_AID_INFO_REPORTED",
4404            AtomId::AtomDeviceWideJobConstraintChanged => "ATOM_DEVICE_WIDE_JOB_CONSTRAINT_CHANGED",
4405            AtomId::AtomAmbientModeChanged => "ATOM_AMBIENT_MODE_CHANGED",
4406            AtomId::AtomAnrLatencyReported => "ATOM_ANR_LATENCY_REPORTED",
4407            AtomId::AtomResourceApiInfo => "ATOM_RESOURCE_API_INFO",
4408            AtomId::AtomSystemDefaultNetworkChanged => "ATOM_SYSTEM_DEFAULT_NETWORK_CHANGED",
4409            AtomId::AtomIwlanSetupDataCallResultReported => "ATOM_IWLAN_SETUP_DATA_CALL_RESULT_REPORTED",
4410            AtomId::AtomIwlanPdnDisconnectedReasonReported => "ATOM_IWLAN_PDN_DISCONNECTED_REASON_REPORTED",
4411            AtomId::AtomAirplaneModeSessionReported => "ATOM_AIRPLANE_MODE_SESSION_REPORTED",
4412            AtomId::AtomVmCpuStatusReported => "ATOM_VM_CPU_STATUS_REPORTED",
4413            AtomId::AtomVmMemStatusReported => "ATOM_VM_MEM_STATUS_REPORTED",
4414            AtomId::AtomPackageInstallationSessionReported => "ATOM_PACKAGE_INSTALLATION_SESSION_REPORTED",
4415            AtomId::AtomDefaultNetworkRematchInfo => "ATOM_DEFAULT_NETWORK_REMATCH_INFO",
4416            AtomId::AtomNetworkSelectionPerformance => "ATOM_NETWORK_SELECTION_PERFORMANCE",
4417            AtomId::AtomNetworkNsdReported => "ATOM_NETWORK_NSD_REPORTED",
4418            AtomId::AtomBluetoothDisconnectionReasonReported => "ATOM_BLUETOOTH_DISCONNECTION_REASON_REPORTED",
4419            AtomId::AtomBluetoothLocalVersionsReported => "ATOM_BLUETOOTH_LOCAL_VERSIONS_REPORTED",
4420            AtomId::AtomBluetoothRemoteSupportedFeaturesReported => "ATOM_BLUETOOTH_REMOTE_SUPPORTED_FEATURES_REPORTED",
4421            AtomId::AtomBluetoothLocalSupportedFeaturesReported => "ATOM_BLUETOOTH_LOCAL_SUPPORTED_FEATURES_REPORTED",
4422            AtomId::AtomBluetoothGattAppInfo => "ATOM_BLUETOOTH_GATT_APP_INFO",
4423            AtomId::AtomBrightnessConfigurationUpdated => "ATOM_BRIGHTNESS_CONFIGURATION_UPDATED",
4424            AtomId::AtomWearMediaOutputSwitcherLaunched => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_LAUNCHED",
4425            AtomId::AtomWearMediaOutputSwitcherFinished => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FINISHED",
4426            AtomId::AtomWearMediaOutputSwitcherConnectionReported => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECTION_REPORTED",
4427            AtomId::AtomWearMediaOutputSwitcherDeviceScanTriggered => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_TRIGGERED",
4428            AtomId::AtomWearMediaOutputSwitcherFirstDeviceScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FIRST_DEVICE_SCAN_LATENCY",
4429            AtomId::AtomWearMediaOutputSwitcherConnectDeviceLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECT_DEVICE_LATENCY",
4430            AtomId::AtomPackageManagerSnapshotReported => "ATOM_PACKAGE_MANAGER_SNAPSHOT_REPORTED",
4431            AtomId::AtomPackageManagerAppsFilterCacheBuildReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_BUILD_REPORTED",
4432            AtomId::AtomPackageManagerAppsFilterCacheUpdateReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_UPDATE_REPORTED",
4433            AtomId::AtomLauncherImpressionEvent => "ATOM_LAUNCHER_IMPRESSION_EVENT",
4434            AtomId::AtomWearMediaOutputSwitcherAllDevicesScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_ALL_DEVICES_SCAN_LATENCY",
4435            AtomId::AtomWsWatchFaceEdited => "ATOM_WS_WATCH_FACE_EDITED",
4436            AtomId::AtomWsWatchFaceFavoriteActionReported => "ATOM_WS_WATCH_FACE_FAVORITE_ACTION_REPORTED",
4437            AtomId::AtomWsWatchFaceSetActionReported => "ATOM_WS_WATCH_FACE_SET_ACTION_REPORTED",
4438            AtomId::AtomPackageUninstallationReported => "ATOM_PACKAGE_UNINSTALLATION_REPORTED",
4439            AtomId::AtomGameModeChanged => "ATOM_GAME_MODE_CHANGED",
4440            AtomId::AtomGameModeConfigurationChanged => "ATOM_GAME_MODE_CONFIGURATION_CHANGED",
4441            AtomId::AtomBedtimeModeStateChanged => "ATOM_BEDTIME_MODE_STATE_CHANGED",
4442            AtomId::AtomNetworkSliceSessionEnded => "ATOM_NETWORK_SLICE_SESSION_ENDED",
4443            AtomId::AtomNetworkSliceDailyDataUsageReported => "ATOM_NETWORK_SLICE_DAILY_DATA_USAGE_REPORTED",
4444            AtomId::AtomNfcTagTypeOccurred => "ATOM_NFC_TAG_TYPE_OCCURRED",
4445            AtomId::AtomNfcAidConflictOccurred => "ATOM_NFC_AID_CONFLICT_OCCURRED",
4446            AtomId::AtomNfcReaderConflictOccurred => "ATOM_NFC_READER_CONFLICT_OCCURRED",
4447            AtomId::AtomWsTileListChanged => "ATOM_WS_TILE_LIST_CHANGED",
4448            AtomId::AtomGetTypeAccessedWithoutPermission => "ATOM_GET_TYPE_ACCESSED_WITHOUT_PERMISSION",
4449            AtomId::AtomMobileBundledAppInfoGathered => "ATOM_MOBILE_BUNDLED_APP_INFO_GATHERED",
4450            AtomId::AtomWsWatchFaceComplicationSetChanged => "ATOM_WS_WATCH_FACE_COMPLICATION_SET_CHANGED",
4451            AtomId::AtomMediaDrmCreated => "ATOM_MEDIA_DRM_CREATED",
4452            AtomId::AtomMediaDrmErrored => "ATOM_MEDIA_DRM_ERRORED",
4453            AtomId::AtomMediaDrmSessionOpened => "ATOM_MEDIA_DRM_SESSION_OPENED",
4454            AtomId::AtomMediaDrmSessionClosed => "ATOM_MEDIA_DRM_SESSION_CLOSED",
4455            AtomId::AtomUserSelectedResolution => "ATOM_USER_SELECTED_RESOLUTION",
4456            AtomId::AtomUnsafeIntentEventReported => "ATOM_UNSAFE_INTENT_EVENT_REPORTED",
4457            AtomId::AtomPerformanceHintSessionReported => "ATOM_PERFORMANCE_HINT_SESSION_REPORTED",
4458            AtomId::AtomMediametricsMidiDeviceCloseReported => "ATOM_MEDIAMETRICS_MIDI_DEVICE_CLOSE_REPORTED",
4459            AtomId::AtomBiometricTouchReported => "ATOM_BIOMETRIC_TOUCH_REPORTED",
4460            AtomId::AtomHotwordAudioEgressEventReported => "ATOM_HOTWORD_AUDIO_EGRESS_EVENT_REPORTED",
4461            AtomId::AtomLocationEnabledStateChanged => "ATOM_LOCATION_ENABLED_STATE_CHANGED",
4462            AtomId::AtomImeRequestFinished => "ATOM_IME_REQUEST_FINISHED",
4463            AtomId::AtomUsbComplianceWarningsReported => "ATOM_USB_COMPLIANCE_WARNINGS_REPORTED",
4464            AtomId::AtomAppSupportedLocalesChanged => "ATOM_APP_SUPPORTED_LOCALES_CHANGED",
4465            AtomId::AtomMediaProviderVolumeRecoveryReported => "ATOM_MEDIA_PROVIDER_VOLUME_RECOVERY_REPORTED",
4466            AtomId::AtomBiometricPropertiesCollected => "ATOM_BIOMETRIC_PROPERTIES_COLLECTED",
4467            AtomId::AtomKernelWakeupAttributed => "ATOM_KERNEL_WAKEUP_ATTRIBUTED",
4468            AtomId::AtomScreenStateChangedV2 => "ATOM_SCREEN_STATE_CHANGED_V2",
4469            AtomId::AtomWsBackupActionReported => "ATOM_WS_BACKUP_ACTION_REPORTED",
4470            AtomId::AtomWsRestoreActionReported => "ATOM_WS_RESTORE_ACTION_REPORTED",
4471            AtomId::AtomDeviceLogAccessEventReported => "ATOM_DEVICE_LOG_ACCESS_EVENT_REPORTED",
4472            AtomId::AtomMediaSessionUpdated => "ATOM_MEDIA_SESSION_UPDATED",
4473            AtomId::AtomWearOobeStateChanged => "ATOM_WEAR_OOBE_STATE_CHANGED",
4474            AtomId::AtomWsNotificationUpdated => "ATOM_WS_NOTIFICATION_UPDATED",
4475            AtomId::AtomNetworkValidationFailureStatsDailyReported => "ATOM_NETWORK_VALIDATION_FAILURE_STATS_DAILY_REPORTED",
4476            AtomId::AtomWsComplicationTapped => "ATOM_WS_COMPLICATION_TAPPED",
4477            AtomId::AtomWsNotificationBlocking => "ATOM_WS_NOTIFICATION_BLOCKING",
4478            AtomId::AtomWsNotificationBridgemodeUpdated => "ATOM_WS_NOTIFICATION_BRIDGEMODE_UPDATED",
4479            AtomId::AtomWsNotificationDismissalActioned => "ATOM_WS_NOTIFICATION_DISMISSAL_ACTIONED",
4480            AtomId::AtomWsNotificationActioned => "ATOM_WS_NOTIFICATION_ACTIONED",
4481            AtomId::AtomWsNotificationLatency => "ATOM_WS_NOTIFICATION_LATENCY",
4482            AtomId::AtomWifiBytesTransfer => "ATOM_WIFI_BYTES_TRANSFER",
4483            AtomId::AtomWifiBytesTransferByFgBg => "ATOM_WIFI_BYTES_TRANSFER_BY_FG_BG",
4484            AtomId::AtomMobileBytesTransfer => "ATOM_MOBILE_BYTES_TRANSFER",
4485            AtomId::AtomMobileBytesTransferByFgBg => "ATOM_MOBILE_BYTES_TRANSFER_BY_FG_BG",
4486            AtomId::AtomBluetoothBytesTransfer => "ATOM_BLUETOOTH_BYTES_TRANSFER",
4487            AtomId::AtomKernelWakelock => "ATOM_KERNEL_WAKELOCK",
4488            AtomId::AtomSubsystemSleepState => "ATOM_SUBSYSTEM_SLEEP_STATE",
4489            AtomId::AtomCpuTimePerUid => "ATOM_CPU_TIME_PER_UID",
4490            AtomId::AtomCpuTimePerUidFreq => "ATOM_CPU_TIME_PER_UID_FREQ",
4491            AtomId::AtomWifiActivityInfo => "ATOM_WIFI_ACTIVITY_INFO",
4492            AtomId::AtomModemActivityInfo => "ATOM_MODEM_ACTIVITY_INFO",
4493            AtomId::AtomBluetoothActivityInfo => "ATOM_BLUETOOTH_ACTIVITY_INFO",
4494            AtomId::AtomProcessMemoryState => "ATOM_PROCESS_MEMORY_STATE",
4495            AtomId::AtomSystemElapsedRealtime => "ATOM_SYSTEM_ELAPSED_REALTIME",
4496            AtomId::AtomSystemUptime => "ATOM_SYSTEM_UPTIME",
4497            AtomId::AtomCpuActiveTime => "ATOM_CPU_ACTIVE_TIME",
4498            AtomId::AtomCpuClusterTime => "ATOM_CPU_CLUSTER_TIME",
4499            AtomId::AtomDiskSpace => "ATOM_DISK_SPACE",
4500            AtomId::AtomRemainingBatteryCapacity => "ATOM_REMAINING_BATTERY_CAPACITY",
4501            AtomId::AtomFullBatteryCapacity => "ATOM_FULL_BATTERY_CAPACITY",
4502            AtomId::AtomTemperature => "ATOM_TEMPERATURE",
4503            AtomId::AtomBinderCalls => "ATOM_BINDER_CALLS",
4504            AtomId::AtomBinderCallsExceptions => "ATOM_BINDER_CALLS_EXCEPTIONS",
4505            AtomId::AtomLooperStats => "ATOM_LOOPER_STATS",
4506            AtomId::AtomDiskStats => "ATOM_DISK_STATS",
4507            AtomId::AtomDirectoryUsage => "ATOM_DIRECTORY_USAGE",
4508            AtomId::AtomAppSize => "ATOM_APP_SIZE",
4509            AtomId::AtomCategorySize => "ATOM_CATEGORY_SIZE",
4510            AtomId::AtomProcStats => "ATOM_PROC_STATS",
4511            AtomId::AtomBatteryVoltage => "ATOM_BATTERY_VOLTAGE",
4512            AtomId::AtomNumFingerprintsEnrolled => "ATOM_NUM_FINGERPRINTS_ENROLLED",
4513            AtomId::AtomDiskIo => "ATOM_DISK_IO",
4514            AtomId::AtomPowerProfile => "ATOM_POWER_PROFILE",
4515            AtomId::AtomProcStatsPkgProc => "ATOM_PROC_STATS_PKG_PROC",
4516            AtomId::AtomProcessCpuTime => "ATOM_PROCESS_CPU_TIME",
4517            AtomId::AtomCpuTimePerThreadFreq => "ATOM_CPU_TIME_PER_THREAD_FREQ",
4518            AtomId::AtomOnDevicePowerMeasurement => "ATOM_ON_DEVICE_POWER_MEASUREMENT",
4519            AtomId::AtomDeviceCalculatedPowerUse => "ATOM_DEVICE_CALCULATED_POWER_USE",
4520            AtomId::AtomProcessMemoryHighWaterMark => "ATOM_PROCESS_MEMORY_HIGH_WATER_MARK",
4521            AtomId::AtomBatteryLevel => "ATOM_BATTERY_LEVEL",
4522            AtomId::AtomBuildInformation => "ATOM_BUILD_INFORMATION",
4523            AtomId::AtomBatteryCycleCount => "ATOM_BATTERY_CYCLE_COUNT",
4524            AtomId::AtomDebugElapsedClock => "ATOM_DEBUG_ELAPSED_CLOCK",
4525            AtomId::AtomDebugFailingElapsedClock => "ATOM_DEBUG_FAILING_ELAPSED_CLOCK",
4526            AtomId::AtomNumFacesEnrolled => "ATOM_NUM_FACES_ENROLLED",
4527            AtomId::AtomRoleHolder => "ATOM_ROLE_HOLDER",
4528            AtomId::AtomDangerousPermissionState => "ATOM_DANGEROUS_PERMISSION_STATE",
4529            AtomId::AtomTrainInfo => "ATOM_TRAIN_INFO",
4530            AtomId::AtomTimeZoneDataInfo => "ATOM_TIME_ZONE_DATA_INFO",
4531            AtomId::AtomExternalStorageInfo => "ATOM_EXTERNAL_STORAGE_INFO",
4532            AtomId::AtomGpuStatsGlobalInfo => "ATOM_GPU_STATS_GLOBAL_INFO",
4533            AtomId::AtomGpuStatsAppInfo => "ATOM_GPU_STATS_APP_INFO",
4534            AtomId::AtomSystemIonHeapSize => "ATOM_SYSTEM_ION_HEAP_SIZE",
4535            AtomId::AtomAppsOnExternalStorageInfo => "ATOM_APPS_ON_EXTERNAL_STORAGE_INFO",
4536            AtomId::AtomFaceSettings => "ATOM_FACE_SETTINGS",
4537            AtomId::AtomCoolingDevice => "ATOM_COOLING_DEVICE",
4538            AtomId::AtomAppOps => "ATOM_APP_OPS",
4539            AtomId::AtomProcessSystemIonHeapSize => "ATOM_PROCESS_SYSTEM_ION_HEAP_SIZE",
4540            AtomId::AtomSurfaceflingerStatsGlobalInfo => "ATOM_SURFACEFLINGER_STATS_GLOBAL_INFO",
4541            AtomId::AtomSurfaceflingerStatsLayerInfo => "ATOM_SURFACEFLINGER_STATS_LAYER_INFO",
4542            AtomId::AtomProcessMemorySnapshot => "ATOM_PROCESS_MEMORY_SNAPSHOT",
4543            AtomId::AtomVmsClientStats => "ATOM_VMS_CLIENT_STATS",
4544            AtomId::AtomNotificationRemoteViews => "ATOM_NOTIFICATION_REMOTE_VIEWS",
4545            AtomId::AtomDangerousPermissionStateSampled => "ATOM_DANGEROUS_PERMISSION_STATE_SAMPLED",
4546            AtomId::AtomGraphicsStats => "ATOM_GRAPHICS_STATS",
4547            AtomId::AtomRuntimeAppOpAccess => "ATOM_RUNTIME_APP_OP_ACCESS",
4548            AtomId::AtomIonHeapSize => "ATOM_ION_HEAP_SIZE",
4549            AtomId::AtomPackageNotificationPreferences => "ATOM_PACKAGE_NOTIFICATION_PREFERENCES",
4550            AtomId::AtomPackageNotificationChannelPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_PREFERENCES",
4551            AtomId::AtomPackageNotificationChannelGroupPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_GROUP_PREFERENCES",
4552            AtomId::AtomGnssStats => "ATOM_GNSS_STATS",
4553            AtomId::AtomAttributedAppOps => "ATOM_ATTRIBUTED_APP_OPS",
4554            AtomId::AtomVoiceCallSession => "ATOM_VOICE_CALL_SESSION",
4555            AtomId::AtomVoiceCallRatUsage => "ATOM_VOICE_CALL_RAT_USAGE",
4556            AtomId::AtomSimSlotState => "ATOM_SIM_SLOT_STATE",
4557            AtomId::AtomSupportedRadioAccessFamily => "ATOM_SUPPORTED_RADIO_ACCESS_FAMILY",
4558            AtomId::AtomSettingSnapshot => "ATOM_SETTING_SNAPSHOT",
4559            AtomId::AtomBlobInfo => "ATOM_BLOB_INFO",
4560            AtomId::AtomDataUsageBytesTransfer => "ATOM_DATA_USAGE_BYTES_TRANSFER",
4561            AtomId::AtomBytesTransferByTagAndMetered => "ATOM_BYTES_TRANSFER_BY_TAG_AND_METERED",
4562            AtomId::AtomDndModeRule => "ATOM_DND_MODE_RULE",
4563            AtomId::AtomGeneralExternalStorageAccessStats => "ATOM_GENERAL_EXTERNAL_STORAGE_ACCESS_STATS",
4564            AtomId::AtomIncomingSms => "ATOM_INCOMING_SMS",
4565            AtomId::AtomOutgoingSms => "ATOM_OUTGOING_SMS",
4566            AtomId::AtomCarrierIdTableVersion => "ATOM_CARRIER_ID_TABLE_VERSION",
4567            AtomId::AtomDataCallSession => "ATOM_DATA_CALL_SESSION",
4568            AtomId::AtomCellularServiceState => "ATOM_CELLULAR_SERVICE_STATE",
4569            AtomId::AtomCellularDataServiceSwitch => "ATOM_CELLULAR_DATA_SERVICE_SWITCH",
4570            AtomId::AtomSystemMemory => "ATOM_SYSTEM_MEMORY",
4571            AtomId::AtomImsRegistrationTermination => "ATOM_IMS_REGISTRATION_TERMINATION",
4572            AtomId::AtomImsRegistrationStats => "ATOM_IMS_REGISTRATION_STATS",
4573            AtomId::AtomCpuTimePerClusterFreq => "ATOM_CPU_TIME_PER_CLUSTER_FREQ",
4574            AtomId::AtomCpuCyclesPerUidCluster => "ATOM_CPU_CYCLES_PER_UID_CLUSTER",
4575            AtomId::AtomDeviceRotatedData => "ATOM_DEVICE_ROTATED_DATA",
4576            AtomId::AtomCpuCyclesPerThreadGroupCluster => "ATOM_CPU_CYCLES_PER_THREAD_GROUP_CLUSTER",
4577            AtomId::AtomMediaDrmActivityInfo => "ATOM_MEDIA_DRM_ACTIVITY_INFO",
4578            AtomId::AtomOemManagedBytesTransfer => "ATOM_OEM_MANAGED_BYTES_TRANSFER",
4579            AtomId::AtomGnssPowerStats => "ATOM_GNSS_POWER_STATS",
4580            AtomId::AtomTimeZoneDetectorState => "ATOM_TIME_ZONE_DETECTOR_STATE",
4581            AtomId::AtomKeystore2StorageStats => "ATOM_KEYSTORE2_STORAGE_STATS",
4582            AtomId::AtomRkpPoolStats => "ATOM_RKP_POOL_STATS",
4583            AtomId::AtomProcessDmabufMemory => "ATOM_PROCESS_DMABUF_MEMORY",
4584            AtomId::AtomPendingAlarmInfo => "ATOM_PENDING_ALARM_INFO",
4585            AtomId::AtomUserLevelHibernatedApps => "ATOM_USER_LEVEL_HIBERNATED_APPS",
4586            AtomId::AtomLauncherLayoutSnapshot => "ATOM_LAUNCHER_LAYOUT_SNAPSHOT",
4587            AtomId::AtomGlobalHibernatedApps => "ATOM_GLOBAL_HIBERNATED_APPS",
4588            AtomId::AtomInputEventLatencySketch => "ATOM_INPUT_EVENT_LATENCY_SKETCH",
4589            AtomId::AtomBatteryUsageStatsBeforeReset => "ATOM_BATTERY_USAGE_STATS_BEFORE_RESET",
4590            AtomId::AtomBatteryUsageStatsSinceReset => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET",
4591            AtomId::AtomBatteryUsageStatsSinceResetUsingPowerProfileModel => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET_USING_POWER_PROFILE_MODEL",
4592            AtomId::AtomInstalledIncrementalPackage => "ATOM_INSTALLED_INCREMENTAL_PACKAGE",
4593            AtomId::AtomTelephonyNetworkRequests => "ATOM_TELEPHONY_NETWORK_REQUESTS",
4594            AtomId::AtomAppSearchStorageInfo => "ATOM_APP_SEARCH_STORAGE_INFO",
4595            AtomId::AtomVmstat => "ATOM_VMSTAT",
4596            AtomId::AtomKeystore2KeyCreationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_GENERAL_INFO",
4597            AtomId::AtomKeystore2KeyCreationWithAuthInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_AUTH_INFO",
4598            AtomId::AtomKeystore2KeyCreationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_PURPOSE_AND_MODES_INFO",
4599            AtomId::AtomKeystore2AtomWithOverflow => "ATOM_KEYSTORE2_ATOM_WITH_OVERFLOW",
4600            AtomId::AtomKeystore2KeyOperationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_PURPOSE_AND_MODES_INFO",
4601            AtomId::AtomKeystore2KeyOperationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_GENERAL_INFO",
4602            AtomId::AtomRkpErrorStats => "ATOM_RKP_ERROR_STATS",
4603            AtomId::AtomKeystore2CrashStats => "ATOM_KEYSTORE2_CRASH_STATS",
4604            AtomId::AtomVendorApexInfo => "ATOM_VENDOR_APEX_INFO",
4605            AtomId::AtomAccessibilityShortcutStats => "ATOM_ACCESSIBILITY_SHORTCUT_STATS",
4606            AtomId::AtomAccessibilityFloatingMenuStats => "ATOM_ACCESSIBILITY_FLOATING_MENU_STATS",
4607            AtomId::AtomDataUsageBytesTransferV2 => "ATOM_DATA_USAGE_BYTES_TRANSFER_V2",
4608            AtomId::AtomMediaCapabilities => "ATOM_MEDIA_CAPABILITIES",
4609            AtomId::AtomCarWatchdogSystemIoUsageSummary => "ATOM_CAR_WATCHDOG_SYSTEM_IO_USAGE_SUMMARY",
4610            AtomId::AtomCarWatchdogUidIoUsageSummary => "ATOM_CAR_WATCHDOG_UID_IO_USAGE_SUMMARY",
4611            AtomId::AtomImsRegistrationFeatureTagStats => "ATOM_IMS_REGISTRATION_FEATURE_TAG_STATS",
4612            AtomId::AtomRcsClientProvisioningStats => "ATOM_RCS_CLIENT_PROVISIONING_STATS",
4613            AtomId::AtomRcsAcsProvisioningStats => "ATOM_RCS_ACS_PROVISIONING_STATS",
4614            AtomId::AtomSipDelegateStats => "ATOM_SIP_DELEGATE_STATS",
4615            AtomId::AtomSipTransportFeatureTagStats => "ATOM_SIP_TRANSPORT_FEATURE_TAG_STATS",
4616            AtomId::AtomSipMessageResponse => "ATOM_SIP_MESSAGE_RESPONSE",
4617            AtomId::AtomSipTransportSession => "ATOM_SIP_TRANSPORT_SESSION",
4618            AtomId::AtomImsDedicatedBearerListenerEvent => "ATOM_IMS_DEDICATED_BEARER_LISTENER_EVENT",
4619            AtomId::AtomImsDedicatedBearerEvent => "ATOM_IMS_DEDICATED_BEARER_EVENT",
4620            AtomId::AtomImsRegistrationServiceDescStats => "ATOM_IMS_REGISTRATION_SERVICE_DESC_STATS",
4621            AtomId::AtomUceEventStats => "ATOM_UCE_EVENT_STATS",
4622            AtomId::AtomPresenceNotifyEvent => "ATOM_PRESENCE_NOTIFY_EVENT",
4623            AtomId::AtomGbaEvent => "ATOM_GBA_EVENT",
4624            AtomId::AtomPerSimStatus => "ATOM_PER_SIM_STATUS",
4625            AtomId::AtomGpuWorkPerUid => "ATOM_GPU_WORK_PER_UID",
4626            AtomId::AtomPersistentUriPermissionsAmountPerPackage => "ATOM_PERSISTENT_URI_PERMISSIONS_AMOUNT_PER_PACKAGE",
4627            AtomId::AtomSignedPartitionInfo => "ATOM_SIGNED_PARTITION_INFO",
4628            AtomId::AtomPinnedFileSizesPerPackage => "ATOM_PINNED_FILE_SIZES_PER_PACKAGE",
4629            AtomId::AtomPendingIntentsPerPackage => "ATOM_PENDING_INTENTS_PER_PACKAGE",
4630            AtomId::AtomUserInfo => "ATOM_USER_INFO",
4631            AtomId::AtomTelephonyNetworkRequestsV2 => "ATOM_TELEPHONY_NETWORK_REQUESTS_V2",
4632            AtomId::AtomDeviceTelephonyProperties => "ATOM_DEVICE_TELEPHONY_PROPERTIES",
4633            AtomId::AtomRemoteKeyProvisioningErrorCounts => "ATOM_REMOTE_KEY_PROVISIONING_ERROR_COUNTS",
4634            AtomId::AtomSafetyState => "ATOM_SAFETY_STATE",
4635            AtomId::AtomIncomingMms => "ATOM_INCOMING_MMS",
4636            AtomId::AtomOutgoingMms => "ATOM_OUTGOING_MMS",
4637            AtomId::AtomMultiUserInfo => "ATOM_MULTI_USER_INFO",
4638            AtomId::AtomNetworkBpfMapInfo => "ATOM_NETWORK_BPF_MAP_INFO",
4639            AtomId::AtomOutgoingShortCodeSms => "ATOM_OUTGOING_SHORT_CODE_SMS",
4640            AtomId::AtomConnectivityStateSample => "ATOM_CONNECTIVITY_STATE_SAMPLE",
4641            AtomId::AtomNetworkSelectionRematchReasonsInfo => "ATOM_NETWORK_SELECTION_REMATCH_REASONS_INFO",
4642            AtomId::AtomGameModeInfo => "ATOM_GAME_MODE_INFO",
4643            AtomId::AtomGameModeConfiguration => "ATOM_GAME_MODE_CONFIGURATION",
4644            AtomId::AtomGameModeListener => "ATOM_GAME_MODE_LISTENER",
4645            AtomId::AtomNetworkSliceRequestCount => "ATOM_NETWORK_SLICE_REQUEST_COUNT",
4646            AtomId::AtomWsTileSnapshot => "ATOM_WS_TILE_SNAPSHOT",
4647            AtomId::AtomWsActiveWatchFaceComplicationSetSnapshot => "ATOM_WS_ACTIVE_WATCH_FACE_COMPLICATION_SET_SNAPSHOT",
4648            AtomId::AtomProcessState => "ATOM_PROCESS_STATE",
4649            AtomId::AtomProcessAssociation => "ATOM_PROCESS_ASSOCIATION",
4650            AtomId::AtomAdpfSystemComponentInfo => "ATOM_ADPF_SYSTEM_COMPONENT_INFO",
4651            AtomId::AtomNotificationMemoryUse => "ATOM_NOTIFICATION_MEMORY_USE",
4652            AtomId::AtomHdrCapabilities => "ATOM_HDR_CAPABILITIES",
4653            AtomId::AtomWsFavouriteWatchFaceListSnapshot => "ATOM_WS_FAVOURITE_WATCH_FACE_LIST_SNAPSHOT",
4654            AtomId::AtomAccessibilityCheckResultReported => "ATOM_ACCESSIBILITY_CHECK_RESULT_REPORTED",
4655            AtomId::AtomAdaptiveAuthUnlockAfterLockReported => "ATOM_ADAPTIVE_AUTH_UNLOCK_AFTER_LOCK_REPORTED",
4656            AtomId::AtomThermalStatusCalled => "ATOM_THERMAL_STATUS_CALLED",
4657            AtomId::AtomThermalHeadroomCalled => "ATOM_THERMAL_HEADROOM_CALLED",
4658            AtomId::AtomThermalHeadroomThresholdsCalled => "ATOM_THERMAL_HEADROOM_THRESHOLDS_CALLED",
4659            AtomId::AtomAdpfHintSessionTidCleanup => "ATOM_ADPF_HINT_SESSION_TID_CLEANUP",
4660            AtomId::AtomThermalHeadroomThresholds => "ATOM_THERMAL_HEADROOM_THRESHOLDS",
4661            AtomId::AtomAdpfSessionSnapshot => "ATOM_ADPF_SESSION_SNAPSHOT",
4662            AtomId::AtomJsscriptengineLatencyReported => "ATOM_JSSCRIPTENGINE_LATENCY_REPORTED",
4663            AtomId::AtomAdServicesApiCalled => "ATOM_AD_SERVICES_API_CALLED",
4664            AtomId::AtomAdServicesMesurementReportsUploaded => "ATOM_AD_SERVICES_MESUREMENT_REPORTS_UPLOADED",
4665            AtomId::AtomMobileDataDownloadFileGroupStatusReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STATUS_REPORTED",
4666            AtomId::AtomMobileDataDownloadDownloadResultReported => "ATOM_MOBILE_DATA_DOWNLOAD_DOWNLOAD_RESULT_REPORTED",
4667            AtomId::AtomAdServicesSettingsUsageReported => "ATOM_AD_SERVICES_SETTINGS_USAGE_REPORTED",
4668            AtomId::AtomBackgroundFetchProcessReported => "ATOM_BACKGROUND_FETCH_PROCESS_REPORTED",
4669            AtomId::AtomUpdateCustomAudienceProcessReported => "ATOM_UPDATE_CUSTOM_AUDIENCE_PROCESS_REPORTED",
4670            AtomId::AtomRunAdBiddingProcessReported => "ATOM_RUN_AD_BIDDING_PROCESS_REPORTED",
4671            AtomId::AtomRunAdScoringProcessReported => "ATOM_RUN_AD_SCORING_PROCESS_REPORTED",
4672            AtomId::AtomRunAdSelectionProcessReported => "ATOM_RUN_AD_SELECTION_PROCESS_REPORTED",
4673            AtomId::AtomRunAdBiddingPerCaProcessReported => "ATOM_RUN_AD_BIDDING_PER_CA_PROCESS_REPORTED",
4674            AtomId::AtomMobileDataDownloadFileGroupStorageStatsReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STORAGE_STATS_REPORTED",
4675            AtomId::AtomAdServicesMeasurementRegistrations => "ATOM_AD_SERVICES_MEASUREMENT_REGISTRATIONS",
4676            AtomId::AtomAdServicesGetTopicsReported => "ATOM_AD_SERVICES_GET_TOPICS_REPORTED",
4677            AtomId::AtomAdServicesEpochComputationGetTopTopicsReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_GET_TOP_TOPICS_REPORTED",
4678            AtomId::AtomAdServicesEpochComputationClassifierReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4679            AtomId::AtomAdServicesBackCompatGetTopicsReported => "ATOM_AD_SERVICES_BACK_COMPAT_GET_TOPICS_REPORTED",
4680            AtomId::AtomAdServicesBackCompatEpochComputationClassifierReported => "ATOM_AD_SERVICES_BACK_COMPAT_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4681            AtomId::AtomAdServicesMeasurementDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_DEBUG_KEYS",
4682            AtomId::AtomAdServicesErrorReported => "ATOM_AD_SERVICES_ERROR_REPORTED",
4683            AtomId::AtomAdServicesBackgroundJobsExecutionReported => "ATOM_AD_SERVICES_BACKGROUND_JOBS_EXECUTION_REPORTED",
4684            AtomId::AtomAdServicesMeasurementDelayedSourceRegistration => "ATOM_AD_SERVICES_MEASUREMENT_DELAYED_SOURCE_REGISTRATION",
4685            AtomId::AtomAdServicesMeasurementAttribution => "ATOM_AD_SERVICES_MEASUREMENT_ATTRIBUTION",
4686            AtomId::AtomAdServicesMeasurementJobs => "ATOM_AD_SERVICES_MEASUREMENT_JOBS",
4687            AtomId::AtomAdServicesMeasurementWipeout => "ATOM_AD_SERVICES_MEASUREMENT_WIPEOUT",
4688            AtomId::AtomAdServicesMeasurementAdIdMatchForDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_AD_ID_MATCH_FOR_DEBUG_KEYS",
4689            AtomId::AtomAdServicesEnrollmentDataStored => "ATOM_AD_SERVICES_ENROLLMENT_DATA_STORED",
4690            AtomId::AtomAdServicesEnrollmentFileDownloaded => "ATOM_AD_SERVICES_ENROLLMENT_FILE_DOWNLOADED",
4691            AtomId::AtomAdServicesEnrollmentMatched => "ATOM_AD_SERVICES_ENROLLMENT_MATCHED",
4692            AtomId::AtomAdServicesConsentMigrated => "ATOM_AD_SERVICES_CONSENT_MIGRATED",
4693            AtomId::AtomAdServicesEnrollmentFailed => "ATOM_AD_SERVICES_ENROLLMENT_FAILED",
4694            AtomId::AtomAdServicesMeasurementClickVerification => "ATOM_AD_SERVICES_MEASUREMENT_CLICK_VERIFICATION",
4695            AtomId::AtomAdServicesEncryptionKeyFetched => "ATOM_AD_SERVICES_ENCRYPTION_KEY_FETCHED",
4696            AtomId::AtomAdServicesEncryptionKeyDbTransactionEnded => "ATOM_AD_SERVICES_ENCRYPTION_KEY_DB_TRANSACTION_ENDED",
4697            AtomId::AtomDestinationRegisteredBeacons => "ATOM_DESTINATION_REGISTERED_BEACONS",
4698            AtomId::AtomReportInteractionApiCalled => "ATOM_REPORT_INTERACTION_API_CALLED",
4699            AtomId::AtomInteractionReportingTableCleared => "ATOM_INTERACTION_REPORTING_TABLE_CLEARED",
4700            AtomId::AtomAppManifestConfigHelperCalled => "ATOM_APP_MANIFEST_CONFIG_HELPER_CALLED",
4701            AtomId::AtomAdFilteringProcessJoinCaReported => "ATOM_AD_FILTERING_PROCESS_JOIN_CA_REPORTED",
4702            AtomId::AtomAdFilteringProcessAdSelectionReported => "ATOM_AD_FILTERING_PROCESS_AD_SELECTION_REPORTED",
4703            AtomId::AtomAdCounterHistogramUpdaterReported => "ATOM_AD_COUNTER_HISTOGRAM_UPDATER_REPORTED",
4704            AtomId::AtomSignatureVerification => "ATOM_SIGNATURE_VERIFICATION",
4705            AtomId::AtomKAnonImmediateSignJoinStatusReported => "ATOM_K_ANON_IMMEDIATE_SIGN_JOIN_STATUS_REPORTED",
4706            AtomId::AtomKAnonBackgroundJobStatusReported => "ATOM_K_ANON_BACKGROUND_JOB_STATUS_REPORTED",
4707            AtomId::AtomKAnonInitializeStatusReported => "ATOM_K_ANON_INITIALIZE_STATUS_REPORTED",
4708            AtomId::AtomKAnonSignStatusReported => "ATOM_K_ANON_SIGN_STATUS_REPORTED",
4709            AtomId::AtomKAnonJoinStatusReported => "ATOM_K_ANON_JOIN_STATUS_REPORTED",
4710            AtomId::AtomKAnonKeyAttestationStatusReported => "ATOM_K_ANON_KEY_ATTESTATION_STATUS_REPORTED",
4711            AtomId::AtomGetAdSelectionDataApiCalled => "ATOM_GET_AD_SELECTION_DATA_API_CALLED",
4712            AtomId::AtomGetAdSelectionDataBuyerInputGenerated => "ATOM_GET_AD_SELECTION_DATA_BUYER_INPUT_GENERATED",
4713            AtomId::AtomBackgroundJobSchedulingReported => "ATOM_BACKGROUND_JOB_SCHEDULING_REPORTED",
4714            AtomId::AtomTopicsEncryptionEpochComputationReported => "ATOM_TOPICS_ENCRYPTION_EPOCH_COMPUTATION_REPORTED",
4715            AtomId::AtomTopicsEncryptionGetTopicsReported => "ATOM_TOPICS_ENCRYPTION_GET_TOPICS_REPORTED",
4716            AtomId::AtomAdservicesShellCommandCalled => "ATOM_ADSERVICES_SHELL_COMMAND_CALLED",
4717            AtomId::AtomUpdateSignalsApiCalled => "ATOM_UPDATE_SIGNALS_API_CALLED",
4718            AtomId::AtomEncodingJobRun => "ATOM_ENCODING_JOB_RUN",
4719            AtomId::AtomEncodingJsFetch => "ATOM_ENCODING_JS_FETCH",
4720            AtomId::AtomEncodingJsExecution => "ATOM_ENCODING_JS_EXECUTION",
4721            AtomId::AtomPersistAdSelectionResultCalled => "ATOM_PERSIST_AD_SELECTION_RESULT_CALLED",
4722            AtomId::AtomServerAuctionKeyFetchCalled => "ATOM_SERVER_AUCTION_KEY_FETCH_CALLED",
4723            AtomId::AtomServerAuctionBackgroundKeyFetchEnabled => "ATOM_SERVER_AUCTION_BACKGROUND_KEY_FETCH_ENABLED",
4724            AtomId::AtomAdServicesMeasurementProcessOdpRegistration => "ATOM_AD_SERVICES_MEASUREMENT_PROCESS_ODP_REGISTRATION",
4725            AtomId::AtomAdServicesMeasurementNotifyRegistrationToOdp => "ATOM_AD_SERVICES_MEASUREMENT_NOTIFY_REGISTRATION_TO_ODP",
4726            AtomId::AtomSelectAdsFromOutcomesApiCalled => "ATOM_SELECT_ADS_FROM_OUTCOMES_API_CALLED",
4727            AtomId::AtomReportImpressionApiCalled => "ATOM_REPORT_IMPRESSION_API_CALLED",
4728            AtomId::AtomAdServicesEnrollmentTransactionStats => "ATOM_AD_SERVICES_ENROLLMENT_TRANSACTION_STATS",
4729            AtomId::AtomAdServicesCobaltLoggerEventReported => "ATOM_AD_SERVICES_COBALT_LOGGER_EVENT_REPORTED",
4730            AtomId::AtomAdServicesCobaltPeriodicJobEventReported => "ATOM_AD_SERVICES_COBALT_PERIODIC_JOB_EVENT_REPORTED",
4731            AtomId::AtomUpdateSignalsProcessReported => "ATOM_UPDATE_SIGNALS_PROCESS_REPORTED",
4732            AtomId::AtomTopicsScheduleEpochJobSettingReported => "ATOM_TOPICS_SCHEDULE_EPOCH_JOB_SETTING_REPORTED",
4733            AtomId::AtomAiWallpapersButtonPressed => "ATOM_AI_WALLPAPERS_BUTTON_PRESSED",
4734            AtomId::AtomAiWallpapersTemplateSelected => "ATOM_AI_WALLPAPERS_TEMPLATE_SELECTED",
4735            AtomId::AtomAiWallpapersTermSelected => "ATOM_AI_WALLPAPERS_TERM_SELECTED",
4736            AtomId::AtomAiWallpapersWallpaperSet => "ATOM_AI_WALLPAPERS_WALLPAPER_SET",
4737            AtomId::AtomAiWallpapersSessionSummary => "ATOM_AI_WALLPAPERS_SESSION_SUMMARY",
4738            AtomId::AtomApexInstallationRequested => "ATOM_APEX_INSTALLATION_REQUESTED",
4739            AtomId::AtomApexInstallationStaged => "ATOM_APEX_INSTALLATION_STAGED",
4740            AtomId::AtomApexInstallationEnded => "ATOM_APEX_INSTALLATION_ENDED",
4741            AtomId::AtomAppSearchSetSchemaStatsReported => "ATOM_APP_SEARCH_SET_SCHEMA_STATS_REPORTED",
4742            AtomId::AtomAppSearchSchemaMigrationStatsReported => "ATOM_APP_SEARCH_SCHEMA_MIGRATION_STATS_REPORTED",
4743            AtomId::AtomAppSearchUsageSearchIntentStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_STATS_REPORTED",
4744            AtomId::AtomAppSearchUsageSearchIntentRawQueryStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_RAW_QUERY_STATS_REPORTED",
4745            AtomId::AtomAppSearchAppsIndexerStatsReported => "ATOM_APP_SEARCH_APPS_INDEXER_STATS_REPORTED",
4746            AtomId::AtomArtDatumReported => "ATOM_ART_DATUM_REPORTED",
4747            AtomId::AtomArtDeviceDatumReported => "ATOM_ART_DEVICE_DATUM_REPORTED",
4748            AtomId::AtomArtDatumDeltaReported => "ATOM_ART_DATUM_DELTA_REPORTED",
4749            AtomId::AtomArtDex2oatReported => "ATOM_ART_DEX2OAT_REPORTED",
4750            AtomId::AtomArtDeviceStatus => "ATOM_ART_DEVICE_STATUS",
4751            AtomId::AtomBackgroundDexoptJobEnded => "ATOM_BACKGROUND_DEXOPT_JOB_ENDED",
4752            AtomId::AtomPrerebootDexoptJobEnded => "ATOM_PREREBOOT_DEXOPT_JOB_ENDED",
4753            AtomId::AtomOdrefreshReported => "ATOM_ODREFRESH_REPORTED",
4754            AtomId::AtomOdsignReported => "ATOM_ODSIGN_REPORTED",
4755            AtomId::AtomAutofillUiEventReported => "ATOM_AUTOFILL_UI_EVENT_REPORTED",
4756            AtomId::AtomAutofillFillRequestReported => "ATOM_AUTOFILL_FILL_REQUEST_REPORTED",
4757            AtomId::AtomAutofillFillResponseReported => "ATOM_AUTOFILL_FILL_RESPONSE_REPORTED",
4758            AtomId::AtomAutofillSaveEventReported => "ATOM_AUTOFILL_SAVE_EVENT_REPORTED",
4759            AtomId::AtomAutofillSessionCommitted => "ATOM_AUTOFILL_SESSION_COMMITTED",
4760            AtomId::AtomAutofillFieldClassificationEventReported => "ATOM_AUTOFILL_FIELD_CLASSIFICATION_EVENT_REPORTED",
4761            AtomId::AtomCarRecentsEventReported => "ATOM_CAR_RECENTS_EVENT_REPORTED",
4762            AtomId::AtomCarCalmModeEventReported => "ATOM_CAR_CALM_MODE_EVENT_REPORTED",
4763            AtomId::AtomCarWakeupFromSuspendReported => "ATOM_CAR_WAKEUP_FROM_SUSPEND_REPORTED",
4764            AtomId::AtomPluginInitialized => "ATOM_PLUGIN_INITIALIZED",
4765            AtomId::AtomBluetoothHashedDeviceNameReported => "ATOM_BLUETOOTH_HASHED_DEVICE_NAME_REPORTED",
4766            AtomId::AtomBluetoothL2capCocClientConnection => "ATOM_BLUETOOTH_L2CAP_COC_CLIENT_CONNECTION",
4767            AtomId::AtomBluetoothL2capCocServerConnection => "ATOM_BLUETOOTH_L2CAP_COC_SERVER_CONNECTION",
4768            AtomId::AtomBluetoothLeSessionConnected => "ATOM_BLUETOOTH_LE_SESSION_CONNECTED",
4769            AtomId::AtomRestrictedBluetoothDeviceNameReported => "ATOM_RESTRICTED_BLUETOOTH_DEVICE_NAME_REPORTED",
4770            AtomId::AtomBluetoothProfileConnectionAttempted => "ATOM_BLUETOOTH_PROFILE_CONNECTION_ATTEMPTED",
4771            AtomId::AtomBluetoothContentProfileErrorReported => "ATOM_BLUETOOTH_CONTENT_PROFILE_ERROR_REPORTED",
4772            AtomId::AtomBluetoothRfcommConnectionAttempted => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_ATTEMPTED",
4773            AtomId::AtomRemoteDeviceInformationWithMetricId => "ATOM_REMOTE_DEVICE_INFORMATION_WITH_METRIC_ID",
4774            AtomId::AtomLeAppScanStateChanged => "ATOM_LE_APP_SCAN_STATE_CHANGED",
4775            AtomId::AtomLeRadioScanStopped => "ATOM_LE_RADIO_SCAN_STOPPED",
4776            AtomId::AtomLeScanResultReceived => "ATOM_LE_SCAN_RESULT_RECEIVED",
4777            AtomId::AtomLeScanAbused => "ATOM_LE_SCAN_ABUSED",
4778            AtomId::AtomLeAdvStateChanged => "ATOM_LE_ADV_STATE_CHANGED",
4779            AtomId::AtomLeAdvErrorReported => "ATOM_LE_ADV_ERROR_REPORTED",
4780            AtomId::AtomA2dpSessionReported => "ATOM_A2DP_SESSION_REPORTED",
4781            AtomId::AtomBluetoothCrossLayerEventReported => "ATOM_BLUETOOTH_CROSS_LAYER_EVENT_REPORTED",
4782            AtomId::AtomBroadcastAudioSessionReported => "ATOM_BROADCAST_AUDIO_SESSION_REPORTED",
4783            AtomId::AtomBroadcastAudioSyncReported => "ATOM_BROADCAST_AUDIO_SYNC_REPORTED",
4784            AtomId::AtomBluetoothRfcommConnectionReportedAtClose => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_REPORTED_AT_CLOSE",
4785            AtomId::AtomBluetoothLeConnection => "ATOM_BLUETOOTH_LE_CONNECTION",
4786            AtomId::AtomBroadcastSent => "ATOM_BROADCAST_SENT",
4787            AtomId::AtomCameraFeatureCombinationQueryEvent => "ATOM_CAMERA_FEATURE_COMBINATION_QUERY_EVENT",
4788            AtomId::AtomCertificateTransparencyLogListStateChanged => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_STATE_CHANGED",
4789            AtomId::AtomCertificateTransparencyLogListUpdateFailed => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_UPDATE_FAILED",
4790            AtomId::AtomDailyKeepaliveInfoReported => "ATOM_DAILY_KEEPALIVE_INFO_REPORTED",
4791            AtomId::AtomNetworkRequestStateChanged => "ATOM_NETWORK_REQUEST_STATE_CHANGED",
4792            AtomId::AtomTetheringActiveSessionsReported => "ATOM_TETHERING_ACTIVE_SESSIONS_REPORTED",
4793            AtomId::AtomNetworkStatsRecorderFileOperated => "ATOM_NETWORK_STATS_RECORDER_FILE_OPERATED",
4794            AtomId::AtomCoreNetworkingTerribleErrorOccurred => "ATOM_CORE_NETWORKING_TERRIBLE_ERROR_OCCURRED",
4795            AtomId::AtomApfSessionInfoReported => "ATOM_APF_SESSION_INFO_REPORTED",
4796            AtomId::AtomIpClientRaInfoReported => "ATOM_IP_CLIENT_RA_INFO_REPORTED",
4797            AtomId::AtomVpnConnectionStateChanged => "ATOM_VPN_CONNECTION_STATE_CHANGED",
4798            AtomId::AtomVpnConnectionReported => "ATOM_VPN_CONNECTION_REPORTED",
4799            AtomId::AtomCpuPolicy => "ATOM_CPU_POLICY",
4800            AtomId::AtomCredentialManagerApiCalled => "ATOM_CREDENTIAL_MANAGER_API_CALLED",
4801            AtomId::AtomCredentialManagerInitPhaseReported => "ATOM_CREDENTIAL_MANAGER_INIT_PHASE_REPORTED",
4802            AtomId::AtomCredentialManagerCandidatePhaseReported => "ATOM_CREDENTIAL_MANAGER_CANDIDATE_PHASE_REPORTED",
4803            AtomId::AtomCredentialManagerFinalPhaseReported => "ATOM_CREDENTIAL_MANAGER_FINAL_PHASE_REPORTED",
4804            AtomId::AtomCredentialManagerTotalReported => "ATOM_CREDENTIAL_MANAGER_TOTAL_REPORTED",
4805            AtomId::AtomCredentialManagerFinalnouidReported => "ATOM_CREDENTIAL_MANAGER_FINALNOUID_REPORTED",
4806            AtomId::AtomCredentialManagerGetReported => "ATOM_CREDENTIAL_MANAGER_GET_REPORTED",
4807            AtomId::AtomCredentialManagerAuthClickReported => "ATOM_CREDENTIAL_MANAGER_AUTH_CLICK_REPORTED",
4808            AtomId::AtomCredentialManagerApiv2Called => "ATOM_CREDENTIAL_MANAGER_APIV2_CALLED",
4809            AtomId::AtomCronetEngineCreated => "ATOM_CRONET_ENGINE_CREATED",
4810            AtomId::AtomCronetTrafficReported => "ATOM_CRONET_TRAFFIC_REPORTED",
4811            AtomId::AtomCronetEngineBuilderInitialized => "ATOM_CRONET_ENGINE_BUILDER_INITIALIZED",
4812            AtomId::AtomCronetHttpFlagsInitialized => "ATOM_CRONET_HTTP_FLAGS_INITIALIZED",
4813            AtomId::AtomCronetInitialized => "ATOM_CRONET_INITIALIZED",
4814            AtomId::AtomDesktopModeUiChanged => "ATOM_DESKTOP_MODE_UI_CHANGED",
4815            AtomId::AtomDesktopModeSessionTaskUpdate => "ATOM_DESKTOP_MODE_SESSION_TASK_UPDATE",
4816            AtomId::AtomDesktopModeTaskSizeUpdated => "ATOM_DESKTOP_MODE_TASK_SIZE_UPDATED",
4817            AtomId::AtomDeviceLockCheckInRequestReported => "ATOM_DEVICE_LOCK_CHECK_IN_REQUEST_REPORTED",
4818            AtomId::AtomDeviceLockProvisioningCompleteReported => "ATOM_DEVICE_LOCK_PROVISIONING_COMPLETE_REPORTED",
4819            AtomId::AtomDeviceLockKioskAppRequestReported => "ATOM_DEVICE_LOCK_KIOSK_APP_REQUEST_REPORTED",
4820            AtomId::AtomDeviceLockCheckInRetryReported => "ATOM_DEVICE_LOCK_CHECK_IN_RETRY_REPORTED",
4821            AtomId::AtomDeviceLockProvisionFailureReported => "ATOM_DEVICE_LOCK_PROVISION_FAILURE_REPORTED",
4822            AtomId::AtomDeviceLockLockUnlockDeviceFailureReported => "ATOM_DEVICE_LOCK_LOCK_UNLOCK_DEVICE_FAILURE_REPORTED",
4823            AtomId::AtomDevicePolicyManagementMode => "ATOM_DEVICE_POLICY_MANAGEMENT_MODE",
4824            AtomId::AtomDevicePolicyState => "ATOM_DEVICE_POLICY_STATE",
4825            AtomId::AtomDisplayModeDirectorVoteChanged => "ATOM_DISPLAY_MODE_DIRECTOR_VOTE_CHANGED",
4826            AtomId::AtomExternalDisplayStateChanged => "ATOM_EXTERNAL_DISPLAY_STATE_CHANGED",
4827            AtomId::AtomDndStateChanged => "ATOM_DND_STATE_CHANGED",
4828            AtomId::AtomDreamSettingChanged => "ATOM_DREAM_SETTING_CHANGED",
4829            AtomId::AtomDreamSettingSnapshot => "ATOM_DREAM_SETTING_SNAPSHOT",
4830            AtomId::AtomExpressEventReported => "ATOM_EXPRESS_EVENT_REPORTED",
4831            AtomId::AtomExpressHistogramSampleReported => "ATOM_EXPRESS_HISTOGRAM_SAMPLE_REPORTED",
4832            AtomId::AtomExpressUidEventReported => "ATOM_EXPRESS_UID_EVENT_REPORTED",
4833            AtomId::AtomExpressUidHistogramSampleReported => "ATOM_EXPRESS_UID_HISTOGRAM_SAMPLE_REPORTED",
4834            AtomId::AtomFederatedComputeApiCalled => "ATOM_FEDERATED_COMPUTE_API_CALLED",
4835            AtomId::AtomFederatedComputeTrainingEventReported => "ATOM_FEDERATED_COMPUTE_TRAINING_EVENT_REPORTED",
4836            AtomId::AtomExampleIteratorNextLatencyReported => "ATOM_EXAMPLE_ITERATOR_NEXT_LATENCY_REPORTED",
4837            AtomId::AtomFullScreenIntentLaunched => "ATOM_FULL_SCREEN_INTENT_LAUNCHED",
4838            AtomId::AtomBalAllowed => "ATOM_BAL_ALLOWED",
4839            AtomId::AtomInTaskActivityStarted => "ATOM_IN_TASK_ACTIVITY_STARTED",
4840            AtomId::AtomDeviceOrientationChanged => "ATOM_DEVICE_ORIENTATION_CHANGED",
4841            AtomId::AtomCachedAppsHighWatermark => "ATOM_CACHED_APPS_HIGH_WATERMARK",
4842            AtomId::AtomStylusPredictionMetricsReported => "ATOM_STYLUS_PREDICTION_METRICS_REPORTED",
4843            AtomId::AtomUserRiskEventReported => "ATOM_USER_RISK_EVENT_REPORTED",
4844            AtomId::AtomMediaProjectionStateChanged => "ATOM_MEDIA_PROJECTION_STATE_CHANGED",
4845            AtomId::AtomMediaProjectionTargetChanged => "ATOM_MEDIA_PROJECTION_TARGET_CHANGED",
4846            AtomId::AtomExcessiveBinderProxyCountReported => "ATOM_EXCESSIVE_BINDER_PROXY_COUNT_REPORTED",
4847            AtomId::AtomProxyBytesTransferByFgBg => "ATOM_PROXY_BYTES_TRANSFER_BY_FG_BG",
4848            AtomId::AtomMobileBytesTransferByProcState => "ATOM_MOBILE_BYTES_TRANSFER_BY_PROC_STATE",
4849            AtomId::AtomBiometricFrrNotification => "ATOM_BIOMETRIC_FRR_NOTIFICATION",
4850            AtomId::AtomSensitiveContentMediaProjectionSession => "ATOM_SENSITIVE_CONTENT_MEDIA_PROJECTION_SESSION",
4851            AtomId::AtomSensitiveNotificationAppProtectionSession => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_SESSION",
4852            AtomId::AtomSensitiveNotificationAppProtectionApplied => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_APPLIED",
4853            AtomId::AtomSensitiveNotificationRedaction => "ATOM_SENSITIVE_NOTIFICATION_REDACTION",
4854            AtomId::AtomSensitiveContentAppProtection => "ATOM_SENSITIVE_CONTENT_APP_PROTECTION",
4855            AtomId::AtomAppRestrictionStateChanged => "ATOM_APP_RESTRICTION_STATE_CHANGED",
4856            AtomId::AtomBatteryUsageStatsPerUid => "ATOM_BATTERY_USAGE_STATS_PER_UID",
4857            AtomId::AtomPostgcMemorySnapshot => "ATOM_POSTGC_MEMORY_SNAPSHOT",
4858            AtomId::AtomPowerSaveTempAllowlistChanged => "ATOM_POWER_SAVE_TEMP_ALLOWLIST_CHANGED",
4859            AtomId::AtomAppOpAccessTracked => "ATOM_APP_OP_ACCESS_TRACKED",
4860            AtomId::AtomContentOrFileUriEventReported => "ATOM_CONTENT_OR_FILE_URI_EVENT_REPORTED",
4861            AtomId::AtomApplicationGrammaticalInflectionChanged => "ATOM_APPLICATION_GRAMMATICAL_INFLECTION_CHANGED",
4862            AtomId::AtomSystemGrammaticalInflectionChanged => "ATOM_SYSTEM_GRAMMATICAL_INFLECTION_CHANGED",
4863            AtomId::AtomBatteryHealth => "ATOM_BATTERY_HEALTH",
4864            AtomId::AtomHdmiEarcStatusReported => "ATOM_HDMI_EARC_STATUS_REPORTED",
4865            AtomId::AtomHdmiSoundbarModeStatusReported => "ATOM_HDMI_SOUNDBAR_MODE_STATUS_REPORTED",
4866            AtomId::AtomHealthConnectApiCalled => "ATOM_HEALTH_CONNECT_API_CALLED",
4867            AtomId::AtomHealthConnectUsageStats => "ATOM_HEALTH_CONNECT_USAGE_STATS",
4868            AtomId::AtomHealthConnectStorageStats => "ATOM_HEALTH_CONNECT_STORAGE_STATS",
4869            AtomId::AtomHealthConnectApiInvoked => "ATOM_HEALTH_CONNECT_API_INVOKED",
4870            AtomId::AtomExerciseRouteApiCalled => "ATOM_EXERCISE_ROUTE_API_CALLED",
4871            AtomId::AtomHealthConnectExportInvoked => "ATOM_HEALTH_CONNECT_EXPORT_INVOKED",
4872            AtomId::AtomHealthConnectImportInvoked => "ATOM_HEALTH_CONNECT_IMPORT_INVOKED",
4873            AtomId::AtomHealthConnectExportImportStatsReported => "ATOM_HEALTH_CONNECT_EXPORT_IMPORT_STATS_REPORTED",
4874            AtomId::AtomHealthConnectUiImpression => "ATOM_HEALTH_CONNECT_UI_IMPRESSION",
4875            AtomId::AtomHealthConnectUiInteraction => "ATOM_HEALTH_CONNECT_UI_INTERACTION",
4876            AtomId::AtomHealthConnectAppOpenedReported => "ATOM_HEALTH_CONNECT_APP_OPENED_REPORTED",
4877            AtomId::AtomHotwordEgressSizeAtomReported => "ATOM_HOTWORD_EGRESS_SIZE_ATOM_REPORTED",
4878            AtomId::AtomIkeSessionTerminated => "ATOM_IKE_SESSION_TERMINATED",
4879            AtomId::AtomIkeLivenessCheckSessionValidated => "ATOM_IKE_LIVENESS_CHECK_SESSION_VALIDATED",
4880            AtomId::AtomNegotiatedSecurityAssociation => "ATOM_NEGOTIATED_SECURITY_ASSOCIATION",
4881            AtomId::AtomKeyboardConfigured => "ATOM_KEYBOARD_CONFIGURED",
4882            AtomId::AtomKeyboardSystemsEventReported => "ATOM_KEYBOARD_SYSTEMS_EVENT_REPORTED",
4883            AtomId::AtomInputdeviceUsageReported => "ATOM_INPUTDEVICE_USAGE_REPORTED",
4884            AtomId::AtomInputEventLatencyReported => "ATOM_INPUT_EVENT_LATENCY_REPORTED",
4885            AtomId::AtomTouchpadUsage => "ATOM_TOUCHPAD_USAGE",
4886            AtomId::AtomKernelOomKillOccurred => "ATOM_KERNEL_OOM_KILL_OCCURRED",
4887            AtomId::AtomEmergencyStateChanged => "ATOM_EMERGENCY_STATE_CHANGED",
4888            AtomId::AtomChreSignificantMotionStateChanged => "ATOM_CHRE_SIGNIFICANT_MOTION_STATE_CHANGED",
4889            AtomId::AtomPopulationDensityProviderLoadingReported => "ATOM_POPULATION_DENSITY_PROVIDER_LOADING_REPORTED",
4890            AtomId::AtomDensityBasedCoarseLocationsUsageReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_USAGE_REPORTED",
4891            AtomId::AtomDensityBasedCoarseLocationsProviderQueryReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_PROVIDER_QUERY_REPORTED",
4892            AtomId::AtomMediaCodecReclaimRequestCompleted => "ATOM_MEDIA_CODEC_RECLAIM_REQUEST_COMPLETED",
4893            AtomId::AtomMediaCodecStarted => "ATOM_MEDIA_CODEC_STARTED",
4894            AtomId::AtomMediaCodecStopped => "ATOM_MEDIA_CODEC_STOPPED",
4895            AtomId::AtomMediaCodecRendered => "ATOM_MEDIA_CODEC_RENDERED",
4896            AtomId::AtomMediaEditingEndedReported => "ATOM_MEDIA_EDITING_ENDED_REPORTED",
4897            AtomId::AtomMteState => "ATOM_MTE_STATE",
4898            AtomId::AtomMicroxrDeviceBootCompleteReported => "ATOM_MICROXR_DEVICE_BOOT_COMPLETE_REPORTED",
4899            AtomId::AtomNfcObserveModeStateChanged => "ATOM_NFC_OBSERVE_MODE_STATE_CHANGED",
4900            AtomId::AtomNfcFieldChanged => "ATOM_NFC_FIELD_CHANGED",
4901            AtomId::AtomNfcPollingLoopNotificationReported => "ATOM_NFC_POLLING_LOOP_NOTIFICATION_REPORTED",
4902            AtomId::AtomNfcProprietaryCapabilitiesReported => "ATOM_NFC_PROPRIETARY_CAPABILITIES_REPORTED",
4903            AtomId::AtomOndevicepersonalizationApiCalled => "ATOM_ONDEVICEPERSONALIZATION_API_CALLED",
4904            AtomId::AtomComponentStateChangedReported => "ATOM_COMPONENT_STATE_CHANGED_REPORTED",
4905            AtomId::AtomPdfLoadReported => "ATOM_PDF_LOAD_REPORTED",
4906            AtomId::AtomPdfApiUsageReported => "ATOM_PDF_API_USAGE_REPORTED",
4907            AtomId::AtomPdfSearchReported => "ATOM_PDF_SEARCH_REPORTED",
4908            AtomId::AtomPressureStallInformation => "ATOM_PRESSURE_STALL_INFORMATION",
4909            AtomId::AtomPermissionRationaleDialogViewed => "ATOM_PERMISSION_RATIONALE_DIALOG_VIEWED",
4910            AtomId::AtomPermissionRationaleDialogActionReported => "ATOM_PERMISSION_RATIONALE_DIALOG_ACTION_REPORTED",
4911            AtomId::AtomAppDataSharingUpdatesNotificationInteraction => "ATOM_APP_DATA_SHARING_UPDATES_NOTIFICATION_INTERACTION",
4912            AtomId::AtomAppDataSharingUpdatesFragmentViewed => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_VIEWED",
4913            AtomId::AtomAppDataSharingUpdatesFragmentActionReported => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_ACTION_REPORTED",
4914            AtomId::AtomEnhancedConfirmationDialogResultReported => "ATOM_ENHANCED_CONFIRMATION_DIALOG_RESULT_REPORTED",
4915            AtomId::AtomEnhancedConfirmationRestrictionCleared => "ATOM_ENHANCED_CONFIRMATION_RESTRICTION_CLEARED",
4916            AtomId::AtomPhotopickerSessionInfoReported => "ATOM_PHOTOPICKER_SESSION_INFO_REPORTED",
4917            AtomId::AtomPhotopickerApiInfoReported => "ATOM_PHOTOPICKER_API_INFO_REPORTED",
4918            AtomId::AtomPhotopickerUiEventLogged => "ATOM_PHOTOPICKER_UI_EVENT_LOGGED",
4919            AtomId::AtomPhotopickerMediaItemStatusReported => "ATOM_PHOTOPICKER_MEDIA_ITEM_STATUS_REPORTED",
4920            AtomId::AtomPhotopickerPreviewInfoLogged => "ATOM_PHOTOPICKER_PREVIEW_INFO_LOGGED",
4921            AtomId::AtomPhotopickerMenuInteractionLogged => "ATOM_PHOTOPICKER_MENU_INTERACTION_LOGGED",
4922            AtomId::AtomPhotopickerBannerInteractionLogged => "ATOM_PHOTOPICKER_BANNER_INTERACTION_LOGGED",
4923            AtomId::AtomPhotopickerMediaLibraryInfoLogged => "ATOM_PHOTOPICKER_MEDIA_LIBRARY_INFO_LOGGED",
4924            AtomId::AtomPhotopickerPageInfoLogged => "ATOM_PHOTOPICKER_PAGE_INFO_LOGGED",
4925            AtomId::AtomPhotopickerMediaGridSyncInfoReported => "ATOM_PHOTOPICKER_MEDIA_GRID_SYNC_INFO_REPORTED",
4926            AtomId::AtomPhotopickerAlbumSyncInfoReported => "ATOM_PHOTOPICKER_ALBUM_SYNC_INFO_REPORTED",
4927            AtomId::AtomPhotopickerSearchInfoReported => "ATOM_PHOTOPICKER_SEARCH_INFO_REPORTED",
4928            AtomId::AtomSearchDataExtractionDetailsReported => "ATOM_SEARCH_DATA_EXTRACTION_DETAILS_REPORTED",
4929            AtomId::AtomEmbeddedPhotopickerInfoReported => "ATOM_EMBEDDED_PHOTOPICKER_INFO_REPORTED",
4930            AtomId::AtomAtom9999 => "ATOM_ATOM_9999",
4931            AtomId::AtomAtom99999 => "ATOM_ATOM_99999",
4932            AtomId::AtomScreenOffReported => "ATOM_SCREEN_OFF_REPORTED",
4933            AtomId::AtomScreenTimeoutOverrideReported => "ATOM_SCREEN_TIMEOUT_OVERRIDE_REPORTED",
4934            AtomId::AtomScreenInteractiveSessionReported => "ATOM_SCREEN_INTERACTIVE_SESSION_REPORTED",
4935            AtomId::AtomScreenDimReported => "ATOM_SCREEN_DIM_REPORTED",
4936            AtomId::AtomMediaProviderDatabaseRollbackReported => "ATOM_MEDIA_PROVIDER_DATABASE_ROLLBACK_REPORTED",
4937            AtomId::AtomBackupSetupStatusReported => "ATOM_BACKUP_SETUP_STATUS_REPORTED",
4938            AtomId::AtomRangingSessionConfigured => "ATOM_RANGING_SESSION_CONFIGURED",
4939            AtomId::AtomRangingSessionStarted => "ATOM_RANGING_SESSION_STARTED",
4940            AtomId::AtomRangingSessionClosed => "ATOM_RANGING_SESSION_CLOSED",
4941            AtomId::AtomRangingTechnologyStarted => "ATOM_RANGING_TECHNOLOGY_STARTED",
4942            AtomId::AtomRangingTechnologyStopped => "ATOM_RANGING_TECHNOLOGY_STOPPED",
4943            AtomId::AtomRkpdPoolStats => "ATOM_RKPD_POOL_STATS",
4944            AtomId::AtomRkpdClientOperation => "ATOM_RKPD_CLIENT_OPERATION",
4945            AtomId::AtomSandboxApiCalled => "ATOM_SANDBOX_API_CALLED",
4946            AtomId::AtomSandboxActivityEventOccurred => "ATOM_SANDBOX_ACTIVITY_EVENT_OCCURRED",
4947            AtomId::AtomSdkSandboxRestrictedAccessInSession => "ATOM_SDK_SANDBOX_RESTRICTED_ACCESS_IN_SESSION",
4948            AtomId::AtomSandboxSdkStorage => "ATOM_SANDBOX_SDK_STORAGE",
4949            AtomId::AtomSelinuxAuditLog => "ATOM_SELINUX_AUDIT_LOG",
4950            AtomId::AtomSettingsSpaReported => "ATOM_SETTINGS_SPA_REPORTED",
4951            AtomId::AtomTestExtensionAtomReported => "ATOM_TEST_EXTENSION_ATOM_REPORTED",
4952            AtomId::AtomTestRestrictedAtomReported => "ATOM_TEST_RESTRICTED_ATOM_REPORTED",
4953            AtomId::AtomStatsSocketLossReported => "ATOM_STATS_SOCKET_LOSS_REPORTED",
4954            AtomId::AtomLockscreenShortcutSelected => "ATOM_LOCKSCREEN_SHORTCUT_SELECTED",
4955            AtomId::AtomLockscreenShortcutTriggered => "ATOM_LOCKSCREEN_SHORTCUT_TRIGGERED",
4956            AtomId::AtomLauncherImpressionEventV2 => "ATOM_LAUNCHER_IMPRESSION_EVENT_V2",
4957            AtomId::AtomDisplaySwitchLatencyTracked => "ATOM_DISPLAY_SWITCH_LATENCY_TRACKED",
4958            AtomId::AtomNotificationListenerService => "ATOM_NOTIFICATION_LISTENER_SERVICE",
4959            AtomId::AtomNavHandleTouchPoints => "ATOM_NAV_HANDLE_TOUCH_POINTS",
4960            AtomId::AtomCommunalHubWidgetEventReported => "ATOM_COMMUNAL_HUB_WIDGET_EVENT_REPORTED",
4961            AtomId::AtomCommunalHubSnapshot => "ATOM_COMMUNAL_HUB_SNAPSHOT",
4962            AtomId::AtomEmergencyNumberDialed => "ATOM_EMERGENCY_NUMBER_DIALED",
4963            AtomId::AtomCallStats => "ATOM_CALL_STATS",
4964            AtomId::AtomCallAudioRouteStats => "ATOM_CALL_AUDIO_ROUTE_STATS",
4965            AtomId::AtomTelecomApiStats => "ATOM_TELECOM_API_STATS",
4966            AtomId::AtomTelecomErrorStats => "ATOM_TELECOM_ERROR_STATS",
4967            AtomId::AtomCellularRadioPowerStateChanged => "ATOM_CELLULAR_RADIO_POWER_STATE_CHANGED",
4968            AtomId::AtomEmergencyNumbersInfo => "ATOM_EMERGENCY_NUMBERS_INFO",
4969            AtomId::AtomDataNetworkValidation => "ATOM_DATA_NETWORK_VALIDATION",
4970            AtomId::AtomDataRatStateChanged => "ATOM_DATA_RAT_STATE_CHANGED",
4971            AtomId::AtomConnectedChannelChanged => "ATOM_CONNECTED_CHANNEL_CHANGED",
4972            AtomId::AtomIwlanUnderlyingNetworkValidationResultReported => "ATOM_IWLAN_UNDERLYING_NETWORK_VALIDATION_RESULT_REPORTED",
4973            AtomId::AtomQualifiedRatListChanged => "ATOM_QUALIFIED_RAT_LIST_CHANGED",
4974            AtomId::AtomQnsImsCallDropStats => "ATOM_QNS_IMS_CALL_DROP_STATS",
4975            AtomId::AtomQnsFallbackRestrictionChanged => "ATOM_QNS_FALLBACK_RESTRICTION_CHANGED",
4976            AtomId::AtomQnsRatPreferenceMismatchInfo => "ATOM_QNS_RAT_PREFERENCE_MISMATCH_INFO",
4977            AtomId::AtomQnsHandoverTimeMillis => "ATOM_QNS_HANDOVER_TIME_MILLIS",
4978            AtomId::AtomQnsHandoverPingpong => "ATOM_QNS_HANDOVER_PINGPONG",
4979            AtomId::AtomSatelliteController => "ATOM_SATELLITE_CONTROLLER",
4980            AtomId::AtomSatelliteSession => "ATOM_SATELLITE_SESSION",
4981            AtomId::AtomSatelliteIncomingDatagram => "ATOM_SATELLITE_INCOMING_DATAGRAM",
4982            AtomId::AtomSatelliteOutgoingDatagram => "ATOM_SATELLITE_OUTGOING_DATAGRAM",
4983            AtomId::AtomSatelliteProvision => "ATOM_SATELLITE_PROVISION",
4984            AtomId::AtomSatelliteSosMessageRecommender => "ATOM_SATELLITE_SOS_MESSAGE_RECOMMENDER",
4985            AtomId::AtomCarrierRoamingSatelliteSession => "ATOM_CARRIER_ROAMING_SATELLITE_SESSION",
4986            AtomId::AtomCarrierRoamingSatelliteControllerStats => "ATOM_CARRIER_ROAMING_SATELLITE_CONTROLLER_STATS",
4987            AtomId::AtomControllerStatsPerPackage => "ATOM_CONTROLLER_STATS_PER_PACKAGE",
4988            AtomId::AtomSatelliteEntitlement => "ATOM_SATELLITE_ENTITLEMENT",
4989            AtomId::AtomSatelliteConfigUpdater => "ATOM_SATELLITE_CONFIG_UPDATER",
4990            AtomId::AtomSatelliteAccessController => "ATOM_SATELLITE_ACCESS_CONTROLLER",
4991            AtomId::AtomCellularIdentifierDisclosed => "ATOM_CELLULAR_IDENTIFIER_DISCLOSED",
4992            AtomId::AtomThreadnetworkTelemetryDataReported => "ATOM_THREADNETWORK_TELEMETRY_DATA_REPORTED",
4993            AtomId::AtomThreadnetworkTopoEntryRepeated => "ATOM_THREADNETWORK_TOPO_ENTRY_REPEATED",
4994            AtomId::AtomThreadnetworkDeviceInfoReported => "ATOM_THREADNETWORK_DEVICE_INFO_REPORTED",
4995            AtomId::AtomBootIntegrityInfoReported => "ATOM_BOOT_INTEGRITY_INFO_REPORTED",
4996            AtomId::AtomTvLowPowerStandbyPolicy => "ATOM_TV_LOW_POWER_STANDBY_POLICY",
4997            AtomId::AtomExternalTvInputEvent => "ATOM_EXTERNAL_TV_INPUT_EVENT",
4998            AtomId::AtomTestUprobestatsAtomReported => "ATOM_TEST_UPROBESTATS_ATOM_REPORTED",
4999            AtomId::AtomUwbActivityInfo => "ATOM_UWB_ACTIVITY_INFO",
5000            AtomId::AtomMediatorUpdated => "ATOM_MEDIATOR_UPDATED",
5001            AtomId::AtomSysproxyBluetoothBytesTransfer => "ATOM_SYSPROXY_BLUETOOTH_BYTES_TRANSFER",
5002            AtomId::AtomSysproxyConnectionUpdated => "ATOM_SYSPROXY_CONNECTION_UPDATED",
5003            AtomId::AtomWearCompanionConnectionState => "ATOM_WEAR_COMPANION_CONNECTION_STATE",
5004            AtomId::AtomMediaActionReported => "ATOM_MEDIA_ACTION_REPORTED",
5005            AtomId::AtomMediaControlsLaunched => "ATOM_MEDIA_CONTROLS_LAUNCHED",
5006            AtomId::AtomMediaSessionStateChanged => "ATOM_MEDIA_SESSION_STATE_CHANGED",
5007            AtomId::AtomWearMediaOutputSwitcherDeviceScanApiLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_API_LATENCY",
5008            AtomId::AtomWearMediaOutputSwitcherSassDeviceUnavailable => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_SASS_DEVICE_UNAVAILABLE",
5009            AtomId::AtomWearMediaOutputSwitcherFastpairApiTimeout => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FASTPAIR_API_TIMEOUT",
5010            AtomId::AtomWearModeStateChanged => "ATOM_WEAR_MODE_STATE_CHANGED",
5011            AtomId::AtomRendererInitialized => "ATOM_RENDERER_INITIALIZED",
5012            AtomId::AtomSchemaVersionReceived => "ATOM_SCHEMA_VERSION_RECEIVED",
5013            AtomId::AtomLayoutInspected => "ATOM_LAYOUT_INSPECTED",
5014            AtomId::AtomLayoutExpressionInspected => "ATOM_LAYOUT_EXPRESSION_INSPECTED",
5015            AtomId::AtomLayoutAnimationsInspected => "ATOM_LAYOUT_ANIMATIONS_INSPECTED",
5016            AtomId::AtomMaterialComponentsInspected => "ATOM_MATERIAL_COMPONENTS_INSPECTED",
5017            AtomId::AtomTileRequested => "ATOM_TILE_REQUESTED",
5018            AtomId::AtomStateResponseReceived => "ATOM_STATE_RESPONSE_RECEIVED",
5019            AtomId::AtomTileResponseReceived => "ATOM_TILE_RESPONSE_RECEIVED",
5020            AtomId::AtomInflationFinished => "ATOM_INFLATION_FINISHED",
5021            AtomId::AtomInflationFailed => "ATOM_INFLATION_FAILED",
5022            AtomId::AtomIgnoredInflationFailuresReported => "ATOM_IGNORED_INFLATION_FAILURES_REPORTED",
5023            AtomId::AtomDrawableRendered => "ATOM_DRAWABLE_RENDERED",
5024            AtomId::AtomWearTimeSyncRequested => "ATOM_WEAR_TIME_SYNC_REQUESTED",
5025            AtomId::AtomWearTimeUpdateStarted => "ATOM_WEAR_TIME_UPDATE_STARTED",
5026            AtomId::AtomWearTimeSyncAttemptCompleted => "ATOM_WEAR_TIME_SYNC_ATTEMPT_COMPLETED",
5027            AtomId::AtomWearTimeChanged => "ATOM_WEAR_TIME_CHANGED",
5028            AtomId::AtomWearAdaptiveSuspendStatsReported => "ATOM_WEAR_ADAPTIVE_SUSPEND_STATS_REPORTED",
5029            AtomId::AtomWearPowerAnomalyServiceOperationalStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_OPERATIONAL_STATS_REPORTED",
5030            AtomId::AtomWearPowerAnomalyServiceEventStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_EVENT_STATS_REPORTED",
5031            AtomId::AtomWsWearTimeSession => "ATOM_WS_WEAR_TIME_SESSION",
5032            AtomId::AtomWsIncomingCallActionReported => "ATOM_WS_INCOMING_CALL_ACTION_REPORTED",
5033            AtomId::AtomWsCallDisconnectionReported => "ATOM_WS_CALL_DISCONNECTION_REPORTED",
5034            AtomId::AtomWsCallDurationReported => "ATOM_WS_CALL_DURATION_REPORTED",
5035            AtomId::AtomWsCallUserExperienceLatencyReported => "ATOM_WS_CALL_USER_EXPERIENCE_LATENCY_REPORTED",
5036            AtomId::AtomWsCallInteractionReported => "ATOM_WS_CALL_INTERACTION_REPORTED",
5037            AtomId::AtomWsOnBodyStateChanged => "ATOM_WS_ON_BODY_STATE_CHANGED",
5038            AtomId::AtomWsWatchFaceRestrictedComplicationsImpacted => "ATOM_WS_WATCH_FACE_RESTRICTED_COMPLICATIONS_IMPACTED",
5039            AtomId::AtomWsWatchFaceDefaultRestrictedComplicationsRemoved => "ATOM_WS_WATCH_FACE_DEFAULT_RESTRICTED_COMPLICATIONS_REMOVED",
5040            AtomId::AtomWsComplicationsImpactedNotificationEventReported => "ATOM_WS_COMPLICATIONS_IMPACTED_NOTIFICATION_EVENT_REPORTED",
5041            AtomId::AtomWsRemoteEventUsageReported => "ATOM_WS_REMOTE_EVENT_USAGE_REPORTED",
5042            AtomId::AtomWsBugreportRequested => "ATOM_WS_BUGREPORT_REQUESTED",
5043            AtomId::AtomWsBugreportTriggered => "ATOM_WS_BUGREPORT_TRIGGERED",
5044            AtomId::AtomWsBugreportFinished => "ATOM_WS_BUGREPORT_FINISHED",
5045            AtomId::AtomWsBugreportResultReceived => "ATOM_WS_BUGREPORT_RESULT_RECEIVED",
5046            AtomId::AtomWsStandaloneModeSnapshot => "ATOM_WS_STANDALONE_MODE_SNAPSHOT",
5047            AtomId::AtomWsFavoriteWatchFaceSnapshot => "ATOM_WS_FAVORITE_WATCH_FACE_SNAPSHOT",
5048            AtomId::AtomWsPhotosWatchFaceFeatureSnapshot => "ATOM_WS_PHOTOS_WATCH_FACE_FEATURE_SNAPSHOT",
5049            AtomId::AtomWsWatchFaceCustomizationSnapshot => "ATOM_WS_WATCH_FACE_CUSTOMIZATION_SNAPSHOT",
5050            AtomId::AtomWearPowerMenuOpened => "ATOM_WEAR_POWER_MENU_OPENED",
5051            AtomId::AtomWearAssistantOpened => "ATOM_WEAR_ASSISTANT_OPENED",
5052            AtomId::AtomFirstOverlayStateChanged => "ATOM_FIRST_OVERLAY_STATE_CHANGED",
5053            AtomId::AtomWifiAwareNdpReported => "ATOM_WIFI_AWARE_NDP_REPORTED",
5054            AtomId::AtomWifiAwareAttachReported => "ATOM_WIFI_AWARE_ATTACH_REPORTED",
5055            AtomId::AtomWifiSelfRecoveryTriggered => "ATOM_WIFI_SELF_RECOVERY_TRIGGERED",
5056            AtomId::AtomSoftApStarted => "ATOM_SOFT_AP_STARTED",
5057            AtomId::AtomSoftApStopped => "ATOM_SOFT_AP_STOPPED",
5058            AtomId::AtomWifiLockReleased => "ATOM_WIFI_LOCK_RELEASED",
5059            AtomId::AtomWifiLockDeactivated => "ATOM_WIFI_LOCK_DEACTIVATED",
5060            AtomId::AtomWifiConfigSaved => "ATOM_WIFI_CONFIG_SAVED",
5061            AtomId::AtomWifiAwareResourceUsingChanged => "ATOM_WIFI_AWARE_RESOURCE_USING_CHANGED",
5062            AtomId::AtomWifiAwareHalApiCalled => "ATOM_WIFI_AWARE_HAL_API_CALLED",
5063            AtomId::AtomWifiLocalOnlyRequestReceived => "ATOM_WIFI_LOCAL_ONLY_REQUEST_RECEIVED",
5064            AtomId::AtomWifiLocalOnlyRequestScanTriggered => "ATOM_WIFI_LOCAL_ONLY_REQUEST_SCAN_TRIGGERED",
5065            AtomId::AtomWifiThreadTaskExecuted => "ATOM_WIFI_THREAD_TASK_EXECUTED",
5066            AtomId::AtomWifiStateChanged => "ATOM_WIFI_STATE_CHANGED",
5067            AtomId::AtomPnoScanStarted => "ATOM_PNO_SCAN_STARTED",
5068            AtomId::AtomPnoScanStopped => "ATOM_PNO_SCAN_STOPPED",
5069            AtomId::AtomWifiIsUnusableReported => "ATOM_WIFI_IS_UNUSABLE_REPORTED",
5070            AtomId::AtomWifiApCapabilitiesReported => "ATOM_WIFI_AP_CAPABILITIES_REPORTED",
5071            AtomId::AtomSoftApStateChanged => "ATOM_SOFT_AP_STATE_CHANGED",
5072            AtomId::AtomScorerPredictionResultReported => "ATOM_SCORER_PREDICTION_RESULT_REPORTED",
5073            AtomId::AtomWifiAwareCapabilities => "ATOM_WIFI_AWARE_CAPABILITIES",
5074            AtomId::AtomWifiModuleInfo => "ATOM_WIFI_MODULE_INFO",
5075            AtomId::AtomWifiSettingInfo => "ATOM_WIFI_SETTING_INFO",
5076            AtomId::AtomWifiComplexSettingInfo => "ATOM_WIFI_COMPLEX_SETTING_INFO",
5077            AtomId::AtomWifiConfiguredNetworkInfo => "ATOM_WIFI_CONFIGURED_NETWORK_INFO",
5078        }
5079    }
5080}
5081/// This file is named 'statsd_tracing_config.proto' rather than
5082/// 'statsd_config.proto' (which would be more consistent with the other
5083/// config protos) so it doesn't show up and confuse folks looking for
5084/// the existing statsd_config.proto for configuring statsd itself.
5085/// Same for the config proto itself.
5086#[derive(Clone, PartialEq, ::prost::Message)]
5087pub struct StatsdTracingConfig {
5088    /// This is for the common case of the atom id being known in the enum AtomId.
5089    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
5090    pub push_atom_id: ::prost::alloc::vec::Vec<i32>,
5091    /// Escape hatch for Atom IDs that are not yet in the AtomId enum
5092    /// (e.g. non-upstream atoms that don't exist in AOSP).
5093    #[prost(int32, repeated, packed="false", tag="2")]
5094    pub raw_push_atom_id: ::prost::alloc::vec::Vec<i32>,
5095    #[prost(message, repeated, tag="3")]
5096    pub pull_config: ::prost::alloc::vec::Vec<StatsdPullAtomConfig>,
5097}
5098#[derive(Clone, PartialEq, ::prost::Message)]
5099pub struct StatsdPullAtomConfig {
5100    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
5101    pub pull_atom_id: ::prost::alloc::vec::Vec<i32>,
5102    #[prost(int32, repeated, packed="false", tag="2")]
5103    pub raw_pull_atom_id: ::prost::alloc::vec::Vec<i32>,
5104    #[prost(int32, optional, tag="3")]
5105    pub pull_frequency_ms: ::core::option::Option<i32>,
5106    #[prost(string, repeated, tag="4")]
5107    pub packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5108}
5109/// Configuration that allows to boost the priority of the 'traced' or
5110/// 'traced_probs' processes, by changing the scheduler configuration.
5111/// Only supported on Linux and Android the boosted process must have
5112/// 'CAP_SYS_NICE' capability.
5113#[derive(Clone, PartialEq, ::prost::Message)]
5114pub struct PriorityBoostConfig {
5115    #[prost(enumeration="priority_boost_config::BoostPolicy", optional, tag="1")]
5116    pub policy: ::core::option::Option<i32>,
5117    #[prost(uint32, optional, tag="2")]
5118    pub priority: ::core::option::Option<u32>,
5119}
5120/// Nested message and enum types in `PriorityBoostConfig`.
5121pub mod priority_boost_config {
5122    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5123    #[repr(i32)]
5124    pub enum BoostPolicy {
5125        PolicyUnspecified = 0,
5126        /// The default policy (e.g., CFS on Linux). Priority range: [0; 20]
5127        /// priority is interpreted as -(nice), i.e., 1 is slightly higher prio
5128        /// than default 0, 20 is the highest priority.
5129        /// Note: this is the opposite semantic of the cmdline nice, and is done for
5130        /// consistency with POLICY_SCHED_FIFO, so higher number == higher prio.
5131        PolicySchedOther = 1,
5132        /// The Real-time policy, Priority range: [1; 99]
5133        PolicySchedFifo = 2,
5134    }
5135    impl BoostPolicy {
5136        /// String value of the enum field names used in the ProtoBuf definition.
5137        ///
5138        /// The values are not transformed in any way and thus are considered stable
5139        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5140        pub fn as_str_name(&self) -> &'static str {
5141            match self {
5142                BoostPolicy::PolicyUnspecified => "POLICY_UNSPECIFIED",
5143                BoostPolicy::PolicySchedOther => "POLICY_SCHED_OTHER",
5144                BoostPolicy::PolicySchedFifo => "POLICY_SCHED_FIFO",
5145            }
5146        }
5147    }
5148}
5149/// Config for polling process-related information from /proc/pid/status and
5150/// related files on Linux.
5151///
5152/// Data source name: "linux.process_stats".
5153#[derive(Clone, PartialEq, ::prost::Message)]
5154pub struct ProcessStatsConfig {
5155    #[prost(enumeration="process_stats_config::Quirks", repeated, packed="false", tag="1")]
5156    pub quirks: ::prost::alloc::vec::Vec<i32>,
5157    /// If enabled all processes will be scanned and dumped when the trace starts.
5158    #[prost(bool, optional, tag="2")]
5159    pub scan_all_processes_on_start: ::core::option::Option<bool>,
5160    /// If enabled thread names are also recoded (this is redundant if sched_switch
5161    /// is enabled).
5162    #[prost(bool, optional, tag="3")]
5163    pub record_thread_names: ::core::option::Option<bool>,
5164    /// If > 0 samples counters (see process_stats.proto) from
5165    /// /proc/pid/status and oom_score_adj every X ms.
5166    /// This is required to be > 100ms to avoid excessive CPU usage.
5167    #[prost(uint32, optional, tag="4")]
5168    pub proc_stats_poll_ms: ::core::option::Option<u32>,
5169    // id 5 never used
5170
5171    /// Explicit caching period during which the polling won't re-emit identical
5172    /// counter values. This is required to be either = 0 or a multiple of
5173    /// |proc_stats_poll_ms| (default: |proc_stats_poll_ms|). Non-multiples will be
5174    /// rounded down to the nearest multiple.
5175    #[prost(uint32, optional, tag="6")]
5176    pub proc_stats_cache_ttl_ms: ::core::option::Option<u32>,
5177    /// If true and |proc_stats_poll_ms| is set, sample memory stats from
5178    /// /proc/pid/smaps_rollup.
5179    ///
5180    /// Android: does NOT work with the system daemons by default, as it requires
5181    /// running the recording process (traced_probes or tracebox) as root. It is
5182    /// possible to avoid the root requirement, but the exact steps depend on the
5183    /// Linux distibution. The proc file requires passing a PTRACE_MODE_READ
5184    /// check, and might be further covered by the procfs "hidepid" mount option.
5185    #[prost(bool, optional, tag="10")]
5186    pub scan_smaps_rollup: ::core::option::Option<bool>,
5187    /// If true: process descriptions will include process age (starttime in
5188    /// /proc/pid/stat).
5189    /// Introduced in: perfetto v44.
5190    #[prost(bool, optional, tag="11")]
5191    pub record_process_age: ::core::option::Option<bool>,
5192    /// If true and |proc_stats_poll_ms| is set, process stats will include time
5193    /// spent running in user/kernel mode (utime/stime in /proc/pid/stat).
5194    /// Introduced in: perfetto v44.
5195    #[prost(bool, optional, tag="12")]
5196    pub record_process_runtime: ::core::option::Option<bool>,
5197    /// If true obtain per-process dmabuf resident set size from
5198    /// /proc/pid/dmabuf_rss.
5199    /// This feature is not in upstream linux, and is available only on some
5200    /// Android kernels.
5201    #[prost(bool, optional, tag="13")]
5202    pub record_process_dmabuf_rss: ::core::option::Option<bool>,
5203    /// WARNING: unmaintained and deprecated. If true this will resolve file
5204    /// descriptors for each process so these can be mapped to their actual device
5205    /// or file. Requires raw_syscalls/sys_{enter,exit} ftrace events to be enabled
5206    /// or new fds opened after initially scanning a process will not be
5207    /// recognized.
5208    #[prost(bool, optional, tag="9")]
5209    pub resolve_process_fds: ::core::option::Option<bool>,
5210}
5211/// Nested message and enum types in `ProcessStatsConfig`.
5212pub mod process_stats_config {
5213    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5214    #[repr(i32)]
5215    pub enum Quirks {
5216        Unspecified = 0,
5217        /// This has been deprecated and ignored as per 2018-05-01. Full scan at
5218        /// startup is now disabled by default and can be re-enabled using the
5219        /// |scan_all_processes_on_start| arg.
5220        DisableInitialDump = 1,
5221        /// If set, disables the special interaction with "linux.ftrace" data source,
5222        /// where the process stats rescrapes any thread id seen in the ftrace
5223        /// stream.
5224        DisableOnDemand = 2,
5225    }
5226    impl Quirks {
5227        /// String value of the enum field names used in the ProtoBuf definition.
5228        ///
5229        /// The values are not transformed in any way and thus are considered stable
5230        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5231        pub fn as_str_name(&self) -> &'static str {
5232            match self {
5233                Quirks::Unspecified => "QUIRKS_UNSPECIFIED",
5234                Quirks::DisableInitialDump => "DISABLE_INITIAL_DUMP",
5235                Quirks::DisableOnDemand => "DISABLE_ON_DEMAND",
5236            }
5237        }
5238    }
5239}
5240/// Configuration for go/heapprofd.
5241/// Next id: 28
5242#[derive(Clone, PartialEq, ::prost::Message)]
5243pub struct HeapprofdConfig {
5244    /// Sampling rate for all heaps not specified via heap_sampling_intervals.
5245    ///
5246    /// These are:
5247    /// * All heaps if heap_sampling_intervals is empty.
5248    /// * Those profiled due to all_heaps and not named in heaps if
5249    ///    heap_sampling_intervals is not empty.
5250    /// * The implicit libc.malloc heap if heaps is empty.
5251    ///
5252    /// Set to 1 for perfect accuracy.
5253    /// Otherwise, sample every sample_interval_bytes on average.
5254    ///
5255    /// See
5256    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#sampling-interval>
5257    /// for more details.
5258    ///
5259    /// BUGS
5260    /// Before Android 12, setting this to 0 would crash the target process.
5261    ///
5262    /// N.B. This must be explicitly set to a non-zero value for all heaps (with
5263    /// this field or with heap_sampling_intervals), otherwise the producer will
5264    /// not start.
5265    #[prost(uint64, optional, tag="1")]
5266    pub sampling_interval_bytes: ::core::option::Option<u64>,
5267    /// If less than the given numbers of bytes are left free in the shared
5268    /// memory buffer, increase sampling interval by a factor of two.
5269    /// Adaptive sampling is disabled when set to 0.
5270    #[prost(uint64, optional, tag="24")]
5271    pub adaptive_sampling_shmem_threshold: ::core::option::Option<u64>,
5272    /// Stop doubling the sampling_interval once the sampling interval has reached
5273    /// this value.
5274    #[prost(uint64, optional, tag="25")]
5275    pub adaptive_sampling_max_sampling_interval_bytes: ::core::option::Option<u64>,
5276    /// E.g. surfaceflinger, com.android.phone
5277    /// This input is normalized in the following way: if it contains slashes,
5278    /// everything up to the last slash is discarded. If it contains "@",
5279    /// everything after the first @ is discared.
5280    /// E.g. /system/bin/surfaceflinger@1.0 normalizes to surfaceflinger.
5281    /// This transformation is also applied to the processes' command lines when
5282    /// matching.
5283    #[prost(string, repeated, tag="2")]
5284    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5285    /// For watermark based triggering or local debugging.
5286    #[prost(uint64, repeated, packed="false", tag="4")]
5287    pub pid: ::prost::alloc::vec::Vec<u64>,
5288    /// Only profile target if it was installed by one of the packages given.
5289    /// Special values are:
5290    /// * @system: installed on the system partition
5291    /// * @product: installed on the product partition
5292    /// * @null: sideloaded
5293    /// Supported on Android 12+.
5294    #[prost(string, repeated, tag="26")]
5295    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5296    /// Which heaps to sample, e.g. "libc.malloc". If left empty, only samples
5297    /// "malloc".
5298    ///
5299    /// Introduced in Android 12.
5300    #[prost(string, repeated, tag="20")]
5301    pub heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5302    /// Which heaps not to sample, e.g. "libc.malloc". This is useful when used in
5303    /// combination with all_heaps;
5304    ///
5305    /// Introduced in Android 12.
5306    #[prost(string, repeated, tag="27")]
5307    pub exclude_heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5308    #[prost(bool, optional, tag="23")]
5309    pub stream_allocations: ::core::option::Option<bool>,
5310    /// If given, needs to be the same length as heaps and gives the sampling
5311    /// interval for the respective entry in heaps.
5312    ///
5313    /// Otherwise, sampling_interval_bytes is used.
5314    ///
5315    /// It is recommended to set sampling_interval_bytes to a reasonable default
5316    /// value when using this, as a value of 0 for sampling_interval_bytes will
5317    /// crash the target process before Android 12.
5318    ///
5319    /// Introduced in Android 12.
5320    ///
5321    /// All values must be non-zero or the producer will not start.
5322    #[prost(uint64, repeated, packed="false", tag="22")]
5323    pub heap_sampling_intervals: ::prost::alloc::vec::Vec<u64>,
5324    /// Sample all heaps registered by target process. Introduced in Android 12.
5325    #[prost(bool, optional, tag="21")]
5326    pub all_heaps: ::core::option::Option<bool>,
5327    /// Profile all processes eligible for profiling on the system.
5328    /// See
5329    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#heapprofd-targets>
5330    /// for which processes are eligible.
5331    ///
5332    /// On unmodified userdebug builds, this will lead to system crashes. Zygote
5333    /// will crash when trying to launch a new process as it will have an
5334    /// unexpected open socket to heapprofd.
5335    ///
5336    /// heapprofd will likely be overloaded by the amount of data for low
5337    /// sampling intervals.
5338    #[prost(bool, optional, tag="5")]
5339    pub all: ::core::option::Option<bool>,
5340    /// Do not profile processes whose anon RSS + swap < given value.
5341    /// Introduced in Android 11.
5342    #[prost(uint32, optional, tag="15")]
5343    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
5344    /// Stop profile if heapprofd memory usage goes beyond the given value.
5345    /// Introduced in Android 11.
5346    #[prost(uint32, optional, tag="16")]
5347    pub max_heapprofd_memory_kb: ::core::option::Option<u32>,
5348    /// Stop profile if heapprofd CPU time since start of this data-source
5349    /// goes beyond given value.
5350    /// Introduced in Android 11.
5351    #[prost(uint64, optional, tag="17")]
5352    pub max_heapprofd_cpu_secs: ::core::option::Option<u64>,
5353    /// Do not emit function names for mappings starting with this prefix.
5354    /// E.g. /system to not emit symbols for any system libraries.
5355    #[prost(string, repeated, tag="7")]
5356    pub skip_symbol_prefix: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5357    /// Dump at a predefined interval.
5358    #[prost(message, optional, tag="6")]
5359    pub continuous_dump_config: ::core::option::Option<heapprofd_config::ContinuousDumpConfig>,
5360    /// Size of the shared memory buffer between the profiled processes and
5361    /// heapprofd. Defaults to 8 MiB. If larger than 500 MiB, truncated to 500
5362    /// MiB.
5363    ///
5364    /// Needs to be:
5365    /// * at least 8192,
5366    /// * a power of two,
5367    /// * a multiple of 4096.
5368    #[prost(uint64, optional, tag="8")]
5369    pub shmem_size_bytes: ::core::option::Option<u64>,
5370    /// When the shmem buffer is full, block the client instead of ending the
5371    /// trace. Use with caution as this will significantly slow down the target
5372    /// process.
5373    #[prost(bool, optional, tag="9")]
5374    pub block_client: ::core::option::Option<bool>,
5375    /// If set, stop the trace session after blocking the client for this
5376    /// timeout. Needs to be larger than 100 us, otherwise no retries are done.
5377    /// Introduced in Android 11.
5378    #[prost(uint32, optional, tag="14")]
5379    pub block_client_timeout_us: ::core::option::Option<u32>,
5380    /// Do not profile processes from startup, only match already running
5381    /// processes.
5382    ///
5383    /// Can not be set at the same time as no_running.
5384    /// Introduced in Android 11.
5385    #[prost(bool, optional, tag="10")]
5386    pub no_startup: ::core::option::Option<bool>,
5387    /// Do not profile running processes. Only match processes on startup.
5388    ///
5389    /// Can not be set at the same time as no_startup.
5390    /// Introduced in Android 11.
5391    #[prost(bool, optional, tag="11")]
5392    pub no_running: ::core::option::Option<bool>,
5393    /// Cause heapprofd to emit a single dump at the end, showing the memory usage
5394    /// at the point in time when the sampled heap usage of the process was at its
5395    /// maximum. This causes ProfilePacket.HeapSample.self_max to be set, and
5396    /// self_allocated and self_freed to not be set.
5397    /// Introduced in Android 11.
5398    #[prost(bool, optional, tag="13")]
5399    pub dump_at_max: ::core::option::Option<bool>,
5400    // FEATURE FLAGS. THERE BE DRAGONS.
5401
5402    /// Escape hatch if the session is being torn down because of a forked child
5403    /// that shares memory space, but is not correctly identified as a vforked
5404    /// child.
5405    /// Introduced in Android 11.
5406    #[prost(bool, optional, tag="18")]
5407    pub disable_fork_teardown: ::core::option::Option<bool>,
5408    /// We try to automatically detect when a target applicatation vforks but then
5409    /// does a memory allocation (or free). This auto-detection can be disabled
5410    /// with this.
5411    /// Introduced in Android 11.
5412    #[prost(bool, optional, tag="19")]
5413    pub disable_vfork_detection: ::core::option::Option<bool>,
5414}
5415/// Nested message and enum types in `HeapprofdConfig`.
5416pub mod heapprofd_config {
5417    #[derive(Clone, PartialEq, ::prost::Message)]
5418    pub struct ContinuousDumpConfig {
5419        /// ms to wait before first dump.
5420        #[prost(uint32, optional, tag="5")]
5421        pub dump_phase_ms: ::core::option::Option<u32>,
5422        /// ms to wait between following dumps.
5423        #[prost(uint32, optional, tag="6")]
5424        pub dump_interval_ms: ::core::option::Option<u32>,
5425    }
5426}
5427/// Configuration for managed app heap graph snapshots.
5428#[derive(Clone, PartialEq, ::prost::Message)]
5429pub struct JavaHprofConfig {
5430    /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
5431    /// comm string). The semantics of this field were changed since its original
5432    /// introduction.
5433    ///
5434    /// On Android T+ (13+), this field can specify a single wildcard (*), and
5435    /// the profiler will attempt to match it in two possible ways:
5436    /// * if the pattern starts with a '/', then it is matched against the first
5437    ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
5438    ///    "/bin/echo".
5439    /// * otherwise the pattern is matched against the part of argv0
5440    ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
5441    ///    For example "echo" would match "/bin/echo".
5442    ///
5443    /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
5444    /// normalized prior to an exact string comparison. Normalization is as
5445    /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
5446    /// the string contains forward slashes, trim everything up to and including
5447    /// the last one.
5448    ///
5449    /// Implementation note: in either case, at most 511 characters of cmdline
5450    /// are considered.
5451    #[prost(string, repeated, tag="1")]
5452    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5453    /// For watermark based triggering or local debugging.
5454    #[prost(uint64, repeated, packed="false", tag="2")]
5455    pub pid: ::prost::alloc::vec::Vec<u64>,
5456    /// Only profile target if it was installed by one of the packages given.
5457    /// Special values are:
5458    /// * @system: installed on the system partition
5459    /// * @product: installed on the product partition
5460    /// * @null: sideloaded
5461    /// Supported on Android 12+.
5462    #[prost(string, repeated, tag="7")]
5463    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5464    /// Dump at a predefined interval.
5465    #[prost(message, optional, tag="3")]
5466    pub continuous_dump_config: ::core::option::Option<java_hprof_config::ContinuousDumpConfig>,
5467    /// Do not profile processes whose anon RSS + swap < given value.
5468    #[prost(uint32, optional, tag="4")]
5469    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
5470    /// Include the process' /proc/self/smaps.
5471    /// This only shows maps that:
5472    /// * start with /system
5473    /// * start with /vendor
5474    /// * start with /data/app
5475    /// * contain "extracted in memory from Y", where Y matches any of the above
5476    #[prost(bool, optional, tag="5")]
5477    pub dump_smaps: ::core::option::Option<bool>,
5478    /// Exclude objects of the following types from the profile. This can be
5479    /// useful if lots of uninteresting objects, e.g. "sun.misc.Cleaner".
5480    #[prost(string, repeated, tag="6")]
5481    pub ignored_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5482}
5483/// Nested message and enum types in `JavaHprofConfig`.
5484pub mod java_hprof_config {
5485    /// If dump_interval_ms != 0, the following configuration is used.
5486    #[derive(Clone, PartialEq, ::prost::Message)]
5487    pub struct ContinuousDumpConfig {
5488        /// ms to wait before first continuous dump.
5489        /// A dump is always created at the beginning of the trace.
5490        #[prost(uint32, optional, tag="1")]
5491        pub dump_phase_ms: ::core::option::Option<u32>,
5492        /// ms to wait between following dumps.
5493        #[prost(uint32, optional, tag="2")]
5494        pub dump_interval_ms: ::core::option::Option<u32>,
5495        /// If true, scans all the processes to find `process_cmdline` and filter by
5496        /// `min_anonymous_memory_kb` only at data source start. Default on Android
5497        /// S-.
5498        ///
5499        /// If false, rescans all the processes to find on every dump. Default on
5500        /// Android T+.
5501        #[prost(bool, optional, tag="3")]
5502        pub scan_pids_only_on_start: ::core::option::Option<bool>,
5503    }
5504}
5505#[derive(Clone, PartialEq, ::prost::Message)]
5506pub struct PerfEvents {
5507}
5508/// Nested message and enum types in `PerfEvents`.
5509pub mod perf_events {
5510    /// The primary event to count. If recording multiple events, this
5511    /// counter is the "group leader".
5512    /// Commented from the perspective of its use in |PerfEventConfig|.
5513    /// Next id: 13
5514    #[derive(Clone, PartialEq, ::prost::Message)]
5515    pub struct Timebase {
5516        /// Optional modifiers for the event. Modelled after the perftool's
5517        /// <https://man7.org/linux/man-pages/man1/perf-list.1.html#EVENT_MODIFIERS>
5518        /// Currently supported: count scoping such as :u, :k, :uk, ...
5519        /// Modifiers can differ between the timebase and followers.
5520        #[prost(enumeration="EventModifier", repeated, packed="false", tag="12")]
5521        pub modifiers: ::prost::alloc::vec::Vec<i32>,
5522        /// If set, samples will be timestamped with the given clock.
5523        /// If unset, the clock is chosen by the implementation.
5524        /// For software events, prefer PERF_CLOCK_BOOTTIME. However it cannot be
5525        /// used for hardware events (due to interrupt safety), for which the
5526        /// recommendation is to use one of the monotonic clocks.
5527        #[prost(enumeration="PerfClock", optional, tag="11")]
5528        pub timestamp_clock: ::core::option::Option<i32>,
5529        /// Optional arbitrary name for the event, to identify it in the parsed
5530        /// trace. Does *not* affect the profiling itself. If unset, the trace
5531        /// parser will choose a suitable name.
5532        #[prost(string, optional, tag="10")]
5533        pub name: ::core::option::Option<::prost::alloc::string::String>,
5534        /// How often to snapshot the counter, along with any follower events and
5535        /// any additional sampled data such as callstacks.
5536        ///
5537        /// This choice also controls how the readings are taken:
5538        /// * With |frequency| or |period|, samples are taken by the kernel
5539        ///    into a ring buffer. Analogous to `perf record`.
5540        /// * With |poll_period_ms|, the userspace periodically snapshots
5541        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5542        /// Prefer the sampling options unless you're recording PMUs whose
5543        /// perf drivers only support the reading mode.
5544        ///
5545        /// If unset, an implementation-defined sampling default is used.
5546        #[prost(oneof="timebase::Interval", tags="2, 1, 6")]
5547        pub interval: ::core::option::Option<timebase::Interval>,
5548        /// Counting event to use as the timebase.
5549        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5550        /// which is what you usually want.
5551        #[prost(oneof="timebase::Event", tags="4, 3, 5")]
5552        pub event: ::core::option::Option<timebase::Event>,
5553    }
5554    /// Nested message and enum types in `Timebase`.
5555    pub mod timebase {
5556        /// How often to snapshot the counter, along with any follower events and
5557        /// any additional sampled data such as callstacks.
5558        ///
5559        /// This choice also controls how the readings are taken:
5560        /// * With |frequency| or |period|, samples are taken by the kernel
5561        ///    into a ring buffer. Analogous to `perf record`.
5562        /// * With |poll_period_ms|, the userspace periodically snapshots
5563        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5564        /// Prefer the sampling options unless you're recording PMUs whose
5565        /// perf drivers only support the reading mode.
5566        ///
5567        /// If unset, an implementation-defined sampling default is used.
5568        #[derive(Clone, PartialEq, ::prost::Oneof)]
5569        pub enum Interval {
5570            /// Per-cpu sampling frequency in Hz, as requested from the kernel. Not the
5571            /// same as 1/period.
5572            /// Details: the actual sampling will still be based on a period, but the
5573            /// kernel will dynamically adjust it based on the observed event rate, to
5574            /// approximate this frequency. Works best with steady-rate events like
5575            /// timers.
5576            /// Not guaranteed to be honored as the kernel can throttle the sampling
5577            /// rate if it's too high.
5578            #[prost(uint64, tag="2")]
5579            Frequency(u64),
5580            /// Per-cpu sampling will occur every |period| counts of |event|.
5581            /// Prefer |frequency| by default, as it's easier to oversample with a
5582            /// fixed period.
5583            /// Not guaranteed to be honored as the kernel can throttle the sampling
5584            /// rate if it's too high.
5585            #[prost(uint64, tag="1")]
5586            Period(u64),
5587            /// Per-cpu values are read by the userspace every interval. If using this
5588            /// mode, only follower events are supported. Options such as
5589            /// |PerfEventConfig.CallstackSampling| are incompatible.
5590            /// The period can't be guaranteed to be exact since the readings are taken
5591            /// by userspace.
5592            #[prost(uint32, tag="6")]
5593            PollPeriodMs(u32),
5594        }
5595        /// Counting event to use as the timebase.
5596        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5597        /// which is what you usually want.
5598        #[derive(Clone, PartialEq, ::prost::Oneof)]
5599        pub enum Event {
5600            #[prost(enumeration="super::Counter", tag="4")]
5601            Counter(i32),
5602            #[prost(message, tag="3")]
5603            Tracepoint(super::Tracepoint),
5604            #[prost(message, tag="5")]
5605            RawEvent(super::RawEvent),
5606        }
5607    }
5608    #[derive(Clone, PartialEq, ::prost::Message)]
5609    pub struct Tracepoint {
5610        /// Group and name for the tracepoint, acceptable forms:
5611        /// * "sched/sched_switch"
5612        /// * "sched:sched_switch"
5613        #[prost(string, optional, tag="1")]
5614        pub name: ::core::option::Option<::prost::alloc::string::String>,
5615        /// Optional field-level filter for the tracepoint. Only events matching this
5616        /// filter will be counted (and therefore contribute to the sampling period).
5617        /// Example: "prev_pid >= 42 && next_pid == 0".
5618        /// For full syntax, see kernel documentation on "Event filtering":
5619        /// <https://www.kernel.org/doc/Documentation/trace/events.txt>
5620        #[prost(string, optional, tag="2")]
5621        pub filter: ::core::option::Option<::prost::alloc::string::String>,
5622    }
5623    /// Syscall-level description of the event, propagated to the perf_event_attr
5624    /// struct. Primarily for local use-cases, since the event availability and
5625    /// encoding is hardware-specific.
5626    #[derive(Clone, PartialEq, ::prost::Message)]
5627    pub struct RawEvent {
5628        /// Either |type| or |pmu_name| can be set.
5629        #[prost(uint32, optional, tag="1")]
5630        pub r#type: ::core::option::Option<u32>,
5631        #[prost(uint64, optional, tag="2")]
5632        pub config: ::core::option::Option<u64>,
5633        #[prost(uint64, optional, tag="3")]
5634        pub config1: ::core::option::Option<u64>,
5635        #[prost(uint64, optional, tag="4")]
5636        pub config2: ::core::option::Option<u64>,
5637        /// The name of a dynamic PMU under /sys/bus/event_source/devices
5638        /// (e.g. "armv8_pmuv3").
5639        /// If set, leave |type| unset.
5640        /// Android: the relevant sysfs paths are not allowlisted by default, so
5641        /// this option will require a rooted device with selinux disabled.
5642        #[prost(string, optional, tag="5")]
5643        pub pmu_name: ::core::option::Option<::prost::alloc::string::String>,
5644    }
5645    /// Builtin counter names from the uapi header. Commented with their perf tool
5646    /// aliases.
5647    /// TODO(rsavitski): consider generating enums for cache events (should be
5648    /// finite), and generally make this list as extensive as possible. Excluding
5649    /// things like dynamic PMUs since those don't fit into a static enum.
5650    /// Next id: 21
5651    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5652    #[repr(i32)]
5653    pub enum Counter {
5654        UnknownCounter = 0,
5655        /// cpu-clock
5656        SwCpuClock = 1,
5657        /// page-faults, faults
5658        SwPageFaults = 2,
5659        /// task-clock
5660        SwTaskClock = 3,
5661        /// context-switches, cs
5662        SwContextSwitches = 4,
5663        /// cpu-migrations, migrations
5664        SwCpuMigrations = 5,
5665        /// minor-faults
5666        SwPageFaultsMin = 6,
5667        /// major-faults
5668        SwPageFaultsMaj = 7,
5669        /// alignment-faults
5670        SwAlignmentFaults = 8,
5671        /// emulation-faults
5672        SwEmulationFaults = 9,
5673        /// dummy
5674        SwDummy = 20,
5675        /// cpu-cycles, cycles
5676        HwCpuCycles = 10,
5677        /// instructions
5678        HwInstructions = 11,
5679        /// cache-references
5680        HwCacheReferences = 12,
5681        /// cache-misses
5682        HwCacheMisses = 13,
5683        /// branch-instructions, branches
5684        HwBranchInstructions = 14,
5685        /// branch-misses
5686        HwBranchMisses = 15,
5687        /// bus-cycles
5688        HwBusCycles = 16,
5689        /// stalled-cycles-frontend, idle-cycles-frontend
5690        HwStalledCyclesFrontend = 17,
5691        /// stalled-cycles-backend, idle-cycles-backend
5692        HwStalledCyclesBackend = 18,
5693        /// ref-cycles
5694        HwRefCpuCycles = 19,
5695    }
5696    impl Counter {
5697        /// String value of the enum field names used in the ProtoBuf definition.
5698        ///
5699        /// The values are not transformed in any way and thus are considered stable
5700        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5701        pub fn as_str_name(&self) -> &'static str {
5702            match self {
5703                Counter::UnknownCounter => "UNKNOWN_COUNTER",
5704                Counter::SwCpuClock => "SW_CPU_CLOCK",
5705                Counter::SwPageFaults => "SW_PAGE_FAULTS",
5706                Counter::SwTaskClock => "SW_TASK_CLOCK",
5707                Counter::SwContextSwitches => "SW_CONTEXT_SWITCHES",
5708                Counter::SwCpuMigrations => "SW_CPU_MIGRATIONS",
5709                Counter::SwPageFaultsMin => "SW_PAGE_FAULTS_MIN",
5710                Counter::SwPageFaultsMaj => "SW_PAGE_FAULTS_MAJ",
5711                Counter::SwAlignmentFaults => "SW_ALIGNMENT_FAULTS",
5712                Counter::SwEmulationFaults => "SW_EMULATION_FAULTS",
5713                Counter::SwDummy => "SW_DUMMY",
5714                Counter::HwCpuCycles => "HW_CPU_CYCLES",
5715                Counter::HwInstructions => "HW_INSTRUCTIONS",
5716                Counter::HwCacheReferences => "HW_CACHE_REFERENCES",
5717                Counter::HwCacheMisses => "HW_CACHE_MISSES",
5718                Counter::HwBranchInstructions => "HW_BRANCH_INSTRUCTIONS",
5719                Counter::HwBranchMisses => "HW_BRANCH_MISSES",
5720                Counter::HwBusCycles => "HW_BUS_CYCLES",
5721                Counter::HwStalledCyclesFrontend => "HW_STALLED_CYCLES_FRONTEND",
5722                Counter::HwStalledCyclesBackend => "HW_STALLED_CYCLES_BACKEND",
5723                Counter::HwRefCpuCycles => "HW_REF_CPU_CYCLES",
5724            }
5725        }
5726    }
5727    /// Subset of clocks that is supported by perf timestamping.
5728    /// CLOCK_TAI is excluded since it's not expected to be used in practice, but
5729    /// would require additions to the trace clock synchronisation logic.
5730    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5731    #[repr(i32)]
5732    pub enum PerfClock {
5733        UnknownPerfClock = 0,
5734        Realtime = 1,
5735        Monotonic = 2,
5736        MonotonicRaw = 3,
5737        Boottime = 4,
5738    }
5739    impl PerfClock {
5740        /// String value of the enum field names used in the ProtoBuf definition.
5741        ///
5742        /// The values are not transformed in any way and thus are considered stable
5743        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5744        pub fn as_str_name(&self) -> &'static str {
5745            match self {
5746                PerfClock::UnknownPerfClock => "UNKNOWN_PERF_CLOCK",
5747                PerfClock::Realtime => "PERF_CLOCK_REALTIME",
5748                PerfClock::Monotonic => "PERF_CLOCK_MONOTONIC",
5749                PerfClock::MonotonicRaw => "PERF_CLOCK_MONOTONIC_RAW",
5750                PerfClock::Boottime => "PERF_CLOCK_BOOTTIME",
5751            }
5752        }
5753    }
5754    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5755    #[repr(i32)]
5756    pub enum EventModifier {
5757        UnknownEventModifier = 0,
5758        /// count only while in userspace
5759        CountUserspace = 1,
5760        /// count only while in kernel
5761        CountKernel = 2,
5762        /// count only while in hypervisor
5763        CountHypervisor = 3,
5764    }
5765    impl EventModifier {
5766        /// String value of the enum field names used in the ProtoBuf definition.
5767        ///
5768        /// The values are not transformed in any way and thus are considered stable
5769        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5770        pub fn as_str_name(&self) -> &'static str {
5771            match self {
5772                EventModifier::UnknownEventModifier => "UNKNOWN_EVENT_MODIFIER",
5773                EventModifier::CountUserspace => "EVENT_MODIFIER_COUNT_USERSPACE",
5774                EventModifier::CountKernel => "EVENT_MODIFIER_COUNT_KERNEL",
5775                EventModifier::CountHypervisor => "EVENT_MODIFIER_COUNT_HYPERVISOR",
5776            }
5777        }
5778    }
5779}
5780/// Additional events associated with a leader.
5781/// See <https://man7.org/linux/man-pages/man1/perf-list.1.html#LEADER_SAMPLING>
5782#[derive(Clone, PartialEq, ::prost::Message)]
5783pub struct FollowerEvent {
5784    /// Modifiers can differ between the timebase and followers.
5785    #[prost(enumeration="perf_events::EventModifier", repeated, packed="false", tag="5")]
5786    pub modifiers: ::prost::alloc::vec::Vec<i32>,
5787    /// Optional arbitrary name for the event, to identify it in the parsed
5788    /// trace. Does *not* affect the profiling itself. If unset, the trace
5789    /// parser will choose a suitable name.
5790    #[prost(string, optional, tag="4")]
5791    pub name: ::core::option::Option<::prost::alloc::string::String>,
5792    #[prost(oneof="follower_event::Event", tags="1, 2, 3")]
5793    pub event: ::core::option::Option<follower_event::Event>,
5794}
5795/// Nested message and enum types in `FollowerEvent`.
5796pub mod follower_event {
5797    #[derive(Clone, PartialEq, ::prost::Oneof)]
5798    pub enum Event {
5799        #[prost(enumeration="super::perf_events::Counter", tag="1")]
5800        Counter(i32),
5801        #[prost(message, tag="2")]
5802        Tracepoint(super::perf_events::Tracepoint),
5803        #[prost(message, tag="3")]
5804        RawEvent(super::perf_events::RawEvent),
5805    }
5806}
5807/// Configuration for the traced_perf profiler.
5808///
5809/// Example config for basic cpu profiling:
5810///    perf_event_config {
5811///      timebase {
5812///        frequency: 80
5813///      }
5814///      callstack_sampling {
5815///        scope {
5816///          target_cmdline: "surfaceflinger"
5817///          target_cmdline: "system_server"
5818///        }
5819///        kernel_frames: true
5820///      }
5821///    }
5822///
5823/// Next id: 23
5824#[derive(Clone, PartialEq, ::prost::Message)]
5825pub struct PerfEventConfig {
5826    /// What event to sample on, and how often.
5827    /// Defined in common/perf_events.proto.
5828    #[prost(message, optional, tag="15")]
5829    pub timebase: ::core::option::Option<perf_events::Timebase>,
5830    /// Other events associated with the leader described in the timebase.
5831    #[prost(message, repeated, tag="19")]
5832    pub followers: ::prost::alloc::vec::Vec<FollowerEvent>,
5833    /// If set, the profiler will sample userspace processes' callstacks at the
5834    /// interval specified by the |timebase|.
5835    /// If unset, the profiler will record only the event counts.
5836    #[prost(message, optional, tag="16")]
5837    pub callstack_sampling: ::core::option::Option<perf_event_config::CallstackSampling>,
5838    /// List of cpu indices for counting. If empty, the default is all cpus.
5839    ///
5840    /// Note: this is not inside |callstack_sampling.scope| as it also applies to
5841    /// counter-only traces. A future change will likely reorganise the options,
5842    /// but this field will continue to be supported.
5843    ///
5844    /// Available since: perfetto v50.
5845    #[prost(uint32, repeated, packed="false", tag="20")]
5846    pub target_cpu: ::prost::alloc::vec::Vec<u32>,
5847    /// Allow failure of perf_event_open
5848    #[prost(bool, optional, tag="21")]
5849    pub ignore_open_failure: ::core::option::Option<bool>,
5850    /// If not empty, consider only CPUs whose CPUID matches one of these values.
5851    #[prost(string, repeated, tag="22")]
5852    pub cpuid: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5853    //
5854    // Kernel <-> userspace ring buffer options:
5855    //
5856
5857    /// How often the per-cpu ring buffers are read by the producer.
5858    /// If unset, an implementation-defined default is used.
5859    #[prost(uint32, optional, tag="8")]
5860    pub ring_buffer_read_period_ms: ::core::option::Option<u32>,
5861    /// Size (in 4k pages) of each per-cpu ring buffer that is filled by the
5862    /// kernel. If set, must be a power of two.
5863    /// If unset, an implementation-defined default is used.
5864    #[prost(uint32, optional, tag="3")]
5865    pub ring_buffer_pages: ::core::option::Option<u32>,
5866    //
5867    // Daemon's resource usage limits:
5868    //
5869
5870    /// Drop samples if the heap memory held by the samples in the unwinder queue
5871    /// is above the given limit. This counts the memory across all concurrent data
5872    /// sources (not just this one's), and there is no fairness guarantee - the
5873    /// whole quota might be used up by a concurrent source.
5874    #[prost(uint64, optional, tag="17")]
5875    pub max_enqueued_footprint_kb: ::core::option::Option<u64>,
5876    /// Stop the data source if traced_perf's combined {RssAnon + Swap} memory
5877    /// footprint exceeds this value.
5878    #[prost(uint32, optional, tag="13")]
5879    pub max_daemon_memory_kb: ::core::option::Option<u32>,
5880    //
5881    // Niche options:
5882    //
5883
5884    /// Timeout for the remote /proc/<pid>/{maps,mem} file descriptors for a
5885    /// sampled process. This is primarily for Android, where this lookup is
5886    /// asynchronous. As long as the producer is waiting, the associated samples
5887    /// will be kept enqueued (putting pressure on the capacity of the shared
5888    /// unwinding queue). Once a lookup for a process expires, all associated
5889    /// samples are discarded. However, if the lookup still succeeds after the
5890    /// timeout, future samples will be handled normally.
5891    /// If unset, an implementation-defined default is used.
5892    #[prost(uint32, optional, tag="9")]
5893    pub remote_descriptor_timeout_ms: ::core::option::Option<u32>,
5894    /// Optional period for clearing state cached by the userspace unwinder. This
5895    /// is a heavy operation that is only necessary for traces that target a wide
5896    /// set of processes, and require the memory footprint to be reset
5897    /// periodically. To effectively disable the cache clearing, set to a value
5898    /// greater than your trace duration.
5899    ///
5900    /// Relevant only if |callstack_sampling.user_frames| is set to UNWIND_DWARF.
5901    ///
5902    /// If zero or unset:
5903    /// * before perfetto v52: no cache clearing.
5904    /// * perfetto v52+: implementation chooses an infrequent default.
5905    #[prost(uint32, optional, tag="10")]
5906    pub unwind_state_clear_period_ms: ::core::option::Option<u32>,
5907    /// If set, only profile target if it was installed by a package with one of
5908    /// these names. Special values:
5909    /// * "@system": installed on the system partition
5910    /// * "@product": installed on the product partition
5911    /// * "@null": sideloaded
5912    /// Supported on Android 12+.
5913    #[prost(string, repeated, tag="18")]
5914    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5915    //
5916    // Deprecated (superseded by options above):
5917    //
5918    // Do not set *any* of these fields in new configs.
5919    //
5920
5921    /// Note: legacy configs had to set |all_cpus| to true to pass parsing.
5922    /// We rely on this to detect such configs.
5923    #[prost(bool, optional, tag="1")]
5924    pub all_cpus: ::core::option::Option<bool>,
5925    #[prost(uint32, optional, tag="2")]
5926    pub sampling_frequency: ::core::option::Option<u32>,
5927    #[prost(bool, optional, tag="12")]
5928    pub kernel_frames: ::core::option::Option<bool>,
5929    #[prost(int32, repeated, packed="false", tag="4")]
5930    pub target_pid: ::prost::alloc::vec::Vec<i32>,
5931    #[prost(string, repeated, tag="5")]
5932    pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5933    #[prost(int32, repeated, packed="false", tag="6")]
5934    pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
5935    #[prost(string, repeated, tag="7")]
5936    pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5937    #[prost(uint32, optional, tag="11")]
5938    pub additional_cmdline_count: ::core::option::Option<u32>,
5939}
5940/// Nested message and enum types in `PerfEventConfig`.
5941pub mod perf_event_config {
5942    //
5943    // Sub-messages (nested for generated code namespacing).
5944    //
5945
5946    #[derive(Clone, PartialEq, ::prost::Message)]
5947    pub struct CallstackSampling {
5948        /// Defines a set of processes for which samples are retained/skipped. If
5949        /// unset, all samples are kept, but beware that it will be very heavy on the
5950        /// stack unwinder, which might start dropping samples due to overload.
5951        #[prost(message, optional, tag="1")]
5952        pub scope: ::core::option::Option<Scope>,
5953        /// If true, callstacks will include the kernel-space frames. Such frames can
5954        /// be identified by a magical "kernel" string as their mapping name.
5955        /// Requires traced_perf to be running as root, or kptr_restrict to have been
5956        /// manually unrestricted. On Android, the platform should do the right thing
5957        /// on debug builds.
5958        /// This does *not* disclose KASLR, as only the function names are emitted.
5959        #[prost(bool, optional, tag="2")]
5960        pub kernel_frames: ::core::option::Option<bool>,
5961        /// Whether to record and unwind userspace callstacks. If unset, defaults to
5962        /// including userspace (UNWIND_DWARF) both for backwards compatibility and
5963        /// as the most common default (this defaulting is only applicable if the
5964        /// outer CallstackSampling message is explicitly set).
5965        #[prost(enumeration="UnwindMode", optional, tag="3")]
5966        pub user_frames: ::core::option::Option<i32>,
5967    }
5968    #[derive(Clone, PartialEq, ::prost::Message)]
5969    pub struct Scope {
5970        /// Process ID (TGID) allowlist. If this list is not empty, only matching
5971        /// samples will be retained. If multiple allow/deny-lists are
5972        /// specified by the config, then all of them are evaluated for each sampled
5973        /// process.
5974        #[prost(int32, repeated, packed="false", tag="1")]
5975        pub target_pid: ::prost::alloc::vec::Vec<i32>,
5976        /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
5977        /// comm string). The semantics of this field were changed since its original
5978        /// introduction.
5979        ///
5980        /// On Android T+ (13+), this field can specify a single wildcard (*), and
5981        /// the profiler will attempt to match it in two possible ways:
5982        /// * if the pattern starts with a '/', then it is matched against the first
5983        ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
5984        ///    "/bin/echo".
5985        /// * otherwise the pattern is matched against the part of argv0
5986        ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
5987        ///    For example "echo" would match "/bin/echo".
5988        ///
5989        /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
5990        /// normalized prior to an exact string comparison. Normalization is as
5991        /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
5992        /// the string contains forward slashes, trim everything up to and including
5993        /// the last one.
5994        ///
5995        /// Implementation note: in either case, at most 511 characters of cmdline
5996        /// are considered.
5997        #[prost(string, repeated, tag="2")]
5998        pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5999        /// List of excluded pids.
6000        #[prost(int32, repeated, packed="false", tag="3")]
6001        pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
6002        /// List of excluded cmdlines. See description of |target_cmdline| for how
6003        /// this is handled.
6004        #[prost(string, repeated, tag="4")]
6005        pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6006        // Niche features for systemwide callstacks:
6007
6008        /// Number of additional command lines to sample. Only those which are
6009        /// neither explicitly included nor excluded will be considered. Processes
6010        /// are accepted on a first come, first served basis.
6011        #[prost(uint32, optional, tag="5")]
6012        pub additional_cmdline_count: ::core::option::Option<u32>,
6013        /// If set to N, all encountered processes will be put into one of the N
6014        /// possible bins, and only one randomly-chosen bin will be selected for
6015        /// unwinding. The binning is simply "pid % N", under the assumption that
6016        /// low-order bits of pids are roughly uniformly distributed. Other explicit
6017        /// inclusions/exclusions in this |Scope| message are still respected.
6018        ///
6019        /// The profiler will report the chosen shard in PerfSampleDefaults, and the
6020        /// values will be queryable in trace processor under the "stats" table as
6021        /// "perf_process_shard_count" and "perf_chosen_process_shard".
6022        ///
6023        /// NB: all data sources in a config that set |process_shard_count| must set
6024        /// it to the same value. The profiler will choose one bin for all those data
6025        /// sources.
6026        #[prost(uint32, optional, tag="6")]
6027        pub process_shard_count: ::core::option::Option<u32>,
6028    }
6029    /// Userspace unwinding mode. A possible future addition is kernel-unwound
6030    /// callchains for frame pointer based systems.
6031    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6032    #[repr(i32)]
6033    pub enum UnwindMode {
6034        UnwindUnknown = 0,
6035        /// Do not unwind userspace:
6036        UnwindSkip = 1,
6037        /// Use libunwindstack (default):
6038        UnwindDwarf = 2,
6039        /// Use userspace frame pointer unwinder:
6040        UnwindFramePointer = 3,
6041    }
6042    impl UnwindMode {
6043        /// String value of the enum field names used in the ProtoBuf definition.
6044        ///
6045        /// The values are not transformed in any way and thus are considered stable
6046        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6047        pub fn as_str_name(&self) -> &'static str {
6048            match self {
6049                UnwindMode::UnwindUnknown => "UNWIND_UNKNOWN",
6050                UnwindMode::UnwindSkip => "UNWIND_SKIP",
6051                UnwindMode::UnwindDwarf => "UNWIND_DWARF",
6052                UnwindMode::UnwindFramePointer => "UNWIND_FRAME_POINTER",
6053            }
6054        }
6055    }
6056}
6057// When editing entries here remember also to update "sys_stats_counters.h" with
6058// the corresponding string definitions for the actual /proc files parser.
6059
6060/// Counter definitions for Linux's /proc/meminfo.
6061#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6062#[repr(i32)]
6063pub enum MeminfoCounters {
6064    MeminfoUnspecified = 0,
6065    MeminfoMemTotal = 1,
6066    MeminfoMemFree = 2,
6067    MeminfoMemAvailable = 3,
6068    MeminfoBuffers = 4,
6069    MeminfoCached = 5,
6070    MeminfoSwapCached = 6,
6071    MeminfoActive = 7,
6072    MeminfoInactive = 8,
6073    MeminfoActiveAnon = 9,
6074    MeminfoInactiveAnon = 10,
6075    MeminfoActiveFile = 11,
6076    MeminfoInactiveFile = 12,
6077    MeminfoUnevictable = 13,
6078    MeminfoMlocked = 14,
6079    MeminfoSwapTotal = 15,
6080    MeminfoSwapFree = 16,
6081    MeminfoDirty = 17,
6082    MeminfoWriteback = 18,
6083    MeminfoAnonPages = 19,
6084    MeminfoMapped = 20,
6085    MeminfoShmem = 21,
6086    MeminfoSlab = 22,
6087    MeminfoSlabReclaimable = 23,
6088    MeminfoSlabUnreclaimable = 24,
6089    MeminfoKernelStack = 25,
6090    MeminfoPageTables = 26,
6091    MeminfoCommitLimit = 27,
6092    MeminfoCommitedAs = 28,
6093    MeminfoVmallocTotal = 29,
6094    MeminfoVmallocUsed = 30,
6095    MeminfoVmallocChunk = 31,
6096    MeminfoCmaTotal = 32,
6097    MeminfoCmaFree = 33,
6098    MeminfoGpu = 34,
6099    MeminfoZram = 35,
6100    MeminfoMisc = 36,
6101    MeminfoIonHeap = 37,
6102    MeminfoIonHeapPool = 38,
6103}
6104impl MeminfoCounters {
6105    /// String value of the enum field names used in the ProtoBuf definition.
6106    ///
6107    /// The values are not transformed in any way and thus are considered stable
6108    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6109    pub fn as_str_name(&self) -> &'static str {
6110        match self {
6111            MeminfoCounters::MeminfoUnspecified => "MEMINFO_UNSPECIFIED",
6112            MeminfoCounters::MeminfoMemTotal => "MEMINFO_MEM_TOTAL",
6113            MeminfoCounters::MeminfoMemFree => "MEMINFO_MEM_FREE",
6114            MeminfoCounters::MeminfoMemAvailable => "MEMINFO_MEM_AVAILABLE",
6115            MeminfoCounters::MeminfoBuffers => "MEMINFO_BUFFERS",
6116            MeminfoCounters::MeminfoCached => "MEMINFO_CACHED",
6117            MeminfoCounters::MeminfoSwapCached => "MEMINFO_SWAP_CACHED",
6118            MeminfoCounters::MeminfoActive => "MEMINFO_ACTIVE",
6119            MeminfoCounters::MeminfoInactive => "MEMINFO_INACTIVE",
6120            MeminfoCounters::MeminfoActiveAnon => "MEMINFO_ACTIVE_ANON",
6121            MeminfoCounters::MeminfoInactiveAnon => "MEMINFO_INACTIVE_ANON",
6122            MeminfoCounters::MeminfoActiveFile => "MEMINFO_ACTIVE_FILE",
6123            MeminfoCounters::MeminfoInactiveFile => "MEMINFO_INACTIVE_FILE",
6124            MeminfoCounters::MeminfoUnevictable => "MEMINFO_UNEVICTABLE",
6125            MeminfoCounters::MeminfoMlocked => "MEMINFO_MLOCKED",
6126            MeminfoCounters::MeminfoSwapTotal => "MEMINFO_SWAP_TOTAL",
6127            MeminfoCounters::MeminfoSwapFree => "MEMINFO_SWAP_FREE",
6128            MeminfoCounters::MeminfoDirty => "MEMINFO_DIRTY",
6129            MeminfoCounters::MeminfoWriteback => "MEMINFO_WRITEBACK",
6130            MeminfoCounters::MeminfoAnonPages => "MEMINFO_ANON_PAGES",
6131            MeminfoCounters::MeminfoMapped => "MEMINFO_MAPPED",
6132            MeminfoCounters::MeminfoShmem => "MEMINFO_SHMEM",
6133            MeminfoCounters::MeminfoSlab => "MEMINFO_SLAB",
6134            MeminfoCounters::MeminfoSlabReclaimable => "MEMINFO_SLAB_RECLAIMABLE",
6135            MeminfoCounters::MeminfoSlabUnreclaimable => "MEMINFO_SLAB_UNRECLAIMABLE",
6136            MeminfoCounters::MeminfoKernelStack => "MEMINFO_KERNEL_STACK",
6137            MeminfoCounters::MeminfoPageTables => "MEMINFO_PAGE_TABLES",
6138            MeminfoCounters::MeminfoCommitLimit => "MEMINFO_COMMIT_LIMIT",
6139            MeminfoCounters::MeminfoCommitedAs => "MEMINFO_COMMITED_AS",
6140            MeminfoCounters::MeminfoVmallocTotal => "MEMINFO_VMALLOC_TOTAL",
6141            MeminfoCounters::MeminfoVmallocUsed => "MEMINFO_VMALLOC_USED",
6142            MeminfoCounters::MeminfoVmallocChunk => "MEMINFO_VMALLOC_CHUNK",
6143            MeminfoCounters::MeminfoCmaTotal => "MEMINFO_CMA_TOTAL",
6144            MeminfoCounters::MeminfoCmaFree => "MEMINFO_CMA_FREE",
6145            MeminfoCounters::MeminfoGpu => "MEMINFO_GPU",
6146            MeminfoCounters::MeminfoZram => "MEMINFO_ZRAM",
6147            MeminfoCounters::MeminfoMisc => "MEMINFO_MISC",
6148            MeminfoCounters::MeminfoIonHeap => "MEMINFO_ION_HEAP",
6149            MeminfoCounters::MeminfoIonHeapPool => "MEMINFO_ION_HEAP_POOL",
6150        }
6151    }
6152}
6153/// Counter definitions for Linux's /proc/vmstat.
6154#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6155#[repr(i32)]
6156pub enum VmstatCounters {
6157    VmstatUnspecified = 0,
6158    VmstatNrFreePages = 1,
6159    VmstatNrAllocBatch = 2,
6160    VmstatNrInactiveAnon = 3,
6161    VmstatNrActiveAnon = 4,
6162    VmstatNrInactiveFile = 5,
6163    VmstatNrActiveFile = 6,
6164    VmstatNrUnevictable = 7,
6165    VmstatNrMlock = 8,
6166    VmstatNrAnonPages = 9,
6167    VmstatNrMapped = 10,
6168    VmstatNrFilePages = 11,
6169    VmstatNrDirty = 12,
6170    VmstatNrWriteback = 13,
6171    VmstatNrSlabReclaimable = 14,
6172    VmstatNrSlabUnreclaimable = 15,
6173    VmstatNrPageTablePages = 16,
6174    VmstatNrKernelStack = 17,
6175    VmstatNrOverhead = 18,
6176    VmstatNrUnstable = 19,
6177    VmstatNrBounce = 20,
6178    VmstatNrVmscanWrite = 21,
6179    VmstatNrVmscanImmediateReclaim = 22,
6180    VmstatNrWritebackTemp = 23,
6181    VmstatNrIsolatedAnon = 24,
6182    VmstatNrIsolatedFile = 25,
6183    VmstatNrShmem = 26,
6184    VmstatNrDirtied = 27,
6185    VmstatNrWritten = 28,
6186    VmstatNrPagesScanned = 29,
6187    VmstatWorkingsetRefault = 30,
6188    VmstatWorkingsetActivate = 31,
6189    VmstatWorkingsetNodereclaim = 32,
6190    VmstatNrAnonTransparentHugepages = 33,
6191    VmstatNrFreeCma = 34,
6192    VmstatNrSwapcache = 35,
6193    VmstatNrDirtyThreshold = 36,
6194    VmstatNrDirtyBackgroundThreshold = 37,
6195    VmstatPgpgin = 38,
6196    VmstatPgpgout = 39,
6197    VmstatPgpgoutclean = 40,
6198    VmstatPswpin = 41,
6199    VmstatPswpout = 42,
6200    VmstatPgallocDma = 43,
6201    VmstatPgallocNormal = 44,
6202    VmstatPgallocMovable = 45,
6203    VmstatPgfree = 46,
6204    VmstatPgactivate = 47,
6205    VmstatPgdeactivate = 48,
6206    VmstatPgfault = 49,
6207    VmstatPgmajfault = 50,
6208    VmstatPgrefillDma = 51,
6209    VmstatPgrefillNormal = 52,
6210    VmstatPgrefillMovable = 53,
6211    VmstatPgstealKswapdDma = 54,
6212    VmstatPgstealKswapdNormal = 55,
6213    VmstatPgstealKswapdMovable = 56,
6214    VmstatPgstealDirectDma = 57,
6215    VmstatPgstealDirectNormal = 58,
6216    VmstatPgstealDirectMovable = 59,
6217    VmstatPgscanKswapdDma = 60,
6218    VmstatPgscanKswapdNormal = 61,
6219    VmstatPgscanKswapdMovable = 62,
6220    VmstatPgscanDirectDma = 63,
6221    VmstatPgscanDirectNormal = 64,
6222    VmstatPgscanDirectMovable = 65,
6223    VmstatPgscanDirectThrottle = 66,
6224    VmstatPginodesteal = 67,
6225    VmstatSlabsScanned = 68,
6226    VmstatKswapdInodesteal = 69,
6227    VmstatKswapdLowWmarkHitQuickly = 70,
6228    VmstatKswapdHighWmarkHitQuickly = 71,
6229    VmstatPageoutrun = 72,
6230    VmstatAllocstall = 73,
6231    VmstatPgrotated = 74,
6232    VmstatDropPagecache = 75,
6233    VmstatDropSlab = 76,
6234    VmstatPgmigrateSuccess = 77,
6235    VmstatPgmigrateFail = 78,
6236    VmstatCompactMigrateScanned = 79,
6237    VmstatCompactFreeScanned = 80,
6238    VmstatCompactIsolated = 81,
6239    VmstatCompactStall = 82,
6240    VmstatCompactFail = 83,
6241    VmstatCompactSuccess = 84,
6242    VmstatCompactDaemonWake = 85,
6243    VmstatUnevictablePgsCulled = 86,
6244    VmstatUnevictablePgsScanned = 87,
6245    VmstatUnevictablePgsRescued = 88,
6246    VmstatUnevictablePgsMlocked = 89,
6247    VmstatUnevictablePgsMunlocked = 90,
6248    VmstatUnevictablePgsCleared = 91,
6249    VmstatUnevictablePgsStranded = 92,
6250    VmstatNrZspages = 93,
6251    VmstatNrIonHeap = 94,
6252    VmstatNrGpuHeap = 95,
6253    VmstatAllocstallDma = 96,
6254    VmstatAllocstallMovable = 97,
6255    VmstatAllocstallNormal = 98,
6256    VmstatCompactDaemonFreeScanned = 99,
6257    VmstatCompactDaemonMigrateScanned = 100,
6258    VmstatNrFastrpc = 101,
6259    VmstatNrIndirectlyReclaimable = 102,
6260    VmstatNrIonHeapPool = 103,
6261    VmstatNrKernelMiscReclaimable = 104,
6262    VmstatNrShadowCallStackBytes = 105,
6263    VmstatNrShmemHugepages = 106,
6264    VmstatNrShmemPmdmapped = 107,
6265    VmstatNrUnreclaimablePages = 108,
6266    VmstatNrZoneActiveAnon = 109,
6267    VmstatNrZoneActiveFile = 110,
6268    VmstatNrZoneInactiveAnon = 111,
6269    VmstatNrZoneInactiveFile = 112,
6270    VmstatNrZoneUnevictable = 113,
6271    VmstatNrZoneWritePending = 114,
6272    VmstatOomKill = 115,
6273    VmstatPglazyfree = 116,
6274    VmstatPglazyfreed = 117,
6275    VmstatPgrefill = 118,
6276    VmstatPgscanDirect = 119,
6277    VmstatPgscanKswapd = 120,
6278    VmstatPgskipDma = 121,
6279    VmstatPgskipMovable = 122,
6280    VmstatPgskipNormal = 123,
6281    VmstatPgstealDirect = 124,
6282    VmstatPgstealKswapd = 125,
6283    VmstatSwapRa = 126,
6284    VmstatSwapRaHit = 127,
6285    VmstatWorkingsetRestore = 128,
6286    VmstatAllocstallDevice = 129,
6287    VmstatAllocstallDma32 = 130,
6288    VmstatBalloonDeflate = 131,
6289    VmstatBalloonInflate = 132,
6290    VmstatBalloonMigrate = 133,
6291    VmstatCmaAllocFail = 134,
6292    VmstatCmaAllocSuccess = 135,
6293    VmstatNrFileHugepages = 136,
6294    VmstatNrFilePmdmapped = 137,
6295    VmstatNrFollPinAcquired = 138,
6296    VmstatNrFollPinReleased = 139,
6297    VmstatNrSecPageTablePages = 140,
6298    VmstatNrShadowCallStack = 141,
6299    VmstatNrSwapcached = 142,
6300    VmstatNrThrottledWritten = 143,
6301    VmstatPgallocDevice = 144,
6302    VmstatPgallocDma32 = 145,
6303    VmstatPgdemoteDirect = 146,
6304    VmstatPgdemoteKswapd = 147,
6305    VmstatPgreuse = 148,
6306    VmstatPgscanAnon = 149,
6307    VmstatPgscanFile = 150,
6308    VmstatPgskipDevice = 151,
6309    VmstatPgskipDma32 = 152,
6310    VmstatPgstealAnon = 153,
6311    VmstatPgstealFile = 154,
6312    VmstatThpCollapseAlloc = 155,
6313    VmstatThpCollapseAllocFailed = 156,
6314    VmstatThpDeferredSplitPage = 157,
6315    VmstatThpFaultAlloc = 158,
6316    VmstatThpFaultFallback = 159,
6317    VmstatThpFaultFallbackCharge = 160,
6318    VmstatThpFileAlloc = 161,
6319    VmstatThpFileFallback = 162,
6320    VmstatThpFileFallbackCharge = 163,
6321    VmstatThpFileMapped = 164,
6322    VmstatThpMigrationFail = 165,
6323    VmstatThpMigrationSplit = 166,
6324    VmstatThpMigrationSuccess = 167,
6325    VmstatThpScanExceedNonePte = 168,
6326    VmstatThpScanExceedSharePte = 169,
6327    VmstatThpScanExceedSwapPte = 170,
6328    VmstatThpSplitPage = 171,
6329    VmstatThpSplitPageFailed = 172,
6330    VmstatThpSplitPmd = 173,
6331    VmstatThpSwpout = 174,
6332    VmstatThpSwpoutFallback = 175,
6333    VmstatThpZeroPageAlloc = 176,
6334    VmstatThpZeroPageAllocFailed = 177,
6335    VmstatVmaLockAbort = 178,
6336    VmstatVmaLockMiss = 179,
6337    VmstatVmaLockRetry = 180,
6338    VmstatVmaLockSuccess = 181,
6339    VmstatWorkingsetActivateAnon = 182,
6340    VmstatWorkingsetActivateFile = 183,
6341    VmstatWorkingsetNodes = 184,
6342    VmstatWorkingsetRefaultAnon = 185,
6343    VmstatWorkingsetRefaultFile = 186,
6344    VmstatWorkingsetRestoreAnon = 187,
6345    VmstatWorkingsetRestoreFile = 188,
6346}
6347impl VmstatCounters {
6348    /// String value of the enum field names used in the ProtoBuf definition.
6349    ///
6350    /// The values are not transformed in any way and thus are considered stable
6351    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6352    pub fn as_str_name(&self) -> &'static str {
6353        match self {
6354            VmstatCounters::VmstatUnspecified => "VMSTAT_UNSPECIFIED",
6355            VmstatCounters::VmstatNrFreePages => "VMSTAT_NR_FREE_PAGES",
6356            VmstatCounters::VmstatNrAllocBatch => "VMSTAT_NR_ALLOC_BATCH",
6357            VmstatCounters::VmstatNrInactiveAnon => "VMSTAT_NR_INACTIVE_ANON",
6358            VmstatCounters::VmstatNrActiveAnon => "VMSTAT_NR_ACTIVE_ANON",
6359            VmstatCounters::VmstatNrInactiveFile => "VMSTAT_NR_INACTIVE_FILE",
6360            VmstatCounters::VmstatNrActiveFile => "VMSTAT_NR_ACTIVE_FILE",
6361            VmstatCounters::VmstatNrUnevictable => "VMSTAT_NR_UNEVICTABLE",
6362            VmstatCounters::VmstatNrMlock => "VMSTAT_NR_MLOCK",
6363            VmstatCounters::VmstatNrAnonPages => "VMSTAT_NR_ANON_PAGES",
6364            VmstatCounters::VmstatNrMapped => "VMSTAT_NR_MAPPED",
6365            VmstatCounters::VmstatNrFilePages => "VMSTAT_NR_FILE_PAGES",
6366            VmstatCounters::VmstatNrDirty => "VMSTAT_NR_DIRTY",
6367            VmstatCounters::VmstatNrWriteback => "VMSTAT_NR_WRITEBACK",
6368            VmstatCounters::VmstatNrSlabReclaimable => "VMSTAT_NR_SLAB_RECLAIMABLE",
6369            VmstatCounters::VmstatNrSlabUnreclaimable => "VMSTAT_NR_SLAB_UNRECLAIMABLE",
6370            VmstatCounters::VmstatNrPageTablePages => "VMSTAT_NR_PAGE_TABLE_PAGES",
6371            VmstatCounters::VmstatNrKernelStack => "VMSTAT_NR_KERNEL_STACK",
6372            VmstatCounters::VmstatNrOverhead => "VMSTAT_NR_OVERHEAD",
6373            VmstatCounters::VmstatNrUnstable => "VMSTAT_NR_UNSTABLE",
6374            VmstatCounters::VmstatNrBounce => "VMSTAT_NR_BOUNCE",
6375            VmstatCounters::VmstatNrVmscanWrite => "VMSTAT_NR_VMSCAN_WRITE",
6376            VmstatCounters::VmstatNrVmscanImmediateReclaim => "VMSTAT_NR_VMSCAN_IMMEDIATE_RECLAIM",
6377            VmstatCounters::VmstatNrWritebackTemp => "VMSTAT_NR_WRITEBACK_TEMP",
6378            VmstatCounters::VmstatNrIsolatedAnon => "VMSTAT_NR_ISOLATED_ANON",
6379            VmstatCounters::VmstatNrIsolatedFile => "VMSTAT_NR_ISOLATED_FILE",
6380            VmstatCounters::VmstatNrShmem => "VMSTAT_NR_SHMEM",
6381            VmstatCounters::VmstatNrDirtied => "VMSTAT_NR_DIRTIED",
6382            VmstatCounters::VmstatNrWritten => "VMSTAT_NR_WRITTEN",
6383            VmstatCounters::VmstatNrPagesScanned => "VMSTAT_NR_PAGES_SCANNED",
6384            VmstatCounters::VmstatWorkingsetRefault => "VMSTAT_WORKINGSET_REFAULT",
6385            VmstatCounters::VmstatWorkingsetActivate => "VMSTAT_WORKINGSET_ACTIVATE",
6386            VmstatCounters::VmstatWorkingsetNodereclaim => "VMSTAT_WORKINGSET_NODERECLAIM",
6387            VmstatCounters::VmstatNrAnonTransparentHugepages => "VMSTAT_NR_ANON_TRANSPARENT_HUGEPAGES",
6388            VmstatCounters::VmstatNrFreeCma => "VMSTAT_NR_FREE_CMA",
6389            VmstatCounters::VmstatNrSwapcache => "VMSTAT_NR_SWAPCACHE",
6390            VmstatCounters::VmstatNrDirtyThreshold => "VMSTAT_NR_DIRTY_THRESHOLD",
6391            VmstatCounters::VmstatNrDirtyBackgroundThreshold => "VMSTAT_NR_DIRTY_BACKGROUND_THRESHOLD",
6392            VmstatCounters::VmstatPgpgin => "VMSTAT_PGPGIN",
6393            VmstatCounters::VmstatPgpgout => "VMSTAT_PGPGOUT",
6394            VmstatCounters::VmstatPgpgoutclean => "VMSTAT_PGPGOUTCLEAN",
6395            VmstatCounters::VmstatPswpin => "VMSTAT_PSWPIN",
6396            VmstatCounters::VmstatPswpout => "VMSTAT_PSWPOUT",
6397            VmstatCounters::VmstatPgallocDma => "VMSTAT_PGALLOC_DMA",
6398            VmstatCounters::VmstatPgallocNormal => "VMSTAT_PGALLOC_NORMAL",
6399            VmstatCounters::VmstatPgallocMovable => "VMSTAT_PGALLOC_MOVABLE",
6400            VmstatCounters::VmstatPgfree => "VMSTAT_PGFREE",
6401            VmstatCounters::VmstatPgactivate => "VMSTAT_PGACTIVATE",
6402            VmstatCounters::VmstatPgdeactivate => "VMSTAT_PGDEACTIVATE",
6403            VmstatCounters::VmstatPgfault => "VMSTAT_PGFAULT",
6404            VmstatCounters::VmstatPgmajfault => "VMSTAT_PGMAJFAULT",
6405            VmstatCounters::VmstatPgrefillDma => "VMSTAT_PGREFILL_DMA",
6406            VmstatCounters::VmstatPgrefillNormal => "VMSTAT_PGREFILL_NORMAL",
6407            VmstatCounters::VmstatPgrefillMovable => "VMSTAT_PGREFILL_MOVABLE",
6408            VmstatCounters::VmstatPgstealKswapdDma => "VMSTAT_PGSTEAL_KSWAPD_DMA",
6409            VmstatCounters::VmstatPgstealKswapdNormal => "VMSTAT_PGSTEAL_KSWAPD_NORMAL",
6410            VmstatCounters::VmstatPgstealKswapdMovable => "VMSTAT_PGSTEAL_KSWAPD_MOVABLE",
6411            VmstatCounters::VmstatPgstealDirectDma => "VMSTAT_PGSTEAL_DIRECT_DMA",
6412            VmstatCounters::VmstatPgstealDirectNormal => "VMSTAT_PGSTEAL_DIRECT_NORMAL",
6413            VmstatCounters::VmstatPgstealDirectMovable => "VMSTAT_PGSTEAL_DIRECT_MOVABLE",
6414            VmstatCounters::VmstatPgscanKswapdDma => "VMSTAT_PGSCAN_KSWAPD_DMA",
6415            VmstatCounters::VmstatPgscanKswapdNormal => "VMSTAT_PGSCAN_KSWAPD_NORMAL",
6416            VmstatCounters::VmstatPgscanKswapdMovable => "VMSTAT_PGSCAN_KSWAPD_MOVABLE",
6417            VmstatCounters::VmstatPgscanDirectDma => "VMSTAT_PGSCAN_DIRECT_DMA",
6418            VmstatCounters::VmstatPgscanDirectNormal => "VMSTAT_PGSCAN_DIRECT_NORMAL",
6419            VmstatCounters::VmstatPgscanDirectMovable => "VMSTAT_PGSCAN_DIRECT_MOVABLE",
6420            VmstatCounters::VmstatPgscanDirectThrottle => "VMSTAT_PGSCAN_DIRECT_THROTTLE",
6421            VmstatCounters::VmstatPginodesteal => "VMSTAT_PGINODESTEAL",
6422            VmstatCounters::VmstatSlabsScanned => "VMSTAT_SLABS_SCANNED",
6423            VmstatCounters::VmstatKswapdInodesteal => "VMSTAT_KSWAPD_INODESTEAL",
6424            VmstatCounters::VmstatKswapdLowWmarkHitQuickly => "VMSTAT_KSWAPD_LOW_WMARK_HIT_QUICKLY",
6425            VmstatCounters::VmstatKswapdHighWmarkHitQuickly => "VMSTAT_KSWAPD_HIGH_WMARK_HIT_QUICKLY",
6426            VmstatCounters::VmstatPageoutrun => "VMSTAT_PAGEOUTRUN",
6427            VmstatCounters::VmstatAllocstall => "VMSTAT_ALLOCSTALL",
6428            VmstatCounters::VmstatPgrotated => "VMSTAT_PGROTATED",
6429            VmstatCounters::VmstatDropPagecache => "VMSTAT_DROP_PAGECACHE",
6430            VmstatCounters::VmstatDropSlab => "VMSTAT_DROP_SLAB",
6431            VmstatCounters::VmstatPgmigrateSuccess => "VMSTAT_PGMIGRATE_SUCCESS",
6432            VmstatCounters::VmstatPgmigrateFail => "VMSTAT_PGMIGRATE_FAIL",
6433            VmstatCounters::VmstatCompactMigrateScanned => "VMSTAT_COMPACT_MIGRATE_SCANNED",
6434            VmstatCounters::VmstatCompactFreeScanned => "VMSTAT_COMPACT_FREE_SCANNED",
6435            VmstatCounters::VmstatCompactIsolated => "VMSTAT_COMPACT_ISOLATED",
6436            VmstatCounters::VmstatCompactStall => "VMSTAT_COMPACT_STALL",
6437            VmstatCounters::VmstatCompactFail => "VMSTAT_COMPACT_FAIL",
6438            VmstatCounters::VmstatCompactSuccess => "VMSTAT_COMPACT_SUCCESS",
6439            VmstatCounters::VmstatCompactDaemonWake => "VMSTAT_COMPACT_DAEMON_WAKE",
6440            VmstatCounters::VmstatUnevictablePgsCulled => "VMSTAT_UNEVICTABLE_PGS_CULLED",
6441            VmstatCounters::VmstatUnevictablePgsScanned => "VMSTAT_UNEVICTABLE_PGS_SCANNED",
6442            VmstatCounters::VmstatUnevictablePgsRescued => "VMSTAT_UNEVICTABLE_PGS_RESCUED",
6443            VmstatCounters::VmstatUnevictablePgsMlocked => "VMSTAT_UNEVICTABLE_PGS_MLOCKED",
6444            VmstatCounters::VmstatUnevictablePgsMunlocked => "VMSTAT_UNEVICTABLE_PGS_MUNLOCKED",
6445            VmstatCounters::VmstatUnevictablePgsCleared => "VMSTAT_UNEVICTABLE_PGS_CLEARED",
6446            VmstatCounters::VmstatUnevictablePgsStranded => "VMSTAT_UNEVICTABLE_PGS_STRANDED",
6447            VmstatCounters::VmstatNrZspages => "VMSTAT_NR_ZSPAGES",
6448            VmstatCounters::VmstatNrIonHeap => "VMSTAT_NR_ION_HEAP",
6449            VmstatCounters::VmstatNrGpuHeap => "VMSTAT_NR_GPU_HEAP",
6450            VmstatCounters::VmstatAllocstallDma => "VMSTAT_ALLOCSTALL_DMA",
6451            VmstatCounters::VmstatAllocstallMovable => "VMSTAT_ALLOCSTALL_MOVABLE",
6452            VmstatCounters::VmstatAllocstallNormal => "VMSTAT_ALLOCSTALL_NORMAL",
6453            VmstatCounters::VmstatCompactDaemonFreeScanned => "VMSTAT_COMPACT_DAEMON_FREE_SCANNED",
6454            VmstatCounters::VmstatCompactDaemonMigrateScanned => "VMSTAT_COMPACT_DAEMON_MIGRATE_SCANNED",
6455            VmstatCounters::VmstatNrFastrpc => "VMSTAT_NR_FASTRPC",
6456            VmstatCounters::VmstatNrIndirectlyReclaimable => "VMSTAT_NR_INDIRECTLY_RECLAIMABLE",
6457            VmstatCounters::VmstatNrIonHeapPool => "VMSTAT_NR_ION_HEAP_POOL",
6458            VmstatCounters::VmstatNrKernelMiscReclaimable => "VMSTAT_NR_KERNEL_MISC_RECLAIMABLE",
6459            VmstatCounters::VmstatNrShadowCallStackBytes => "VMSTAT_NR_SHADOW_CALL_STACK_BYTES",
6460            VmstatCounters::VmstatNrShmemHugepages => "VMSTAT_NR_SHMEM_HUGEPAGES",
6461            VmstatCounters::VmstatNrShmemPmdmapped => "VMSTAT_NR_SHMEM_PMDMAPPED",
6462            VmstatCounters::VmstatNrUnreclaimablePages => "VMSTAT_NR_UNRECLAIMABLE_PAGES",
6463            VmstatCounters::VmstatNrZoneActiveAnon => "VMSTAT_NR_ZONE_ACTIVE_ANON",
6464            VmstatCounters::VmstatNrZoneActiveFile => "VMSTAT_NR_ZONE_ACTIVE_FILE",
6465            VmstatCounters::VmstatNrZoneInactiveAnon => "VMSTAT_NR_ZONE_INACTIVE_ANON",
6466            VmstatCounters::VmstatNrZoneInactiveFile => "VMSTAT_NR_ZONE_INACTIVE_FILE",
6467            VmstatCounters::VmstatNrZoneUnevictable => "VMSTAT_NR_ZONE_UNEVICTABLE",
6468            VmstatCounters::VmstatNrZoneWritePending => "VMSTAT_NR_ZONE_WRITE_PENDING",
6469            VmstatCounters::VmstatOomKill => "VMSTAT_OOM_KILL",
6470            VmstatCounters::VmstatPglazyfree => "VMSTAT_PGLAZYFREE",
6471            VmstatCounters::VmstatPglazyfreed => "VMSTAT_PGLAZYFREED",
6472            VmstatCounters::VmstatPgrefill => "VMSTAT_PGREFILL",
6473            VmstatCounters::VmstatPgscanDirect => "VMSTAT_PGSCAN_DIRECT",
6474            VmstatCounters::VmstatPgscanKswapd => "VMSTAT_PGSCAN_KSWAPD",
6475            VmstatCounters::VmstatPgskipDma => "VMSTAT_PGSKIP_DMA",
6476            VmstatCounters::VmstatPgskipMovable => "VMSTAT_PGSKIP_MOVABLE",
6477            VmstatCounters::VmstatPgskipNormal => "VMSTAT_PGSKIP_NORMAL",
6478            VmstatCounters::VmstatPgstealDirect => "VMSTAT_PGSTEAL_DIRECT",
6479            VmstatCounters::VmstatPgstealKswapd => "VMSTAT_PGSTEAL_KSWAPD",
6480            VmstatCounters::VmstatSwapRa => "VMSTAT_SWAP_RA",
6481            VmstatCounters::VmstatSwapRaHit => "VMSTAT_SWAP_RA_HIT",
6482            VmstatCounters::VmstatWorkingsetRestore => "VMSTAT_WORKINGSET_RESTORE",
6483            VmstatCounters::VmstatAllocstallDevice => "VMSTAT_ALLOCSTALL_DEVICE",
6484            VmstatCounters::VmstatAllocstallDma32 => "VMSTAT_ALLOCSTALL_DMA32",
6485            VmstatCounters::VmstatBalloonDeflate => "VMSTAT_BALLOON_DEFLATE",
6486            VmstatCounters::VmstatBalloonInflate => "VMSTAT_BALLOON_INFLATE",
6487            VmstatCounters::VmstatBalloonMigrate => "VMSTAT_BALLOON_MIGRATE",
6488            VmstatCounters::VmstatCmaAllocFail => "VMSTAT_CMA_ALLOC_FAIL",
6489            VmstatCounters::VmstatCmaAllocSuccess => "VMSTAT_CMA_ALLOC_SUCCESS",
6490            VmstatCounters::VmstatNrFileHugepages => "VMSTAT_NR_FILE_HUGEPAGES",
6491            VmstatCounters::VmstatNrFilePmdmapped => "VMSTAT_NR_FILE_PMDMAPPED",
6492            VmstatCounters::VmstatNrFollPinAcquired => "VMSTAT_NR_FOLL_PIN_ACQUIRED",
6493            VmstatCounters::VmstatNrFollPinReleased => "VMSTAT_NR_FOLL_PIN_RELEASED",
6494            VmstatCounters::VmstatNrSecPageTablePages => "VMSTAT_NR_SEC_PAGE_TABLE_PAGES",
6495            VmstatCounters::VmstatNrShadowCallStack => "VMSTAT_NR_SHADOW_CALL_STACK",
6496            VmstatCounters::VmstatNrSwapcached => "VMSTAT_NR_SWAPCACHED",
6497            VmstatCounters::VmstatNrThrottledWritten => "VMSTAT_NR_THROTTLED_WRITTEN",
6498            VmstatCounters::VmstatPgallocDevice => "VMSTAT_PGALLOC_DEVICE",
6499            VmstatCounters::VmstatPgallocDma32 => "VMSTAT_PGALLOC_DMA32",
6500            VmstatCounters::VmstatPgdemoteDirect => "VMSTAT_PGDEMOTE_DIRECT",
6501            VmstatCounters::VmstatPgdemoteKswapd => "VMSTAT_PGDEMOTE_KSWAPD",
6502            VmstatCounters::VmstatPgreuse => "VMSTAT_PGREUSE",
6503            VmstatCounters::VmstatPgscanAnon => "VMSTAT_PGSCAN_ANON",
6504            VmstatCounters::VmstatPgscanFile => "VMSTAT_PGSCAN_FILE",
6505            VmstatCounters::VmstatPgskipDevice => "VMSTAT_PGSKIP_DEVICE",
6506            VmstatCounters::VmstatPgskipDma32 => "VMSTAT_PGSKIP_DMA32",
6507            VmstatCounters::VmstatPgstealAnon => "VMSTAT_PGSTEAL_ANON",
6508            VmstatCounters::VmstatPgstealFile => "VMSTAT_PGSTEAL_FILE",
6509            VmstatCounters::VmstatThpCollapseAlloc => "VMSTAT_THP_COLLAPSE_ALLOC",
6510            VmstatCounters::VmstatThpCollapseAllocFailed => "VMSTAT_THP_COLLAPSE_ALLOC_FAILED",
6511            VmstatCounters::VmstatThpDeferredSplitPage => "VMSTAT_THP_DEFERRED_SPLIT_PAGE",
6512            VmstatCounters::VmstatThpFaultAlloc => "VMSTAT_THP_FAULT_ALLOC",
6513            VmstatCounters::VmstatThpFaultFallback => "VMSTAT_THP_FAULT_FALLBACK",
6514            VmstatCounters::VmstatThpFaultFallbackCharge => "VMSTAT_THP_FAULT_FALLBACK_CHARGE",
6515            VmstatCounters::VmstatThpFileAlloc => "VMSTAT_THP_FILE_ALLOC",
6516            VmstatCounters::VmstatThpFileFallback => "VMSTAT_THP_FILE_FALLBACK",
6517            VmstatCounters::VmstatThpFileFallbackCharge => "VMSTAT_THP_FILE_FALLBACK_CHARGE",
6518            VmstatCounters::VmstatThpFileMapped => "VMSTAT_THP_FILE_MAPPED",
6519            VmstatCounters::VmstatThpMigrationFail => "VMSTAT_THP_MIGRATION_FAIL",
6520            VmstatCounters::VmstatThpMigrationSplit => "VMSTAT_THP_MIGRATION_SPLIT",
6521            VmstatCounters::VmstatThpMigrationSuccess => "VMSTAT_THP_MIGRATION_SUCCESS",
6522            VmstatCounters::VmstatThpScanExceedNonePte => "VMSTAT_THP_SCAN_EXCEED_NONE_PTE",
6523            VmstatCounters::VmstatThpScanExceedSharePte => "VMSTAT_THP_SCAN_EXCEED_SHARE_PTE",
6524            VmstatCounters::VmstatThpScanExceedSwapPte => "VMSTAT_THP_SCAN_EXCEED_SWAP_PTE",
6525            VmstatCounters::VmstatThpSplitPage => "VMSTAT_THP_SPLIT_PAGE",
6526            VmstatCounters::VmstatThpSplitPageFailed => "VMSTAT_THP_SPLIT_PAGE_FAILED",
6527            VmstatCounters::VmstatThpSplitPmd => "VMSTAT_THP_SPLIT_PMD",
6528            VmstatCounters::VmstatThpSwpout => "VMSTAT_THP_SWPOUT",
6529            VmstatCounters::VmstatThpSwpoutFallback => "VMSTAT_THP_SWPOUT_FALLBACK",
6530            VmstatCounters::VmstatThpZeroPageAlloc => "VMSTAT_THP_ZERO_PAGE_ALLOC",
6531            VmstatCounters::VmstatThpZeroPageAllocFailed => "VMSTAT_THP_ZERO_PAGE_ALLOC_FAILED",
6532            VmstatCounters::VmstatVmaLockAbort => "VMSTAT_VMA_LOCK_ABORT",
6533            VmstatCounters::VmstatVmaLockMiss => "VMSTAT_VMA_LOCK_MISS",
6534            VmstatCounters::VmstatVmaLockRetry => "VMSTAT_VMA_LOCK_RETRY",
6535            VmstatCounters::VmstatVmaLockSuccess => "VMSTAT_VMA_LOCK_SUCCESS",
6536            VmstatCounters::VmstatWorkingsetActivateAnon => "VMSTAT_WORKINGSET_ACTIVATE_ANON",
6537            VmstatCounters::VmstatWorkingsetActivateFile => "VMSTAT_WORKINGSET_ACTIVATE_FILE",
6538            VmstatCounters::VmstatWorkingsetNodes => "VMSTAT_WORKINGSET_NODES",
6539            VmstatCounters::VmstatWorkingsetRefaultAnon => "VMSTAT_WORKINGSET_REFAULT_ANON",
6540            VmstatCounters::VmstatWorkingsetRefaultFile => "VMSTAT_WORKINGSET_REFAULT_FILE",
6541            VmstatCounters::VmstatWorkingsetRestoreAnon => "VMSTAT_WORKINGSET_RESTORE_ANON",
6542            VmstatCounters::VmstatWorkingsetRestoreFile => "VMSTAT_WORKINGSET_RESTORE_FILE",
6543        }
6544    }
6545}
6546/// This file defines the configuration for the Linux /proc poller data source,
6547/// which injects counters in the trace.
6548/// Counters that are needed in the trace must be explicitly listed in the
6549/// *_counters fields. This is to avoid spamming the trace with all counters
6550/// at all times.
6551/// The sampling rate is configurable. All polling rates (*_period_ms) need
6552/// to be integer multiples of each other.
6553/// OK:     [10ms, 10ms, 10ms],  [10ms, 20ms, 10ms],  [10ms, 20ms, 60ms]
6554/// Not OK: [10ms, 10ms, 11ms],  [10ms, 15ms, 20ms]
6555#[derive(Clone, PartialEq, ::prost::Message)]
6556pub struct SysStatsConfig {
6557    /// Polls /proc/meminfo every X ms, if non-zero.
6558    /// This is required to be > 10ms to avoid excessive CPU usage.
6559    /// Cost: 0.3 ms \[read\] + 0.07 ms [parse + trace injection]
6560    #[prost(uint32, optional, tag="1")]
6561    pub meminfo_period_ms: ::core::option::Option<u32>,
6562    /// If empty all known counters are reported. Otherwise, only the counters
6563    /// specified below are reported.
6564    #[prost(enumeration="MeminfoCounters", repeated, packed="false", tag="2")]
6565    pub meminfo_counters: ::prost::alloc::vec::Vec<i32>,
6566    /// Polls /proc/vmstat every X ms, if non-zero.
6567    /// This is required to be > 10ms to avoid excessive CPU usage.
6568    /// Cost: 0.2 ms \[read\] + 0.3 ms [parse + trace injection]
6569    #[prost(uint32, optional, tag="3")]
6570    pub vmstat_period_ms: ::core::option::Option<u32>,
6571    #[prost(enumeration="VmstatCounters", repeated, packed="false", tag="4")]
6572    pub vmstat_counters: ::prost::alloc::vec::Vec<i32>,
6573    /// Pols /proc/stat every X ms, if non-zero.
6574    /// This is required to be > 10ms to avoid excessive CPU usage.
6575    /// Cost: 4.1 ms \[read\] + 1.9 ms [parse + trace injection]
6576    #[prost(uint32, optional, tag="5")]
6577    pub stat_period_ms: ::core::option::Option<u32>,
6578    #[prost(enumeration="sys_stats_config::StatCounters", repeated, packed="false", tag="6")]
6579    pub stat_counters: ::prost::alloc::vec::Vec<i32>,
6580    /// Polls /sys/devfreq/*/curfreq every X ms, if non-zero.
6581    /// This is required to be > 10ms to avoid excessive CPU usage.
6582    /// This option can be used to record unchanging values.
6583    /// Updates from frequency changes can come from ftrace/set_clock_rate.
6584    #[prost(uint32, optional, tag="7")]
6585    pub devfreq_period_ms: ::core::option::Option<u32>,
6586    /// Polls /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq every X ms.
6587    /// This is required to be > 10ms to avoid excessive CPU usage.
6588    #[prost(uint32, optional, tag="8")]
6589    pub cpufreq_period_ms: ::core::option::Option<u32>,
6590    /// Polls /proc/buddyinfo every X ms, if non-zero.
6591    /// This is required to be > 10ms to avoid excessive CPU usage.
6592    #[prost(uint32, optional, tag="9")]
6593    pub buddyinfo_period_ms: ::core::option::Option<u32>,
6594    /// Polls /proc/diskstats every X ms, if non-zero.
6595    /// This is required to be > 10ms to avoid excessive CPU usage.
6596    #[prost(uint32, optional, tag="10")]
6597    pub diskstat_period_ms: ::core::option::Option<u32>,
6598    /// Polls /proc/pressure/* every X ms, if non-zero.
6599    /// This is required to be > 10ms to avoid excessive CPU usage.
6600    #[prost(uint32, optional, tag="11")]
6601    pub psi_period_ms: ::core::option::Option<u32>,
6602    /// Polls /sys/class/thermal/* every X ms, if non-zero.
6603    /// This is required to be > 10ms to avoid excessive CPU usage.
6604    #[prost(uint32, optional, tag="12")]
6605    pub thermal_period_ms: ::core::option::Option<u32>,
6606    /// Polls /sys/devices/system/cpu/cpu*/cpuidle/state* every X ms, if non-zero.
6607    /// This is required to be > 10ms to avoid excessive CPU usage.
6608    #[prost(uint32, optional, tag="13")]
6609    pub cpuidle_period_ms: ::core::option::Option<u32>,
6610    /// Polls device-specific GPU frequency info every X ms, if non-zero.
6611    /// This is required to be > 10ms to avoid excessive CPU usage.
6612    #[prost(uint32, optional, tag="14")]
6613    pub gpufreq_period_ms: ::core::option::Option<u32>,
6614    /// Polls /proc/slabinfo every X ms, if non-zero.
6615    /// This is required to be > 10ms to avoid excessive CPU usage.
6616    #[prost(uint32, optional, tag="15")]
6617    pub slab_period_ms: ::core::option::Option<u32>,
6618}
6619/// Nested message and enum types in `SysStatsConfig`.
6620pub mod sys_stats_config {
6621    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6622    #[repr(i32)]
6623    pub enum StatCounters {
6624        StatUnspecified = 0,
6625        StatCpuTimes = 1,
6626        StatIrqCounts = 2,
6627        StatSoftirqCounts = 3,
6628        StatForkCount = 4,
6629    }
6630    impl StatCounters {
6631        /// String value of the enum field names used in the ProtoBuf definition.
6632        ///
6633        /// The values are not transformed in any way and thus are considered stable
6634        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6635        pub fn as_str_name(&self) -> &'static str {
6636            match self {
6637                StatCounters::StatUnspecified => "STAT_UNSPECIFIED",
6638                StatCounters::StatCpuTimes => "STAT_CPU_TIMES",
6639                StatCounters::StatIrqCounts => "STAT_IRQ_COUNTS",
6640                StatCounters::StatSoftirqCounts => "STAT_SOFTIRQ_COUNTS",
6641                StatCounters::StatForkCount => "STAT_FORK_COUNT",
6642            }
6643        }
6644    }
6645}
6646/// The configuration for a fake producer used in tests.
6647#[derive(Clone, PartialEq, ::prost::Message)]
6648pub struct TestConfig {
6649    /// The number of messages the fake producer should send.
6650    #[prost(uint32, optional, tag="1")]
6651    pub message_count: ::core::option::Option<u32>,
6652    /// The maximum number of messages which should be sent each second.
6653    /// The actual obserced speed may be lower if the producer is unable to
6654    /// work fast enough.
6655    /// If this is zero or unset, the producer will send as fast as possible.
6656    #[prost(uint32, optional, tag="2")]
6657    pub max_messages_per_second: ::core::option::Option<u32>,
6658    /// The seed value for a simple multiplicative congruential pseudo-random
6659    /// number sequence.
6660    #[prost(uint32, optional, tag="3")]
6661    pub seed: ::core::option::Option<u32>,
6662    /// The size of each message in bytes. Should be greater than or equal 5 to
6663    /// account for the number of bytes needed to encode the random number and a
6664    /// null byte for the string.
6665    #[prost(uint32, optional, tag="4")]
6666    pub message_size: ::core::option::Option<u32>,
6667    /// Whether the producer should send a event batch when the data source is
6668    /// is initially registered.
6669    #[prost(bool, optional, tag="5")]
6670    pub send_batch_on_register: ::core::option::Option<bool>,
6671    #[prost(message, optional, tag="6")]
6672    pub dummy_fields: ::core::option::Option<test_config::DummyFields>,
6673}
6674/// Nested message and enum types in `TestConfig`.
6675pub mod test_config {
6676    #[derive(Clone, PartialEq, ::prost::Message)]
6677    pub struct DummyFields {
6678        #[prost(uint32, optional, tag="1")]
6679        pub field_uint32: ::core::option::Option<u32>,
6680        #[prost(int32, optional, tag="2")]
6681        pub field_int32: ::core::option::Option<i32>,
6682        #[prost(uint64, optional, tag="3")]
6683        pub field_uint64: ::core::option::Option<u64>,
6684        #[prost(int64, optional, tag="4")]
6685        pub field_int64: ::core::option::Option<i64>,
6686        #[prost(fixed64, optional, tag="5")]
6687        pub field_fixed64: ::core::option::Option<u64>,
6688        #[prost(sfixed64, optional, tag="6")]
6689        pub field_sfixed64: ::core::option::Option<i64>,
6690        #[prost(fixed32, optional, tag="7")]
6691        pub field_fixed32: ::core::option::Option<u32>,
6692        #[prost(sfixed32, optional, tag="8")]
6693        pub field_sfixed32: ::core::option::Option<i32>,
6694        #[prost(double, optional, tag="9")]
6695        pub field_double: ::core::option::Option<f64>,
6696        #[prost(float, optional, tag="10")]
6697        pub field_float: ::core::option::Option<f32>,
6698        #[prost(sint64, optional, tag="11")]
6699        pub field_sint64: ::core::option::Option<i64>,
6700        #[prost(sint32, optional, tag="12")]
6701        pub field_sint32: ::core::option::Option<i32>,
6702        #[prost(string, optional, tag="13")]
6703        pub field_string: ::core::option::Option<::prost::alloc::string::String>,
6704        #[prost(bytes="vec", optional, tag="14")]
6705        pub field_bytes: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
6706    }
6707}
6708/// The following fields define the set of enabled trace categories. Each list
6709/// item is a glob.
6710///
6711/// To determine if category is enabled, it is checked against the filters in
6712/// the following order:
6713///
6714///    1. Exact matches in enabled categories.
6715///    2. Exact matches in enabled tags.
6716///    3. Exact matches in disabled categories.
6717///    4. Exact matches in disabled tags.
6718///    5. Pattern matches in enabled categories.
6719///    6. Pattern matches in enabled tags.
6720///    7. Pattern matches in disabled categories.
6721///    8. Pattern matches in disabled tags.
6722///
6723/// If none of the steps produced a match:
6724///   - In the C++ SDK (`perfetto::Category`), categories are enabled by
6725///   default.
6726///   - In the C SDK (`PerfettoTeCategory`), categories are disabled by default.
6727///
6728/// Examples:
6729///
6730///   - To enable all non-slow/debug categories:
6731///
6732///        enabled_categories: "*"
6733///
6734///   - To enable specific categories:
6735///
6736///        disabled_categories: "*"
6737///        enabled_categories: "my_category"
6738///        enabled_categories: "my_category2"
6739///
6740///   - To enable only categories with a specific tag:
6741///
6742///        disabled_tags: "*"
6743///        enabled_tags: "my_tag"
6744///
6745#[derive(Clone, PartialEq, ::prost::Message)]
6746pub struct TrackEventConfig {
6747    /// Default: []
6748    #[prost(string, repeated, tag="1")]
6749    pub disabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6750    /// Default: []
6751    #[prost(string, repeated, tag="2")]
6752    pub enabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6753    /// Default: ["slow", "debug"]
6754    #[prost(string, repeated, tag="3")]
6755    pub disabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6756    /// Default: []
6757    #[prost(string, repeated, tag="4")]
6758    pub enabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6759    /// Default: false (i.e. enabled by default)
6760    #[prost(bool, optional, tag="5")]
6761    pub disable_incremental_timestamps: ::core::option::Option<bool>,
6762    /// Allows to specify a custom unit different than the default (ns).
6763    /// Also affects thread timestamps if enable_thread_time_sampling = true.
6764    /// A multiplier of 1000 means that a timestamp = 3 should be interpreted as
6765    /// 3000 ns = 3 us.
6766    /// Default: 1 (if unset, it should be read as 1).
6767    #[prost(uint64, optional, tag="6")]
6768    pub timestamp_unit_multiplier: ::core::option::Option<u64>,
6769    /// Default: false (i.e. debug_annotations is NOT filtered out by default)
6770    /// When true, any debug annotations provided as arguments to the
6771    /// TRACE_EVENT macros are not written into the trace. Typed arguments will
6772    /// still be emitted even if set to true.
6773    #[prost(bool, optional, tag="7")]
6774    pub filter_debug_annotations: ::core::option::Option<bool>,
6775    /// Default: false (i.e. disabled)
6776    /// When true, the SDK samples and emits the current thread time counter value
6777    /// for each event on the current thread's track. This value represents the
6778    /// total CPU time consumed by that thread since its creation.
6779    /// Learn more: "CLOCK_THREAD_CPUTIME_ID" flag at
6780    /// <https://man7.org/linux/man-pages/man3/clock_gettime.3.html>
6781    #[prost(bool, optional, tag="8")]
6782    pub enable_thread_time_sampling: ::core::option::Option<bool>,
6783    /// When enable_thread_time_sampling is true, and this is specified, thread
6784    /// time is sampled only if the elapsed wall time >
6785    /// `thread_time_subsampling_ns`. Otherwise, thread time is considered nil.
6786    /// Effectively, this means thread time will have a leeway of
6787    /// `thread_time_subsampling_ns` and won't be emitted for shorter events.
6788    #[prost(uint64, optional, tag="10")]
6789    pub thread_time_subsampling_ns: ::core::option::Option<u64>,
6790    /// Default: false (i.e. dynamic event names are NOT filtered out by default)
6791    /// When true, event_names wrapped in perfetto::DynamicString will be filtered
6792    /// out.
6793    #[prost(bool, optional, tag="9")]
6794    pub filter_dynamic_event_names: ::core::option::Option<bool>,
6795}
6796/// This data-source does a one-off recording of system information when
6797/// the trace starts.
6798/// Currently this includes:
6799/// - Values of
6800/// /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies This
6801/// datasource has no configuration options at present.
6802#[derive(Clone, PartialEq, ::prost::Message)]
6803pub struct SystemInfoConfig {
6804}
6805#[derive(Clone, PartialEq, ::prost::Message)]
6806pub struct ChromiumHistogramSamplesConfig {
6807    /// List of histograms to record. If no histogram is specified, all histograms
6808    /// are recorded.
6809    #[prost(message, repeated, tag="1")]
6810    pub histograms: ::prost::alloc::vec::Vec<chromium_histogram_samples_config::HistogramSample>,
6811    /// Default: false (i.e. histogram names are NOT filtered out by default)
6812    /// When true, histogram_name will be filtered out.
6813    #[prost(bool, optional, tag="2")]
6814    pub filter_histogram_names: ::core::option::Option<bool>,
6815}
6816/// Nested message and enum types in `ChromiumHistogramSamplesConfig`.
6817pub mod chromium_histogram_samples_config {
6818    /// Records when a value within the specified bounds [min_value, max_value] is
6819    /// emitted into a Chrome histogram.
6820    #[derive(Clone, PartialEq, ::prost::Message)]
6821    pub struct HistogramSample {
6822        #[prost(string, optional, tag="1")]
6823        pub histogram_name: ::core::option::Option<::prost::alloc::string::String>,
6824        #[prost(int64, optional, tag="2")]
6825        pub min_value: ::core::option::Option<i64>,
6826        #[prost(int64, optional, tag="3")]
6827        pub max_value: ::core::option::Option<i64>,
6828    }
6829}
6830/// QnxConfig is used with trace_qnx_probes build from
6831/// <https://github.com/qnx-ports/perfetto>
6832#[derive(Clone, PartialEq, ::prost::Message)]
6833pub struct QnxConfig {
6834    /// The number of buffers that tracelog will init for the QNX trace.
6835    #[prost(uint32, optional, tag="1")]
6836    pub qnx_kernel_buffers: ::core::option::Option<u32>,
6837    /// The number of kernel buffers that tracelog will init for the QNX trace.
6838    #[prost(uint32, optional, tag="2")]
6839    pub qnx_kernel_kbuffers: ::core::option::Option<u32>,
6840    /// Flag indicating whether the QNX kernel tracing should produce wide
6841    /// events which contain additional data or fast events which are most
6842    /// concise. In fast mode we lose the priority information
6843    #[prost(bool, optional, tag="3")]
6844    pub qnx_kernel_wide_events: ::core::option::Option<bool>,
6845    /// The number of pages initialized by default the parser's page cache.
6846    #[prost(uint32, optional, tag="4")]
6847    pub qnx_cache_pages: ::core::option::Option<u32>,
6848    /// The max pages the page cache should allocate (must be at least as big)
6849    /// as the qnx_cache_pages value. Using -1 will allow the cache to grow
6850    /// unbounded. The cache will prefer to re-use existing pages so growth will
6851    /// only happen when needed (when parser is not keeping up).
6852    #[prost(int32, optional, tag="5")]
6853    pub qnx_cache_max_pages: ::core::option::Option<i32>,
6854    /// The initial size of the the buffer used to hold the trace header values
6855    /// this dynamic buffer will grow as needed but reallocs can be avoided by
6856    /// selecting an initial size large enough to hold all the initial header
6857    /// data.
6858    #[prost(uint32, optional, tag="6")]
6859    pub qnx_trace_buffer_init_bytes: ::core::option::Option<u32>,
6860}
6861/// The configuration that is passed to each data source when starting tracing.
6862/// Next id: 141
6863#[derive(Clone, PartialEq, ::prost::Message)]
6864pub struct DataSourceConfig {
6865    /// Data source unique name, e.g., "linux.ftrace". This must match
6866    /// the name passed by the data source when it registers (see
6867    /// RegisterDataSource()).
6868    #[prost(string, optional, tag="1")]
6869    pub name: ::core::option::Option<::prost::alloc::string::String>,
6870    /// The index of the logging buffer where TracePacket(s) will be stored.
6871    /// This field is quite subtle as it has a double semantic:
6872    /// 1) When the config is passed, this field is a 0-based index relative to the
6873    ///     buffer array in the TraceConfig and defines the mapping between data
6874    ///     sources and config. From v54 this is optional because the user can
6875    ///     instead use target_buffer_name.
6876    /// 2) When the TracingService issues a SetupDataSource/StartDataSource to the
6877    ///     producer, it overwrites this field with the global buffer index (which
6878    ///     depends on other tracing sessions active). This tells the producer which
6879    ///     buffer id should be passed to CreateTraceWriter. In this case, the trace
6880    ///     service always sets the resolved global id, even when using
6881    ///     `target_buffer_name`.
6882    /// In hindsight we should have used two different fields given even in v0 they
6883    /// had a different semantic. But now it's too late as this would be a major
6884    /// protocol breaking change.
6885    #[prost(uint32, optional, tag="2")]
6886    pub target_buffer: ::core::option::Option<u32>,
6887    /// Alternative to |target_buffer|. References a buffer by name (as specified
6888    /// in TraceConfig.BufferConfig.name) rather than by index. This is more
6889    /// readable and less error-prone than using buffer indices.
6890    /// If both |target_buffer| and |target_buffer_name| are specified, they must
6891    /// refer to the same buffer, otherwise the service will reject the config.
6892    /// Using both fields allows configs to work with both old and new versions
6893    /// of the tracing service. Introduced in v54.
6894    #[prost(string, optional, tag="11")]
6895    pub target_buffer_name: ::core::option::Option<::prost::alloc::string::String>,
6896    /// Set by the service to indicate the duration of the trace.
6897    /// DO NOT SET in consumer as this will be overridden by the service.
6898    #[prost(uint32, optional, tag="3")]
6899    pub trace_duration_ms: ::core::option::Option<u32>,
6900    /// If true, |trace_duration_ms| should count also time in suspend. This
6901    /// is propagated from TraceConfig.prefer_suspend_clock_for_duration.
6902    #[prost(bool, optional, tag="122")]
6903    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
6904    /// Set by the service to indicate how long it waits after StopDataSource.
6905    /// DO NOT SET in consumer as this will be overridden by the service.
6906    #[prost(uint32, optional, tag="7")]
6907    pub stop_timeout_ms: ::core::option::Option<u32>,
6908    /// Set by the service to indicate whether this tracing session has extra
6909    /// guardrails.
6910    /// DO NOT SET in consumer as this will be overridden by the service.
6911    #[prost(bool, optional, tag="6")]
6912    pub enable_extra_guardrails: ::core::option::Option<bool>,
6913    /// Set by the service to indicate which user initiated this trace.
6914    /// DO NOT SET in consumer as this will be overridden by the service.
6915    #[prost(enumeration="data_source_config::SessionInitiator", optional, tag="8")]
6916    pub session_initiator: ::core::option::Option<i32>,
6917    /// Set by the service to indicate which tracing session the data source
6918    /// belongs to. The intended use case for this is checking if two data sources,
6919    /// one of which produces metadata for the other one, belong to the same trace
6920    /// session and hence should be linked together.
6921    /// This field was introduced in Aug 2018 after Android P.
6922    /// DO NOT SET in consumer as this will be overridden by the service.
6923    #[prost(uint64, optional, tag="4")]
6924    pub tracing_session_id: ::core::option::Option<u64>,
6925    /// How to behave when the producer runs out of space in the shared memory
6926    /// buffer. This is only honored by some data sources (in the SDK, the data
6927    /// sources registered with a configurable buffer exhausted policy).
6928    #[prost(enumeration="data_source_config::BufferExhaustedPolicy", optional, tag="9")]
6929    pub buffer_exhausted_policy: ::core::option::Option<i32>,
6930    #[prost(message, optional, tag="10")]
6931    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
6932    // If specified, the data source requires the tracing service to process
6933    // overwritten packets (patches) using a ProtoVM instance with this config.
6934    // The ProtoVM program is specified at data source registration time through
6935    // the descriptor.
6936
6937    /// TODO(primiano): today when we enable a protovm_config, we actually accept
6938    /// that if N producers advertise M different versions of the same program we
6939    /// will create M instances of that program.
6940    /// To overcome this, we could move the program to the TraceConfig. But doing
6941    /// so would bloat the trace config size too big and create problems to statsd.
6942    /// Once the config store (b/482305876) exists we should move protovm programs
6943    /// onto that.
6944    #[prost(message, optional, tag="12")]
6945    pub protovm_config: ::core::option::Option<ProtoVmConfig>,
6946    // Keep the lower IDs (up to 99) for fields that are *not* specific to
6947    // data-sources and needs to be processed by the traced daemon.
6948
6949    // All data source config fields must be marked as \[lazy=true\]. This prevents
6950    // the proto-to-cpp generator from recursing into those when generating the
6951    // cpp classes and polluting tracing/core with data-source-specific classes.
6952    // Instead they are treated as opaque strings containing raw proto bytes.
6953
6954    /// Data source name: linux.ftrace
6955    #[prost(message, optional, tag="100")]
6956    pub ftrace_config: ::core::option::Option<FtraceConfig>,
6957    /// Data source name: linux.inode_file_map
6958    #[prost(message, optional, tag="102")]
6959    pub inode_file_config: ::core::option::Option<InodeFileConfig>,
6960    /// Data source name: linux.process_stats
6961    #[prost(message, optional, tag="103")]
6962    pub process_stats_config: ::core::option::Option<ProcessStatsConfig>,
6963    /// Data source name: linux.sys_stats
6964    #[prost(message, optional, tag="104")]
6965    pub sys_stats_config: ::core::option::Option<SysStatsConfig>,
6966    /// Data source name: android.heapprofd
6967    /// Introduced in Android 10.
6968    #[prost(message, optional, tag="105")]
6969    pub heapprofd_config: ::core::option::Option<HeapprofdConfig>,
6970    /// Data source name: android.java_hprof
6971    /// Introduced in Android 11.
6972    #[prost(message, optional, tag="110")]
6973    pub java_hprof_config: ::core::option::Option<JavaHprofConfig>,
6974    /// Data source name: android.power
6975    #[prost(message, optional, tag="106")]
6976    pub android_power_config: ::core::option::Option<AndroidPowerConfig>,
6977    /// Data source name: android.log
6978    #[prost(message, optional, tag="107")]
6979    pub android_log_config: ::core::option::Option<AndroidLogConfig>,
6980    /// Data source name: gpu.counters
6981    #[prost(message, optional, tag="108")]
6982    pub gpu_counter_config: ::core::option::Option<GpuCounterConfig>,
6983    /// Data source name: android.game_interventions
6984    #[prost(message, optional, tag="116")]
6985    pub android_game_intervention_list_config: ::core::option::Option<AndroidGameInterventionListConfig>,
6986    /// Data source name: android.packages_list
6987    #[prost(message, optional, tag="109")]
6988    pub packages_list_config: ::core::option::Option<PackagesListConfig>,
6989    /// Data source name: linux.perf
6990    #[prost(message, optional, tag="111")]
6991    pub perf_event_config: ::core::option::Option<PerfEventConfig>,
6992    /// Data source name: vulkan.memory_tracker
6993    #[prost(message, optional, tag="112")]
6994    pub vulkan_memory_config: ::core::option::Option<VulkanMemoryConfig>,
6995    /// Data source name: track_event
6996    #[prost(message, optional, tag="113")]
6997    pub track_event_config: ::core::option::Option<TrackEventConfig>,
6998    /// Data source name: android.polled_state
6999    #[prost(message, optional, tag="114")]
7000    pub android_polled_state_config: ::core::option::Option<AndroidPolledStateConfig>,
7001    /// Data source name: android.system_property
7002    #[prost(message, optional, tag="118")]
7003    pub android_system_property_config: ::core::option::Option<AndroidSystemPropertyConfig>,
7004    /// Data source name: android.statsd
7005    #[prost(message, optional, tag="117")]
7006    pub statsd_tracing_config: ::core::option::Option<StatsdTracingConfig>,
7007    /// Data source name: linux.system_info
7008    #[prost(message, optional, tag="119")]
7009    pub system_info_config: ::core::option::Option<SystemInfoConfig>,
7010    /// Data source name: linux.frozen_ftrace
7011    #[prost(message, optional, tag="136")]
7012    pub frozen_ftrace_config: ::core::option::Option<FrozenFtraceConfig>,
7013    /// Chrome is special as it doesn't use the perfetto IPC layer. We want to
7014    /// avoid proto serialization and de-serialization there because that would
7015    /// just add extra hops on top of the Mojo ser/des. Instead we auto-generate a
7016    /// C++ class for it so it can pass around plain C++ objets.
7017    #[prost(message, optional, tag="101")]
7018    pub chrome_config: ::core::option::Option<ChromeConfig>,
7019    /// Data source name: code.v8.dev
7020    #[prost(message, optional, tag="127")]
7021    pub v8_config: ::core::option::Option<V8Config>,
7022    /// If an interceptor is specified here, packets for this data source will be
7023    /// rerouted to the interceptor instead of the main trace buffer. This can be
7024    /// used, for example, to write trace data into ETW or for logging trace points
7025    /// to the console.
7026    ///
7027    /// Note that interceptors are only supported by data sources registered
7028    /// through the Perfetto SDK API. Data sources that don't use that API (e.g.,
7029    /// traced_probes) may not support interception.
7030    #[prost(message, optional, tag="115")]
7031    pub interceptor_config: ::core::option::Option<InterceptorConfig>,
7032    /// Data source name: android.network_packets.
7033    /// Introduced in Android 14 (U).
7034    #[prost(message, optional, tag="120")]
7035    pub network_packet_trace_config: ::core::option::Option<NetworkPacketTraceConfig>,
7036    /// Data source name: android.surfaceflinger.layers
7037    #[prost(message, optional, tag="121")]
7038    pub surfaceflinger_layers_config: ::core::option::Option<SurfaceFlingerLayersConfig>,
7039    /// Data source name: android.surfaceflinger.transactions
7040    #[prost(message, optional, tag="123")]
7041    pub surfaceflinger_transactions_config: ::core::option::Option<SurfaceFlingerTransactionsConfig>,
7042    /// Data source name: android.sdk_sysprop_guard
7043    /// Introduced in Android 14 (U) QPR1.
7044    #[prost(message, optional, tag="124")]
7045    pub android_sdk_sysprop_guard_config: ::core::option::Option<AndroidSdkSyspropGuardConfig>,
7046    /// Data source name: windows.etw
7047    #[prost(message, optional, tag="125")]
7048    pub etw_config: ::core::option::Option<EtwConfig>,
7049    /// Data source name: android.protolog
7050    #[prost(message, optional, tag="126")]
7051    pub protolog_config: ::core::option::Option<ProtoLogConfig>,
7052    /// Data source name: android.input.inputevent
7053    #[prost(message, optional, tag="128")]
7054    pub android_input_event_config: ::core::option::Option<AndroidInputEventConfig>,
7055    /// Data source name: android.pixel.modem
7056    #[prost(message, optional, tag="129")]
7057    pub pixel_modem_config: ::core::option::Option<PixelModemConfig>,
7058    /// Data source name: android.windowmanager
7059    #[prost(message, optional, tag="130")]
7060    pub windowmanager_config: ::core::option::Option<WindowManagerConfig>,
7061    /// Data source name: org.chromium.system_metrics
7062    #[prost(message, optional, tag="131")]
7063    pub chromium_system_metrics: ::core::option::Option<ChromiumSystemMetricsConfig>,
7064    /// Data source name: android.kernel_wakelocks
7065    #[prost(message, optional, tag="132")]
7066    pub kernel_wakelocks_config: ::core::option::Option<KernelWakelocksConfig>,
7067    /// Data source name: gpu.renderstages
7068    #[prost(message, optional, tag="133")]
7069    pub gpu_renderstages_config: ::core::option::Option<GpuRenderStagesConfig>,
7070    /// Data source name: org.chromium.histogram_samples
7071    #[prost(message, optional, tag="134")]
7072    pub chromium_histogram_samples: ::core::option::Option<ChromiumHistogramSamplesConfig>,
7073    /// Data source name: android.app_wakelocks
7074    #[prost(message, optional, tag="135")]
7075    pub app_wakelocks_config: ::core::option::Option<AppWakelocksConfig>,
7076    /// Data source name: android.cpu_per_uid
7077    #[prost(message, optional, tag="137")]
7078    pub cpu_per_uid_config: ::core::option::Option<CpuPerUidConfig>,
7079    /// Data source name: android.user_list
7080    #[prost(message, optional, tag="138")]
7081    pub user_list_config: ::core::option::Option<AndroidUserListConfig>,
7082    /// Data source name: android.inputmethod
7083    #[prost(message, optional, tag="139")]
7084    pub inputmethod_config: ::core::option::Option<InputMethodConfig>,
7085    /// Data source name: android.aflags
7086    #[prost(message, optional, tag="140")]
7087    pub android_aflags_config: ::core::option::Option<AndroidAflagsConfig>,
7088    /// Data source name: qnx.kernel
7089    #[prost(message, optional, tag="150")]
7090    pub qnx_config: ::core::option::Option<QnxConfig>,
7091    /// This is a fallback mechanism to send a free-form text config to the
7092    /// producer. In theory this should never be needed. All the code that
7093    /// is part of the platform (i.e. traced service) is supposed to *not* truncate
7094    /// the trace config proto and propagate unknown fields. However, if anything
7095    /// in the pipeline (client or backend) ends up breaking this forward compat
7096    /// plan, this field will become the escape hatch to allow future data sources
7097    /// to get some meaningful configuration.
7098    #[prost(string, optional, tag="1000")]
7099    pub legacy_config: ::core::option::Option<::prost::alloc::string::String>,
7100    /// This field is only used for testing.
7101    #[prost(message, optional, tag="1001")]
7102    pub for_testing: ::core::option::Option<TestConfig>,
7103}
7104/// Nested message and enum types in `DataSourceConfig`.
7105pub mod data_source_config {
7106    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7107    #[repr(i32)]
7108    pub enum SessionInitiator {
7109        Unspecified = 0,
7110        /// This trace was initiated from a trusted system app has DUMP and
7111        /// USAGE_STATS permission. This system app is expected to not expose the
7112        /// trace to the user of the device.
7113        /// This is determined by checking the UID initiating the trace.
7114        TrustedSystem = 1,
7115    }
7116    impl SessionInitiator {
7117        /// String value of the enum field names used in the ProtoBuf definition.
7118        ///
7119        /// The values are not transformed in any way and thus are considered stable
7120        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7121        pub fn as_str_name(&self) -> &'static str {
7122            match self {
7123                SessionInitiator::Unspecified => "SESSION_INITIATOR_UNSPECIFIED",
7124                SessionInitiator::TrustedSystem => "SESSION_INITIATOR_TRUSTED_SYSTEM",
7125            }
7126        }
7127    }
7128    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7129    #[repr(i32)]
7130    pub enum BufferExhaustedPolicy {
7131        /// The data source will use its default buffer exhausted policy, specified
7132        /// by the code when the data source is registered.
7133        BufferExhaustedUnspecified = 0,
7134        /// The data source will drop packets when there's no space in the shared
7135        /// memory buffer.
7136        BufferExhaustedDrop = 1,
7137        /// The data source will wait when there's no space in the shared memory
7138        /// buffer. If there's still not space, after a few seconds, the whole
7139        /// producer process will be aborted.
7140        BufferExhaustedStallThenAbort = 2,
7141        /// The data source will wait when there's no space in the shared memory
7142        /// buffer.  If there's still not space, after a few seconds, the data source
7143        /// will drop packets.
7144        BufferExhaustedStallThenDrop = 3,
7145    }
7146    impl BufferExhaustedPolicy {
7147        /// String value of the enum field names used in the ProtoBuf definition.
7148        ///
7149        /// The values are not transformed in any way and thus are considered stable
7150        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7151        pub fn as_str_name(&self) -> &'static str {
7152            match self {
7153                BufferExhaustedPolicy::BufferExhaustedUnspecified => "BUFFER_EXHAUSTED_UNSPECIFIED",
7154                BufferExhaustedPolicy::BufferExhaustedDrop => "BUFFER_EXHAUSTED_DROP",
7155                BufferExhaustedPolicy::BufferExhaustedStallThenAbort => "BUFFER_EXHAUSTED_STALL_THEN_ABORT",
7156                BufferExhaustedPolicy::BufferExhaustedStallThenDrop => "BUFFER_EXHAUSTED_STALL_THEN_DROP",
7157            }
7158        }
7159    }
7160}
7161/// The overall config that is used when starting a new tracing session through
7162/// ProducerPort::StartTracing().
7163/// It contains the general config for the logging buffer(s) and the configs for
7164/// all the data source being enabled.
7165///
7166/// Next id: 47.
7167#[derive(Clone, PartialEq, ::prost::Message)]
7168pub struct TraceConfig {
7169    #[prost(message, repeated, tag="1")]
7170    pub buffers: ::prost::alloc::vec::Vec<trace_config::BufferConfig>,
7171    #[prost(message, repeated, tag="2")]
7172    pub data_sources: ::prost::alloc::vec::Vec<trace_config::DataSource>,
7173    #[prost(message, optional, tag="20")]
7174    pub builtin_data_sources: ::core::option::Option<trace_config::BuiltinDataSource>,
7175    /// If specified, the trace will be stopped |duration_ms| after starting.
7176    /// This does *not* count the time the system is suspended, so we will run
7177    /// for duration_ms of system activity, not wall time.
7178    ///
7179    /// However in case of traces with triggers, see
7180    /// TriggerConfig.trigger_timeout_ms instead.
7181    #[prost(uint32, optional, tag="3")]
7182    pub duration_ms: ::core::option::Option<u32>,
7183    /// If true, tries to use CLOCK_BOOTTIME for duration_ms rather than
7184    /// CLOCK_MONOTONIC (which doesn't count time in suspend). Supported only on
7185    /// Linux/Android, no-op on other platforms. This is used when dealing with
7186    /// long (e.g. 24h) traces, where suspend can inflate them to weeks of
7187    /// wall-time, making them more likely to hit device reboots (and hence loss).
7188    /// This option also changes consistently the semantic of
7189    /// TriggerConfig.stop_delay_ms.
7190    #[prost(bool, optional, tag="36")]
7191    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
7192    /// This is set when --dropbox is passed to the Perfetto command line client
7193    /// and enables guardrails that limit resource usage for traces requested
7194    /// by statsd.
7195    #[prost(bool, optional, tag="4")]
7196    pub enable_extra_guardrails: ::core::option::Option<bool>,
7197    /// Reject producers that are not running under the same UID as the tracing
7198    /// service.
7199    #[prost(enumeration="trace_config::LockdownModeOperation", optional, tag="5")]
7200    pub lockdown_mode: ::core::option::Option<i32>,
7201    #[prost(message, repeated, tag="6")]
7202    pub producers: ::prost::alloc::vec::Vec<trace_config::ProducerConfig>,
7203    /// Statsd-specific metadata.
7204    #[prost(message, optional, tag="7")]
7205    pub statsd_metadata: ::core::option::Option<trace_config::StatsdMetadata>,
7206    /// When true && |output_path| is empty, the EnableTracing() request must
7207    /// provide a file descriptor. The service will then periodically read packets
7208    /// out of the trace buffer and store it into the passed file.
7209    /// If |output_path| is not empty no fd should be passed, the service
7210    /// will create a new file and write into that (see comment below).
7211    #[prost(bool, optional, tag="8")]
7212    pub write_into_file: ::core::option::Option<bool>,
7213    /// This must point to a non-existing file. If the file exists the service
7214    /// will NOT overwrite and will fail instead as a security precaution.
7215    /// On Android, when this is used with the system traced, the path must be
7216    /// within /data/misc/perfetto-traces/ or the trace will fail.
7217    /// This option has been introduced in Android R. Before R write_into_file
7218    /// can be used only with the "pass a file descriptor over IPC" mode.
7219    #[prost(string, optional, tag="29")]
7220    pub output_path: ::core::option::Option<::prost::alloc::string::String>,
7221    /// Optional. If non-zero tunes the write period. A min value of 100ms is
7222    /// enforced (i.e. smaller values are ignored).
7223    #[prost(uint32, optional, tag="9")]
7224    pub file_write_period_ms: ::core::option::Option<u32>,
7225    /// Optional. When non zero the periodic write stops once at most X bytes
7226    /// have been written into the file. Tracing is disabled when this limit is
7227    /// reached, even if |duration_ms| has not been reached yet.
7228    #[prost(uint64, optional, tag="10")]
7229    pub max_file_size_bytes: ::core::option::Option<u64>,
7230    #[prost(message, optional, tag="11")]
7231    pub guardrail_overrides: ::core::option::Option<trace_config::GuardrailOverrides>,
7232    /// When true, data sources are not started until an explicit call to
7233    /// StartTracing() on the consumer port. This is to support early
7234    /// initialization and fast trace triggering. This can be used only when the
7235    /// Consumer explicitly triggers the StartTracing() method.
7236    /// This should not be used in a remote trace config via statsd, doing so will
7237    /// result in a hung trace session.
7238    #[prost(bool, optional, tag="12")]
7239    pub deferred_start: ::core::option::Option<bool>,
7240    /// When set, it periodically issues a Flush() to all data source, forcing them
7241    /// to commit their data into the tracing service. This can be used for
7242    /// quasi-real-time streaming mode and to guarantee some partial ordering of
7243    /// events in the trace in windows of X ms.
7244    ///
7245    /// Warning: Perfetto automatically handles periodic flushing so in most
7246    /// scenarios setting this field is not needed. High frequency flushing can
7247    /// significantly impact performance.
7248    #[prost(uint32, optional, tag="13")]
7249    pub flush_period_ms: ::core::option::Option<u32>,
7250    /// Wait for this long for producers to acknowledge flush requests.
7251    /// Default 5s.
7252    #[prost(uint32, optional, tag="14")]
7253    pub flush_timeout_ms: ::core::option::Option<u32>,
7254    /// Wait for this long for producers to acknowledge stop requests.
7255    /// Default 5s.
7256    #[prost(uint32, optional, tag="23")]
7257    pub data_source_stop_timeout_ms: ::core::option::Option<u32>,
7258    /// Android-only. If set, sends an intent to the Traceur system app when the
7259    /// trace ends to notify it about the trace readiness.
7260    #[prost(bool, optional, tag="16")]
7261    pub notify_traceur: ::core::option::Option<bool>,
7262    /// This field was introduced in Android S.
7263    /// Android-only. If set to a value > 0, marks the trace session as a candidate
7264    /// for being attached to a bugreport. This field effectively acts as a z-index
7265    /// for bugreports. When Android's dumpstate runs perfetto
7266    /// --save-for-bugreport, traced will pick the tracing session with the highest
7267    /// score (score <= 0 is ignored) and:
7268    /// On Android S, T:  will steal its contents, save the trace into
7269    ///      a known path and stop prematurely.
7270    /// On Android U+: will create a read-only snapshot and save that into a known
7271    ///      path, without stoppin the original tracing session.
7272    /// When this field is set the tracing session becomes eligible to be cloned
7273    /// by other UIDs.
7274    #[prost(int32, optional, tag="30")]
7275    pub bugreport_score: ::core::option::Option<i32>,
7276    /// When set, defines name of the file that will be saved under
7277    /// /data/misc/perfetto-traces/bugreport/ when using --save-all-for-bugreport.
7278    /// If omitted, traces will be named systrace.pftrace, systrace_1.pftrace, etc,
7279    /// starting from the highest `bugreport_score`.
7280    /// Introduced in v42 / Android V.
7281    #[prost(string, optional, tag="38")]
7282    pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
7283    #[prost(message, optional, tag="17")]
7284    pub trigger_config: ::core::option::Option<trace_config::TriggerConfig>,
7285    /// When this is non-empty the perfetto command line tool will ignore the rest
7286    /// of this TraceConfig and instead connect to the perfetto service as a
7287    /// producer and send these triggers, potentially stopping or starting traces
7288    /// that were previous configured to use a TriggerConfig.
7289    #[prost(string, repeated, tag="18")]
7290    pub activate_triggers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7291    #[prost(message, optional, tag="21")]
7292    pub incremental_state_config: ::core::option::Option<trace_config::IncrementalStateConfig>,
7293    /// No longer needed as we unconditionally allow tracing on user builds.
7294    #[deprecated]
7295    #[prost(bool, optional, tag="19")]
7296    pub allow_user_build_tracing: ::core::option::Option<bool>,
7297    /// If set the tracing service will ensure there is at most one tracing session
7298    /// with this key.
7299    #[prost(string, optional, tag="22")]
7300    pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
7301    #[prost(enumeration="trace_config::CompressionType", optional, tag="24")]
7302    pub compression_type: ::core::option::Option<i32>,
7303    #[prost(message, optional, tag="25")]
7304    pub incident_report_config: ::core::option::Option<trace_config::IncidentReportConfig>,
7305    /// Android-only. Not for general use. If specified, sets the logging to statsd
7306    /// of guardrails and checkpoints in the tracing service. perfetto_cmd sets
7307    /// this to enabled (if not explicitly set in the config) when specifying
7308    /// --upload.
7309    #[prost(enumeration="trace_config::StatsdLogging", optional, tag="31")]
7310    pub statsd_logging: ::core::option::Option<i32>,
7311    /// An identifier clients can use to tie this trace to other logging.
7312    /// DEPRECATED as per v32. See TracePacket.trace_uuid for the authoritative
7313    /// Trace UUID. If this field is set, the tracing service will respect the
7314    /// requested UUID (i.e. TracePacket.trace_uuid == this field) but only if
7315    /// gap-less snapshotting is not used.
7316    #[deprecated]
7317    #[prost(int64, optional, tag="27")]
7318    pub trace_uuid_msb: ::core::option::Option<i64>,
7319    #[deprecated]
7320    #[prost(int64, optional, tag="28")]
7321    pub trace_uuid_lsb: ::core::option::Option<i64>,
7322    #[prost(message, optional, tag="33")]
7323    pub trace_filter: ::core::option::Option<trace_config::TraceFilter>,
7324    #[prost(message, optional, tag="34")]
7325    pub android_report_config: ::core::option::Option<trace_config::AndroidReportConfig>,
7326    #[prost(message, optional, tag="35")]
7327    pub cmd_trace_start_delay: ::core::option::Option<trace_config::CmdTraceStartDelay>,
7328    #[prost(message, repeated, tag="39")]
7329    pub session_semaphores: ::prost::alloc::vec::Vec<trace_config::SessionSemaphore>,
7330    /// Priority boost to be applied to the traced process, when the session is
7331    /// running.
7332    #[prost(message, optional, tag="40")]
7333    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
7334    /// When set to a value > 0, this tracing session will be started in
7335    /// "exclusive mode". This has the following semantics:
7336    /// - It can only be set by shell or root users.
7337    /// - A new exclusive session will only be started if its priority is strictly
7338    ///    higher than any other active tracing session.
7339    /// - If a new exclusive session is started, all other existing tracing
7340    ///    sessions (exclusive or not) are aborted.
7341    /// - While an exclusive session is active, any new non-exclusive session (or
7342    ///    any exclusive session with a lower or equal priority) will be rejected.
7343    ///
7344    /// Introduced in: perfetto v52.
7345    /// Supported on: Android 25Q3+.
7346    #[prost(uint32, optional, tag="41")]
7347    pub exclusive_prio: ::core::option::Option<u32>,
7348    /// Configures how the service should handle flushing data from producers
7349    /// before periodically writing the trace into the output file.
7350    /// Only applicable when |write_into_file| is true.
7351    ///
7352    /// By default, if |write_into_file| is set, the service periodically issues
7353    /// a Flush() to all data sources before writing buffers into the file.
7354    /// This ensures the file always contains the latest available data.
7355    ///
7356    /// Introduced in: perfetto v54.
7357    /// Supported on: Android 26Q1+.
7358    #[prost(enumeration="trace_config::WriteFlushMode", optional, tag="44")]
7359    pub write_flush_mode: ::core::option::Option<i32>,
7360    /// Whether to sync the output file to storage after each periodic write pass.
7361    /// Only applicable when |write_into_file| is true.
7362    ///
7363    /// By default, no fflush is invoked. FFLUSH_ENABLED must be set to explicitly
7364    /// sync to storage on every write.
7365    ///
7366    /// Introduced in: perfetto v54.
7367    /// Supported on: Android 26Q1+.
7368    #[prost(enumeration="trace_config::FFlushMode", optional, tag="45")]
7369    pub fflush_post_write: ::core::option::Option<i32>,
7370    /// When true, data sources in remote producers (machines connected via
7371    /// traced_relay) will be matched by default. When false (the default), data
7372    /// sources only match the host machine. In either case, an explicit
7373    /// |DataSource.machine_name_filter| takes priority.
7374    ///
7375    /// NB: perfetto versions before v54 do not have this option and match across
7376    /// machines by default. To be compatible across this version boundary, either
7377    /// set this field to true, or set an explicit machine_name_filter on all data
7378    /// sources.
7379    ///
7380    /// Introduced in: perfetto v54.
7381    #[prost(bool, optional, tag="43")]
7382    pub trace_all_machines: ::core::option::Option<bool>,
7383    #[prost(message, repeated, tag="46")]
7384    pub notes: ::prost::alloc::vec::Vec<trace_config::Note>,
7385}
7386/// Nested message and enum types in `TraceConfig`.
7387pub mod trace_config {
7388    #[derive(Clone, PartialEq, ::prost::Message)]
7389    pub struct BufferConfig {
7390        #[prost(uint32, optional, tag="1")]
7391        pub size_kb: ::core::option::Option<u32>,
7392        #[prost(enumeration="buffer_config::FillPolicy", optional, tag="4")]
7393        pub fill_policy: ::core::option::Option<i32>,
7394        /// When true the buffer is moved (rather than copied) onto the cloned
7395        /// session, and an empty buffer of the same size is allocated in the source
7396        /// tracing session. This feature will likely get deprecated in the future.
7397        /// It been introduced mainly to support the surfaceflinger snapshot dump
7398        /// for bugreports, where SF can dumps O(400MB) into the bugreport trace. In
7399        /// that case we don't want to retain another in-memory copy of the buffer.
7400        #[prost(bool, optional, tag="5")]
7401        pub transfer_on_clone: ::core::option::Option<bool>,
7402        /// Used in conjunction with transfer_on_clone. When true the buffer is
7403        /// cleared before issuing the Flush(reason=kTraceClone). This is to ensure
7404        /// that if the data source took too long to write the data in a previous
7405        /// clone-related flush, we don't end up with a mixture of leftovers from
7406        /// the previous write and new data.
7407        #[prost(bool, optional, tag="6")]
7408        pub clear_before_clone: ::core::option::Option<bool>,
7409        /// Optional name for this buffer. If set, data sources can reference this
7410        /// buffer by name using |target_buffer_name| in DataSourceConfig instead of
7411        /// using the buffer index. Buffer names must be unique within a tracing
7412        /// session. This provides a more human-readable and less error-prone way to
7413        /// configure which buffer a data source writes to.
7414        #[prost(string, optional, tag="7")]
7415        pub name: ::core::option::Option<::prost::alloc::string::String>,
7416        #[prost(enumeration="buffer_config::ExperimentalMode", optional, tag="8")]
7417        pub experimental_mode: ::core::option::Option<i32>,
7418    }
7419    /// Nested message and enum types in `BufferConfig`.
7420    pub mod buffer_config {
7421        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7422        #[repr(i32)]
7423        pub enum FillPolicy {
7424            Unspecified = 0,
7425            /// Default behavior. The buffer operates as a conventional ring buffer.
7426            /// If the writer is faster than the reader (or if the reader reads only
7427            /// after tracing is stopped) newly written packets will overwrite old
7428            /// packets.
7429            RingBuffer = 1,
7430            /// Behaves like RING_BUFFER as long as there is space in the buffer or
7431            /// the reader catches up with the writer. As soon as the writer hits
7432            /// an unread chunk, it stops accepting new data in the buffer.
7433            Discard = 2,
7434        }
7435        impl FillPolicy {
7436            /// String value of the enum field names used in the ProtoBuf definition.
7437            ///
7438            /// The values are not transformed in any way and thus are considered stable
7439            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7440            pub fn as_str_name(&self) -> &'static str {
7441                match self {
7442                    FillPolicy::Unspecified => "UNSPECIFIED",
7443                    FillPolicy::RingBuffer => "RING_BUFFER",
7444                    FillPolicy::Discard => "DISCARD",
7445                }
7446            }
7447        }
7448        /// When true, uses the experimental TraceBufferV2 implementation for this
7449        /// buffer. This is for testing purposes only and may be removed in future
7450        /// versions.
7451        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7452        #[repr(i32)]
7453        pub enum ExperimentalMode {
7454            /// Use the default V1 implementation.
7455            ModeUnspecified = 0,
7456            /// Use TraceBufferV2.
7457            TraceBufferV2 = 1,
7458            /// Use both V1 and V2 in shadow mode. Data is written to both buffers,
7459            /// but only V1 data is returned. Comparison stats are reported to
7460            /// validate V2 returns equivalent data.
7461            TraceBufferV2ShadowMode = 2,
7462        }
7463        impl ExperimentalMode {
7464            /// String value of the enum field names used in the ProtoBuf definition.
7465            ///
7466            /// The values are not transformed in any way and thus are considered stable
7467            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7468            pub fn as_str_name(&self) -> &'static str {
7469                match self {
7470                    ExperimentalMode::ModeUnspecified => "MODE_UNSPECIFIED",
7471                    ExperimentalMode::TraceBufferV2 => "TRACE_BUFFER_V2",
7472                    ExperimentalMode::TraceBufferV2ShadowMode => "TRACE_BUFFER_V2_SHADOW_MODE",
7473                }
7474            }
7475        }
7476    }
7477    #[derive(Clone, PartialEq, ::prost::Message)]
7478    pub struct DataSource {
7479        /// Filters and data-source specific config. It contains also the unique name
7480        /// of the data source, the one passed in the  DataSourceDescriptor when they
7481        /// register on the service.
7482        #[prost(message, optional, tag="1")]
7483        pub config: ::core::option::Option<super::DataSourceConfig>,
7484        /// Optional. If multiple producers (~processes) expose the same data source
7485        /// and either |producer_name_filter| or |producer_name_regex_filter| is set,
7486        /// the data source is enabled only for producers whose names match any of
7487        /// the filters.
7488        /// |producer_name_filter| has to be an exact match, while
7489        /// |producer_name_regex_filter| is a regular expression.
7490        /// This allows to enable a data source only for specific processes.
7491        /// The "repeated" fields have OR semantics: specifying a filter ["foo",
7492        /// "bar"] will enable data sources on both "foo" and "bar" (if they exist).
7493        #[prost(string, repeated, tag="2")]
7494        pub producer_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7495        #[prost(string, repeated, tag="3")]
7496        pub producer_name_regex_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7497        /// Filter by machine names. The name of a machine is determined by the
7498        /// PERFETTO_MACHINE_NAME env variable. In Android systems, if the env
7499        /// variable is not set then the
7500        /// persist.traced_relay.machine_name system property is used. If the
7501        /// sysprop isn't set or not in an Android system, then the machine name by
7502        /// default is set to the utsname sysname (e.g. Linux), which can be obtained
7503        /// via the 'uname -s' command. As a convenience, one can use "host" to refer
7504        /// to the host machine, which is the machine running traced.
7505        #[prost(string, repeated, tag="4")]
7506        pub machine_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7507    }
7508    /// Config for disabling builtin data sources in the tracing service.
7509    #[derive(Clone, PartialEq, ::prost::Message)]
7510    pub struct BuiltinDataSource {
7511        /// Disable emitting clock timestamps into the trace.
7512        #[prost(bool, optional, tag="1")]
7513        pub disable_clock_snapshotting: ::core::option::Option<bool>,
7514        /// Disable echoing the original trace config in the trace.
7515        #[prost(bool, optional, tag="2")]
7516        pub disable_trace_config: ::core::option::Option<bool>,
7517        /// Disable emitting system info (build fingerprint, cpuinfo, etc).
7518        #[prost(bool, optional, tag="3")]
7519        pub disable_system_info: ::core::option::Option<bool>,
7520        /// Disable emitting events for data-source state changes (e.g. the marker
7521        /// for all data sources having ACKed the start of the trace).
7522        #[prost(bool, optional, tag="4")]
7523        pub disable_service_events: ::core::option::Option<bool>,
7524        /// The authoritative clock domain for the trace. Defaults to BOOTTIME. See
7525        /// also ClockSnapshot's primary_trace_clock. The configured value is written
7526        /// into the trace as part of the ClockSnapshots emitted by the service.
7527        /// Trace processor will attempt to translate packet/event timestamps from
7528        /// various data sources (and their chosen clock domains) to this domain
7529        /// during import. Added in Android R.
7530        #[prost(enumeration="super::BuiltinClock", optional, tag="5")]
7531        pub primary_trace_clock: ::core::option::Option<i32>,
7532        /// Time interval in between snapshotting of sync markers, clock snapshots,
7533        /// stats, and other periodic service-emitted events. Note that the service
7534        /// only keeps track of the first and the most recent snapshot until
7535        /// ReadBuffers() is called.
7536        #[prost(uint32, optional, tag="6")]
7537        pub snapshot_interval_ms: ::core::option::Option<u32>,
7538        /// Hints to the service that a suspend-aware (i.e. counting time in suspend)
7539        /// clock should be used for periodic snapshots of service-emitted events.
7540        /// This means, if a snapshot *should* have happened during suspend, it will
7541        /// happen immediately after the device resumes.
7542        ///
7543        /// Choosing a clock like this is done on best-effort basis; not all
7544        /// platforms (e.g. Windows) expose a clock which can be used for periodic
7545        /// tasks counting suspend. If such a clock is not available, the service
7546        /// falls back to the best-available alternative.
7547        ///
7548        /// Introduced in Android S.
7549        /// TODO(lalitm): deprecate this in T and make this the default if nothing
7550        /// crashes in S.
7551        #[prost(bool, optional, tag="7")]
7552        pub prefer_suspend_clock_for_snapshot: ::core::option::Option<bool>,
7553        /// Disables the reporting of per-trace-writer histograms in TraceStats.
7554        #[prost(bool, optional, tag="8")]
7555        pub disable_chunk_usage_histograms: ::core::option::Option<bool>,
7556        /// Disable emitting extension descriptors into the trace.
7557        #[prost(bool, optional, tag="9")]
7558        pub disable_extension_descriptors: ::core::option::Option<bool>,
7559    }
7560    #[derive(Clone, PartialEq, ::prost::Message)]
7561    pub struct ProducerConfig {
7562        /// Identifies the producer for which this config is for.
7563        #[prost(string, optional, tag="1")]
7564        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
7565        /// Specifies the preferred size of the shared memory buffer. If the size is
7566        /// larger than the max size, the max will be used. If it is smaller than
7567        /// the page size or doesn't fit pages evenly into it, it will fall back to
7568        /// the size specified by the producer or finally the default shared memory
7569        /// size.
7570        #[prost(uint32, optional, tag="2")]
7571        pub shm_size_kb: ::core::option::Option<u32>,
7572        /// Specifies the preferred size of each page in the shared memory buffer.
7573        /// Must be an integer multiple of 4K.
7574        #[prost(uint32, optional, tag="3")]
7575        pub page_size_kb: ::core::option::Option<u32>,
7576    }
7577    /// Contains statsd-specific metadata about an alert associated with the trace.
7578    #[derive(Clone, PartialEq, ::prost::Message)]
7579    pub struct StatsdMetadata {
7580        /// The identifier of the alert which triggered this trace.
7581        #[prost(int64, optional, tag="1")]
7582        pub triggering_alert_id: ::core::option::Option<i64>,
7583        /// The uid which registered the triggering configuration with statsd.
7584        #[prost(int32, optional, tag="2")]
7585        pub triggering_config_uid: ::core::option::Option<i32>,
7586        /// The identifier of the config which triggered the alert.
7587        #[prost(int64, optional, tag="3")]
7588        pub triggering_config_id: ::core::option::Option<i64>,
7589        /// The identifier of the subscription which triggered this trace.
7590        #[prost(int64, optional, tag="4")]
7591        pub triggering_subscription_id: ::core::option::Option<i64>,
7592    }
7593    /// Contains flags which override the default values of the guardrails inside
7594    /// Perfetto.
7595    #[derive(Clone, PartialEq, ::prost::Message)]
7596    pub struct GuardrailOverrides {
7597        /// Override the default limit (in bytes) for uploading data to server within
7598        /// a 24 hour period.
7599        /// On R-, this override only affected userdebug builds. Since S, it also
7600        /// affects user builds.
7601        /// In 24Q3+ (V+), this override is a noop because upload guardrail logic
7602        /// was removed from Perfetto.
7603        #[deprecated]
7604        #[prost(uint64, optional, tag="1")]
7605        pub max_upload_per_day_bytes: ::core::option::Option<u64>,
7606        /// Overrides the guardrail for maximum trace buffer size.
7607        /// Available on U+
7608        #[prost(uint32, optional, tag="2")]
7609        pub max_tracing_buffer_size_kb: ::core::option::Option<u32>,
7610    }
7611    /// Triggers allow producers to start or stop the tracing session when an event
7612    /// occurs.
7613    ///
7614    /// For example if we are tracing probabilistically, most traces will be
7615    /// uninteresting. Triggers allow us to keep only the interesting ones such as
7616    /// those traces during which the device temperature reached a certain
7617    /// threshold. In this case the producer can activate a trigger to keep
7618    /// (STOP_TRACING) the trace, otherwise it can also begin a trace
7619    /// (START_TRACING) because it knows something is about to happen.
7620    #[derive(Clone, PartialEq, ::prost::Message)]
7621    pub struct TriggerConfig {
7622        #[prost(enumeration="trigger_config::TriggerMode", optional, tag="1")]
7623        pub trigger_mode: ::core::option::Option<i32>,
7624        /// This flag is really a workaround for b/274931668. This is needed only
7625        /// when deploying configs to different versions of the tracing service.
7626        /// When this is set to true this has the same effect of setting trigger_mode
7627        /// to CLONE_SNAPSHOT on newer versions of the service. This boolean has been
7628        /// introduced to allow to have configs that use CLONE_SNAPSHOT on newer
7629        /// versions of Android and fall back to STOP_TRACING on older versions where
7630        /// CLONE_SNAPSHOT did not exist.
7631        /// When using this flag, trigger_mode must be set to STOP_TRACING.
7632        #[prost(bool, optional, tag="5")]
7633        pub use_clone_snapshot_if_available: ::core::option::Option<bool>,
7634        /// A list of triggers which are related to this configuration. If ANY
7635        /// trigger is seen then an action will be performed based on |trigger_mode|.
7636        #[prost(message, repeated, tag="2")]
7637        pub triggers: ::prost::alloc::vec::Vec<trigger_config::Trigger>,
7638        /// Required and must be positive if a TriggerConfig is specified. This is
7639        /// how long this TraceConfig should wait for a trigger to arrive. After this
7640        /// period of time if no trigger is seen the TracingSession will be cleaned
7641        /// up.
7642        #[prost(uint32, optional, tag="3")]
7643        pub trigger_timeout_ms: ::core::option::Option<u32>,
7644    }
7645    /// Nested message and enum types in `TriggerConfig`.
7646    pub mod trigger_config {
7647        #[derive(Clone, PartialEq, ::prost::Message)]
7648        pub struct Trigger {
7649            /// The producer must specify this name to activate the trigger.
7650            #[prost(string, optional, tag="1")]
7651            pub name: ::core::option::Option<::prost::alloc::string::String>,
7652            /// An std::regex that will match the producer that can activate this
7653            /// trigger. This is optional. If unset any producers can activate this
7654            /// trigger.
7655            #[prost(string, optional, tag="2")]
7656            pub producer_name_regex: ::core::option::Option<::prost::alloc::string::String>,
7657            /// After a trigger is received either in START_TRACING or STOP_TRACING
7658            /// mode then the trace will end |stop_delay_ms| after triggering.
7659            /// In CLONE_SNAPSHOT mode, this is the delay between the trigger and the
7660            /// snapshot.
7661            /// If |prefer_suspend_clock_for_duration| is set, the duration will be
7662            /// based on wall-clock, counting also time in suspend.
7663            #[prost(uint32, optional, tag="3")]
7664            pub stop_delay_ms: ::core::option::Option<u32>,
7665            /// Limits the number of traces this trigger can start/stop in a rolling
7666            /// 24 hour window. If this field is unset or zero, no limit is applied and
7667            /// activiation of this trigger *always* starts/stops the trace.
7668            #[prost(uint32, optional, tag="4")]
7669            pub max_per_24_h: ::core::option::Option<u32>,
7670            /// A value between 0 and 1 which encodes the probability of skipping a
7671            /// trigger with this name. This is useful for reducing the probability
7672            /// of high-frequency triggers from dominating trace finaization. If this
7673            /// field is unset or zero, the trigger will *never* be skipped. If this
7674            /// field is greater than or equal to 1, this trigger will *always* be
7675            /// skipped i.e. it will be as if this trigger was never included in the
7676            /// first place.
7677            /// This probability check is applied *before* any other limits. For
7678            /// example, if |max_per_24_h| is also set, first we will check if the
7679            /// probability bar is met and only then will we check the |max_per_24_h|
7680            /// limit.
7681            #[prost(double, optional, tag="5")]
7682            pub skip_probability: ::core::option::Option<f64>,
7683        }
7684        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7685        #[repr(i32)]
7686        pub enum TriggerMode {
7687            Unspecified = 0,
7688            /// When this mode is chosen, data sources are not started until one of the
7689            /// |triggers| are received. This supports early initialization and fast
7690            /// starting of the tracing system. On triggering, the session will then
7691            /// record for |stop_delay_ms|. However if no trigger is seen
7692            /// after |trigger_timeout_ms| the session will be stopped and no data will
7693            /// be returned.
7694            StartTracing = 1,
7695            /// When this mode is chosen, the session will be started via the normal
7696            /// EnableTracing() & StartTracing(). If no trigger is ever seen
7697            /// the session will be stopped after |trigger_timeout_ms| and no data will
7698            /// be returned. However if triggered the trace will stop after
7699            /// |stop_delay_ms| and any data in the buffer will be returned to the
7700            /// consumer.
7701            StopTracing = 2,
7702            /// When this mode is chosen, this causes a snapshot of the current tracing
7703            /// session to be created after |stop_delay_ms| while the current tracing
7704            /// session continues undisturbed (% an extra flush). This mode can be
7705            /// used only when the tracing session is handled by the "perfetto" cmdline
7706            /// client (which is true in 90% of cases). Part of the business logic
7707            /// necessary for this behavior, and ensuing file handling, lives in
7708            /// perfetto_cmd.cc . On other consumers, this causes only a notification
7709            /// of the trigger through a CloneTriggerHit ObservableEvent. The custom
7710            /// consumer is supposed to call CloneSession() itself after the event.
7711            /// Use use_clone_snapshot_if_available=true when targeting older versions
7712            /// of perfetto.
7713            CloneSnapshot = 4,
7714        }
7715        impl TriggerMode {
7716            /// String value of the enum field names used in the ProtoBuf definition.
7717            ///
7718            /// The values are not transformed in any way and thus are considered stable
7719            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7720            pub fn as_str_name(&self) -> &'static str {
7721                match self {
7722                    TriggerMode::Unspecified => "UNSPECIFIED",
7723                    TriggerMode::StartTracing => "START_TRACING",
7724                    TriggerMode::StopTracing => "STOP_TRACING",
7725                    TriggerMode::CloneSnapshot => "CLONE_SNAPSHOT",
7726                }
7727            }
7728        }
7729    }
7730    /// Configuration for trace contents that reference earlier trace data. For
7731    /// example, a data source might intern strings, and emit packets containing
7732    /// {interned id : string} pairs. Future packets from that data source can then
7733    /// use the interned ids instead of duplicating the raw string contents. The
7734    /// trace parser will then need to use that interning table to fully interpret
7735    /// the rest of the trace.
7736    #[derive(Clone, PartialEq, ::prost::Message)]
7737    pub struct IncrementalStateConfig {
7738        /// If nonzero, notify eligible data sources to clear their incremental state
7739        /// periodically, with the given period. The notification is sent only to
7740        /// data sources that have |handles_incremental_state_clear| set in their
7741        /// DataSourceDescriptor. The notification requests that the data source
7742        /// stops referring to past trace contents. This is particularly useful when
7743        /// tracing in ring buffer mode, where it is not exceptional to overwrite old
7744        /// trace data.
7745        ///
7746        /// Warning: this time-based global clearing is likely to be removed in the
7747        /// future, to be replaced with a smarter way of sending the notifications
7748        /// only when necessary.
7749        #[prost(uint32, optional, tag="1")]
7750        pub clear_period_ms: ::core::option::Option<u32>,
7751    }
7752    /// Android-only. Not for general use. If set, saves the trace into an
7753    /// incident. This field is read by perfetto_cmd, rather than the tracing
7754    /// service. This field must be set when passing the --upload flag to
7755    /// perfetto_cmd.
7756    ///
7757    /// In this message, either:
7758    ///   * all of |destination_package|, |destination_class| and |privacy_level|
7759    ///     must be set.
7760    ///   * |skip_incidentd| must be explicitly set to true.
7761    #[derive(Clone, PartialEq, ::prost::Message)]
7762    pub struct IncidentReportConfig {
7763        #[prost(string, optional, tag="1")]
7764        pub destination_package: ::core::option::Option<::prost::alloc::string::String>,
7765        #[prost(string, optional, tag="2")]
7766        pub destination_class: ::core::option::Option<::prost::alloc::string::String>,
7767        /// Level of filtering in the requested incident. See |Destination| in
7768        /// frameworks/base/core/proto/android/privacy.proto.
7769        #[prost(int32, optional, tag="3")]
7770        pub privacy_level: ::core::option::Option<i32>,
7771        /// If true, then skips saving the trace to incidentd.
7772        ///
7773        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
7774        /// or when we explicitly don't want traces to go to incidentd even when they
7775        /// usually would (e.g. configs deployed using statsd but only used for
7776        /// inclusion in bugreports using |bugreport_score|).
7777        ///
7778        /// The motivation for having this flag, instead of just not setting
7779        /// |incident_report_config|, is prevent accidents where
7780        /// |incident_report_config| is omitted by mistake.
7781        #[prost(bool, optional, tag="5")]
7782        pub skip_incidentd: ::core::option::Option<bool>,
7783        /// If true, do not write the trace into dropbox (i.e. incident only).
7784        /// Otherwise, write to both dropbox and incident.
7785        /// TODO(lalitm): remove this field as we no longer use Dropbox.
7786        #[deprecated]
7787        #[prost(bool, optional, tag="4")]
7788        pub skip_dropbox: ::core::option::Option<bool>,
7789    }
7790    /// When set applies a post-filter to the trace contents using the filter
7791    /// provided. The filter is applied at ReadBuffers() time and works both in the
7792    /// case of IPC readback and write_into_file. This filter can be generated
7793    /// using `tools/proto_filter -s schema.proto -F filter_out.bytes` or
7794    /// `-T filter_out.escaped_string` (for .pbtx). See go/trace-filtering for
7795    /// design.
7796    ///
7797    /// Introduced in Android S, but it was broken (b/195065199). Reintroduced in
7798    /// Android T with a different field number. Updated in Android U with a new
7799    /// bytecode version which supports string filtering.
7800    ///
7801    /// =========================
7802    /// Filter bytecode.
7803    /// =========================
7804    #[derive(Clone, PartialEq, ::prost::Message)]
7805    pub struct TraceFilter {
7806        /// The bytecode as implemented in Android T.
7807        #[prost(bytes="vec", optional, tag="1")]
7808        pub bytecode: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7809        /// The bytecode as implemented in Android U. Adds support for string
7810        /// filtering.
7811        #[prost(bytes="vec", optional, tag="2")]
7812        pub bytecode_v2: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7813        #[prost(message, optional, tag="3")]
7814        pub string_filter_chain: ::core::option::Option<trace_filter::StringFilterChain>,
7815        /// Bytecode overlay for Perfetto v54+. This overlay is applied on top of
7816        /// bytecode_v2 to upgrade specific simple fields to new values. Old Perfetto
7817        /// versions ignore this field; new versions apply it.
7818        ///
7819        /// The motivation for this is that adding new opcodes in a backwards
7820        /// compatible way while also minimizing config size is hard. Instead, the
7821        /// overlay mechanism allows us to "patch" specific fields in the original
7822        /// bytecode_v2 with new semantics.
7823        ///
7824        /// See RFC 0011-subset-string-filter-rules.md for more info.
7825        ///
7826        /// Note:
7827        /// Unlike bytecode_v2 (which uses implicit message indices via EndOfMessage
7828        /// markers), this overlay uses a triplet format with explicit indices:
7829        ///    [msg_index, field_id << 3 | opcode, argument] ... \[checksum\]
7830        /// Each entry is exactly 3 varints. The argument is 0 when not needed.
7831        /// Entries must be sorted by (msg_index, field_id).
7832        ///
7833        /// The parser processes bytecode_v2 and this overlay simultaneously:
7834        ///   - any field not mentioned in the overlay is parsed as usual
7835        ///   - any field in the overlay but *not* in the bytecode_v2 is added
7836        ///     with its overlay value
7837        ///   - any field in both the overlay and bytecode_v2 takes the value in the
7838        ///     overlay, the bytecode_v2 value is ignored.
7839        ///
7840        /// Note: despite the name, this was broken in v54 (the overlay was not
7841        /// passed through to the bytecode parser). Only works in v55+.
7842        #[prost(bytes="vec", optional, tag="4")]
7843        pub bytecode_overlay_v54: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7844        /// String filter chain for Perfetto v54+. Rules in this chain either
7845        /// overwrite rules in string_filter_chain (if the name matches) or are
7846        /// appended (if the name doesn't match). This allows modifying existing
7847        /// rules (e.g., changing policy) without duplicating the entire chain.
7848        /// Rules without a name are always appended.
7849        /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7850        /// Introduced in: Perfetto v54.
7851        #[prost(message, optional, tag="5")]
7852        pub string_filter_chain_v54: ::core::option::Option<trace_filter::StringFilterChain>,
7853    }
7854    /// Nested message and enum types in `TraceFilter`.
7855    pub mod trace_filter {
7856        /// A rule specifies how strings should be filtered.
7857        #[derive(Clone, PartialEq, ::prost::Message)]
7858        pub struct StringFilterRule {
7859            /// The policy (i.e. algorithm) dictating how strings matching this rule
7860            /// should be handled.
7861            #[prost(enumeration="StringFilterPolicy", optional, tag="1")]
7862            pub policy: ::core::option::Option<i32>,
7863            /// The regex pattern used to match against each string.
7864            #[prost(string, optional, tag="2")]
7865            pub regex_pattern: ::core::option::Option<::prost::alloc::string::String>,
7866            /// The string which should appear after the tgid in atrace tracepoint
7867            /// strings.
7868            #[prost(string, optional, tag="3")]
7869            pub atrace_payload_starts_with: ::core::option::Option<::prost::alloc::string::String>,
7870            /// Optional name for the rule. When merging chains (e.g. via
7871            /// string_filter_chain_v54), rules with matching names in the newer chain
7872            /// will overwrite rules in the base chain. Rules without a name (empty or
7873            /// unset) are always treated as distinct and will be appended.
7874            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7875            /// Introduced in: Perfetto v54.
7876            #[prost(string, optional, tag="4")]
7877            pub name: ::core::option::Option<::prost::alloc::string::String>,
7878            /// The semantic types this rule applies to.
7879            ///
7880            /// SEMANTIC_TYPE_UNSPECIFIED (0) is treated as its own distinct category:
7881            /// - If empty, the rule applies only to fields with UNSPECIFIED type.
7882            /// - If non-empty, the rule applies only to fields whose semantic type
7883            ///    is explicitly listed. To match UNSPECIFIED fields, you must include
7884            ///    SEMANTIC_TYPE_UNSPECIFIED in the list.
7885            ///
7886            /// Examples:
7887            ///    semantic_type: []           -> matches only UNSPECIFIED fields
7888            ///    semantic_type: \[ATRACE\]     -> matches only ATRACE fields
7889            ///    semantic_type: [UNSPECIFIED, ATRACE] -> matches both
7890            ///
7891            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7892            /// Introduced in: Perfetto v54.
7893            #[prost(enumeration="super::super::SemanticType", repeated, packed="false", tag="5")]
7894            pub semantic_type: ::prost::alloc::vec::Vec<i32>,
7895        }
7896        /// A chain is a list of rules which string will be sequentially checked
7897        /// against.
7898        #[derive(Clone, PartialEq, ::prost::Message)]
7899        pub struct StringFilterChain {
7900            #[prost(message, repeated, tag="1")]
7901            pub rules: ::prost::alloc::vec::Vec<StringFilterRule>,
7902        }
7903        // =========================
7904        // String filtering
7905        // =========================
7906
7907        // The principles and terminology of string filtering is heavily inspired by
7908        // iptables. A "rule" decide how strings should be filtered. Each rule
7909        // contains a "policy" which indicates the algorithm to use for filtering.
7910        // A "chain" is a list of rules which will be sequentially checked against
7911        // each string.
7912        //
7913        // The first rule which applies to the string terminates filtering for that
7914        // string. If no rules apply, the string is left unchanged.
7915
7916        /// A policy specifies which algorithm should be used for filtering the
7917        /// string.
7918        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7919        #[repr(i32)]
7920        pub enum StringFilterPolicy {
7921            SfpUnspecified = 0,
7922            /// Tries to match the string field against |regex_pattern|. If it
7923            /// matches, all matching groups are "redacted" (i.e. replaced with a
7924            /// constant string) and filtering is terminated (i.e. no further rules are
7925            /// checked). If it doesn't match, the string is left unchanged and the
7926            /// next rule in chain is considered.
7927            SfpMatchRedactGroups = 1,
7928            /// Like |SFP_MATCH_REDACT_GROUPS| but tries to do some pre-work before
7929            /// checking the regex. Specifically, it tries to parse the string field as
7930            /// an atrace tracepoint and checks if the post-tgid field starts with
7931            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
7932            /// this check succeeds.
7933            SfpAtraceMatchRedactGroups = 2,
7934            /// Tries to match the string field against |regex_pattern|. If it
7935            /// matches, filtering is terminated (i.e. no further rules are checked).
7936            /// If it doesn't match, the string is left unchanged and the next rule in
7937            /// chain is considered.
7938            SfpMatchBreak = 3,
7939            /// Like |SFP_MATCH_BREAK| but tries to do some pre-work before checking
7940            /// the regex. Specifically, it tries to parse the string field as an
7941            /// atrace tracepoint and checks if the post-tgid field starts with
7942            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
7943            /// this check succeeds.
7944            SfpAtraceMatchBreak = 4,
7945            /// Tries to repeatedly search (i.e. find substrings of) the string field
7946            /// with |regex_pattern|. For each match, redacts any matching groups (i.e.
7947            /// replaced with a constant string). Once there are no further matches,
7948            /// filtering is terminated (i.e. no further rules are checked).
7949            ///
7950            /// Note that this is policy is a "search" policy not a "match" policy
7951            /// unlike the above policies:
7952            ///   * Match policies require matching the full string i.e. there is an
7953            ///     implicit leading `^` and trailing `$`.
7954            ///   * Search policies perform repeated partial matching of the string
7955            ///     e.g.
7956            ///       - String: `foo=aaa,bar=123,foo=bbb,baz=456`
7957            ///       - Pattern: `foo=(\d+)`
7958            ///       - Output: `foo=P6O,bar=123,foo=P6O,baz=456`
7959            ///     where P6O is the redaction string
7960            ///
7961            /// All of this is only performed after some pre-work where we try to parse
7962            /// the string field as an atrace tracepoint and check if the post-tgid
7963            /// field starts with |atrace_post_tgid_starts_with|.
7964            ///
7965            /// If there are no partial matches, the string is left unchanged and the
7966            /// next rule in chain is considered.
7967            SfpAtraceRepeatedSearchRedactGroups = 5,
7968        }
7969        impl StringFilterPolicy {
7970            /// String value of the enum field names used in the ProtoBuf definition.
7971            ///
7972            /// The values are not transformed in any way and thus are considered stable
7973            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7974            pub fn as_str_name(&self) -> &'static str {
7975                match self {
7976                    StringFilterPolicy::SfpUnspecified => "SFP_UNSPECIFIED",
7977                    StringFilterPolicy::SfpMatchRedactGroups => "SFP_MATCH_REDACT_GROUPS",
7978                    StringFilterPolicy::SfpAtraceMatchRedactGroups => "SFP_ATRACE_MATCH_REDACT_GROUPS",
7979                    StringFilterPolicy::SfpMatchBreak => "SFP_MATCH_BREAK",
7980                    StringFilterPolicy::SfpAtraceMatchBreak => "SFP_ATRACE_MATCH_BREAK",
7981                    StringFilterPolicy::SfpAtraceRepeatedSearchRedactGroups => "SFP_ATRACE_REPEATED_SEARCH_REDACT_GROUPS",
7982                }
7983            }
7984        }
7985    }
7986    /// Android-only. Not for general use. If set, reports the trace to the
7987    /// Android framework. This field is read by perfetto_cmd, rather than the
7988    /// tracing service. This field must be set when passing the --upload flag to
7989    /// perfetto_cmd.
7990    ///
7991    /// In this message, either:
7992    ///   * |reporter_service_package| and |reporter_service_class| must be set.
7993    ///   * |skip_reporting| must be explicitly set to true.
7994    #[derive(Clone, PartialEq, ::prost::Message)]
7995    pub struct AndroidReportConfig {
7996        #[prost(string, optional, tag="1")]
7997        pub reporter_service_package: ::core::option::Option<::prost::alloc::string::String>,
7998        #[prost(string, optional, tag="2")]
7999        pub reporter_service_class: ::core::option::Option<::prost::alloc::string::String>,
8000        /// If true, then skips reporting the trace to Android framework.
8001        ///
8002        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
8003        /// or when we explicitly don't want to report traces to the framework even
8004        /// when they usually would (e.g. configs deployed using statsd but only
8005        /// used for inclusion in bugreports using |bugreport_score|).
8006        ///
8007        /// The motivation for having this flag, instead of just not setting
8008        /// |framework_report_config|, is prevent accidents where
8009        /// |framework_report_config| is omitted by mistake.
8010        #[prost(bool, optional, tag="3")]
8011        pub skip_report: ::core::option::Option<bool>,
8012        /// If true, will direct the Android framework to read the data in trace
8013        /// file and pass it to the reporter class over a pipe instead of passing
8014        /// the file descriptor directly.
8015        ///
8016        /// This flag is needed because the Android test framework does not
8017        /// currently support priv-app helper apps (in terms of SELinux) and we
8018        /// really don't want to add an allow rule for untrusted_app to receive
8019        /// trace fds.
8020        ///
8021        /// Because of this, we instead will direct the framework to create a new
8022        /// pipe and pass this to the reporter process instead. As the pipe is
8023        /// created by the framework, we won't have any problems with SELinux
8024        /// (system_server is already allowed to pass pipe fds, even
8025        /// to untrusted apps).
8026        ///
8027        /// As the name suggests this option *MUST* only be used for testing.
8028        /// Note that the framework will reject (and drop) files which are too
8029        /// large both for simplicity and to be minimize the amount of data we
8030        /// pass to a non-priv app (note that the framework will still check
8031        /// manifest permissions even though SELinux permissions are worked around).
8032        #[prost(bool, optional, tag="4")]
8033        pub use_pipe_in_framework_for_testing: ::core::option::Option<bool>,
8034    }
8035    /// If set, delays the start of tracing by a random duration. The duration is
8036    /// chosen from a uniform distribution between the specified minimum and
8037    /// maximum.
8038    /// Note: this delay is implemented by perfetto_cmd *not* by traced so will
8039    /// not work if you communicate with traced directly over the consumer API.
8040    /// Introduced in Android T.
8041    #[derive(Clone, PartialEq, ::prost::Message)]
8042    pub struct CmdTraceStartDelay {
8043        #[prost(uint32, optional, tag="1")]
8044        pub min_delay_ms: ::core::option::Option<u32>,
8045        #[prost(uint32, optional, tag="2")]
8046        pub max_delay_ms: ::core::option::Option<u32>,
8047    }
8048    /// When non-empty, ensures that for a each semaphore named `name at most
8049    /// `max_other_session_count`` *other* sessions (whose value is taken of the
8050    /// minimum of all values specified by this config or any already-running
8051    /// session) can be be running.
8052    ///
8053    /// If a semaphore "acquisition" fails, EnableTracing will return an error
8054    /// and the tracing session will not be started (or elgible to start in
8055    /// the case of deferred sessions).
8056    ///
8057    /// This is easiest to explain with an example. Suppose the tracing service has
8058    /// the following active tracing sessions:
8059    ///    S1 = [{name=foo, max_other_session_count=2},
8060    ///          {name=bar, max_other_session_count=0}]
8061    ///    S2 = [{name=foo, max_other_session_count=1},
8062    ///          {name=baz, max_other_session_count=1}]
8063    ///
8064    /// Then, for a new session, the following would be the expected behaviour of
8065    /// EnableSession given the state of `session_semaphores`.
8066    ///    Q: session_semaphores = []
8067    ///    A: Allowed because it does not specify any semaphores. Will be allowed
8068    ///       no matter the state of any other tracing session.
8069    ///    Q: session_semaphores = [{name=baz, max_other_session_count=1}]
8070    ///    A: Allowed because both S2 and this config specify
8071    ///       max_other_session_count=1 for baz.
8072    ///    Q: session_semaphores = [{name=foo, max_other_session_count=3}]
8073    ///    A: Denied because S2 specified max_other_session_count=1 for foo and S1
8074    ///       takes that slot.
8075    ///    Q: session_semaphores = [{name=bar, max_other_session_count=0}]
8076    ///    A: Denied because S1 takes the the slot specified by both S1 and
8077    ///       this config.
8078    ///
8079    /// Introduced in 24Q3 (Android V).
8080    #[derive(Clone, PartialEq, ::prost::Message)]
8081    pub struct SessionSemaphore {
8082        /// The name of the semaphore. Acts as a unique identifier across all
8083        /// tracing sessions (including the one being started).
8084        #[prost(string, optional, tag="1")]
8085        pub name: ::core::option::Option<::prost::alloc::string::String>,
8086        /// The maximum number of *other* sesssions which specify the same semaphore
8087        /// which can be active. The minimum of this value across all tracing
8088        /// sessions and the value specified by the config is used when deciding
8089        /// whether the tracing session can be started.
8090        #[prost(uint64, optional, tag="2")]
8091        pub max_other_session_count: ::core::option::Option<u64>,
8092    }
8093    /// Allow key, value pairs to save arbitrary data about trace.
8094    #[derive(Clone, PartialEq, ::prost::Message)]
8095    pub struct Note {
8096        /// Required.
8097        #[prost(string, optional, tag="1")]
8098        pub key: ::core::option::Option<::prost::alloc::string::String>,
8099        /// Required.
8100        #[prost(string, optional, tag="2")]
8101        pub value: ::core::option::Option<::prost::alloc::string::String>,
8102    }
8103    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8104    #[repr(i32)]
8105    pub enum LockdownModeOperation {
8106        LockdownUnchanged = 0,
8107        LockdownClear = 1,
8108        LockdownSet = 2,
8109    }
8110    impl LockdownModeOperation {
8111        /// String value of the enum field names used in the ProtoBuf definition.
8112        ///
8113        /// The values are not transformed in any way and thus are considered stable
8114        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8115        pub fn as_str_name(&self) -> &'static str {
8116            match self {
8117                LockdownModeOperation::LockdownUnchanged => "LOCKDOWN_UNCHANGED",
8118                LockdownModeOperation::LockdownClear => "LOCKDOWN_CLEAR",
8119                LockdownModeOperation::LockdownSet => "LOCKDOWN_SET",
8120            }
8121        }
8122    }
8123    /// Compress trace with the given method. Best effort.
8124    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8125    #[repr(i32)]
8126    pub enum CompressionType {
8127        Unspecified = 0,
8128        Deflate = 1,
8129    }
8130    impl CompressionType {
8131        /// String value of the enum field names used in the ProtoBuf definition.
8132        ///
8133        /// The values are not transformed in any way and thus are considered stable
8134        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8135        pub fn as_str_name(&self) -> &'static str {
8136            match self {
8137                CompressionType::Unspecified => "COMPRESSION_TYPE_UNSPECIFIED",
8138                CompressionType::Deflate => "COMPRESSION_TYPE_DEFLATE",
8139            }
8140        }
8141    }
8142    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8143    #[repr(i32)]
8144    pub enum StatsdLogging {
8145        Unspecified = 0,
8146        Enabled = 1,
8147        Disabled = 2,
8148    }
8149    impl StatsdLogging {
8150        /// String value of the enum field names used in the ProtoBuf definition.
8151        ///
8152        /// The values are not transformed in any way and thus are considered stable
8153        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8154        pub fn as_str_name(&self) -> &'static str {
8155            match self {
8156                StatsdLogging::Unspecified => "STATSD_LOGGING_UNSPECIFIED",
8157                StatsdLogging::Enabled => "STATSD_LOGGING_ENABLED",
8158                StatsdLogging::Disabled => "STATSD_LOGGING_DISABLED",
8159            }
8160        }
8161    }
8162    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8163    #[repr(i32)]
8164    pub enum WriteFlushMode {
8165        /// Same as WRITE_FLUSH_AUTO.
8166        WriteFlushUnspecified = 0,
8167        /// Default mode. The service automatically determines the flush frequency
8168        /// to balance performance and data freshness:
8169        /// 1) If file_write_period_ms <= 5s (kDefaultWriteIntoFilePeriodMs):
8170        ///     Flushes are NOT issued on every write. Instead, a periodic flush is
8171        ///     issued every 5s.
8172        /// 2) If file_write_period_ms > 5s:
8173        ///     A flush is issued before every periodic write into the file.
8174        WriteFlushAuto = 1,
8175        // The following modes are intended for advanced usage and not recommended
8176        // for general use.
8177
8178        /// Do not flush buffers before periodic writes into the file.
8179        /// Use this mode if you want to minimize the performance impact of flushes
8180        /// and can tolerate potentially missing the most recent data in the trace
8181        /// file until the end of the session or an explicit flush.
8182        /// When this mode is selected, |flush_period_ms| is respected.
8183        WriteFlushDisabled = 2,
8184        /// Issue a flush before every periodic write into the file.
8185        /// This ensures that each write into the file contains the most up-to-date
8186        /// data from all data sources, but may have a higher performance overhead.
8187        WriteFlushEnabled = 3,
8188    }
8189    impl WriteFlushMode {
8190        /// String value of the enum field names used in the ProtoBuf definition.
8191        ///
8192        /// The values are not transformed in any way and thus are considered stable
8193        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8194        pub fn as_str_name(&self) -> &'static str {
8195            match self {
8196                WriteFlushMode::WriteFlushUnspecified => "WRITE_FLUSH_UNSPECIFIED",
8197                WriteFlushMode::WriteFlushAuto => "WRITE_FLUSH_AUTO",
8198                WriteFlushMode::WriteFlushDisabled => "WRITE_FLUSH_DISABLED",
8199                WriteFlushMode::WriteFlushEnabled => "WRITE_FLUSH_ENABLED",
8200            }
8201        }
8202    }
8203    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8204    #[repr(i32)]
8205    pub enum FFlushMode {
8206        /// Default: same as FFLUSH_DISABLED.
8207        FflushUnspecified = 0,
8208        /// Do not explicitly sync the file to storage after each write pass.
8209        FflushDisabled = 1,
8210        /// Explicitly sync the file to storage (via fdatasync) after each periodic
8211        /// write pass. Increases data durability at the cost of higher disk I/O
8212        /// overhead.
8213        FflushEnabled = 2,
8214    }
8215    impl FFlushMode {
8216        /// String value of the enum field names used in the ProtoBuf definition.
8217        ///
8218        /// The values are not transformed in any way and thus are considered stable
8219        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8220        pub fn as_str_name(&self) -> &'static str {
8221            match self {
8222                FFlushMode::FflushUnspecified => "FFLUSH_UNSPECIFIED",
8223                FFlushMode::FflushDisabled => "FFLUSH_DISABLED",
8224                FFlushMode::FflushEnabled => "FFLUSH_ENABLED",
8225            }
8226        }
8227    }
8228}
8229/// Arguments for rpc EnableTracing().
8230#[derive(Clone, PartialEq, ::prost::Message)]
8231pub struct EnableTracingRequest {
8232    #[prost(message, optional, tag="1")]
8233    pub trace_config: ::core::option::Option<TraceConfig>,
8234    /// Introduced in Android Q. This is used for re-attaching to the end-of-trace
8235    /// EnableTracingResponse notification after a Detach+Attach request.
8236    /// When this flag is set the |trace_config| is ignored and no method is called
8237    /// on the tracing service.
8238    #[prost(bool, optional, tag="2")]
8239    pub attach_notification_only: ::core::option::Option<bool>,
8240}
8241#[derive(Clone, PartialEq, ::prost::Message)]
8242pub struct EnableTracingResponse {
8243    /// If present and non-empty tracing was disabled because of an error.
8244    /// Introduced in Android S.
8245    #[prost(string, optional, tag="3")]
8246    pub error: ::core::option::Option<::prost::alloc::string::String>,
8247    #[prost(oneof="enable_tracing_response::State", tags="1")]
8248    pub state: ::core::option::Option<enable_tracing_response::State>,
8249}
8250/// Nested message and enum types in `EnableTracingResponse`.
8251pub mod enable_tracing_response {
8252    #[derive(Clone, PartialEq, ::prost::Oneof)]
8253    pub enum State {
8254        #[prost(bool, tag="1")]
8255        Disabled(bool),
8256    }
8257}
8258/// Arguments for rpc StartTracing().
8259#[derive(Clone, PartialEq, ::prost::Message)]
8260pub struct StartTracingRequest {
8261}
8262#[derive(Clone, PartialEq, ::prost::Message)]
8263pub struct StartTracingResponse {
8264}
8265/// Arguments for rpc ChangeTraceConfig().
8266#[derive(Clone, PartialEq, ::prost::Message)]
8267pub struct ChangeTraceConfigRequest {
8268    #[prost(message, optional, tag="1")]
8269    pub trace_config: ::core::option::Option<TraceConfig>,
8270}
8271#[derive(Clone, PartialEq, ::prost::Message)]
8272pub struct ChangeTraceConfigResponse {
8273}
8274/// Arguments for rpc DisableTracing().
8275///
8276/// TODO: not supported yet, selectively disable only some data sources.
8277/// repeated string data_source_name;
8278#[derive(Clone, PartialEq, ::prost::Message)]
8279pub struct DisableTracingRequest {
8280}
8281#[derive(Clone, PartialEq, ::prost::Message)]
8282pub struct DisableTracingResponse {
8283}
8284/// Arguments for rpc ReadBuffers().
8285///
8286/// The |id|s of the buffer, as passed to CreateBuffers().
8287/// TODO: repeated uint32 buffer_ids = 1;
8288#[derive(Clone, PartialEq, ::prost::Message)]
8289pub struct ReadBuffersRequest {
8290}
8291/// TODO: uint32 buffer_id = 1;
8292#[derive(Clone, PartialEq, ::prost::Message)]
8293pub struct ReadBuffersResponse {
8294    #[prost(message, repeated, tag="2")]
8295    pub slices: ::prost::alloc::vec::Vec<read_buffers_response::Slice>,
8296}
8297/// Nested message and enum types in `ReadBuffersResponse`.
8298pub mod read_buffers_response {
8299    /// Each streaming reply returns one or more slices for one or more trace
8300    /// packets, or even just a portion of it (if it's too big to fit within one
8301    /// IPC). The returned slices are ordered and contiguous: packets' slices are
8302    /// not interleaved and slices are sent only once all slices for a packet are
8303    /// available (i.e. the consumer will never see any gap).
8304    #[derive(Clone, PartialEq, ::prost::Message)]
8305    pub struct Slice {
8306        #[prost(bytes="vec", optional, tag="1")]
8307        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8308        /// When true, this is the last slice for the packet. A ReadBufferResponse
8309        /// might have no slices marked as |last_slice_for_packet|==true, in the case
8310        /// of a very large packet that gets chunked into several IPCs (in which case
8311        /// only the last IPC for the packet will have this flag set).
8312        #[prost(bool, optional, tag="2")]
8313        pub last_slice_for_packet: ::core::option::Option<bool>,
8314    }
8315}
8316/// Arguments for rpc FreeBuffers().
8317#[derive(Clone, PartialEq, ::prost::Message)]
8318pub struct FreeBuffersRequest {
8319    /// The |id|s of the buffer, as passed to CreateBuffers().
8320    #[prost(uint32, repeated, packed="false", tag="1")]
8321    pub buffer_ids: ::prost::alloc::vec::Vec<u32>,
8322}
8323#[derive(Clone, PartialEq, ::prost::Message)]
8324pub struct FreeBuffersResponse {
8325}
8326/// Arguments for rpc Flush().
8327#[derive(Clone, PartialEq, ::prost::Message)]
8328pub struct FlushRequest {
8329    #[prost(uint32, optional, tag="1")]
8330    pub timeout_ms: ::core::option::Option<u32>,
8331    /// More details such as flush reason and originator. Introduced in v38 / V.
8332    /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8333    #[prost(uint64, optional, tag="2")]
8334    pub flags: ::core::option::Option<u64>,
8335}
8336#[derive(Clone, PartialEq, ::prost::Message)]
8337pub struct FlushResponse {
8338}
8339/// Arguments for rpc Detach
8340#[derive(Clone, PartialEq, ::prost::Message)]
8341pub struct DetachRequest {
8342    #[prost(string, optional, tag="1")]
8343    pub key: ::core::option::Option<::prost::alloc::string::String>,
8344}
8345#[derive(Clone, PartialEq, ::prost::Message)]
8346pub struct DetachResponse {
8347}
8348/// Arguments for rpc Attach.
8349#[derive(Clone, PartialEq, ::prost::Message)]
8350pub struct AttachRequest {
8351    #[prost(string, optional, tag="1")]
8352    pub key: ::core::option::Option<::prost::alloc::string::String>,
8353}
8354#[derive(Clone, PartialEq, ::prost::Message)]
8355pub struct AttachResponse {
8356    #[prost(message, optional, tag="1")]
8357    pub trace_config: ::core::option::Option<TraceConfig>,
8358}
8359// Arguments for rpc GetTraceStats.
8360
8361#[derive(Clone, PartialEq, ::prost::Message)]
8362pub struct GetTraceStatsRequest {
8363}
8364#[derive(Clone, PartialEq, ::prost::Message)]
8365pub struct GetTraceStatsResponse {
8366    #[prost(message, optional, tag="1")]
8367    pub trace_stats: ::core::option::Option<TraceStats>,
8368}
8369// Arguments for rpc ObserveEvents.
8370
8371/// To stop observing events of a certain type, send a request with the remaining
8372/// types. To stop observing completely, send an empty request.
8373#[derive(Clone, PartialEq, ::prost::Message)]
8374pub struct ObserveEventsRequest {
8375    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="1")]
8376    pub events_to_observe: ::prost::alloc::vec::Vec<i32>,
8377}
8378#[derive(Clone, PartialEq, ::prost::Message)]
8379pub struct ObserveEventsResponse {
8380    #[prost(message, optional, tag="1")]
8381    pub events: ::core::option::Option<ObservableEvents>,
8382}
8383/// Arguments for rpc QueryServiceState.
8384#[derive(Clone, PartialEq, ::prost::Message)]
8385pub struct QueryServiceStateRequest {
8386    /// If set, only the TracingServiceState.tracing_sessions is filled. Producers
8387    /// and data sources are omitted.
8388    #[prost(bool, optional, tag="1")]
8389    pub sessions_only: ::core::option::Option<bool>,
8390}
8391#[derive(Clone, PartialEq, ::prost::Message)]
8392pub struct QueryServiceStateResponse {
8393    /// In order to avoid hitting IPC message size limitations, the service will
8394    /// return >1 replies for each query, chunking the TracingServiceState. The
8395    /// receiver is expected to merge replies together and parse that when the
8396    /// last reply is received (i.e. when IPC's |has_more| == false).
8397    #[prost(message, optional, tag="1")]
8398    pub service_state: ::core::option::Option<TracingServiceState>,
8399}
8400/// Arguments for rpc QueryCapabilities.
8401#[derive(Clone, PartialEq, ::prost::Message)]
8402pub struct QueryCapabilitiesRequest {
8403}
8404#[derive(Clone, PartialEq, ::prost::Message)]
8405pub struct QueryCapabilitiesResponse {
8406    #[prost(message, optional, tag="1")]
8407    pub capabilities: ::core::option::Option<TracingServiceCapabilities>,
8408}
8409/// Arguments for rpc SaveTraceForBugreport.
8410#[derive(Clone, PartialEq, ::prost::Message)]
8411pub struct SaveTraceForBugreportRequest {
8412}
8413/// This response is sent only after the trace was saved into file (if succeeded)
8414/// or something failed.
8415#[derive(Clone, PartialEq, ::prost::Message)]
8416pub struct SaveTraceForBugreportResponse {
8417    /// If true, an eligible the trace was saved into a known location (on Android
8418    /// /data/misc/perfetto-traces, see GetBugreportTracePath()).
8419    /// If false no trace with bugreport_score > 0 was found or an error occurred.
8420    /// see |msg| in that case for details about the failure.
8421    #[prost(bool, optional, tag="1")]
8422    pub success: ::core::option::Option<bool>,
8423    #[prost(string, optional, tag="2")]
8424    pub msg: ::core::option::Option<::prost::alloc::string::String>,
8425}
8426/// Arguments for rpc CloneSession.
8427#[derive(Clone, PartialEq, ::prost::Message)]
8428pub struct CloneSessionRequest {
8429    /// If set, the trace filter will not have effect on the cloned session.
8430    /// Used for bugreports.
8431    #[prost(bool, optional, tag="2")]
8432    pub skip_trace_filter: ::core::option::Option<bool>,
8433    /// If set, affects the generation of the FlushFlags::CloneTarget to be set
8434    /// to kBugreport when requesting the flush to the producers.
8435    #[prost(bool, optional, tag="3")]
8436    pub for_bugreport: ::core::option::Option<bool>,
8437    /// If set, this is stored in the trace as name of the trigger that caused the
8438    /// clone.
8439    #[prost(string, optional, tag="5")]
8440    pub clone_trigger_name: ::core::option::Option<::prost::alloc::string::String>,
8441    /// If set, this is stored in the trace as name of the producer that triggered
8442    /// the clone.
8443    #[prost(string, optional, tag="6")]
8444    pub clone_trigger_producer_name: ::core::option::Option<::prost::alloc::string::String>,
8445    /// If set, this is stored in the trace as uid of the producer that triggered
8446    /// the clone.
8447    #[prost(int32, optional, tag="7")]
8448    pub clone_trigger_trusted_producer_uid: ::core::option::Option<i32>,
8449    /// If set, this is stored in the trace as timestamp of the trigger that caused
8450    /// the clone.
8451    #[prost(uint64, optional, tag="8")]
8452    pub clone_trigger_boot_time_ns: ::core::option::Option<u64>,
8453    /// If set, this is stored in the trace as the configured delay of the trigger
8454    /// that caused the clone.
8455    ///
8456    /// Consumer may also send a file descriptor with this rpc message. If the
8457    /// descriptor is valid, and the session that should be cloned is
8458    /// 'write_into_file' session, traced writes the cloned session content to that
8459    /// file descriptor, instead of writing it in the cloned session buffers.
8460    #[prost(uint64, optional, tag="9")]
8461    pub clone_trigger_delay_ms: ::core::option::Option<u64>,
8462    #[prost(oneof="clone_session_request::Selector", tags="1, 4")]
8463    pub selector: ::core::option::Option<clone_session_request::Selector>,
8464}
8465/// Nested message and enum types in `CloneSessionRequest`.
8466pub mod clone_session_request {
8467    #[derive(Clone, PartialEq, ::prost::Oneof)]
8468    pub enum Selector {
8469        /// The session ID to clone. If session_id == kBugreportSessionId (0xff...ff)
8470        /// the session with the highest bugreport score is cloned (if any exists).
8471        #[prost(uint64, tag="1")]
8472        SessionId(u64),
8473        /// The unique_session_name of the tracing session to clone. Tracing sessions
8474        /// that are clones of other tracing sessions are ignored.
8475        #[prost(string, tag="4")]
8476        UniqueSessionName(::prost::alloc::string::String),
8477    }
8478}
8479#[derive(Clone, PartialEq, ::prost::Message)]
8480pub struct CloneSessionResponse {
8481    /// If true, the clone was successful. If false it failed and |error| contains
8482    /// the details about the failure.
8483    #[prost(bool, optional, tag="1")]
8484    pub success: ::core::option::Option<bool>,
8485    #[prost(string, optional, tag="2")]
8486    pub error: ::core::option::Option<::prost::alloc::string::String>,
8487    /// The UUID of the cloned session.
8488    #[prost(int64, optional, tag="3")]
8489    pub uuid_msb: ::core::option::Option<i64>,
8490    #[prost(int64, optional, tag="4")]
8491    pub uuid_lsb: ::core::option::Option<i64>,
8492    /// TracingService sets this when the cloned session was write_into_file=true.
8493    /// The consumer cannot know upfront if a session is WIF or not.
8494    /// Introduced in v53.
8495    #[prost(bool, optional, tag="5")]
8496    pub was_write_into_file: ::core::option::Option<bool>,
8497}
8498#[derive(Clone, PartialEq, ::prost::Message)]
8499pub struct CommitDataRequest {
8500    #[prost(message, repeated, tag="1")]
8501    pub chunks_to_move: ::prost::alloc::vec::Vec<commit_data_request::ChunksToMove>,
8502    #[prost(message, repeated, tag="2")]
8503    pub chunks_to_patch: ::prost::alloc::vec::Vec<commit_data_request::ChunkToPatch>,
8504    /// Optional. If this commit is made in response to a Flush(id) request coming
8505    /// from the service, copy back the id of the request so the service can tell
8506    /// when the flush happened.
8507    #[prost(uint64, optional, tag="3")]
8508    pub flush_request_id: ::core::option::Option<u64>,
8509}
8510/// Nested message and enum types in `CommitDataRequest`.
8511pub mod commit_data_request {
8512    /// When |chunks_to_move| is present, the producer is requesting the service to
8513    /// move the given chunks form the share memory buffer into the central
8514    /// trace buffer(s).
8515    #[derive(Clone, PartialEq, ::prost::Message)]
8516    pub struct ChunksToMove {
8517        /// The 0-based index of the page in the Shared Memory Buffer.
8518        #[prost(uint32, optional, tag="1")]
8519        pub page: ::core::option::Option<u32>,
8520        /// The 0-based chunk index \[0..13\] within the page.
8521        #[prost(uint32, optional, tag="2")]
8522        pub chunk: ::core::option::Option<u32>,
8523        /// The target buffer it should be moved onto. The service will check that
8524        /// the producer is allowed to write into that buffer before the move.
8525        #[prost(uint32, optional, tag="3")]
8526        pub target_buffer: ::core::option::Option<u32>,
8527        /// Sending the chunk data over the wire. Used for transports that don't
8528        /// support shared memory (e.g. vsock or TCP sockets). In the default case
8529        /// (tracing protocol over a Unix socket), this field is not used and tracing
8530        /// data is stored in the shmem buffer and referenced by the fields above.
8531        /// See |use_shemem_emulation| in the codebase for reference.
8532        #[prost(bytes="vec", optional, tag="4")]
8533        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8534        /// Set to true when scraping data in shmem emulation (aka commits-over-ipc)
8535        /// AND the chunk was still in kChunkBeingWritten. This is necessary because
8536        /// in emulation mode, the service cannot tell whether this is a complete
8537        /// chunk coming from a regular TraceWriter commit, or a scraped one.
8538        /// This field is only set when `data` is present. It is never set (and is
8539        /// ignored by the service) for the regular case of doing commits over
8540        /// shmem. Introduced in Perfetto v54.
8541        /// See /rfcs/0010-smb-scraping-remote-producers.md .
8542        #[prost(bool, optional, tag="5")]
8543        pub chunk_incomplete: ::core::option::Option<bool>,
8544    }
8545    /// Used to patch chunks that have already been sent to the service. The chunk
8546    /// might not be in the shared memory buffer anymore as it could have been
8547    /// moved by the service in response to a prior CommitDataRequest.
8548    /// It is perfectly valid to patch a chunk that is being notified in the same
8549    /// message (a chunk can show up both in the |changed_pages| and |patches|
8550    /// field within the same CommitDataRequest message).
8551    /// In other words, |chunks_to_patch| is always processed after
8552    /// |chunks_to_move|.
8553    #[derive(Clone, PartialEq, ::prost::Message)]
8554    pub struct ChunkToPatch {
8555        #[prost(uint32, optional, tag="1")]
8556        pub target_buffer: ::core::option::Option<u32>,
8557        /// {WriterID, ChunkID} uniquely identify a chunk for the current producer.
8558        #[prost(uint32, optional, tag="2")]
8559        pub writer_id: ::core::option::Option<u32>,
8560        #[prost(uint32, optional, tag="3")]
8561        pub chunk_id: ::core::option::Option<u32>,
8562        /// List of patches to apply to the given chunk.
8563        #[prost(message, repeated, tag="4")]
8564        pub patches: ::prost::alloc::vec::Vec<chunk_to_patch::Patch>,
8565        /// When true more patches will follow in future requests and the chunk
8566        /// should be still considered as patch-pending. When false the chunk becomes
8567        /// eligible for reading.
8568        #[prost(bool, optional, tag="5")]
8569        pub has_more_patches: ::core::option::Option<bool>,
8570    }
8571    /// Nested message and enum types in `ChunkToPatch`.
8572    pub mod chunk_to_patch {
8573        #[derive(Clone, PartialEq, ::prost::Message)]
8574        pub struct Patch {
8575            /// Offset in bytes from the start of the chunk payload. e.g., offset == 0
8576            /// corresponds to the first byte of the first packet (or fragment) in the
8577            /// chunk.
8578            #[prost(uint32, optional, tag="1")]
8579            pub offset: ::core::option::Option<u32>,
8580            /// Bytes to patch at the given offset.
8581            #[prost(bytes="vec", optional, tag="2")]
8582            pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8583        }
8584    }
8585}
8586/// Arguments for rpc InitializeConnection().
8587#[derive(Clone, PartialEq, ::prost::Message)]
8588pub struct InitializeConnectionRequest {
8589    /// Optional. Provides a hint to the tracing service about the suggested size
8590    /// of the shared memory buffer pages. The service is not required to respect
8591    /// this if it has already another value in the configuration or if the hint
8592    /// is unreasonably large. Must be an integer multiple of 4096. See tradeoff
8593    /// considerations in shared_memory_abi.h.
8594    #[prost(uint32, optional, tag="1")]
8595    pub shared_memory_page_size_hint_bytes: ::core::option::Option<u32>,
8596    /// Optional. Provides a hint to the tracing service about the suggested size
8597    /// of the shared memory buffer. The service is not required to respect this
8598    /// and might return a smaller buffer.
8599    #[prost(uint32, optional, tag="2")]
8600    pub shared_memory_size_hint_bytes: ::core::option::Option<u32>,
8601    /// Required to match the producer config set by the service to the correct
8602    /// producer.
8603    #[prost(string, optional, tag="3")]
8604    pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
8605    /// If provided, overrides the service's SMB scraping setting for the producer.
8606    #[prost(enumeration="initialize_connection_request::ProducerSmbScrapingMode", optional, tag="4")]
8607    pub smb_scraping_mode: ::core::option::Option<i32>,
8608    // ---------------------------------------------------
8609    // All fields below have been introduced in Android R.
8610    // ---------------------------------------------------
8611
8612    /// Since Android R, this request can also transport an FD for the producer's
8613    /// shared memory buffer, if allocated by the producer (e.g. for startup
8614    /// tracing). In this case, |shared_memory_page_size_hint_bytes| is a required
8615    /// field, and describes the SMB's page size. Note that the service may not
8616    /// accept this SMB (e.g. because it is too old or its size / page size are
8617    /// invalid) and instead allocate a new SMB which is provided in the
8618    /// SetupTracing response. See TracingService::ConnectProducer() and
8619    /// |using_shmem_provided_by_producer| in InitializeConnectionResponse.
8620    #[prost(bool, optional, tag="6")]
8621    pub producer_provided_shmem: ::core::option::Option<bool>,
8622    // ---------------------------------------------------
8623    // All fields below have been introduced in Android S.
8624    // ---------------------------------------------------
8625
8626    /// The version of the client library used by the producer.
8627    /// This is a human readable string with and its format varies depending on
8628    /// the build system that is used to build the code and the repo (standalone
8629    /// vs AOSP). This is intended for human debugging only.
8630    #[prost(string, optional, tag="8")]
8631    pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
8632    /// On Windows, when producer_provided_shmem = true, the client creates a named
8633    /// SHM region and passes the name (an unguessable token) back to the service.
8634    /// Introduced in v13.
8635    #[prost(string, optional, tag="7")]
8636    pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
8637}
8638/// Nested message and enum types in `InitializeConnectionRequest`.
8639pub mod initialize_connection_request {
8640    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8641    #[repr(i32)]
8642    pub enum ProducerSmbScrapingMode {
8643        /// Use the service's default setting for SMB scraping.
8644        SmbScrapingUnspecified = 0,
8645        /// Enable scraping of uncommitted chunks from the producer's shared memory
8646        /// buffer.
8647        SmbScrapingEnabled = 1,
8648        /// Disable scraping of uncommitted chunks from the producer's shared memory
8649        /// buffer.
8650        SmbScrapingDisabled = 2,
8651    }
8652    impl ProducerSmbScrapingMode {
8653        /// String value of the enum field names used in the ProtoBuf definition.
8654        ///
8655        /// The values are not transformed in any way and thus are considered stable
8656        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8657        pub fn as_str_name(&self) -> &'static str {
8658            match self {
8659                ProducerSmbScrapingMode::SmbScrapingUnspecified => "SMB_SCRAPING_UNSPECIFIED",
8660                ProducerSmbScrapingMode::SmbScrapingEnabled => "SMB_SCRAPING_ENABLED",
8661                ProducerSmbScrapingMode::SmbScrapingDisabled => "SMB_SCRAPING_DISABLED",
8662            }
8663        }
8664    }
8665}
8666#[derive(Clone, PartialEq, ::prost::Message)]
8667pub struct InitializeConnectionResponse {
8668    /// Indicates whether the service accepted the SMB provided by the producer in
8669    /// InitializeConnectionRequest (if any). If false, the shared memory buffer FD
8670    /// will provided by the service via the SetupTracing async command.
8671    #[prost(bool, optional, tag="1")]
8672    pub using_shmem_provided_by_producer: ::core::option::Option<bool>,
8673    /// Indicates to the producer that the service allows direct SMB patching of
8674    /// chunks that have not yet been committed to it.
8675    /// This field has been introduced in Android S.
8676    #[prost(bool, optional, tag="2")]
8677    pub direct_smb_patching_supported: ::core::option::Option<bool>,
8678    /// Indicates whether the service would like to use SMB emulation for the
8679    /// connection, and request the client to send chunk data over the socket e.g.
8680    /// for remote connection from a VM guest.
8681    #[prost(bool, optional, tag="3")]
8682    pub use_shmem_emulation: ::core::option::Option<bool>,
8683}
8684// Arguments for rpc RegisterDataSource().
8685
8686#[derive(Clone, PartialEq, ::prost::Message)]
8687pub struct RegisterDataSourceRequest {
8688    #[prost(message, optional, tag="1")]
8689    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
8690}
8691#[derive(Clone, PartialEq, ::prost::Message)]
8692pub struct RegisterDataSourceResponse {
8693    /// Only set in case of errors, when |data_source_id| == 0.
8694    #[prost(string, optional, tag="1")]
8695    pub error: ::core::option::Option<::prost::alloc::string::String>,
8696}
8697// Arguments for rpc UpdateDataSource().
8698
8699#[derive(Clone, PartialEq, ::prost::Message)]
8700pub struct UpdateDataSourceRequest {
8701    /// The new data_source_descriptor.{id, name} must match {id, name} of a
8702    /// data source previously registered via RegisterDataSource().
8703    #[prost(message, optional, tag="1")]
8704    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
8705}
8706#[derive(Clone, PartialEq, ::prost::Message)]
8707pub struct UpdateDataSourceResponse {
8708}
8709// Arguments for rpc UnregisterDataSource().
8710
8711#[derive(Clone, PartialEq, ::prost::Message)]
8712pub struct UnregisterDataSourceRequest {
8713    /// The name of the data source to unregister, as previously passed in
8714    /// |RegisterDataSourceRequest.name|.
8715    #[prost(string, optional, tag="1")]
8716    pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
8717}
8718#[derive(Clone, PartialEq, ::prost::Message)]
8719pub struct UnregisterDataSourceResponse {
8720}
8721// Arguments for rpc RegisterTraceWriter().
8722
8723#[derive(Clone, PartialEq, ::prost::Message)]
8724pub struct RegisterTraceWriterRequest {
8725    /// The ID of a producer's trace writer.
8726    #[prost(uint32, optional, tag="1")]
8727    pub trace_writer_id: ::core::option::Option<u32>,
8728    /// The ID of the target buffer that the trace writer commits its chunks to.
8729    #[prost(uint32, optional, tag="2")]
8730    pub target_buffer: ::core::option::Option<u32>,
8731}
8732#[derive(Clone, PartialEq, ::prost::Message)]
8733pub struct RegisterTraceWriterResponse {
8734}
8735// Arguments for rpc UnregisterTraceWriter().
8736
8737#[derive(Clone, PartialEq, ::prost::Message)]
8738pub struct UnregisterTraceWriterRequest {
8739    /// The ID of a producer's trace writer.
8740    #[prost(uint32, optional, tag="1")]
8741    pub trace_writer_id: ::core::option::Option<u32>,
8742}
8743#[derive(Clone, PartialEq, ::prost::Message)]
8744pub struct UnregisterTraceWriterResponse {
8745}
8746// Arguments for rpc CommitData().
8747// See commit_data_request.proto for CommitDataRequest. That has its own file
8748// because it is used also as input to generate C++ classes (xxx.gen.h).
8749
8750#[derive(Clone, PartialEq, ::prost::Message)]
8751pub struct CommitDataResponse {
8752}
8753// Arguments for rpc NotifyDataSourceStarted().
8754
8755#[derive(Clone, PartialEq, ::prost::Message)]
8756pub struct NotifyDataSourceStartedRequest {
8757    /// ID of the data source that has successfully started.
8758    #[prost(uint64, optional, tag="1")]
8759    pub data_source_id: ::core::option::Option<u64>,
8760}
8761#[derive(Clone, PartialEq, ::prost::Message)]
8762pub struct NotifyDataSourceStartedResponse {
8763}
8764// Arguments for rpc NotifyDataSourceStopped().
8765
8766#[derive(Clone, PartialEq, ::prost::Message)]
8767pub struct NotifyDataSourceStoppedRequest {
8768    /// ID of the data source that has successfully stopped.
8769    #[prost(uint64, optional, tag="1")]
8770    pub data_source_id: ::core::option::Option<u64>,
8771}
8772#[derive(Clone, PartialEq, ::prost::Message)]
8773pub struct NotifyDataSourceStoppedResponse {
8774}
8775// Arguments for rpc ActivateTriggersRequest().
8776
8777#[derive(Clone, PartialEq, ::prost::Message)]
8778pub struct ActivateTriggersRequest {
8779    #[prost(string, repeated, tag="1")]
8780    pub trigger_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
8781}
8782#[derive(Clone, PartialEq, ::prost::Message)]
8783pub struct ActivateTriggersResponse {
8784}
8785// Arguments for rpc GetAsyncCommand().
8786
8787#[derive(Clone, PartialEq, ::prost::Message)]
8788pub struct GetAsyncCommandRequest {
8789}
8790#[derive(Clone, PartialEq, ::prost::Message)]
8791pub struct GetAsyncCommandResponse {
8792    /// Next id: 8.
8793    #[prost(oneof="get_async_command_response::Cmd", tags="3, 6, 1, 2, 5, 7")]
8794    pub cmd: ::core::option::Option<get_async_command_response::Cmd>,
8795}
8796/// Nested message and enum types in `GetAsyncCommandResponse`.
8797pub mod get_async_command_response {
8798    /// Called after SetupTracing and before StartDataSource.
8799    /// This message was introduced in Android Q.
8800    #[derive(Clone, PartialEq, ::prost::Message)]
8801    pub struct SetupDataSource {
8802        #[prost(uint64, optional, tag="1")]
8803        pub new_instance_id: ::core::option::Option<u64>,
8804        #[prost(message, optional, tag="2")]
8805        pub config: ::core::option::Option<super::DataSourceConfig>,
8806    }
8807    #[derive(Clone, PartialEq, ::prost::Message)]
8808    pub struct StartDataSource {
8809        #[prost(uint64, optional, tag="1")]
8810        pub new_instance_id: ::core::option::Option<u64>,
8811        /// For backwards compat reasons (with Android P), the config passed here
8812        /// is identical to the one passed to SetupDataSource.config.
8813        #[prost(message, optional, tag="2")]
8814        pub config: ::core::option::Option<super::DataSourceConfig>,
8815    }
8816    #[derive(Clone, PartialEq, ::prost::Message)]
8817    pub struct StopDataSource {
8818        #[prost(uint64, optional, tag="1")]
8819        pub instance_id: ::core::option::Option<u64>,
8820    }
8821    /// On Android/Linux/Mac this message also transports the file descriptor for
8822    /// the shared memory buffer (not a proto field).
8823    #[derive(Clone, PartialEq, ::prost::Message)]
8824    pub struct SetupTracing {
8825        #[prost(uint32, optional, tag="1")]
8826        pub shared_buffer_page_size_kb: ::core::option::Option<u32>,
8827        /// On Windows, instead, we pass the name (an unguessable token) of a shared
8828        /// memory region that can be attached by the other process by name.
8829        /// Introduced in v13.
8830        #[prost(string, optional, tag="2")]
8831        pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
8832    }
8833    #[derive(Clone, PartialEq, ::prost::Message)]
8834    pub struct Flush {
8835        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8836        /// sources to flush.
8837        #[prost(uint64, repeated, packed="false", tag="1")]
8838        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8839        /// A monotonic counter generated by the service. The producer is simply
8840        /// expected to copy this value back into the CommitDataRequest, so the
8841        /// service can tell when the data for this flush has been committed.
8842        #[prost(uint64, optional, tag="2")]
8843        pub request_id: ::core::option::Option<u64>,
8844        /// More details such as flush reason and originator. Introduced in v38 / V.
8845        /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8846        #[prost(uint64, optional, tag="3")]
8847        pub flags: ::core::option::Option<u64>,
8848    }
8849    /// Instructs the given data sources to stop referring to any trace contents
8850    /// emitted so far. Sent only to active data sources that set
8851    /// |handles_incremental_state_clear| in their DataSourceDescriptor.
8852    ///
8853    /// Added to perfetto tree in May 2019.
8854    #[derive(Clone, PartialEq, ::prost::Message)]
8855    pub struct ClearIncrementalState {
8856        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8857        /// sources that should clear their incremental state.
8858        #[prost(uint64, repeated, packed="false", tag="1")]
8859        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8860    }
8861    /// Next id: 8.
8862    #[derive(Clone, PartialEq, ::prost::Oneof)]
8863    pub enum Cmd {
8864        #[prost(message, tag="3")]
8865        SetupTracing(SetupTracing),
8866        #[prost(message, tag="6")]
8867        SetupDataSource(SetupDataSource),
8868        #[prost(message, tag="1")]
8869        StartDataSource(StartDataSource),
8870        #[prost(message, tag="2")]
8871        StopDataSource(StopDataSource),
8872        /// id == 4 was teardown_tracing, never implemented.
8873        #[prost(message, tag="5")]
8874        Flush(Flush),
8875        #[prost(message, tag="7")]
8876        ClearIncrementalState(ClearIncrementalState),
8877    }
8878}
8879/// Arguments for rpc Sync().
8880#[derive(Clone, PartialEq, ::prost::Message)]
8881pub struct SyncRequest {
8882}
8883#[derive(Clone, PartialEq, ::prost::Message)]
8884pub struct SyncResponse {
8885}
8886#[derive(Clone, PartialEq, ::prost::Message)]
8887pub struct IpcFrame {
8888    /// The client is expected to send requests with monotonically increasing
8889    /// request_id. The host will match the request_id sent from the client.
8890    /// In the case of a Streaming response (has_more = true) the host will send
8891    /// several InvokeMethodReply with the same request_id.
8892    #[prost(uint64, optional, tag="2")]
8893    pub request_id: ::core::option::Option<u64>,
8894    /// Used only in unittests to generate a parsable message of arbitrary size.
8895    #[prost(bytes="vec", repeated, tag="1")]
8896    pub data_for_testing: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
8897    #[prost(oneof="ipc_frame::Msg", tags="3, 4, 5, 6, 7, 8")]
8898    pub msg: ::core::option::Option<ipc_frame::Msg>,
8899}
8900/// Nested message and enum types in `IPCFrame`.
8901pub mod ipc_frame {
8902    /// Client -> Host.
8903    #[derive(Clone, PartialEq, ::prost::Message)]
8904    pub struct BindService {
8905        #[prost(string, optional, tag="1")]
8906        pub service_name: ::core::option::Option<::prost::alloc::string::String>,
8907    }
8908    /// Host -> Client.
8909    #[derive(Clone, PartialEq, ::prost::Message)]
8910    pub struct BindServiceReply {
8911        #[prost(bool, optional, tag="1")]
8912        pub success: ::core::option::Option<bool>,
8913        #[prost(uint32, optional, tag="2")]
8914        pub service_id: ::core::option::Option<u32>,
8915        #[prost(message, repeated, tag="3")]
8916        pub methods: ::prost::alloc::vec::Vec<bind_service_reply::MethodInfo>,
8917    }
8918    /// Nested message and enum types in `BindServiceReply`.
8919    pub mod bind_service_reply {
8920        #[derive(Clone, PartialEq, ::prost::Message)]
8921        pub struct MethodInfo {
8922            #[prost(uint32, optional, tag="1")]
8923            pub id: ::core::option::Option<u32>,
8924            #[prost(string, optional, tag="2")]
8925            pub name: ::core::option::Option<::prost::alloc::string::String>,
8926        }
8927    }
8928    /// Client -> Host.
8929    #[derive(Clone, PartialEq, ::prost::Message)]
8930    pub struct InvokeMethod {
8931        /// BindServiceReply.id.
8932        #[prost(uint32, optional, tag="1")]
8933        pub service_id: ::core::option::Option<u32>,
8934        /// BindServiceReply.method.id.
8935        #[prost(uint32, optional, tag="2")]
8936        pub method_id: ::core::option::Option<u32>,
8937        /// Proto-encoded request argument.
8938        #[prost(bytes="vec", optional, tag="3")]
8939        pub args_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8940        /// When true the client specifies that a reply is not needed. The use case
8941        /// is a method with an empty, where the client doesn't care about the
8942        /// success/failure of the method invocation and rather prefers avoiding the
8943        /// IPC roundtrip + context switch associated with the reply.
8944        #[prost(bool, optional, tag="4")]
8945        pub drop_reply: ::core::option::Option<bool>,
8946    }
8947    /// Host -> Client.
8948    #[derive(Clone, PartialEq, ::prost::Message)]
8949    pub struct InvokeMethodReply {
8950        #[prost(bool, optional, tag="1")]
8951        pub success: ::core::option::Option<bool>,
8952        /// only for streaming RPCs.
8953        #[prost(bool, optional, tag="2")]
8954        pub has_more: ::core::option::Option<bool>,
8955        /// proto-encoded response value.
8956        #[prost(bytes="vec", optional, tag="3")]
8957        pub reply_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8958    }
8959    /// Host -> Client.
8960    #[derive(Clone, PartialEq, ::prost::Message)]
8961    pub struct RequestError {
8962        #[prost(string, optional, tag="1")]
8963        pub error: ::core::option::Option<::prost::alloc::string::String>,
8964    }
8965    /// Client (relay service) -> Host. This is generated by the relay service to
8966    /// fill the producer identity in the guest. This message is sent to the host
8967    /// service *before* any IPCFrame is from a local producer is relayed. This is
8968    /// accepted only on AF_VSOCK and AF_INET sockets, where we cannot validate the
8969    /// endpoont of the connection. for AF_UNIX sockets, this is ignored and traced
8970    /// uses instead the SO_PEERCRED.
8971    #[derive(Clone, PartialEq, ::prost::Message)]
8972    pub struct SetPeerIdentity {
8973        /// The UID and PID of the producer process.
8974        #[prost(int32, optional, tag="1")]
8975        pub pid: ::core::option::Option<i32>,
8976        #[prost(int32, optional, tag="2")]
8977        pub uid: ::core::option::Option<i32>,
8978        /// The hint for the tracing service to infer the machine ID. This field
8979        /// should satisfy the requriement that different machines should have
8980        /// different values. In practice, this filed contains the Linux kernel
8981        /// boot_id, or a hash of kernel bootup timestamp and uname(2) if boot_id
8982        /// isn't available.
8983        #[prost(string, optional, tag="3")]
8984        pub machine_id_hint: ::core::option::Option<::prost::alloc::string::String>,
8985        /// Human-readable name associated to the producer's machine. Provides the
8986        /// tracing service a new dimension to filter data sources on. Given the
8987        /// perfetto machine name is provided by users, there is no expectation of
8988        /// uniqueness across machines in a tracing session.
8989        #[prost(string, optional, tag="4")]
8990        pub machine_name: ::core::option::Option<::prost::alloc::string::String>,
8991    }
8992    #[derive(Clone, PartialEq, ::prost::Oneof)]
8993    pub enum Msg {
8994        #[prost(message, tag="3")]
8995        MsgBindService(BindService),
8996        #[prost(message, tag="4")]
8997        MsgBindServiceReply(BindServiceReply),
8998        #[prost(message, tag="5")]
8999        MsgInvokeMethod(InvokeMethod),
9000        #[prost(message, tag="6")]
9001        MsgInvokeMethodReply(InvokeMethodReply),
9002        #[prost(message, tag="7")]
9003        MsgRequestError(RequestError),
9004        #[prost(message, tag="8")]
9005        SetPeerIdentity(SetPeerIdentity),
9006    }
9007}