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    /// optional.  Minimum sampling period supported by the producer in
128    /// nanoseconds.
129    #[prost(uint64, optional, tag="3")]
130    pub min_sampling_period_ns: ::core::option::Option<u64>,
131    /// optional.  Maximum sampling period supported by the producer in
132    /// nanoseconds.
133    #[prost(uint64, optional, tag="4")]
134    pub max_sampling_period_ns: ::core::option::Option<u64>,
135    /// optional.  The producer supports counter sampling by instrumenting the
136    /// command buffer.
137    #[prost(bool, optional, tag="5")]
138    pub supports_instrumented_sampling: ::core::option::Option<bool>,
139}
140/// Nested message and enum types in `GpuCounterDescriptor`.
141pub mod gpu_counter_descriptor {
142    #[derive(Clone, PartialEq, ::prost::Message)]
143    pub struct GpuCounterSpec {
144        #[prost(uint32, optional, tag="1")]
145        pub counter_id: ::core::option::Option<u32>,
146        #[prost(string, optional, tag="2")]
147        pub name: ::core::option::Option<::prost::alloc::string::String>,
148        #[prost(string, optional, tag="3")]
149        pub description: ::core::option::Option<::prost::alloc::string::String>,
150        #[prost(enumeration="MeasureUnit", repeated, packed="false", tag="7")]
151        pub numerator_units: ::prost::alloc::vec::Vec<i32>,
152        #[prost(enumeration="MeasureUnit", repeated, packed="false", tag="8")]
153        pub denominator_units: ::prost::alloc::vec::Vec<i32>,
154        #[prost(bool, optional, tag="9")]
155        pub select_by_default: ::core::option::Option<bool>,
156        #[prost(enumeration="GpuCounterGroup", repeated, packed="false", tag="10")]
157        pub groups: ::prost::alloc::vec::Vec<i32>,
158        #[prost(oneof="gpu_counter_spec::PeakValue", tags="5, 6")]
159        pub peak_value: ::core::option::Option<gpu_counter_spec::PeakValue>,
160    }
161    /// Nested message and enum types in `GpuCounterSpec`.
162    pub mod gpu_counter_spec {
163        #[derive(Clone, PartialEq, ::prost::Oneof)]
164        pub enum PeakValue {
165            #[prost(int64, tag="5")]
166            IntPeakValue(i64),
167            #[prost(double, tag="6")]
168            DoublePeakValue(f64),
169        }
170    }
171    /// Allow producer to group counters into block to represent counter islands.
172    /// A capacity may be specified to indicate the number of counters that can be
173    /// enable simultaneously in that block.
174    #[derive(Clone, PartialEq, ::prost::Message)]
175    pub struct GpuCounterBlock {
176        /// required. Unique ID for the counter group.
177        #[prost(uint32, optional, tag="1")]
178        pub block_id: ::core::option::Option<u32>,
179        /// optional. Number of counters supported by the block. No limit if unset.
180        #[prost(uint32, optional, tag="2")]
181        pub block_capacity: ::core::option::Option<u32>,
182        /// optional. Name of block.
183        #[prost(string, optional, tag="3")]
184        pub name: ::core::option::Option<::prost::alloc::string::String>,
185        /// optional. Description for the block.
186        #[prost(string, optional, tag="4")]
187        pub description: ::core::option::Option<::prost::alloc::string::String>,
188        /// list of counters that are part of the block.
189        #[prost(uint32, repeated, packed="false", tag="5")]
190        pub counter_ids: ::prost::alloc::vec::Vec<u32>,
191    }
192    /// Logical groups for a counter.  This is used in the UI to present the
193    /// related counters together.
194    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
195    #[repr(i32)]
196    pub enum GpuCounterGroup {
197        Unclassified = 0,
198        System = 1,
199        Vertices = 2,
200        Fragments = 3,
201        Primitives = 4,
202        /// Includes counters relating to caching and bandwidth.
203        Memory = 5,
204        Compute = 6,
205        RayTracing = 7,
206    }
207    impl GpuCounterGroup {
208        /// String value of the enum field names used in the ProtoBuf definition.
209        ///
210        /// The values are not transformed in any way and thus are considered stable
211        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
212        pub fn as_str_name(&self) -> &'static str {
213            match self {
214                GpuCounterGroup::Unclassified => "UNCLASSIFIED",
215                GpuCounterGroup::System => "SYSTEM",
216                GpuCounterGroup::Vertices => "VERTICES",
217                GpuCounterGroup::Fragments => "FRAGMENTS",
218                GpuCounterGroup::Primitives => "PRIMITIVES",
219                GpuCounterGroup::Memory => "MEMORY",
220                GpuCounterGroup::Compute => "COMPUTE",
221                GpuCounterGroup::RayTracing => "RAY_TRACING",
222            }
223        }
224    }
225    /// next id: 41
226    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
227    #[repr(i32)]
228    pub enum MeasureUnit {
229        None = 0,
230        Bit = 1,
231        Kilobit = 2,
232        Megabit = 3,
233        Gigabit = 4,
234        Terabit = 5,
235        Petabit = 6,
236        Byte = 7,
237        Kilobyte = 8,
238        Megabyte = 9,
239        Gigabyte = 10,
240        Terabyte = 11,
241        Petabyte = 12,
242        Hertz = 13,
243        Kilohertz = 14,
244        Megahertz = 15,
245        Gigahertz = 16,
246        Terahertz = 17,
247        Petahertz = 18,
248        Nanosecond = 19,
249        Microsecond = 20,
250        Millisecond = 21,
251        Second = 22,
252        Minute = 23,
253        Hour = 24,
254        Vertex = 25,
255        Pixel = 26,
256        Triangle = 27,
257        Primitive = 38,
258        Fragment = 39,
259        Milliwatt = 28,
260        Watt = 29,
261        Kilowatt = 30,
262        Joule = 31,
263        Volt = 32,
264        Ampere = 33,
265        Celsius = 34,
266        Fahrenheit = 35,
267        Kelvin = 36,
268        /// Values should be out of 100.
269        Percent = 37,
270        Instruction = 40,
271    }
272    impl MeasureUnit {
273        /// String value of the enum field names used in the ProtoBuf definition.
274        ///
275        /// The values are not transformed in any way and thus are considered stable
276        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
277        pub fn as_str_name(&self) -> &'static str {
278            match self {
279                MeasureUnit::None => "NONE",
280                MeasureUnit::Bit => "BIT",
281                MeasureUnit::Kilobit => "KILOBIT",
282                MeasureUnit::Megabit => "MEGABIT",
283                MeasureUnit::Gigabit => "GIGABIT",
284                MeasureUnit::Terabit => "TERABIT",
285                MeasureUnit::Petabit => "PETABIT",
286                MeasureUnit::Byte => "BYTE",
287                MeasureUnit::Kilobyte => "KILOBYTE",
288                MeasureUnit::Megabyte => "MEGABYTE",
289                MeasureUnit::Gigabyte => "GIGABYTE",
290                MeasureUnit::Terabyte => "TERABYTE",
291                MeasureUnit::Petabyte => "PETABYTE",
292                MeasureUnit::Hertz => "HERTZ",
293                MeasureUnit::Kilohertz => "KILOHERTZ",
294                MeasureUnit::Megahertz => "MEGAHERTZ",
295                MeasureUnit::Gigahertz => "GIGAHERTZ",
296                MeasureUnit::Terahertz => "TERAHERTZ",
297                MeasureUnit::Petahertz => "PETAHERTZ",
298                MeasureUnit::Nanosecond => "NANOSECOND",
299                MeasureUnit::Microsecond => "MICROSECOND",
300                MeasureUnit::Millisecond => "MILLISECOND",
301                MeasureUnit::Second => "SECOND",
302                MeasureUnit::Minute => "MINUTE",
303                MeasureUnit::Hour => "HOUR",
304                MeasureUnit::Vertex => "VERTEX",
305                MeasureUnit::Pixel => "PIXEL",
306                MeasureUnit::Triangle => "TRIANGLE",
307                MeasureUnit::Primitive => "PRIMITIVE",
308                MeasureUnit::Fragment => "FRAGMENT",
309                MeasureUnit::Milliwatt => "MILLIWATT",
310                MeasureUnit::Watt => "WATT",
311                MeasureUnit::Kilowatt => "KILOWATT",
312                MeasureUnit::Joule => "JOULE",
313                MeasureUnit::Volt => "VOLT",
314                MeasureUnit::Ampere => "AMPERE",
315                MeasureUnit::Celsius => "CELSIUS",
316                MeasureUnit::Fahrenheit => "FAHRENHEIT",
317                MeasureUnit::Kelvin => "KELVIN",
318                MeasureUnit::Percent => "PERCENT",
319                MeasureUnit::Instruction => "INSTRUCTION",
320            }
321        }
322    }
323}
324#[derive(Clone, PartialEq, ::prost::Message)]
325pub struct TrackEventCategory {
326    #[prost(string, optional, tag="1")]
327    pub name: ::core::option::Option<::prost::alloc::string::String>,
328    #[prost(string, optional, tag="2")]
329    pub description: ::core::option::Option<::prost::alloc::string::String>,
330    #[prost(string, repeated, tag="3")]
331    pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
332}
333#[derive(Clone, PartialEq, ::prost::Message)]
334pub struct TrackEventDescriptor {
335    #[prost(message, repeated, tag="1")]
336    pub available_categories: ::prost::alloc::vec::Vec<TrackEventCategory>,
337}
338#[derive(Clone, PartialEq, ::prost::Message)]
339pub struct VmProgram {
340    #[prost(uint32, optional, tag="1")]
341    pub version: ::core::option::Option<u32>,
342    #[prost(message, repeated, tag="2")]
343    pub instructions: ::prost::alloc::vec::Vec<VmInstruction>,
344}
345#[derive(Clone, PartialEq, ::prost::Message)]
346pub struct VmInstruction {
347    #[prost(enumeration="vm_instruction::AbortLevel", optional, tag="6")]
348    pub abort_level: ::core::option::Option<i32>,
349    /// Sub-instructions executed if the current instruction succeeds
350    #[prost(message, repeated, tag="7")]
351    pub nested_instructions: ::prost::alloc::vec::Vec<VmInstruction>,
352    #[prost(oneof="vm_instruction::Operation", tags="1, 2, 3, 4, 5")]
353    pub operation: ::core::option::Option<vm_instruction::Operation>,
354}
355/// Nested message and enum types in `VmInstruction`.
356pub mod vm_instruction {
357    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
358    #[repr(i32)]
359    pub enum AbortLevel {
360        /// Skip current instruction but execute following ones
361        SkipCurrentInstruction = 1,
362        /// Skip current instruction as well as following ones (default)
363        SkipCurrentInstructionAndBreakOuter = 2,
364        /// Abort whole program
365        Abort = 3,
366    }
367    impl AbortLevel {
368        /// String value of the enum field names used in the ProtoBuf definition.
369        ///
370        /// The values are not transformed in any way and thus are considered stable
371        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
372        pub fn as_str_name(&self) -> &'static str {
373            match self {
374                AbortLevel::SkipCurrentInstruction => "SKIP_CURRENT_INSTRUCTION",
375                AbortLevel::SkipCurrentInstructionAndBreakOuter => "SKIP_CURRENT_INSTRUCTION_AND_BREAK_OUTER",
376                AbortLevel::Abort => "ABORT",
377            }
378        }
379    }
380    #[derive(Clone, PartialEq, ::prost::Oneof)]
381    pub enum Operation {
382        #[prost(message, tag="1")]
383        Select(super::VmOpSelect),
384        #[prost(message, tag="2")]
385        RegLoad(super::VmOpRegLoad),
386        #[prost(message, tag="3")]
387        Merge(super::VmOpMerge),
388        #[prost(message, tag="4")]
389        Set(super::VmOpSet),
390        #[prost(message, tag="5")]
391        Del(super::VmOpDel),
392    }
393}
394#[derive(Clone, PartialEq, ::prost::Message)]
395pub struct VmOpSelect {
396    /// Enum SRC|DST|BOTH. Default=SRC.
397    #[prost(enumeration="VmCursorEnum", optional, tag="1")]
398    pub cursor: ::core::option::Option<i32>,
399    #[prost(message, repeated, tag="2")]
400    pub relative_path: ::prost::alloc::vec::Vec<vm_op_select::PathComponent>,
401    /// Creates the submessage if doesn't exist in the DST cursor
402    /// (think of mkdir -p). Only valid when cursor=DST|BOTH.
403    #[prost(bool, optional, tag="3")]
404    pub create_if_not_exist: ::core::option::Option<bool>,
405}
406/// Nested message and enum types in `VmOpSelect`.
407pub mod vm_op_select {
408    /// A path component is either: (1) a field id to descend into (common case);
409    /// (2) an array index (for repeated fields); (3) a map lookup operation (for
410    /// repeated fields, where we snoop a sub-field as a map key)
411    #[derive(Clone, PartialEq, ::prost::Message)]
412    pub struct PathComponent {
413        // When we are selecting a leaf field, tell what's the field type
414        // to disambiguate integer types. Using uint64 by default will likely
415        // do the right thing in 99% cases (so probably we don't need to impl
416        // this until much later if somebody does a map with a fixed64 key)
417        // enum ProtoFieldType field_type = 4;  // bool | int32 | fixed32 | ...
418
419        /// Only valid when using field_id. This makes select have foreach
420        /// semantics. This means that the body of nested_instructions is
421        /// executed several times, once per each repeated submessage.
422        #[prost(bool, optional, tag="5")]
423        pub is_repeated: ::core::option::Option<bool>,
424        /// Only valid when using map_key_field_id. This defines which
425        /// register (R1..R32) should be used to match the key of the dict
426        /// in a map lookup operation.
427        /// In other words:
428        /// foreach msg in repeated message {
429        ///    if msg\[map_key_field_id\] == R\[register_to_match\] {
430        ///       break;  // Lookup succeeded, PathComponent resolves here.
431        ///    }
432        /// }
433        #[prost(uint32, optional, tag="6")]
434        pub register_to_match: ::core::option::Option<u32>,
435        /// Only valid when using field_id and is_repeated=true. When iterating
436        /// over repeated fields, stores the current iteration index into the
437        /// the register R1..R32 defined below. This can be used to do complex
438        /// operations like "find the entry in the array that has width==100,
439        /// remember its offset in the SRC array and overwrite the matching
440        /// i-th element in the DST array. We will probably never implement
441        /// this but it's here for completeness.
442        #[prost(uint32, optional, tag="7")]
443        pub store_foreach_index_into_register: ::core::option::Option<u32>,
444        #[prost(oneof="path_component::Field", tags="1, 2, 3")]
445        pub field: ::core::option::Option<path_component::Field>,
446    }
447    /// Nested message and enum types in `PathComponent`.
448    pub mod path_component {
449        #[derive(Clone, PartialEq, ::prost::Oneof)]
450        pub enum Field {
451            #[prost(uint32, tag="1")]
452            FieldId(u32),
453            #[prost(uint32, tag="2")]
454            ArrayIndex(u32),
455            /// The ID of the field in the repeated submessage that we
456            /// use as a key (e.g. LayerState.layer_id). When setting this
457            /// register_to_match must also be set, to tell what's the
458            /// expected value of the key we are looking up.
459            #[prost(uint32, tag="3")]
460            MapKeyFieldId(u32),
461        }
462    }
463}
464#[derive(Clone, PartialEq, ::prost::Message)]
465pub struct VmOpRegLoad {
466    /// SRC(default) | DST.
467    #[prost(enumeration="VmCursorEnum", optional, tag="1")]
468    pub cursor: ::core::option::Option<i32>,
469    /// 1=R1, 2=R2... 32=R32
470    #[prost(uint32, optional, tag="2")]
471    pub dst_register: ::core::option::Option<u32>,
472}
473/// Merges SRC into DST. Both need to point to a message (not a field).
474#[derive(Clone, PartialEq, ::prost::Message)]
475pub struct VmOpMerge {
476}
477/// Copies SRC into DST. If a message, replaces the DST node, discarding any
478/// pre-existing field.
479#[derive(Clone, PartialEq, ::prost::Message)]
480pub struct VmOpSet {
481}
482/// Delete the field or message pointed by DST.
483#[derive(Clone, PartialEq, ::prost::Message)]
484pub struct VmOpDel {
485}
486#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
487#[repr(i32)]
488pub enum VmCursorEnum {
489    VmCursorUnspecified = 0,
490    VmCursorSrc = 1,
491    VmCursorDst = 2,
492    VmCursorBoth = 3,
493}
494impl VmCursorEnum {
495    /// String value of the enum field names used in the ProtoBuf definition.
496    ///
497    /// The values are not transformed in any way and thus are considered stable
498    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
499    pub fn as_str_name(&self) -> &'static str {
500        match self {
501            VmCursorEnum::VmCursorUnspecified => "VM_CURSOR_UNSPECIFIED",
502            VmCursorEnum::VmCursorSrc => "VM_CURSOR_SRC",
503            VmCursorEnum::VmCursorDst => "VM_CURSOR_DST",
504            VmCursorEnum::VmCursorBoth => "VM_CURSOR_BOTH",
505        }
506    }
507}
508/// This message is sent from Producer(s) to the tracing Service when registering
509/// to advertise their capabilities. It describes the structure of tracing
510/// protos that will be produced by the data source and the supported filters.
511#[derive(Clone, PartialEq, ::prost::Message)]
512pub struct DataSourceDescriptor {
513    /// e.g., "linux.ftrace", "chromium.tracing"
514    #[prost(string, optional, tag="1")]
515    pub name: ::core::option::Option<::prost::alloc::string::String>,
516    /// When non-zero, this is a unique ID within the scope of the Producer for
517    /// this data source (it is NOT globally unique). This is useful to
518    /// differentiate between data sources with matching names when calling
519    /// UpdateDataSource(). This field has been introduced in November 2021
520    /// (v22, Android T) and is not supported on older versions.
521    #[prost(uint64, optional, tag="7")]
522    pub id: ::core::option::Option<u64>,
523    /// When true the data source is expected to ack the stop request through the
524    /// NotifyDataSourceStopped() IPC. This field has been introduced after
525    /// Android P in Jul 2018 and is not supported on older versions.
526    #[prost(bool, optional, tag="2")]
527    pub will_notify_on_stop: ::core::option::Option<bool>,
528    /// When true the data source is expected to ack the start request through the
529    /// NotifyDataSourceStarted() IPC. This field has been introduced after
530    /// Android P in March 2019 and is not supported on older versions.
531    #[prost(bool, optional, tag="3")]
532    pub will_notify_on_start: ::core::option::Option<bool>,
533    /// If true, opt into receiving the ClearIncrementalState() IPC. This should be
534    /// set if the data source writes packets that refer to previous trace
535    /// contents, and knows how to stop referring to the already-emitted data.
536    #[prost(bool, optional, tag="4")]
537    pub handles_incremental_state_clear: ::core::option::Option<bool>,
538    /// If true, indicates that the data source does nothing upon Flush. This
539    /// allows the service to reduce the flush-related IPC traffic and better deal
540    /// with frozen producers (see go/perfetto-frozen). This is usually the case
541    /// for data sources like 'track_event' that don't have access to the various
542    /// thread task runners to post a flush task and rely purely on server-side
543    /// scraping.
544    /// Introduced in v39 / Android V.
545    #[prost(bool, optional, tag="9")]
546    pub no_flush: ::core::option::Option<bool>,
547    /// If present, the tracing service executes this program within a ProtoVM to
548    /// process overwritten packets (patches). The service computes a hash of the
549    /// program to detect and disambiguate between different versions; if multiple
550    /// versions (from different producers) are specified for the same data source,
551    /// the service instantiates a dedicated ProtoVM for each.
552    #[prost(message, optional, tag="10")]
553    pub protovm_program: ::core::option::Option<VmProgram>,
554    /// Optional specification about available GPU counters.
555    #[prost(message, optional, tag="5")]
556    pub gpu_counter_descriptor: ::core::option::Option<GpuCounterDescriptor>,
557    #[prost(message, optional, tag="6")]
558    pub track_event_descriptor: ::core::option::Option<TrackEventDescriptor>,
559    #[prost(message, optional, tag="8")]
560    pub ftrace_descriptor: ::core::option::Option<FtraceDescriptor>,
561}
562/// Reports the state of the tracing service. Used to gather details about the
563/// data sources connected.
564/// See ConsumerPort::QueryServiceState().
565#[derive(Clone, PartialEq, ::prost::Message)]
566pub struct TracingServiceState {
567    /// Lists all the producers connected.
568    #[prost(message, repeated, tag="1")]
569    pub producers: ::prost::alloc::vec::Vec<tracing_service_state::Producer>,
570    /// Lists the data sources available.
571    #[prost(message, repeated, tag="2")]
572    pub data_sources: ::prost::alloc::vec::Vec<tracing_service_state::DataSource>,
573    /// Lists the tracing sessions active AND owned by a consumer that has the same
574    /// UID of the caller (or all of them if the caller is root).
575    /// Introduced in v24 / Android T.
576    #[prost(message, repeated, tag="6")]
577    pub tracing_sessions: ::prost::alloc::vec::Vec<tracing_service_state::TracingSession>,
578    /// This is always set to true from v24 and beyond. This flag is only used to
579    /// tell the difference between: (1) talking to a recent service which happens
580    /// to have no tracing session active; (2) talking to an older version of the
581    /// service which will never report any tracing session.
582    #[prost(bool, optional, tag="7")]
583    pub supports_tracing_sessions: ::core::option::Option<bool>,
584    /// Total number of tracing sessions.
585    #[prost(int32, optional, tag="3")]
586    pub num_sessions: ::core::option::Option<i32>,
587    /// Number of tracing sessions in the started state. Always <= num_sessions.
588    #[prost(int32, optional, tag="4")]
589    pub num_sessions_started: ::core::option::Option<i32>,
590    /// The version of traced (the same returned by `traced --version`).
591    /// This is a human readable string with and its format varies depending on
592    /// the build system and the repo (standalone vs AOSP).
593    /// This is intended for human debugging only.
594    #[prost(string, optional, tag="5")]
595    pub tracing_service_version: ::core::option::Option<::prost::alloc::string::String>,
596}
597/// Nested message and enum types in `TracingServiceState`.
598pub mod tracing_service_state {
599    /// Describes a producer process.
600    #[derive(Clone, PartialEq, ::prost::Message)]
601    pub struct Producer {
602        /// Unique ID of the producer (monotonic counter).
603        #[prost(int32, optional, tag="1")]
604        pub id: ::core::option::Option<i32>,
605        /// Typically matches the process name.
606        #[prost(string, optional, tag="2")]
607        pub name: ::core::option::Option<::prost::alloc::string::String>,
608        /// Unix pid of the remote process. Supported only on Linux-based systems.
609        /// Introduced in v24 / Android T.
610        #[prost(int32, optional, tag="5")]
611        pub pid: ::core::option::Option<i32>,
612        /// Unix uid of the remote process.
613        #[prost(int32, optional, tag="3")]
614        pub uid: ::core::option::Option<i32>,
615        /// The version of the client library used by the producer.
616        /// This is a human readable string with and its format varies depending on
617        /// the build system and the repo (standalone vs AOSP).
618        /// This is intended for human debugging only.
619        #[prost(string, optional, tag="4")]
620        pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
621        /// Returns true if the process appears to be frozen (Android only).
622        /// Introduced in Perfetto V49 / Android 24Q4.
623        #[prost(bool, optional, tag="6")]
624        pub frozen: ::core::option::Option<bool>,
625    }
626    /// Describes a data source registered by a producer. Data sources are listed
627    /// regardless of the fact that they are being used or not.
628    #[derive(Clone, PartialEq, ::prost::Message)]
629    pub struct DataSource {
630        /// Descriptor passed by the data source when calling RegisterDataSource().
631        #[prost(message, optional, tag="1")]
632        pub ds_descriptor: ::core::option::Option<super::DataSourceDescriptor>,
633        /// ID of the producer, as per Producer.id.
634        #[prost(int32, optional, tag="2")]
635        pub producer_id: ::core::option::Option<i32>,
636    }
637    #[derive(Clone, PartialEq, ::prost::Message)]
638    pub struct TracingSession {
639        /// The TracingSessionID.
640        #[prost(uint64, optional, tag="1")]
641        pub id: ::core::option::Option<u64>,
642        /// The Unix uid of the consumer that started the session.
643        /// This is meaningful only if the caller is root. In all other cases only
644        /// tracing sessions that match the caller UID will be displayed.
645        #[prost(int32, optional, tag="2")]
646        pub consumer_uid: ::core::option::Option<i32>,
647        /// Internal state of the tracing session.
648        /// These strings are FYI only and subjected to change.
649        #[prost(string, optional, tag="3")]
650        pub state: ::core::option::Option<::prost::alloc::string::String>,
651        /// The unique_session_name as set in the trace config (might be empty).
652        #[prost(string, optional, tag="4")]
653        pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
654        /// The number and size of each buffer.
655        #[prost(uint32, repeated, packed="false", tag="5")]
656        pub buffer_size_kb: ::prost::alloc::vec::Vec<u32>,
657        /// Duration, as specified in the TraceConfig.duration_ms.
658        #[prost(uint32, optional, tag="6")]
659        pub duration_ms: ::core::option::Option<u32>,
660        /// Number of data sources involved in the session.
661        #[prost(uint32, optional, tag="7")]
662        pub num_data_sources: ::core::option::Option<u32>,
663        /// Time when the session was started, in the CLOCK_REALTIME domain.
664        /// Available only on Linux-based systems.
665        #[prost(int64, optional, tag="8")]
666        pub start_realtime_ns: ::core::option::Option<i64>,
667        // The fields below have been introduced in v42.
668
669        /// The bugreport_score, as set in TraceConfig.bugreport_score.
670        #[prost(int32, optional, tag="9")]
671        pub bugreport_score: ::core::option::Option<i32>,
672        /// As per TraceConfig.bugreport_filename.
673        #[prost(string, optional, tag="10")]
674        pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
675        /// If true, the session is in the STARTED state. If false the session is in
676        /// any other state (see `state` field).
677        #[prost(bool, optional, tag="11")]
678        pub is_started: ::core::option::Option<bool>,
679    }
680}
681#[derive(Clone, PartialEq, ::prost::Message)]
682pub struct TracingServiceCapabilities {
683    /// Whether the service supports QueryCapabilities() at all or not.
684    /// This is only used at the C++ level to distinguish the case of talking to
685    /// an older version of the service that doesn't support QueryCapabilities().
686    /// In that case the IPC layer will just reject the unknown call, and the
687    /// consumer_ipc_client_impl.cc will return an empty message where this field
688    /// is false. In all other cases, this is always set to true.
689    #[prost(bool, optional, tag="1")]
690    pub has_query_capabilities: ::core::option::Option<bool>,
691    /// The set of known events that can be passed to ConsumerPort.ObserveEvents().
692    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="2")]
693    pub observable_events: ::prost::alloc::vec::Vec<i32>,
694    /// Whether the service supports TraceConfig.output_path (for asking traced to
695    /// create the output file instead of passing a file descriptor).
696    #[prost(bool, optional, tag="3")]
697    pub has_trace_config_output_path: ::core::option::Option<bool>,
698    /// Whether the service supports CloneSession and CLONE_SNAPSHOT triggers.
699    #[prost(bool, optional, tag="4")]
700    pub has_clone_session: ::core::option::Option<bool>,
701}
702/// Statistics for the internals of the tracing service.
703///
704/// Next id: 19.
705#[derive(Clone, PartialEq, ::prost::Message)]
706pub struct TraceStats {
707    /// Stats for the TraceBuffer(s) of the current trace session.
708    #[prost(message, repeated, tag="1")]
709    pub buffer_stats: ::prost::alloc::vec::Vec<trace_stats::BufferStats>,
710    /// The thresholds of each the `writer_stats` histogram buckets. This is
711    /// emitted only once as all WriterStats share the same bucket layout.
712    /// This field has the same cardinality of the
713    /// `writer_stats.chunk_payload_histogram_{counts,sum}` - 1.
714    /// (The -1 is because the last overflow bucket is not reported in the _def).
715    /// An array of values [10, 100, 1000] in the _def array means that there are
716    /// four buckets (3 + the implicit overflow bucket):
717    /// \[0\]: x <= 10; \[1\]: 100 < x <= 1000; \[2\]: 1000 < x <= 1000; \[3\]: x > 1000.
718    #[prost(int64, repeated, packed="false", tag="17")]
719    pub chunk_payload_histogram_def: ::prost::alloc::vec::Vec<i64>,
720    #[prost(message, repeated, tag="18")]
721    pub writer_stats: ::prost::alloc::vec::Vec<trace_stats::WriterStats>,
722    /// Num. producers connected (whether they are involved in the current tracing
723    /// session or not).
724    #[prost(uint32, optional, tag="2")]
725    pub producers_connected: ::core::option::Option<u32>,
726    /// Num. producers ever seen for all trace sessions since startup (it's a good
727    /// proxy for inferring num. producers crashed / killed).
728    #[prost(uint64, optional, tag="3")]
729    pub producers_seen: ::core::option::Option<u64>,
730    /// Num. data sources registered for all trace sessions.
731    #[prost(uint32, optional, tag="4")]
732    pub data_sources_registered: ::core::option::Option<u32>,
733    /// Num. data sources ever seen for all trace sessions since startup.
734    #[prost(uint64, optional, tag="5")]
735    pub data_sources_seen: ::core::option::Option<u64>,
736    /// Num. concurrently active tracing sessions.
737    #[prost(uint32, optional, tag="6")]
738    pub tracing_sessions: ::core::option::Option<u32>,
739    /// Num. buffers for all tracing session (not just the current one). This will
740    /// be >= buffer_stats.size(), because the latter is only about the current
741    /// session.
742    #[prost(uint32, optional, tag="7")]
743    pub total_buffers: ::core::option::Option<u32>,
744    // The fields below have been introduced in Android Q.
745
746    /// Num. chunks that were discarded by the service before attempting to commit
747    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
748    #[prost(uint64, optional, tag="8")]
749    pub chunks_discarded: ::core::option::Option<u64>,
750    /// Num. patches that were discarded by the service before attempting to apply
751    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
752    #[prost(uint64, optional, tag="9")]
753    pub patches_discarded: ::core::option::Option<u64>,
754    /// Packets that failed validation of the TrustedPacket. If this is > 0, there
755    /// is a bug in the producer.
756    #[prost(uint64, optional, tag="10")]
757    pub invalid_packets: ::core::option::Option<u64>,
758    #[prost(message, optional, tag="11")]
759    pub filter_stats: ::core::option::Option<trace_stats::FilterStats>,
760    /// Count of Flush() requests (either from the Consumer, or self-induced
761    /// periodic flushes). The final Flush() is also included in the count.
762    #[prost(uint64, optional, tag="12")]
763    pub flushes_requested: ::core::option::Option<u64>,
764    /// The count of the Flush() requests that were completed successfully.
765    /// In a well behaving trace this should always be == `flush_requests`.
766    #[prost(uint64, optional, tag="13")]
767    pub flushes_succeeded: ::core::option::Option<u64>,
768    /// The count of the Flush() requests that failed (in most timed out).
769    /// In a well behaving trace this should always be == 0.
770    #[prost(uint64, optional, tag="14")]
771    pub flushes_failed: ::core::option::Option<u64>,
772    #[prost(enumeration="trace_stats::FinalFlushOutcome", optional, tag="15")]
773    pub final_flush_outcome: ::core::option::Option<i32>,
774}
775/// Nested message and enum types in `TraceStats`.
776pub mod trace_stats {
777    /// From TraceBuffer::Stats.
778    ///
779    /// Next id: 22.
780    #[derive(Clone, PartialEq, ::prost::Message)]
781    pub struct BufferStats {
782        /// Size of the circular buffer in bytes.
783        #[prost(uint64, optional, tag="12")]
784        pub buffer_size: ::core::option::Option<u64>,
785        /// Num. bytes written into the circular buffer, including chunk headers.
786        #[prost(uint64, optional, tag="1")]
787        pub bytes_written: ::core::option::Option<u64>,
788        /// Num. bytes overwritten before they have been read (i.e. loss of data).
789        #[prost(uint64, optional, tag="13")]
790        pub bytes_overwritten: ::core::option::Option<u64>,
791        /// Total size of chunks that were fully read from the circular buffer by the
792        /// consumer. This may not be equal to |bytes_written| either in the middle
793        /// of tracing, or if |chunks_overwritten| is non-zero. Note that this is the
794        /// size of the chunks read from the buffer, including chunk headers, which
795        /// will be different from the total size of packets returned to the
796        /// consumer.
797        ///
798        /// The current utilization of the trace buffer (mid-tracing) can be obtained
799        /// by subtracting |bytes_read| and |bytes_overwritten| from |bytes_written|,
800        /// adding the difference of |padding_bytes_written| and
801        /// |padding_bytes_cleared|, and comparing this sum to the |buffer_size|.
802        /// Note that this represents the total size of buffered data in the buffer,
803        /// yet this data may be spread non-contiguously through the buffer and may
804        /// be overridden before the utilization reaches 100%.
805        #[prost(uint64, optional, tag="14")]
806        pub bytes_read: ::core::option::Option<u64>,
807        /// Num. bytes that were allocated as padding between chunks in the circular
808        /// buffer.
809        #[prost(uint64, optional, tag="15")]
810        pub padding_bytes_written: ::core::option::Option<u64>,
811        /// Num. of padding bytes that were removed from the circular buffer when
812        /// they were overwritten.
813        ///
814        /// The difference between |padding_bytes_written| and
815        /// |padding_bytes_cleared| denotes the total size of padding currently
816        /// present in the buffer.
817        #[prost(uint64, optional, tag="16")]
818        pub padding_bytes_cleared: ::core::option::Option<u64>,
819        /// Num. chunks (!= packets) written into the buffer.
820        #[prost(uint64, optional, tag="2")]
821        pub chunks_written: ::core::option::Option<u64>,
822        /// Num. chunks (!= packets) rewritten into the buffer. This means we rewrote
823        /// the same chunk with additional packets appended to the end.
824        #[prost(uint64, optional, tag="10")]
825        pub chunks_rewritten: ::core::option::Option<u64>,
826        /// Num. chunks overwritten before they have been read (i.e. loss of data).
827        #[prost(uint64, optional, tag="3")]
828        pub chunks_overwritten: ::core::option::Option<u64>,
829        /// Num. chunks discarded (i.e. loss of data). Can be > 0 only when a buffer
830        /// is configured with FillPolicy == DISCARD.
831        #[prost(uint64, optional, tag="18")]
832        pub chunks_discarded: ::core::option::Option<u64>,
833        /// Num. chunks (!= packets) that were fully read from the circular buffer by
834        /// the consumer. This may not be equal to |chunks_written| either in the
835        /// middle of tracing, or if |chunks_overwritten| is non-zero.
836        #[prost(uint64, optional, tag="17")]
837        pub chunks_read: ::core::option::Option<u64>,
838        /// Num. chunks that were committed out of order.
839        #[prost(uint64, optional, tag="11")]
840        pub chunks_committed_out_of_order: ::core::option::Option<u64>,
841        /// Num. times the ring buffer wrapped around.
842        #[prost(uint64, optional, tag="4")]
843        pub write_wrap_count: ::core::option::Option<u64>,
844        /// Num. out-of-band (OOB) patches that succeeded.
845        #[prost(uint64, optional, tag="5")]
846        pub patches_succeeded: ::core::option::Option<u64>,
847        /// Num. OOB patches that failed (e.g., the chunk to patch was gone).
848        #[prost(uint64, optional, tag="6")]
849        pub patches_failed: ::core::option::Option<u64>,
850        /// Num. readaheads (for large multi-chunk packet reads) that ended up in a
851        /// successful packet read.
852        #[prost(uint64, optional, tag="7")]
853        pub readaheads_succeeded: ::core::option::Option<u64>,
854        /// Num. readaheads aborted because of missing chunks in the sequence stream.
855        /// Note that a small number > 0 is totally expected: occasionally, when
856        /// issuing a read, the very last packet in a sequence might be incomplete
857        /// (because the producer is still writing it while we read). The read will
858        /// stop at that point, for that sequence, increasing this counter.
859        #[prost(uint64, optional, tag="8")]
860        pub readaheads_failed: ::core::option::Option<u64>,
861        /// Num. of violations of the SharedMemoryABI found while writing or reading
862        /// the buffer. This is an indication of either a bug in the producer(s) or
863        /// malicious producer(s).
864        #[prost(uint64, optional, tag="9")]
865        pub abi_violations: ::core::option::Option<u64>,
866        // The fields below have been introduced in Android R.
867
868        /// Num. of times the service detected packet loss on a trace writer
869        /// sequence. This is usually caused by exhaustion of available chunks in the
870        /// writer process's SMB. Note that this relies on the client's TraceWriter
871        /// indicating this loss to the service -- packets lost for other reasons are
872        /// not reflected in this stat.
873        #[prost(uint64, optional, tag="19")]
874        pub trace_writer_packet_loss: ::core::option::Option<u64>,
875        #[prost(message, optional, tag="21")]
876        pub shadow_buffer_stats: ::core::option::Option<buffer_stats::ShadowBufferStats>,
877    }
878    /// Nested message and enum types in `BufferStats`.
879    pub mod buffer_stats {
880        /// Statistics for TRACE_BUFFER_V2_SHADOW_MODE comparison.
881        /// Only populated when the buffer is configured with shadow mode.
882        #[derive(Clone, PartialEq, ::prost::Message)]
883        pub struct ShadowBufferStats {
884            /// Total num. packets read. This is not affected by capping of the hasher
885            /// to 32K elements.
886            #[prost(uint64, optional, tag="1")]
887            pub packets_seen: ::core::option::Option<u64>,
888            // The stats below are keps only for 32k packets. After reading 32K
889            // packets hashes are randomly evicted and that might lead to slightly
890            // inconsistent results.
891
892            /// Num. packets found in both V1 and V2 buffers (matched by content hash).
893            #[prost(uint64, optional, tag="2")]
894            pub packets_in_both: ::core::option::Option<u64>,
895            /// Num. packets found only in V1 buffer but not in V2.
896            #[prost(uint64, optional, tag="3")]
897            pub packets_only_v1: ::core::option::Option<u64>,
898            /// Num. packets found only in V2 buffer but not in V1.
899            #[prost(uint64, optional, tag="4")]
900            pub packets_only_v2: ::core::option::Option<u64>,
901            /// Num. patch operations attempted.
902            #[prost(uint64, optional, tag="5")]
903            pub patches_attempted: ::core::option::Option<u64>,
904            /// Num. patches that succeeded on V1 buffer.
905            #[prost(uint64, optional, tag="6")]
906            pub v1_patches_succeeded: ::core::option::Option<u64>,
907            /// Num. patches that succeeded on V2 buffer.
908            #[prost(uint64, optional, tag="7")]
909            pub v2_patches_succeeded: ::core::option::Option<u64>,
910            /// This is to distinguish the updated calculations after fixing the
911            /// hashes. This field is either empty or "2"
912            #[prost(uint32, optional, tag="8")]
913            pub stats_version: ::core::option::Option<u32>,
914        }
915    }
916    /// Per TraceWriter stat. Each {producer, trace writer} tuple is publicly
917    /// visible as a unique sequence ID in the trace.
918    #[derive(Clone, PartialEq, ::prost::Message)]
919    pub struct WriterStats {
920        /// This matches the TracePacket.trusted_packet_sequence_id and is used to
921        /// correlate the stats with the actual packet types.
922        #[prost(uint64, optional, tag="1")]
923        pub sequence_id: ::core::option::Option<u64>,
924        /// The buffer index (0..N, as defined in the TraceConfig).
925        #[prost(uint32, optional, tag="4")]
926        pub buffer: ::core::option::Option<u32>,
927        /// These two arrays have the same cardinality and match the cardinality of
928        /// chunk_payload_histogram_def + 1 (for the overflow bucket, see below).
929        /// `sum` contains the SUM(entries) and `counts` contains the COUNT(entries)
930        /// for each bucket.
931        #[prost(uint64, repeated, tag="2")]
932        pub chunk_payload_histogram_counts: ::prost::alloc::vec::Vec<u64>,
933        #[prost(int64, repeated, tag="3")]
934        pub chunk_payload_histogram_sum: ::prost::alloc::vec::Vec<i64>,
935    }
936    /// This is set only when the TraceConfig specifies a TraceFilter.
937    #[derive(Clone, PartialEq, ::prost::Message)]
938    pub struct FilterStats {
939        #[prost(uint64, optional, tag="1")]
940        pub input_packets: ::core::option::Option<u64>,
941        #[prost(uint64, optional, tag="2")]
942        pub input_bytes: ::core::option::Option<u64>,
943        #[prost(uint64, optional, tag="3")]
944        pub output_bytes: ::core::option::Option<u64>,
945        #[prost(uint64, optional, tag="4")]
946        pub errors: ::core::option::Option<u64>,
947        #[prost(uint64, optional, tag="5")]
948        pub time_taken_ns: ::core::option::Option<u64>,
949        /// The number of bytes discarded by the filter (i.e. output - input).
950        /// The array has one entry for each buffer defined in the config (unless no
951        /// packets for that buffer were seen and hence filtered).
952        /// Note: the SUM(bytes_discarded_per_buffer) will be <= but not == the total
953        /// (output_bytes - input_bytes) because the filter might also discard
954        /// server-generated synthetic packets, that have no buffer index.
955        #[prost(uint64, repeated, packed="false", tag="20")]
956        pub bytes_discarded_per_buffer: ::prost::alloc::vec::Vec<u64>,
957    }
958    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
959    #[repr(i32)]
960    pub enum FinalFlushOutcome {
961        FinalFlushUnspecified = 0,
962        FinalFlushSucceeded = 1,
963        FinalFlushFailed = 2,
964    }
965    impl FinalFlushOutcome {
966        /// String value of the enum field names used in the ProtoBuf definition.
967        ///
968        /// The values are not transformed in any way and thus are considered stable
969        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
970        pub fn as_str_name(&self) -> &'static str {
971            match self {
972                FinalFlushOutcome::FinalFlushUnspecified => "FINAL_FLUSH_UNSPECIFIED",
973                FinalFlushOutcome::FinalFlushSucceeded => "FINAL_FLUSH_SUCCEEDED",
974                FinalFlushOutcome::FinalFlushFailed => "FINAL_FLUSH_FAILED",
975            }
976        }
977    }
978}
979/// Builtin clock domains used in Perfetto traces.
980///
981/// The default trace time clock is BUILTIN_CLOCK_TRACE_FILE: a synthetic clock
982/// representing the trace file's own timeline. Each trace file gets its own
983/// instance (scoped by trace file index).
984///
985/// For backwards compatibility, Perfetto proto traces register BOOTTIME as a
986/// fallback: if the first timestamp conversion uses a clock other than the
987/// trace file clock and no explicit clock snapshot data exists, the trace time
988/// is switched to BOOTTIME. This fallback does not fire for modern traces that
989/// include ClockSnapshots or that only use the trace file clock directly.
990///
991/// The `primary_trace_clock` field in ClockSnapshot can definitively override
992/// the trace time clock regardless of the above.
993#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
994#[repr(i32)]
995pub enum BuiltinClock {
996    Unknown = 0,
997    /// Corresponds to CLOCK_REALTIME. See clock_gettime(2).
998    Realtime = 1,
999    /// Corresponds to CLOCK_REALTIME_COARSE. See clock_gettime(2).
1000    RealtimeCoarse = 2,
1001    /// Corresponds to CLOCK_MONOTONIC. See clock_gettime(2).
1002    Monotonic = 3,
1003    /// Corresponds to CLOCK_MONOTONIC_COARSE. See clock_gettime(2).
1004    MonotonicCoarse = 4,
1005    /// Corresponds to CLOCK_MONOTONIC_RAW. See clock_gettime(2).
1006    MonotonicRaw = 5,
1007    /// Corresponds to CLOCK_BOOTTIME. See clock_gettime(2).
1008    /// For proto traces, this is used as a backwards-compatible fallback trace
1009    /// time clock when no explicit clock snapshots are present.
1010    Boottime = 6,
1011    /// TSC (Time Stamp Counter). Architecture-specific high-resolution counter.
1012    Tsc = 9,
1013    /// Corresponds to the perf event clock (PERF_CLOCK).
1014    Perf = 10,
1015    /// A synthetic clock representing the trace file's own timeline. Each trace
1016    /// file gets its own instance (scoped by trace file index). This is the
1017    /// default trace time clock before any clock snapshot or format-specific
1018    /// override takes effect.
1019    TraceFile = 11,
1020    MaxId = 63,
1021}
1022impl BuiltinClock {
1023    /// String value of the enum field names used in the ProtoBuf definition.
1024    ///
1025    /// The values are not transformed in any way and thus are considered stable
1026    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1027    pub fn as_str_name(&self) -> &'static str {
1028        match self {
1029            BuiltinClock::Unknown => "BUILTIN_CLOCK_UNKNOWN",
1030            BuiltinClock::Realtime => "BUILTIN_CLOCK_REALTIME",
1031            BuiltinClock::RealtimeCoarse => "BUILTIN_CLOCK_REALTIME_COARSE",
1032            BuiltinClock::Monotonic => "BUILTIN_CLOCK_MONOTONIC",
1033            BuiltinClock::MonotonicCoarse => "BUILTIN_CLOCK_MONOTONIC_COARSE",
1034            BuiltinClock::MonotonicRaw => "BUILTIN_CLOCK_MONOTONIC_RAW",
1035            BuiltinClock::Boottime => "BUILTIN_CLOCK_BOOTTIME",
1036            BuiltinClock::Tsc => "BUILTIN_CLOCK_TSC",
1037            BuiltinClock::Perf => "BUILTIN_CLOCK_PERF",
1038            BuiltinClock::TraceFile => "BUILTIN_CLOCK_TRACE_FILE",
1039            BuiltinClock::MaxId => "BUILTIN_CLOCK_MAX_ID",
1040        }
1041    }
1042}
1043/// Semantic types for string fields. This tells the filter what kind of
1044/// data the field contains, so it can apply the right filtering rules.
1045/// See /rfcs/0011-subset-string-filter-rules.md for design details.
1046/// Introduced in: Perfetto v54.
1047#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1048#[repr(i32)]
1049pub enum SemanticType {
1050    Unspecified = 0,
1051    Atrace = 1,
1052    Job = 2,
1053    Wakelock = 3,
1054}
1055impl SemanticType {
1056    /// String value of the enum field names used in the ProtoBuf definition.
1057    ///
1058    /// The values are not transformed in any way and thus are considered stable
1059    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1060    pub fn as_str_name(&self) -> &'static str {
1061        match self {
1062            SemanticType::Unspecified => "SEMANTIC_TYPE_UNSPECIFIED",
1063            SemanticType::Atrace => "SEMANTIC_TYPE_ATRACE",
1064            SemanticType::Job => "SEMANTIC_TYPE_JOB",
1065            SemanticType::Wakelock => "SEMANTIC_TYPE_WAKELOCK",
1066        }
1067    }
1068}
1069/// Options for the android.aflags data source.
1070/// This data source captures snapshots of Android aconfig flags.
1071/// See <https://source.android.com/docs/setup/build/feature-flagging/declare-flag>
1072/// for more information on aconfig flags.
1073#[derive(Clone, PartialEq, ::prost::Message)]
1074pub struct AndroidAflagsConfig {
1075    /// Frequency of polling. If absent or 0, the state will be recorded once,
1076    /// at the start of the trace.
1077    ///
1078    /// It is recommended to either leave this absent or set it to a large
1079    /// value as each invocation of the `aflags` tool can be time consuming
1080    /// (approx. 350ms) and also triggers an expensive flush. This is required to
1081    /// be > 1000ms if set, to avoid excessive CPU usage.
1082    #[prost(uint32, optional, tag="1")]
1083    pub poll_ms: ::core::option::Option<u32>,
1084}
1085/// Data source that lists game modes and game interventions of games
1086/// on an Android device.
1087#[derive(Clone, PartialEq, ::prost::Message)]
1088pub struct AndroidGameInterventionListConfig {
1089    /// If not empty, emit info about only the following list of package names
1090    /// (exact match, no regex). Otherwise, emit info about all packages.
1091    #[prost(string, repeated, tag="1")]
1092    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1093}
1094/// Custom configuration for the "android.input.inputevent" data source.
1095///
1096/// NOTE: Input traces can only be taken on debuggable (userdebug/eng) builds!
1097///
1098/// Next ID: 5
1099#[derive(Clone, PartialEq, ::prost::Message)]
1100pub struct AndroidInputEventConfig {
1101    /// The tracing mode to use. If unspecified, it will default to
1102    /// TRACE_MODE_USE_RULES.
1103    #[prost(enumeration="android_input_event_config::TraceMode", optional, tag="1")]
1104    pub mode: ::core::option::Option<i32>,
1105    /// The list of rules to use to determine the trace level of events.
1106    /// Each event will be traced using the TraceLevel of the first rule that it
1107    /// triggers from this list. The rules are evaluated in the order in which they
1108    /// are specified. If an event does not match any of the rules,
1109    /// TRACE_LEVEL_NONE will be used by default.
1110    #[prost(message, repeated, tag="2")]
1111    pub rules: ::prost::alloc::vec::Vec<android_input_event_config::TraceRule>,
1112    // --- Control flags ---
1113
1114    /// Trace input events processed by the system as they are being dispatched
1115    /// to application windows. All trace rules will apply.
1116    ///    - If this flag is used without enabling trace_dispatcher_window_dispatch,
1117    ///    it will
1118    ///      trace InputDispatcher's inbound events (which does not include events
1119    ///      synthesized within InputDispatcher) that match the rules.
1120    ///    - If used with trace_dispatcher_window_dispatch, all inbound and outbound
1121    ///    events
1122    ///      matching the rules, including all events synthesized within
1123    ///      InputDispatcher, will be traced.
1124    #[prost(bool, optional, tag="3")]
1125    pub trace_dispatcher_input_events: ::core::option::Option<bool>,
1126    /// Trace details about which windows the system is sending each input event
1127    /// to. All trace rules will apply.
1128    #[prost(bool, optional, tag="4")]
1129    pub trace_dispatcher_window_dispatch: ::core::option::Option<bool>,
1130}
1131/// Nested message and enum types in `AndroidInputEventConfig`.
1132pub mod android_input_event_config {
1133    /// A rule that specifies the TraceLevel for an event based on matching
1134    /// conditions. All matchers in the rule are optional. To trigger this rule, an
1135    /// event must match all of its specified matchers (i.e. the matchers function
1136    /// like a series of conditions connected by a logical 'AND' operator). A rule
1137    /// with no specified matchers will match all events. Next ID: 6
1138    #[derive(Clone, PartialEq, ::prost::Message)]
1139    pub struct TraceRule {
1140        /// The trace level to be used for events that trigger this rule.
1141        /// If unspecified, TRACE_LEVEL_NONE will be used by default.
1142        #[prost(enumeration="TraceLevel", optional, tag="1")]
1143        pub trace_level: ::core::option::Option<i32>,
1144        // --- Optional Matchers ---
1145
1146        /// Package matchers
1147        ///
1148        /// Respectively matches if all or any of the target apps for this event are
1149        /// contained in the specified list of package names.
1150        ///
1151        /// Intended usage:
1152        ///    - Use match_all_packages to selectively allow tracing for the listed
1153        ///    packages.
1154        ///    - Use match_any_packages to selectively deny tracing for certain
1155        ///    packages.
1156        ///
1157        /// WARNING: Great care must be taken when designing rules for field tracing!
1158        ///           This is because each event is almost always sent to more than
1159        ///           one app.
1160        ///               For example, when allowing tracing for a package that has a
1161        ///               spy window
1162        ///           over the display (e.g. SystemUI) using match_any_packages,
1163        ///           essentially all input will be recorded on that display. This is
1164        ///           because the events will be sent to the spy as well as the
1165        ///           foreground app, and regardless of what the foreground app is,
1166        ///           the event will end up being traced.
1167        ///               Alternatively, when attempting to block tracing for specific
1168        ///               packages using
1169        ///           match_all_packages, no events will likely be blocked. This is
1170        ///           because the event will also be sent to other apps (such as, but
1171        ///           not limited to, ones with spy windows), so the matcher will not
1172        ///           match unless all other targets are also listed under the
1173        ///           match_all_packages list.
1174        #[prost(string, repeated, tag="2")]
1175        pub match_all_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1176        #[prost(string, repeated, tag="3")]
1177        pub match_any_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1178        /// Matches if the event is secure, which means that at least one of the
1179        /// targets of this event is using the window flag FLAG_SECURE.
1180        #[prost(bool, optional, tag="4")]
1181        pub match_secure: ::core::option::Option<bool>,
1182        /// Matches if there was an active IME connection while this event was being
1183        /// processed.
1184        #[prost(bool, optional, tag="5")]
1185        pub match_ime_connection_active: ::core::option::Option<bool>,
1186    }
1187    /// Trace modes are tracing presets that are included in the system.
1188    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1189    #[repr(i32)]
1190    pub enum TraceMode {
1191        /// Preset mode for maximal tracing.
1192        /// WARNING: This will bypass all privacy measures on debuggable builds, and
1193        /// will record all
1194        ///           input events processed by the system, regardless of the context
1195        ///           in which they were processed. It should only be used for tracing
1196        ///           on a local device or for tests. It should NEVER be used for
1197        ///           field tracing.
1198        TraceAll = 0,
1199        /// Use the tracing rules defined in this config to specify what events to
1200        /// trace.
1201        UseRules = 1,
1202    }
1203    impl TraceMode {
1204        /// String value of the enum field names used in the ProtoBuf definition.
1205        ///
1206        /// The values are not transformed in any way and thus are considered stable
1207        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1208        pub fn as_str_name(&self) -> &'static str {
1209            match self {
1210                TraceMode::TraceAll => "TRACE_MODE_TRACE_ALL",
1211                TraceMode::UseRules => "TRACE_MODE_USE_RULES",
1212            }
1213        }
1214    }
1215    /// The level of tracing that should be applied to an event.
1216    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1217    #[repr(i32)]
1218    pub enum TraceLevel {
1219        /// Do not trace the input event.
1220        None = 0,
1221        /// Trace the event as a redacted event, where certain sensitive fields are
1222        /// omitted from the trace, including the coordinates of pointer events and
1223        /// the key/scan codes of key events.
1224        Redacted = 1,
1225        /// Trace the complete event.
1226        Complete = 2,
1227    }
1228    impl TraceLevel {
1229        /// String value of the enum field names used in the ProtoBuf definition.
1230        ///
1231        /// The values are not transformed in any way and thus are considered stable
1232        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1233        pub fn as_str_name(&self) -> &'static str {
1234            match self {
1235                TraceLevel::None => "TRACE_LEVEL_NONE",
1236                TraceLevel::Redacted => "TRACE_LEVEL_REDACTED",
1237                TraceLevel::Complete => "TRACE_LEVEL_COMPLETE",
1238            }
1239        }
1240    }
1241}
1242/// Values from NDK's android/log.h.
1243#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1244#[repr(i32)]
1245pub enum AndroidLogId {
1246    /// MAIN.
1247    LidDefault = 0,
1248    LidRadio = 1,
1249    LidEvents = 2,
1250    LidSystem = 3,
1251    LidCrash = 4,
1252    LidStats = 5,
1253    LidSecurity = 6,
1254    LidKernel = 7,
1255}
1256impl AndroidLogId {
1257    /// String value of the enum field names used in the ProtoBuf definition.
1258    ///
1259    /// The values are not transformed in any way and thus are considered stable
1260    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1261    pub fn as_str_name(&self) -> &'static str {
1262        match self {
1263            AndroidLogId::LidDefault => "LID_DEFAULT",
1264            AndroidLogId::LidRadio => "LID_RADIO",
1265            AndroidLogId::LidEvents => "LID_EVENTS",
1266            AndroidLogId::LidSystem => "LID_SYSTEM",
1267            AndroidLogId::LidCrash => "LID_CRASH",
1268            AndroidLogId::LidStats => "LID_STATS",
1269            AndroidLogId::LidSecurity => "LID_SECURITY",
1270            AndroidLogId::LidKernel => "LID_KERNEL",
1271        }
1272    }
1273}
1274#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1275#[repr(i32)]
1276pub enum AndroidLogPriority {
1277    PrioUnspecified = 0,
1278    /// _DEFAULT, but should never be seen in logs.
1279    PrioUnused = 1,
1280    PrioVerbose = 2,
1281    PrioDebug = 3,
1282    PrioInfo = 4,
1283    PrioWarn = 5,
1284    PrioError = 6,
1285    PrioFatal = 7,
1286}
1287impl AndroidLogPriority {
1288    /// String value of the enum field names used in the ProtoBuf definition.
1289    ///
1290    /// The values are not transformed in any way and thus are considered stable
1291    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1292    pub fn as_str_name(&self) -> &'static str {
1293        match self {
1294            AndroidLogPriority::PrioUnspecified => "PRIO_UNSPECIFIED",
1295            AndroidLogPriority::PrioUnused => "PRIO_UNUSED",
1296            AndroidLogPriority::PrioVerbose => "PRIO_VERBOSE",
1297            AndroidLogPriority::PrioDebug => "PRIO_DEBUG",
1298            AndroidLogPriority::PrioInfo => "PRIO_INFO",
1299            AndroidLogPriority::PrioWarn => "PRIO_WARN",
1300            AndroidLogPriority::PrioError => "PRIO_ERROR",
1301            AndroidLogPriority::PrioFatal => "PRIO_FATAL",
1302        }
1303    }
1304}
1305#[derive(Clone, PartialEq, ::prost::Message)]
1306pub struct AndroidLogConfig {
1307    #[prost(enumeration="AndroidLogId", repeated, packed="false", tag="1")]
1308    pub log_ids: ::prost::alloc::vec::Vec<i32>,
1309    /// If set ignores all log messages whose prio is < the given value.
1310    #[prost(enumeration="AndroidLogPriority", optional, tag="3")]
1311    pub min_prio: ::core::option::Option<i32>,
1312    /// If non-empty ignores all log messages whose tag doesn't match one of the
1313    /// specified values.
1314    #[prost(string, repeated, tag="4")]
1315    pub filter_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1316    /// If true, includes the contents of the logcat buffers that were already
1317    /// present before the data source started. By default (false), only new
1318    /// log entries produced after the data source starts are recorded.
1319    /// Can be useful for boot traces or situations where logs from before
1320    /// traced started are important.
1321    #[prost(bool, optional, tag="5")]
1322    pub preserve_log_buffer: ::core::option::Option<bool>,
1323}
1324/// Data source that polls for display state. This should only be used for
1325/// backward-compatibility; AndroidSystemPropertyConfig should be preferred.
1326#[derive(Clone, PartialEq, ::prost::Message)]
1327pub struct AndroidPolledStateConfig {
1328    /// Frequency of polling. If absent the state will be recorded once, at the
1329    /// start of the trace.
1330    /// This is required to be > 100ms to avoid excessive CPU usage.
1331    #[prost(uint32, optional, tag="1")]
1332    pub poll_ms: ::core::option::Option<u32>,
1333}
1334/// Data source that polls for system properties.
1335#[derive(Clone, PartialEq, ::prost::Message)]
1336pub struct AndroidSystemPropertyConfig {
1337    /// Frequency of polling. If absent the state will be recorded once, at the
1338    /// start of the trace.
1339    /// This is required to be > 100ms to avoid excessive CPU usage.
1340    #[prost(uint32, optional, tag="1")]
1341    pub poll_ms: ::core::option::Option<u32>,
1342    /// Properties to poll. All property names must start with "debug.tracing.".
1343    #[prost(string, repeated, tag="2")]
1344    pub property_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1345}
1346/// Data source that controls the system properties used to guard initialization
1347/// of track_event producers (i.e. Skia) in apps using HWUI, and certain
1348/// processes like SurfaceFlinger.
1349///
1350/// This data source only tells Skia to initialized the Perfetto SDK and start
1351/// routing data to the Track Event system instead of ATrace. For those events
1352/// to actually show up in a trace, the track_event data source must be used as
1353/// well. The Perfetto SDK cannot be de-initialized, so some long-lived apps and
1354/// processes may need to be restarted for Skia to revert to using ATrace if
1355/// Track Events are no longer desired.
1356///
1357/// In addition to switching Skia to use Perfetto's track_event data source,
1358/// this "guard" also controls Skia's "broad tracing", which removes Skia's
1359/// internal tracing constraints and allows the track_event config to specify
1360/// which categories should be traced. Filtering to the "skia.always" category
1361/// *tag* in a track_event config can be used to re-enable the standard
1362/// constraints typically used with ATrace.
1363///
1364/// Data source name: android.sdk_sysprop_guard
1365/// Introduced in Android 14 (U) QPR1.
1366/// Next id: 4
1367#[derive(Clone, PartialEq, ::prost::Message)]
1368pub struct AndroidSdkSyspropGuardConfig {
1369    /// If true, configures SurfaceFlinger to initialize Skia's Perfetto
1370    /// integration with the track_event data source in RenderEngine.
1371    /// If false or omitted, the simpler ATrace fallback is used.
1372    ///
1373    /// NOTE: once enabled, Skia will only revert to ATrace if SurfaceFlinger is
1374    /// restarted.
1375    ///
1376    /// Specifically this sets the following system properties:
1377    ///    - debug.tracing.ctl.renderengine.skia_tracing_enabled
1378    ///    - debug.tracing.ctl.renderengine.skia_use_perfetto_track_events
1379    ///
1380    /// Does not affect actual track_event data *collection*, which must be
1381    /// configured separately.
1382    #[prost(bool, optional, tag="1")]
1383    pub surfaceflinger_skia_track_events: ::core::option::Option<bool>,
1384    /// If true, configures HWUI apps to initialize Skia's Perfetto integration
1385    /// with the track_event data source. hwui_package_name_filter
1386    /// can be used to control which apps are affected.
1387    /// If false or omitted, the simpler ATrace fallback is used.
1388    ///
1389    /// NOTE: once enabled, Skia will only revert to ATrace if the app is
1390    /// restarted.
1391    ///
1392    /// ATTENTION: affects ALL HWUI APPS if hwui_package_name_filter is not set!
1393    /// If filtering is NOT set, this controls these GLOBAL system properties:
1394    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled
1395    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events
1396    /// If filtering IS set, this controls these APP-SPECIFIC system properties,
1397    /// for each package listed in the filter:
1398    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled.<package.name>
1399    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events.<package.name>
1400    ///
1401    /// Does not affect actual track_event data *collection*, which must be
1402    /// configured separately.
1403    #[prost(bool, optional, tag="2")]
1404    pub hwui_skia_track_events: ::core::option::Option<bool>,
1405    /// If non-empty, hwui_skia_track_events applies to only the packages listed.
1406    /// Otherwise, hwui_skia_track_events applies globally to all HWUI apps.
1407    #[prost(string, repeated, tag="3")]
1408    pub hwui_package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1409}
1410/// Configuration for the android.app_wakelocks data source.
1411#[derive(Clone, PartialEq, ::prost::Message)]
1412pub struct AppWakelocksConfig {
1413    /// Specifies the delay (in milliseconds) after which the data source will
1414    /// attempt to write events. Writing less frequently reduces the trace size by
1415    /// making better use of the packed arrays and reducing the total number of
1416    /// TracePackets needed (which each have dozens of bytes of overhead). The
1417    /// suggested delay is 5000ms.
1418    #[prost(int32, optional, tag="1")]
1419    pub write_delay_ms: ::core::option::Option<i32>,
1420    /// When set, wakelocks held for less than this amount of time are filtered
1421    /// from the resulting trace. Note: duration is computed by matching wakelocks
1422    /// with identical attributes, not by tracking the underlying objects. The
1423    /// threshold should be < the trace's flush_period_ms.
1424    #[prost(int32, optional, tag="2")]
1425    pub filter_duration_below_ms: ::core::option::Option<i32>,
1426    /// When true, the owner_pid is dropped from the resulting output, reducing the
1427    /// size of the interning tables.
1428    #[prost(bool, optional, tag="3")]
1429    pub drop_owner_pid: ::core::option::Option<bool>,
1430}
1431/// Data source that records CPU per UID data.
1432#[derive(Clone, PartialEq, ::prost::Message)]
1433pub struct CpuPerUidConfig {
1434    /// Record at this frequency.
1435    #[prost(uint32, optional, tag="1")]
1436    pub poll_ms: ::core::option::Option<u32>,
1437}
1438/// Custom configuration for the "android.inputmethod" data source.
1439#[derive(Clone, PartialEq, ::prost::Message)]
1440pub struct InputMethodConfig {
1441    /// If true, enables tracing in the clients.
1442    #[prost(bool, optional, tag="1")]
1443    pub client: ::core::option::Option<bool>,
1444    /// If true, enables tracing in InputMethodService.
1445    #[prost(bool, optional, tag="2")]
1446    pub service: ::core::option::Option<bool>,
1447    /// If true, enables tracing in InputMethodManagerService.
1448    #[prost(bool, optional, tag="3")]
1449    pub manager_service: ::core::option::Option<bool>,
1450}
1451/// Data source that records kernel (and native) wakelock data.
1452#[derive(Clone, PartialEq, ::prost::Message)]
1453pub struct KernelWakelocksConfig {
1454    /// Record at this frequency.
1455    #[prost(uint32, optional, tag="1")]
1456    pub poll_ms: ::core::option::Option<u32>,
1457}
1458/// Network tracing data source that records details on all packets sent or
1459/// received by the network.
1460#[derive(Clone, PartialEq, ::prost::Message)]
1461pub struct NetworkPacketTraceConfig {
1462    /// Polling frequency in milliseconds. Network tracing writes to a fixed size
1463    /// ring buffer. The polling interval should be such that the ring buffer is
1464    /// unlikely to fill in that interval (or that filling is an acceptable risk).
1465    /// The minimum polling rate is 100ms (values below this are ignored).
1466    /// Introduced in Android 14 (U).
1467    #[prost(uint32, optional, tag="1")]
1468    pub poll_ms: ::core::option::Option<u32>,
1469    /// The aggregation_threshold is the number of packets at which an event will
1470    /// switch from per-packet details to aggregate details. For example, a value
1471    /// of 50 means that if a particular event (grouped by the unique combinations
1472    /// of metadata fields: {interface, direction, uid, etc}) has fewer than 50
1473    /// packets, the exact timestamp and length are recorded for each packet. If
1474    /// there were 50 or more packets in an event, it would only record the total
1475    /// duration, packets, and length. A value of zero or unspecified will always
1476    /// / record per-packet details. A value of 1 always records aggregate details.
1477    #[prost(uint32, optional, tag="2")]
1478    pub aggregation_threshold: ::core::option::Option<u32>,
1479    /// Specifies the maximum number of packet contexts to intern at a time. This
1480    /// prevents the interning table from growing too large and controls whether
1481    /// interning is enabled or disabled (a value of zero disables interning and
1482    /// is the default). When a data sources interning table reaches this amount,
1483    /// packet contexts will be inlined into NetworkPacketEvents.
1484    #[prost(uint32, optional, tag="3")]
1485    pub intern_limit: ::core::option::Option<u32>,
1486    /// The following fields specify whether certain fields should be dropped from
1487    /// the output. Dropping fields improves normalization results, reduces the
1488    /// size of the interning table, and slightly reduces event size.
1489    #[prost(bool, optional, tag="4")]
1490    pub drop_local_port: ::core::option::Option<bool>,
1491    #[prost(bool, optional, tag="5")]
1492    pub drop_remote_port: ::core::option::Option<bool>,
1493    #[prost(bool, optional, tag="6")]
1494    pub drop_tcp_flags: ::core::option::Option<bool>,
1495}
1496/// Data source that lists details (such as version code) about packages on an
1497/// Android device.
1498#[derive(Clone, PartialEq, ::prost::Message)]
1499pub struct PackagesListConfig {
1500    /// If not empty, emit info about only the following list of package names
1501    /// (exact match, no regex). Can be combined with
1502    /// |package_name_regex_filter|: a package is included if it matches either
1503    /// filter. If both filters are empty, emit info about all packages.
1504    #[prost(string, repeated, tag="1")]
1505    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1506    /// If not empty, emit info about only the packages whose names match any of
1507    /// the following regexes (full match, not partial). Can be combined with
1508    /// |package_name_filter|: a package is included if it matches either filter.
1509    /// If both filters are empty, emit info about all packages.
1510    /// This field was introduced in Android 26Q2 (Perfetto v55).
1511    #[prost(string, repeated, tag="3")]
1512    pub package_name_regex_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1513    /// If present and non-zero, the data source will periodically poll for CPU
1514    /// use by packages and only emit results for those that it sees. If absent,
1515    /// the data source will emit results for all packages at startup. The package
1516    /// name filters apply either way.
1517    #[prost(uint32, optional, tag="2")]
1518    pub only_write_on_cpu_use_every_ms: ::core::option::Option<u32>,
1519}
1520/// Data source that records events from the modem.
1521#[derive(Clone, PartialEq, ::prost::Message)]
1522pub struct PixelModemConfig {
1523    #[prost(enumeration="pixel_modem_config::EventGroup", optional, tag="1")]
1524    pub event_group: ::core::option::Option<i32>,
1525    /// If set, record only events with these hashes.
1526    #[prost(int64, repeated, packed="false", tag="2")]
1527    pub pigweed_hash_allow_list: ::prost::alloc::vec::Vec<i64>,
1528    /// If set and allow_list is not set, deny events with these hashes.
1529    #[prost(int64, repeated, packed="false", tag="3")]
1530    pub pigweed_hash_deny_list: ::prost::alloc::vec::Vec<i64>,
1531}
1532/// Nested message and enum types in `PixelModemConfig`.
1533pub mod pixel_modem_config {
1534    /// Event group to record, as defined by the modem.
1535    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1536    #[repr(i32)]
1537    pub enum EventGroup {
1538        Unknown = 0,
1539        /// Events suitable for low bandwidth tracing only.
1540        LowBandwidth = 1,
1541        /// Events suitable for high and low bandwidth tracing.
1542        HighAndLowBandwidth = 2,
1543    }
1544    impl EventGroup {
1545        /// String value of the enum field names used in the ProtoBuf definition.
1546        ///
1547        /// The values are not transformed in any way and thus are considered stable
1548        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1549        pub fn as_str_name(&self) -> &'static str {
1550            match self {
1551                EventGroup::Unknown => "EVENT_GROUP_UNKNOWN",
1552                EventGroup::LowBandwidth => "EVENT_GROUP_LOW_BANDWIDTH",
1553                EventGroup::HighAndLowBandwidth => "EVENT_GROUP_HIGH_AND_LOW_BANDWIDTH",
1554            }
1555        }
1556    }
1557}
1558#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1559#[repr(i32)]
1560pub enum ProtoLogLevel {
1561    ProtologLevelUndefined = 0,
1562    ProtologLevelDebug = 1,
1563    ProtologLevelVerbose = 2,
1564    ProtologLevelInfo = 3,
1565    ProtologLevelWarn = 4,
1566    ProtologLevelError = 5,
1567    ProtologLevelWtf = 6,
1568}
1569impl ProtoLogLevel {
1570    /// String value of the enum field names used in the ProtoBuf definition.
1571    ///
1572    /// The values are not transformed in any way and thus are considered stable
1573    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1574    pub fn as_str_name(&self) -> &'static str {
1575        match self {
1576            ProtoLogLevel::ProtologLevelUndefined => "PROTOLOG_LEVEL_UNDEFINED",
1577            ProtoLogLevel::ProtologLevelDebug => "PROTOLOG_LEVEL_DEBUG",
1578            ProtoLogLevel::ProtologLevelVerbose => "PROTOLOG_LEVEL_VERBOSE",
1579            ProtoLogLevel::ProtologLevelInfo => "PROTOLOG_LEVEL_INFO",
1580            ProtoLogLevel::ProtologLevelWarn => "PROTOLOG_LEVEL_WARN",
1581            ProtoLogLevel::ProtologLevelError => "PROTOLOG_LEVEL_ERROR",
1582            ProtoLogLevel::ProtologLevelWtf => "PROTOLOG_LEVEL_WTF",
1583        }
1584    }
1585}
1586/// Custom configuration for the "android.protolog" data source.
1587/// ProtoLog is a logging mechanism that is intented to be more efficient than
1588/// logcat. This configures what logs to capture in the tracing instance.
1589#[derive(Clone, PartialEq, ::prost::Message)]
1590pub struct ProtoLogConfig {
1591    /// Specified the configurations for each of the logging groups. If none is
1592    /// specified for a group the defaults will be used.
1593    #[prost(message, repeated, tag="1")]
1594    pub group_overrides: ::prost::alloc::vec::Vec<ProtoLogGroup>,
1595    /// Specified what tracing mode to use for the tracing instance.
1596    #[prost(enumeration="proto_log_config::TracingMode", optional, tag="2")]
1597    pub tracing_mode: ::core::option::Option<i32>,
1598    /// If set, any message with log level higher than this level (inclusive) will
1599    /// be traced. Group overrides take precedence over this value.
1600    #[prost(enumeration="ProtoLogLevel", optional, tag="3")]
1601    pub default_log_from_level: ::core::option::Option<i32>,
1602}
1603/// Nested message and enum types in `ProtoLogConfig`.
1604pub mod proto_log_config {
1605    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1606    #[repr(i32)]
1607    pub enum TracingMode {
1608        /// When using the DEFAULT tracing mode, only log groups and levels specified
1609        /// in the group_overrides are traced.
1610        Default = 0,
1611        /// When using the ENABLE_ALL tracing mode, all log groups and levels are
1612        /// traced, unless specified in the group_overrides.
1613        EnableAll = 1,
1614    }
1615    impl TracingMode {
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                TracingMode::Default => "DEFAULT",
1623                TracingMode::EnableAll => "ENABLE_ALL",
1624            }
1625        }
1626    }
1627}
1628#[derive(Clone, PartialEq, ::prost::Message)]
1629pub struct ProtoLogGroup {
1630    /// The ProtoLog group name this configuration entry applies to.
1631    #[prost(string, optional, tag="1")]
1632    pub group_name: ::core::option::Option<::prost::alloc::string::String>,
1633    /// Specify the level from which to start capturing protologs.
1634    /// e.g. if ProtoLogLevel.WARN is specified only warning, errors and fatal log
1635    /// message will be traced.
1636    #[prost(enumeration="ProtoLogLevel", optional, tag="2")]
1637    pub log_from: ::core::option::Option<i32>,
1638    /// When set to true we will collect the stacktrace for each protolog message
1639    /// in this group that we are tracing.
1640    #[prost(bool, optional, tag="3")]
1641    pub collect_stacktrace: ::core::option::Option<bool>,
1642}
1643/// Custom configuration for the "android.surfaceflinger.layers" data source.
1644#[derive(Clone, PartialEq, ::prost::Message)]
1645pub struct SurfaceFlingerLayersConfig {
1646    #[prost(enumeration="surface_flinger_layers_config::Mode", optional, tag="1")]
1647    pub mode: ::core::option::Option<i32>,
1648    #[prost(enumeration="surface_flinger_layers_config::TraceFlag", repeated, packed="false", tag="2")]
1649    pub trace_flags: ::prost::alloc::vec::Vec<i32>,
1650}
1651/// Nested message and enum types in `SurfaceFlingerLayersConfig`.
1652pub mod surface_flinger_layers_config {
1653    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1654    #[repr(i32)]
1655    pub enum Mode {
1656        Unspecified = 0,
1657        /// Trace layers snapshots. A snapshot is taken every time a layers change
1658        /// occurs.
1659        Active = 1,
1660        /// Generate layers snapshots from the transactions kept in the
1661        /// SurfaceFlinger's internal ring buffer.
1662        /// The layers snapshots generation occurs when this data source is flushed.
1663        Generated = 2,
1664        /// Trace a single layers snapshot.
1665        Dump = 3,
1666        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1667        /// Same as MODE_GENERATED, but triggers the layers snapshots generation only
1668        /// when a bugreport is taken.
1669        GeneratedBugreportOnly = 4,
1670    }
1671    impl Mode {
1672        /// String value of the enum field names used in the ProtoBuf definition.
1673        ///
1674        /// The values are not transformed in any way and thus are considered stable
1675        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1676        pub fn as_str_name(&self) -> &'static str {
1677            match self {
1678                Mode::Unspecified => "MODE_UNSPECIFIED",
1679                Mode::Active => "MODE_ACTIVE",
1680                Mode::Generated => "MODE_GENERATED",
1681                Mode::Dump => "MODE_DUMP",
1682                Mode::GeneratedBugreportOnly => "MODE_GENERATED_BUGREPORT_ONLY",
1683            }
1684        }
1685    }
1686    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1687    #[repr(i32)]
1688    pub enum TraceFlag {
1689        Unspecified = 0,
1690        Input = 2,
1691        Composition = 4,
1692        Extra = 8,
1693        Hwc = 16,
1694        Buffers = 32,
1695        VirtualDisplays = 64,
1696        /// INPUT | COMPOSITION | EXTRA
1697        All = 14,
1698    }
1699    impl TraceFlag {
1700        /// String value of the enum field names used in the ProtoBuf definition.
1701        ///
1702        /// The values are not transformed in any way and thus are considered stable
1703        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1704        pub fn as_str_name(&self) -> &'static str {
1705            match self {
1706                TraceFlag::Unspecified => "TRACE_FLAG_UNSPECIFIED",
1707                TraceFlag::Input => "TRACE_FLAG_INPUT",
1708                TraceFlag::Composition => "TRACE_FLAG_COMPOSITION",
1709                TraceFlag::Extra => "TRACE_FLAG_EXTRA",
1710                TraceFlag::Hwc => "TRACE_FLAG_HWC",
1711                TraceFlag::Buffers => "TRACE_FLAG_BUFFERS",
1712                TraceFlag::VirtualDisplays => "TRACE_FLAG_VIRTUAL_DISPLAYS",
1713                TraceFlag::All => "TRACE_FLAG_ALL",
1714            }
1715        }
1716    }
1717}
1718/// Custom configuration for the "android.surfaceflinger.transactions" data
1719/// source.
1720#[derive(Clone, PartialEq, ::prost::Message)]
1721pub struct SurfaceFlingerTransactionsConfig {
1722    #[prost(enumeration="surface_flinger_transactions_config::Mode", optional, tag="1")]
1723    pub mode: ::core::option::Option<i32>,
1724}
1725/// Nested message and enum types in `SurfaceFlingerTransactionsConfig`.
1726pub mod surface_flinger_transactions_config {
1727    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1728    #[repr(i32)]
1729    pub enum Mode {
1730        Unspecified = 0,
1731        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1732        /// SurfaceFlinger writes its internal ring buffer of transactions every time
1733        /// the data source is flushed. The ring buffer contains the SurfaceFlinger's
1734        /// initial state and the latest transactions.
1735        Continuous = 1,
1736        /// SurfaceFlinger writes the initial state and then each incoming
1737        /// transaction until the data source is stopped.
1738        Active = 2,
1739    }
1740    impl Mode {
1741        /// String value of the enum field names used in the ProtoBuf definition.
1742        ///
1743        /// The values are not transformed in any way and thus are considered stable
1744        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1745        pub fn as_str_name(&self) -> &'static str {
1746            match self {
1747                Mode::Unspecified => "MODE_UNSPECIFIED",
1748                Mode::Continuous => "MODE_CONTINUOUS",
1749                Mode::Active => "MODE_ACTIVE",
1750            }
1751        }
1752    }
1753}
1754/// Data source that lists details (such as version code) about users on an
1755/// Android device.
1756#[derive(Clone, PartialEq, ::prost::Message)]
1757pub struct AndroidUserListConfig {
1758    /// An allowlist of user type strings, used to control the granularity of
1759    /// user type information emitted in the trace. Exact, case-sensitive string
1760    /// matching is used.
1761    ///
1762    /// Any user type read from the device that is NOT present in the
1763    /// effective allowlist will have its type reported as
1764    /// "android.os.usertype.FILTERED".
1765    ///
1766    /// The effective allowlist is determined as follows:
1767    ///
1768    /// 1. If this 'user_type_filter' field is provided and non-empty:
1769    ///     This list itself is the effective allowlist.
1770    ///     Example TraceConfig:
1771    ///     --------------------
1772    ///     data_sources {
1773    ///         config {
1774    ///             name: "android.user_list"
1775    ///             target_buffer: 0
1776    ///             user_list_config {
1777    ///               # Only report these specific types, others become FILTERED.
1778    ///               user_type_filter: "android.os.usertype.full.SYSTEM"
1779    ///               user_type_filter: "android.os.usertype.system.HEADLESS"
1780    ///             }
1781    ///         }
1782    ///     }
1783    ///
1784    ///
1785    /// Note: This field does not support regular expressions.
1786    #[prost(string, repeated, tag="1")]
1787    pub user_type_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1788}
1789/// Custom configuration for the "android.windowmanager" data source.
1790#[derive(Clone, PartialEq, ::prost::Message)]
1791pub struct WindowManagerConfig {
1792    #[prost(enumeration="window_manager_config::LogFrequency", optional, tag="1")]
1793    pub log_frequency: ::core::option::Option<i32>,
1794    #[prost(enumeration="window_manager_config::LogLevel", optional, tag="2")]
1795    pub log_level: ::core::option::Option<i32>,
1796}
1797/// Nested message and enum types in `WindowManagerConfig`.
1798pub mod window_manager_config {
1799    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1800    #[repr(i32)]
1801    pub enum LogFrequency {
1802        Unspecified = 0,
1803        /// Trace state snapshots when a frame is committed.
1804        Frame = 1,
1805        /// Trace state snapshots every time a transaction is committed.
1806        Transaction = 2,
1807        /// Trace single state snapshots when the data source is started.
1808        SingleDump = 3,
1809    }
1810    impl LogFrequency {
1811        /// String value of the enum field names used in the ProtoBuf definition.
1812        ///
1813        /// The values are not transformed in any way and thus are considered stable
1814        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1815        pub fn as_str_name(&self) -> &'static str {
1816            match self {
1817                LogFrequency::Unspecified => "LOG_FREQUENCY_UNSPECIFIED",
1818                LogFrequency::Frame => "LOG_FREQUENCY_FRAME",
1819                LogFrequency::Transaction => "LOG_FREQUENCY_TRANSACTION",
1820                LogFrequency::SingleDump => "LOG_FREQUENCY_SINGLE_DUMP",
1821            }
1822        }
1823    }
1824    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1825    #[repr(i32)]
1826    pub enum LogLevel {
1827        Unspecified = 0,
1828        /// Logs all elements with maximum amount of information.
1829        Verbose = 1,
1830        /// Logs all elements but doesn't write all configuration data.
1831        Debug = 2,
1832        /// Logs only visible elements, with the minimum amount of performance
1833        /// overhead
1834        Critical = 3,
1835    }
1836    impl LogLevel {
1837        /// String value of the enum field names used in the ProtoBuf definition.
1838        ///
1839        /// The values are not transformed in any way and thus are considered stable
1840        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1841        pub fn as_str_name(&self) -> &'static str {
1842            match self {
1843                LogLevel::Unspecified => "LOG_LEVEL_UNSPECIFIED",
1844                LogLevel::Verbose => "LOG_LEVEL_VERBOSE",
1845                LogLevel::Debug => "LOG_LEVEL_DEBUG",
1846                LogLevel::Critical => "LOG_LEVEL_CRITICAL",
1847            }
1848        }
1849    }
1850}
1851#[derive(Clone, PartialEq, ::prost::Message)]
1852pub struct ChromeConfig {
1853    #[prost(string, optional, tag="1")]
1854    pub trace_config: ::core::option::Option<::prost::alloc::string::String>,
1855    /// When enabled, the data source should only fill in fields in the output that
1856    /// are not potentially privacy sensitive.
1857    #[prost(bool, optional, tag="2")]
1858    pub privacy_filtering_enabled: ::core::option::Option<bool>,
1859    /// Instead of emitting binary protobuf, convert the trace data to the legacy
1860    /// JSON format. Note that the trace data will still be returned as a series of
1861    /// TracePackets, but the embedded data will be JSON instead of serialized
1862    /// protobuf.
1863    #[prost(bool, optional, tag="3")]
1864    pub convert_to_legacy_json: ::core::option::Option<bool>,
1865    #[prost(enumeration="chrome_config::ClientPriority", optional, tag="4")]
1866    pub client_priority: ::core::option::Option<i32>,
1867    /// Applicable only when using legacy JSON format.
1868    /// If |json_agent_label_filter| is not empty, only data pertaining to
1869    /// the specified tracing agent label (e.g. "traceEvents") will be returned.
1870    #[prost(string, optional, tag="5")]
1871    pub json_agent_label_filter: ::core::option::Option<::prost::alloc::string::String>,
1872    ///   When enabled, event names should not contain package names.
1873    #[prost(bool, optional, tag="6")]
1874    pub event_package_name_filter_enabled: ::core::option::Option<bool>,
1875}
1876/// Nested message and enum types in `ChromeConfig`.
1877pub mod chrome_config {
1878    /// Priority of the tracing session client. A higher priority session may
1879    /// preempt a lower priority one in configurations where concurrent sessions
1880    /// aren't supported.
1881    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1882    #[repr(i32)]
1883    pub enum ClientPriority {
1884        Unknown = 0,
1885        Background = 1,
1886        UserInitiated = 2,
1887    }
1888    impl ClientPriority {
1889        /// String value of the enum field names used in the ProtoBuf definition.
1890        ///
1891        /// The values are not transformed in any way and thus are considered stable
1892        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1893        pub fn as_str_name(&self) -> &'static str {
1894            match self {
1895                ClientPriority::Unknown => "UNKNOWN",
1896                ClientPriority::Background => "BACKGROUND",
1897                ClientPriority::UserInitiated => "USER_INITIATED",
1898            }
1899        }
1900    }
1901}
1902#[derive(Clone, PartialEq, ::prost::Message)]
1903pub struct V8Config {
1904    /// Whether to log the actual content of scripts (e.g. content of the JS file
1905    /// that was compiled to generate code).
1906    /// ATTENTION: This could considerably increase the size of the resuling trace
1907    ///             file.
1908    #[prost(bool, optional, tag="1")]
1909    pub log_script_sources: ::core::option::Option<bool>,
1910    /// Whether to log the generated code for jitted functions (machine code or
1911    /// bytecode).
1912    /// ATTENTION: This could considerably increase the size of the resuling trace
1913    ///             file.
1914    #[prost(bool, optional, tag="2")]
1915    pub log_instructions: ::core::option::Option<bool>,
1916}
1917/// Proto definition based on the struct _EVENT_TRACE_PROPERTIES definition
1918/// See: <https://learn.microsoft.com/en-us/windows/win32/api/evntrace/>
1919/// ns-evntrace-event_trace_properties
1920#[derive(Clone, PartialEq, ::prost::Message)]
1921pub struct EtwConfig {
1922    /// The kernel_flags determines the flags that will be used by the etw tracing
1923    /// session. These kernel flags have been built to expose the useful events
1924    /// captured from the kernel mode only.
1925    #[prost(enumeration="etw_config::KernelFlag", repeated, packed="false", tag="1")]
1926    pub kernel_flags: ::prost::alloc::vec::Vec<i32>,
1927    // See the list of keywords for for individual providers.
1928    // <https://learn.microsoft.com/en-us/windows/win32/etw/system-providers>
1929
1930    /// Provides events relating to the scheduler.
1931    #[prost(string, repeated, tag="2")]
1932    pub scheduler_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1933    /// Provides events relating to the memory manager.
1934    #[prost(string, repeated, tag="3")]
1935    pub memory_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1936    /// Provides events relating to file I/O.
1937    #[prost(string, repeated, tag="4")]
1938    pub file_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1939}
1940/// Nested message and enum types in `EtwConfig`.
1941pub mod etw_config {
1942    /// The KernelFlag represent list of kernel flags that we are intrested in.
1943    /// To get a more extensive list run 'xperf -providers k'.
1944    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1945    #[repr(i32)]
1946    pub enum KernelFlag {
1947        Cswitch = 0,
1948        Dispatcher = 1,
1949    }
1950    impl KernelFlag {
1951        /// String value of the enum field names used in the ProtoBuf definition.
1952        ///
1953        /// The values are not transformed in any way and thus are considered stable
1954        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1955        pub fn as_str_name(&self) -> &'static str {
1956            match self {
1957                KernelFlag::Cswitch => "CSWITCH",
1958                KernelFlag::Dispatcher => "DISPATCHER",
1959            }
1960        }
1961    }
1962}
1963#[derive(Clone, PartialEq, ::prost::Message)]
1964pub struct ChromiumSystemMetricsConfig {
1965    /// Samples counters every X ms.
1966    #[prost(uint32, optional, tag="1")]
1967    pub sampling_interval_ms: ::core::option::Option<u32>,
1968}
1969/// Next id: 38
1970#[derive(Clone, PartialEq, ::prost::Message)]
1971pub struct FtraceConfig {
1972    /// Ftrace events to record, example: "sched/sched_switch".
1973    #[prost(string, repeated, tag="1")]
1974    pub ftrace_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1975    /// Android-specific event categories:
1976    #[prost(string, repeated, tag="2")]
1977    pub atrace_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1978    #[prost(string, repeated, tag="3")]
1979    pub atrace_apps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1980    /// Some processes can emit data through atrace or through the perfetto SDK via
1981    /// the "track_event" data source. For these categories, the SDK will be
1982    /// preferred, if possible, for this config.
1983    #[prost(string, repeated, tag="28")]
1984    pub atrace_categories_prefer_sdk: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1985    /// If true, do *not* add in extra ftrace events when |atrace_categories| are
1986    /// set. This skips the legacy "atrace" behaviour of adding hardcoded ftrace
1987    /// events for convenience (and the vendor-specific events on top).
1988    /// Introduced in: perfetto v52.
1989    #[prost(bool, optional, tag="34")]
1990    pub atrace_userspace_only: ::core::option::Option<bool>,
1991    /// Size of each per-cpu kernel ftrace ring buffer.
1992    /// Not guaranteed if there are multiple concurrent tracing sessions, as the
1993    /// buffers cannot be resized without pausing recording in the kernel.
1994    #[prost(uint32, optional, tag="10")]
1995    pub buffer_size_kb: ::core::option::Option<u32>,
1996    /// If true, |buffer_size_kb| is interpreted as a lower bound, allowing the
1997    /// implementation to choose a bigger buffer size.
1998    ///
1999    /// Most configs for perfetto v43+ should simply leave both fields unset.
2000    ///
2001    /// If you need a config compatible with a range of perfetto builds and you
2002    /// used to set a non-default buffer_size_kb, consider setting both fields.
2003    /// Example:
2004    ///    buffer_size_kb: 4096
2005    ///    buffer_size_lower_bound: true
2006    /// On older builds, the per-cpu buffers will be exactly 4 MB.
2007    /// On v43+, buffers will be at least 4 MB.
2008    /// In both cases, neither is guaranteed if there are other concurrent
2009    /// perfetto ftrace sessions, as the buffers cannot be resized without pausing
2010    /// the recording in the kernel.
2011    /// Introduced in: perfetto v43.
2012    #[prost(bool, optional, tag="27")]
2013    pub buffer_size_lower_bound: ::core::option::Option<bool>,
2014    /// If set, specifies how often the tracing daemon reads from the kernel ring
2015    /// buffer. Not guaranteed if there are multiple concurrent tracing sessions.
2016    /// Leave unset unless you're fine-tuning a local config.
2017    #[prost(uint32, optional, tag="11")]
2018    pub drain_period_ms: ::core::option::Option<u32>,
2019    /// If set, the tracing daemon will read kernel ring buffers as soon as
2020    /// they're filled past this percentage of occupancy. In other words, a value
2021    /// of 50 means that a read pass is triggered as soon as any per-cpu buffer is
2022    /// half-full. Not guaranteed if there are multiple concurrent tracing
2023    /// sessions.
2024    /// Currently does nothing on Linux kernels below v6.9.
2025    /// Introduced in: perfetto v48.
2026    #[prost(uint32, optional, tag="29")]
2027    pub drain_buffer_percent: ::core::option::Option<u32>,
2028    #[prost(message, optional, tag="12")]
2029    pub compact_sched: ::core::option::Option<ftrace_config::CompactSchedConfig>,
2030    #[prost(message, optional, tag="22")]
2031    pub print_filter: ::core::option::Option<ftrace_config::PrintFilter>,
2032    /// Enables symbol name resolution against /proc/kallsyms.
2033    /// It requires that either traced_probes is running as root or that
2034    /// kptr_restrict has been manually lowered.
2035    /// It does not disclose KASLR, symbol addresses are mangled.
2036    #[prost(bool, optional, tag="13")]
2037    pub symbolize_ksyms: ::core::option::Option<bool>,
2038    #[prost(enumeration="ftrace_config::KsymsMemPolicy", optional, tag="17")]
2039    pub ksyms_mem_policy: ::core::option::Option<i32>,
2040    /// When this boolean is true AND the ftrace_events contains "kmem/rss_stat",
2041    /// this option causes traced_probes to enable the "kmem/rss_stat_throttled"
2042    /// event instead if present, and fall back to "kmem/rss_stat" if not present.
2043    /// The historical context for this is the following:
2044    /// - Up to Android S (12), the rss_stat was internally throttled in its
2045    ///    kernel implementation.
2046    /// - A change introduced in the kernels after S has introduced a new
2047    ///    "rss_stat_throttled" making the original "rss_stat" event unthrottled
2048    ///    (hence very spammy).
2049    /// - Not all Android T/13 devices will receive a new kernel though, hence we
2050    ///    need to deal with both cases.
2051    /// For more context: go/rss-stat-throttled.
2052    #[prost(bool, optional, tag="15")]
2053    pub throttle_rss_stat: ::core::option::Option<bool>,
2054    /// If true, use self-describing proto messages when writing events not known
2055    /// at compile time (aka generic events). Each event bundle will have a set of
2056    /// serialised proto descriptors for events within that bundle.
2057    ///
2058    /// Default if unset:
2059    /// * v53+: true
2060    /// * before v53: false
2061    ///
2062    /// Added in: perfetto v50.
2063    #[prost(bool, optional, tag="32")]
2064    pub denser_generic_event_encoding: ::core::option::Option<bool>,
2065    /// If true, avoid enabling events that aren't statically known by
2066    /// traced_probes. Otherwise, the default is to emit such events as
2067    /// GenericFtraceEvent protos.
2068    /// Prefer to keep this flag at its default. This was added for Android
2069    /// tracing, where atrace categories and/or atrace HAL requested events can
2070    /// expand to events that aren't of interest to the tracing user.
2071    /// Introduced in: Android T.
2072    #[prost(bool, optional, tag="16")]
2073    pub disable_generic_events: ::core::option::Option<bool>,
2074    /// The subset of syscalls to record. To record all syscalls, leave this unset
2075    /// and add "ftrace_events: raw_syscalls/sys_{enter,exit}" to the config.
2076    /// * before perfetto v43, requires the config to also enable
2077    ///    raw_syscalls/sys_{enter,exit}.
2078    /// * perfetto v43+ does the right thing if you set only this field.
2079    /// Example: ["sys_read", "sys_open"].
2080    /// Introduced in: Android U.
2081    #[prost(string, repeated, tag="18")]
2082    pub syscall_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2083    /// If true, enable the "function_graph" kernel tracer that emits events
2084    /// whenever a kernel function is entered and exited
2085    /// (funcgraph_entry/funcgraph_exit).
2086    /// Notes on use:
2087    /// * Requires |symbolize_ksyms| for function name resolution.
2088    /// * Use |function_filters| or |function_graph_roots| to constrain the traced
2089    ///    set of functions, otherwise the event bandwidth will be too high for
2090    ///    practical use.
2091    /// * The data source might be rejected if there is already a concurrent
2092    ///    ftrace data source that does not use function graph itself, as we do not
2093    ///    support switching kernel tracers mid-trace.
2094    /// * Requires a kernel compiled with CONFIG_FUNCTION_GRAPH_TRACER. This is
2095    ///    enabled if "cat /sys/kernel/tracing/available_tracers" includes
2096    ///    "function_graph".
2097    /// Android:
2098    /// * Available only on debuggable builds.
2099    /// * Introduced in: Android U.
2100    #[prost(bool, optional, tag="19")]
2101    pub enable_function_graph: ::core::option::Option<bool>,
2102    /// Constrains the set of functions traced when |enable_function_graph| is
2103    /// true. Supports globs, e.g. "sched*". You can specify multiple filters,
2104    /// in which case all matching functions will be traced. See kernel
2105    /// documentation on ftrace "set_ftrace_filter" file for more details.
2106    /// Android:
2107    /// * Available only on debuggable builds.
2108    /// * Introduced in: Android U.
2109    #[prost(string, repeated, tag="20")]
2110    pub function_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2111    /// If |enable_function_graph| is true, trace this set of functions *and* all
2112    /// of its callees. Supports globs. Can be set together with
2113    /// |function_filters|, in which case only callees matching the filter will be
2114    /// traced. If setting both, you most likely want all roots to also be
2115    /// included in |function_filters|.
2116    /// Android:
2117    /// * Available only on debuggable builds.
2118    /// * Introduced in: Android U.
2119    #[prost(string, repeated, tag="21")]
2120    pub function_graph_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2121    /// If |enable_function_graph| is true, only trace the specified
2122    /// number of calls down the stack. Sets the max_graph_depth value
2123    /// in sys/kernel/tracing/
2124    ///
2125    /// Only respected for the first tracing session that enables
2126    /// function_graph tracing.
2127    ///
2128    /// Introduced in: perfetto v51.
2129    /// Supported on: Android 25Q3+.
2130    #[prost(uint32, optional, tag="33")]
2131    pub function_graph_max_depth: ::core::option::Option<u32>,
2132    /// Ftrace events to record, specific for kprobes and kretprobes
2133    #[prost(message, repeated, tag="30")]
2134    pub kprobe_events: ::prost::alloc::vec::Vec<ftrace_config::KprobeEvent>,
2135    /// If true, does not clear kernel ftrace buffers when starting the trace.
2136    /// This makes sense only if this is the first ftrace data source instance
2137    /// created after the daemon has been started. Can be useful for gathering boot
2138    /// traces, if ftrace has been separately configured (e.g. via kernel
2139    /// commandline).
2140    /// NB: when configuring the pre-perfetto ftrace, prefer to set
2141    /// "/sys/kernel/tracing/trace_clock" to "boot" if your trace will contain
2142    /// anything besides ftrace. Otherwise timestamps might be skewed.
2143    #[prost(bool, optional, tag="23")]
2144    pub preserve_ftrace_buffer: ::core::option::Option<bool>,
2145    /// If true, overrides the default timestamp clock and uses a raw hardware
2146    /// based monotonic clock for getting timestamps.
2147    /// * Introduced in: Android U.
2148    #[prost(bool, optional, tag="24")]
2149    pub use_monotonic_raw_clock: ::core::option::Option<bool>,
2150    /// If |instance_name| is not empty, then attempt to use that tracefs instance
2151    /// for event recording. Normally, this means
2152    /// `/sys/kernel/tracing/instances/$instance_name`.
2153    ///
2154    /// Names "hyp" and "hypervisor" are reserved.
2155    ///
2156    /// The instance must already exist, the tracing daemon *will not* create it
2157    /// for you as it typically doesn't have such permissions.
2158    /// Only a subset of features is guaranteed to work with non-default instances,
2159    /// at the time of writing:
2160    ///   * ftrace_events
2161    ///   * buffer_size_kb
2162    #[prost(string, optional, tag="25")]
2163    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2164    /// For perfetto developer use. If true and on a debuggable android build,
2165    /// serialise raw tracing pages that the implementation cannot parse.
2166    #[prost(bool, optional, tag="31")]
2167    pub debug_ftrace_abi: ::core::option::Option<bool>,
2168    // =================================================
2169    // Exclusive single-tenant features: HERE BE DRAGONS
2170    // =================================================
2171    // The features below are considered "advanced" and require an exclusive
2172    // tracing session (as of Android 25Q3+ and Perfetto v52).
2173    //
2174    // These features directly manipulate the kernel's global ftrace state and
2175    // are incompatible with concurrent ftrace sessions. They are only enabled
2176    // if included in the *first* ftrace data source configured. Subsequent
2177    // ftrace data sources (even those not using advanced features) will be
2178    // rejected while a session with these features is active.
2179    //
2180    // To run the session in exclusive mode, see:
2181    // <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2182
2183    /// Filter ftrace events by Thread ID (TID).
2184    /// This writes the TIDs to `/sys/kernel/tracing/set_event_pid`.
2185    ///
2186    /// Note: this is an exclusive feature, see:
2187    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2188    ///
2189    /// Introduced in: perfetto v52.
2190    /// Supported on: Android 25Q3+.
2191    #[prost(uint32, repeated, packed="false", tag="35")]
2192    pub tids_to_trace: ::prost::alloc::vec::Vec<u32>,
2193    #[prost(message, repeated, tag="36")]
2194    pub tracefs_options: ::prost::alloc::vec::Vec<ftrace_config::TracefsOption>,
2195    /// This mask restricts tracing to a specific set of CPUs using a
2196    /// comma-separated hex mask. Each hex number (up to 8 digits) represents a
2197    /// 32-bit chunk of the CPU mask.
2198    ///
2199    /// The chunks are ordered from high CPUs to low CPUs (left to right):
2200    ///    - Rightmost chunk: CPUs 0-31
2201    ///    - 2nd chunk from right: CPUs 32-63
2202    ///    - ...and so on.
2203    ///
2204    /// Example (assuming NR_CPUS=128, requiring 4 chunks):
2205    /// The full mask would be in the format: "chunk3,chunk2,chunk1,chunk0"
2206    /// where chunk3 maps to CPUs 96-127, chunk2 to 64-95, chunk1 to 32-63, and
2207    /// chunk0 to 0-31.
2208    ///    - "ffffffff,0,0,0": Enables CPUs 96-127 only.
2209    ///    - "f,ff": Enables CPUs 0-7 (from "ff") and CPUs 32-35 (from "f").
2210    ///
2211    /// Note: This is an exclusive feature, see:
2212    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2213    ///
2214    /// Introduced in: perfetto v52.
2215    /// Supported on: Android 25Q3+.
2216    #[prost(string, optional, tag="37")]
2217    pub tracing_cpumask: ::core::option::Option<::prost::alloc::string::String>,
2218    /// No-op in perfetto v28+. Name preserved because of existing references in
2219    /// textproto configs.
2220    #[deprecated]
2221    #[prost(bool, optional, tag="14")]
2222    pub initialize_ksyms_synchronously_for_testing: ::core::option::Option<bool>,
2223}
2224/// Nested message and enum types in `FtraceConfig`.
2225pub mod ftrace_config {
2226    /// Configuration for compact encoding of scheduler events. When enabled (and
2227    /// recording the relevant ftrace events), specific high-volume events are
2228    /// encoded in a denser format than normal.
2229    #[derive(Clone, PartialEq, ::prost::Message)]
2230    pub struct CompactSchedConfig {
2231        /// If true, and sched_switch or sched_waking ftrace events are enabled,
2232        /// record those events in the compact format.
2233        ///
2234        /// If the field is unset, the default is:
2235        /// * perfetto v42.0+: enabled
2236        /// * before: disabled
2237        #[prost(bool, optional, tag="1")]
2238        pub enabled: ::core::option::Option<bool>,
2239    }
2240    /// Optional filter for "ftrace/print" events.
2241    ///
2242    /// The filter consists of multiple rules. As soon as a rule matches (the rules
2243    /// are processed in order), its `allow` field will be used as the outcome: if
2244    /// `allow` is true, the event will be included in the trace, otherwise it will
2245    /// be discarded. If an event does not match any rule, it will be allowed by
2246    /// default (a rule with an empty prefix and allow=false, disallows everything
2247    /// by default).
2248    #[derive(Clone, PartialEq, ::prost::Message)]
2249    pub struct PrintFilter {
2250        #[prost(message, repeated, tag="1")]
2251        pub rules: ::prost::alloc::vec::Vec<print_filter::Rule>,
2252    }
2253    /// Nested message and enum types in `PrintFilter`.
2254    pub mod print_filter {
2255        #[derive(Clone, PartialEq, ::prost::Message)]
2256        pub struct Rule {
2257            #[prost(bool, optional, tag="2")]
2258            pub allow: ::core::option::Option<bool>,
2259            #[prost(oneof="rule::Match", tags="1, 3")]
2260            pub r#match: ::core::option::Option<rule::Match>,
2261        }
2262        /// Nested message and enum types in `Rule`.
2263        pub mod rule {
2264            /// Matches an atrace message of the form:
2265            /// <type>|pid|<prefix>...
2266            #[derive(Clone, PartialEq, ::prost::Message)]
2267            pub struct AtraceMessage {
2268                #[prost(string, optional, tag="1")]
2269                pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2270                #[prost(string, optional, tag="2")]
2271                pub prefix: ::core::option::Option<::prost::alloc::string::String>,
2272            }
2273            #[derive(Clone, PartialEq, ::prost::Oneof)]
2274            pub enum Match {
2275                /// This rule matches if `prefix` matches exactly with the beginning of
2276                /// the "ftrace/print" "buf" field.
2277                #[prost(string, tag="1")]
2278                Prefix(::prost::alloc::string::String),
2279                /// This rule matches if the "buf" field contains an atrace-style print
2280                /// message as specified in `atrace_msg`.
2281                #[prost(message, tag="3")]
2282                AtraceMsg(AtraceMessage),
2283            }
2284        }
2285    }
2286    #[derive(Clone, PartialEq, ::prost::Message)]
2287    pub struct KprobeEvent {
2288        /// Kernel function name to attach to, for example "fuse_file_write_iter"
2289        #[prost(string, optional, tag="1")]
2290        pub probe: ::core::option::Option<::prost::alloc::string::String>,
2291        #[prost(enumeration="kprobe_event::KprobeType", optional, tag="2")]
2292        pub r#type: ::core::option::Option<i32>,
2293    }
2294    /// Nested message and enum types in `KprobeEvent`.
2295    pub mod kprobe_event {
2296        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2297        #[repr(i32)]
2298        pub enum KprobeType {
2299            Unknown = 0,
2300            Kprobe = 1,
2301            Kretprobe = 2,
2302            Both = 3,
2303        }
2304        impl KprobeType {
2305            /// String value of the enum field names used in the ProtoBuf definition.
2306            ///
2307            /// The values are not transformed in any way and thus are considered stable
2308            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2309            pub fn as_str_name(&self) -> &'static str {
2310                match self {
2311                    KprobeType::Unknown => "KPROBE_TYPE_UNKNOWN",
2312                    KprobeType::Kprobe => "KPROBE_TYPE_KPROBE",
2313                    KprobeType::Kretprobe => "KPROBE_TYPE_KRETPROBE",
2314                    KprobeType::Both => "KPROBE_TYPE_BOTH",
2315                }
2316            }
2317        }
2318    }
2319    /// Tracefs options to set directly in the tracefs instance. This is a very
2320    /// niche feature since almost all of the options deal with formatting textual
2321    /// output (the /trace file), which perfetto doesn't use.
2322    ///
2323    /// The options with a known use-case:
2324    /// * event-fork: when using `tids_to_trace` above, the kernel will
2325    ///    automatically add newly spawned descendant threads to the set of TIDs.
2326    ///
2327    /// Full list of options is available at
2328    /// <https://docs.kernel.org/trace/ftrace.html#trace-options.>
2329    ///
2330    /// Note: this is an exclusive feature, see:
2331    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2332    ///
2333    /// Introduced in: perfetto v52.
2334    /// Supported on: Android 25Q3+.
2335    #[derive(Clone, PartialEq, ::prost::Message)]
2336    pub struct TracefsOption {
2337        /// The name of the tracefs option as found in tracefs/trace_options (without
2338        /// the "no" prefix).
2339        #[prost(string, optional, tag="1")]
2340        pub name: ::core::option::Option<::prost::alloc::string::String>,
2341        #[prost(enumeration="tracefs_option::State", optional, tag="2")]
2342        pub state: ::core::option::Option<i32>,
2343    }
2344    /// Nested message and enum types in `TracefsOption`.
2345    pub mod tracefs_option {
2346        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2347        #[repr(i32)]
2348        pub enum State {
2349            Unknown = 0,
2350            Enabled = 1,
2351            Disabled = 2,
2352        }
2353        impl State {
2354            /// String value of the enum field names used in the ProtoBuf definition.
2355            ///
2356            /// The values are not transformed in any way and thus are considered stable
2357            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2358            pub fn as_str_name(&self) -> &'static str {
2359                match self {
2360                    State::Unknown => "STATE_UNKNOWN",
2361                    State::Enabled => "STATE_ENABLED",
2362                    State::Disabled => "STATE_DISABLED",
2363                }
2364            }
2365        }
2366    }
2367    /// When symbolize_ksyms=true, determines whether the traced_probes daemon
2368    /// should keep the symbol map in memory (and reuse it for future tracing
2369    /// sessions) or clear it (saving memory) and re-create it on each tracing
2370    /// session (wasting cpu and wall time).
2371    /// The tradeoff is roughly:
2372    ///   KSYMS_RETAIN: pay a fixed ~1.2 MB cost after the first trace.
2373    ///   KSYMS_CLEANUP_ON_STOP: pay a ~300-500ms cost when starting each trace.
2374    /// Default behavior: KSYMS_CLEANUP_ON_STOP.
2375    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2376    #[repr(i32)]
2377    pub enum KsymsMemPolicy {
2378        KsymsUnspecified = 0,
2379        KsymsCleanupOnStop = 1,
2380        KsymsRetain = 2,
2381    }
2382    impl KsymsMemPolicy {
2383        /// String value of the enum field names used in the ProtoBuf definition.
2384        ///
2385        /// The values are not transformed in any way and thus are considered stable
2386        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2387        pub fn as_str_name(&self) -> &'static str {
2388            match self {
2389                KsymsMemPolicy::KsymsUnspecified => "KSYMS_UNSPECIFIED",
2390                KsymsMemPolicy::KsymsCleanupOnStop => "KSYMS_CLEANUP_ON_STOP",
2391                KsymsMemPolicy::KsymsRetain => "KSYMS_RETAIN",
2392            }
2393        }
2394    }
2395}
2396#[derive(Clone, PartialEq, ::prost::Message)]
2397pub struct FrozenFtraceConfig {
2398    /// The instance name which stores the previous boot ftrace data. Required.
2399    #[prost(string, optional, tag="1")]
2400    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2401}
2402#[derive(Clone, PartialEq, ::prost::Message)]
2403pub struct GpuCounterConfig {
2404    /// Desired sampling interval for counters.
2405    #[prost(uint64, optional, tag="1")]
2406    pub counter_period_ns: ::core::option::Option<u64>,
2407    /// List of counters to be sampled. Counter IDs correspond to the ones
2408    /// described in GpuCounterSpec in the data source descriptor.
2409    #[prost(uint32, repeated, packed="false", tag="2")]
2410    pub counter_ids: ::prost::alloc::vec::Vec<u32>,
2411    /// Sample counters by instrumenting command buffers.
2412    #[prost(bool, optional, tag="3")]
2413    pub instrumented_sampling: ::core::option::Option<bool>,
2414    /// Fix gpu clock rate during trace session.
2415    #[prost(bool, optional, tag="4")]
2416    pub fix_gpu_clock: ::core::option::Option<bool>,
2417}
2418#[derive(Clone, PartialEq, ::prost::Message)]
2419pub struct VulkanMemoryConfig {
2420    /// Tracking driver memory usage events
2421    #[prost(bool, optional, tag="1")]
2422    pub track_driver_memory_usage: ::core::option::Option<bool>,
2423    /// Tracking device memory usage events
2424    #[prost(bool, optional, tag="2")]
2425    pub track_device_memory_usage: ::core::option::Option<bool>,
2426}
2427#[derive(Clone, PartialEq, ::prost::Message)]
2428pub struct GpuRenderStagesConfig {
2429    /// Enable to separate the color and depth/stencil load and store stages
2430    /// into a separate stages. If disabled, the depth/stencil load and store
2431    /// stages will be combined.  Disabled by default. This option has no effect if
2432    /// Low Overhead mode is enabled.
2433    #[prost(bool, optional, tag="1")]
2434    pub full_loadstore: ::core::option::Option<bool>,
2435    /// Use the low overhead mode for traces. In this mode render stages are
2436    /// combined into a single workload stage. This provides less granular data but
2437    /// induces minimal GPU overhead. Disabled by default.
2438    #[prost(bool, optional, tag="2")]
2439    pub low_overhead: ::core::option::Option<bool>,
2440    /// Trace metrics to capture for each render stage
2441    #[prost(string, repeated, tag="3")]
2442    pub trace_metrics: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2443}
2444/// WARNING: unmaintained and deprecated. Likely won't work at all on modern
2445/// systems.
2446#[derive(Clone, PartialEq, ::prost::Message)]
2447pub struct InodeFileConfig {
2448    /// How long to pause between batches.
2449    #[prost(uint32, optional, tag="1")]
2450    pub scan_interval_ms: ::core::option::Option<u32>,
2451    /// How long to wait before the first scan in order to accumulate inodes.
2452    #[prost(uint32, optional, tag="2")]
2453    pub scan_delay_ms: ::core::option::Option<u32>,
2454    /// How many inodes to scan in one batch.
2455    #[prost(uint32, optional, tag="3")]
2456    pub scan_batch_size: ::core::option::Option<u32>,
2457    /// Do not scan for inodes not found in the static map.
2458    #[prost(bool, optional, tag="4")]
2459    pub do_not_scan: ::core::option::Option<bool>,
2460    /// If non-empty, only scan inodes corresponding to block devices named in
2461    /// this list.
2462    #[prost(string, repeated, tag="5")]
2463    pub scan_mount_points: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2464    /// When encountering an inode belonging to a block device corresponding
2465    /// to one of the mount points in this map, scan its scan_roots instead.
2466    #[prost(message, repeated, tag="6")]
2467    pub mount_point_mapping: ::prost::alloc::vec::Vec<inode_file_config::MountPointMappingEntry>,
2468}
2469/// Nested message and enum types in `InodeFileConfig`.
2470pub mod inode_file_config {
2471    #[derive(Clone, PartialEq, ::prost::Message)]
2472    pub struct MountPointMappingEntry {
2473        #[prost(string, optional, tag="1")]
2474        pub mountpoint: ::core::option::Option<::prost::alloc::string::String>,
2475        #[prost(string, repeated, tag="2")]
2476        pub scan_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2477    }
2478}
2479#[derive(Clone, PartialEq, ::prost::Message)]
2480pub struct ConsoleConfig {
2481    #[prost(enumeration="console_config::Output", optional, tag="1")]
2482    pub output: ::core::option::Option<i32>,
2483    #[prost(bool, optional, tag="2")]
2484    pub enable_colors: ::core::option::Option<bool>,
2485}
2486/// Nested message and enum types in `ConsoleConfig`.
2487pub mod console_config {
2488    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2489    #[repr(i32)]
2490    pub enum Output {
2491        Unspecified = 0,
2492        Stdout = 1,
2493        Stderr = 2,
2494    }
2495    impl Output {
2496        /// String value of the enum field names used in the ProtoBuf definition.
2497        ///
2498        /// The values are not transformed in any way and thus are considered stable
2499        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2500        pub fn as_str_name(&self) -> &'static str {
2501            match self {
2502                Output::Unspecified => "OUTPUT_UNSPECIFIED",
2503                Output::Stdout => "OUTPUT_STDOUT",
2504                Output::Stderr => "OUTPUT_STDERR",
2505            }
2506        }
2507    }
2508}
2509/// Configuration for trace packet interception. Used for diverting trace data to
2510/// non-Perfetto sources (e.g., logging to the console, ETW) when using the
2511/// Perfetto SDK.
2512#[derive(Clone, PartialEq, ::prost::Message)]
2513pub struct InterceptorConfig {
2514    /// Matches the name given to RegisterInterceptor().
2515    #[prost(string, optional, tag="1")]
2516    pub name: ::core::option::Option<::prost::alloc::string::String>,
2517    #[prost(message, optional, tag="100")]
2518    pub console_config: ::core::option::Option<ConsoleConfig>,
2519}
2520#[derive(Clone, PartialEq, ::prost::Message)]
2521pub struct AndroidPowerConfig {
2522    #[prost(uint32, optional, tag="1")]
2523    pub battery_poll_ms: ::core::option::Option<u32>,
2524    #[prost(enumeration="android_power_config::BatteryCounters", repeated, packed="false", tag="2")]
2525    pub battery_counters: ::prost::alloc::vec::Vec<i32>,
2526    /// Where available enables per-power-rail measurements.
2527    #[prost(bool, optional, tag="3")]
2528    pub collect_power_rails: ::core::option::Option<bool>,
2529    /// Provides a breakdown of energy estimation for various subsystem (e.g. GPU).
2530    /// Available from Android S.
2531    #[prost(bool, optional, tag="4")]
2532    pub collect_energy_estimation_breakdown: ::core::option::Option<bool>,
2533    /// Provides a breakdown of time in state for various subsystems.
2534    /// Available from Android U.
2535    #[prost(bool, optional, tag="5")]
2536    pub collect_entity_state_residency: ::core::option::Option<bool>,
2537}
2538/// Nested message and enum types in `AndroidPowerConfig`.
2539pub mod android_power_config {
2540    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2541    #[repr(i32)]
2542    pub enum BatteryCounters {
2543        BatteryCounterUnspecified = 0,
2544        /// Coulomb counter.
2545        BatteryCounterCharge = 1,
2546        /// Charge (%).
2547        BatteryCounterCapacityPercent = 2,
2548        /// Instantaneous current.
2549        BatteryCounterCurrent = 3,
2550        /// Avg current.
2551        BatteryCounterCurrentAvg = 4,
2552        /// Instantaneous voltage.
2553        BatteryCounterVoltage = 5,
2554    }
2555    impl BatteryCounters {
2556        /// String value of the enum field names used in the ProtoBuf definition.
2557        ///
2558        /// The values are not transformed in any way and thus are considered stable
2559        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2560        pub fn as_str_name(&self) -> &'static str {
2561            match self {
2562                BatteryCounters::BatteryCounterUnspecified => "BATTERY_COUNTER_UNSPECIFIED",
2563                BatteryCounters::BatteryCounterCharge => "BATTERY_COUNTER_CHARGE",
2564                BatteryCounters::BatteryCounterCapacityPercent => "BATTERY_COUNTER_CAPACITY_PERCENT",
2565                BatteryCounters::BatteryCounterCurrent => "BATTERY_COUNTER_CURRENT",
2566                BatteryCounters::BatteryCounterCurrentAvg => "BATTERY_COUNTER_CURRENT_AVG",
2567                BatteryCounters::BatteryCounterVoltage => "BATTERY_COUNTER_VOLTAGE",
2568            }
2569        }
2570    }
2571}
2572#[derive(Clone, PartialEq, ::prost::Message)]
2573pub struct ProtoVmConfig {
2574    #[prost(uint32, optional, tag="1")]
2575    pub memory_limit_kb: ::core::option::Option<u32>,
2576}
2577/// This enum is obtained by post-processing
2578/// AOSP/frameworks/proto_logging/stats/atoms.proto through
2579/// AOSP/external/perfetto/tools/update-statsd-descriptor, which extracts one
2580/// enum value for each proto field defined in the upstream atoms.proto.
2581#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2582#[repr(i32)]
2583pub enum AtomId {
2584    AtomUnspecified = 0,
2585    AtomBleScanStateChanged = 2,
2586    AtomProcessStateChanged = 3,
2587    AtomBleScanResultReceived = 4,
2588    AtomSensorStateChanged = 5,
2589    AtomGpsScanStateChanged = 6,
2590    AtomSyncStateChanged = 7,
2591    AtomScheduledJobStateChanged = 8,
2592    AtomScreenBrightnessChanged = 9,
2593    AtomWakelockStateChanged = 10,
2594    AtomLongPartialWakelockStateChanged = 11,
2595    AtomMobileRadioPowerStateChanged = 12,
2596    AtomWifiRadioPowerStateChanged = 13,
2597    AtomActivityManagerSleepStateChanged = 14,
2598    AtomMemoryFactorStateChanged = 15,
2599    AtomExcessiveCpuUsageReported = 16,
2600    AtomCachedKillReported = 17,
2601    AtomProcessMemoryStatReported = 18,
2602    AtomLauncherEvent = 19,
2603    AtomBatterySaverModeStateChanged = 20,
2604    AtomDeviceIdleModeStateChanged = 21,
2605    AtomDeviceIdlingModeStateChanged = 22,
2606    AtomAudioStateChanged = 23,
2607    AtomMediaCodecStateChanged = 24,
2608    AtomCameraStateChanged = 25,
2609    AtomFlashlightStateChanged = 26,
2610    AtomUidProcessStateChanged = 27,
2611    AtomProcessLifeCycleStateChanged = 28,
2612    AtomScreenStateChanged = 29,
2613    AtomBatteryLevelChanged = 30,
2614    AtomChargingStateChanged = 31,
2615    AtomPluggedStateChanged = 32,
2616    AtomInteractiveStateChanged = 33,
2617    AtomTouchEventReported = 34,
2618    AtomWakeupAlarmOccurred = 35,
2619    AtomKernelWakeupReported = 36,
2620    AtomWifiLockStateChanged = 37,
2621    AtomWifiSignalStrengthChanged = 38,
2622    AtomWifiScanStateChanged = 39,
2623    AtomPhoneSignalStrengthChanged = 40,
2624    AtomSettingChanged = 41,
2625    AtomActivityForegroundStateChanged = 42,
2626    AtomIsolatedUidChanged = 43,
2627    AtomPacketWakeupOccurred = 44,
2628    AtomWallClockTimeShifted = 45,
2629    AtomAnomalyDetected = 46,
2630    AtomAppBreadcrumbReported = 47,
2631    AtomAppStartOccurred = 48,
2632    AtomAppStartCanceled = 49,
2633    AtomAppStartFullyDrawn = 50,
2634    AtomLmkKillOccurred = 51,
2635    AtomPictureInPictureStateChanged = 52,
2636    AtomWifiMulticastLockStateChanged = 53,
2637    AtomAppStartMemoryStateCaptured = 55,
2638    AtomShutdownSequenceReported = 56,
2639    AtomBootSequenceReported = 57,
2640    AtomOverlayStateChanged = 59,
2641    AtomForegroundServiceStateChanged = 60,
2642    AtomCallStateChanged = 61,
2643    AtomKeyguardStateChanged = 62,
2644    AtomKeyguardBouncerStateChanged = 63,
2645    AtomKeyguardBouncerPasswordEntered = 64,
2646    AtomAppDied = 65,
2647    AtomResourceConfigurationChanged = 66,
2648    AtomBluetoothEnabledStateChanged = 67,
2649    AtomBluetoothConnectionStateChanged = 68,
2650    AtomGpsSignalQualityChanged = 69,
2651    AtomUsbConnectorStateChanged = 70,
2652    AtomSpeakerImpedanceReported = 71,
2653    AtomHardwareFailed = 72,
2654    AtomPhysicalDropDetected = 73,
2655    AtomChargeCyclesReported = 74,
2656    AtomMobileConnectionStateChanged = 75,
2657    AtomMobileRadioTechnologyChanged = 76,
2658    AtomUsbDeviceAttached = 77,
2659    AtomAppCrashOccurred = 78,
2660    AtomAnrOccurred = 79,
2661    AtomWtfOccurred = 80,
2662    AtomLowMemReported = 81,
2663    AtomGenericAtom = 82,
2664    AtomVibratorStateChanged = 84,
2665    AtomDeferredJobStatsReported = 85,
2666    AtomThermalThrottling = 86,
2667    AtomBiometricAcquired = 87,
2668    AtomBiometricAuthenticated = 88,
2669    AtomBiometricErrorOccurred = 89,
2670    AtomUiEventReported = 90,
2671    AtomBatteryHealthSnapshot = 91,
2672    AtomSlowIo = 92,
2673    AtomBatteryCausedShutdown = 93,
2674    AtomPhoneServiceStateChanged = 94,
2675    AtomPhoneStateChanged = 95,
2676    AtomUserRestrictionChanged = 96,
2677    AtomSettingsUiChanged = 97,
2678    AtomConnectivityStateChanged = 98,
2679    AtomServiceStateChanged = 99,
2680    AtomServiceLaunchReported = 100,
2681    AtomFlagFlipUpdateOccurred = 101,
2682    AtomBinaryPushStateChanged = 102,
2683    AtomDevicePolicyEvent = 103,
2684    AtomDocsUiFileOpCanceled = 104,
2685    AtomDocsUiFileOpCopyMoveModeReported = 105,
2686    AtomDocsUiFileOpFailure = 106,
2687    AtomDocsUiProviderFileOp = 107,
2688    AtomDocsUiInvalidScopedAccessRequest = 108,
2689    AtomDocsUiLaunchReported = 109,
2690    AtomDocsUiRootVisited = 110,
2691    AtomDocsUiStartupMs = 111,
2692    AtomDocsUiUserActionReported = 112,
2693    AtomWifiEnabledStateChanged = 113,
2694    AtomWifiRunningStateChanged = 114,
2695    AtomAppCompacted = 115,
2696    AtomNetworkDnsEventReported = 116,
2697    AtomDocsUiPickerLaunchedFromReported = 117,
2698    AtomDocsUiPickResultReported = 118,
2699    AtomDocsUiSearchModeReported = 119,
2700    AtomDocsUiSearchTypeReported = 120,
2701    AtomDataStallEvent = 121,
2702    AtomRescuePartyResetReported = 122,
2703    AtomSignedConfigReported = 123,
2704    AtomGnssNiEventReported = 124,
2705    AtomBluetoothLinkLayerConnectionEvent = 125,
2706    AtomBluetoothAclConnectionStateChanged = 126,
2707    AtomBluetoothScoConnectionStateChanged = 127,
2708    AtomAppDowngraded = 128,
2709    AtomAppOptimizedAfterDowngraded = 129,
2710    AtomLowStorageStateChanged = 130,
2711    AtomGnssNfwNotificationReported = 131,
2712    AtomGnssConfigurationReported = 132,
2713    AtomUsbPortOverheatEventReported = 133,
2714    AtomNfcErrorOccurred = 134,
2715    AtomNfcStateChanged = 135,
2716    AtomNfcBeamOccurred = 136,
2717    AtomNfcCardemulationOccurred = 137,
2718    AtomNfcTagOccurred = 138,
2719    AtomNfcHceTransactionOccurred = 139,
2720    AtomSeStateChanged = 140,
2721    AtomSeOmapiReported = 141,
2722    AtomBroadcastDispatchLatencyReported = 142,
2723    AtomAttentionManagerServiceResultReported = 143,
2724    AtomAdbConnectionChanged = 144,
2725    AtomSpeechDspStatReported = 145,
2726    AtomUsbContaminantReported = 146,
2727    AtomWatchdogRollbackOccurred = 147,
2728    AtomBiometricSystemHealthIssueDetected = 148,
2729    AtomBubbleUiChanged = 149,
2730    AtomScheduledJobConstraintChanged = 150,
2731    AtomBluetoothActiveDeviceChanged = 151,
2732    AtomBluetoothA2dpPlaybackStateChanged = 152,
2733    AtomBluetoothA2dpCodecConfigChanged = 153,
2734    AtomBluetoothA2dpCodecCapabilityChanged = 154,
2735    AtomBluetoothA2dpAudioUnderrunReported = 155,
2736    AtomBluetoothA2dpAudioOverrunReported = 156,
2737    AtomBluetoothDeviceRssiReported = 157,
2738    AtomBluetoothDeviceFailedContactCounterReported = 158,
2739    AtomBluetoothDeviceTxPowerLevelReported = 159,
2740    AtomBluetoothHciTimeoutReported = 160,
2741    AtomBluetoothQualityReportReported = 161,
2742    AtomBluetoothDeviceInfoReported = 162,
2743    AtomBluetoothRemoteVersionInfoReported = 163,
2744    AtomBluetoothSdpAttributeReported = 164,
2745    AtomBluetoothBondStateChanged = 165,
2746    AtomBluetoothClassicPairingEventReported = 166,
2747    AtomBluetoothSmpPairingEventReported = 167,
2748    AtomScreenTimeoutExtensionReported = 168,
2749    AtomProcessStartTime = 169,
2750    AtomPermissionGrantRequestResultReported = 170,
2751    AtomBluetoothSocketConnectionStateChanged = 171,
2752    AtomDeviceIdentifierAccessDenied = 172,
2753    AtomBubbleDeveloperErrorReported = 173,
2754    AtomAssistGestureStageReported = 174,
2755    AtomAssistGestureFeedbackReported = 175,
2756    AtomAssistGestureProgressReported = 176,
2757    AtomTouchGestureClassified = 177,
2758    AtomHiddenApiUsed = 178,
2759    AtomStyleUiChanged = 179,
2760    AtomPrivacyIndicatorsInteracted = 180,
2761    AtomAppInstallOnExternalStorageReported = 181,
2762    AtomNetworkStackReported = 182,
2763    AtomAppMovedStorageReported = 183,
2764    AtomBiometricEnrolled = 184,
2765    AtomSystemServerWatchdogOccurred = 185,
2766    AtomTombStoneOccurred = 186,
2767    AtomBluetoothClassOfDeviceReported = 187,
2768    AtomIntelligenceEventReported = 188,
2769    AtomThermalThrottlingSeverityStateChanged = 189,
2770    AtomRoleRequestResultReported = 190,
2771    AtomMediametricsAudiopolicyReported = 191,
2772    AtomMediametricsAudiorecordReported = 192,
2773    AtomMediametricsAudiothreadReported = 193,
2774    AtomMediametricsAudiotrackReported = 194,
2775    AtomMediametricsCodecReported = 195,
2776    AtomMediametricsDrmWidevineReported = 196,
2777    AtomMediametricsExtractorReported = 197,
2778    AtomMediametricsMediadrmReported = 198,
2779    AtomMediametricsNuplayerReported = 199,
2780    AtomMediametricsRecorderReported = 200,
2781    AtomMediametricsDrmmanagerReported = 201,
2782    AtomCarPowerStateChanged = 203,
2783    AtomGarageModeInfo = 204,
2784    AtomTestAtomReported = 205,
2785    AtomContentCaptureCallerMismatchReported = 206,
2786    AtomContentCaptureServiceEvents = 207,
2787    AtomContentCaptureSessionEvents = 208,
2788    AtomContentCaptureFlushed = 209,
2789    AtomLocationManagerApiUsageReported = 210,
2790    AtomReviewPermissionsFragmentResultReported = 211,
2791    AtomRuntimePermissionsUpgradeResult = 212,
2792    AtomGrantPermissionsActivityButtonActions = 213,
2793    AtomLocationAccessCheckNotificationAction = 214,
2794    AtomAppPermissionFragmentActionReported = 215,
2795    AtomAppPermissionFragmentViewed = 216,
2796    AtomAppPermissionsFragmentViewed = 217,
2797    AtomPermissionAppsFragmentViewed = 218,
2798    AtomTextSelectionEvent = 219,
2799    AtomTextLinkifyEvent = 220,
2800    AtomConversationActionsEvent = 221,
2801    AtomLanguageDetectionEvent = 222,
2802    AtomExclusionRectStateChanged = 223,
2803    AtomBackGestureReportedReported = 224,
2804    AtomUpdateEngineUpdateAttemptReported = 225,
2805    AtomUpdateEngineSuccessfulUpdateReported = 226,
2806    AtomCameraActionEvent = 227,
2807    AtomAppCompatibilityChangeReported = 228,
2808    AtomPerfettoUploaded = 229,
2809    AtomVmsClientConnectionStateChanged = 230,
2810    AtomMediaProviderScanOccurred = 233,
2811    AtomMediaContentDeleted = 234,
2812    AtomMediaProviderPermissionRequested = 235,
2813    AtomMediaProviderSchemaChanged = 236,
2814    AtomMediaProviderIdleMaintenanceFinished = 237,
2815    AtomRebootEscrowRecoveryReported = 238,
2816    AtomBootTimeEventDurationReported = 239,
2817    AtomBootTimeEventElapsedTimeReported = 240,
2818    AtomBootTimeEventUtcTimeReported = 241,
2819    AtomBootTimeEventErrorCodeReported = 242,
2820    AtomUserspaceRebootReported = 243,
2821    AtomNotificationReported = 244,
2822    AtomNotificationPanelReported = 245,
2823    AtomNotificationChannelModified = 246,
2824    AtomIntegrityCheckResultReported = 247,
2825    AtomIntegrityRulesPushed = 248,
2826    AtomCbMessageReported = 249,
2827    AtomCbMessageError = 250,
2828    AtomWifiHealthStatReported = 251,
2829    AtomWifiFailureStatReported = 252,
2830    AtomWifiConnectionResultReported = 253,
2831    AtomAppFreezeChanged = 254,
2832    AtomSnapshotMergeReported = 255,
2833    AtomForegroundServiceAppOpSessionEnded = 256,
2834    AtomDisplayJankReported = 257,
2835    AtomAppStandbyBucketChanged = 258,
2836    AtomSharesheetStarted = 259,
2837    AtomRankingSelected = 260,
2838    AtomTvsettingsUiInteracted = 261,
2839    AtomLauncherSnapshot = 262,
2840    AtomPackageInstallerV2Reported = 263,
2841    AtomUserLifecycleJourneyReported = 264,
2842    AtomUserLifecycleEventOccurred = 265,
2843    AtomAccessibilityShortcutReported = 266,
2844    AtomAccessibilityServiceReported = 267,
2845    AtomDocsUiDragAndDropReported = 268,
2846    AtomAppUsageEventOccurred = 269,
2847    AtomAutoRevokeNotificationClicked = 270,
2848    AtomAutoRevokeFragmentAppViewed = 271,
2849    AtomAutoRevokedAppInteraction = 272,
2850    AtomAppPermissionGroupsFragmentAutoRevokeAction = 273,
2851    AtomEvsUsageStatsReported = 274,
2852    AtomAudioPowerUsageDataReported = 275,
2853    AtomTvTunerStateChanged = 276,
2854    AtomMediaoutputOpSwitchReported = 277,
2855    AtomCbMessageFiltered = 278,
2856    AtomTvTunerDvrStatus = 279,
2857    AtomTvCasSessionOpenStatus = 280,
2858    AtomAssistantInvocationReported = 281,
2859    AtomDisplayWakeReported = 282,
2860    AtomCarUserHalModifyUserRequestReported = 283,
2861    AtomCarUserHalModifyUserResponseReported = 284,
2862    AtomCarUserHalPostSwitchResponseReported = 285,
2863    AtomCarUserHalInitialUserInfoRequestReported = 286,
2864    AtomCarUserHalInitialUserInfoResponseReported = 287,
2865    AtomCarUserHalUserAssociationRequestReported = 288,
2866    AtomCarUserHalSetUserAssociationResponseReported = 289,
2867    AtomNetworkIpProvisioningReported = 290,
2868    AtomNetworkDhcpRenewReported = 291,
2869    AtomNetworkValidationReported = 292,
2870    AtomNetworkStackQuirkReported = 293,
2871    AtomMediametricsAudiorecorddeviceusageReported = 294,
2872    AtomMediametricsAudiothreaddeviceusageReported = 295,
2873    AtomMediametricsAudiotrackdeviceusageReported = 296,
2874    AtomMediametricsAudiodeviceconnectionReported = 297,
2875    AtomBlobCommitted = 298,
2876    AtomBlobLeased = 299,
2877    AtomBlobOpened = 300,
2878    AtomContactsProviderStatusReported = 301,
2879    AtomKeystoreKeyEventReported = 302,
2880    AtomNetworkTetheringReported = 303,
2881    AtomImeTouchReported = 304,
2882    AtomUiInteractionFrameInfoReported = 305,
2883    AtomUiActionLatencyReported = 306,
2884    AtomWifiDisconnectReported = 307,
2885    AtomWifiConnectionStateChanged = 308,
2886    AtomHdmiCecActiveSourceChanged = 309,
2887    AtomHdmiCecMessageReported = 310,
2888    AtomAirplaneMode = 311,
2889    AtomModemRestart = 312,
2890    AtomCarrierIdMismatchReported = 313,
2891    AtomCarrierIdTableUpdated = 314,
2892    AtomDataStallRecoveryReported = 315,
2893    AtomMediametricsMediaparserReported = 316,
2894    AtomTlsHandshakeReported = 317,
2895    AtomTextClassifierApiUsageReported = 318,
2896    AtomCarWatchdogKillStatsReported = 319,
2897    AtomMediametricsPlaybackReported = 320,
2898    AtomMediaNetworkInfoChanged = 321,
2899    AtomMediaPlaybackStateChanged = 322,
2900    AtomMediaPlaybackErrorReported = 323,
2901    AtomMediaPlaybackTrackChanged = 324,
2902    AtomWifiScanReported = 325,
2903    AtomWifiPnoScanReported = 326,
2904    AtomTifTuneChanged = 327,
2905    AtomAutoRotateReported = 328,
2906    AtomPerfettoTrigger = 329,
2907    AtomTranscodingData = 330,
2908    AtomImsServiceEntitlementUpdated = 331,
2909    AtomDeviceRotated = 333,
2910    AtomSimSpecificSettingsRestored = 334,
2911    AtomTextClassifierDownloadReported = 335,
2912    AtomPinStorageEvent = 336,
2913    AtomFaceDownReported = 337,
2914    AtomBluetoothHalCrashReasonReported = 338,
2915    AtomRebootEscrowPreparationReported = 339,
2916    AtomRebootEscrowLskfCaptureReported = 340,
2917    AtomRebootEscrowRebootReported = 341,
2918    AtomBinderLatencyReported = 342,
2919    AtomMediametricsAaudiostreamReported = 343,
2920    AtomMediaTranscodingSessionEnded = 344,
2921    AtomMagnificationUsageReported = 345,
2922    AtomMagnificationModeWithImeOnReported = 346,
2923    AtomAppSearchCallStatsReported = 347,
2924    AtomAppSearchPutDocumentStatsReported = 348,
2925    AtomDeviceControlChanged = 349,
2926    AtomDeviceStateChanged = 350,
2927    AtomInputdeviceRegistered = 351,
2928    AtomSmartspaceCardReported = 352,
2929    AtomAuthPromptAuthenticateInvoked = 353,
2930    AtomAuthManagerCanAuthenticateInvoked = 354,
2931    AtomAuthEnrollActionInvoked = 355,
2932    AtomAuthDeprecatedApiUsed = 356,
2933    AtomUnattendedRebootOccurred = 357,
2934    AtomLongRebootBlockingReported = 358,
2935    AtomLocationTimeZoneProviderStateChanged = 359,
2936    AtomFdtrackEventOccurred = 364,
2937    AtomTimeoutAutoExtendedReported = 365,
2938    AtomAlarmBatchDelivered = 367,
2939    AtomAlarmScheduled = 368,
2940    AtomCarWatchdogIoOveruseStatsReported = 369,
2941    AtomUserLevelHibernationStateChanged = 370,
2942    AtomAppSearchInitializeStatsReported = 371,
2943    AtomAppSearchQueryStatsReported = 372,
2944    AtomAppProcessDied = 373,
2945    AtomNetworkIpReachabilityMonitorReported = 374,
2946    AtomSlowInputEventReported = 375,
2947    AtomAnrOccurredProcessingStarted = 376,
2948    AtomAppSearchRemoveStatsReported = 377,
2949    AtomMediaCodecReported = 378,
2950    AtomPermissionUsageFragmentInteraction = 379,
2951    AtomPermissionDetailsInteraction = 380,
2952    AtomPrivacySensorToggleInteraction = 381,
2953    AtomPrivacyToggleDialogInteraction = 382,
2954    AtomAppSearchOptimizeStatsReported = 383,
2955    AtomNonA11yToolServiceWarningReport = 384,
2956    AtomAppCompatStateChanged = 386,
2957    AtomSizeCompatRestartButtonEventReported = 387,
2958    AtomSplitscreenUiChanged = 388,
2959    AtomNetworkDnsHandshakeReported = 389,
2960    AtomBluetoothCodePathCounter = 390,
2961    AtomBluetoothLeBatchScanReportDelay = 392,
2962    AtomAccessibilityFloatingMenuUiChanged = 393,
2963    AtomNeuralnetworksCompilationCompleted = 394,
2964    AtomNeuralnetworksExecutionCompleted = 395,
2965    AtomNeuralnetworksCompilationFailed = 396,
2966    AtomNeuralnetworksExecutionFailed = 397,
2967    AtomContextHubBooted = 398,
2968    AtomContextHubRestarted = 399,
2969    AtomContextHubLoadedNanoappSnapshotReported = 400,
2970    AtomChreCodeDownloadTransacted = 401,
2971    AtomUwbSessionInited = 402,
2972    AtomUwbSessionClosed = 403,
2973    AtomUwbFirstRangingReceived = 404,
2974    AtomUwbRangingMeasurementReceived = 405,
2975    AtomTextClassifierDownloadWorkScheduled = 406,
2976    AtomTextClassifierDownloadWorkCompleted = 407,
2977    AtomClipboardCleared = 408,
2978    AtomVmCreationRequested = 409,
2979    AtomNearbyDeviceScanStateChanged = 410,
2980    AtomApplicationLocalesChanged = 412,
2981    AtomMediametricsAudiotrackstatusReported = 413,
2982    AtomFoldStateDurationReported = 414,
2983    AtomLocationTimeZoneProviderControllerStateChanged = 415,
2984    AtomDisplayHbmStateChanged = 416,
2985    AtomDisplayHbmBrightnessChanged = 417,
2986    AtomPersistentUriPermissionsFlushed = 418,
2987    AtomEarlyBootCompOsArtifactsCheckReported = 419,
2988    AtomVbmetaDigestReported = 420,
2989    AtomApexInfoGathered = 421,
2990    AtomPvmInfoGathered = 422,
2991    AtomWearSettingsUiInteracted = 423,
2992    AtomTracingServiceReportEvent = 424,
2993    AtomMediametricsAudiorecordstatusReported = 425,
2994    AtomLauncherLatency = 426,
2995    AtomDropboxEntryDropped = 427,
2996    AtomWifiP2pConnectionReported = 428,
2997    AtomGameStateChanged = 429,
2998    AtomHotwordDetectorCreateRequested = 430,
2999    AtomHotwordDetectionServiceInitResultReported = 431,
3000    AtomHotwordDetectionServiceRestarted = 432,
3001    AtomHotwordDetectorKeyphraseTriggered = 433,
3002    AtomHotwordDetectorEvents = 434,
3003    AtomBootCompletedBroadcastCompletionLatencyReported = 437,
3004    AtomContactsIndexerUpdateStatsReported = 440,
3005    AtomAppBackgroundRestrictionsInfo = 441,
3006    AtomMmsSmsProviderGetThreadIdFailed = 442,
3007    AtomMmsSmsDatabaseHelperOnUpgradeFailed = 443,
3008    AtomPermissionReminderNotificationInteracted = 444,
3009    AtomRecentPermissionDecisionsInteracted = 445,
3010    AtomGnssPsdsDownloadReported = 446,
3011    AtomLeAudioConnectionSessionReported = 447,
3012    AtomLeAudioBroadcastSessionReported = 448,
3013    AtomDreamUiEventReported = 449,
3014    AtomTaskManagerEventReported = 450,
3015    AtomCdmAssociationAction = 451,
3016    AtomMagnificationTripleTapAndHoldActivatedSessionReported = 452,
3017    AtomMagnificationFollowTypingFocusActivatedSessionReported = 453,
3018    AtomAccessibilityTextReadingOptionsChanged = 454,
3019    AtomWifiSetupFailureCrashReported = 455,
3020    AtomUwbDeviceErrorReported = 456,
3021    AtomIsolatedCompilationScheduled = 457,
3022    AtomIsolatedCompilationEnded = 458,
3023    AtomOnsOpportunisticEsimProvisioningComplete = 459,
3024    AtomSystemServerPreWatchdogOccurred = 460,
3025    AtomTelephonyAnomalyDetected = 461,
3026    AtomLetterboxPositionChanged = 462,
3027    AtomRemoteKeyProvisioningAttempt = 463,
3028    AtomRemoteKeyProvisioningNetworkInfo = 464,
3029    AtomRemoteKeyProvisioningTiming = 465,
3030    AtomMediaoutputOpInteractionReport = 466,
3031    AtomSyncExemptionOccurred = 468,
3032    AtomAutofillPresentationEventReported = 469,
3033    AtomDockStateChanged = 470,
3034    AtomSafetySourceStateCollected = 471,
3035    AtomSafetyCenterSystemEventReported = 472,
3036    AtomSafetyCenterInteractionReported = 473,
3037    AtomSettingsProviderSettingChanged = 474,
3038    AtomBroadcastDeliveryEventReported = 475,
3039    AtomServiceRequestEventReported = 476,
3040    AtomProviderAcquisitionEventReported = 477,
3041    AtomBluetoothDeviceNameReported = 478,
3042    AtomCbConfigUpdated = 479,
3043    AtomCbModuleErrorReported = 480,
3044    AtomCbServiceFeatureChanged = 481,
3045    AtomCbReceiverFeatureChanged = 482,
3046    AtomPrivacySignalNotificationInteraction = 484,
3047    AtomPrivacySignalIssueCardInteraction = 485,
3048    AtomPrivacySignalsJobFailure = 486,
3049    AtomVibrationReported = 487,
3050    AtomUwbRangingStart = 489,
3051    AtomAppCompactedV2 = 491,
3052    AtomDisplayBrightnessChanged = 494,
3053    AtomActivityActionBlocked = 495,
3054    AtomNetworkDnsServerSupportReported = 504,
3055    AtomVmBooted = 505,
3056    AtomVmExited = 506,
3057    AtomAmbientBrightnessStatsReported = 507,
3058    AtomMediametricsSpatializercapabilitiesReported = 508,
3059    AtomMediametricsSpatializerdeviceenabledReported = 509,
3060    AtomMediametricsHeadtrackerdeviceenabledReported = 510,
3061    AtomMediametricsHeadtrackerdevicesupportedReported = 511,
3062    AtomHearingAidInfoReported = 513,
3063    AtomDeviceWideJobConstraintChanged = 514,
3064    AtomAmbientModeChanged = 515,
3065    AtomAnrLatencyReported = 516,
3066    AtomResourceApiInfo = 517,
3067    AtomSystemDefaultNetworkChanged = 518,
3068    AtomIwlanSetupDataCallResultReported = 519,
3069    AtomIwlanPdnDisconnectedReasonReported = 520,
3070    AtomAirplaneModeSessionReported = 521,
3071    AtomVmCpuStatusReported = 522,
3072    AtomVmMemStatusReported = 523,
3073    AtomPackageInstallationSessionReported = 524,
3074    AtomDefaultNetworkRematchInfo = 525,
3075    AtomNetworkSelectionPerformance = 526,
3076    AtomNetworkNsdReported = 527,
3077    AtomBluetoothDisconnectionReasonReported = 529,
3078    AtomBluetoothLocalVersionsReported = 530,
3079    AtomBluetoothRemoteSupportedFeaturesReported = 531,
3080    AtomBluetoothLocalSupportedFeaturesReported = 532,
3081    AtomBluetoothGattAppInfo = 533,
3082    AtomBrightnessConfigurationUpdated = 534,
3083    AtomWearMediaOutputSwitcherLaunched = 538,
3084    AtomWearMediaOutputSwitcherFinished = 539,
3085    AtomWearMediaOutputSwitcherConnectionReported = 540,
3086    AtomWearMediaOutputSwitcherDeviceScanTriggered = 541,
3087    AtomWearMediaOutputSwitcherFirstDeviceScanLatency = 542,
3088    AtomWearMediaOutputSwitcherConnectDeviceLatency = 543,
3089    AtomPackageManagerSnapshotReported = 544,
3090    AtomPackageManagerAppsFilterCacheBuildReported = 545,
3091    AtomPackageManagerAppsFilterCacheUpdateReported = 546,
3092    AtomLauncherImpressionEvent = 547,
3093    AtomWearMediaOutputSwitcherAllDevicesScanLatency = 549,
3094    AtomWsWatchFaceEdited = 551,
3095    AtomWsWatchFaceFavoriteActionReported = 552,
3096    AtomWsWatchFaceSetActionReported = 553,
3097    AtomPackageUninstallationReported = 554,
3098    AtomGameModeChanged = 555,
3099    AtomGameModeConfigurationChanged = 556,
3100    AtomBedtimeModeStateChanged = 557,
3101    AtomNetworkSliceSessionEnded = 558,
3102    AtomNetworkSliceDailyDataUsageReported = 559,
3103    AtomNfcTagTypeOccurred = 560,
3104    AtomNfcAidConflictOccurred = 561,
3105    AtomNfcReaderConflictOccurred = 562,
3106    AtomWsTileListChanged = 563,
3107    AtomGetTypeAccessedWithoutPermission = 564,
3108    AtomMobileBundledAppInfoGathered = 566,
3109    AtomWsWatchFaceComplicationSetChanged = 567,
3110    AtomMediaDrmCreated = 568,
3111    AtomMediaDrmErrored = 569,
3112    AtomMediaDrmSessionOpened = 570,
3113    AtomMediaDrmSessionClosed = 571,
3114    AtomUserSelectedResolution = 572,
3115    AtomUnsafeIntentEventReported = 573,
3116    AtomPerformanceHintSessionReported = 574,
3117    AtomMediametricsMidiDeviceCloseReported = 576,
3118    AtomBiometricTouchReported = 577,
3119    AtomHotwordAudioEgressEventReported = 578,
3120    AtomLocationEnabledStateChanged = 580,
3121    AtomImeRequestFinished = 581,
3122    AtomUsbComplianceWarningsReported = 582,
3123    AtomAppSupportedLocalesChanged = 583,
3124    AtomMediaProviderVolumeRecoveryReported = 586,
3125    AtomBiometricPropertiesCollected = 587,
3126    AtomKernelWakeupAttributed = 588,
3127    AtomScreenStateChangedV2 = 589,
3128    AtomWsBackupActionReported = 590,
3129    AtomWsRestoreActionReported = 591,
3130    AtomDeviceLogAccessEventReported = 592,
3131    AtomMediaSessionUpdated = 594,
3132    AtomWearOobeStateChanged = 595,
3133    AtomWsNotificationUpdated = 596,
3134    AtomNetworkValidationFailureStatsDailyReported = 601,
3135    AtomWsComplicationTapped = 602,
3136    AtomWsNotificationBlocking = 780,
3137    AtomWsNotificationBridgemodeUpdated = 822,
3138    AtomWsNotificationDismissalActioned = 823,
3139    AtomWsNotificationActioned = 824,
3140    AtomWsNotificationLatency = 880,
3141    AtomWifiBytesTransfer = 10000,
3142    AtomWifiBytesTransferByFgBg = 10001,
3143    AtomMobileBytesTransfer = 10002,
3144    AtomMobileBytesTransferByFgBg = 10003,
3145    AtomBluetoothBytesTransfer = 10006,
3146    AtomKernelWakelock = 10004,
3147    AtomSubsystemSleepState = 10005,
3148    AtomCpuTimePerUid = 10009,
3149    AtomCpuTimePerUidFreq = 10010,
3150    AtomWifiActivityInfo = 10011,
3151    AtomModemActivityInfo = 10012,
3152    AtomBluetoothActivityInfo = 10007,
3153    AtomProcessMemoryState = 10013,
3154    AtomSystemElapsedRealtime = 10014,
3155    AtomSystemUptime = 10015,
3156    AtomCpuActiveTime = 10016,
3157    AtomCpuClusterTime = 10017,
3158    AtomDiskSpace = 10018,
3159    AtomRemainingBatteryCapacity = 10019,
3160    AtomFullBatteryCapacity = 10020,
3161    AtomTemperature = 10021,
3162    AtomBinderCalls = 10022,
3163    AtomBinderCallsExceptions = 10023,
3164    AtomLooperStats = 10024,
3165    AtomDiskStats = 10025,
3166    AtomDirectoryUsage = 10026,
3167    AtomAppSize = 10027,
3168    AtomCategorySize = 10028,
3169    AtomProcStats = 10029,
3170    AtomBatteryVoltage = 10030,
3171    AtomNumFingerprintsEnrolled = 10031,
3172    AtomDiskIo = 10032,
3173    AtomPowerProfile = 10033,
3174    AtomProcStatsPkgProc = 10034,
3175    AtomProcessCpuTime = 10035,
3176    AtomCpuTimePerThreadFreq = 10037,
3177    AtomOnDevicePowerMeasurement = 10038,
3178    AtomDeviceCalculatedPowerUse = 10039,
3179    AtomProcessMemoryHighWaterMark = 10042,
3180    AtomBatteryLevel = 10043,
3181    AtomBuildInformation = 10044,
3182    AtomBatteryCycleCount = 10045,
3183    AtomDebugElapsedClock = 10046,
3184    AtomDebugFailingElapsedClock = 10047,
3185    AtomNumFacesEnrolled = 10048,
3186    AtomRoleHolder = 10049,
3187    AtomDangerousPermissionState = 10050,
3188    AtomTrainInfo = 10051,
3189    AtomTimeZoneDataInfo = 10052,
3190    AtomExternalStorageInfo = 10053,
3191    AtomGpuStatsGlobalInfo = 10054,
3192    AtomGpuStatsAppInfo = 10055,
3193    AtomSystemIonHeapSize = 10056,
3194    AtomAppsOnExternalStorageInfo = 10057,
3195    AtomFaceSettings = 10058,
3196    AtomCoolingDevice = 10059,
3197    AtomAppOps = 10060,
3198    AtomProcessSystemIonHeapSize = 10061,
3199    AtomSurfaceflingerStatsGlobalInfo = 10062,
3200    AtomSurfaceflingerStatsLayerInfo = 10063,
3201    AtomProcessMemorySnapshot = 10064,
3202    AtomVmsClientStats = 10065,
3203    AtomNotificationRemoteViews = 10066,
3204    AtomDangerousPermissionStateSampled = 10067,
3205    AtomGraphicsStats = 10068,
3206    AtomRuntimeAppOpAccess = 10069,
3207    AtomIonHeapSize = 10070,
3208    AtomPackageNotificationPreferences = 10071,
3209    AtomPackageNotificationChannelPreferences = 10072,
3210    AtomPackageNotificationChannelGroupPreferences = 10073,
3211    AtomGnssStats = 10074,
3212    AtomAttributedAppOps = 10075,
3213    AtomVoiceCallSession = 10076,
3214    AtomVoiceCallRatUsage = 10077,
3215    AtomSimSlotState = 10078,
3216    AtomSupportedRadioAccessFamily = 10079,
3217    AtomSettingSnapshot = 10080,
3218    AtomBlobInfo = 10081,
3219    AtomDataUsageBytesTransfer = 10082,
3220    AtomBytesTransferByTagAndMetered = 10083,
3221    AtomDndModeRule = 10084,
3222    AtomGeneralExternalStorageAccessStats = 10085,
3223    AtomIncomingSms = 10086,
3224    AtomOutgoingSms = 10087,
3225    AtomCarrierIdTableVersion = 10088,
3226    AtomDataCallSession = 10089,
3227    AtomCellularServiceState = 10090,
3228    AtomCellularDataServiceSwitch = 10091,
3229    AtomSystemMemory = 10092,
3230    AtomImsRegistrationTermination = 10093,
3231    AtomImsRegistrationStats = 10094,
3232    AtomCpuTimePerClusterFreq = 10095,
3233    AtomCpuCyclesPerUidCluster = 10096,
3234    AtomDeviceRotatedData = 10097,
3235    AtomCpuCyclesPerThreadGroupCluster = 10098,
3236    AtomMediaDrmActivityInfo = 10099,
3237    AtomOemManagedBytesTransfer = 10100,
3238    AtomGnssPowerStats = 10101,
3239    AtomTimeZoneDetectorState = 10102,
3240    AtomKeystore2StorageStats = 10103,
3241    AtomRkpPoolStats = 10104,
3242    AtomProcessDmabufMemory = 10105,
3243    AtomPendingAlarmInfo = 10106,
3244    AtomUserLevelHibernatedApps = 10107,
3245    AtomLauncherLayoutSnapshot = 10108,
3246    AtomGlobalHibernatedApps = 10109,
3247    AtomInputEventLatencySketch = 10110,
3248    AtomBatteryUsageStatsBeforeReset = 10111,
3249    AtomBatteryUsageStatsSinceReset = 10112,
3250    AtomBatteryUsageStatsSinceResetUsingPowerProfileModel = 10113,
3251    AtomInstalledIncrementalPackage = 10114,
3252    AtomTelephonyNetworkRequests = 10115,
3253    AtomAppSearchStorageInfo = 10116,
3254    AtomVmstat = 10117,
3255    AtomKeystore2KeyCreationWithGeneralInfo = 10118,
3256    AtomKeystore2KeyCreationWithAuthInfo = 10119,
3257    AtomKeystore2KeyCreationWithPurposeAndModesInfo = 10120,
3258    AtomKeystore2AtomWithOverflow = 10121,
3259    AtomKeystore2KeyOperationWithPurposeAndModesInfo = 10122,
3260    AtomKeystore2KeyOperationWithGeneralInfo = 10123,
3261    AtomRkpErrorStats = 10124,
3262    AtomKeystore2CrashStats = 10125,
3263    AtomVendorApexInfo = 10126,
3264    AtomAccessibilityShortcutStats = 10127,
3265    AtomAccessibilityFloatingMenuStats = 10128,
3266    AtomDataUsageBytesTransferV2 = 10129,
3267    AtomMediaCapabilities = 10130,
3268    AtomCarWatchdogSystemIoUsageSummary = 10131,
3269    AtomCarWatchdogUidIoUsageSummary = 10132,
3270    AtomImsRegistrationFeatureTagStats = 10133,
3271    AtomRcsClientProvisioningStats = 10134,
3272    AtomRcsAcsProvisioningStats = 10135,
3273    AtomSipDelegateStats = 10136,
3274    AtomSipTransportFeatureTagStats = 10137,
3275    AtomSipMessageResponse = 10138,
3276    AtomSipTransportSession = 10139,
3277    AtomImsDedicatedBearerListenerEvent = 10140,
3278    AtomImsDedicatedBearerEvent = 10141,
3279    AtomImsRegistrationServiceDescStats = 10142,
3280    AtomUceEventStats = 10143,
3281    AtomPresenceNotifyEvent = 10144,
3282    AtomGbaEvent = 10145,
3283    AtomPerSimStatus = 10146,
3284    AtomGpuWorkPerUid = 10147,
3285    AtomPersistentUriPermissionsAmountPerPackage = 10148,
3286    AtomSignedPartitionInfo = 10149,
3287    AtomPinnedFileSizesPerPackage = 10150,
3288    AtomPendingIntentsPerPackage = 10151,
3289    AtomUserInfo = 10152,
3290    AtomTelephonyNetworkRequestsV2 = 10153,
3291    AtomDeviceTelephonyProperties = 10154,
3292    AtomRemoteKeyProvisioningErrorCounts = 10155,
3293    AtomSafetyState = 10156,
3294    AtomIncomingMms = 10157,
3295    AtomOutgoingMms = 10158,
3296    AtomMultiUserInfo = 10160,
3297    AtomNetworkBpfMapInfo = 10161,
3298    AtomOutgoingShortCodeSms = 10162,
3299    AtomConnectivityStateSample = 10163,
3300    AtomNetworkSelectionRematchReasonsInfo = 10164,
3301    AtomGameModeInfo = 10165,
3302    AtomGameModeConfiguration = 10166,
3303    AtomGameModeListener = 10167,
3304    AtomNetworkSliceRequestCount = 10168,
3305    AtomWsTileSnapshot = 10169,
3306    AtomWsActiveWatchFaceComplicationSetSnapshot = 10170,
3307    AtomProcessState = 10171,
3308    AtomProcessAssociation = 10172,
3309    AtomAdpfSystemComponentInfo = 10173,
3310    AtomNotificationMemoryUse = 10174,
3311    AtomHdrCapabilities = 10175,
3312    AtomWsFavouriteWatchFaceListSnapshot = 10176,
3313    AtomAccessibilityCheckResultReported = 910,
3314    AtomAdaptiveAuthUnlockAfterLockReported = 820,
3315    AtomThermalStatusCalled = 772,
3316    AtomThermalHeadroomCalled = 773,
3317    AtomThermalHeadroomThresholdsCalled = 774,
3318    AtomAdpfHintSessionTidCleanup = 839,
3319    AtomThermalHeadroomThresholds = 10201,
3320    AtomAdpfSessionSnapshot = 10218,
3321    AtomJsscriptengineLatencyReported = 483,
3322    AtomAdServicesApiCalled = 435,
3323    AtomAdServicesMesurementReportsUploaded = 436,
3324    AtomMobileDataDownloadFileGroupStatusReported = 490,
3325    AtomMobileDataDownloadDownloadResultReported = 502,
3326    AtomAdServicesSettingsUsageReported = 493,
3327    AtomBackgroundFetchProcessReported = 496,
3328    AtomUpdateCustomAudienceProcessReported = 497,
3329    AtomRunAdBiddingProcessReported = 498,
3330    AtomRunAdScoringProcessReported = 499,
3331    AtomRunAdSelectionProcessReported = 500,
3332    AtomRunAdBiddingPerCaProcessReported = 501,
3333    AtomMobileDataDownloadFileGroupStorageStatsReported = 503,
3334    AtomAdServicesMeasurementRegistrations = 512,
3335    AtomAdServicesGetTopicsReported = 535,
3336    AtomAdServicesEpochComputationGetTopTopicsReported = 536,
3337    AtomAdServicesEpochComputationClassifierReported = 537,
3338    AtomAdServicesBackCompatGetTopicsReported = 598,
3339    AtomAdServicesBackCompatEpochComputationClassifierReported = 599,
3340    AtomAdServicesMeasurementDebugKeys = 640,
3341    AtomAdServicesErrorReported = 662,
3342    AtomAdServicesBackgroundJobsExecutionReported = 663,
3343    AtomAdServicesMeasurementDelayedSourceRegistration = 673,
3344    AtomAdServicesMeasurementAttribution = 674,
3345    AtomAdServicesMeasurementJobs = 675,
3346    AtomAdServicesMeasurementWipeout = 676,
3347    AtomAdServicesMeasurementAdIdMatchForDebugKeys = 695,
3348    AtomAdServicesEnrollmentDataStored = 697,
3349    AtomAdServicesEnrollmentFileDownloaded = 698,
3350    AtomAdServicesEnrollmentMatched = 699,
3351    AtomAdServicesConsentMigrated = 702,
3352    AtomAdServicesEnrollmentFailed = 714,
3353    AtomAdServicesMeasurementClickVerification = 756,
3354    AtomAdServicesEncryptionKeyFetched = 765,
3355    AtomAdServicesEncryptionKeyDbTransactionEnded = 766,
3356    AtomDestinationRegisteredBeacons = 767,
3357    AtomReportInteractionApiCalled = 768,
3358    AtomInteractionReportingTableCleared = 769,
3359    AtomAppManifestConfigHelperCalled = 788,
3360    AtomAdFilteringProcessJoinCaReported = 793,
3361    AtomAdFilteringProcessAdSelectionReported = 794,
3362    AtomAdCounterHistogramUpdaterReported = 795,
3363    AtomSignatureVerification = 807,
3364    AtomKAnonImmediateSignJoinStatusReported = 808,
3365    AtomKAnonBackgroundJobStatusReported = 809,
3366    AtomKAnonInitializeStatusReported = 810,
3367    AtomKAnonSignStatusReported = 811,
3368    AtomKAnonJoinStatusReported = 812,
3369    AtomKAnonKeyAttestationStatusReported = 813,
3370    AtomGetAdSelectionDataApiCalled = 814,
3371    AtomGetAdSelectionDataBuyerInputGenerated = 815,
3372    AtomBackgroundJobSchedulingReported = 834,
3373    AtomTopicsEncryptionEpochComputationReported = 840,
3374    AtomTopicsEncryptionGetTopicsReported = 841,
3375    AtomAdservicesShellCommandCalled = 842,
3376    AtomUpdateSignalsApiCalled = 843,
3377    AtomEncodingJobRun = 844,
3378    AtomEncodingJsFetch = 845,
3379    AtomEncodingJsExecution = 846,
3380    AtomPersistAdSelectionResultCalled = 847,
3381    AtomServerAuctionKeyFetchCalled = 848,
3382    AtomServerAuctionBackgroundKeyFetchEnabled = 849,
3383    AtomAdServicesMeasurementProcessOdpRegistration = 864,
3384    AtomAdServicesMeasurementNotifyRegistrationToOdp = 865,
3385    AtomSelectAdsFromOutcomesApiCalled = 876,
3386    AtomReportImpressionApiCalled = 877,
3387    AtomAdServicesEnrollmentTransactionStats = 885,
3388    AtomAdServicesCobaltLoggerEventReported = 902,
3389    AtomAdServicesCobaltPeriodicJobEventReported = 903,
3390    AtomUpdateSignalsProcessReported = 905,
3391    AtomTopicsScheduleEpochJobSettingReported = 930,
3392    AtomAiWallpapersButtonPressed = 706,
3393    AtomAiWallpapersTemplateSelected = 707,
3394    AtomAiWallpapersTermSelected = 708,
3395    AtomAiWallpapersWallpaperSet = 709,
3396    AtomAiWallpapersSessionSummary = 710,
3397    AtomApexInstallationRequested = 732,
3398    AtomApexInstallationStaged = 733,
3399    AtomApexInstallationEnded = 734,
3400    AtomAppSearchSetSchemaStatsReported = 385,
3401    AtomAppSearchSchemaMigrationStatsReported = 579,
3402    AtomAppSearchUsageSearchIntentStatsReported = 825,
3403    AtomAppSearchUsageSearchIntentRawQueryStatsReported = 826,
3404    AtomAppSearchAppsIndexerStatsReported = 909,
3405    AtomArtDatumReported = 332,
3406    AtomArtDeviceDatumReported = 550,
3407    AtomArtDatumDeltaReported = 565,
3408    AtomArtDex2oatReported = 929,
3409    AtomArtDeviceStatus = 10205,
3410    AtomBackgroundDexoptJobEnded = 467,
3411    AtomPrerebootDexoptJobEnded = 883,
3412    AtomOdrefreshReported = 366,
3413    AtomOdsignReported = 548,
3414    AtomAutofillUiEventReported = 603,
3415    AtomAutofillFillRequestReported = 604,
3416    AtomAutofillFillResponseReported = 605,
3417    AtomAutofillSaveEventReported = 606,
3418    AtomAutofillSessionCommitted = 607,
3419    AtomAutofillFieldClassificationEventReported = 659,
3420    AtomCarRecentsEventReported = 770,
3421    AtomCarCalmModeEventReported = 797,
3422    AtomCarWakeupFromSuspendReported = 852,
3423    AtomPluginInitialized = 655,
3424    AtomBluetoothHashedDeviceNameReported = 613,
3425    AtomBluetoothL2capCocClientConnection = 614,
3426    AtomBluetoothL2capCocServerConnection = 615,
3427    AtomBluetoothLeSessionConnected = 656,
3428    AtomRestrictedBluetoothDeviceNameReported = 666,
3429    AtomBluetoothProfileConnectionAttempted = 696,
3430    AtomBluetoothContentProfileErrorReported = 781,
3431    AtomBluetoothRfcommConnectionAttempted = 782,
3432    AtomRemoteDeviceInformationWithMetricId = 862,
3433    AtomLeAppScanStateChanged = 870,
3434    AtomLeRadioScanStopped = 871,
3435    AtomLeScanResultReceived = 872,
3436    AtomLeScanAbused = 873,
3437    AtomLeAdvStateChanged = 874,
3438    AtomLeAdvErrorReported = 875,
3439    AtomA2dpSessionReported = 904,
3440    AtomBluetoothCrossLayerEventReported = 916,
3441    AtomBroadcastAudioSessionReported = 927,
3442    AtomBroadcastAudioSyncReported = 928,
3443    AtomBluetoothRfcommConnectionReportedAtClose = 982,
3444    AtomBluetoothLeConnection = 988,
3445    AtomBroadcastSent = 922,
3446    AtomCameraFeatureCombinationQueryEvent = 900,
3447    AtomCertificateTransparencyLogListStateChanged = 934,
3448    AtomCertificateTransparencyLogListUpdateFailed = 972,
3449    AtomDailyKeepaliveInfoReported = 650,
3450    AtomNetworkRequestStateChanged = 779,
3451    AtomTetheringActiveSessionsReported = 925,
3452    AtomNetworkStatsRecorderFileOperated = 783,
3453    AtomCoreNetworkingTerribleErrorOccurred = 979,
3454    AtomApfSessionInfoReported = 777,
3455    AtomIpClientRaInfoReported = 778,
3456    AtomVpnConnectionStateChanged = 850,
3457    AtomVpnConnectionReported = 851,
3458    AtomCpuPolicy = 10199,
3459    AtomCredentialManagerApiCalled = 585,
3460    AtomCredentialManagerInitPhaseReported = 651,
3461    AtomCredentialManagerCandidatePhaseReported = 652,
3462    AtomCredentialManagerFinalPhaseReported = 653,
3463    AtomCredentialManagerTotalReported = 667,
3464    AtomCredentialManagerFinalnouidReported = 668,
3465    AtomCredentialManagerGetReported = 669,
3466    AtomCredentialManagerAuthClickReported = 670,
3467    AtomCredentialManagerApiv2Called = 671,
3468    AtomCronetEngineCreated = 703,
3469    AtomCronetTrafficReported = 704,
3470    AtomCronetEngineBuilderInitialized = 762,
3471    AtomCronetHttpFlagsInitialized = 763,
3472    AtomCronetInitialized = 764,
3473    AtomDesktopModeUiChanged = 818,
3474    AtomDesktopModeSessionTaskUpdate = 819,
3475    AtomDesktopModeTaskSizeUpdated = 935,
3476    AtomDeviceLockCheckInRequestReported = 726,
3477    AtomDeviceLockProvisioningCompleteReported = 727,
3478    AtomDeviceLockKioskAppRequestReported = 728,
3479    AtomDeviceLockCheckInRetryReported = 789,
3480    AtomDeviceLockProvisionFailureReported = 790,
3481    AtomDeviceLockLockUnlockDeviceFailureReported = 791,
3482    AtomDevicePolicyManagementMode = 10216,
3483    AtomDevicePolicyState = 10217,
3484    AtomDisplayModeDirectorVoteChanged = 792,
3485    AtomExternalDisplayStateChanged = 806,
3486    AtomDndStateChanged = 657,
3487    AtomDreamSettingChanged = 705,
3488    AtomDreamSettingSnapshot = 10192,
3489    AtomExpressEventReported = 528,
3490    AtomExpressHistogramSampleReported = 593,
3491    AtomExpressUidEventReported = 644,
3492    AtomExpressUidHistogramSampleReported = 658,
3493    AtomFederatedComputeApiCalled = 712,
3494    AtomFederatedComputeTrainingEventReported = 771,
3495    AtomExampleIteratorNextLatencyReported = 838,
3496    AtomFullScreenIntentLaunched = 631,
3497    AtomBalAllowed = 632,
3498    AtomInTaskActivityStarted = 685,
3499    AtomDeviceOrientationChanged = 906,
3500    AtomCachedAppsHighWatermark = 10189,
3501    AtomStylusPredictionMetricsReported = 718,
3502    AtomUserRiskEventReported = 725,
3503    AtomMediaProjectionStateChanged = 729,
3504    AtomMediaProjectionTargetChanged = 730,
3505    AtomExcessiveBinderProxyCountReported = 853,
3506    AtomProxyBytesTransferByFgBg = 10200,
3507    AtomMobileBytesTransferByProcState = 10204,
3508    AtomBiometricFrrNotification = 817,
3509    AtomSensitiveContentMediaProjectionSession = 830,
3510    AtomSensitiveNotificationAppProtectionSession = 831,
3511    AtomSensitiveNotificationAppProtectionApplied = 832,
3512    AtomSensitiveNotificationRedaction = 833,
3513    AtomSensitiveContentAppProtection = 835,
3514    AtomAppRestrictionStateChanged = 866,
3515    AtomBatteryUsageStatsPerUid = 10209,
3516    AtomPostgcMemorySnapshot = 924,
3517    AtomPowerSaveTempAllowlistChanged = 926,
3518    AtomAppOpAccessTracked = 931,
3519    AtomContentOrFileUriEventReported = 933,
3520    AtomApplicationGrammaticalInflectionChanged = 584,
3521    AtomSystemGrammaticalInflectionChanged = 816,
3522    AtomBatteryHealth = 10220,
3523    AtomHdmiEarcStatusReported = 701,
3524    AtomHdmiSoundbarModeStatusReported = 724,
3525    AtomHealthConnectApiCalled = 616,
3526    AtomHealthConnectUsageStats = 617,
3527    AtomHealthConnectStorageStats = 618,
3528    AtomHealthConnectApiInvoked = 643,
3529    AtomExerciseRouteApiCalled = 654,
3530    AtomHealthConnectExportInvoked = 907,
3531    AtomHealthConnectImportInvoked = 918,
3532    AtomHealthConnectExportImportStatsReported = 919,
3533    AtomHealthConnectUiImpression = 623,
3534    AtomHealthConnectUiInteraction = 624,
3535    AtomHealthConnectAppOpenedReported = 625,
3536    AtomHotwordEgressSizeAtomReported = 761,
3537    AtomIkeSessionTerminated = 678,
3538    AtomIkeLivenessCheckSessionValidated = 760,
3539    AtomNegotiatedSecurityAssociation = 821,
3540    AtomKeyboardConfigured = 682,
3541    AtomKeyboardSystemsEventReported = 683,
3542    AtomInputdeviceUsageReported = 686,
3543    AtomInputEventLatencyReported = 932,
3544    AtomTouchpadUsage = 10191,
3545    AtomKernelOomKillOccurred = 754,
3546    AtomEmergencyStateChanged = 633,
3547    AtomChreSignificantMotionStateChanged = 868,
3548    AtomPopulationDensityProviderLoadingReported = 1002,
3549    AtomDensityBasedCoarseLocationsUsageReported = 1003,
3550    AtomDensityBasedCoarseLocationsProviderQueryReported = 1004,
3551    AtomMediaCodecReclaimRequestCompleted = 600,
3552    AtomMediaCodecStarted = 641,
3553    AtomMediaCodecStopped = 642,
3554    AtomMediaCodecRendered = 684,
3555    AtomMediaEditingEndedReported = 798,
3556    AtomMteState = 10181,
3557    AtomMicroxrDeviceBootCompleteReported = 901,
3558    AtomNfcObserveModeStateChanged = 855,
3559    AtomNfcFieldChanged = 856,
3560    AtomNfcPollingLoopNotificationReported = 857,
3561    AtomNfcProprietaryCapabilitiesReported = 858,
3562    AtomOndevicepersonalizationApiCalled = 711,
3563    AtomComponentStateChangedReported = 863,
3564    AtomPdfLoadReported = 859,
3565    AtomPdfApiUsageReported = 860,
3566    AtomPdfSearchReported = 861,
3567    AtomPressureStallInformation = 10229,
3568    AtomPermissionRationaleDialogViewed = 645,
3569    AtomPermissionRationaleDialogActionReported = 646,
3570    AtomAppDataSharingUpdatesNotificationInteraction = 647,
3571    AtomAppDataSharingUpdatesFragmentViewed = 648,
3572    AtomAppDataSharingUpdatesFragmentActionReported = 649,
3573    AtomEnhancedConfirmationDialogResultReported = 827,
3574    AtomEnhancedConfirmationRestrictionCleared = 828,
3575    AtomPhotopickerSessionInfoReported = 886,
3576    AtomPhotopickerApiInfoReported = 887,
3577    AtomPhotopickerUiEventLogged = 888,
3578    AtomPhotopickerMediaItemStatusReported = 889,
3579    AtomPhotopickerPreviewInfoLogged = 890,
3580    AtomPhotopickerMenuInteractionLogged = 891,
3581    AtomPhotopickerBannerInteractionLogged = 892,
3582    AtomPhotopickerMediaLibraryInfoLogged = 893,
3583    AtomPhotopickerPageInfoLogged = 894,
3584    AtomPhotopickerMediaGridSyncInfoReported = 895,
3585    AtomPhotopickerAlbumSyncInfoReported = 896,
3586    AtomPhotopickerSearchInfoReported = 897,
3587    AtomSearchDataExtractionDetailsReported = 898,
3588    AtomEmbeddedPhotopickerInfoReported = 899,
3589    AtomAtom9999 = 9999,
3590    AtomAtom99999 = 99999,
3591    AtomScreenOffReported = 776,
3592    AtomScreenTimeoutOverrideReported = 836,
3593    AtomScreenInteractiveSessionReported = 837,
3594    AtomScreenDimReported = 867,
3595    AtomMediaProviderDatabaseRollbackReported = 784,
3596    AtomBackupSetupStatusReported = 785,
3597    AtomRangingSessionConfigured = 993,
3598    AtomRangingSessionStarted = 994,
3599    AtomRangingSessionClosed = 995,
3600    AtomRangingTechnologyStarted = 996,
3601    AtomRangingTechnologyStopped = 997,
3602    AtomRkpdPoolStats = 664,
3603    AtomRkpdClientOperation = 665,
3604    AtomSandboxApiCalled = 488,
3605    AtomSandboxActivityEventOccurred = 735,
3606    AtomSdkSandboxRestrictedAccessInSession = 796,
3607    AtomSandboxSdkStorage = 10159,
3608    AtomSelinuxAuditLog = 799,
3609    AtomSettingsSpaReported = 622,
3610    AtomTestExtensionAtomReported = 660,
3611    AtomTestRestrictedAtomReported = 672,
3612    AtomStatsSocketLossReported = 752,
3613    AtomLockscreenShortcutSelected = 611,
3614    AtomLockscreenShortcutTriggered = 612,
3615    AtomLauncherImpressionEventV2 = 716,
3616    AtomDisplaySwitchLatencyTracked = 753,
3617    AtomNotificationListenerService = 829,
3618    AtomNavHandleTouchPoints = 869,
3619    AtomCommunalHubWidgetEventReported = 908,
3620    AtomCommunalHubSnapshot = 10226,
3621    AtomEmergencyNumberDialed = 637,
3622    AtomCallStats = 10221,
3623    AtomCallAudioRouteStats = 10222,
3624    AtomTelecomApiStats = 10223,
3625    AtomTelecomErrorStats = 10224,
3626    AtomCellularRadioPowerStateChanged = 713,
3627    AtomEmergencyNumbersInfo = 10180,
3628    AtomDataNetworkValidation = 10207,
3629    AtomDataRatStateChanged = 854,
3630    AtomConnectedChannelChanged = 882,
3631    AtomIwlanUnderlyingNetworkValidationResultReported = 923,
3632    AtomQualifiedRatListChanged = 634,
3633    AtomQnsImsCallDropStats = 635,
3634    AtomQnsFallbackRestrictionChanged = 636,
3635    AtomQnsRatPreferenceMismatchInfo = 10177,
3636    AtomQnsHandoverTimeMillis = 10178,
3637    AtomQnsHandoverPingpong = 10179,
3638    AtomSatelliteController = 10182,
3639    AtomSatelliteSession = 10183,
3640    AtomSatelliteIncomingDatagram = 10184,
3641    AtomSatelliteOutgoingDatagram = 10185,
3642    AtomSatelliteProvision = 10186,
3643    AtomSatelliteSosMessageRecommender = 10187,
3644    AtomCarrierRoamingSatelliteSession = 10211,
3645    AtomCarrierRoamingSatelliteControllerStats = 10212,
3646    AtomControllerStatsPerPackage = 10213,
3647    AtomSatelliteEntitlement = 10214,
3648    AtomSatelliteConfigUpdater = 10215,
3649    AtomSatelliteAccessController = 10219,
3650    AtomCellularIdentifierDisclosed = 800,
3651    AtomThreadnetworkTelemetryDataReported = 738,
3652    AtomThreadnetworkTopoEntryRepeated = 739,
3653    AtomThreadnetworkDeviceInfoReported = 740,
3654    AtomBootIntegrityInfoReported = 775,
3655    AtomTvLowPowerStandbyPolicy = 679,
3656    AtomExternalTvInputEvent = 717,
3657    AtomTestUprobestatsAtomReported = 915,
3658    AtomUwbActivityInfo = 10188,
3659    AtomMediatorUpdated = 721,
3660    AtomSysproxyBluetoothBytesTransfer = 10196,
3661    AtomSysproxyConnectionUpdated = 786,
3662    AtomWearCompanionConnectionState = 921,
3663    AtomMediaActionReported = 608,
3664    AtomMediaControlsLaunched = 609,
3665    AtomMediaSessionStateChanged = 677,
3666    AtomWearMediaOutputSwitcherDeviceScanApiLatency = 757,
3667    AtomWearMediaOutputSwitcherSassDeviceUnavailable = 758,
3668    AtomWearMediaOutputSwitcherFastpairApiTimeout = 759,
3669    AtomWearModeStateChanged = 715,
3670    AtomRendererInitialized = 736,
3671    AtomSchemaVersionReceived = 737,
3672    AtomLayoutInspected = 741,
3673    AtomLayoutExpressionInspected = 742,
3674    AtomLayoutAnimationsInspected = 743,
3675    AtomMaterialComponentsInspected = 744,
3676    AtomTileRequested = 745,
3677    AtomStateResponseReceived = 746,
3678    AtomTileResponseReceived = 747,
3679    AtomInflationFinished = 748,
3680    AtomInflationFailed = 749,
3681    AtomIgnoredInflationFailuresReported = 750,
3682    AtomDrawableRendered = 751,
3683    AtomWearTimeSyncRequested = 911,
3684    AtomWearTimeUpdateStarted = 912,
3685    AtomWearTimeSyncAttemptCompleted = 913,
3686    AtomWearTimeChanged = 914,
3687    AtomWearAdaptiveSuspendStatsReported = 619,
3688    AtomWearPowerAnomalyServiceOperationalStatsReported = 620,
3689    AtomWearPowerAnomalyServiceEventStatsReported = 621,
3690    AtomWsWearTimeSession = 610,
3691    AtomWsIncomingCallActionReported = 626,
3692    AtomWsCallDisconnectionReported = 627,
3693    AtomWsCallDurationReported = 628,
3694    AtomWsCallUserExperienceLatencyReported = 629,
3695    AtomWsCallInteractionReported = 630,
3696    AtomWsOnBodyStateChanged = 787,
3697    AtomWsWatchFaceRestrictedComplicationsImpacted = 802,
3698    AtomWsWatchFaceDefaultRestrictedComplicationsRemoved = 803,
3699    AtomWsComplicationsImpactedNotificationEventReported = 804,
3700    AtomWsRemoteEventUsageReported = 920,
3701    AtomWsBugreportRequested = 936,
3702    AtomWsBugreportTriggered = 937,
3703    AtomWsBugreportFinished = 938,
3704    AtomWsBugreportResultReceived = 939,
3705    AtomWsStandaloneModeSnapshot = 10197,
3706    AtomWsFavoriteWatchFaceSnapshot = 10206,
3707    AtomWsPhotosWatchFaceFeatureSnapshot = 10225,
3708    AtomWsWatchFaceCustomizationSnapshot = 10227,
3709    AtomWearPowerMenuOpened = 731,
3710    AtomWearAssistantOpened = 755,
3711    AtomFirstOverlayStateChanged = 917,
3712    AtomWifiAwareNdpReported = 638,
3713    AtomWifiAwareAttachReported = 639,
3714    AtomWifiSelfRecoveryTriggered = 661,
3715    AtomSoftApStarted = 680,
3716    AtomSoftApStopped = 681,
3717    AtomWifiLockReleased = 687,
3718    AtomWifiLockDeactivated = 688,
3719    AtomWifiConfigSaved = 689,
3720    AtomWifiAwareResourceUsingChanged = 690,
3721    AtomWifiAwareHalApiCalled = 691,
3722    AtomWifiLocalOnlyRequestReceived = 692,
3723    AtomWifiLocalOnlyRequestScanTriggered = 693,
3724    AtomWifiThreadTaskExecuted = 694,
3725    AtomWifiStateChanged = 700,
3726    AtomPnoScanStarted = 719,
3727    AtomPnoScanStopped = 720,
3728    AtomWifiIsUnusableReported = 722,
3729    AtomWifiApCapabilitiesReported = 723,
3730    AtomSoftApStateChanged = 805,
3731    AtomScorerPredictionResultReported = 884,
3732    AtomWifiAwareCapabilities = 10190,
3733    AtomWifiModuleInfo = 10193,
3734    AtomWifiSettingInfo = 10194,
3735    AtomWifiComplexSettingInfo = 10195,
3736    AtomWifiConfiguredNetworkInfo = 10198,
3737}
3738impl AtomId {
3739    /// String value of the enum field names used in the ProtoBuf definition.
3740    ///
3741    /// The values are not transformed in any way and thus are considered stable
3742    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3743    pub fn as_str_name(&self) -> &'static str {
3744        match self {
3745            AtomId::AtomUnspecified => "ATOM_UNSPECIFIED",
3746            AtomId::AtomBleScanStateChanged => "ATOM_BLE_SCAN_STATE_CHANGED",
3747            AtomId::AtomProcessStateChanged => "ATOM_PROCESS_STATE_CHANGED",
3748            AtomId::AtomBleScanResultReceived => "ATOM_BLE_SCAN_RESULT_RECEIVED",
3749            AtomId::AtomSensorStateChanged => "ATOM_SENSOR_STATE_CHANGED",
3750            AtomId::AtomGpsScanStateChanged => "ATOM_GPS_SCAN_STATE_CHANGED",
3751            AtomId::AtomSyncStateChanged => "ATOM_SYNC_STATE_CHANGED",
3752            AtomId::AtomScheduledJobStateChanged => "ATOM_SCHEDULED_JOB_STATE_CHANGED",
3753            AtomId::AtomScreenBrightnessChanged => "ATOM_SCREEN_BRIGHTNESS_CHANGED",
3754            AtomId::AtomWakelockStateChanged => "ATOM_WAKELOCK_STATE_CHANGED",
3755            AtomId::AtomLongPartialWakelockStateChanged => "ATOM_LONG_PARTIAL_WAKELOCK_STATE_CHANGED",
3756            AtomId::AtomMobileRadioPowerStateChanged => "ATOM_MOBILE_RADIO_POWER_STATE_CHANGED",
3757            AtomId::AtomWifiRadioPowerStateChanged => "ATOM_WIFI_RADIO_POWER_STATE_CHANGED",
3758            AtomId::AtomActivityManagerSleepStateChanged => "ATOM_ACTIVITY_MANAGER_SLEEP_STATE_CHANGED",
3759            AtomId::AtomMemoryFactorStateChanged => "ATOM_MEMORY_FACTOR_STATE_CHANGED",
3760            AtomId::AtomExcessiveCpuUsageReported => "ATOM_EXCESSIVE_CPU_USAGE_REPORTED",
3761            AtomId::AtomCachedKillReported => "ATOM_CACHED_KILL_REPORTED",
3762            AtomId::AtomProcessMemoryStatReported => "ATOM_PROCESS_MEMORY_STAT_REPORTED",
3763            AtomId::AtomLauncherEvent => "ATOM_LAUNCHER_EVENT",
3764            AtomId::AtomBatterySaverModeStateChanged => "ATOM_BATTERY_SAVER_MODE_STATE_CHANGED",
3765            AtomId::AtomDeviceIdleModeStateChanged => "ATOM_DEVICE_IDLE_MODE_STATE_CHANGED",
3766            AtomId::AtomDeviceIdlingModeStateChanged => "ATOM_DEVICE_IDLING_MODE_STATE_CHANGED",
3767            AtomId::AtomAudioStateChanged => "ATOM_AUDIO_STATE_CHANGED",
3768            AtomId::AtomMediaCodecStateChanged => "ATOM_MEDIA_CODEC_STATE_CHANGED",
3769            AtomId::AtomCameraStateChanged => "ATOM_CAMERA_STATE_CHANGED",
3770            AtomId::AtomFlashlightStateChanged => "ATOM_FLASHLIGHT_STATE_CHANGED",
3771            AtomId::AtomUidProcessStateChanged => "ATOM_UID_PROCESS_STATE_CHANGED",
3772            AtomId::AtomProcessLifeCycleStateChanged => "ATOM_PROCESS_LIFE_CYCLE_STATE_CHANGED",
3773            AtomId::AtomScreenStateChanged => "ATOM_SCREEN_STATE_CHANGED",
3774            AtomId::AtomBatteryLevelChanged => "ATOM_BATTERY_LEVEL_CHANGED",
3775            AtomId::AtomChargingStateChanged => "ATOM_CHARGING_STATE_CHANGED",
3776            AtomId::AtomPluggedStateChanged => "ATOM_PLUGGED_STATE_CHANGED",
3777            AtomId::AtomInteractiveStateChanged => "ATOM_INTERACTIVE_STATE_CHANGED",
3778            AtomId::AtomTouchEventReported => "ATOM_TOUCH_EVENT_REPORTED",
3779            AtomId::AtomWakeupAlarmOccurred => "ATOM_WAKEUP_ALARM_OCCURRED",
3780            AtomId::AtomKernelWakeupReported => "ATOM_KERNEL_WAKEUP_REPORTED",
3781            AtomId::AtomWifiLockStateChanged => "ATOM_WIFI_LOCK_STATE_CHANGED",
3782            AtomId::AtomWifiSignalStrengthChanged => "ATOM_WIFI_SIGNAL_STRENGTH_CHANGED",
3783            AtomId::AtomWifiScanStateChanged => "ATOM_WIFI_SCAN_STATE_CHANGED",
3784            AtomId::AtomPhoneSignalStrengthChanged => "ATOM_PHONE_SIGNAL_STRENGTH_CHANGED",
3785            AtomId::AtomSettingChanged => "ATOM_SETTING_CHANGED",
3786            AtomId::AtomActivityForegroundStateChanged => "ATOM_ACTIVITY_FOREGROUND_STATE_CHANGED",
3787            AtomId::AtomIsolatedUidChanged => "ATOM_ISOLATED_UID_CHANGED",
3788            AtomId::AtomPacketWakeupOccurred => "ATOM_PACKET_WAKEUP_OCCURRED",
3789            AtomId::AtomWallClockTimeShifted => "ATOM_WALL_CLOCK_TIME_SHIFTED",
3790            AtomId::AtomAnomalyDetected => "ATOM_ANOMALY_DETECTED",
3791            AtomId::AtomAppBreadcrumbReported => "ATOM_APP_BREADCRUMB_REPORTED",
3792            AtomId::AtomAppStartOccurred => "ATOM_APP_START_OCCURRED",
3793            AtomId::AtomAppStartCanceled => "ATOM_APP_START_CANCELED",
3794            AtomId::AtomAppStartFullyDrawn => "ATOM_APP_START_FULLY_DRAWN",
3795            AtomId::AtomLmkKillOccurred => "ATOM_LMK_KILL_OCCURRED",
3796            AtomId::AtomPictureInPictureStateChanged => "ATOM_PICTURE_IN_PICTURE_STATE_CHANGED",
3797            AtomId::AtomWifiMulticastLockStateChanged => "ATOM_WIFI_MULTICAST_LOCK_STATE_CHANGED",
3798            AtomId::AtomAppStartMemoryStateCaptured => "ATOM_APP_START_MEMORY_STATE_CAPTURED",
3799            AtomId::AtomShutdownSequenceReported => "ATOM_SHUTDOWN_SEQUENCE_REPORTED",
3800            AtomId::AtomBootSequenceReported => "ATOM_BOOT_SEQUENCE_REPORTED",
3801            AtomId::AtomOverlayStateChanged => "ATOM_OVERLAY_STATE_CHANGED",
3802            AtomId::AtomForegroundServiceStateChanged => "ATOM_FOREGROUND_SERVICE_STATE_CHANGED",
3803            AtomId::AtomCallStateChanged => "ATOM_CALL_STATE_CHANGED",
3804            AtomId::AtomKeyguardStateChanged => "ATOM_KEYGUARD_STATE_CHANGED",
3805            AtomId::AtomKeyguardBouncerStateChanged => "ATOM_KEYGUARD_BOUNCER_STATE_CHANGED",
3806            AtomId::AtomKeyguardBouncerPasswordEntered => "ATOM_KEYGUARD_BOUNCER_PASSWORD_ENTERED",
3807            AtomId::AtomAppDied => "ATOM_APP_DIED",
3808            AtomId::AtomResourceConfigurationChanged => "ATOM_RESOURCE_CONFIGURATION_CHANGED",
3809            AtomId::AtomBluetoothEnabledStateChanged => "ATOM_BLUETOOTH_ENABLED_STATE_CHANGED",
3810            AtomId::AtomBluetoothConnectionStateChanged => "ATOM_BLUETOOTH_CONNECTION_STATE_CHANGED",
3811            AtomId::AtomGpsSignalQualityChanged => "ATOM_GPS_SIGNAL_QUALITY_CHANGED",
3812            AtomId::AtomUsbConnectorStateChanged => "ATOM_USB_CONNECTOR_STATE_CHANGED",
3813            AtomId::AtomSpeakerImpedanceReported => "ATOM_SPEAKER_IMPEDANCE_REPORTED",
3814            AtomId::AtomHardwareFailed => "ATOM_HARDWARE_FAILED",
3815            AtomId::AtomPhysicalDropDetected => "ATOM_PHYSICAL_DROP_DETECTED",
3816            AtomId::AtomChargeCyclesReported => "ATOM_CHARGE_CYCLES_REPORTED",
3817            AtomId::AtomMobileConnectionStateChanged => "ATOM_MOBILE_CONNECTION_STATE_CHANGED",
3818            AtomId::AtomMobileRadioTechnologyChanged => "ATOM_MOBILE_RADIO_TECHNOLOGY_CHANGED",
3819            AtomId::AtomUsbDeviceAttached => "ATOM_USB_DEVICE_ATTACHED",
3820            AtomId::AtomAppCrashOccurred => "ATOM_APP_CRASH_OCCURRED",
3821            AtomId::AtomAnrOccurred => "ATOM_ANR_OCCURRED",
3822            AtomId::AtomWtfOccurred => "ATOM_WTF_OCCURRED",
3823            AtomId::AtomLowMemReported => "ATOM_LOW_MEM_REPORTED",
3824            AtomId::AtomGenericAtom => "ATOM_GENERIC_ATOM",
3825            AtomId::AtomVibratorStateChanged => "ATOM_VIBRATOR_STATE_CHANGED",
3826            AtomId::AtomDeferredJobStatsReported => "ATOM_DEFERRED_JOB_STATS_REPORTED",
3827            AtomId::AtomThermalThrottling => "ATOM_THERMAL_THROTTLING",
3828            AtomId::AtomBiometricAcquired => "ATOM_BIOMETRIC_ACQUIRED",
3829            AtomId::AtomBiometricAuthenticated => "ATOM_BIOMETRIC_AUTHENTICATED",
3830            AtomId::AtomBiometricErrorOccurred => "ATOM_BIOMETRIC_ERROR_OCCURRED",
3831            AtomId::AtomUiEventReported => "ATOM_UI_EVENT_REPORTED",
3832            AtomId::AtomBatteryHealthSnapshot => "ATOM_BATTERY_HEALTH_SNAPSHOT",
3833            AtomId::AtomSlowIo => "ATOM_SLOW_IO",
3834            AtomId::AtomBatteryCausedShutdown => "ATOM_BATTERY_CAUSED_SHUTDOWN",
3835            AtomId::AtomPhoneServiceStateChanged => "ATOM_PHONE_SERVICE_STATE_CHANGED",
3836            AtomId::AtomPhoneStateChanged => "ATOM_PHONE_STATE_CHANGED",
3837            AtomId::AtomUserRestrictionChanged => "ATOM_USER_RESTRICTION_CHANGED",
3838            AtomId::AtomSettingsUiChanged => "ATOM_SETTINGS_UI_CHANGED",
3839            AtomId::AtomConnectivityStateChanged => "ATOM_CONNECTIVITY_STATE_CHANGED",
3840            AtomId::AtomServiceStateChanged => "ATOM_SERVICE_STATE_CHANGED",
3841            AtomId::AtomServiceLaunchReported => "ATOM_SERVICE_LAUNCH_REPORTED",
3842            AtomId::AtomFlagFlipUpdateOccurred => "ATOM_FLAG_FLIP_UPDATE_OCCURRED",
3843            AtomId::AtomBinaryPushStateChanged => "ATOM_BINARY_PUSH_STATE_CHANGED",
3844            AtomId::AtomDevicePolicyEvent => "ATOM_DEVICE_POLICY_EVENT",
3845            AtomId::AtomDocsUiFileOpCanceled => "ATOM_DOCS_UI_FILE_OP_CANCELED",
3846            AtomId::AtomDocsUiFileOpCopyMoveModeReported => "ATOM_DOCS_UI_FILE_OP_COPY_MOVE_MODE_REPORTED",
3847            AtomId::AtomDocsUiFileOpFailure => "ATOM_DOCS_UI_FILE_OP_FAILURE",
3848            AtomId::AtomDocsUiProviderFileOp => "ATOM_DOCS_UI_PROVIDER_FILE_OP",
3849            AtomId::AtomDocsUiInvalidScopedAccessRequest => "ATOM_DOCS_UI_INVALID_SCOPED_ACCESS_REQUEST",
3850            AtomId::AtomDocsUiLaunchReported => "ATOM_DOCS_UI_LAUNCH_REPORTED",
3851            AtomId::AtomDocsUiRootVisited => "ATOM_DOCS_UI_ROOT_VISITED",
3852            AtomId::AtomDocsUiStartupMs => "ATOM_DOCS_UI_STARTUP_MS",
3853            AtomId::AtomDocsUiUserActionReported => "ATOM_DOCS_UI_USER_ACTION_REPORTED",
3854            AtomId::AtomWifiEnabledStateChanged => "ATOM_WIFI_ENABLED_STATE_CHANGED",
3855            AtomId::AtomWifiRunningStateChanged => "ATOM_WIFI_RUNNING_STATE_CHANGED",
3856            AtomId::AtomAppCompacted => "ATOM_APP_COMPACTED",
3857            AtomId::AtomNetworkDnsEventReported => "ATOM_NETWORK_DNS_EVENT_REPORTED",
3858            AtomId::AtomDocsUiPickerLaunchedFromReported => "ATOM_DOCS_UI_PICKER_LAUNCHED_FROM_REPORTED",
3859            AtomId::AtomDocsUiPickResultReported => "ATOM_DOCS_UI_PICK_RESULT_REPORTED",
3860            AtomId::AtomDocsUiSearchModeReported => "ATOM_DOCS_UI_SEARCH_MODE_REPORTED",
3861            AtomId::AtomDocsUiSearchTypeReported => "ATOM_DOCS_UI_SEARCH_TYPE_REPORTED",
3862            AtomId::AtomDataStallEvent => "ATOM_DATA_STALL_EVENT",
3863            AtomId::AtomRescuePartyResetReported => "ATOM_RESCUE_PARTY_RESET_REPORTED",
3864            AtomId::AtomSignedConfigReported => "ATOM_SIGNED_CONFIG_REPORTED",
3865            AtomId::AtomGnssNiEventReported => "ATOM_GNSS_NI_EVENT_REPORTED",
3866            AtomId::AtomBluetoothLinkLayerConnectionEvent => "ATOM_BLUETOOTH_LINK_LAYER_CONNECTION_EVENT",
3867            AtomId::AtomBluetoothAclConnectionStateChanged => "ATOM_BLUETOOTH_ACL_CONNECTION_STATE_CHANGED",
3868            AtomId::AtomBluetoothScoConnectionStateChanged => "ATOM_BLUETOOTH_SCO_CONNECTION_STATE_CHANGED",
3869            AtomId::AtomAppDowngraded => "ATOM_APP_DOWNGRADED",
3870            AtomId::AtomAppOptimizedAfterDowngraded => "ATOM_APP_OPTIMIZED_AFTER_DOWNGRADED",
3871            AtomId::AtomLowStorageStateChanged => "ATOM_LOW_STORAGE_STATE_CHANGED",
3872            AtomId::AtomGnssNfwNotificationReported => "ATOM_GNSS_NFW_NOTIFICATION_REPORTED",
3873            AtomId::AtomGnssConfigurationReported => "ATOM_GNSS_CONFIGURATION_REPORTED",
3874            AtomId::AtomUsbPortOverheatEventReported => "ATOM_USB_PORT_OVERHEAT_EVENT_REPORTED",
3875            AtomId::AtomNfcErrorOccurred => "ATOM_NFC_ERROR_OCCURRED",
3876            AtomId::AtomNfcStateChanged => "ATOM_NFC_STATE_CHANGED",
3877            AtomId::AtomNfcBeamOccurred => "ATOM_NFC_BEAM_OCCURRED",
3878            AtomId::AtomNfcCardemulationOccurred => "ATOM_NFC_CARDEMULATION_OCCURRED",
3879            AtomId::AtomNfcTagOccurred => "ATOM_NFC_TAG_OCCURRED",
3880            AtomId::AtomNfcHceTransactionOccurred => "ATOM_NFC_HCE_TRANSACTION_OCCURRED",
3881            AtomId::AtomSeStateChanged => "ATOM_SE_STATE_CHANGED",
3882            AtomId::AtomSeOmapiReported => "ATOM_SE_OMAPI_REPORTED",
3883            AtomId::AtomBroadcastDispatchLatencyReported => "ATOM_BROADCAST_DISPATCH_LATENCY_REPORTED",
3884            AtomId::AtomAttentionManagerServiceResultReported => "ATOM_ATTENTION_MANAGER_SERVICE_RESULT_REPORTED",
3885            AtomId::AtomAdbConnectionChanged => "ATOM_ADB_CONNECTION_CHANGED",
3886            AtomId::AtomSpeechDspStatReported => "ATOM_SPEECH_DSP_STAT_REPORTED",
3887            AtomId::AtomUsbContaminantReported => "ATOM_USB_CONTAMINANT_REPORTED",
3888            AtomId::AtomWatchdogRollbackOccurred => "ATOM_WATCHDOG_ROLLBACK_OCCURRED",
3889            AtomId::AtomBiometricSystemHealthIssueDetected => "ATOM_BIOMETRIC_SYSTEM_HEALTH_ISSUE_DETECTED",
3890            AtomId::AtomBubbleUiChanged => "ATOM_BUBBLE_UI_CHANGED",
3891            AtomId::AtomScheduledJobConstraintChanged => "ATOM_SCHEDULED_JOB_CONSTRAINT_CHANGED",
3892            AtomId::AtomBluetoothActiveDeviceChanged => "ATOM_BLUETOOTH_ACTIVE_DEVICE_CHANGED",
3893            AtomId::AtomBluetoothA2dpPlaybackStateChanged => "ATOM_BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED",
3894            AtomId::AtomBluetoothA2dpCodecConfigChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CONFIG_CHANGED",
3895            AtomId::AtomBluetoothA2dpCodecCapabilityChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CAPABILITY_CHANGED",
3896            AtomId::AtomBluetoothA2dpAudioUnderrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_UNDERRUN_REPORTED",
3897            AtomId::AtomBluetoothA2dpAudioOverrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_OVERRUN_REPORTED",
3898            AtomId::AtomBluetoothDeviceRssiReported => "ATOM_BLUETOOTH_DEVICE_RSSI_REPORTED",
3899            AtomId::AtomBluetoothDeviceFailedContactCounterReported => "ATOM_BLUETOOTH_DEVICE_FAILED_CONTACT_COUNTER_REPORTED",
3900            AtomId::AtomBluetoothDeviceTxPowerLevelReported => "ATOM_BLUETOOTH_DEVICE_TX_POWER_LEVEL_REPORTED",
3901            AtomId::AtomBluetoothHciTimeoutReported => "ATOM_BLUETOOTH_HCI_TIMEOUT_REPORTED",
3902            AtomId::AtomBluetoothQualityReportReported => "ATOM_BLUETOOTH_QUALITY_REPORT_REPORTED",
3903            AtomId::AtomBluetoothDeviceInfoReported => "ATOM_BLUETOOTH_DEVICE_INFO_REPORTED",
3904            AtomId::AtomBluetoothRemoteVersionInfoReported => "ATOM_BLUETOOTH_REMOTE_VERSION_INFO_REPORTED",
3905            AtomId::AtomBluetoothSdpAttributeReported => "ATOM_BLUETOOTH_SDP_ATTRIBUTE_REPORTED",
3906            AtomId::AtomBluetoothBondStateChanged => "ATOM_BLUETOOTH_BOND_STATE_CHANGED",
3907            AtomId::AtomBluetoothClassicPairingEventReported => "ATOM_BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED",
3908            AtomId::AtomBluetoothSmpPairingEventReported => "ATOM_BLUETOOTH_SMP_PAIRING_EVENT_REPORTED",
3909            AtomId::AtomScreenTimeoutExtensionReported => "ATOM_SCREEN_TIMEOUT_EXTENSION_REPORTED",
3910            AtomId::AtomProcessStartTime => "ATOM_PROCESS_START_TIME",
3911            AtomId::AtomPermissionGrantRequestResultReported => "ATOM_PERMISSION_GRANT_REQUEST_RESULT_REPORTED",
3912            AtomId::AtomBluetoothSocketConnectionStateChanged => "ATOM_BLUETOOTH_SOCKET_CONNECTION_STATE_CHANGED",
3913            AtomId::AtomDeviceIdentifierAccessDenied => "ATOM_DEVICE_IDENTIFIER_ACCESS_DENIED",
3914            AtomId::AtomBubbleDeveloperErrorReported => "ATOM_BUBBLE_DEVELOPER_ERROR_REPORTED",
3915            AtomId::AtomAssistGestureStageReported => "ATOM_ASSIST_GESTURE_STAGE_REPORTED",
3916            AtomId::AtomAssistGestureFeedbackReported => "ATOM_ASSIST_GESTURE_FEEDBACK_REPORTED",
3917            AtomId::AtomAssistGestureProgressReported => "ATOM_ASSIST_GESTURE_PROGRESS_REPORTED",
3918            AtomId::AtomTouchGestureClassified => "ATOM_TOUCH_GESTURE_CLASSIFIED",
3919            AtomId::AtomHiddenApiUsed => "ATOM_HIDDEN_API_USED",
3920            AtomId::AtomStyleUiChanged => "ATOM_STYLE_UI_CHANGED",
3921            AtomId::AtomPrivacyIndicatorsInteracted => "ATOM_PRIVACY_INDICATORS_INTERACTED",
3922            AtomId::AtomAppInstallOnExternalStorageReported => "ATOM_APP_INSTALL_ON_EXTERNAL_STORAGE_REPORTED",
3923            AtomId::AtomNetworkStackReported => "ATOM_NETWORK_STACK_REPORTED",
3924            AtomId::AtomAppMovedStorageReported => "ATOM_APP_MOVED_STORAGE_REPORTED",
3925            AtomId::AtomBiometricEnrolled => "ATOM_BIOMETRIC_ENROLLED",
3926            AtomId::AtomSystemServerWatchdogOccurred => "ATOM_SYSTEM_SERVER_WATCHDOG_OCCURRED",
3927            AtomId::AtomTombStoneOccurred => "ATOM_TOMB_STONE_OCCURRED",
3928            AtomId::AtomBluetoothClassOfDeviceReported => "ATOM_BLUETOOTH_CLASS_OF_DEVICE_REPORTED",
3929            AtomId::AtomIntelligenceEventReported => "ATOM_INTELLIGENCE_EVENT_REPORTED",
3930            AtomId::AtomThermalThrottlingSeverityStateChanged => "ATOM_THERMAL_THROTTLING_SEVERITY_STATE_CHANGED",
3931            AtomId::AtomRoleRequestResultReported => "ATOM_ROLE_REQUEST_RESULT_REPORTED",
3932            AtomId::AtomMediametricsAudiopolicyReported => "ATOM_MEDIAMETRICS_AUDIOPOLICY_REPORTED",
3933            AtomId::AtomMediametricsAudiorecordReported => "ATOM_MEDIAMETRICS_AUDIORECORD_REPORTED",
3934            AtomId::AtomMediametricsAudiothreadReported => "ATOM_MEDIAMETRICS_AUDIOTHREAD_REPORTED",
3935            AtomId::AtomMediametricsAudiotrackReported => "ATOM_MEDIAMETRICS_AUDIOTRACK_REPORTED",
3936            AtomId::AtomMediametricsCodecReported => "ATOM_MEDIAMETRICS_CODEC_REPORTED",
3937            AtomId::AtomMediametricsDrmWidevineReported => "ATOM_MEDIAMETRICS_DRM_WIDEVINE_REPORTED",
3938            AtomId::AtomMediametricsExtractorReported => "ATOM_MEDIAMETRICS_EXTRACTOR_REPORTED",
3939            AtomId::AtomMediametricsMediadrmReported => "ATOM_MEDIAMETRICS_MEDIADRM_REPORTED",
3940            AtomId::AtomMediametricsNuplayerReported => "ATOM_MEDIAMETRICS_NUPLAYER_REPORTED",
3941            AtomId::AtomMediametricsRecorderReported => "ATOM_MEDIAMETRICS_RECORDER_REPORTED",
3942            AtomId::AtomMediametricsDrmmanagerReported => "ATOM_MEDIAMETRICS_DRMMANAGER_REPORTED",
3943            AtomId::AtomCarPowerStateChanged => "ATOM_CAR_POWER_STATE_CHANGED",
3944            AtomId::AtomGarageModeInfo => "ATOM_GARAGE_MODE_INFO",
3945            AtomId::AtomTestAtomReported => "ATOM_TEST_ATOM_REPORTED",
3946            AtomId::AtomContentCaptureCallerMismatchReported => "ATOM_CONTENT_CAPTURE_CALLER_MISMATCH_REPORTED",
3947            AtomId::AtomContentCaptureServiceEvents => "ATOM_CONTENT_CAPTURE_SERVICE_EVENTS",
3948            AtomId::AtomContentCaptureSessionEvents => "ATOM_CONTENT_CAPTURE_SESSION_EVENTS",
3949            AtomId::AtomContentCaptureFlushed => "ATOM_CONTENT_CAPTURE_FLUSHED",
3950            AtomId::AtomLocationManagerApiUsageReported => "ATOM_LOCATION_MANAGER_API_USAGE_REPORTED",
3951            AtomId::AtomReviewPermissionsFragmentResultReported => "ATOM_REVIEW_PERMISSIONS_FRAGMENT_RESULT_REPORTED",
3952            AtomId::AtomRuntimePermissionsUpgradeResult => "ATOM_RUNTIME_PERMISSIONS_UPGRADE_RESULT",
3953            AtomId::AtomGrantPermissionsActivityButtonActions => "ATOM_GRANT_PERMISSIONS_ACTIVITY_BUTTON_ACTIONS",
3954            AtomId::AtomLocationAccessCheckNotificationAction => "ATOM_LOCATION_ACCESS_CHECK_NOTIFICATION_ACTION",
3955            AtomId::AtomAppPermissionFragmentActionReported => "ATOM_APP_PERMISSION_FRAGMENT_ACTION_REPORTED",
3956            AtomId::AtomAppPermissionFragmentViewed => "ATOM_APP_PERMISSION_FRAGMENT_VIEWED",
3957            AtomId::AtomAppPermissionsFragmentViewed => "ATOM_APP_PERMISSIONS_FRAGMENT_VIEWED",
3958            AtomId::AtomPermissionAppsFragmentViewed => "ATOM_PERMISSION_APPS_FRAGMENT_VIEWED",
3959            AtomId::AtomTextSelectionEvent => "ATOM_TEXT_SELECTION_EVENT",
3960            AtomId::AtomTextLinkifyEvent => "ATOM_TEXT_LINKIFY_EVENT",
3961            AtomId::AtomConversationActionsEvent => "ATOM_CONVERSATION_ACTIONS_EVENT",
3962            AtomId::AtomLanguageDetectionEvent => "ATOM_LANGUAGE_DETECTION_EVENT",
3963            AtomId::AtomExclusionRectStateChanged => "ATOM_EXCLUSION_RECT_STATE_CHANGED",
3964            AtomId::AtomBackGestureReportedReported => "ATOM_BACK_GESTURE_REPORTED_REPORTED",
3965            AtomId::AtomUpdateEngineUpdateAttemptReported => "ATOM_UPDATE_ENGINE_UPDATE_ATTEMPT_REPORTED",
3966            AtomId::AtomUpdateEngineSuccessfulUpdateReported => "ATOM_UPDATE_ENGINE_SUCCESSFUL_UPDATE_REPORTED",
3967            AtomId::AtomCameraActionEvent => "ATOM_CAMERA_ACTION_EVENT",
3968            AtomId::AtomAppCompatibilityChangeReported => "ATOM_APP_COMPATIBILITY_CHANGE_REPORTED",
3969            AtomId::AtomPerfettoUploaded => "ATOM_PERFETTO_UPLOADED",
3970            AtomId::AtomVmsClientConnectionStateChanged => "ATOM_VMS_CLIENT_CONNECTION_STATE_CHANGED",
3971            AtomId::AtomMediaProviderScanOccurred => "ATOM_MEDIA_PROVIDER_SCAN_OCCURRED",
3972            AtomId::AtomMediaContentDeleted => "ATOM_MEDIA_CONTENT_DELETED",
3973            AtomId::AtomMediaProviderPermissionRequested => "ATOM_MEDIA_PROVIDER_PERMISSION_REQUESTED",
3974            AtomId::AtomMediaProviderSchemaChanged => "ATOM_MEDIA_PROVIDER_SCHEMA_CHANGED",
3975            AtomId::AtomMediaProviderIdleMaintenanceFinished => "ATOM_MEDIA_PROVIDER_IDLE_MAINTENANCE_FINISHED",
3976            AtomId::AtomRebootEscrowRecoveryReported => "ATOM_REBOOT_ESCROW_RECOVERY_REPORTED",
3977            AtomId::AtomBootTimeEventDurationReported => "ATOM_BOOT_TIME_EVENT_DURATION_REPORTED",
3978            AtomId::AtomBootTimeEventElapsedTimeReported => "ATOM_BOOT_TIME_EVENT_ELAPSED_TIME_REPORTED",
3979            AtomId::AtomBootTimeEventUtcTimeReported => "ATOM_BOOT_TIME_EVENT_UTC_TIME_REPORTED",
3980            AtomId::AtomBootTimeEventErrorCodeReported => "ATOM_BOOT_TIME_EVENT_ERROR_CODE_REPORTED",
3981            AtomId::AtomUserspaceRebootReported => "ATOM_USERSPACE_REBOOT_REPORTED",
3982            AtomId::AtomNotificationReported => "ATOM_NOTIFICATION_REPORTED",
3983            AtomId::AtomNotificationPanelReported => "ATOM_NOTIFICATION_PANEL_REPORTED",
3984            AtomId::AtomNotificationChannelModified => "ATOM_NOTIFICATION_CHANNEL_MODIFIED",
3985            AtomId::AtomIntegrityCheckResultReported => "ATOM_INTEGRITY_CHECK_RESULT_REPORTED",
3986            AtomId::AtomIntegrityRulesPushed => "ATOM_INTEGRITY_RULES_PUSHED",
3987            AtomId::AtomCbMessageReported => "ATOM_CB_MESSAGE_REPORTED",
3988            AtomId::AtomCbMessageError => "ATOM_CB_MESSAGE_ERROR",
3989            AtomId::AtomWifiHealthStatReported => "ATOM_WIFI_HEALTH_STAT_REPORTED",
3990            AtomId::AtomWifiFailureStatReported => "ATOM_WIFI_FAILURE_STAT_REPORTED",
3991            AtomId::AtomWifiConnectionResultReported => "ATOM_WIFI_CONNECTION_RESULT_REPORTED",
3992            AtomId::AtomAppFreezeChanged => "ATOM_APP_FREEZE_CHANGED",
3993            AtomId::AtomSnapshotMergeReported => "ATOM_SNAPSHOT_MERGE_REPORTED",
3994            AtomId::AtomForegroundServiceAppOpSessionEnded => "ATOM_FOREGROUND_SERVICE_APP_OP_SESSION_ENDED",
3995            AtomId::AtomDisplayJankReported => "ATOM_DISPLAY_JANK_REPORTED",
3996            AtomId::AtomAppStandbyBucketChanged => "ATOM_APP_STANDBY_BUCKET_CHANGED",
3997            AtomId::AtomSharesheetStarted => "ATOM_SHARESHEET_STARTED",
3998            AtomId::AtomRankingSelected => "ATOM_RANKING_SELECTED",
3999            AtomId::AtomTvsettingsUiInteracted => "ATOM_TVSETTINGS_UI_INTERACTED",
4000            AtomId::AtomLauncherSnapshot => "ATOM_LAUNCHER_SNAPSHOT",
4001            AtomId::AtomPackageInstallerV2Reported => "ATOM_PACKAGE_INSTALLER_V2_REPORTED",
4002            AtomId::AtomUserLifecycleJourneyReported => "ATOM_USER_LIFECYCLE_JOURNEY_REPORTED",
4003            AtomId::AtomUserLifecycleEventOccurred => "ATOM_USER_LIFECYCLE_EVENT_OCCURRED",
4004            AtomId::AtomAccessibilityShortcutReported => "ATOM_ACCESSIBILITY_SHORTCUT_REPORTED",
4005            AtomId::AtomAccessibilityServiceReported => "ATOM_ACCESSIBILITY_SERVICE_REPORTED",
4006            AtomId::AtomDocsUiDragAndDropReported => "ATOM_DOCS_UI_DRAG_AND_DROP_REPORTED",
4007            AtomId::AtomAppUsageEventOccurred => "ATOM_APP_USAGE_EVENT_OCCURRED",
4008            AtomId::AtomAutoRevokeNotificationClicked => "ATOM_AUTO_REVOKE_NOTIFICATION_CLICKED",
4009            AtomId::AtomAutoRevokeFragmentAppViewed => "ATOM_AUTO_REVOKE_FRAGMENT_APP_VIEWED",
4010            AtomId::AtomAutoRevokedAppInteraction => "ATOM_AUTO_REVOKED_APP_INTERACTION",
4011            AtomId::AtomAppPermissionGroupsFragmentAutoRevokeAction => "ATOM_APP_PERMISSION_GROUPS_FRAGMENT_AUTO_REVOKE_ACTION",
4012            AtomId::AtomEvsUsageStatsReported => "ATOM_EVS_USAGE_STATS_REPORTED",
4013            AtomId::AtomAudioPowerUsageDataReported => "ATOM_AUDIO_POWER_USAGE_DATA_REPORTED",
4014            AtomId::AtomTvTunerStateChanged => "ATOM_TV_TUNER_STATE_CHANGED",
4015            AtomId::AtomMediaoutputOpSwitchReported => "ATOM_MEDIAOUTPUT_OP_SWITCH_REPORTED",
4016            AtomId::AtomCbMessageFiltered => "ATOM_CB_MESSAGE_FILTERED",
4017            AtomId::AtomTvTunerDvrStatus => "ATOM_TV_TUNER_DVR_STATUS",
4018            AtomId::AtomTvCasSessionOpenStatus => "ATOM_TV_CAS_SESSION_OPEN_STATUS",
4019            AtomId::AtomAssistantInvocationReported => "ATOM_ASSISTANT_INVOCATION_REPORTED",
4020            AtomId::AtomDisplayWakeReported => "ATOM_DISPLAY_WAKE_REPORTED",
4021            AtomId::AtomCarUserHalModifyUserRequestReported => "ATOM_CAR_USER_HAL_MODIFY_USER_REQUEST_REPORTED",
4022            AtomId::AtomCarUserHalModifyUserResponseReported => "ATOM_CAR_USER_HAL_MODIFY_USER_RESPONSE_REPORTED",
4023            AtomId::AtomCarUserHalPostSwitchResponseReported => "ATOM_CAR_USER_HAL_POST_SWITCH_RESPONSE_REPORTED",
4024            AtomId::AtomCarUserHalInitialUserInfoRequestReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_REQUEST_REPORTED",
4025            AtomId::AtomCarUserHalInitialUserInfoResponseReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_RESPONSE_REPORTED",
4026            AtomId::AtomCarUserHalUserAssociationRequestReported => "ATOM_CAR_USER_HAL_USER_ASSOCIATION_REQUEST_REPORTED",
4027            AtomId::AtomCarUserHalSetUserAssociationResponseReported => "ATOM_CAR_USER_HAL_SET_USER_ASSOCIATION_RESPONSE_REPORTED",
4028            AtomId::AtomNetworkIpProvisioningReported => "ATOM_NETWORK_IP_PROVISIONING_REPORTED",
4029            AtomId::AtomNetworkDhcpRenewReported => "ATOM_NETWORK_DHCP_RENEW_REPORTED",
4030            AtomId::AtomNetworkValidationReported => "ATOM_NETWORK_VALIDATION_REPORTED",
4031            AtomId::AtomNetworkStackQuirkReported => "ATOM_NETWORK_STACK_QUIRK_REPORTED",
4032            AtomId::AtomMediametricsAudiorecorddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIORECORDDEVICEUSAGE_REPORTED",
4033            AtomId::AtomMediametricsAudiothreaddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTHREADDEVICEUSAGE_REPORTED",
4034            AtomId::AtomMediametricsAudiotrackdeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTRACKDEVICEUSAGE_REPORTED",
4035            AtomId::AtomMediametricsAudiodeviceconnectionReported => "ATOM_MEDIAMETRICS_AUDIODEVICECONNECTION_REPORTED",
4036            AtomId::AtomBlobCommitted => "ATOM_BLOB_COMMITTED",
4037            AtomId::AtomBlobLeased => "ATOM_BLOB_LEASED",
4038            AtomId::AtomBlobOpened => "ATOM_BLOB_OPENED",
4039            AtomId::AtomContactsProviderStatusReported => "ATOM_CONTACTS_PROVIDER_STATUS_REPORTED",
4040            AtomId::AtomKeystoreKeyEventReported => "ATOM_KEYSTORE_KEY_EVENT_REPORTED",
4041            AtomId::AtomNetworkTetheringReported => "ATOM_NETWORK_TETHERING_REPORTED",
4042            AtomId::AtomImeTouchReported => "ATOM_IME_TOUCH_REPORTED",
4043            AtomId::AtomUiInteractionFrameInfoReported => "ATOM_UI_INTERACTION_FRAME_INFO_REPORTED",
4044            AtomId::AtomUiActionLatencyReported => "ATOM_UI_ACTION_LATENCY_REPORTED",
4045            AtomId::AtomWifiDisconnectReported => "ATOM_WIFI_DISCONNECT_REPORTED",
4046            AtomId::AtomWifiConnectionStateChanged => "ATOM_WIFI_CONNECTION_STATE_CHANGED",
4047            AtomId::AtomHdmiCecActiveSourceChanged => "ATOM_HDMI_CEC_ACTIVE_SOURCE_CHANGED",
4048            AtomId::AtomHdmiCecMessageReported => "ATOM_HDMI_CEC_MESSAGE_REPORTED",
4049            AtomId::AtomAirplaneMode => "ATOM_AIRPLANE_MODE",
4050            AtomId::AtomModemRestart => "ATOM_MODEM_RESTART",
4051            AtomId::AtomCarrierIdMismatchReported => "ATOM_CARRIER_ID_MISMATCH_REPORTED",
4052            AtomId::AtomCarrierIdTableUpdated => "ATOM_CARRIER_ID_TABLE_UPDATED",
4053            AtomId::AtomDataStallRecoveryReported => "ATOM_DATA_STALL_RECOVERY_REPORTED",
4054            AtomId::AtomMediametricsMediaparserReported => "ATOM_MEDIAMETRICS_MEDIAPARSER_REPORTED",
4055            AtomId::AtomTlsHandshakeReported => "ATOM_TLS_HANDSHAKE_REPORTED",
4056            AtomId::AtomTextClassifierApiUsageReported => "ATOM_TEXT_CLASSIFIER_API_USAGE_REPORTED",
4057            AtomId::AtomCarWatchdogKillStatsReported => "ATOM_CAR_WATCHDOG_KILL_STATS_REPORTED",
4058            AtomId::AtomMediametricsPlaybackReported => "ATOM_MEDIAMETRICS_PLAYBACK_REPORTED",
4059            AtomId::AtomMediaNetworkInfoChanged => "ATOM_MEDIA_NETWORK_INFO_CHANGED",
4060            AtomId::AtomMediaPlaybackStateChanged => "ATOM_MEDIA_PLAYBACK_STATE_CHANGED",
4061            AtomId::AtomMediaPlaybackErrorReported => "ATOM_MEDIA_PLAYBACK_ERROR_REPORTED",
4062            AtomId::AtomMediaPlaybackTrackChanged => "ATOM_MEDIA_PLAYBACK_TRACK_CHANGED",
4063            AtomId::AtomWifiScanReported => "ATOM_WIFI_SCAN_REPORTED",
4064            AtomId::AtomWifiPnoScanReported => "ATOM_WIFI_PNO_SCAN_REPORTED",
4065            AtomId::AtomTifTuneChanged => "ATOM_TIF_TUNE_CHANGED",
4066            AtomId::AtomAutoRotateReported => "ATOM_AUTO_ROTATE_REPORTED",
4067            AtomId::AtomPerfettoTrigger => "ATOM_PERFETTO_TRIGGER",
4068            AtomId::AtomTranscodingData => "ATOM_TRANSCODING_DATA",
4069            AtomId::AtomImsServiceEntitlementUpdated => "ATOM_IMS_SERVICE_ENTITLEMENT_UPDATED",
4070            AtomId::AtomDeviceRotated => "ATOM_DEVICE_ROTATED",
4071            AtomId::AtomSimSpecificSettingsRestored => "ATOM_SIM_SPECIFIC_SETTINGS_RESTORED",
4072            AtomId::AtomTextClassifierDownloadReported => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_REPORTED",
4073            AtomId::AtomPinStorageEvent => "ATOM_PIN_STORAGE_EVENT",
4074            AtomId::AtomFaceDownReported => "ATOM_FACE_DOWN_REPORTED",
4075            AtomId::AtomBluetoothHalCrashReasonReported => "ATOM_BLUETOOTH_HAL_CRASH_REASON_REPORTED",
4076            AtomId::AtomRebootEscrowPreparationReported => "ATOM_REBOOT_ESCROW_PREPARATION_REPORTED",
4077            AtomId::AtomRebootEscrowLskfCaptureReported => "ATOM_REBOOT_ESCROW_LSKF_CAPTURE_REPORTED",
4078            AtomId::AtomRebootEscrowRebootReported => "ATOM_REBOOT_ESCROW_REBOOT_REPORTED",
4079            AtomId::AtomBinderLatencyReported => "ATOM_BINDER_LATENCY_REPORTED",
4080            AtomId::AtomMediametricsAaudiostreamReported => "ATOM_MEDIAMETRICS_AAUDIOSTREAM_REPORTED",
4081            AtomId::AtomMediaTranscodingSessionEnded => "ATOM_MEDIA_TRANSCODING_SESSION_ENDED",
4082            AtomId::AtomMagnificationUsageReported => "ATOM_MAGNIFICATION_USAGE_REPORTED",
4083            AtomId::AtomMagnificationModeWithImeOnReported => "ATOM_MAGNIFICATION_MODE_WITH_IME_ON_REPORTED",
4084            AtomId::AtomAppSearchCallStatsReported => "ATOM_APP_SEARCH_CALL_STATS_REPORTED",
4085            AtomId::AtomAppSearchPutDocumentStatsReported => "ATOM_APP_SEARCH_PUT_DOCUMENT_STATS_REPORTED",
4086            AtomId::AtomDeviceControlChanged => "ATOM_DEVICE_CONTROL_CHANGED",
4087            AtomId::AtomDeviceStateChanged => "ATOM_DEVICE_STATE_CHANGED",
4088            AtomId::AtomInputdeviceRegistered => "ATOM_INPUTDEVICE_REGISTERED",
4089            AtomId::AtomSmartspaceCardReported => "ATOM_SMARTSPACE_CARD_REPORTED",
4090            AtomId::AtomAuthPromptAuthenticateInvoked => "ATOM_AUTH_PROMPT_AUTHENTICATE_INVOKED",
4091            AtomId::AtomAuthManagerCanAuthenticateInvoked => "ATOM_AUTH_MANAGER_CAN_AUTHENTICATE_INVOKED",
4092            AtomId::AtomAuthEnrollActionInvoked => "ATOM_AUTH_ENROLL_ACTION_INVOKED",
4093            AtomId::AtomAuthDeprecatedApiUsed => "ATOM_AUTH_DEPRECATED_API_USED",
4094            AtomId::AtomUnattendedRebootOccurred => "ATOM_UNATTENDED_REBOOT_OCCURRED",
4095            AtomId::AtomLongRebootBlockingReported => "ATOM_LONG_REBOOT_BLOCKING_REPORTED",
4096            AtomId::AtomLocationTimeZoneProviderStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_STATE_CHANGED",
4097            AtomId::AtomFdtrackEventOccurred => "ATOM_FDTRACK_EVENT_OCCURRED",
4098            AtomId::AtomTimeoutAutoExtendedReported => "ATOM_TIMEOUT_AUTO_EXTENDED_REPORTED",
4099            AtomId::AtomAlarmBatchDelivered => "ATOM_ALARM_BATCH_DELIVERED",
4100            AtomId::AtomAlarmScheduled => "ATOM_ALARM_SCHEDULED",
4101            AtomId::AtomCarWatchdogIoOveruseStatsReported => "ATOM_CAR_WATCHDOG_IO_OVERUSE_STATS_REPORTED",
4102            AtomId::AtomUserLevelHibernationStateChanged => "ATOM_USER_LEVEL_HIBERNATION_STATE_CHANGED",
4103            AtomId::AtomAppSearchInitializeStatsReported => "ATOM_APP_SEARCH_INITIALIZE_STATS_REPORTED",
4104            AtomId::AtomAppSearchQueryStatsReported => "ATOM_APP_SEARCH_QUERY_STATS_REPORTED",
4105            AtomId::AtomAppProcessDied => "ATOM_APP_PROCESS_DIED",
4106            AtomId::AtomNetworkIpReachabilityMonitorReported => "ATOM_NETWORK_IP_REACHABILITY_MONITOR_REPORTED",
4107            AtomId::AtomSlowInputEventReported => "ATOM_SLOW_INPUT_EVENT_REPORTED",
4108            AtomId::AtomAnrOccurredProcessingStarted => "ATOM_ANR_OCCURRED_PROCESSING_STARTED",
4109            AtomId::AtomAppSearchRemoveStatsReported => "ATOM_APP_SEARCH_REMOVE_STATS_REPORTED",
4110            AtomId::AtomMediaCodecReported => "ATOM_MEDIA_CODEC_REPORTED",
4111            AtomId::AtomPermissionUsageFragmentInteraction => "ATOM_PERMISSION_USAGE_FRAGMENT_INTERACTION",
4112            AtomId::AtomPermissionDetailsInteraction => "ATOM_PERMISSION_DETAILS_INTERACTION",
4113            AtomId::AtomPrivacySensorToggleInteraction => "ATOM_PRIVACY_SENSOR_TOGGLE_INTERACTION",
4114            AtomId::AtomPrivacyToggleDialogInteraction => "ATOM_PRIVACY_TOGGLE_DIALOG_INTERACTION",
4115            AtomId::AtomAppSearchOptimizeStatsReported => "ATOM_APP_SEARCH_OPTIMIZE_STATS_REPORTED",
4116            AtomId::AtomNonA11yToolServiceWarningReport => "ATOM_NON_A11Y_TOOL_SERVICE_WARNING_REPORT",
4117            AtomId::AtomAppCompatStateChanged => "ATOM_APP_COMPAT_STATE_CHANGED",
4118            AtomId::AtomSizeCompatRestartButtonEventReported => "ATOM_SIZE_COMPAT_RESTART_BUTTON_EVENT_REPORTED",
4119            AtomId::AtomSplitscreenUiChanged => "ATOM_SPLITSCREEN_UI_CHANGED",
4120            AtomId::AtomNetworkDnsHandshakeReported => "ATOM_NETWORK_DNS_HANDSHAKE_REPORTED",
4121            AtomId::AtomBluetoothCodePathCounter => "ATOM_BLUETOOTH_CODE_PATH_COUNTER",
4122            AtomId::AtomBluetoothLeBatchScanReportDelay => "ATOM_BLUETOOTH_LE_BATCH_SCAN_REPORT_DELAY",
4123            AtomId::AtomAccessibilityFloatingMenuUiChanged => "ATOM_ACCESSIBILITY_FLOATING_MENU_UI_CHANGED",
4124            AtomId::AtomNeuralnetworksCompilationCompleted => "ATOM_NEURALNETWORKS_COMPILATION_COMPLETED",
4125            AtomId::AtomNeuralnetworksExecutionCompleted => "ATOM_NEURALNETWORKS_EXECUTION_COMPLETED",
4126            AtomId::AtomNeuralnetworksCompilationFailed => "ATOM_NEURALNETWORKS_COMPILATION_FAILED",
4127            AtomId::AtomNeuralnetworksExecutionFailed => "ATOM_NEURALNETWORKS_EXECUTION_FAILED",
4128            AtomId::AtomContextHubBooted => "ATOM_CONTEXT_HUB_BOOTED",
4129            AtomId::AtomContextHubRestarted => "ATOM_CONTEXT_HUB_RESTARTED",
4130            AtomId::AtomContextHubLoadedNanoappSnapshotReported => "ATOM_CONTEXT_HUB_LOADED_NANOAPP_SNAPSHOT_REPORTED",
4131            AtomId::AtomChreCodeDownloadTransacted => "ATOM_CHRE_CODE_DOWNLOAD_TRANSACTED",
4132            AtomId::AtomUwbSessionInited => "ATOM_UWB_SESSION_INITED",
4133            AtomId::AtomUwbSessionClosed => "ATOM_UWB_SESSION_CLOSED",
4134            AtomId::AtomUwbFirstRangingReceived => "ATOM_UWB_FIRST_RANGING_RECEIVED",
4135            AtomId::AtomUwbRangingMeasurementReceived => "ATOM_UWB_RANGING_MEASUREMENT_RECEIVED",
4136            AtomId::AtomTextClassifierDownloadWorkScheduled => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_SCHEDULED",
4137            AtomId::AtomTextClassifierDownloadWorkCompleted => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_COMPLETED",
4138            AtomId::AtomClipboardCleared => "ATOM_CLIPBOARD_CLEARED",
4139            AtomId::AtomVmCreationRequested => "ATOM_VM_CREATION_REQUESTED",
4140            AtomId::AtomNearbyDeviceScanStateChanged => "ATOM_NEARBY_DEVICE_SCAN_STATE_CHANGED",
4141            AtomId::AtomApplicationLocalesChanged => "ATOM_APPLICATION_LOCALES_CHANGED",
4142            AtomId::AtomMediametricsAudiotrackstatusReported => "ATOM_MEDIAMETRICS_AUDIOTRACKSTATUS_REPORTED",
4143            AtomId::AtomFoldStateDurationReported => "ATOM_FOLD_STATE_DURATION_REPORTED",
4144            AtomId::AtomLocationTimeZoneProviderControllerStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_CONTROLLER_STATE_CHANGED",
4145            AtomId::AtomDisplayHbmStateChanged => "ATOM_DISPLAY_HBM_STATE_CHANGED",
4146            AtomId::AtomDisplayHbmBrightnessChanged => "ATOM_DISPLAY_HBM_BRIGHTNESS_CHANGED",
4147            AtomId::AtomPersistentUriPermissionsFlushed => "ATOM_PERSISTENT_URI_PERMISSIONS_FLUSHED",
4148            AtomId::AtomEarlyBootCompOsArtifactsCheckReported => "ATOM_EARLY_BOOT_COMP_OS_ARTIFACTS_CHECK_REPORTED",
4149            AtomId::AtomVbmetaDigestReported => "ATOM_VBMETA_DIGEST_REPORTED",
4150            AtomId::AtomApexInfoGathered => "ATOM_APEX_INFO_GATHERED",
4151            AtomId::AtomPvmInfoGathered => "ATOM_PVM_INFO_GATHERED",
4152            AtomId::AtomWearSettingsUiInteracted => "ATOM_WEAR_SETTINGS_UI_INTERACTED",
4153            AtomId::AtomTracingServiceReportEvent => "ATOM_TRACING_SERVICE_REPORT_EVENT",
4154            AtomId::AtomMediametricsAudiorecordstatusReported => "ATOM_MEDIAMETRICS_AUDIORECORDSTATUS_REPORTED",
4155            AtomId::AtomLauncherLatency => "ATOM_LAUNCHER_LATENCY",
4156            AtomId::AtomDropboxEntryDropped => "ATOM_DROPBOX_ENTRY_DROPPED",
4157            AtomId::AtomWifiP2pConnectionReported => "ATOM_WIFI_P2P_CONNECTION_REPORTED",
4158            AtomId::AtomGameStateChanged => "ATOM_GAME_STATE_CHANGED",
4159            AtomId::AtomHotwordDetectorCreateRequested => "ATOM_HOTWORD_DETECTOR_CREATE_REQUESTED",
4160            AtomId::AtomHotwordDetectionServiceInitResultReported => "ATOM_HOTWORD_DETECTION_SERVICE_INIT_RESULT_REPORTED",
4161            AtomId::AtomHotwordDetectionServiceRestarted => "ATOM_HOTWORD_DETECTION_SERVICE_RESTARTED",
4162            AtomId::AtomHotwordDetectorKeyphraseTriggered => "ATOM_HOTWORD_DETECTOR_KEYPHRASE_TRIGGERED",
4163            AtomId::AtomHotwordDetectorEvents => "ATOM_HOTWORD_DETECTOR_EVENTS",
4164            AtomId::AtomBootCompletedBroadcastCompletionLatencyReported => "ATOM_BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED",
4165            AtomId::AtomContactsIndexerUpdateStatsReported => "ATOM_CONTACTS_INDEXER_UPDATE_STATS_REPORTED",
4166            AtomId::AtomAppBackgroundRestrictionsInfo => "ATOM_APP_BACKGROUND_RESTRICTIONS_INFO",
4167            AtomId::AtomMmsSmsProviderGetThreadIdFailed => "ATOM_MMS_SMS_PROVIDER_GET_THREAD_ID_FAILED",
4168            AtomId::AtomMmsSmsDatabaseHelperOnUpgradeFailed => "ATOM_MMS_SMS_DATABASE_HELPER_ON_UPGRADE_FAILED",
4169            AtomId::AtomPermissionReminderNotificationInteracted => "ATOM_PERMISSION_REMINDER_NOTIFICATION_INTERACTED",
4170            AtomId::AtomRecentPermissionDecisionsInteracted => "ATOM_RECENT_PERMISSION_DECISIONS_INTERACTED",
4171            AtomId::AtomGnssPsdsDownloadReported => "ATOM_GNSS_PSDS_DOWNLOAD_REPORTED",
4172            AtomId::AtomLeAudioConnectionSessionReported => "ATOM_LE_AUDIO_CONNECTION_SESSION_REPORTED",
4173            AtomId::AtomLeAudioBroadcastSessionReported => "ATOM_LE_AUDIO_BROADCAST_SESSION_REPORTED",
4174            AtomId::AtomDreamUiEventReported => "ATOM_DREAM_UI_EVENT_REPORTED",
4175            AtomId::AtomTaskManagerEventReported => "ATOM_TASK_MANAGER_EVENT_REPORTED",
4176            AtomId::AtomCdmAssociationAction => "ATOM_CDM_ASSOCIATION_ACTION",
4177            AtomId::AtomMagnificationTripleTapAndHoldActivatedSessionReported => "ATOM_MAGNIFICATION_TRIPLE_TAP_AND_HOLD_ACTIVATED_SESSION_REPORTED",
4178            AtomId::AtomMagnificationFollowTypingFocusActivatedSessionReported => "ATOM_MAGNIFICATION_FOLLOW_TYPING_FOCUS_ACTIVATED_SESSION_REPORTED",
4179            AtomId::AtomAccessibilityTextReadingOptionsChanged => "ATOM_ACCESSIBILITY_TEXT_READING_OPTIONS_CHANGED",
4180            AtomId::AtomWifiSetupFailureCrashReported => "ATOM_WIFI_SETUP_FAILURE_CRASH_REPORTED",
4181            AtomId::AtomUwbDeviceErrorReported => "ATOM_UWB_DEVICE_ERROR_REPORTED",
4182            AtomId::AtomIsolatedCompilationScheduled => "ATOM_ISOLATED_COMPILATION_SCHEDULED",
4183            AtomId::AtomIsolatedCompilationEnded => "ATOM_ISOLATED_COMPILATION_ENDED",
4184            AtomId::AtomOnsOpportunisticEsimProvisioningComplete => "ATOM_ONS_OPPORTUNISTIC_ESIM_PROVISIONING_COMPLETE",
4185            AtomId::AtomSystemServerPreWatchdogOccurred => "ATOM_SYSTEM_SERVER_PRE_WATCHDOG_OCCURRED",
4186            AtomId::AtomTelephonyAnomalyDetected => "ATOM_TELEPHONY_ANOMALY_DETECTED",
4187            AtomId::AtomLetterboxPositionChanged => "ATOM_LETTERBOX_POSITION_CHANGED",
4188            AtomId::AtomRemoteKeyProvisioningAttempt => "ATOM_REMOTE_KEY_PROVISIONING_ATTEMPT",
4189            AtomId::AtomRemoteKeyProvisioningNetworkInfo => "ATOM_REMOTE_KEY_PROVISIONING_NETWORK_INFO",
4190            AtomId::AtomRemoteKeyProvisioningTiming => "ATOM_REMOTE_KEY_PROVISIONING_TIMING",
4191            AtomId::AtomMediaoutputOpInteractionReport => "ATOM_MEDIAOUTPUT_OP_INTERACTION_REPORT",
4192            AtomId::AtomSyncExemptionOccurred => "ATOM_SYNC_EXEMPTION_OCCURRED",
4193            AtomId::AtomAutofillPresentationEventReported => "ATOM_AUTOFILL_PRESENTATION_EVENT_REPORTED",
4194            AtomId::AtomDockStateChanged => "ATOM_DOCK_STATE_CHANGED",
4195            AtomId::AtomSafetySourceStateCollected => "ATOM_SAFETY_SOURCE_STATE_COLLECTED",
4196            AtomId::AtomSafetyCenterSystemEventReported => "ATOM_SAFETY_CENTER_SYSTEM_EVENT_REPORTED",
4197            AtomId::AtomSafetyCenterInteractionReported => "ATOM_SAFETY_CENTER_INTERACTION_REPORTED",
4198            AtomId::AtomSettingsProviderSettingChanged => "ATOM_SETTINGS_PROVIDER_SETTING_CHANGED",
4199            AtomId::AtomBroadcastDeliveryEventReported => "ATOM_BROADCAST_DELIVERY_EVENT_REPORTED",
4200            AtomId::AtomServiceRequestEventReported => "ATOM_SERVICE_REQUEST_EVENT_REPORTED",
4201            AtomId::AtomProviderAcquisitionEventReported => "ATOM_PROVIDER_ACQUISITION_EVENT_REPORTED",
4202            AtomId::AtomBluetoothDeviceNameReported => "ATOM_BLUETOOTH_DEVICE_NAME_REPORTED",
4203            AtomId::AtomCbConfigUpdated => "ATOM_CB_CONFIG_UPDATED",
4204            AtomId::AtomCbModuleErrorReported => "ATOM_CB_MODULE_ERROR_REPORTED",
4205            AtomId::AtomCbServiceFeatureChanged => "ATOM_CB_SERVICE_FEATURE_CHANGED",
4206            AtomId::AtomCbReceiverFeatureChanged => "ATOM_CB_RECEIVER_FEATURE_CHANGED",
4207            AtomId::AtomPrivacySignalNotificationInteraction => "ATOM_PRIVACY_SIGNAL_NOTIFICATION_INTERACTION",
4208            AtomId::AtomPrivacySignalIssueCardInteraction => "ATOM_PRIVACY_SIGNAL_ISSUE_CARD_INTERACTION",
4209            AtomId::AtomPrivacySignalsJobFailure => "ATOM_PRIVACY_SIGNALS_JOB_FAILURE",
4210            AtomId::AtomVibrationReported => "ATOM_VIBRATION_REPORTED",
4211            AtomId::AtomUwbRangingStart => "ATOM_UWB_RANGING_START",
4212            AtomId::AtomAppCompactedV2 => "ATOM_APP_COMPACTED_V2",
4213            AtomId::AtomDisplayBrightnessChanged => "ATOM_DISPLAY_BRIGHTNESS_CHANGED",
4214            AtomId::AtomActivityActionBlocked => "ATOM_ACTIVITY_ACTION_BLOCKED",
4215            AtomId::AtomNetworkDnsServerSupportReported => "ATOM_NETWORK_DNS_SERVER_SUPPORT_REPORTED",
4216            AtomId::AtomVmBooted => "ATOM_VM_BOOTED",
4217            AtomId::AtomVmExited => "ATOM_VM_EXITED",
4218            AtomId::AtomAmbientBrightnessStatsReported => "ATOM_AMBIENT_BRIGHTNESS_STATS_REPORTED",
4219            AtomId::AtomMediametricsSpatializercapabilitiesReported => "ATOM_MEDIAMETRICS_SPATIALIZERCAPABILITIES_REPORTED",
4220            AtomId::AtomMediametricsSpatializerdeviceenabledReported => "ATOM_MEDIAMETRICS_SPATIALIZERDEVICEENABLED_REPORTED",
4221            AtomId::AtomMediametricsHeadtrackerdeviceenabledReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICEENABLED_REPORTED",
4222            AtomId::AtomMediametricsHeadtrackerdevicesupportedReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICESUPPORTED_REPORTED",
4223            AtomId::AtomHearingAidInfoReported => "ATOM_HEARING_AID_INFO_REPORTED",
4224            AtomId::AtomDeviceWideJobConstraintChanged => "ATOM_DEVICE_WIDE_JOB_CONSTRAINT_CHANGED",
4225            AtomId::AtomAmbientModeChanged => "ATOM_AMBIENT_MODE_CHANGED",
4226            AtomId::AtomAnrLatencyReported => "ATOM_ANR_LATENCY_REPORTED",
4227            AtomId::AtomResourceApiInfo => "ATOM_RESOURCE_API_INFO",
4228            AtomId::AtomSystemDefaultNetworkChanged => "ATOM_SYSTEM_DEFAULT_NETWORK_CHANGED",
4229            AtomId::AtomIwlanSetupDataCallResultReported => "ATOM_IWLAN_SETUP_DATA_CALL_RESULT_REPORTED",
4230            AtomId::AtomIwlanPdnDisconnectedReasonReported => "ATOM_IWLAN_PDN_DISCONNECTED_REASON_REPORTED",
4231            AtomId::AtomAirplaneModeSessionReported => "ATOM_AIRPLANE_MODE_SESSION_REPORTED",
4232            AtomId::AtomVmCpuStatusReported => "ATOM_VM_CPU_STATUS_REPORTED",
4233            AtomId::AtomVmMemStatusReported => "ATOM_VM_MEM_STATUS_REPORTED",
4234            AtomId::AtomPackageInstallationSessionReported => "ATOM_PACKAGE_INSTALLATION_SESSION_REPORTED",
4235            AtomId::AtomDefaultNetworkRematchInfo => "ATOM_DEFAULT_NETWORK_REMATCH_INFO",
4236            AtomId::AtomNetworkSelectionPerformance => "ATOM_NETWORK_SELECTION_PERFORMANCE",
4237            AtomId::AtomNetworkNsdReported => "ATOM_NETWORK_NSD_REPORTED",
4238            AtomId::AtomBluetoothDisconnectionReasonReported => "ATOM_BLUETOOTH_DISCONNECTION_REASON_REPORTED",
4239            AtomId::AtomBluetoothLocalVersionsReported => "ATOM_BLUETOOTH_LOCAL_VERSIONS_REPORTED",
4240            AtomId::AtomBluetoothRemoteSupportedFeaturesReported => "ATOM_BLUETOOTH_REMOTE_SUPPORTED_FEATURES_REPORTED",
4241            AtomId::AtomBluetoothLocalSupportedFeaturesReported => "ATOM_BLUETOOTH_LOCAL_SUPPORTED_FEATURES_REPORTED",
4242            AtomId::AtomBluetoothGattAppInfo => "ATOM_BLUETOOTH_GATT_APP_INFO",
4243            AtomId::AtomBrightnessConfigurationUpdated => "ATOM_BRIGHTNESS_CONFIGURATION_UPDATED",
4244            AtomId::AtomWearMediaOutputSwitcherLaunched => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_LAUNCHED",
4245            AtomId::AtomWearMediaOutputSwitcherFinished => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FINISHED",
4246            AtomId::AtomWearMediaOutputSwitcherConnectionReported => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECTION_REPORTED",
4247            AtomId::AtomWearMediaOutputSwitcherDeviceScanTriggered => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_TRIGGERED",
4248            AtomId::AtomWearMediaOutputSwitcherFirstDeviceScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FIRST_DEVICE_SCAN_LATENCY",
4249            AtomId::AtomWearMediaOutputSwitcherConnectDeviceLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECT_DEVICE_LATENCY",
4250            AtomId::AtomPackageManagerSnapshotReported => "ATOM_PACKAGE_MANAGER_SNAPSHOT_REPORTED",
4251            AtomId::AtomPackageManagerAppsFilterCacheBuildReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_BUILD_REPORTED",
4252            AtomId::AtomPackageManagerAppsFilterCacheUpdateReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_UPDATE_REPORTED",
4253            AtomId::AtomLauncherImpressionEvent => "ATOM_LAUNCHER_IMPRESSION_EVENT",
4254            AtomId::AtomWearMediaOutputSwitcherAllDevicesScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_ALL_DEVICES_SCAN_LATENCY",
4255            AtomId::AtomWsWatchFaceEdited => "ATOM_WS_WATCH_FACE_EDITED",
4256            AtomId::AtomWsWatchFaceFavoriteActionReported => "ATOM_WS_WATCH_FACE_FAVORITE_ACTION_REPORTED",
4257            AtomId::AtomWsWatchFaceSetActionReported => "ATOM_WS_WATCH_FACE_SET_ACTION_REPORTED",
4258            AtomId::AtomPackageUninstallationReported => "ATOM_PACKAGE_UNINSTALLATION_REPORTED",
4259            AtomId::AtomGameModeChanged => "ATOM_GAME_MODE_CHANGED",
4260            AtomId::AtomGameModeConfigurationChanged => "ATOM_GAME_MODE_CONFIGURATION_CHANGED",
4261            AtomId::AtomBedtimeModeStateChanged => "ATOM_BEDTIME_MODE_STATE_CHANGED",
4262            AtomId::AtomNetworkSliceSessionEnded => "ATOM_NETWORK_SLICE_SESSION_ENDED",
4263            AtomId::AtomNetworkSliceDailyDataUsageReported => "ATOM_NETWORK_SLICE_DAILY_DATA_USAGE_REPORTED",
4264            AtomId::AtomNfcTagTypeOccurred => "ATOM_NFC_TAG_TYPE_OCCURRED",
4265            AtomId::AtomNfcAidConflictOccurred => "ATOM_NFC_AID_CONFLICT_OCCURRED",
4266            AtomId::AtomNfcReaderConflictOccurred => "ATOM_NFC_READER_CONFLICT_OCCURRED",
4267            AtomId::AtomWsTileListChanged => "ATOM_WS_TILE_LIST_CHANGED",
4268            AtomId::AtomGetTypeAccessedWithoutPermission => "ATOM_GET_TYPE_ACCESSED_WITHOUT_PERMISSION",
4269            AtomId::AtomMobileBundledAppInfoGathered => "ATOM_MOBILE_BUNDLED_APP_INFO_GATHERED",
4270            AtomId::AtomWsWatchFaceComplicationSetChanged => "ATOM_WS_WATCH_FACE_COMPLICATION_SET_CHANGED",
4271            AtomId::AtomMediaDrmCreated => "ATOM_MEDIA_DRM_CREATED",
4272            AtomId::AtomMediaDrmErrored => "ATOM_MEDIA_DRM_ERRORED",
4273            AtomId::AtomMediaDrmSessionOpened => "ATOM_MEDIA_DRM_SESSION_OPENED",
4274            AtomId::AtomMediaDrmSessionClosed => "ATOM_MEDIA_DRM_SESSION_CLOSED",
4275            AtomId::AtomUserSelectedResolution => "ATOM_USER_SELECTED_RESOLUTION",
4276            AtomId::AtomUnsafeIntentEventReported => "ATOM_UNSAFE_INTENT_EVENT_REPORTED",
4277            AtomId::AtomPerformanceHintSessionReported => "ATOM_PERFORMANCE_HINT_SESSION_REPORTED",
4278            AtomId::AtomMediametricsMidiDeviceCloseReported => "ATOM_MEDIAMETRICS_MIDI_DEVICE_CLOSE_REPORTED",
4279            AtomId::AtomBiometricTouchReported => "ATOM_BIOMETRIC_TOUCH_REPORTED",
4280            AtomId::AtomHotwordAudioEgressEventReported => "ATOM_HOTWORD_AUDIO_EGRESS_EVENT_REPORTED",
4281            AtomId::AtomLocationEnabledStateChanged => "ATOM_LOCATION_ENABLED_STATE_CHANGED",
4282            AtomId::AtomImeRequestFinished => "ATOM_IME_REQUEST_FINISHED",
4283            AtomId::AtomUsbComplianceWarningsReported => "ATOM_USB_COMPLIANCE_WARNINGS_REPORTED",
4284            AtomId::AtomAppSupportedLocalesChanged => "ATOM_APP_SUPPORTED_LOCALES_CHANGED",
4285            AtomId::AtomMediaProviderVolumeRecoveryReported => "ATOM_MEDIA_PROVIDER_VOLUME_RECOVERY_REPORTED",
4286            AtomId::AtomBiometricPropertiesCollected => "ATOM_BIOMETRIC_PROPERTIES_COLLECTED",
4287            AtomId::AtomKernelWakeupAttributed => "ATOM_KERNEL_WAKEUP_ATTRIBUTED",
4288            AtomId::AtomScreenStateChangedV2 => "ATOM_SCREEN_STATE_CHANGED_V2",
4289            AtomId::AtomWsBackupActionReported => "ATOM_WS_BACKUP_ACTION_REPORTED",
4290            AtomId::AtomWsRestoreActionReported => "ATOM_WS_RESTORE_ACTION_REPORTED",
4291            AtomId::AtomDeviceLogAccessEventReported => "ATOM_DEVICE_LOG_ACCESS_EVENT_REPORTED",
4292            AtomId::AtomMediaSessionUpdated => "ATOM_MEDIA_SESSION_UPDATED",
4293            AtomId::AtomWearOobeStateChanged => "ATOM_WEAR_OOBE_STATE_CHANGED",
4294            AtomId::AtomWsNotificationUpdated => "ATOM_WS_NOTIFICATION_UPDATED",
4295            AtomId::AtomNetworkValidationFailureStatsDailyReported => "ATOM_NETWORK_VALIDATION_FAILURE_STATS_DAILY_REPORTED",
4296            AtomId::AtomWsComplicationTapped => "ATOM_WS_COMPLICATION_TAPPED",
4297            AtomId::AtomWsNotificationBlocking => "ATOM_WS_NOTIFICATION_BLOCKING",
4298            AtomId::AtomWsNotificationBridgemodeUpdated => "ATOM_WS_NOTIFICATION_BRIDGEMODE_UPDATED",
4299            AtomId::AtomWsNotificationDismissalActioned => "ATOM_WS_NOTIFICATION_DISMISSAL_ACTIONED",
4300            AtomId::AtomWsNotificationActioned => "ATOM_WS_NOTIFICATION_ACTIONED",
4301            AtomId::AtomWsNotificationLatency => "ATOM_WS_NOTIFICATION_LATENCY",
4302            AtomId::AtomWifiBytesTransfer => "ATOM_WIFI_BYTES_TRANSFER",
4303            AtomId::AtomWifiBytesTransferByFgBg => "ATOM_WIFI_BYTES_TRANSFER_BY_FG_BG",
4304            AtomId::AtomMobileBytesTransfer => "ATOM_MOBILE_BYTES_TRANSFER",
4305            AtomId::AtomMobileBytesTransferByFgBg => "ATOM_MOBILE_BYTES_TRANSFER_BY_FG_BG",
4306            AtomId::AtomBluetoothBytesTransfer => "ATOM_BLUETOOTH_BYTES_TRANSFER",
4307            AtomId::AtomKernelWakelock => "ATOM_KERNEL_WAKELOCK",
4308            AtomId::AtomSubsystemSleepState => "ATOM_SUBSYSTEM_SLEEP_STATE",
4309            AtomId::AtomCpuTimePerUid => "ATOM_CPU_TIME_PER_UID",
4310            AtomId::AtomCpuTimePerUidFreq => "ATOM_CPU_TIME_PER_UID_FREQ",
4311            AtomId::AtomWifiActivityInfo => "ATOM_WIFI_ACTIVITY_INFO",
4312            AtomId::AtomModemActivityInfo => "ATOM_MODEM_ACTIVITY_INFO",
4313            AtomId::AtomBluetoothActivityInfo => "ATOM_BLUETOOTH_ACTIVITY_INFO",
4314            AtomId::AtomProcessMemoryState => "ATOM_PROCESS_MEMORY_STATE",
4315            AtomId::AtomSystemElapsedRealtime => "ATOM_SYSTEM_ELAPSED_REALTIME",
4316            AtomId::AtomSystemUptime => "ATOM_SYSTEM_UPTIME",
4317            AtomId::AtomCpuActiveTime => "ATOM_CPU_ACTIVE_TIME",
4318            AtomId::AtomCpuClusterTime => "ATOM_CPU_CLUSTER_TIME",
4319            AtomId::AtomDiskSpace => "ATOM_DISK_SPACE",
4320            AtomId::AtomRemainingBatteryCapacity => "ATOM_REMAINING_BATTERY_CAPACITY",
4321            AtomId::AtomFullBatteryCapacity => "ATOM_FULL_BATTERY_CAPACITY",
4322            AtomId::AtomTemperature => "ATOM_TEMPERATURE",
4323            AtomId::AtomBinderCalls => "ATOM_BINDER_CALLS",
4324            AtomId::AtomBinderCallsExceptions => "ATOM_BINDER_CALLS_EXCEPTIONS",
4325            AtomId::AtomLooperStats => "ATOM_LOOPER_STATS",
4326            AtomId::AtomDiskStats => "ATOM_DISK_STATS",
4327            AtomId::AtomDirectoryUsage => "ATOM_DIRECTORY_USAGE",
4328            AtomId::AtomAppSize => "ATOM_APP_SIZE",
4329            AtomId::AtomCategorySize => "ATOM_CATEGORY_SIZE",
4330            AtomId::AtomProcStats => "ATOM_PROC_STATS",
4331            AtomId::AtomBatteryVoltage => "ATOM_BATTERY_VOLTAGE",
4332            AtomId::AtomNumFingerprintsEnrolled => "ATOM_NUM_FINGERPRINTS_ENROLLED",
4333            AtomId::AtomDiskIo => "ATOM_DISK_IO",
4334            AtomId::AtomPowerProfile => "ATOM_POWER_PROFILE",
4335            AtomId::AtomProcStatsPkgProc => "ATOM_PROC_STATS_PKG_PROC",
4336            AtomId::AtomProcessCpuTime => "ATOM_PROCESS_CPU_TIME",
4337            AtomId::AtomCpuTimePerThreadFreq => "ATOM_CPU_TIME_PER_THREAD_FREQ",
4338            AtomId::AtomOnDevicePowerMeasurement => "ATOM_ON_DEVICE_POWER_MEASUREMENT",
4339            AtomId::AtomDeviceCalculatedPowerUse => "ATOM_DEVICE_CALCULATED_POWER_USE",
4340            AtomId::AtomProcessMemoryHighWaterMark => "ATOM_PROCESS_MEMORY_HIGH_WATER_MARK",
4341            AtomId::AtomBatteryLevel => "ATOM_BATTERY_LEVEL",
4342            AtomId::AtomBuildInformation => "ATOM_BUILD_INFORMATION",
4343            AtomId::AtomBatteryCycleCount => "ATOM_BATTERY_CYCLE_COUNT",
4344            AtomId::AtomDebugElapsedClock => "ATOM_DEBUG_ELAPSED_CLOCK",
4345            AtomId::AtomDebugFailingElapsedClock => "ATOM_DEBUG_FAILING_ELAPSED_CLOCK",
4346            AtomId::AtomNumFacesEnrolled => "ATOM_NUM_FACES_ENROLLED",
4347            AtomId::AtomRoleHolder => "ATOM_ROLE_HOLDER",
4348            AtomId::AtomDangerousPermissionState => "ATOM_DANGEROUS_PERMISSION_STATE",
4349            AtomId::AtomTrainInfo => "ATOM_TRAIN_INFO",
4350            AtomId::AtomTimeZoneDataInfo => "ATOM_TIME_ZONE_DATA_INFO",
4351            AtomId::AtomExternalStorageInfo => "ATOM_EXTERNAL_STORAGE_INFO",
4352            AtomId::AtomGpuStatsGlobalInfo => "ATOM_GPU_STATS_GLOBAL_INFO",
4353            AtomId::AtomGpuStatsAppInfo => "ATOM_GPU_STATS_APP_INFO",
4354            AtomId::AtomSystemIonHeapSize => "ATOM_SYSTEM_ION_HEAP_SIZE",
4355            AtomId::AtomAppsOnExternalStorageInfo => "ATOM_APPS_ON_EXTERNAL_STORAGE_INFO",
4356            AtomId::AtomFaceSettings => "ATOM_FACE_SETTINGS",
4357            AtomId::AtomCoolingDevice => "ATOM_COOLING_DEVICE",
4358            AtomId::AtomAppOps => "ATOM_APP_OPS",
4359            AtomId::AtomProcessSystemIonHeapSize => "ATOM_PROCESS_SYSTEM_ION_HEAP_SIZE",
4360            AtomId::AtomSurfaceflingerStatsGlobalInfo => "ATOM_SURFACEFLINGER_STATS_GLOBAL_INFO",
4361            AtomId::AtomSurfaceflingerStatsLayerInfo => "ATOM_SURFACEFLINGER_STATS_LAYER_INFO",
4362            AtomId::AtomProcessMemorySnapshot => "ATOM_PROCESS_MEMORY_SNAPSHOT",
4363            AtomId::AtomVmsClientStats => "ATOM_VMS_CLIENT_STATS",
4364            AtomId::AtomNotificationRemoteViews => "ATOM_NOTIFICATION_REMOTE_VIEWS",
4365            AtomId::AtomDangerousPermissionStateSampled => "ATOM_DANGEROUS_PERMISSION_STATE_SAMPLED",
4366            AtomId::AtomGraphicsStats => "ATOM_GRAPHICS_STATS",
4367            AtomId::AtomRuntimeAppOpAccess => "ATOM_RUNTIME_APP_OP_ACCESS",
4368            AtomId::AtomIonHeapSize => "ATOM_ION_HEAP_SIZE",
4369            AtomId::AtomPackageNotificationPreferences => "ATOM_PACKAGE_NOTIFICATION_PREFERENCES",
4370            AtomId::AtomPackageNotificationChannelPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_PREFERENCES",
4371            AtomId::AtomPackageNotificationChannelGroupPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_GROUP_PREFERENCES",
4372            AtomId::AtomGnssStats => "ATOM_GNSS_STATS",
4373            AtomId::AtomAttributedAppOps => "ATOM_ATTRIBUTED_APP_OPS",
4374            AtomId::AtomVoiceCallSession => "ATOM_VOICE_CALL_SESSION",
4375            AtomId::AtomVoiceCallRatUsage => "ATOM_VOICE_CALL_RAT_USAGE",
4376            AtomId::AtomSimSlotState => "ATOM_SIM_SLOT_STATE",
4377            AtomId::AtomSupportedRadioAccessFamily => "ATOM_SUPPORTED_RADIO_ACCESS_FAMILY",
4378            AtomId::AtomSettingSnapshot => "ATOM_SETTING_SNAPSHOT",
4379            AtomId::AtomBlobInfo => "ATOM_BLOB_INFO",
4380            AtomId::AtomDataUsageBytesTransfer => "ATOM_DATA_USAGE_BYTES_TRANSFER",
4381            AtomId::AtomBytesTransferByTagAndMetered => "ATOM_BYTES_TRANSFER_BY_TAG_AND_METERED",
4382            AtomId::AtomDndModeRule => "ATOM_DND_MODE_RULE",
4383            AtomId::AtomGeneralExternalStorageAccessStats => "ATOM_GENERAL_EXTERNAL_STORAGE_ACCESS_STATS",
4384            AtomId::AtomIncomingSms => "ATOM_INCOMING_SMS",
4385            AtomId::AtomOutgoingSms => "ATOM_OUTGOING_SMS",
4386            AtomId::AtomCarrierIdTableVersion => "ATOM_CARRIER_ID_TABLE_VERSION",
4387            AtomId::AtomDataCallSession => "ATOM_DATA_CALL_SESSION",
4388            AtomId::AtomCellularServiceState => "ATOM_CELLULAR_SERVICE_STATE",
4389            AtomId::AtomCellularDataServiceSwitch => "ATOM_CELLULAR_DATA_SERVICE_SWITCH",
4390            AtomId::AtomSystemMemory => "ATOM_SYSTEM_MEMORY",
4391            AtomId::AtomImsRegistrationTermination => "ATOM_IMS_REGISTRATION_TERMINATION",
4392            AtomId::AtomImsRegistrationStats => "ATOM_IMS_REGISTRATION_STATS",
4393            AtomId::AtomCpuTimePerClusterFreq => "ATOM_CPU_TIME_PER_CLUSTER_FREQ",
4394            AtomId::AtomCpuCyclesPerUidCluster => "ATOM_CPU_CYCLES_PER_UID_CLUSTER",
4395            AtomId::AtomDeviceRotatedData => "ATOM_DEVICE_ROTATED_DATA",
4396            AtomId::AtomCpuCyclesPerThreadGroupCluster => "ATOM_CPU_CYCLES_PER_THREAD_GROUP_CLUSTER",
4397            AtomId::AtomMediaDrmActivityInfo => "ATOM_MEDIA_DRM_ACTIVITY_INFO",
4398            AtomId::AtomOemManagedBytesTransfer => "ATOM_OEM_MANAGED_BYTES_TRANSFER",
4399            AtomId::AtomGnssPowerStats => "ATOM_GNSS_POWER_STATS",
4400            AtomId::AtomTimeZoneDetectorState => "ATOM_TIME_ZONE_DETECTOR_STATE",
4401            AtomId::AtomKeystore2StorageStats => "ATOM_KEYSTORE2_STORAGE_STATS",
4402            AtomId::AtomRkpPoolStats => "ATOM_RKP_POOL_STATS",
4403            AtomId::AtomProcessDmabufMemory => "ATOM_PROCESS_DMABUF_MEMORY",
4404            AtomId::AtomPendingAlarmInfo => "ATOM_PENDING_ALARM_INFO",
4405            AtomId::AtomUserLevelHibernatedApps => "ATOM_USER_LEVEL_HIBERNATED_APPS",
4406            AtomId::AtomLauncherLayoutSnapshot => "ATOM_LAUNCHER_LAYOUT_SNAPSHOT",
4407            AtomId::AtomGlobalHibernatedApps => "ATOM_GLOBAL_HIBERNATED_APPS",
4408            AtomId::AtomInputEventLatencySketch => "ATOM_INPUT_EVENT_LATENCY_SKETCH",
4409            AtomId::AtomBatteryUsageStatsBeforeReset => "ATOM_BATTERY_USAGE_STATS_BEFORE_RESET",
4410            AtomId::AtomBatteryUsageStatsSinceReset => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET",
4411            AtomId::AtomBatteryUsageStatsSinceResetUsingPowerProfileModel => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET_USING_POWER_PROFILE_MODEL",
4412            AtomId::AtomInstalledIncrementalPackage => "ATOM_INSTALLED_INCREMENTAL_PACKAGE",
4413            AtomId::AtomTelephonyNetworkRequests => "ATOM_TELEPHONY_NETWORK_REQUESTS",
4414            AtomId::AtomAppSearchStorageInfo => "ATOM_APP_SEARCH_STORAGE_INFO",
4415            AtomId::AtomVmstat => "ATOM_VMSTAT",
4416            AtomId::AtomKeystore2KeyCreationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_GENERAL_INFO",
4417            AtomId::AtomKeystore2KeyCreationWithAuthInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_AUTH_INFO",
4418            AtomId::AtomKeystore2KeyCreationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_PURPOSE_AND_MODES_INFO",
4419            AtomId::AtomKeystore2AtomWithOverflow => "ATOM_KEYSTORE2_ATOM_WITH_OVERFLOW",
4420            AtomId::AtomKeystore2KeyOperationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_PURPOSE_AND_MODES_INFO",
4421            AtomId::AtomKeystore2KeyOperationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_GENERAL_INFO",
4422            AtomId::AtomRkpErrorStats => "ATOM_RKP_ERROR_STATS",
4423            AtomId::AtomKeystore2CrashStats => "ATOM_KEYSTORE2_CRASH_STATS",
4424            AtomId::AtomVendorApexInfo => "ATOM_VENDOR_APEX_INFO",
4425            AtomId::AtomAccessibilityShortcutStats => "ATOM_ACCESSIBILITY_SHORTCUT_STATS",
4426            AtomId::AtomAccessibilityFloatingMenuStats => "ATOM_ACCESSIBILITY_FLOATING_MENU_STATS",
4427            AtomId::AtomDataUsageBytesTransferV2 => "ATOM_DATA_USAGE_BYTES_TRANSFER_V2",
4428            AtomId::AtomMediaCapabilities => "ATOM_MEDIA_CAPABILITIES",
4429            AtomId::AtomCarWatchdogSystemIoUsageSummary => "ATOM_CAR_WATCHDOG_SYSTEM_IO_USAGE_SUMMARY",
4430            AtomId::AtomCarWatchdogUidIoUsageSummary => "ATOM_CAR_WATCHDOG_UID_IO_USAGE_SUMMARY",
4431            AtomId::AtomImsRegistrationFeatureTagStats => "ATOM_IMS_REGISTRATION_FEATURE_TAG_STATS",
4432            AtomId::AtomRcsClientProvisioningStats => "ATOM_RCS_CLIENT_PROVISIONING_STATS",
4433            AtomId::AtomRcsAcsProvisioningStats => "ATOM_RCS_ACS_PROVISIONING_STATS",
4434            AtomId::AtomSipDelegateStats => "ATOM_SIP_DELEGATE_STATS",
4435            AtomId::AtomSipTransportFeatureTagStats => "ATOM_SIP_TRANSPORT_FEATURE_TAG_STATS",
4436            AtomId::AtomSipMessageResponse => "ATOM_SIP_MESSAGE_RESPONSE",
4437            AtomId::AtomSipTransportSession => "ATOM_SIP_TRANSPORT_SESSION",
4438            AtomId::AtomImsDedicatedBearerListenerEvent => "ATOM_IMS_DEDICATED_BEARER_LISTENER_EVENT",
4439            AtomId::AtomImsDedicatedBearerEvent => "ATOM_IMS_DEDICATED_BEARER_EVENT",
4440            AtomId::AtomImsRegistrationServiceDescStats => "ATOM_IMS_REGISTRATION_SERVICE_DESC_STATS",
4441            AtomId::AtomUceEventStats => "ATOM_UCE_EVENT_STATS",
4442            AtomId::AtomPresenceNotifyEvent => "ATOM_PRESENCE_NOTIFY_EVENT",
4443            AtomId::AtomGbaEvent => "ATOM_GBA_EVENT",
4444            AtomId::AtomPerSimStatus => "ATOM_PER_SIM_STATUS",
4445            AtomId::AtomGpuWorkPerUid => "ATOM_GPU_WORK_PER_UID",
4446            AtomId::AtomPersistentUriPermissionsAmountPerPackage => "ATOM_PERSISTENT_URI_PERMISSIONS_AMOUNT_PER_PACKAGE",
4447            AtomId::AtomSignedPartitionInfo => "ATOM_SIGNED_PARTITION_INFO",
4448            AtomId::AtomPinnedFileSizesPerPackage => "ATOM_PINNED_FILE_SIZES_PER_PACKAGE",
4449            AtomId::AtomPendingIntentsPerPackage => "ATOM_PENDING_INTENTS_PER_PACKAGE",
4450            AtomId::AtomUserInfo => "ATOM_USER_INFO",
4451            AtomId::AtomTelephonyNetworkRequestsV2 => "ATOM_TELEPHONY_NETWORK_REQUESTS_V2",
4452            AtomId::AtomDeviceTelephonyProperties => "ATOM_DEVICE_TELEPHONY_PROPERTIES",
4453            AtomId::AtomRemoteKeyProvisioningErrorCounts => "ATOM_REMOTE_KEY_PROVISIONING_ERROR_COUNTS",
4454            AtomId::AtomSafetyState => "ATOM_SAFETY_STATE",
4455            AtomId::AtomIncomingMms => "ATOM_INCOMING_MMS",
4456            AtomId::AtomOutgoingMms => "ATOM_OUTGOING_MMS",
4457            AtomId::AtomMultiUserInfo => "ATOM_MULTI_USER_INFO",
4458            AtomId::AtomNetworkBpfMapInfo => "ATOM_NETWORK_BPF_MAP_INFO",
4459            AtomId::AtomOutgoingShortCodeSms => "ATOM_OUTGOING_SHORT_CODE_SMS",
4460            AtomId::AtomConnectivityStateSample => "ATOM_CONNECTIVITY_STATE_SAMPLE",
4461            AtomId::AtomNetworkSelectionRematchReasonsInfo => "ATOM_NETWORK_SELECTION_REMATCH_REASONS_INFO",
4462            AtomId::AtomGameModeInfo => "ATOM_GAME_MODE_INFO",
4463            AtomId::AtomGameModeConfiguration => "ATOM_GAME_MODE_CONFIGURATION",
4464            AtomId::AtomGameModeListener => "ATOM_GAME_MODE_LISTENER",
4465            AtomId::AtomNetworkSliceRequestCount => "ATOM_NETWORK_SLICE_REQUEST_COUNT",
4466            AtomId::AtomWsTileSnapshot => "ATOM_WS_TILE_SNAPSHOT",
4467            AtomId::AtomWsActiveWatchFaceComplicationSetSnapshot => "ATOM_WS_ACTIVE_WATCH_FACE_COMPLICATION_SET_SNAPSHOT",
4468            AtomId::AtomProcessState => "ATOM_PROCESS_STATE",
4469            AtomId::AtomProcessAssociation => "ATOM_PROCESS_ASSOCIATION",
4470            AtomId::AtomAdpfSystemComponentInfo => "ATOM_ADPF_SYSTEM_COMPONENT_INFO",
4471            AtomId::AtomNotificationMemoryUse => "ATOM_NOTIFICATION_MEMORY_USE",
4472            AtomId::AtomHdrCapabilities => "ATOM_HDR_CAPABILITIES",
4473            AtomId::AtomWsFavouriteWatchFaceListSnapshot => "ATOM_WS_FAVOURITE_WATCH_FACE_LIST_SNAPSHOT",
4474            AtomId::AtomAccessibilityCheckResultReported => "ATOM_ACCESSIBILITY_CHECK_RESULT_REPORTED",
4475            AtomId::AtomAdaptiveAuthUnlockAfterLockReported => "ATOM_ADAPTIVE_AUTH_UNLOCK_AFTER_LOCK_REPORTED",
4476            AtomId::AtomThermalStatusCalled => "ATOM_THERMAL_STATUS_CALLED",
4477            AtomId::AtomThermalHeadroomCalled => "ATOM_THERMAL_HEADROOM_CALLED",
4478            AtomId::AtomThermalHeadroomThresholdsCalled => "ATOM_THERMAL_HEADROOM_THRESHOLDS_CALLED",
4479            AtomId::AtomAdpfHintSessionTidCleanup => "ATOM_ADPF_HINT_SESSION_TID_CLEANUP",
4480            AtomId::AtomThermalHeadroomThresholds => "ATOM_THERMAL_HEADROOM_THRESHOLDS",
4481            AtomId::AtomAdpfSessionSnapshot => "ATOM_ADPF_SESSION_SNAPSHOT",
4482            AtomId::AtomJsscriptengineLatencyReported => "ATOM_JSSCRIPTENGINE_LATENCY_REPORTED",
4483            AtomId::AtomAdServicesApiCalled => "ATOM_AD_SERVICES_API_CALLED",
4484            AtomId::AtomAdServicesMesurementReportsUploaded => "ATOM_AD_SERVICES_MESUREMENT_REPORTS_UPLOADED",
4485            AtomId::AtomMobileDataDownloadFileGroupStatusReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STATUS_REPORTED",
4486            AtomId::AtomMobileDataDownloadDownloadResultReported => "ATOM_MOBILE_DATA_DOWNLOAD_DOWNLOAD_RESULT_REPORTED",
4487            AtomId::AtomAdServicesSettingsUsageReported => "ATOM_AD_SERVICES_SETTINGS_USAGE_REPORTED",
4488            AtomId::AtomBackgroundFetchProcessReported => "ATOM_BACKGROUND_FETCH_PROCESS_REPORTED",
4489            AtomId::AtomUpdateCustomAudienceProcessReported => "ATOM_UPDATE_CUSTOM_AUDIENCE_PROCESS_REPORTED",
4490            AtomId::AtomRunAdBiddingProcessReported => "ATOM_RUN_AD_BIDDING_PROCESS_REPORTED",
4491            AtomId::AtomRunAdScoringProcessReported => "ATOM_RUN_AD_SCORING_PROCESS_REPORTED",
4492            AtomId::AtomRunAdSelectionProcessReported => "ATOM_RUN_AD_SELECTION_PROCESS_REPORTED",
4493            AtomId::AtomRunAdBiddingPerCaProcessReported => "ATOM_RUN_AD_BIDDING_PER_CA_PROCESS_REPORTED",
4494            AtomId::AtomMobileDataDownloadFileGroupStorageStatsReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STORAGE_STATS_REPORTED",
4495            AtomId::AtomAdServicesMeasurementRegistrations => "ATOM_AD_SERVICES_MEASUREMENT_REGISTRATIONS",
4496            AtomId::AtomAdServicesGetTopicsReported => "ATOM_AD_SERVICES_GET_TOPICS_REPORTED",
4497            AtomId::AtomAdServicesEpochComputationGetTopTopicsReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_GET_TOP_TOPICS_REPORTED",
4498            AtomId::AtomAdServicesEpochComputationClassifierReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4499            AtomId::AtomAdServicesBackCompatGetTopicsReported => "ATOM_AD_SERVICES_BACK_COMPAT_GET_TOPICS_REPORTED",
4500            AtomId::AtomAdServicesBackCompatEpochComputationClassifierReported => "ATOM_AD_SERVICES_BACK_COMPAT_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4501            AtomId::AtomAdServicesMeasurementDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_DEBUG_KEYS",
4502            AtomId::AtomAdServicesErrorReported => "ATOM_AD_SERVICES_ERROR_REPORTED",
4503            AtomId::AtomAdServicesBackgroundJobsExecutionReported => "ATOM_AD_SERVICES_BACKGROUND_JOBS_EXECUTION_REPORTED",
4504            AtomId::AtomAdServicesMeasurementDelayedSourceRegistration => "ATOM_AD_SERVICES_MEASUREMENT_DELAYED_SOURCE_REGISTRATION",
4505            AtomId::AtomAdServicesMeasurementAttribution => "ATOM_AD_SERVICES_MEASUREMENT_ATTRIBUTION",
4506            AtomId::AtomAdServicesMeasurementJobs => "ATOM_AD_SERVICES_MEASUREMENT_JOBS",
4507            AtomId::AtomAdServicesMeasurementWipeout => "ATOM_AD_SERVICES_MEASUREMENT_WIPEOUT",
4508            AtomId::AtomAdServicesMeasurementAdIdMatchForDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_AD_ID_MATCH_FOR_DEBUG_KEYS",
4509            AtomId::AtomAdServicesEnrollmentDataStored => "ATOM_AD_SERVICES_ENROLLMENT_DATA_STORED",
4510            AtomId::AtomAdServicesEnrollmentFileDownloaded => "ATOM_AD_SERVICES_ENROLLMENT_FILE_DOWNLOADED",
4511            AtomId::AtomAdServicesEnrollmentMatched => "ATOM_AD_SERVICES_ENROLLMENT_MATCHED",
4512            AtomId::AtomAdServicesConsentMigrated => "ATOM_AD_SERVICES_CONSENT_MIGRATED",
4513            AtomId::AtomAdServicesEnrollmentFailed => "ATOM_AD_SERVICES_ENROLLMENT_FAILED",
4514            AtomId::AtomAdServicesMeasurementClickVerification => "ATOM_AD_SERVICES_MEASUREMENT_CLICK_VERIFICATION",
4515            AtomId::AtomAdServicesEncryptionKeyFetched => "ATOM_AD_SERVICES_ENCRYPTION_KEY_FETCHED",
4516            AtomId::AtomAdServicesEncryptionKeyDbTransactionEnded => "ATOM_AD_SERVICES_ENCRYPTION_KEY_DB_TRANSACTION_ENDED",
4517            AtomId::AtomDestinationRegisteredBeacons => "ATOM_DESTINATION_REGISTERED_BEACONS",
4518            AtomId::AtomReportInteractionApiCalled => "ATOM_REPORT_INTERACTION_API_CALLED",
4519            AtomId::AtomInteractionReportingTableCleared => "ATOM_INTERACTION_REPORTING_TABLE_CLEARED",
4520            AtomId::AtomAppManifestConfigHelperCalled => "ATOM_APP_MANIFEST_CONFIG_HELPER_CALLED",
4521            AtomId::AtomAdFilteringProcessJoinCaReported => "ATOM_AD_FILTERING_PROCESS_JOIN_CA_REPORTED",
4522            AtomId::AtomAdFilteringProcessAdSelectionReported => "ATOM_AD_FILTERING_PROCESS_AD_SELECTION_REPORTED",
4523            AtomId::AtomAdCounterHistogramUpdaterReported => "ATOM_AD_COUNTER_HISTOGRAM_UPDATER_REPORTED",
4524            AtomId::AtomSignatureVerification => "ATOM_SIGNATURE_VERIFICATION",
4525            AtomId::AtomKAnonImmediateSignJoinStatusReported => "ATOM_K_ANON_IMMEDIATE_SIGN_JOIN_STATUS_REPORTED",
4526            AtomId::AtomKAnonBackgroundJobStatusReported => "ATOM_K_ANON_BACKGROUND_JOB_STATUS_REPORTED",
4527            AtomId::AtomKAnonInitializeStatusReported => "ATOM_K_ANON_INITIALIZE_STATUS_REPORTED",
4528            AtomId::AtomKAnonSignStatusReported => "ATOM_K_ANON_SIGN_STATUS_REPORTED",
4529            AtomId::AtomKAnonJoinStatusReported => "ATOM_K_ANON_JOIN_STATUS_REPORTED",
4530            AtomId::AtomKAnonKeyAttestationStatusReported => "ATOM_K_ANON_KEY_ATTESTATION_STATUS_REPORTED",
4531            AtomId::AtomGetAdSelectionDataApiCalled => "ATOM_GET_AD_SELECTION_DATA_API_CALLED",
4532            AtomId::AtomGetAdSelectionDataBuyerInputGenerated => "ATOM_GET_AD_SELECTION_DATA_BUYER_INPUT_GENERATED",
4533            AtomId::AtomBackgroundJobSchedulingReported => "ATOM_BACKGROUND_JOB_SCHEDULING_REPORTED",
4534            AtomId::AtomTopicsEncryptionEpochComputationReported => "ATOM_TOPICS_ENCRYPTION_EPOCH_COMPUTATION_REPORTED",
4535            AtomId::AtomTopicsEncryptionGetTopicsReported => "ATOM_TOPICS_ENCRYPTION_GET_TOPICS_REPORTED",
4536            AtomId::AtomAdservicesShellCommandCalled => "ATOM_ADSERVICES_SHELL_COMMAND_CALLED",
4537            AtomId::AtomUpdateSignalsApiCalled => "ATOM_UPDATE_SIGNALS_API_CALLED",
4538            AtomId::AtomEncodingJobRun => "ATOM_ENCODING_JOB_RUN",
4539            AtomId::AtomEncodingJsFetch => "ATOM_ENCODING_JS_FETCH",
4540            AtomId::AtomEncodingJsExecution => "ATOM_ENCODING_JS_EXECUTION",
4541            AtomId::AtomPersistAdSelectionResultCalled => "ATOM_PERSIST_AD_SELECTION_RESULT_CALLED",
4542            AtomId::AtomServerAuctionKeyFetchCalled => "ATOM_SERVER_AUCTION_KEY_FETCH_CALLED",
4543            AtomId::AtomServerAuctionBackgroundKeyFetchEnabled => "ATOM_SERVER_AUCTION_BACKGROUND_KEY_FETCH_ENABLED",
4544            AtomId::AtomAdServicesMeasurementProcessOdpRegistration => "ATOM_AD_SERVICES_MEASUREMENT_PROCESS_ODP_REGISTRATION",
4545            AtomId::AtomAdServicesMeasurementNotifyRegistrationToOdp => "ATOM_AD_SERVICES_MEASUREMENT_NOTIFY_REGISTRATION_TO_ODP",
4546            AtomId::AtomSelectAdsFromOutcomesApiCalled => "ATOM_SELECT_ADS_FROM_OUTCOMES_API_CALLED",
4547            AtomId::AtomReportImpressionApiCalled => "ATOM_REPORT_IMPRESSION_API_CALLED",
4548            AtomId::AtomAdServicesEnrollmentTransactionStats => "ATOM_AD_SERVICES_ENROLLMENT_TRANSACTION_STATS",
4549            AtomId::AtomAdServicesCobaltLoggerEventReported => "ATOM_AD_SERVICES_COBALT_LOGGER_EVENT_REPORTED",
4550            AtomId::AtomAdServicesCobaltPeriodicJobEventReported => "ATOM_AD_SERVICES_COBALT_PERIODIC_JOB_EVENT_REPORTED",
4551            AtomId::AtomUpdateSignalsProcessReported => "ATOM_UPDATE_SIGNALS_PROCESS_REPORTED",
4552            AtomId::AtomTopicsScheduleEpochJobSettingReported => "ATOM_TOPICS_SCHEDULE_EPOCH_JOB_SETTING_REPORTED",
4553            AtomId::AtomAiWallpapersButtonPressed => "ATOM_AI_WALLPAPERS_BUTTON_PRESSED",
4554            AtomId::AtomAiWallpapersTemplateSelected => "ATOM_AI_WALLPAPERS_TEMPLATE_SELECTED",
4555            AtomId::AtomAiWallpapersTermSelected => "ATOM_AI_WALLPAPERS_TERM_SELECTED",
4556            AtomId::AtomAiWallpapersWallpaperSet => "ATOM_AI_WALLPAPERS_WALLPAPER_SET",
4557            AtomId::AtomAiWallpapersSessionSummary => "ATOM_AI_WALLPAPERS_SESSION_SUMMARY",
4558            AtomId::AtomApexInstallationRequested => "ATOM_APEX_INSTALLATION_REQUESTED",
4559            AtomId::AtomApexInstallationStaged => "ATOM_APEX_INSTALLATION_STAGED",
4560            AtomId::AtomApexInstallationEnded => "ATOM_APEX_INSTALLATION_ENDED",
4561            AtomId::AtomAppSearchSetSchemaStatsReported => "ATOM_APP_SEARCH_SET_SCHEMA_STATS_REPORTED",
4562            AtomId::AtomAppSearchSchemaMigrationStatsReported => "ATOM_APP_SEARCH_SCHEMA_MIGRATION_STATS_REPORTED",
4563            AtomId::AtomAppSearchUsageSearchIntentStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_STATS_REPORTED",
4564            AtomId::AtomAppSearchUsageSearchIntentRawQueryStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_RAW_QUERY_STATS_REPORTED",
4565            AtomId::AtomAppSearchAppsIndexerStatsReported => "ATOM_APP_SEARCH_APPS_INDEXER_STATS_REPORTED",
4566            AtomId::AtomArtDatumReported => "ATOM_ART_DATUM_REPORTED",
4567            AtomId::AtomArtDeviceDatumReported => "ATOM_ART_DEVICE_DATUM_REPORTED",
4568            AtomId::AtomArtDatumDeltaReported => "ATOM_ART_DATUM_DELTA_REPORTED",
4569            AtomId::AtomArtDex2oatReported => "ATOM_ART_DEX2OAT_REPORTED",
4570            AtomId::AtomArtDeviceStatus => "ATOM_ART_DEVICE_STATUS",
4571            AtomId::AtomBackgroundDexoptJobEnded => "ATOM_BACKGROUND_DEXOPT_JOB_ENDED",
4572            AtomId::AtomPrerebootDexoptJobEnded => "ATOM_PREREBOOT_DEXOPT_JOB_ENDED",
4573            AtomId::AtomOdrefreshReported => "ATOM_ODREFRESH_REPORTED",
4574            AtomId::AtomOdsignReported => "ATOM_ODSIGN_REPORTED",
4575            AtomId::AtomAutofillUiEventReported => "ATOM_AUTOFILL_UI_EVENT_REPORTED",
4576            AtomId::AtomAutofillFillRequestReported => "ATOM_AUTOFILL_FILL_REQUEST_REPORTED",
4577            AtomId::AtomAutofillFillResponseReported => "ATOM_AUTOFILL_FILL_RESPONSE_REPORTED",
4578            AtomId::AtomAutofillSaveEventReported => "ATOM_AUTOFILL_SAVE_EVENT_REPORTED",
4579            AtomId::AtomAutofillSessionCommitted => "ATOM_AUTOFILL_SESSION_COMMITTED",
4580            AtomId::AtomAutofillFieldClassificationEventReported => "ATOM_AUTOFILL_FIELD_CLASSIFICATION_EVENT_REPORTED",
4581            AtomId::AtomCarRecentsEventReported => "ATOM_CAR_RECENTS_EVENT_REPORTED",
4582            AtomId::AtomCarCalmModeEventReported => "ATOM_CAR_CALM_MODE_EVENT_REPORTED",
4583            AtomId::AtomCarWakeupFromSuspendReported => "ATOM_CAR_WAKEUP_FROM_SUSPEND_REPORTED",
4584            AtomId::AtomPluginInitialized => "ATOM_PLUGIN_INITIALIZED",
4585            AtomId::AtomBluetoothHashedDeviceNameReported => "ATOM_BLUETOOTH_HASHED_DEVICE_NAME_REPORTED",
4586            AtomId::AtomBluetoothL2capCocClientConnection => "ATOM_BLUETOOTH_L2CAP_COC_CLIENT_CONNECTION",
4587            AtomId::AtomBluetoothL2capCocServerConnection => "ATOM_BLUETOOTH_L2CAP_COC_SERVER_CONNECTION",
4588            AtomId::AtomBluetoothLeSessionConnected => "ATOM_BLUETOOTH_LE_SESSION_CONNECTED",
4589            AtomId::AtomRestrictedBluetoothDeviceNameReported => "ATOM_RESTRICTED_BLUETOOTH_DEVICE_NAME_REPORTED",
4590            AtomId::AtomBluetoothProfileConnectionAttempted => "ATOM_BLUETOOTH_PROFILE_CONNECTION_ATTEMPTED",
4591            AtomId::AtomBluetoothContentProfileErrorReported => "ATOM_BLUETOOTH_CONTENT_PROFILE_ERROR_REPORTED",
4592            AtomId::AtomBluetoothRfcommConnectionAttempted => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_ATTEMPTED",
4593            AtomId::AtomRemoteDeviceInformationWithMetricId => "ATOM_REMOTE_DEVICE_INFORMATION_WITH_METRIC_ID",
4594            AtomId::AtomLeAppScanStateChanged => "ATOM_LE_APP_SCAN_STATE_CHANGED",
4595            AtomId::AtomLeRadioScanStopped => "ATOM_LE_RADIO_SCAN_STOPPED",
4596            AtomId::AtomLeScanResultReceived => "ATOM_LE_SCAN_RESULT_RECEIVED",
4597            AtomId::AtomLeScanAbused => "ATOM_LE_SCAN_ABUSED",
4598            AtomId::AtomLeAdvStateChanged => "ATOM_LE_ADV_STATE_CHANGED",
4599            AtomId::AtomLeAdvErrorReported => "ATOM_LE_ADV_ERROR_REPORTED",
4600            AtomId::AtomA2dpSessionReported => "ATOM_A2DP_SESSION_REPORTED",
4601            AtomId::AtomBluetoothCrossLayerEventReported => "ATOM_BLUETOOTH_CROSS_LAYER_EVENT_REPORTED",
4602            AtomId::AtomBroadcastAudioSessionReported => "ATOM_BROADCAST_AUDIO_SESSION_REPORTED",
4603            AtomId::AtomBroadcastAudioSyncReported => "ATOM_BROADCAST_AUDIO_SYNC_REPORTED",
4604            AtomId::AtomBluetoothRfcommConnectionReportedAtClose => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_REPORTED_AT_CLOSE",
4605            AtomId::AtomBluetoothLeConnection => "ATOM_BLUETOOTH_LE_CONNECTION",
4606            AtomId::AtomBroadcastSent => "ATOM_BROADCAST_SENT",
4607            AtomId::AtomCameraFeatureCombinationQueryEvent => "ATOM_CAMERA_FEATURE_COMBINATION_QUERY_EVENT",
4608            AtomId::AtomCertificateTransparencyLogListStateChanged => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_STATE_CHANGED",
4609            AtomId::AtomCertificateTransparencyLogListUpdateFailed => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_UPDATE_FAILED",
4610            AtomId::AtomDailyKeepaliveInfoReported => "ATOM_DAILY_KEEPALIVE_INFO_REPORTED",
4611            AtomId::AtomNetworkRequestStateChanged => "ATOM_NETWORK_REQUEST_STATE_CHANGED",
4612            AtomId::AtomTetheringActiveSessionsReported => "ATOM_TETHERING_ACTIVE_SESSIONS_REPORTED",
4613            AtomId::AtomNetworkStatsRecorderFileOperated => "ATOM_NETWORK_STATS_RECORDER_FILE_OPERATED",
4614            AtomId::AtomCoreNetworkingTerribleErrorOccurred => "ATOM_CORE_NETWORKING_TERRIBLE_ERROR_OCCURRED",
4615            AtomId::AtomApfSessionInfoReported => "ATOM_APF_SESSION_INFO_REPORTED",
4616            AtomId::AtomIpClientRaInfoReported => "ATOM_IP_CLIENT_RA_INFO_REPORTED",
4617            AtomId::AtomVpnConnectionStateChanged => "ATOM_VPN_CONNECTION_STATE_CHANGED",
4618            AtomId::AtomVpnConnectionReported => "ATOM_VPN_CONNECTION_REPORTED",
4619            AtomId::AtomCpuPolicy => "ATOM_CPU_POLICY",
4620            AtomId::AtomCredentialManagerApiCalled => "ATOM_CREDENTIAL_MANAGER_API_CALLED",
4621            AtomId::AtomCredentialManagerInitPhaseReported => "ATOM_CREDENTIAL_MANAGER_INIT_PHASE_REPORTED",
4622            AtomId::AtomCredentialManagerCandidatePhaseReported => "ATOM_CREDENTIAL_MANAGER_CANDIDATE_PHASE_REPORTED",
4623            AtomId::AtomCredentialManagerFinalPhaseReported => "ATOM_CREDENTIAL_MANAGER_FINAL_PHASE_REPORTED",
4624            AtomId::AtomCredentialManagerTotalReported => "ATOM_CREDENTIAL_MANAGER_TOTAL_REPORTED",
4625            AtomId::AtomCredentialManagerFinalnouidReported => "ATOM_CREDENTIAL_MANAGER_FINALNOUID_REPORTED",
4626            AtomId::AtomCredentialManagerGetReported => "ATOM_CREDENTIAL_MANAGER_GET_REPORTED",
4627            AtomId::AtomCredentialManagerAuthClickReported => "ATOM_CREDENTIAL_MANAGER_AUTH_CLICK_REPORTED",
4628            AtomId::AtomCredentialManagerApiv2Called => "ATOM_CREDENTIAL_MANAGER_APIV2_CALLED",
4629            AtomId::AtomCronetEngineCreated => "ATOM_CRONET_ENGINE_CREATED",
4630            AtomId::AtomCronetTrafficReported => "ATOM_CRONET_TRAFFIC_REPORTED",
4631            AtomId::AtomCronetEngineBuilderInitialized => "ATOM_CRONET_ENGINE_BUILDER_INITIALIZED",
4632            AtomId::AtomCronetHttpFlagsInitialized => "ATOM_CRONET_HTTP_FLAGS_INITIALIZED",
4633            AtomId::AtomCronetInitialized => "ATOM_CRONET_INITIALIZED",
4634            AtomId::AtomDesktopModeUiChanged => "ATOM_DESKTOP_MODE_UI_CHANGED",
4635            AtomId::AtomDesktopModeSessionTaskUpdate => "ATOM_DESKTOP_MODE_SESSION_TASK_UPDATE",
4636            AtomId::AtomDesktopModeTaskSizeUpdated => "ATOM_DESKTOP_MODE_TASK_SIZE_UPDATED",
4637            AtomId::AtomDeviceLockCheckInRequestReported => "ATOM_DEVICE_LOCK_CHECK_IN_REQUEST_REPORTED",
4638            AtomId::AtomDeviceLockProvisioningCompleteReported => "ATOM_DEVICE_LOCK_PROVISIONING_COMPLETE_REPORTED",
4639            AtomId::AtomDeviceLockKioskAppRequestReported => "ATOM_DEVICE_LOCK_KIOSK_APP_REQUEST_REPORTED",
4640            AtomId::AtomDeviceLockCheckInRetryReported => "ATOM_DEVICE_LOCK_CHECK_IN_RETRY_REPORTED",
4641            AtomId::AtomDeviceLockProvisionFailureReported => "ATOM_DEVICE_LOCK_PROVISION_FAILURE_REPORTED",
4642            AtomId::AtomDeviceLockLockUnlockDeviceFailureReported => "ATOM_DEVICE_LOCK_LOCK_UNLOCK_DEVICE_FAILURE_REPORTED",
4643            AtomId::AtomDevicePolicyManagementMode => "ATOM_DEVICE_POLICY_MANAGEMENT_MODE",
4644            AtomId::AtomDevicePolicyState => "ATOM_DEVICE_POLICY_STATE",
4645            AtomId::AtomDisplayModeDirectorVoteChanged => "ATOM_DISPLAY_MODE_DIRECTOR_VOTE_CHANGED",
4646            AtomId::AtomExternalDisplayStateChanged => "ATOM_EXTERNAL_DISPLAY_STATE_CHANGED",
4647            AtomId::AtomDndStateChanged => "ATOM_DND_STATE_CHANGED",
4648            AtomId::AtomDreamSettingChanged => "ATOM_DREAM_SETTING_CHANGED",
4649            AtomId::AtomDreamSettingSnapshot => "ATOM_DREAM_SETTING_SNAPSHOT",
4650            AtomId::AtomExpressEventReported => "ATOM_EXPRESS_EVENT_REPORTED",
4651            AtomId::AtomExpressHistogramSampleReported => "ATOM_EXPRESS_HISTOGRAM_SAMPLE_REPORTED",
4652            AtomId::AtomExpressUidEventReported => "ATOM_EXPRESS_UID_EVENT_REPORTED",
4653            AtomId::AtomExpressUidHistogramSampleReported => "ATOM_EXPRESS_UID_HISTOGRAM_SAMPLE_REPORTED",
4654            AtomId::AtomFederatedComputeApiCalled => "ATOM_FEDERATED_COMPUTE_API_CALLED",
4655            AtomId::AtomFederatedComputeTrainingEventReported => "ATOM_FEDERATED_COMPUTE_TRAINING_EVENT_REPORTED",
4656            AtomId::AtomExampleIteratorNextLatencyReported => "ATOM_EXAMPLE_ITERATOR_NEXT_LATENCY_REPORTED",
4657            AtomId::AtomFullScreenIntentLaunched => "ATOM_FULL_SCREEN_INTENT_LAUNCHED",
4658            AtomId::AtomBalAllowed => "ATOM_BAL_ALLOWED",
4659            AtomId::AtomInTaskActivityStarted => "ATOM_IN_TASK_ACTIVITY_STARTED",
4660            AtomId::AtomDeviceOrientationChanged => "ATOM_DEVICE_ORIENTATION_CHANGED",
4661            AtomId::AtomCachedAppsHighWatermark => "ATOM_CACHED_APPS_HIGH_WATERMARK",
4662            AtomId::AtomStylusPredictionMetricsReported => "ATOM_STYLUS_PREDICTION_METRICS_REPORTED",
4663            AtomId::AtomUserRiskEventReported => "ATOM_USER_RISK_EVENT_REPORTED",
4664            AtomId::AtomMediaProjectionStateChanged => "ATOM_MEDIA_PROJECTION_STATE_CHANGED",
4665            AtomId::AtomMediaProjectionTargetChanged => "ATOM_MEDIA_PROJECTION_TARGET_CHANGED",
4666            AtomId::AtomExcessiveBinderProxyCountReported => "ATOM_EXCESSIVE_BINDER_PROXY_COUNT_REPORTED",
4667            AtomId::AtomProxyBytesTransferByFgBg => "ATOM_PROXY_BYTES_TRANSFER_BY_FG_BG",
4668            AtomId::AtomMobileBytesTransferByProcState => "ATOM_MOBILE_BYTES_TRANSFER_BY_PROC_STATE",
4669            AtomId::AtomBiometricFrrNotification => "ATOM_BIOMETRIC_FRR_NOTIFICATION",
4670            AtomId::AtomSensitiveContentMediaProjectionSession => "ATOM_SENSITIVE_CONTENT_MEDIA_PROJECTION_SESSION",
4671            AtomId::AtomSensitiveNotificationAppProtectionSession => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_SESSION",
4672            AtomId::AtomSensitiveNotificationAppProtectionApplied => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_APPLIED",
4673            AtomId::AtomSensitiveNotificationRedaction => "ATOM_SENSITIVE_NOTIFICATION_REDACTION",
4674            AtomId::AtomSensitiveContentAppProtection => "ATOM_SENSITIVE_CONTENT_APP_PROTECTION",
4675            AtomId::AtomAppRestrictionStateChanged => "ATOM_APP_RESTRICTION_STATE_CHANGED",
4676            AtomId::AtomBatteryUsageStatsPerUid => "ATOM_BATTERY_USAGE_STATS_PER_UID",
4677            AtomId::AtomPostgcMemorySnapshot => "ATOM_POSTGC_MEMORY_SNAPSHOT",
4678            AtomId::AtomPowerSaveTempAllowlistChanged => "ATOM_POWER_SAVE_TEMP_ALLOWLIST_CHANGED",
4679            AtomId::AtomAppOpAccessTracked => "ATOM_APP_OP_ACCESS_TRACKED",
4680            AtomId::AtomContentOrFileUriEventReported => "ATOM_CONTENT_OR_FILE_URI_EVENT_REPORTED",
4681            AtomId::AtomApplicationGrammaticalInflectionChanged => "ATOM_APPLICATION_GRAMMATICAL_INFLECTION_CHANGED",
4682            AtomId::AtomSystemGrammaticalInflectionChanged => "ATOM_SYSTEM_GRAMMATICAL_INFLECTION_CHANGED",
4683            AtomId::AtomBatteryHealth => "ATOM_BATTERY_HEALTH",
4684            AtomId::AtomHdmiEarcStatusReported => "ATOM_HDMI_EARC_STATUS_REPORTED",
4685            AtomId::AtomHdmiSoundbarModeStatusReported => "ATOM_HDMI_SOUNDBAR_MODE_STATUS_REPORTED",
4686            AtomId::AtomHealthConnectApiCalled => "ATOM_HEALTH_CONNECT_API_CALLED",
4687            AtomId::AtomHealthConnectUsageStats => "ATOM_HEALTH_CONNECT_USAGE_STATS",
4688            AtomId::AtomHealthConnectStorageStats => "ATOM_HEALTH_CONNECT_STORAGE_STATS",
4689            AtomId::AtomHealthConnectApiInvoked => "ATOM_HEALTH_CONNECT_API_INVOKED",
4690            AtomId::AtomExerciseRouteApiCalled => "ATOM_EXERCISE_ROUTE_API_CALLED",
4691            AtomId::AtomHealthConnectExportInvoked => "ATOM_HEALTH_CONNECT_EXPORT_INVOKED",
4692            AtomId::AtomHealthConnectImportInvoked => "ATOM_HEALTH_CONNECT_IMPORT_INVOKED",
4693            AtomId::AtomHealthConnectExportImportStatsReported => "ATOM_HEALTH_CONNECT_EXPORT_IMPORT_STATS_REPORTED",
4694            AtomId::AtomHealthConnectUiImpression => "ATOM_HEALTH_CONNECT_UI_IMPRESSION",
4695            AtomId::AtomHealthConnectUiInteraction => "ATOM_HEALTH_CONNECT_UI_INTERACTION",
4696            AtomId::AtomHealthConnectAppOpenedReported => "ATOM_HEALTH_CONNECT_APP_OPENED_REPORTED",
4697            AtomId::AtomHotwordEgressSizeAtomReported => "ATOM_HOTWORD_EGRESS_SIZE_ATOM_REPORTED",
4698            AtomId::AtomIkeSessionTerminated => "ATOM_IKE_SESSION_TERMINATED",
4699            AtomId::AtomIkeLivenessCheckSessionValidated => "ATOM_IKE_LIVENESS_CHECK_SESSION_VALIDATED",
4700            AtomId::AtomNegotiatedSecurityAssociation => "ATOM_NEGOTIATED_SECURITY_ASSOCIATION",
4701            AtomId::AtomKeyboardConfigured => "ATOM_KEYBOARD_CONFIGURED",
4702            AtomId::AtomKeyboardSystemsEventReported => "ATOM_KEYBOARD_SYSTEMS_EVENT_REPORTED",
4703            AtomId::AtomInputdeviceUsageReported => "ATOM_INPUTDEVICE_USAGE_REPORTED",
4704            AtomId::AtomInputEventLatencyReported => "ATOM_INPUT_EVENT_LATENCY_REPORTED",
4705            AtomId::AtomTouchpadUsage => "ATOM_TOUCHPAD_USAGE",
4706            AtomId::AtomKernelOomKillOccurred => "ATOM_KERNEL_OOM_KILL_OCCURRED",
4707            AtomId::AtomEmergencyStateChanged => "ATOM_EMERGENCY_STATE_CHANGED",
4708            AtomId::AtomChreSignificantMotionStateChanged => "ATOM_CHRE_SIGNIFICANT_MOTION_STATE_CHANGED",
4709            AtomId::AtomPopulationDensityProviderLoadingReported => "ATOM_POPULATION_DENSITY_PROVIDER_LOADING_REPORTED",
4710            AtomId::AtomDensityBasedCoarseLocationsUsageReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_USAGE_REPORTED",
4711            AtomId::AtomDensityBasedCoarseLocationsProviderQueryReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_PROVIDER_QUERY_REPORTED",
4712            AtomId::AtomMediaCodecReclaimRequestCompleted => "ATOM_MEDIA_CODEC_RECLAIM_REQUEST_COMPLETED",
4713            AtomId::AtomMediaCodecStarted => "ATOM_MEDIA_CODEC_STARTED",
4714            AtomId::AtomMediaCodecStopped => "ATOM_MEDIA_CODEC_STOPPED",
4715            AtomId::AtomMediaCodecRendered => "ATOM_MEDIA_CODEC_RENDERED",
4716            AtomId::AtomMediaEditingEndedReported => "ATOM_MEDIA_EDITING_ENDED_REPORTED",
4717            AtomId::AtomMteState => "ATOM_MTE_STATE",
4718            AtomId::AtomMicroxrDeviceBootCompleteReported => "ATOM_MICROXR_DEVICE_BOOT_COMPLETE_REPORTED",
4719            AtomId::AtomNfcObserveModeStateChanged => "ATOM_NFC_OBSERVE_MODE_STATE_CHANGED",
4720            AtomId::AtomNfcFieldChanged => "ATOM_NFC_FIELD_CHANGED",
4721            AtomId::AtomNfcPollingLoopNotificationReported => "ATOM_NFC_POLLING_LOOP_NOTIFICATION_REPORTED",
4722            AtomId::AtomNfcProprietaryCapabilitiesReported => "ATOM_NFC_PROPRIETARY_CAPABILITIES_REPORTED",
4723            AtomId::AtomOndevicepersonalizationApiCalled => "ATOM_ONDEVICEPERSONALIZATION_API_CALLED",
4724            AtomId::AtomComponentStateChangedReported => "ATOM_COMPONENT_STATE_CHANGED_REPORTED",
4725            AtomId::AtomPdfLoadReported => "ATOM_PDF_LOAD_REPORTED",
4726            AtomId::AtomPdfApiUsageReported => "ATOM_PDF_API_USAGE_REPORTED",
4727            AtomId::AtomPdfSearchReported => "ATOM_PDF_SEARCH_REPORTED",
4728            AtomId::AtomPressureStallInformation => "ATOM_PRESSURE_STALL_INFORMATION",
4729            AtomId::AtomPermissionRationaleDialogViewed => "ATOM_PERMISSION_RATIONALE_DIALOG_VIEWED",
4730            AtomId::AtomPermissionRationaleDialogActionReported => "ATOM_PERMISSION_RATIONALE_DIALOG_ACTION_REPORTED",
4731            AtomId::AtomAppDataSharingUpdatesNotificationInteraction => "ATOM_APP_DATA_SHARING_UPDATES_NOTIFICATION_INTERACTION",
4732            AtomId::AtomAppDataSharingUpdatesFragmentViewed => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_VIEWED",
4733            AtomId::AtomAppDataSharingUpdatesFragmentActionReported => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_ACTION_REPORTED",
4734            AtomId::AtomEnhancedConfirmationDialogResultReported => "ATOM_ENHANCED_CONFIRMATION_DIALOG_RESULT_REPORTED",
4735            AtomId::AtomEnhancedConfirmationRestrictionCleared => "ATOM_ENHANCED_CONFIRMATION_RESTRICTION_CLEARED",
4736            AtomId::AtomPhotopickerSessionInfoReported => "ATOM_PHOTOPICKER_SESSION_INFO_REPORTED",
4737            AtomId::AtomPhotopickerApiInfoReported => "ATOM_PHOTOPICKER_API_INFO_REPORTED",
4738            AtomId::AtomPhotopickerUiEventLogged => "ATOM_PHOTOPICKER_UI_EVENT_LOGGED",
4739            AtomId::AtomPhotopickerMediaItemStatusReported => "ATOM_PHOTOPICKER_MEDIA_ITEM_STATUS_REPORTED",
4740            AtomId::AtomPhotopickerPreviewInfoLogged => "ATOM_PHOTOPICKER_PREVIEW_INFO_LOGGED",
4741            AtomId::AtomPhotopickerMenuInteractionLogged => "ATOM_PHOTOPICKER_MENU_INTERACTION_LOGGED",
4742            AtomId::AtomPhotopickerBannerInteractionLogged => "ATOM_PHOTOPICKER_BANNER_INTERACTION_LOGGED",
4743            AtomId::AtomPhotopickerMediaLibraryInfoLogged => "ATOM_PHOTOPICKER_MEDIA_LIBRARY_INFO_LOGGED",
4744            AtomId::AtomPhotopickerPageInfoLogged => "ATOM_PHOTOPICKER_PAGE_INFO_LOGGED",
4745            AtomId::AtomPhotopickerMediaGridSyncInfoReported => "ATOM_PHOTOPICKER_MEDIA_GRID_SYNC_INFO_REPORTED",
4746            AtomId::AtomPhotopickerAlbumSyncInfoReported => "ATOM_PHOTOPICKER_ALBUM_SYNC_INFO_REPORTED",
4747            AtomId::AtomPhotopickerSearchInfoReported => "ATOM_PHOTOPICKER_SEARCH_INFO_REPORTED",
4748            AtomId::AtomSearchDataExtractionDetailsReported => "ATOM_SEARCH_DATA_EXTRACTION_DETAILS_REPORTED",
4749            AtomId::AtomEmbeddedPhotopickerInfoReported => "ATOM_EMBEDDED_PHOTOPICKER_INFO_REPORTED",
4750            AtomId::AtomAtom9999 => "ATOM_ATOM_9999",
4751            AtomId::AtomAtom99999 => "ATOM_ATOM_99999",
4752            AtomId::AtomScreenOffReported => "ATOM_SCREEN_OFF_REPORTED",
4753            AtomId::AtomScreenTimeoutOverrideReported => "ATOM_SCREEN_TIMEOUT_OVERRIDE_REPORTED",
4754            AtomId::AtomScreenInteractiveSessionReported => "ATOM_SCREEN_INTERACTIVE_SESSION_REPORTED",
4755            AtomId::AtomScreenDimReported => "ATOM_SCREEN_DIM_REPORTED",
4756            AtomId::AtomMediaProviderDatabaseRollbackReported => "ATOM_MEDIA_PROVIDER_DATABASE_ROLLBACK_REPORTED",
4757            AtomId::AtomBackupSetupStatusReported => "ATOM_BACKUP_SETUP_STATUS_REPORTED",
4758            AtomId::AtomRangingSessionConfigured => "ATOM_RANGING_SESSION_CONFIGURED",
4759            AtomId::AtomRangingSessionStarted => "ATOM_RANGING_SESSION_STARTED",
4760            AtomId::AtomRangingSessionClosed => "ATOM_RANGING_SESSION_CLOSED",
4761            AtomId::AtomRangingTechnologyStarted => "ATOM_RANGING_TECHNOLOGY_STARTED",
4762            AtomId::AtomRangingTechnologyStopped => "ATOM_RANGING_TECHNOLOGY_STOPPED",
4763            AtomId::AtomRkpdPoolStats => "ATOM_RKPD_POOL_STATS",
4764            AtomId::AtomRkpdClientOperation => "ATOM_RKPD_CLIENT_OPERATION",
4765            AtomId::AtomSandboxApiCalled => "ATOM_SANDBOX_API_CALLED",
4766            AtomId::AtomSandboxActivityEventOccurred => "ATOM_SANDBOX_ACTIVITY_EVENT_OCCURRED",
4767            AtomId::AtomSdkSandboxRestrictedAccessInSession => "ATOM_SDK_SANDBOX_RESTRICTED_ACCESS_IN_SESSION",
4768            AtomId::AtomSandboxSdkStorage => "ATOM_SANDBOX_SDK_STORAGE",
4769            AtomId::AtomSelinuxAuditLog => "ATOM_SELINUX_AUDIT_LOG",
4770            AtomId::AtomSettingsSpaReported => "ATOM_SETTINGS_SPA_REPORTED",
4771            AtomId::AtomTestExtensionAtomReported => "ATOM_TEST_EXTENSION_ATOM_REPORTED",
4772            AtomId::AtomTestRestrictedAtomReported => "ATOM_TEST_RESTRICTED_ATOM_REPORTED",
4773            AtomId::AtomStatsSocketLossReported => "ATOM_STATS_SOCKET_LOSS_REPORTED",
4774            AtomId::AtomLockscreenShortcutSelected => "ATOM_LOCKSCREEN_SHORTCUT_SELECTED",
4775            AtomId::AtomLockscreenShortcutTriggered => "ATOM_LOCKSCREEN_SHORTCUT_TRIGGERED",
4776            AtomId::AtomLauncherImpressionEventV2 => "ATOM_LAUNCHER_IMPRESSION_EVENT_V2",
4777            AtomId::AtomDisplaySwitchLatencyTracked => "ATOM_DISPLAY_SWITCH_LATENCY_TRACKED",
4778            AtomId::AtomNotificationListenerService => "ATOM_NOTIFICATION_LISTENER_SERVICE",
4779            AtomId::AtomNavHandleTouchPoints => "ATOM_NAV_HANDLE_TOUCH_POINTS",
4780            AtomId::AtomCommunalHubWidgetEventReported => "ATOM_COMMUNAL_HUB_WIDGET_EVENT_REPORTED",
4781            AtomId::AtomCommunalHubSnapshot => "ATOM_COMMUNAL_HUB_SNAPSHOT",
4782            AtomId::AtomEmergencyNumberDialed => "ATOM_EMERGENCY_NUMBER_DIALED",
4783            AtomId::AtomCallStats => "ATOM_CALL_STATS",
4784            AtomId::AtomCallAudioRouteStats => "ATOM_CALL_AUDIO_ROUTE_STATS",
4785            AtomId::AtomTelecomApiStats => "ATOM_TELECOM_API_STATS",
4786            AtomId::AtomTelecomErrorStats => "ATOM_TELECOM_ERROR_STATS",
4787            AtomId::AtomCellularRadioPowerStateChanged => "ATOM_CELLULAR_RADIO_POWER_STATE_CHANGED",
4788            AtomId::AtomEmergencyNumbersInfo => "ATOM_EMERGENCY_NUMBERS_INFO",
4789            AtomId::AtomDataNetworkValidation => "ATOM_DATA_NETWORK_VALIDATION",
4790            AtomId::AtomDataRatStateChanged => "ATOM_DATA_RAT_STATE_CHANGED",
4791            AtomId::AtomConnectedChannelChanged => "ATOM_CONNECTED_CHANNEL_CHANGED",
4792            AtomId::AtomIwlanUnderlyingNetworkValidationResultReported => "ATOM_IWLAN_UNDERLYING_NETWORK_VALIDATION_RESULT_REPORTED",
4793            AtomId::AtomQualifiedRatListChanged => "ATOM_QUALIFIED_RAT_LIST_CHANGED",
4794            AtomId::AtomQnsImsCallDropStats => "ATOM_QNS_IMS_CALL_DROP_STATS",
4795            AtomId::AtomQnsFallbackRestrictionChanged => "ATOM_QNS_FALLBACK_RESTRICTION_CHANGED",
4796            AtomId::AtomQnsRatPreferenceMismatchInfo => "ATOM_QNS_RAT_PREFERENCE_MISMATCH_INFO",
4797            AtomId::AtomQnsHandoverTimeMillis => "ATOM_QNS_HANDOVER_TIME_MILLIS",
4798            AtomId::AtomQnsHandoverPingpong => "ATOM_QNS_HANDOVER_PINGPONG",
4799            AtomId::AtomSatelliteController => "ATOM_SATELLITE_CONTROLLER",
4800            AtomId::AtomSatelliteSession => "ATOM_SATELLITE_SESSION",
4801            AtomId::AtomSatelliteIncomingDatagram => "ATOM_SATELLITE_INCOMING_DATAGRAM",
4802            AtomId::AtomSatelliteOutgoingDatagram => "ATOM_SATELLITE_OUTGOING_DATAGRAM",
4803            AtomId::AtomSatelliteProvision => "ATOM_SATELLITE_PROVISION",
4804            AtomId::AtomSatelliteSosMessageRecommender => "ATOM_SATELLITE_SOS_MESSAGE_RECOMMENDER",
4805            AtomId::AtomCarrierRoamingSatelliteSession => "ATOM_CARRIER_ROAMING_SATELLITE_SESSION",
4806            AtomId::AtomCarrierRoamingSatelliteControllerStats => "ATOM_CARRIER_ROAMING_SATELLITE_CONTROLLER_STATS",
4807            AtomId::AtomControllerStatsPerPackage => "ATOM_CONTROLLER_STATS_PER_PACKAGE",
4808            AtomId::AtomSatelliteEntitlement => "ATOM_SATELLITE_ENTITLEMENT",
4809            AtomId::AtomSatelliteConfigUpdater => "ATOM_SATELLITE_CONFIG_UPDATER",
4810            AtomId::AtomSatelliteAccessController => "ATOM_SATELLITE_ACCESS_CONTROLLER",
4811            AtomId::AtomCellularIdentifierDisclosed => "ATOM_CELLULAR_IDENTIFIER_DISCLOSED",
4812            AtomId::AtomThreadnetworkTelemetryDataReported => "ATOM_THREADNETWORK_TELEMETRY_DATA_REPORTED",
4813            AtomId::AtomThreadnetworkTopoEntryRepeated => "ATOM_THREADNETWORK_TOPO_ENTRY_REPEATED",
4814            AtomId::AtomThreadnetworkDeviceInfoReported => "ATOM_THREADNETWORK_DEVICE_INFO_REPORTED",
4815            AtomId::AtomBootIntegrityInfoReported => "ATOM_BOOT_INTEGRITY_INFO_REPORTED",
4816            AtomId::AtomTvLowPowerStandbyPolicy => "ATOM_TV_LOW_POWER_STANDBY_POLICY",
4817            AtomId::AtomExternalTvInputEvent => "ATOM_EXTERNAL_TV_INPUT_EVENT",
4818            AtomId::AtomTestUprobestatsAtomReported => "ATOM_TEST_UPROBESTATS_ATOM_REPORTED",
4819            AtomId::AtomUwbActivityInfo => "ATOM_UWB_ACTIVITY_INFO",
4820            AtomId::AtomMediatorUpdated => "ATOM_MEDIATOR_UPDATED",
4821            AtomId::AtomSysproxyBluetoothBytesTransfer => "ATOM_SYSPROXY_BLUETOOTH_BYTES_TRANSFER",
4822            AtomId::AtomSysproxyConnectionUpdated => "ATOM_SYSPROXY_CONNECTION_UPDATED",
4823            AtomId::AtomWearCompanionConnectionState => "ATOM_WEAR_COMPANION_CONNECTION_STATE",
4824            AtomId::AtomMediaActionReported => "ATOM_MEDIA_ACTION_REPORTED",
4825            AtomId::AtomMediaControlsLaunched => "ATOM_MEDIA_CONTROLS_LAUNCHED",
4826            AtomId::AtomMediaSessionStateChanged => "ATOM_MEDIA_SESSION_STATE_CHANGED",
4827            AtomId::AtomWearMediaOutputSwitcherDeviceScanApiLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_API_LATENCY",
4828            AtomId::AtomWearMediaOutputSwitcherSassDeviceUnavailable => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_SASS_DEVICE_UNAVAILABLE",
4829            AtomId::AtomWearMediaOutputSwitcherFastpairApiTimeout => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FASTPAIR_API_TIMEOUT",
4830            AtomId::AtomWearModeStateChanged => "ATOM_WEAR_MODE_STATE_CHANGED",
4831            AtomId::AtomRendererInitialized => "ATOM_RENDERER_INITIALIZED",
4832            AtomId::AtomSchemaVersionReceived => "ATOM_SCHEMA_VERSION_RECEIVED",
4833            AtomId::AtomLayoutInspected => "ATOM_LAYOUT_INSPECTED",
4834            AtomId::AtomLayoutExpressionInspected => "ATOM_LAYOUT_EXPRESSION_INSPECTED",
4835            AtomId::AtomLayoutAnimationsInspected => "ATOM_LAYOUT_ANIMATIONS_INSPECTED",
4836            AtomId::AtomMaterialComponentsInspected => "ATOM_MATERIAL_COMPONENTS_INSPECTED",
4837            AtomId::AtomTileRequested => "ATOM_TILE_REQUESTED",
4838            AtomId::AtomStateResponseReceived => "ATOM_STATE_RESPONSE_RECEIVED",
4839            AtomId::AtomTileResponseReceived => "ATOM_TILE_RESPONSE_RECEIVED",
4840            AtomId::AtomInflationFinished => "ATOM_INFLATION_FINISHED",
4841            AtomId::AtomInflationFailed => "ATOM_INFLATION_FAILED",
4842            AtomId::AtomIgnoredInflationFailuresReported => "ATOM_IGNORED_INFLATION_FAILURES_REPORTED",
4843            AtomId::AtomDrawableRendered => "ATOM_DRAWABLE_RENDERED",
4844            AtomId::AtomWearTimeSyncRequested => "ATOM_WEAR_TIME_SYNC_REQUESTED",
4845            AtomId::AtomWearTimeUpdateStarted => "ATOM_WEAR_TIME_UPDATE_STARTED",
4846            AtomId::AtomWearTimeSyncAttemptCompleted => "ATOM_WEAR_TIME_SYNC_ATTEMPT_COMPLETED",
4847            AtomId::AtomWearTimeChanged => "ATOM_WEAR_TIME_CHANGED",
4848            AtomId::AtomWearAdaptiveSuspendStatsReported => "ATOM_WEAR_ADAPTIVE_SUSPEND_STATS_REPORTED",
4849            AtomId::AtomWearPowerAnomalyServiceOperationalStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_OPERATIONAL_STATS_REPORTED",
4850            AtomId::AtomWearPowerAnomalyServiceEventStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_EVENT_STATS_REPORTED",
4851            AtomId::AtomWsWearTimeSession => "ATOM_WS_WEAR_TIME_SESSION",
4852            AtomId::AtomWsIncomingCallActionReported => "ATOM_WS_INCOMING_CALL_ACTION_REPORTED",
4853            AtomId::AtomWsCallDisconnectionReported => "ATOM_WS_CALL_DISCONNECTION_REPORTED",
4854            AtomId::AtomWsCallDurationReported => "ATOM_WS_CALL_DURATION_REPORTED",
4855            AtomId::AtomWsCallUserExperienceLatencyReported => "ATOM_WS_CALL_USER_EXPERIENCE_LATENCY_REPORTED",
4856            AtomId::AtomWsCallInteractionReported => "ATOM_WS_CALL_INTERACTION_REPORTED",
4857            AtomId::AtomWsOnBodyStateChanged => "ATOM_WS_ON_BODY_STATE_CHANGED",
4858            AtomId::AtomWsWatchFaceRestrictedComplicationsImpacted => "ATOM_WS_WATCH_FACE_RESTRICTED_COMPLICATIONS_IMPACTED",
4859            AtomId::AtomWsWatchFaceDefaultRestrictedComplicationsRemoved => "ATOM_WS_WATCH_FACE_DEFAULT_RESTRICTED_COMPLICATIONS_REMOVED",
4860            AtomId::AtomWsComplicationsImpactedNotificationEventReported => "ATOM_WS_COMPLICATIONS_IMPACTED_NOTIFICATION_EVENT_REPORTED",
4861            AtomId::AtomWsRemoteEventUsageReported => "ATOM_WS_REMOTE_EVENT_USAGE_REPORTED",
4862            AtomId::AtomWsBugreportRequested => "ATOM_WS_BUGREPORT_REQUESTED",
4863            AtomId::AtomWsBugreportTriggered => "ATOM_WS_BUGREPORT_TRIGGERED",
4864            AtomId::AtomWsBugreportFinished => "ATOM_WS_BUGREPORT_FINISHED",
4865            AtomId::AtomWsBugreportResultReceived => "ATOM_WS_BUGREPORT_RESULT_RECEIVED",
4866            AtomId::AtomWsStandaloneModeSnapshot => "ATOM_WS_STANDALONE_MODE_SNAPSHOT",
4867            AtomId::AtomWsFavoriteWatchFaceSnapshot => "ATOM_WS_FAVORITE_WATCH_FACE_SNAPSHOT",
4868            AtomId::AtomWsPhotosWatchFaceFeatureSnapshot => "ATOM_WS_PHOTOS_WATCH_FACE_FEATURE_SNAPSHOT",
4869            AtomId::AtomWsWatchFaceCustomizationSnapshot => "ATOM_WS_WATCH_FACE_CUSTOMIZATION_SNAPSHOT",
4870            AtomId::AtomWearPowerMenuOpened => "ATOM_WEAR_POWER_MENU_OPENED",
4871            AtomId::AtomWearAssistantOpened => "ATOM_WEAR_ASSISTANT_OPENED",
4872            AtomId::AtomFirstOverlayStateChanged => "ATOM_FIRST_OVERLAY_STATE_CHANGED",
4873            AtomId::AtomWifiAwareNdpReported => "ATOM_WIFI_AWARE_NDP_REPORTED",
4874            AtomId::AtomWifiAwareAttachReported => "ATOM_WIFI_AWARE_ATTACH_REPORTED",
4875            AtomId::AtomWifiSelfRecoveryTriggered => "ATOM_WIFI_SELF_RECOVERY_TRIGGERED",
4876            AtomId::AtomSoftApStarted => "ATOM_SOFT_AP_STARTED",
4877            AtomId::AtomSoftApStopped => "ATOM_SOFT_AP_STOPPED",
4878            AtomId::AtomWifiLockReleased => "ATOM_WIFI_LOCK_RELEASED",
4879            AtomId::AtomWifiLockDeactivated => "ATOM_WIFI_LOCK_DEACTIVATED",
4880            AtomId::AtomWifiConfigSaved => "ATOM_WIFI_CONFIG_SAVED",
4881            AtomId::AtomWifiAwareResourceUsingChanged => "ATOM_WIFI_AWARE_RESOURCE_USING_CHANGED",
4882            AtomId::AtomWifiAwareHalApiCalled => "ATOM_WIFI_AWARE_HAL_API_CALLED",
4883            AtomId::AtomWifiLocalOnlyRequestReceived => "ATOM_WIFI_LOCAL_ONLY_REQUEST_RECEIVED",
4884            AtomId::AtomWifiLocalOnlyRequestScanTriggered => "ATOM_WIFI_LOCAL_ONLY_REQUEST_SCAN_TRIGGERED",
4885            AtomId::AtomWifiThreadTaskExecuted => "ATOM_WIFI_THREAD_TASK_EXECUTED",
4886            AtomId::AtomWifiStateChanged => "ATOM_WIFI_STATE_CHANGED",
4887            AtomId::AtomPnoScanStarted => "ATOM_PNO_SCAN_STARTED",
4888            AtomId::AtomPnoScanStopped => "ATOM_PNO_SCAN_STOPPED",
4889            AtomId::AtomWifiIsUnusableReported => "ATOM_WIFI_IS_UNUSABLE_REPORTED",
4890            AtomId::AtomWifiApCapabilitiesReported => "ATOM_WIFI_AP_CAPABILITIES_REPORTED",
4891            AtomId::AtomSoftApStateChanged => "ATOM_SOFT_AP_STATE_CHANGED",
4892            AtomId::AtomScorerPredictionResultReported => "ATOM_SCORER_PREDICTION_RESULT_REPORTED",
4893            AtomId::AtomWifiAwareCapabilities => "ATOM_WIFI_AWARE_CAPABILITIES",
4894            AtomId::AtomWifiModuleInfo => "ATOM_WIFI_MODULE_INFO",
4895            AtomId::AtomWifiSettingInfo => "ATOM_WIFI_SETTING_INFO",
4896            AtomId::AtomWifiComplexSettingInfo => "ATOM_WIFI_COMPLEX_SETTING_INFO",
4897            AtomId::AtomWifiConfiguredNetworkInfo => "ATOM_WIFI_CONFIGURED_NETWORK_INFO",
4898        }
4899    }
4900}
4901/// This file is named 'statsd_tracing_config.proto' rather than
4902/// 'statsd_config.proto' (which would be more consistent with the other
4903/// config protos) so it doesn't show up and confuse folks looking for
4904/// the existing statsd_config.proto for configuring statsd itself.
4905/// Same for the config proto itself.
4906#[derive(Clone, PartialEq, ::prost::Message)]
4907pub struct StatsdTracingConfig {
4908    /// This is for the common case of the atom id being known in the enum AtomId.
4909    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
4910    pub push_atom_id: ::prost::alloc::vec::Vec<i32>,
4911    /// Escape hatch for Atom IDs that are not yet in the AtomId enum
4912    /// (e.g. non-upstream atoms that don't exist in AOSP).
4913    #[prost(int32, repeated, packed="false", tag="2")]
4914    pub raw_push_atom_id: ::prost::alloc::vec::Vec<i32>,
4915    #[prost(message, repeated, tag="3")]
4916    pub pull_config: ::prost::alloc::vec::Vec<StatsdPullAtomConfig>,
4917}
4918#[derive(Clone, PartialEq, ::prost::Message)]
4919pub struct StatsdPullAtomConfig {
4920    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
4921    pub pull_atom_id: ::prost::alloc::vec::Vec<i32>,
4922    #[prost(int32, repeated, packed="false", tag="2")]
4923    pub raw_pull_atom_id: ::prost::alloc::vec::Vec<i32>,
4924    #[prost(int32, optional, tag="3")]
4925    pub pull_frequency_ms: ::core::option::Option<i32>,
4926    #[prost(string, repeated, tag="4")]
4927    pub packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4928}
4929/// Configuration that allows to boost the priority of the 'traced' or
4930/// 'traced_probs' processes, by changing the scheduler configuration.
4931/// Only supported on Linux and Android the boosted process must have
4932/// 'CAP_SYS_NICE' capability.
4933#[derive(Clone, PartialEq, ::prost::Message)]
4934pub struct PriorityBoostConfig {
4935    #[prost(enumeration="priority_boost_config::BoostPolicy", optional, tag="1")]
4936    pub policy: ::core::option::Option<i32>,
4937    #[prost(uint32, optional, tag="2")]
4938    pub priority: ::core::option::Option<u32>,
4939}
4940/// Nested message and enum types in `PriorityBoostConfig`.
4941pub mod priority_boost_config {
4942    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
4943    #[repr(i32)]
4944    pub enum BoostPolicy {
4945        PolicyUnspecified = 0,
4946        /// The default policy (e.g., CFS on Linux). Priority range: [0; 20]
4947        /// priority is interpreted as -(nice), i.e., 1 is slightly higher prio
4948        /// than default 0, 20 is the highest priority.
4949        /// Note: this is the opposite semantic of the cmdline nice, and is done for
4950        /// consistency with POLICY_SCHED_FIFO, so higher number == higher prio.
4951        PolicySchedOther = 1,
4952        /// The Real-time policy, Priority range: [1; 99]
4953        PolicySchedFifo = 2,
4954    }
4955    impl BoostPolicy {
4956        /// String value of the enum field names used in the ProtoBuf definition.
4957        ///
4958        /// The values are not transformed in any way and thus are considered stable
4959        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
4960        pub fn as_str_name(&self) -> &'static str {
4961            match self {
4962                BoostPolicy::PolicyUnspecified => "POLICY_UNSPECIFIED",
4963                BoostPolicy::PolicySchedOther => "POLICY_SCHED_OTHER",
4964                BoostPolicy::PolicySchedFifo => "POLICY_SCHED_FIFO",
4965            }
4966        }
4967    }
4968}
4969/// Config for polling process-related information from /proc/pid/status and
4970/// related files on Linux.
4971///
4972/// Data source name: "linux.process_stats".
4973#[derive(Clone, PartialEq, ::prost::Message)]
4974pub struct ProcessStatsConfig {
4975    #[prost(enumeration="process_stats_config::Quirks", repeated, packed="false", tag="1")]
4976    pub quirks: ::prost::alloc::vec::Vec<i32>,
4977    /// If enabled all processes will be scanned and dumped when the trace starts.
4978    #[prost(bool, optional, tag="2")]
4979    pub scan_all_processes_on_start: ::core::option::Option<bool>,
4980    /// If enabled thread names are also recoded (this is redundant if sched_switch
4981    /// is enabled).
4982    #[prost(bool, optional, tag="3")]
4983    pub record_thread_names: ::core::option::Option<bool>,
4984    /// If > 0 samples counters (see process_stats.proto) from
4985    /// /proc/pid/status and oom_score_adj every X ms.
4986    /// This is required to be > 100ms to avoid excessive CPU usage.
4987    #[prost(uint32, optional, tag="4")]
4988    pub proc_stats_poll_ms: ::core::option::Option<u32>,
4989    // id 5 never used
4990
4991    /// Explicit caching period during which the polling won't re-emit identical
4992    /// counter values. This is required to be either = 0 or a multiple of
4993    /// |proc_stats_poll_ms| (default: |proc_stats_poll_ms|). Non-multiples will be
4994    /// rounded down to the nearest multiple.
4995    #[prost(uint32, optional, tag="6")]
4996    pub proc_stats_cache_ttl_ms: ::core::option::Option<u32>,
4997    /// If true and |proc_stats_poll_ms| is set, sample memory stats from
4998    /// /proc/pid/smaps_rollup.
4999    ///
5000    /// Android: does NOT work with the system daemons by default, as it requires
5001    /// running the recording process (traced_probes or tracebox) as root. It is
5002    /// possible to avoid the root requirement, but the exact steps depend on the
5003    /// Linux distibution. The proc file requires passing a PTRACE_MODE_READ
5004    /// check, and might be further covered by the procfs "hidepid" mount option.
5005    #[prost(bool, optional, tag="10")]
5006    pub scan_smaps_rollup: ::core::option::Option<bool>,
5007    /// If true: process descriptions will include process age (starttime in
5008    /// /proc/pid/stat).
5009    /// Introduced in: perfetto v44.
5010    #[prost(bool, optional, tag="11")]
5011    pub record_process_age: ::core::option::Option<bool>,
5012    /// If true and |proc_stats_poll_ms| is set, process stats will include time
5013    /// spent running in user/kernel mode (utime/stime in /proc/pid/stat).
5014    /// Introduced in: perfetto v44.
5015    #[prost(bool, optional, tag="12")]
5016    pub record_process_runtime: ::core::option::Option<bool>,
5017    /// If true obtain per-process dmabuf resident set size from
5018    /// /proc/pid/dmabuf_rss.
5019    /// This feature is not in upstream linux, and is available only on some
5020    /// Android kernels.
5021    #[prost(bool, optional, tag="13")]
5022    pub record_process_dmabuf_rss: ::core::option::Option<bool>,
5023    /// WARNING: unmaintained and deprecated. If true this will resolve file
5024    /// descriptors for each process so these can be mapped to their actual device
5025    /// or file. Requires raw_syscalls/sys_{enter,exit} ftrace events to be enabled
5026    /// or new fds opened after initially scanning a process will not be
5027    /// recognized.
5028    #[prost(bool, optional, tag="9")]
5029    pub resolve_process_fds: ::core::option::Option<bool>,
5030}
5031/// Nested message and enum types in `ProcessStatsConfig`.
5032pub mod process_stats_config {
5033    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5034    #[repr(i32)]
5035    pub enum Quirks {
5036        Unspecified = 0,
5037        /// This has been deprecated and ignored as per 2018-05-01. Full scan at
5038        /// startup is now disabled by default and can be re-enabled using the
5039        /// |scan_all_processes_on_start| arg.
5040        DisableInitialDump = 1,
5041        /// If set, disables the special interaction with "linux.ftrace" data source,
5042        /// where the process stats rescrapes any thread id seen in the ftrace
5043        /// stream.
5044        DisableOnDemand = 2,
5045    }
5046    impl Quirks {
5047        /// String value of the enum field names used in the ProtoBuf definition.
5048        ///
5049        /// The values are not transformed in any way and thus are considered stable
5050        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5051        pub fn as_str_name(&self) -> &'static str {
5052            match self {
5053                Quirks::Unspecified => "QUIRKS_UNSPECIFIED",
5054                Quirks::DisableInitialDump => "DISABLE_INITIAL_DUMP",
5055                Quirks::DisableOnDemand => "DISABLE_ON_DEMAND",
5056            }
5057        }
5058    }
5059}
5060/// Configuration for go/heapprofd.
5061/// Next id: 28
5062#[derive(Clone, PartialEq, ::prost::Message)]
5063pub struct HeapprofdConfig {
5064    /// Sampling rate for all heaps not specified via heap_sampling_intervals.
5065    ///
5066    /// These are:
5067    /// * All heaps if heap_sampling_intervals is empty.
5068    /// * Those profiled due to all_heaps and not named in heaps if
5069    ///    heap_sampling_intervals is not empty.
5070    /// * The implicit libc.malloc heap if heaps is empty.
5071    ///
5072    /// Set to 1 for perfect accuracy.
5073    /// Otherwise, sample every sample_interval_bytes on average.
5074    ///
5075    /// See
5076    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#sampling-interval>
5077    /// for more details.
5078    ///
5079    /// BUGS
5080    /// Before Android 12, setting this to 0 would crash the target process.
5081    ///
5082    /// N.B. This must be explicitly set to a non-zero value for all heaps (with
5083    /// this field or with heap_sampling_intervals), otherwise the producer will
5084    /// not start.
5085    #[prost(uint64, optional, tag="1")]
5086    pub sampling_interval_bytes: ::core::option::Option<u64>,
5087    /// If less than the given numbers of bytes are left free in the shared
5088    /// memory buffer, increase sampling interval by a factor of two.
5089    /// Adaptive sampling is disabled when set to 0.
5090    #[prost(uint64, optional, tag="24")]
5091    pub adaptive_sampling_shmem_threshold: ::core::option::Option<u64>,
5092    /// Stop doubling the sampling_interval once the sampling interval has reached
5093    /// this value.
5094    #[prost(uint64, optional, tag="25")]
5095    pub adaptive_sampling_max_sampling_interval_bytes: ::core::option::Option<u64>,
5096    /// E.g. surfaceflinger, com.android.phone
5097    /// This input is normalized in the following way: if it contains slashes,
5098    /// everything up to the last slash is discarded. If it contains "@",
5099    /// everything after the first @ is discared.
5100    /// E.g. /system/bin/surfaceflinger@1.0 normalizes to surfaceflinger.
5101    /// This transformation is also applied to the processes' command lines when
5102    /// matching.
5103    #[prost(string, repeated, tag="2")]
5104    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5105    /// For watermark based triggering or local debugging.
5106    #[prost(uint64, repeated, packed="false", tag="4")]
5107    pub pid: ::prost::alloc::vec::Vec<u64>,
5108    /// Only profile target if it was installed by one of the packages given.
5109    /// Special values are:
5110    /// * @system: installed on the system partition
5111    /// * @product: installed on the product partition
5112    /// * @null: sideloaded
5113    /// Supported on Android 12+.
5114    #[prost(string, repeated, tag="26")]
5115    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5116    /// Which heaps to sample, e.g. "libc.malloc". If left empty, only samples
5117    /// "malloc".
5118    ///
5119    /// Introduced in Android 12.
5120    #[prost(string, repeated, tag="20")]
5121    pub heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5122    /// Which heaps not to sample, e.g. "libc.malloc". This is useful when used in
5123    /// combination with all_heaps;
5124    ///
5125    /// Introduced in Android 12.
5126    #[prost(string, repeated, tag="27")]
5127    pub exclude_heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5128    #[prost(bool, optional, tag="23")]
5129    pub stream_allocations: ::core::option::Option<bool>,
5130    /// If given, needs to be the same length as heaps and gives the sampling
5131    /// interval for the respective entry in heaps.
5132    ///
5133    /// Otherwise, sampling_interval_bytes is used.
5134    ///
5135    /// It is recommended to set sampling_interval_bytes to a reasonable default
5136    /// value when using this, as a value of 0 for sampling_interval_bytes will
5137    /// crash the target process before Android 12.
5138    ///
5139    /// Introduced in Android 12.
5140    ///
5141    /// All values must be non-zero or the producer will not start.
5142    #[prost(uint64, repeated, packed="false", tag="22")]
5143    pub heap_sampling_intervals: ::prost::alloc::vec::Vec<u64>,
5144    /// Sample all heaps registered by target process. Introduced in Android 12.
5145    #[prost(bool, optional, tag="21")]
5146    pub all_heaps: ::core::option::Option<bool>,
5147    /// Profile all processes eligible for profiling on the system.
5148    /// See
5149    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#heapprofd-targets>
5150    /// for which processes are eligible.
5151    ///
5152    /// On unmodified userdebug builds, this will lead to system crashes. Zygote
5153    /// will crash when trying to launch a new process as it will have an
5154    /// unexpected open socket to heapprofd.
5155    ///
5156    /// heapprofd will likely be overloaded by the amount of data for low
5157    /// sampling intervals.
5158    #[prost(bool, optional, tag="5")]
5159    pub all: ::core::option::Option<bool>,
5160    /// Do not profile processes whose anon RSS + swap < given value.
5161    /// Introduced in Android 11.
5162    #[prost(uint32, optional, tag="15")]
5163    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
5164    /// Stop profile if heapprofd memory usage goes beyond the given value.
5165    /// Introduced in Android 11.
5166    #[prost(uint32, optional, tag="16")]
5167    pub max_heapprofd_memory_kb: ::core::option::Option<u32>,
5168    /// Stop profile if heapprofd CPU time since start of this data-source
5169    /// goes beyond given value.
5170    /// Introduced in Android 11.
5171    #[prost(uint64, optional, tag="17")]
5172    pub max_heapprofd_cpu_secs: ::core::option::Option<u64>,
5173    /// Do not emit function names for mappings starting with this prefix.
5174    /// E.g. /system to not emit symbols for any system libraries.
5175    #[prost(string, repeated, tag="7")]
5176    pub skip_symbol_prefix: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5177    /// Dump at a predefined interval.
5178    #[prost(message, optional, tag="6")]
5179    pub continuous_dump_config: ::core::option::Option<heapprofd_config::ContinuousDumpConfig>,
5180    /// Size of the shared memory buffer between the profiled processes and
5181    /// heapprofd. Defaults to 8 MiB. If larger than 500 MiB, truncated to 500
5182    /// MiB.
5183    ///
5184    /// Needs to be:
5185    /// * at least 8192,
5186    /// * a power of two,
5187    /// * a multiple of 4096.
5188    #[prost(uint64, optional, tag="8")]
5189    pub shmem_size_bytes: ::core::option::Option<u64>,
5190    /// When the shmem buffer is full, block the client instead of ending the
5191    /// trace. Use with caution as this will significantly slow down the target
5192    /// process.
5193    #[prost(bool, optional, tag="9")]
5194    pub block_client: ::core::option::Option<bool>,
5195    /// If set, stop the trace session after blocking the client for this
5196    /// timeout. Needs to be larger than 100 us, otherwise no retries are done.
5197    /// Introduced in Android 11.
5198    #[prost(uint32, optional, tag="14")]
5199    pub block_client_timeout_us: ::core::option::Option<u32>,
5200    /// Do not profile processes from startup, only match already running
5201    /// processes.
5202    ///
5203    /// Can not be set at the same time as no_running.
5204    /// Introduced in Android 11.
5205    #[prost(bool, optional, tag="10")]
5206    pub no_startup: ::core::option::Option<bool>,
5207    /// Do not profile running processes. Only match processes on startup.
5208    ///
5209    /// Can not be set at the same time as no_startup.
5210    /// Introduced in Android 11.
5211    #[prost(bool, optional, tag="11")]
5212    pub no_running: ::core::option::Option<bool>,
5213    /// Cause heapprofd to emit a single dump at the end, showing the memory usage
5214    /// at the point in time when the sampled heap usage of the process was at its
5215    /// maximum. This causes ProfilePacket.HeapSample.self_max to be set, and
5216    /// self_allocated and self_freed to not be set.
5217    /// Introduced in Android 11.
5218    #[prost(bool, optional, tag="13")]
5219    pub dump_at_max: ::core::option::Option<bool>,
5220    // FEATURE FLAGS. THERE BE DRAGONS.
5221
5222    /// Escape hatch if the session is being torn down because of a forked child
5223    /// that shares memory space, but is not correctly identified as a vforked
5224    /// child.
5225    /// Introduced in Android 11.
5226    #[prost(bool, optional, tag="18")]
5227    pub disable_fork_teardown: ::core::option::Option<bool>,
5228    /// We try to automatically detect when a target applicatation vforks but then
5229    /// does a memory allocation (or free). This auto-detection can be disabled
5230    /// with this.
5231    /// Introduced in Android 11.
5232    #[prost(bool, optional, tag="19")]
5233    pub disable_vfork_detection: ::core::option::Option<bool>,
5234}
5235/// Nested message and enum types in `HeapprofdConfig`.
5236pub mod heapprofd_config {
5237    #[derive(Clone, PartialEq, ::prost::Message)]
5238    pub struct ContinuousDumpConfig {
5239        /// ms to wait before first dump.
5240        #[prost(uint32, optional, tag="5")]
5241        pub dump_phase_ms: ::core::option::Option<u32>,
5242        /// ms to wait between following dumps.
5243        #[prost(uint32, optional, tag="6")]
5244        pub dump_interval_ms: ::core::option::Option<u32>,
5245    }
5246}
5247/// Configuration for managed app heap graph snapshots.
5248#[derive(Clone, PartialEq, ::prost::Message)]
5249pub struct JavaHprofConfig {
5250    /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
5251    /// comm string). The semantics of this field were changed since its original
5252    /// introduction.
5253    ///
5254    /// On Android T+ (13+), this field can specify a single wildcard (*), and
5255    /// the profiler will attempt to match it in two possible ways:
5256    /// * if the pattern starts with a '/', then it is matched against the first
5257    ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
5258    ///    "/bin/echo".
5259    /// * otherwise the pattern is matched against the part of argv0
5260    ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
5261    ///    For example "echo" would match "/bin/echo".
5262    ///
5263    /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
5264    /// normalized prior to an exact string comparison. Normalization is as
5265    /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
5266    /// the string contains forward slashes, trim everything up to and including
5267    /// the last one.
5268    ///
5269    /// Implementation note: in either case, at most 511 characters of cmdline
5270    /// are considered.
5271    #[prost(string, repeated, tag="1")]
5272    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5273    /// For watermark based triggering or local debugging.
5274    #[prost(uint64, repeated, packed="false", tag="2")]
5275    pub pid: ::prost::alloc::vec::Vec<u64>,
5276    /// Only profile target if it was installed by one of the packages given.
5277    /// Special values are:
5278    /// * @system: installed on the system partition
5279    /// * @product: installed on the product partition
5280    /// * @null: sideloaded
5281    /// Supported on Android 12+.
5282    #[prost(string, repeated, tag="7")]
5283    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5284    /// Dump at a predefined interval.
5285    #[prost(message, optional, tag="3")]
5286    pub continuous_dump_config: ::core::option::Option<java_hprof_config::ContinuousDumpConfig>,
5287    /// Do not profile processes whose anon RSS + swap < given value.
5288    #[prost(uint32, optional, tag="4")]
5289    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
5290    /// Include the process' /proc/self/smaps.
5291    /// This only shows maps that:
5292    /// * start with /system
5293    /// * start with /vendor
5294    /// * start with /data/app
5295    /// * contain "extracted in memory from Y", where Y matches any of the above
5296    #[prost(bool, optional, tag="5")]
5297    pub dump_smaps: ::core::option::Option<bool>,
5298    /// Exclude objects of the following types from the profile. This can be
5299    /// useful if lots of uninteresting objects, e.g. "sun.misc.Cleaner".
5300    #[prost(string, repeated, tag="6")]
5301    pub ignored_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5302}
5303/// Nested message and enum types in `JavaHprofConfig`.
5304pub mod java_hprof_config {
5305    /// If dump_interval_ms != 0, the following configuration is used.
5306    #[derive(Clone, PartialEq, ::prost::Message)]
5307    pub struct ContinuousDumpConfig {
5308        /// ms to wait before first continuous dump.
5309        /// A dump is always created at the beginning of the trace.
5310        #[prost(uint32, optional, tag="1")]
5311        pub dump_phase_ms: ::core::option::Option<u32>,
5312        /// ms to wait between following dumps.
5313        #[prost(uint32, optional, tag="2")]
5314        pub dump_interval_ms: ::core::option::Option<u32>,
5315        /// If true, scans all the processes to find `process_cmdline` and filter by
5316        /// `min_anonymous_memory_kb` only at data source start. Default on Android
5317        /// S-.
5318        ///
5319        /// If false, rescans all the processes to find on every dump. Default on
5320        /// Android T+.
5321        #[prost(bool, optional, tag="3")]
5322        pub scan_pids_only_on_start: ::core::option::Option<bool>,
5323    }
5324}
5325#[derive(Clone, PartialEq, ::prost::Message)]
5326pub struct PerfEvents {
5327}
5328/// Nested message and enum types in `PerfEvents`.
5329pub mod perf_events {
5330    /// The primary event to count. If recording multiple events, this
5331    /// counter is the "group leader".
5332    /// Commented from the perspective of its use in |PerfEventConfig|.
5333    /// Next id: 13
5334    #[derive(Clone, PartialEq, ::prost::Message)]
5335    pub struct Timebase {
5336        /// Optional modifiers for the event. Modelled after the perftool's
5337        /// <https://man7.org/linux/man-pages/man1/perf-list.1.html#EVENT_MODIFIERS>
5338        /// Currently supported: count scoping such as :u, :k, :uk, ...
5339        /// Modifiers can differ between the timebase and followers.
5340        #[prost(enumeration="EventModifier", repeated, packed="false", tag="12")]
5341        pub modifiers: ::prost::alloc::vec::Vec<i32>,
5342        /// If set, samples will be timestamped with the given clock.
5343        /// If unset, the clock is chosen by the implementation.
5344        /// For software events, prefer PERF_CLOCK_BOOTTIME. However it cannot be
5345        /// used for hardware events (due to interrupt safety), for which the
5346        /// recommendation is to use one of the monotonic clocks.
5347        #[prost(enumeration="PerfClock", optional, tag="11")]
5348        pub timestamp_clock: ::core::option::Option<i32>,
5349        /// Optional arbitrary name for the event, to identify it in the parsed
5350        /// trace. Does *not* affect the profiling itself. If unset, the trace
5351        /// parser will choose a suitable name.
5352        #[prost(string, optional, tag="10")]
5353        pub name: ::core::option::Option<::prost::alloc::string::String>,
5354        /// How often to snapshot the counter, along with any follower events and
5355        /// any additional sampled data such as callstacks.
5356        ///
5357        /// This choice also controls how the readings are taken:
5358        /// * With |frequency| or |period|, samples are taken by the kernel
5359        ///    into a ring buffer. Analogous to `perf record`.
5360        /// * With |poll_period_ms|, the userspace periodically snapshots
5361        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5362        /// Prefer the sampling options unless you're recording PMUs whose
5363        /// perf drivers only support the reading mode.
5364        ///
5365        /// If unset, an implementation-defined sampling default is used.
5366        #[prost(oneof="timebase::Interval", tags="2, 1, 6")]
5367        pub interval: ::core::option::Option<timebase::Interval>,
5368        /// Counting event to use as the timebase.
5369        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5370        /// which is what you usually want.
5371        #[prost(oneof="timebase::Event", tags="4, 3, 5")]
5372        pub event: ::core::option::Option<timebase::Event>,
5373    }
5374    /// Nested message and enum types in `Timebase`.
5375    pub mod timebase {
5376        /// How often to snapshot the counter, along with any follower events and
5377        /// any additional sampled data such as callstacks.
5378        ///
5379        /// This choice also controls how the readings are taken:
5380        /// * With |frequency| or |period|, samples are taken by the kernel
5381        ///    into a ring buffer. Analogous to `perf record`.
5382        /// * With |poll_period_ms|, the userspace periodically snapshots
5383        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5384        /// Prefer the sampling options unless you're recording PMUs whose
5385        /// perf drivers only support the reading mode.
5386        ///
5387        /// If unset, an implementation-defined sampling default is used.
5388        #[derive(Clone, PartialEq, ::prost::Oneof)]
5389        pub enum Interval {
5390            /// Per-cpu sampling frequency in Hz, as requested from the kernel. Not the
5391            /// same as 1/period.
5392            /// Details: the actual sampling will still be based on a period, but the
5393            /// kernel will dynamically adjust it based on the observed event rate, to
5394            /// approximate this frequency. Works best with steady-rate events like
5395            /// timers.
5396            /// Not guaranteed to be honored as the kernel can throttle the sampling
5397            /// rate if it's too high.
5398            #[prost(uint64, tag="2")]
5399            Frequency(u64),
5400            /// Per-cpu sampling will occur every |period| counts of |event|.
5401            /// Prefer |frequency| by default, as it's easier to oversample with a
5402            /// fixed period.
5403            /// Not guaranteed to be honored as the kernel can throttle the sampling
5404            /// rate if it's too high.
5405            #[prost(uint64, tag="1")]
5406            Period(u64),
5407            /// Per-cpu values are read by the userspace every interval. If using this
5408            /// mode, only follower events are supported. Options such as
5409            /// |PerfEventConfig.CallstackSampling| are incompatible.
5410            /// The period can't be guaranteed to be exact since the readings are taken
5411            /// by userspace.
5412            #[prost(uint32, tag="6")]
5413            PollPeriodMs(u32),
5414        }
5415        /// Counting event to use as the timebase.
5416        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5417        /// which is what you usually want.
5418        #[derive(Clone, PartialEq, ::prost::Oneof)]
5419        pub enum Event {
5420            #[prost(enumeration="super::Counter", tag="4")]
5421            Counter(i32),
5422            #[prost(message, tag="3")]
5423            Tracepoint(super::Tracepoint),
5424            #[prost(message, tag="5")]
5425            RawEvent(super::RawEvent),
5426        }
5427    }
5428    #[derive(Clone, PartialEq, ::prost::Message)]
5429    pub struct Tracepoint {
5430        /// Group and name for the tracepoint, acceptable forms:
5431        /// * "sched/sched_switch"
5432        /// * "sched:sched_switch"
5433        #[prost(string, optional, tag="1")]
5434        pub name: ::core::option::Option<::prost::alloc::string::String>,
5435        /// Optional field-level filter for the tracepoint. Only events matching this
5436        /// filter will be counted (and therefore contribute to the sampling period).
5437        /// Example: "prev_pid >= 42 && next_pid == 0".
5438        /// For full syntax, see kernel documentation on "Event filtering":
5439        /// <https://www.kernel.org/doc/Documentation/trace/events.txt>
5440        #[prost(string, optional, tag="2")]
5441        pub filter: ::core::option::Option<::prost::alloc::string::String>,
5442    }
5443    /// Syscall-level description of the event, propagated to the perf_event_attr
5444    /// struct. Primarily for local use-cases, since the event availability and
5445    /// encoding is hardware-specific.
5446    #[derive(Clone, PartialEq, ::prost::Message)]
5447    pub struct RawEvent {
5448        #[prost(uint32, optional, tag="1")]
5449        pub r#type: ::core::option::Option<u32>,
5450        #[prost(uint64, optional, tag="2")]
5451        pub config: ::core::option::Option<u64>,
5452        #[prost(uint64, optional, tag="3")]
5453        pub config1: ::core::option::Option<u64>,
5454        #[prost(uint64, optional, tag="4")]
5455        pub config2: ::core::option::Option<u64>,
5456    }
5457    /// Builtin counter names from the uapi header. Commented with their perf tool
5458    /// aliases.
5459    /// TODO(rsavitski): consider generating enums for cache events (should be
5460    /// finite), and generally make this list as extensive as possible. Excluding
5461    /// things like dynamic PMUs since those don't fit into a static enum.
5462    /// Next id: 21
5463    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5464    #[repr(i32)]
5465    pub enum Counter {
5466        UnknownCounter = 0,
5467        /// cpu-clock
5468        SwCpuClock = 1,
5469        /// page-faults, faults
5470        SwPageFaults = 2,
5471        /// task-clock
5472        SwTaskClock = 3,
5473        /// context-switches, cs
5474        SwContextSwitches = 4,
5475        /// cpu-migrations, migrations
5476        SwCpuMigrations = 5,
5477        /// minor-faults
5478        SwPageFaultsMin = 6,
5479        /// major-faults
5480        SwPageFaultsMaj = 7,
5481        /// alignment-faults
5482        SwAlignmentFaults = 8,
5483        /// emulation-faults
5484        SwEmulationFaults = 9,
5485        /// dummy
5486        SwDummy = 20,
5487        /// cpu-cycles, cycles
5488        HwCpuCycles = 10,
5489        /// instructions
5490        HwInstructions = 11,
5491        /// cache-references
5492        HwCacheReferences = 12,
5493        /// cache-misses
5494        HwCacheMisses = 13,
5495        /// branch-instructions, branches
5496        HwBranchInstructions = 14,
5497        /// branch-misses
5498        HwBranchMisses = 15,
5499        /// bus-cycles
5500        HwBusCycles = 16,
5501        /// stalled-cycles-frontend, idle-cycles-frontend
5502        HwStalledCyclesFrontend = 17,
5503        /// stalled-cycles-backend, idle-cycles-backend
5504        HwStalledCyclesBackend = 18,
5505        /// ref-cycles
5506        HwRefCpuCycles = 19,
5507    }
5508    impl Counter {
5509        /// String value of the enum field names used in the ProtoBuf definition.
5510        ///
5511        /// The values are not transformed in any way and thus are considered stable
5512        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5513        pub fn as_str_name(&self) -> &'static str {
5514            match self {
5515                Counter::UnknownCounter => "UNKNOWN_COUNTER",
5516                Counter::SwCpuClock => "SW_CPU_CLOCK",
5517                Counter::SwPageFaults => "SW_PAGE_FAULTS",
5518                Counter::SwTaskClock => "SW_TASK_CLOCK",
5519                Counter::SwContextSwitches => "SW_CONTEXT_SWITCHES",
5520                Counter::SwCpuMigrations => "SW_CPU_MIGRATIONS",
5521                Counter::SwPageFaultsMin => "SW_PAGE_FAULTS_MIN",
5522                Counter::SwPageFaultsMaj => "SW_PAGE_FAULTS_MAJ",
5523                Counter::SwAlignmentFaults => "SW_ALIGNMENT_FAULTS",
5524                Counter::SwEmulationFaults => "SW_EMULATION_FAULTS",
5525                Counter::SwDummy => "SW_DUMMY",
5526                Counter::HwCpuCycles => "HW_CPU_CYCLES",
5527                Counter::HwInstructions => "HW_INSTRUCTIONS",
5528                Counter::HwCacheReferences => "HW_CACHE_REFERENCES",
5529                Counter::HwCacheMisses => "HW_CACHE_MISSES",
5530                Counter::HwBranchInstructions => "HW_BRANCH_INSTRUCTIONS",
5531                Counter::HwBranchMisses => "HW_BRANCH_MISSES",
5532                Counter::HwBusCycles => "HW_BUS_CYCLES",
5533                Counter::HwStalledCyclesFrontend => "HW_STALLED_CYCLES_FRONTEND",
5534                Counter::HwStalledCyclesBackend => "HW_STALLED_CYCLES_BACKEND",
5535                Counter::HwRefCpuCycles => "HW_REF_CPU_CYCLES",
5536            }
5537        }
5538    }
5539    /// Subset of clocks that is supported by perf timestamping.
5540    /// CLOCK_TAI is excluded since it's not expected to be used in practice, but
5541    /// would require additions to the trace clock synchronisation logic.
5542    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5543    #[repr(i32)]
5544    pub enum PerfClock {
5545        UnknownPerfClock = 0,
5546        Realtime = 1,
5547        Monotonic = 2,
5548        MonotonicRaw = 3,
5549        Boottime = 4,
5550    }
5551    impl PerfClock {
5552        /// String value of the enum field names used in the ProtoBuf definition.
5553        ///
5554        /// The values are not transformed in any way and thus are considered stable
5555        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5556        pub fn as_str_name(&self) -> &'static str {
5557            match self {
5558                PerfClock::UnknownPerfClock => "UNKNOWN_PERF_CLOCK",
5559                PerfClock::Realtime => "PERF_CLOCK_REALTIME",
5560                PerfClock::Monotonic => "PERF_CLOCK_MONOTONIC",
5561                PerfClock::MonotonicRaw => "PERF_CLOCK_MONOTONIC_RAW",
5562                PerfClock::Boottime => "PERF_CLOCK_BOOTTIME",
5563            }
5564        }
5565    }
5566    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5567    #[repr(i32)]
5568    pub enum EventModifier {
5569        UnknownEventModifier = 0,
5570        /// count only while in userspace
5571        CountUserspace = 1,
5572        /// count only while in kernel
5573        CountKernel = 2,
5574        /// count only while in hypervisor
5575        CountHypervisor = 3,
5576    }
5577    impl EventModifier {
5578        /// String value of the enum field names used in the ProtoBuf definition.
5579        ///
5580        /// The values are not transformed in any way and thus are considered stable
5581        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5582        pub fn as_str_name(&self) -> &'static str {
5583            match self {
5584                EventModifier::UnknownEventModifier => "UNKNOWN_EVENT_MODIFIER",
5585                EventModifier::CountUserspace => "EVENT_MODIFIER_COUNT_USERSPACE",
5586                EventModifier::CountKernel => "EVENT_MODIFIER_COUNT_KERNEL",
5587                EventModifier::CountHypervisor => "EVENT_MODIFIER_COUNT_HYPERVISOR",
5588            }
5589        }
5590    }
5591}
5592/// Additional events associated with a leader.
5593/// See <https://man7.org/linux/man-pages/man1/perf-list.1.html#LEADER_SAMPLING>
5594#[derive(Clone, PartialEq, ::prost::Message)]
5595pub struct FollowerEvent {
5596    /// Modifiers can differ between the timebase and followers.
5597    #[prost(enumeration="perf_events::EventModifier", repeated, packed="false", tag="5")]
5598    pub modifiers: ::prost::alloc::vec::Vec<i32>,
5599    /// Optional arbitrary name for the event, to identify it in the parsed
5600    /// trace. Does *not* affect the profiling itself. If unset, the trace
5601    /// parser will choose a suitable name.
5602    #[prost(string, optional, tag="4")]
5603    pub name: ::core::option::Option<::prost::alloc::string::String>,
5604    #[prost(oneof="follower_event::Event", tags="1, 2, 3")]
5605    pub event: ::core::option::Option<follower_event::Event>,
5606}
5607/// Nested message and enum types in `FollowerEvent`.
5608pub mod follower_event {
5609    #[derive(Clone, PartialEq, ::prost::Oneof)]
5610    pub enum Event {
5611        #[prost(enumeration="super::perf_events::Counter", tag="1")]
5612        Counter(i32),
5613        #[prost(message, tag="2")]
5614        Tracepoint(super::perf_events::Tracepoint),
5615        #[prost(message, tag="3")]
5616        RawEvent(super::perf_events::RawEvent),
5617    }
5618}
5619/// Configuration for the traced_perf profiler.
5620///
5621/// Example config for basic cpu profiling:
5622///    perf_event_config {
5623///      timebase {
5624///        frequency: 80
5625///      }
5626///      callstack_sampling {
5627///        scope {
5628///          target_cmdline: "surfaceflinger"
5629///          target_cmdline: "system_server"
5630///        }
5631///        kernel_frames: true
5632///      }
5633///    }
5634///
5635/// Next id: 21
5636#[derive(Clone, PartialEq, ::prost::Message)]
5637pub struct PerfEventConfig {
5638    /// What event to sample on, and how often.
5639    /// Defined in common/perf_events.proto.
5640    #[prost(message, optional, tag="15")]
5641    pub timebase: ::core::option::Option<perf_events::Timebase>,
5642    /// Other events associated with the leader described in the timebase.
5643    #[prost(message, repeated, tag="19")]
5644    pub followers: ::prost::alloc::vec::Vec<FollowerEvent>,
5645    /// If set, the profiler will sample userspace processes' callstacks at the
5646    /// interval specified by the |timebase|.
5647    /// If unset, the profiler will record only the event counts.
5648    #[prost(message, optional, tag="16")]
5649    pub callstack_sampling: ::core::option::Option<perf_event_config::CallstackSampling>,
5650    /// List of cpu indices for counting. If empty, the default is all cpus.
5651    ///
5652    /// Note: this is not inside |callstack_sampling.scope| as it also applies to
5653    /// counter-only traces. A future change will likely reorganise the options,
5654    /// but this field will continue to be supported.
5655    ///
5656    /// Available since: perfetto v50.
5657    #[prost(uint32, repeated, packed="false", tag="20")]
5658    pub target_cpu: ::prost::alloc::vec::Vec<u32>,
5659    //
5660    // Kernel <-> userspace ring buffer options:
5661    //
5662
5663    /// How often the per-cpu ring buffers are read by the producer.
5664    /// If unset, an implementation-defined default is used.
5665    #[prost(uint32, optional, tag="8")]
5666    pub ring_buffer_read_period_ms: ::core::option::Option<u32>,
5667    /// Size (in 4k pages) of each per-cpu ring buffer that is filled by the
5668    /// kernel. If set, must be a power of two.
5669    /// If unset, an implementation-defined default is used.
5670    #[prost(uint32, optional, tag="3")]
5671    pub ring_buffer_pages: ::core::option::Option<u32>,
5672    //
5673    // Daemon's resource usage limits:
5674    //
5675
5676    /// Drop samples if the heap memory held by the samples in the unwinder queue
5677    /// is above the given limit. This counts the memory across all concurrent data
5678    /// sources (not just this one's), and there is no fairness guarantee - the
5679    /// whole quota might be used up by a concurrent source.
5680    #[prost(uint64, optional, tag="17")]
5681    pub max_enqueued_footprint_kb: ::core::option::Option<u64>,
5682    /// Stop the data source if traced_perf's combined {RssAnon + Swap} memory
5683    /// footprint exceeds this value.
5684    #[prost(uint32, optional, tag="13")]
5685    pub max_daemon_memory_kb: ::core::option::Option<u32>,
5686    //
5687    // Niche options:
5688    //
5689
5690    /// Timeout for the remote /proc/<pid>/{maps,mem} file descriptors for a
5691    /// sampled process. This is primarily for Android, where this lookup is
5692    /// asynchronous. As long as the producer is waiting, the associated samples
5693    /// will be kept enqueued (putting pressure on the capacity of the shared
5694    /// unwinding queue). Once a lookup for a process expires, all associated
5695    /// samples are discarded. However, if the lookup still succeeds after the
5696    /// timeout, future samples will be handled normally.
5697    /// If unset, an implementation-defined default is used.
5698    #[prost(uint32, optional, tag="9")]
5699    pub remote_descriptor_timeout_ms: ::core::option::Option<u32>,
5700    /// Optional period for clearing state cached by the userspace unwinder. This
5701    /// is a heavy operation that is only necessary for traces that target a wide
5702    /// set of processes, and require the memory footprint to be reset
5703    /// periodically. To effectively disable the cache clearing, set to a value
5704    /// greater than your trace duration.
5705    ///
5706    /// Relevant only if |callstack_sampling.user_frames| is set to UNWIND_DWARF.
5707    ///
5708    /// If zero or unset:
5709    /// * before perfetto v52: no cache clearing.
5710    /// * perfetto v52+: implementation chooses an infrequent default.
5711    #[prost(uint32, optional, tag="10")]
5712    pub unwind_state_clear_period_ms: ::core::option::Option<u32>,
5713    /// If set, only profile target if it was installed by a package with one of
5714    /// these names. Special values:
5715    /// * "@system": installed on the system partition
5716    /// * "@product": installed on the product partition
5717    /// * "@null": sideloaded
5718    /// Supported on Android 12+.
5719    #[prost(string, repeated, tag="18")]
5720    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5721    //
5722    // Deprecated (superseded by options above):
5723    //
5724    // Do not set *any* of these fields in new configs.
5725    //
5726
5727    /// Note: legacy configs had to set |all_cpus| to true to pass parsing.
5728    /// We rely on this to detect such configs.
5729    #[prost(bool, optional, tag="1")]
5730    pub all_cpus: ::core::option::Option<bool>,
5731    #[prost(uint32, optional, tag="2")]
5732    pub sampling_frequency: ::core::option::Option<u32>,
5733    #[prost(bool, optional, tag="12")]
5734    pub kernel_frames: ::core::option::Option<bool>,
5735    #[prost(int32, repeated, packed="false", tag="4")]
5736    pub target_pid: ::prost::alloc::vec::Vec<i32>,
5737    #[prost(string, repeated, tag="5")]
5738    pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5739    #[prost(int32, repeated, packed="false", tag="6")]
5740    pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
5741    #[prost(string, repeated, tag="7")]
5742    pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5743    #[prost(uint32, optional, tag="11")]
5744    pub additional_cmdline_count: ::core::option::Option<u32>,
5745}
5746/// Nested message and enum types in `PerfEventConfig`.
5747pub mod perf_event_config {
5748    //
5749    // Sub-messages (nested for generated code namespacing).
5750    //
5751
5752    #[derive(Clone, PartialEq, ::prost::Message)]
5753    pub struct CallstackSampling {
5754        /// Defines a set of processes for which samples are retained/skipped. If
5755        /// unset, all samples are kept, but beware that it will be very heavy on the
5756        /// stack unwinder, which might start dropping samples due to overload.
5757        #[prost(message, optional, tag="1")]
5758        pub scope: ::core::option::Option<Scope>,
5759        /// If true, callstacks will include the kernel-space frames. Such frames can
5760        /// be identified by a magical "kernel" string as their mapping name.
5761        /// Requires traced_perf to be running as root, or kptr_restrict to have been
5762        /// manually unrestricted. On Android, the platform should do the right thing
5763        /// on debug builds.
5764        /// This does *not* disclose KASLR, as only the function names are emitted.
5765        #[prost(bool, optional, tag="2")]
5766        pub kernel_frames: ::core::option::Option<bool>,
5767        /// Whether to record and unwind userspace callstacks. If unset, defaults to
5768        /// including userspace (UNWIND_DWARF) both for backwards compatibility and
5769        /// as the most common default (this defaulting is only applicable if the
5770        /// outer CallstackSampling message is explicitly set).
5771        #[prost(enumeration="UnwindMode", optional, tag="3")]
5772        pub user_frames: ::core::option::Option<i32>,
5773    }
5774    #[derive(Clone, PartialEq, ::prost::Message)]
5775    pub struct Scope {
5776        /// Process ID (TGID) allowlist. If this list is not empty, only matching
5777        /// samples will be retained. If multiple allow/deny-lists are
5778        /// specified by the config, then all of them are evaluated for each sampled
5779        /// process.
5780        #[prost(int32, repeated, packed="false", tag="1")]
5781        pub target_pid: ::prost::alloc::vec::Vec<i32>,
5782        /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
5783        /// comm string). The semantics of this field were changed since its original
5784        /// introduction.
5785        ///
5786        /// On Android T+ (13+), this field can specify a single wildcard (*), and
5787        /// the profiler will attempt to match it in two possible ways:
5788        /// * if the pattern starts with a '/', then it is matched against the first
5789        ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
5790        ///    "/bin/echo".
5791        /// * otherwise the pattern is matched against the part of argv0
5792        ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
5793        ///    For example "echo" would match "/bin/echo".
5794        ///
5795        /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
5796        /// normalized prior to an exact string comparison. Normalization is as
5797        /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
5798        /// the string contains forward slashes, trim everything up to and including
5799        /// the last one.
5800        ///
5801        /// Implementation note: in either case, at most 511 characters of cmdline
5802        /// are considered.
5803        #[prost(string, repeated, tag="2")]
5804        pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5805        /// List of excluded pids.
5806        #[prost(int32, repeated, packed="false", tag="3")]
5807        pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
5808        /// List of excluded cmdlines. See description of |target_cmdline| for how
5809        /// this is handled.
5810        #[prost(string, repeated, tag="4")]
5811        pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5812        // Niche features for systemwide callstacks:
5813
5814        /// Number of additional command lines to sample. Only those which are
5815        /// neither explicitly included nor excluded will be considered. Processes
5816        /// are accepted on a first come, first served basis.
5817        #[prost(uint32, optional, tag="5")]
5818        pub additional_cmdline_count: ::core::option::Option<u32>,
5819        /// If set to N, all encountered processes will be put into one of the N
5820        /// possible bins, and only one randomly-chosen bin will be selected for
5821        /// unwinding. The binning is simply "pid % N", under the assumption that
5822        /// low-order bits of pids are roughly uniformly distributed. Other explicit
5823        /// inclusions/exclusions in this |Scope| message are still respected.
5824        ///
5825        /// The profiler will report the chosen shard in PerfSampleDefaults, and the
5826        /// values will be queryable in trace processor under the "stats" table as
5827        /// "perf_process_shard_count" and "perf_chosen_process_shard".
5828        ///
5829        /// NB: all data sources in a config that set |process_shard_count| must set
5830        /// it to the same value. The profiler will choose one bin for all those data
5831        /// sources.
5832        #[prost(uint32, optional, tag="6")]
5833        pub process_shard_count: ::core::option::Option<u32>,
5834    }
5835    /// Userspace unwinding mode. A possible future addition is kernel-unwound
5836    /// callchains for frame pointer based systems.
5837    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5838    #[repr(i32)]
5839    pub enum UnwindMode {
5840        UnwindUnknown = 0,
5841        /// Do not unwind userspace:
5842        UnwindSkip = 1,
5843        /// Use libunwindstack (default):
5844        UnwindDwarf = 2,
5845        /// Use userspace frame pointer unwinder:
5846        UnwindFramePointer = 3,
5847    }
5848    impl UnwindMode {
5849        /// String value of the enum field names used in the ProtoBuf definition.
5850        ///
5851        /// The values are not transformed in any way and thus are considered stable
5852        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5853        pub fn as_str_name(&self) -> &'static str {
5854            match self {
5855                UnwindMode::UnwindUnknown => "UNWIND_UNKNOWN",
5856                UnwindMode::UnwindSkip => "UNWIND_SKIP",
5857                UnwindMode::UnwindDwarf => "UNWIND_DWARF",
5858                UnwindMode::UnwindFramePointer => "UNWIND_FRAME_POINTER",
5859            }
5860        }
5861    }
5862}
5863// When editing entries here remember also to update "sys_stats_counters.h" with
5864// the corresponding string definitions for the actual /proc files parser.
5865
5866/// Counter definitions for Linux's /proc/meminfo.
5867#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5868#[repr(i32)]
5869pub enum MeminfoCounters {
5870    MeminfoUnspecified = 0,
5871    MeminfoMemTotal = 1,
5872    MeminfoMemFree = 2,
5873    MeminfoMemAvailable = 3,
5874    MeminfoBuffers = 4,
5875    MeminfoCached = 5,
5876    MeminfoSwapCached = 6,
5877    MeminfoActive = 7,
5878    MeminfoInactive = 8,
5879    MeminfoActiveAnon = 9,
5880    MeminfoInactiveAnon = 10,
5881    MeminfoActiveFile = 11,
5882    MeminfoInactiveFile = 12,
5883    MeminfoUnevictable = 13,
5884    MeminfoMlocked = 14,
5885    MeminfoSwapTotal = 15,
5886    MeminfoSwapFree = 16,
5887    MeminfoDirty = 17,
5888    MeminfoWriteback = 18,
5889    MeminfoAnonPages = 19,
5890    MeminfoMapped = 20,
5891    MeminfoShmem = 21,
5892    MeminfoSlab = 22,
5893    MeminfoSlabReclaimable = 23,
5894    MeminfoSlabUnreclaimable = 24,
5895    MeminfoKernelStack = 25,
5896    MeminfoPageTables = 26,
5897    MeminfoCommitLimit = 27,
5898    MeminfoCommitedAs = 28,
5899    MeminfoVmallocTotal = 29,
5900    MeminfoVmallocUsed = 30,
5901    MeminfoVmallocChunk = 31,
5902    MeminfoCmaTotal = 32,
5903    MeminfoCmaFree = 33,
5904    MeminfoGpu = 34,
5905    MeminfoZram = 35,
5906    MeminfoMisc = 36,
5907    MeminfoIonHeap = 37,
5908    MeminfoIonHeapPool = 38,
5909}
5910impl MeminfoCounters {
5911    /// String value of the enum field names used in the ProtoBuf definition.
5912    ///
5913    /// The values are not transformed in any way and thus are considered stable
5914    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5915    pub fn as_str_name(&self) -> &'static str {
5916        match self {
5917            MeminfoCounters::MeminfoUnspecified => "MEMINFO_UNSPECIFIED",
5918            MeminfoCounters::MeminfoMemTotal => "MEMINFO_MEM_TOTAL",
5919            MeminfoCounters::MeminfoMemFree => "MEMINFO_MEM_FREE",
5920            MeminfoCounters::MeminfoMemAvailable => "MEMINFO_MEM_AVAILABLE",
5921            MeminfoCounters::MeminfoBuffers => "MEMINFO_BUFFERS",
5922            MeminfoCounters::MeminfoCached => "MEMINFO_CACHED",
5923            MeminfoCounters::MeminfoSwapCached => "MEMINFO_SWAP_CACHED",
5924            MeminfoCounters::MeminfoActive => "MEMINFO_ACTIVE",
5925            MeminfoCounters::MeminfoInactive => "MEMINFO_INACTIVE",
5926            MeminfoCounters::MeminfoActiveAnon => "MEMINFO_ACTIVE_ANON",
5927            MeminfoCounters::MeminfoInactiveAnon => "MEMINFO_INACTIVE_ANON",
5928            MeminfoCounters::MeminfoActiveFile => "MEMINFO_ACTIVE_FILE",
5929            MeminfoCounters::MeminfoInactiveFile => "MEMINFO_INACTIVE_FILE",
5930            MeminfoCounters::MeminfoUnevictable => "MEMINFO_UNEVICTABLE",
5931            MeminfoCounters::MeminfoMlocked => "MEMINFO_MLOCKED",
5932            MeminfoCounters::MeminfoSwapTotal => "MEMINFO_SWAP_TOTAL",
5933            MeminfoCounters::MeminfoSwapFree => "MEMINFO_SWAP_FREE",
5934            MeminfoCounters::MeminfoDirty => "MEMINFO_DIRTY",
5935            MeminfoCounters::MeminfoWriteback => "MEMINFO_WRITEBACK",
5936            MeminfoCounters::MeminfoAnonPages => "MEMINFO_ANON_PAGES",
5937            MeminfoCounters::MeminfoMapped => "MEMINFO_MAPPED",
5938            MeminfoCounters::MeminfoShmem => "MEMINFO_SHMEM",
5939            MeminfoCounters::MeminfoSlab => "MEMINFO_SLAB",
5940            MeminfoCounters::MeminfoSlabReclaimable => "MEMINFO_SLAB_RECLAIMABLE",
5941            MeminfoCounters::MeminfoSlabUnreclaimable => "MEMINFO_SLAB_UNRECLAIMABLE",
5942            MeminfoCounters::MeminfoKernelStack => "MEMINFO_KERNEL_STACK",
5943            MeminfoCounters::MeminfoPageTables => "MEMINFO_PAGE_TABLES",
5944            MeminfoCounters::MeminfoCommitLimit => "MEMINFO_COMMIT_LIMIT",
5945            MeminfoCounters::MeminfoCommitedAs => "MEMINFO_COMMITED_AS",
5946            MeminfoCounters::MeminfoVmallocTotal => "MEMINFO_VMALLOC_TOTAL",
5947            MeminfoCounters::MeminfoVmallocUsed => "MEMINFO_VMALLOC_USED",
5948            MeminfoCounters::MeminfoVmallocChunk => "MEMINFO_VMALLOC_CHUNK",
5949            MeminfoCounters::MeminfoCmaTotal => "MEMINFO_CMA_TOTAL",
5950            MeminfoCounters::MeminfoCmaFree => "MEMINFO_CMA_FREE",
5951            MeminfoCounters::MeminfoGpu => "MEMINFO_GPU",
5952            MeminfoCounters::MeminfoZram => "MEMINFO_ZRAM",
5953            MeminfoCounters::MeminfoMisc => "MEMINFO_MISC",
5954            MeminfoCounters::MeminfoIonHeap => "MEMINFO_ION_HEAP",
5955            MeminfoCounters::MeminfoIonHeapPool => "MEMINFO_ION_HEAP_POOL",
5956        }
5957    }
5958}
5959/// Counter definitions for Linux's /proc/vmstat.
5960#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5961#[repr(i32)]
5962pub enum VmstatCounters {
5963    VmstatUnspecified = 0,
5964    VmstatNrFreePages = 1,
5965    VmstatNrAllocBatch = 2,
5966    VmstatNrInactiveAnon = 3,
5967    VmstatNrActiveAnon = 4,
5968    VmstatNrInactiveFile = 5,
5969    VmstatNrActiveFile = 6,
5970    VmstatNrUnevictable = 7,
5971    VmstatNrMlock = 8,
5972    VmstatNrAnonPages = 9,
5973    VmstatNrMapped = 10,
5974    VmstatNrFilePages = 11,
5975    VmstatNrDirty = 12,
5976    VmstatNrWriteback = 13,
5977    VmstatNrSlabReclaimable = 14,
5978    VmstatNrSlabUnreclaimable = 15,
5979    VmstatNrPageTablePages = 16,
5980    VmstatNrKernelStack = 17,
5981    VmstatNrOverhead = 18,
5982    VmstatNrUnstable = 19,
5983    VmstatNrBounce = 20,
5984    VmstatNrVmscanWrite = 21,
5985    VmstatNrVmscanImmediateReclaim = 22,
5986    VmstatNrWritebackTemp = 23,
5987    VmstatNrIsolatedAnon = 24,
5988    VmstatNrIsolatedFile = 25,
5989    VmstatNrShmem = 26,
5990    VmstatNrDirtied = 27,
5991    VmstatNrWritten = 28,
5992    VmstatNrPagesScanned = 29,
5993    VmstatWorkingsetRefault = 30,
5994    VmstatWorkingsetActivate = 31,
5995    VmstatWorkingsetNodereclaim = 32,
5996    VmstatNrAnonTransparentHugepages = 33,
5997    VmstatNrFreeCma = 34,
5998    VmstatNrSwapcache = 35,
5999    VmstatNrDirtyThreshold = 36,
6000    VmstatNrDirtyBackgroundThreshold = 37,
6001    VmstatPgpgin = 38,
6002    VmstatPgpgout = 39,
6003    VmstatPgpgoutclean = 40,
6004    VmstatPswpin = 41,
6005    VmstatPswpout = 42,
6006    VmstatPgallocDma = 43,
6007    VmstatPgallocNormal = 44,
6008    VmstatPgallocMovable = 45,
6009    VmstatPgfree = 46,
6010    VmstatPgactivate = 47,
6011    VmstatPgdeactivate = 48,
6012    VmstatPgfault = 49,
6013    VmstatPgmajfault = 50,
6014    VmstatPgrefillDma = 51,
6015    VmstatPgrefillNormal = 52,
6016    VmstatPgrefillMovable = 53,
6017    VmstatPgstealKswapdDma = 54,
6018    VmstatPgstealKswapdNormal = 55,
6019    VmstatPgstealKswapdMovable = 56,
6020    VmstatPgstealDirectDma = 57,
6021    VmstatPgstealDirectNormal = 58,
6022    VmstatPgstealDirectMovable = 59,
6023    VmstatPgscanKswapdDma = 60,
6024    VmstatPgscanKswapdNormal = 61,
6025    VmstatPgscanKswapdMovable = 62,
6026    VmstatPgscanDirectDma = 63,
6027    VmstatPgscanDirectNormal = 64,
6028    VmstatPgscanDirectMovable = 65,
6029    VmstatPgscanDirectThrottle = 66,
6030    VmstatPginodesteal = 67,
6031    VmstatSlabsScanned = 68,
6032    VmstatKswapdInodesteal = 69,
6033    VmstatKswapdLowWmarkHitQuickly = 70,
6034    VmstatKswapdHighWmarkHitQuickly = 71,
6035    VmstatPageoutrun = 72,
6036    VmstatAllocstall = 73,
6037    VmstatPgrotated = 74,
6038    VmstatDropPagecache = 75,
6039    VmstatDropSlab = 76,
6040    VmstatPgmigrateSuccess = 77,
6041    VmstatPgmigrateFail = 78,
6042    VmstatCompactMigrateScanned = 79,
6043    VmstatCompactFreeScanned = 80,
6044    VmstatCompactIsolated = 81,
6045    VmstatCompactStall = 82,
6046    VmstatCompactFail = 83,
6047    VmstatCompactSuccess = 84,
6048    VmstatCompactDaemonWake = 85,
6049    VmstatUnevictablePgsCulled = 86,
6050    VmstatUnevictablePgsScanned = 87,
6051    VmstatUnevictablePgsRescued = 88,
6052    VmstatUnevictablePgsMlocked = 89,
6053    VmstatUnevictablePgsMunlocked = 90,
6054    VmstatUnevictablePgsCleared = 91,
6055    VmstatUnevictablePgsStranded = 92,
6056    VmstatNrZspages = 93,
6057    VmstatNrIonHeap = 94,
6058    VmstatNrGpuHeap = 95,
6059    VmstatAllocstallDma = 96,
6060    VmstatAllocstallMovable = 97,
6061    VmstatAllocstallNormal = 98,
6062    VmstatCompactDaemonFreeScanned = 99,
6063    VmstatCompactDaemonMigrateScanned = 100,
6064    VmstatNrFastrpc = 101,
6065    VmstatNrIndirectlyReclaimable = 102,
6066    VmstatNrIonHeapPool = 103,
6067    VmstatNrKernelMiscReclaimable = 104,
6068    VmstatNrShadowCallStackBytes = 105,
6069    VmstatNrShmemHugepages = 106,
6070    VmstatNrShmemPmdmapped = 107,
6071    VmstatNrUnreclaimablePages = 108,
6072    VmstatNrZoneActiveAnon = 109,
6073    VmstatNrZoneActiveFile = 110,
6074    VmstatNrZoneInactiveAnon = 111,
6075    VmstatNrZoneInactiveFile = 112,
6076    VmstatNrZoneUnevictable = 113,
6077    VmstatNrZoneWritePending = 114,
6078    VmstatOomKill = 115,
6079    VmstatPglazyfree = 116,
6080    VmstatPglazyfreed = 117,
6081    VmstatPgrefill = 118,
6082    VmstatPgscanDirect = 119,
6083    VmstatPgscanKswapd = 120,
6084    VmstatPgskipDma = 121,
6085    VmstatPgskipMovable = 122,
6086    VmstatPgskipNormal = 123,
6087    VmstatPgstealDirect = 124,
6088    VmstatPgstealKswapd = 125,
6089    VmstatSwapRa = 126,
6090    VmstatSwapRaHit = 127,
6091    VmstatWorkingsetRestore = 128,
6092    VmstatAllocstallDevice = 129,
6093    VmstatAllocstallDma32 = 130,
6094    VmstatBalloonDeflate = 131,
6095    VmstatBalloonInflate = 132,
6096    VmstatBalloonMigrate = 133,
6097    VmstatCmaAllocFail = 134,
6098    VmstatCmaAllocSuccess = 135,
6099    VmstatNrFileHugepages = 136,
6100    VmstatNrFilePmdmapped = 137,
6101    VmstatNrFollPinAcquired = 138,
6102    VmstatNrFollPinReleased = 139,
6103    VmstatNrSecPageTablePages = 140,
6104    VmstatNrShadowCallStack = 141,
6105    VmstatNrSwapcached = 142,
6106    VmstatNrThrottledWritten = 143,
6107    VmstatPgallocDevice = 144,
6108    VmstatPgallocDma32 = 145,
6109    VmstatPgdemoteDirect = 146,
6110    VmstatPgdemoteKswapd = 147,
6111    VmstatPgreuse = 148,
6112    VmstatPgscanAnon = 149,
6113    VmstatPgscanFile = 150,
6114    VmstatPgskipDevice = 151,
6115    VmstatPgskipDma32 = 152,
6116    VmstatPgstealAnon = 153,
6117    VmstatPgstealFile = 154,
6118    VmstatThpCollapseAlloc = 155,
6119    VmstatThpCollapseAllocFailed = 156,
6120    VmstatThpDeferredSplitPage = 157,
6121    VmstatThpFaultAlloc = 158,
6122    VmstatThpFaultFallback = 159,
6123    VmstatThpFaultFallbackCharge = 160,
6124    VmstatThpFileAlloc = 161,
6125    VmstatThpFileFallback = 162,
6126    VmstatThpFileFallbackCharge = 163,
6127    VmstatThpFileMapped = 164,
6128    VmstatThpMigrationFail = 165,
6129    VmstatThpMigrationSplit = 166,
6130    VmstatThpMigrationSuccess = 167,
6131    VmstatThpScanExceedNonePte = 168,
6132    VmstatThpScanExceedSharePte = 169,
6133    VmstatThpScanExceedSwapPte = 170,
6134    VmstatThpSplitPage = 171,
6135    VmstatThpSplitPageFailed = 172,
6136    VmstatThpSplitPmd = 173,
6137    VmstatThpSwpout = 174,
6138    VmstatThpSwpoutFallback = 175,
6139    VmstatThpZeroPageAlloc = 176,
6140    VmstatThpZeroPageAllocFailed = 177,
6141    VmstatVmaLockAbort = 178,
6142    VmstatVmaLockMiss = 179,
6143    VmstatVmaLockRetry = 180,
6144    VmstatVmaLockSuccess = 181,
6145    VmstatWorkingsetActivateAnon = 182,
6146    VmstatWorkingsetActivateFile = 183,
6147    VmstatWorkingsetNodes = 184,
6148    VmstatWorkingsetRefaultAnon = 185,
6149    VmstatWorkingsetRefaultFile = 186,
6150    VmstatWorkingsetRestoreAnon = 187,
6151    VmstatWorkingsetRestoreFile = 188,
6152}
6153impl VmstatCounters {
6154    /// String value of the enum field names used in the ProtoBuf definition.
6155    ///
6156    /// The values are not transformed in any way and thus are considered stable
6157    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6158    pub fn as_str_name(&self) -> &'static str {
6159        match self {
6160            VmstatCounters::VmstatUnspecified => "VMSTAT_UNSPECIFIED",
6161            VmstatCounters::VmstatNrFreePages => "VMSTAT_NR_FREE_PAGES",
6162            VmstatCounters::VmstatNrAllocBatch => "VMSTAT_NR_ALLOC_BATCH",
6163            VmstatCounters::VmstatNrInactiveAnon => "VMSTAT_NR_INACTIVE_ANON",
6164            VmstatCounters::VmstatNrActiveAnon => "VMSTAT_NR_ACTIVE_ANON",
6165            VmstatCounters::VmstatNrInactiveFile => "VMSTAT_NR_INACTIVE_FILE",
6166            VmstatCounters::VmstatNrActiveFile => "VMSTAT_NR_ACTIVE_FILE",
6167            VmstatCounters::VmstatNrUnevictable => "VMSTAT_NR_UNEVICTABLE",
6168            VmstatCounters::VmstatNrMlock => "VMSTAT_NR_MLOCK",
6169            VmstatCounters::VmstatNrAnonPages => "VMSTAT_NR_ANON_PAGES",
6170            VmstatCounters::VmstatNrMapped => "VMSTAT_NR_MAPPED",
6171            VmstatCounters::VmstatNrFilePages => "VMSTAT_NR_FILE_PAGES",
6172            VmstatCounters::VmstatNrDirty => "VMSTAT_NR_DIRTY",
6173            VmstatCounters::VmstatNrWriteback => "VMSTAT_NR_WRITEBACK",
6174            VmstatCounters::VmstatNrSlabReclaimable => "VMSTAT_NR_SLAB_RECLAIMABLE",
6175            VmstatCounters::VmstatNrSlabUnreclaimable => "VMSTAT_NR_SLAB_UNRECLAIMABLE",
6176            VmstatCounters::VmstatNrPageTablePages => "VMSTAT_NR_PAGE_TABLE_PAGES",
6177            VmstatCounters::VmstatNrKernelStack => "VMSTAT_NR_KERNEL_STACK",
6178            VmstatCounters::VmstatNrOverhead => "VMSTAT_NR_OVERHEAD",
6179            VmstatCounters::VmstatNrUnstable => "VMSTAT_NR_UNSTABLE",
6180            VmstatCounters::VmstatNrBounce => "VMSTAT_NR_BOUNCE",
6181            VmstatCounters::VmstatNrVmscanWrite => "VMSTAT_NR_VMSCAN_WRITE",
6182            VmstatCounters::VmstatNrVmscanImmediateReclaim => "VMSTAT_NR_VMSCAN_IMMEDIATE_RECLAIM",
6183            VmstatCounters::VmstatNrWritebackTemp => "VMSTAT_NR_WRITEBACK_TEMP",
6184            VmstatCounters::VmstatNrIsolatedAnon => "VMSTAT_NR_ISOLATED_ANON",
6185            VmstatCounters::VmstatNrIsolatedFile => "VMSTAT_NR_ISOLATED_FILE",
6186            VmstatCounters::VmstatNrShmem => "VMSTAT_NR_SHMEM",
6187            VmstatCounters::VmstatNrDirtied => "VMSTAT_NR_DIRTIED",
6188            VmstatCounters::VmstatNrWritten => "VMSTAT_NR_WRITTEN",
6189            VmstatCounters::VmstatNrPagesScanned => "VMSTAT_NR_PAGES_SCANNED",
6190            VmstatCounters::VmstatWorkingsetRefault => "VMSTAT_WORKINGSET_REFAULT",
6191            VmstatCounters::VmstatWorkingsetActivate => "VMSTAT_WORKINGSET_ACTIVATE",
6192            VmstatCounters::VmstatWorkingsetNodereclaim => "VMSTAT_WORKINGSET_NODERECLAIM",
6193            VmstatCounters::VmstatNrAnonTransparentHugepages => "VMSTAT_NR_ANON_TRANSPARENT_HUGEPAGES",
6194            VmstatCounters::VmstatNrFreeCma => "VMSTAT_NR_FREE_CMA",
6195            VmstatCounters::VmstatNrSwapcache => "VMSTAT_NR_SWAPCACHE",
6196            VmstatCounters::VmstatNrDirtyThreshold => "VMSTAT_NR_DIRTY_THRESHOLD",
6197            VmstatCounters::VmstatNrDirtyBackgroundThreshold => "VMSTAT_NR_DIRTY_BACKGROUND_THRESHOLD",
6198            VmstatCounters::VmstatPgpgin => "VMSTAT_PGPGIN",
6199            VmstatCounters::VmstatPgpgout => "VMSTAT_PGPGOUT",
6200            VmstatCounters::VmstatPgpgoutclean => "VMSTAT_PGPGOUTCLEAN",
6201            VmstatCounters::VmstatPswpin => "VMSTAT_PSWPIN",
6202            VmstatCounters::VmstatPswpout => "VMSTAT_PSWPOUT",
6203            VmstatCounters::VmstatPgallocDma => "VMSTAT_PGALLOC_DMA",
6204            VmstatCounters::VmstatPgallocNormal => "VMSTAT_PGALLOC_NORMAL",
6205            VmstatCounters::VmstatPgallocMovable => "VMSTAT_PGALLOC_MOVABLE",
6206            VmstatCounters::VmstatPgfree => "VMSTAT_PGFREE",
6207            VmstatCounters::VmstatPgactivate => "VMSTAT_PGACTIVATE",
6208            VmstatCounters::VmstatPgdeactivate => "VMSTAT_PGDEACTIVATE",
6209            VmstatCounters::VmstatPgfault => "VMSTAT_PGFAULT",
6210            VmstatCounters::VmstatPgmajfault => "VMSTAT_PGMAJFAULT",
6211            VmstatCounters::VmstatPgrefillDma => "VMSTAT_PGREFILL_DMA",
6212            VmstatCounters::VmstatPgrefillNormal => "VMSTAT_PGREFILL_NORMAL",
6213            VmstatCounters::VmstatPgrefillMovable => "VMSTAT_PGREFILL_MOVABLE",
6214            VmstatCounters::VmstatPgstealKswapdDma => "VMSTAT_PGSTEAL_KSWAPD_DMA",
6215            VmstatCounters::VmstatPgstealKswapdNormal => "VMSTAT_PGSTEAL_KSWAPD_NORMAL",
6216            VmstatCounters::VmstatPgstealKswapdMovable => "VMSTAT_PGSTEAL_KSWAPD_MOVABLE",
6217            VmstatCounters::VmstatPgstealDirectDma => "VMSTAT_PGSTEAL_DIRECT_DMA",
6218            VmstatCounters::VmstatPgstealDirectNormal => "VMSTAT_PGSTEAL_DIRECT_NORMAL",
6219            VmstatCounters::VmstatPgstealDirectMovable => "VMSTAT_PGSTEAL_DIRECT_MOVABLE",
6220            VmstatCounters::VmstatPgscanKswapdDma => "VMSTAT_PGSCAN_KSWAPD_DMA",
6221            VmstatCounters::VmstatPgscanKswapdNormal => "VMSTAT_PGSCAN_KSWAPD_NORMAL",
6222            VmstatCounters::VmstatPgscanKswapdMovable => "VMSTAT_PGSCAN_KSWAPD_MOVABLE",
6223            VmstatCounters::VmstatPgscanDirectDma => "VMSTAT_PGSCAN_DIRECT_DMA",
6224            VmstatCounters::VmstatPgscanDirectNormal => "VMSTAT_PGSCAN_DIRECT_NORMAL",
6225            VmstatCounters::VmstatPgscanDirectMovable => "VMSTAT_PGSCAN_DIRECT_MOVABLE",
6226            VmstatCounters::VmstatPgscanDirectThrottle => "VMSTAT_PGSCAN_DIRECT_THROTTLE",
6227            VmstatCounters::VmstatPginodesteal => "VMSTAT_PGINODESTEAL",
6228            VmstatCounters::VmstatSlabsScanned => "VMSTAT_SLABS_SCANNED",
6229            VmstatCounters::VmstatKswapdInodesteal => "VMSTAT_KSWAPD_INODESTEAL",
6230            VmstatCounters::VmstatKswapdLowWmarkHitQuickly => "VMSTAT_KSWAPD_LOW_WMARK_HIT_QUICKLY",
6231            VmstatCounters::VmstatKswapdHighWmarkHitQuickly => "VMSTAT_KSWAPD_HIGH_WMARK_HIT_QUICKLY",
6232            VmstatCounters::VmstatPageoutrun => "VMSTAT_PAGEOUTRUN",
6233            VmstatCounters::VmstatAllocstall => "VMSTAT_ALLOCSTALL",
6234            VmstatCounters::VmstatPgrotated => "VMSTAT_PGROTATED",
6235            VmstatCounters::VmstatDropPagecache => "VMSTAT_DROP_PAGECACHE",
6236            VmstatCounters::VmstatDropSlab => "VMSTAT_DROP_SLAB",
6237            VmstatCounters::VmstatPgmigrateSuccess => "VMSTAT_PGMIGRATE_SUCCESS",
6238            VmstatCounters::VmstatPgmigrateFail => "VMSTAT_PGMIGRATE_FAIL",
6239            VmstatCounters::VmstatCompactMigrateScanned => "VMSTAT_COMPACT_MIGRATE_SCANNED",
6240            VmstatCounters::VmstatCompactFreeScanned => "VMSTAT_COMPACT_FREE_SCANNED",
6241            VmstatCounters::VmstatCompactIsolated => "VMSTAT_COMPACT_ISOLATED",
6242            VmstatCounters::VmstatCompactStall => "VMSTAT_COMPACT_STALL",
6243            VmstatCounters::VmstatCompactFail => "VMSTAT_COMPACT_FAIL",
6244            VmstatCounters::VmstatCompactSuccess => "VMSTAT_COMPACT_SUCCESS",
6245            VmstatCounters::VmstatCompactDaemonWake => "VMSTAT_COMPACT_DAEMON_WAKE",
6246            VmstatCounters::VmstatUnevictablePgsCulled => "VMSTAT_UNEVICTABLE_PGS_CULLED",
6247            VmstatCounters::VmstatUnevictablePgsScanned => "VMSTAT_UNEVICTABLE_PGS_SCANNED",
6248            VmstatCounters::VmstatUnevictablePgsRescued => "VMSTAT_UNEVICTABLE_PGS_RESCUED",
6249            VmstatCounters::VmstatUnevictablePgsMlocked => "VMSTAT_UNEVICTABLE_PGS_MLOCKED",
6250            VmstatCounters::VmstatUnevictablePgsMunlocked => "VMSTAT_UNEVICTABLE_PGS_MUNLOCKED",
6251            VmstatCounters::VmstatUnevictablePgsCleared => "VMSTAT_UNEVICTABLE_PGS_CLEARED",
6252            VmstatCounters::VmstatUnevictablePgsStranded => "VMSTAT_UNEVICTABLE_PGS_STRANDED",
6253            VmstatCounters::VmstatNrZspages => "VMSTAT_NR_ZSPAGES",
6254            VmstatCounters::VmstatNrIonHeap => "VMSTAT_NR_ION_HEAP",
6255            VmstatCounters::VmstatNrGpuHeap => "VMSTAT_NR_GPU_HEAP",
6256            VmstatCounters::VmstatAllocstallDma => "VMSTAT_ALLOCSTALL_DMA",
6257            VmstatCounters::VmstatAllocstallMovable => "VMSTAT_ALLOCSTALL_MOVABLE",
6258            VmstatCounters::VmstatAllocstallNormal => "VMSTAT_ALLOCSTALL_NORMAL",
6259            VmstatCounters::VmstatCompactDaemonFreeScanned => "VMSTAT_COMPACT_DAEMON_FREE_SCANNED",
6260            VmstatCounters::VmstatCompactDaemonMigrateScanned => "VMSTAT_COMPACT_DAEMON_MIGRATE_SCANNED",
6261            VmstatCounters::VmstatNrFastrpc => "VMSTAT_NR_FASTRPC",
6262            VmstatCounters::VmstatNrIndirectlyReclaimable => "VMSTAT_NR_INDIRECTLY_RECLAIMABLE",
6263            VmstatCounters::VmstatNrIonHeapPool => "VMSTAT_NR_ION_HEAP_POOL",
6264            VmstatCounters::VmstatNrKernelMiscReclaimable => "VMSTAT_NR_KERNEL_MISC_RECLAIMABLE",
6265            VmstatCounters::VmstatNrShadowCallStackBytes => "VMSTAT_NR_SHADOW_CALL_STACK_BYTES",
6266            VmstatCounters::VmstatNrShmemHugepages => "VMSTAT_NR_SHMEM_HUGEPAGES",
6267            VmstatCounters::VmstatNrShmemPmdmapped => "VMSTAT_NR_SHMEM_PMDMAPPED",
6268            VmstatCounters::VmstatNrUnreclaimablePages => "VMSTAT_NR_UNRECLAIMABLE_PAGES",
6269            VmstatCounters::VmstatNrZoneActiveAnon => "VMSTAT_NR_ZONE_ACTIVE_ANON",
6270            VmstatCounters::VmstatNrZoneActiveFile => "VMSTAT_NR_ZONE_ACTIVE_FILE",
6271            VmstatCounters::VmstatNrZoneInactiveAnon => "VMSTAT_NR_ZONE_INACTIVE_ANON",
6272            VmstatCounters::VmstatNrZoneInactiveFile => "VMSTAT_NR_ZONE_INACTIVE_FILE",
6273            VmstatCounters::VmstatNrZoneUnevictable => "VMSTAT_NR_ZONE_UNEVICTABLE",
6274            VmstatCounters::VmstatNrZoneWritePending => "VMSTAT_NR_ZONE_WRITE_PENDING",
6275            VmstatCounters::VmstatOomKill => "VMSTAT_OOM_KILL",
6276            VmstatCounters::VmstatPglazyfree => "VMSTAT_PGLAZYFREE",
6277            VmstatCounters::VmstatPglazyfreed => "VMSTAT_PGLAZYFREED",
6278            VmstatCounters::VmstatPgrefill => "VMSTAT_PGREFILL",
6279            VmstatCounters::VmstatPgscanDirect => "VMSTAT_PGSCAN_DIRECT",
6280            VmstatCounters::VmstatPgscanKswapd => "VMSTAT_PGSCAN_KSWAPD",
6281            VmstatCounters::VmstatPgskipDma => "VMSTAT_PGSKIP_DMA",
6282            VmstatCounters::VmstatPgskipMovable => "VMSTAT_PGSKIP_MOVABLE",
6283            VmstatCounters::VmstatPgskipNormal => "VMSTAT_PGSKIP_NORMAL",
6284            VmstatCounters::VmstatPgstealDirect => "VMSTAT_PGSTEAL_DIRECT",
6285            VmstatCounters::VmstatPgstealKswapd => "VMSTAT_PGSTEAL_KSWAPD",
6286            VmstatCounters::VmstatSwapRa => "VMSTAT_SWAP_RA",
6287            VmstatCounters::VmstatSwapRaHit => "VMSTAT_SWAP_RA_HIT",
6288            VmstatCounters::VmstatWorkingsetRestore => "VMSTAT_WORKINGSET_RESTORE",
6289            VmstatCounters::VmstatAllocstallDevice => "VMSTAT_ALLOCSTALL_DEVICE",
6290            VmstatCounters::VmstatAllocstallDma32 => "VMSTAT_ALLOCSTALL_DMA32",
6291            VmstatCounters::VmstatBalloonDeflate => "VMSTAT_BALLOON_DEFLATE",
6292            VmstatCounters::VmstatBalloonInflate => "VMSTAT_BALLOON_INFLATE",
6293            VmstatCounters::VmstatBalloonMigrate => "VMSTAT_BALLOON_MIGRATE",
6294            VmstatCounters::VmstatCmaAllocFail => "VMSTAT_CMA_ALLOC_FAIL",
6295            VmstatCounters::VmstatCmaAllocSuccess => "VMSTAT_CMA_ALLOC_SUCCESS",
6296            VmstatCounters::VmstatNrFileHugepages => "VMSTAT_NR_FILE_HUGEPAGES",
6297            VmstatCounters::VmstatNrFilePmdmapped => "VMSTAT_NR_FILE_PMDMAPPED",
6298            VmstatCounters::VmstatNrFollPinAcquired => "VMSTAT_NR_FOLL_PIN_ACQUIRED",
6299            VmstatCounters::VmstatNrFollPinReleased => "VMSTAT_NR_FOLL_PIN_RELEASED",
6300            VmstatCounters::VmstatNrSecPageTablePages => "VMSTAT_NR_SEC_PAGE_TABLE_PAGES",
6301            VmstatCounters::VmstatNrShadowCallStack => "VMSTAT_NR_SHADOW_CALL_STACK",
6302            VmstatCounters::VmstatNrSwapcached => "VMSTAT_NR_SWAPCACHED",
6303            VmstatCounters::VmstatNrThrottledWritten => "VMSTAT_NR_THROTTLED_WRITTEN",
6304            VmstatCounters::VmstatPgallocDevice => "VMSTAT_PGALLOC_DEVICE",
6305            VmstatCounters::VmstatPgallocDma32 => "VMSTAT_PGALLOC_DMA32",
6306            VmstatCounters::VmstatPgdemoteDirect => "VMSTAT_PGDEMOTE_DIRECT",
6307            VmstatCounters::VmstatPgdemoteKswapd => "VMSTAT_PGDEMOTE_KSWAPD",
6308            VmstatCounters::VmstatPgreuse => "VMSTAT_PGREUSE",
6309            VmstatCounters::VmstatPgscanAnon => "VMSTAT_PGSCAN_ANON",
6310            VmstatCounters::VmstatPgscanFile => "VMSTAT_PGSCAN_FILE",
6311            VmstatCounters::VmstatPgskipDevice => "VMSTAT_PGSKIP_DEVICE",
6312            VmstatCounters::VmstatPgskipDma32 => "VMSTAT_PGSKIP_DMA32",
6313            VmstatCounters::VmstatPgstealAnon => "VMSTAT_PGSTEAL_ANON",
6314            VmstatCounters::VmstatPgstealFile => "VMSTAT_PGSTEAL_FILE",
6315            VmstatCounters::VmstatThpCollapseAlloc => "VMSTAT_THP_COLLAPSE_ALLOC",
6316            VmstatCounters::VmstatThpCollapseAllocFailed => "VMSTAT_THP_COLLAPSE_ALLOC_FAILED",
6317            VmstatCounters::VmstatThpDeferredSplitPage => "VMSTAT_THP_DEFERRED_SPLIT_PAGE",
6318            VmstatCounters::VmstatThpFaultAlloc => "VMSTAT_THP_FAULT_ALLOC",
6319            VmstatCounters::VmstatThpFaultFallback => "VMSTAT_THP_FAULT_FALLBACK",
6320            VmstatCounters::VmstatThpFaultFallbackCharge => "VMSTAT_THP_FAULT_FALLBACK_CHARGE",
6321            VmstatCounters::VmstatThpFileAlloc => "VMSTAT_THP_FILE_ALLOC",
6322            VmstatCounters::VmstatThpFileFallback => "VMSTAT_THP_FILE_FALLBACK",
6323            VmstatCounters::VmstatThpFileFallbackCharge => "VMSTAT_THP_FILE_FALLBACK_CHARGE",
6324            VmstatCounters::VmstatThpFileMapped => "VMSTAT_THP_FILE_MAPPED",
6325            VmstatCounters::VmstatThpMigrationFail => "VMSTAT_THP_MIGRATION_FAIL",
6326            VmstatCounters::VmstatThpMigrationSplit => "VMSTAT_THP_MIGRATION_SPLIT",
6327            VmstatCounters::VmstatThpMigrationSuccess => "VMSTAT_THP_MIGRATION_SUCCESS",
6328            VmstatCounters::VmstatThpScanExceedNonePte => "VMSTAT_THP_SCAN_EXCEED_NONE_PTE",
6329            VmstatCounters::VmstatThpScanExceedSharePte => "VMSTAT_THP_SCAN_EXCEED_SHARE_PTE",
6330            VmstatCounters::VmstatThpScanExceedSwapPte => "VMSTAT_THP_SCAN_EXCEED_SWAP_PTE",
6331            VmstatCounters::VmstatThpSplitPage => "VMSTAT_THP_SPLIT_PAGE",
6332            VmstatCounters::VmstatThpSplitPageFailed => "VMSTAT_THP_SPLIT_PAGE_FAILED",
6333            VmstatCounters::VmstatThpSplitPmd => "VMSTAT_THP_SPLIT_PMD",
6334            VmstatCounters::VmstatThpSwpout => "VMSTAT_THP_SWPOUT",
6335            VmstatCounters::VmstatThpSwpoutFallback => "VMSTAT_THP_SWPOUT_FALLBACK",
6336            VmstatCounters::VmstatThpZeroPageAlloc => "VMSTAT_THP_ZERO_PAGE_ALLOC",
6337            VmstatCounters::VmstatThpZeroPageAllocFailed => "VMSTAT_THP_ZERO_PAGE_ALLOC_FAILED",
6338            VmstatCounters::VmstatVmaLockAbort => "VMSTAT_VMA_LOCK_ABORT",
6339            VmstatCounters::VmstatVmaLockMiss => "VMSTAT_VMA_LOCK_MISS",
6340            VmstatCounters::VmstatVmaLockRetry => "VMSTAT_VMA_LOCK_RETRY",
6341            VmstatCounters::VmstatVmaLockSuccess => "VMSTAT_VMA_LOCK_SUCCESS",
6342            VmstatCounters::VmstatWorkingsetActivateAnon => "VMSTAT_WORKINGSET_ACTIVATE_ANON",
6343            VmstatCounters::VmstatWorkingsetActivateFile => "VMSTAT_WORKINGSET_ACTIVATE_FILE",
6344            VmstatCounters::VmstatWorkingsetNodes => "VMSTAT_WORKINGSET_NODES",
6345            VmstatCounters::VmstatWorkingsetRefaultAnon => "VMSTAT_WORKINGSET_REFAULT_ANON",
6346            VmstatCounters::VmstatWorkingsetRefaultFile => "VMSTAT_WORKINGSET_REFAULT_FILE",
6347            VmstatCounters::VmstatWorkingsetRestoreAnon => "VMSTAT_WORKINGSET_RESTORE_ANON",
6348            VmstatCounters::VmstatWorkingsetRestoreFile => "VMSTAT_WORKINGSET_RESTORE_FILE",
6349        }
6350    }
6351}
6352/// This file defines the configuration for the Linux /proc poller data source,
6353/// which injects counters in the trace.
6354/// Counters that are needed in the trace must be explicitly listed in the
6355/// *_counters fields. This is to avoid spamming the trace with all counters
6356/// at all times.
6357/// The sampling rate is configurable. All polling rates (*_period_ms) need
6358/// to be integer multiples of each other.
6359/// OK:     [10ms, 10ms, 10ms],  [10ms, 20ms, 10ms],  [10ms, 20ms, 60ms]
6360/// Not OK: [10ms, 10ms, 11ms],  [10ms, 15ms, 20ms]
6361#[derive(Clone, PartialEq, ::prost::Message)]
6362pub struct SysStatsConfig {
6363    /// Polls /proc/meminfo every X ms, if non-zero.
6364    /// This is required to be > 10ms to avoid excessive CPU usage.
6365    /// Cost: 0.3 ms \[read\] + 0.07 ms [parse + trace injection]
6366    #[prost(uint32, optional, tag="1")]
6367    pub meminfo_period_ms: ::core::option::Option<u32>,
6368    /// If empty all known counters are reported. Otherwise, only the counters
6369    /// specified below are reported.
6370    #[prost(enumeration="MeminfoCounters", repeated, packed="false", tag="2")]
6371    pub meminfo_counters: ::prost::alloc::vec::Vec<i32>,
6372    /// Polls /proc/vmstat every X ms, if non-zero.
6373    /// This is required to be > 10ms to avoid excessive CPU usage.
6374    /// Cost: 0.2 ms \[read\] + 0.3 ms [parse + trace injection]
6375    #[prost(uint32, optional, tag="3")]
6376    pub vmstat_period_ms: ::core::option::Option<u32>,
6377    #[prost(enumeration="VmstatCounters", repeated, packed="false", tag="4")]
6378    pub vmstat_counters: ::prost::alloc::vec::Vec<i32>,
6379    /// Pols /proc/stat every X ms, if non-zero.
6380    /// This is required to be > 10ms to avoid excessive CPU usage.
6381    /// Cost: 4.1 ms \[read\] + 1.9 ms [parse + trace injection]
6382    #[prost(uint32, optional, tag="5")]
6383    pub stat_period_ms: ::core::option::Option<u32>,
6384    #[prost(enumeration="sys_stats_config::StatCounters", repeated, packed="false", tag="6")]
6385    pub stat_counters: ::prost::alloc::vec::Vec<i32>,
6386    /// Polls /sys/devfreq/*/curfreq every X ms, if non-zero.
6387    /// This is required to be > 10ms to avoid excessive CPU usage.
6388    /// This option can be used to record unchanging values.
6389    /// Updates from frequency changes can come from ftrace/set_clock_rate.
6390    #[prost(uint32, optional, tag="7")]
6391    pub devfreq_period_ms: ::core::option::Option<u32>,
6392    /// Polls /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq every X ms.
6393    /// This is required to be > 10ms to avoid excessive CPU usage.
6394    #[prost(uint32, optional, tag="8")]
6395    pub cpufreq_period_ms: ::core::option::Option<u32>,
6396    /// Polls /proc/buddyinfo every X ms, if non-zero.
6397    /// This is required to be > 10ms to avoid excessive CPU usage.
6398    #[prost(uint32, optional, tag="9")]
6399    pub buddyinfo_period_ms: ::core::option::Option<u32>,
6400    /// Polls /proc/diskstats every X ms, if non-zero.
6401    /// This is required to be > 10ms to avoid excessive CPU usage.
6402    #[prost(uint32, optional, tag="10")]
6403    pub diskstat_period_ms: ::core::option::Option<u32>,
6404    /// Polls /proc/pressure/* every X ms, if non-zero.
6405    /// This is required to be > 10ms to avoid excessive CPU usage.
6406    #[prost(uint32, optional, tag="11")]
6407    pub psi_period_ms: ::core::option::Option<u32>,
6408    /// Polls /sys/class/thermal/* every X ms, if non-zero.
6409    /// This is required to be > 10ms to avoid excessive CPU usage.
6410    #[prost(uint32, optional, tag="12")]
6411    pub thermal_period_ms: ::core::option::Option<u32>,
6412    /// Polls /sys/devices/system/cpu/cpu*/cpuidle/state* every X ms, if non-zero.
6413    /// This is required to be > 10ms to avoid excessive CPU usage.
6414    #[prost(uint32, optional, tag="13")]
6415    pub cpuidle_period_ms: ::core::option::Option<u32>,
6416    /// Polls device-specific GPU frequency info every X ms, if non-zero.
6417    /// This is required to be > 10ms to avoid excessive CPU usage.
6418    #[prost(uint32, optional, tag="14")]
6419    pub gpufreq_period_ms: ::core::option::Option<u32>,
6420}
6421/// Nested message and enum types in `SysStatsConfig`.
6422pub mod sys_stats_config {
6423    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6424    #[repr(i32)]
6425    pub enum StatCounters {
6426        StatUnspecified = 0,
6427        StatCpuTimes = 1,
6428        StatIrqCounts = 2,
6429        StatSoftirqCounts = 3,
6430        StatForkCount = 4,
6431    }
6432    impl StatCounters {
6433        /// String value of the enum field names used in the ProtoBuf definition.
6434        ///
6435        /// The values are not transformed in any way and thus are considered stable
6436        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6437        pub fn as_str_name(&self) -> &'static str {
6438            match self {
6439                StatCounters::StatUnspecified => "STAT_UNSPECIFIED",
6440                StatCounters::StatCpuTimes => "STAT_CPU_TIMES",
6441                StatCounters::StatIrqCounts => "STAT_IRQ_COUNTS",
6442                StatCounters::StatSoftirqCounts => "STAT_SOFTIRQ_COUNTS",
6443                StatCounters::StatForkCount => "STAT_FORK_COUNT",
6444            }
6445        }
6446    }
6447}
6448/// The configuration for a fake producer used in tests.
6449#[derive(Clone, PartialEq, ::prost::Message)]
6450pub struct TestConfig {
6451    /// The number of messages the fake producer should send.
6452    #[prost(uint32, optional, tag="1")]
6453    pub message_count: ::core::option::Option<u32>,
6454    /// The maximum number of messages which should be sent each second.
6455    /// The actual obserced speed may be lower if the producer is unable to
6456    /// work fast enough.
6457    /// If this is zero or unset, the producer will send as fast as possible.
6458    #[prost(uint32, optional, tag="2")]
6459    pub max_messages_per_second: ::core::option::Option<u32>,
6460    /// The seed value for a simple multiplicative congruential pseudo-random
6461    /// number sequence.
6462    #[prost(uint32, optional, tag="3")]
6463    pub seed: ::core::option::Option<u32>,
6464    /// The size of each message in bytes. Should be greater than or equal 5 to
6465    /// account for the number of bytes needed to encode the random number and a
6466    /// null byte for the string.
6467    #[prost(uint32, optional, tag="4")]
6468    pub message_size: ::core::option::Option<u32>,
6469    /// Whether the producer should send a event batch when the data source is
6470    /// is initially registered.
6471    #[prost(bool, optional, tag="5")]
6472    pub send_batch_on_register: ::core::option::Option<bool>,
6473    #[prost(message, optional, tag="6")]
6474    pub dummy_fields: ::core::option::Option<test_config::DummyFields>,
6475}
6476/// Nested message and enum types in `TestConfig`.
6477pub mod test_config {
6478    #[derive(Clone, PartialEq, ::prost::Message)]
6479    pub struct DummyFields {
6480        #[prost(uint32, optional, tag="1")]
6481        pub field_uint32: ::core::option::Option<u32>,
6482        #[prost(int32, optional, tag="2")]
6483        pub field_int32: ::core::option::Option<i32>,
6484        #[prost(uint64, optional, tag="3")]
6485        pub field_uint64: ::core::option::Option<u64>,
6486        #[prost(int64, optional, tag="4")]
6487        pub field_int64: ::core::option::Option<i64>,
6488        #[prost(fixed64, optional, tag="5")]
6489        pub field_fixed64: ::core::option::Option<u64>,
6490        #[prost(sfixed64, optional, tag="6")]
6491        pub field_sfixed64: ::core::option::Option<i64>,
6492        #[prost(fixed32, optional, tag="7")]
6493        pub field_fixed32: ::core::option::Option<u32>,
6494        #[prost(sfixed32, optional, tag="8")]
6495        pub field_sfixed32: ::core::option::Option<i32>,
6496        #[prost(double, optional, tag="9")]
6497        pub field_double: ::core::option::Option<f64>,
6498        #[prost(float, optional, tag="10")]
6499        pub field_float: ::core::option::Option<f32>,
6500        #[prost(sint64, optional, tag="11")]
6501        pub field_sint64: ::core::option::Option<i64>,
6502        #[prost(sint32, optional, tag="12")]
6503        pub field_sint32: ::core::option::Option<i32>,
6504        #[prost(string, optional, tag="13")]
6505        pub field_string: ::core::option::Option<::prost::alloc::string::String>,
6506        #[prost(bytes="vec", optional, tag="14")]
6507        pub field_bytes: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
6508    }
6509}
6510/// The following fields define the set of enabled trace categories. Each list
6511/// item is a glob.
6512///
6513/// To determine if category is enabled, it is checked against the filters in
6514/// the following order:
6515///
6516///    1. Exact matches in enabled categories.
6517///    2. Exact matches in enabled tags.
6518///    3. Exact matches in disabled categories.
6519///    4. Exact matches in disabled tags.
6520///    5. Pattern matches in enabled categories.
6521///    6. Pattern matches in enabled tags.
6522///    7. Pattern matches in disabled categories.
6523///    8. Pattern matches in disabled tags.
6524///
6525/// If none of the steps produced a match:
6526///   - In the C++ SDK (`perfetto::Category`), categories are enabled by
6527///   default.
6528///   - In the C SDK (`PerfettoTeCategory`), categories are disabled by default.
6529///
6530/// Examples:
6531///
6532///   - To enable all non-slow/debug categories:
6533///
6534///        enabled_categories: "*"
6535///
6536///   - To enable specific categories:
6537///
6538///        disabled_categories: "*"
6539///        enabled_categories: "my_category"
6540///        enabled_categories: "my_category2"
6541///
6542///   - To enable only categories with a specific tag:
6543///
6544///        disabled_tags: "*"
6545///        enabled_tags: "my_tag"
6546///
6547#[derive(Clone, PartialEq, ::prost::Message)]
6548pub struct TrackEventConfig {
6549    /// Default: []
6550    #[prost(string, repeated, tag="1")]
6551    pub disabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6552    /// Default: []
6553    #[prost(string, repeated, tag="2")]
6554    pub enabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6555    /// Default: ["slow", "debug"]
6556    #[prost(string, repeated, tag="3")]
6557    pub disabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6558    /// Default: []
6559    #[prost(string, repeated, tag="4")]
6560    pub enabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6561    /// Default: false (i.e. enabled by default)
6562    #[prost(bool, optional, tag="5")]
6563    pub disable_incremental_timestamps: ::core::option::Option<bool>,
6564    /// Allows to specify a custom unit different than the default (ns).
6565    /// Also affects thread timestamps if enable_thread_time_sampling = true.
6566    /// A multiplier of 1000 means that a timestamp = 3 should be interpreted as
6567    /// 3000 ns = 3 us.
6568    /// Default: 1 (if unset, it should be read as 1).
6569    #[prost(uint64, optional, tag="6")]
6570    pub timestamp_unit_multiplier: ::core::option::Option<u64>,
6571    /// Default: false (i.e. debug_annotations is NOT filtered out by default)
6572    /// When true, any debug annotations provided as arguments to the
6573    /// TRACE_EVENT macros are not written into the trace. Typed arguments will
6574    /// still be emitted even if set to true.
6575    #[prost(bool, optional, tag="7")]
6576    pub filter_debug_annotations: ::core::option::Option<bool>,
6577    /// Default: false (i.e. disabled)
6578    /// When true, the SDK samples and emits the current thread time counter value
6579    /// for each event on the current thread's track. This value represents the
6580    /// total CPU time consumed by that thread since its creation.
6581    /// Learn more: "CLOCK_THREAD_CPUTIME_ID" flag at
6582    /// <https://man7.org/linux/man-pages/man3/clock_gettime.3.html>
6583    #[prost(bool, optional, tag="8")]
6584    pub enable_thread_time_sampling: ::core::option::Option<bool>,
6585    /// When enable_thread_time_sampling is true, and this is specified, thread
6586    /// time is sampled only if the elapsed wall time >
6587    /// `thread_time_subsampling_ns`. Otherwise, thread time is considered nil.
6588    /// Effectively, this means thread time will have a leeway of
6589    /// `thread_time_subsampling_ns` and won't be emitted for shorter events.
6590    #[prost(uint64, optional, tag="10")]
6591    pub thread_time_subsampling_ns: ::core::option::Option<u64>,
6592    /// Default: false (i.e. dynamic event names are NOT filtered out by default)
6593    /// When true, event_names wrapped in perfetto::DynamicString will be filtered
6594    /// out.
6595    #[prost(bool, optional, tag="9")]
6596    pub filter_dynamic_event_names: ::core::option::Option<bool>,
6597}
6598/// This data-source does a one-off recording of system information when
6599/// the trace starts.
6600/// Currently this includes:
6601/// - Values of
6602/// /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies This
6603/// datasource has no configuration options at present.
6604#[derive(Clone, PartialEq, ::prost::Message)]
6605pub struct SystemInfoConfig {
6606}
6607#[derive(Clone, PartialEq, ::prost::Message)]
6608pub struct ChromiumHistogramSamplesConfig {
6609    /// List of histograms to record. If no histogram is specified, all histograms
6610    /// are recorded.
6611    #[prost(message, repeated, tag="1")]
6612    pub histograms: ::prost::alloc::vec::Vec<chromium_histogram_samples_config::HistogramSample>,
6613    /// Default: false (i.e. histogram names are NOT filtered out by default)
6614    /// When true, histogram_name will be filtered out.
6615    #[prost(bool, optional, tag="2")]
6616    pub filter_histogram_names: ::core::option::Option<bool>,
6617}
6618/// Nested message and enum types in `ChromiumHistogramSamplesConfig`.
6619pub mod chromium_histogram_samples_config {
6620    /// Records when a value within the specified bounds [min_value, max_value] is
6621    /// emitted into a Chrome histogram.
6622    #[derive(Clone, PartialEq, ::prost::Message)]
6623    pub struct HistogramSample {
6624        #[prost(string, optional, tag="1")]
6625        pub histogram_name: ::core::option::Option<::prost::alloc::string::String>,
6626        #[prost(int64, optional, tag="2")]
6627        pub min_value: ::core::option::Option<i64>,
6628        #[prost(int64, optional, tag="3")]
6629        pub max_value: ::core::option::Option<i64>,
6630    }
6631}
6632/// QnxConfig is used with trace_qnx_probes build from
6633/// <https://github.com/qnx-ports/perfetto>
6634#[derive(Clone, PartialEq, ::prost::Message)]
6635pub struct QnxConfig {
6636    /// The number of buffers that tracelog will init for the QNX trace.
6637    #[prost(uint32, optional, tag="1")]
6638    pub qnx_kernel_buffers: ::core::option::Option<u32>,
6639    /// The number of kernel buffers that tracelog will init for the QNX trace.
6640    #[prost(uint32, optional, tag="2")]
6641    pub qnx_kernel_kbuffers: ::core::option::Option<u32>,
6642    /// Flag indicating whether the QNX kernel tracing should produce wide
6643    /// events which contain additional data or fast events which are most
6644    /// concise. In fast mode we lose the priority information
6645    #[prost(bool, optional, tag="3")]
6646    pub qnx_kernel_wide_events: ::core::option::Option<bool>,
6647    /// The number of pages initialized by default the parser's page cache.
6648    #[prost(uint32, optional, tag="4")]
6649    pub qnx_cache_pages: ::core::option::Option<u32>,
6650    /// The max pages the page cache should allocate (must be at least as big)
6651    /// as the qnx_cache_pages value. Using -1 will allow the cache to grow
6652    /// unbounded. The cache will prefer to re-use existing pages so growth will
6653    /// only happen when needed (when parser is not keeping up).
6654    #[prost(int32, optional, tag="5")]
6655    pub qnx_cache_max_pages: ::core::option::Option<i32>,
6656    /// The initial size of the the buffer used to hold the trace header values
6657    /// this dynamic buffer will grow as needed but reallocs can be avoided by
6658    /// selecting an initial size large enough to hold all the initial header
6659    /// data.
6660    #[prost(uint32, optional, tag="6")]
6661    pub qnx_trace_buffer_init_bytes: ::core::option::Option<u32>,
6662}
6663/// The configuration that is passed to each data source when starting tracing.
6664/// Next id: 141
6665#[derive(Clone, PartialEq, ::prost::Message)]
6666pub struct DataSourceConfig {
6667    /// Data source unique name, e.g., "linux.ftrace". This must match
6668    /// the name passed by the data source when it registers (see
6669    /// RegisterDataSource()).
6670    #[prost(string, optional, tag="1")]
6671    pub name: ::core::option::Option<::prost::alloc::string::String>,
6672    /// The index of the logging buffer where TracePacket(s) will be stored.
6673    /// This field is quite subtle as it has a double semantic:
6674    /// 1) When the config is passed, this field is a 0-based index relative to the
6675    ///     buffer array in the TraceConfig and defines the mapping between data
6676    ///     sources and config. From v54 this is optional because the user can
6677    ///     instead use target_buffer_name.
6678    /// 2) When the TracingService issues a SetupDataSource/StartDataSource to the
6679    ///     producer, it overwrites this field with the global buffer index (which
6680    ///     depends on other tracing sessions active). This tells the producer which
6681    ///     buffer id should be passed to CreateTraceWriter. In this case, the trace
6682    ///     service always sets the resolved global id, even when using
6683    ///     `target_buffer_name`.
6684    /// In hindsight we should have used two different fields given even in v0 they
6685    /// had a different semantic. But now it's too late as this would be a major
6686    /// protocol breaking change.
6687    #[prost(uint32, optional, tag="2")]
6688    pub target_buffer: ::core::option::Option<u32>,
6689    /// Alternative to |target_buffer|. References a buffer by name (as specified
6690    /// in TraceConfig.BufferConfig.name) rather than by index. This is more
6691    /// readable and less error-prone than using buffer indices.
6692    /// If both |target_buffer| and |target_buffer_name| are specified, they must
6693    /// refer to the same buffer, otherwise the service will reject the config.
6694    /// Using both fields allows configs to work with both old and new versions
6695    /// of the tracing service. Introduced in v54.
6696    #[prost(string, optional, tag="11")]
6697    pub target_buffer_name: ::core::option::Option<::prost::alloc::string::String>,
6698    /// Set by the service to indicate the duration of the trace.
6699    /// DO NOT SET in consumer as this will be overridden by the service.
6700    #[prost(uint32, optional, tag="3")]
6701    pub trace_duration_ms: ::core::option::Option<u32>,
6702    /// If true, |trace_duration_ms| should count also time in suspend. This
6703    /// is propagated from TraceConfig.prefer_suspend_clock_for_duration.
6704    #[prost(bool, optional, tag="122")]
6705    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
6706    /// Set by the service to indicate how long it waits after StopDataSource.
6707    /// DO NOT SET in consumer as this will be overridden by the service.
6708    #[prost(uint32, optional, tag="7")]
6709    pub stop_timeout_ms: ::core::option::Option<u32>,
6710    /// Set by the service to indicate whether this tracing session has extra
6711    /// guardrails.
6712    /// DO NOT SET in consumer as this will be overridden by the service.
6713    #[prost(bool, optional, tag="6")]
6714    pub enable_extra_guardrails: ::core::option::Option<bool>,
6715    /// Set by the service to indicate which user initiated this trace.
6716    /// DO NOT SET in consumer as this will be overridden by the service.
6717    #[prost(enumeration="data_source_config::SessionInitiator", optional, tag="8")]
6718    pub session_initiator: ::core::option::Option<i32>,
6719    /// Set by the service to indicate which tracing session the data source
6720    /// belongs to. The intended use case for this is checking if two data sources,
6721    /// one of which produces metadata for the other one, belong to the same trace
6722    /// session and hence should be linked together.
6723    /// This field was introduced in Aug 2018 after Android P.
6724    /// DO NOT SET in consumer as this will be overridden by the service.
6725    #[prost(uint64, optional, tag="4")]
6726    pub tracing_session_id: ::core::option::Option<u64>,
6727    /// How to behave when the producer runs out of space in the shared memory
6728    /// buffer. This is only honored by some data sources (in the SDK, the data
6729    /// sources registered with a configurable buffer exhausted policy).
6730    #[prost(enumeration="data_source_config::BufferExhaustedPolicy", optional, tag="9")]
6731    pub buffer_exhausted_policy: ::core::option::Option<i32>,
6732    #[prost(message, optional, tag="10")]
6733    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
6734    // If specified, the data source requires the tracing service to process
6735    // overwritten packets (patches) using a ProtoVM instance with this config.
6736    // The ProtoVM program is specified at data source registration time through
6737    // the descriptor.
6738
6739    /// TODO(primiano): today when we enable a protovm_config, we actually accept
6740    /// that if N producers advertise M different versions of the same program we
6741    /// will create M instances of that program.
6742    /// To overcome this, we could move the program to the TraceConfig. But doing
6743    /// so would bloat the trace config size too big and create problems to statsd.
6744    /// Once the config store (b/482305876) exists we should move protovm programs
6745    /// onto that.
6746    #[prost(message, optional, tag="12")]
6747    pub protovm_config: ::core::option::Option<ProtoVmConfig>,
6748    // Keep the lower IDs (up to 99) for fields that are *not* specific to
6749    // data-sources and needs to be processed by the traced daemon.
6750
6751    // All data source config fields must be marked as \[lazy=true\]. This prevents
6752    // the proto-to-cpp generator from recursing into those when generating the
6753    // cpp classes and polluting tracing/core with data-source-specific classes.
6754    // Instead they are treated as opaque strings containing raw proto bytes.
6755
6756    /// Data source name: linux.ftrace
6757    #[prost(message, optional, tag="100")]
6758    pub ftrace_config: ::core::option::Option<FtraceConfig>,
6759    /// Data source name: linux.inode_file_map
6760    #[prost(message, optional, tag="102")]
6761    pub inode_file_config: ::core::option::Option<InodeFileConfig>,
6762    /// Data source name: linux.process_stats
6763    #[prost(message, optional, tag="103")]
6764    pub process_stats_config: ::core::option::Option<ProcessStatsConfig>,
6765    /// Data source name: linux.sys_stats
6766    #[prost(message, optional, tag="104")]
6767    pub sys_stats_config: ::core::option::Option<SysStatsConfig>,
6768    /// Data source name: android.heapprofd
6769    /// Introduced in Android 10.
6770    #[prost(message, optional, tag="105")]
6771    pub heapprofd_config: ::core::option::Option<HeapprofdConfig>,
6772    /// Data source name: android.java_hprof
6773    /// Introduced in Android 11.
6774    #[prost(message, optional, tag="110")]
6775    pub java_hprof_config: ::core::option::Option<JavaHprofConfig>,
6776    /// Data source name: android.power
6777    #[prost(message, optional, tag="106")]
6778    pub android_power_config: ::core::option::Option<AndroidPowerConfig>,
6779    /// Data source name: android.log
6780    #[prost(message, optional, tag="107")]
6781    pub android_log_config: ::core::option::Option<AndroidLogConfig>,
6782    /// Data source name: gpu.counters
6783    #[prost(message, optional, tag="108")]
6784    pub gpu_counter_config: ::core::option::Option<GpuCounterConfig>,
6785    /// Data source name: android.game_interventions
6786    #[prost(message, optional, tag="116")]
6787    pub android_game_intervention_list_config: ::core::option::Option<AndroidGameInterventionListConfig>,
6788    /// Data source name: android.packages_list
6789    #[prost(message, optional, tag="109")]
6790    pub packages_list_config: ::core::option::Option<PackagesListConfig>,
6791    /// Data source name: linux.perf
6792    #[prost(message, optional, tag="111")]
6793    pub perf_event_config: ::core::option::Option<PerfEventConfig>,
6794    /// Data source name: vulkan.memory_tracker
6795    #[prost(message, optional, tag="112")]
6796    pub vulkan_memory_config: ::core::option::Option<VulkanMemoryConfig>,
6797    /// Data source name: track_event
6798    #[prost(message, optional, tag="113")]
6799    pub track_event_config: ::core::option::Option<TrackEventConfig>,
6800    /// Data source name: android.polled_state
6801    #[prost(message, optional, tag="114")]
6802    pub android_polled_state_config: ::core::option::Option<AndroidPolledStateConfig>,
6803    /// Data source name: android.system_property
6804    #[prost(message, optional, tag="118")]
6805    pub android_system_property_config: ::core::option::Option<AndroidSystemPropertyConfig>,
6806    /// Data source name: android.statsd
6807    #[prost(message, optional, tag="117")]
6808    pub statsd_tracing_config: ::core::option::Option<StatsdTracingConfig>,
6809    /// Data source name: linux.system_info
6810    #[prost(message, optional, tag="119")]
6811    pub system_info_config: ::core::option::Option<SystemInfoConfig>,
6812    /// Data source name: linux.frozen_ftrace
6813    #[prost(message, optional, tag="136")]
6814    pub frozen_ftrace_config: ::core::option::Option<FrozenFtraceConfig>,
6815    /// Chrome is special as it doesn't use the perfetto IPC layer. We want to
6816    /// avoid proto serialization and de-serialization there because that would
6817    /// just add extra hops on top of the Mojo ser/des. Instead we auto-generate a
6818    /// C++ class for it so it can pass around plain C++ objets.
6819    #[prost(message, optional, tag="101")]
6820    pub chrome_config: ::core::option::Option<ChromeConfig>,
6821    /// Data source name: code.v8.dev
6822    #[prost(message, optional, tag="127")]
6823    pub v8_config: ::core::option::Option<V8Config>,
6824    /// If an interceptor is specified here, packets for this data source will be
6825    /// rerouted to the interceptor instead of the main trace buffer. This can be
6826    /// used, for example, to write trace data into ETW or for logging trace points
6827    /// to the console.
6828    ///
6829    /// Note that interceptors are only supported by data sources registered
6830    /// through the Perfetto SDK API. Data sources that don't use that API (e.g.,
6831    /// traced_probes) may not support interception.
6832    #[prost(message, optional, tag="115")]
6833    pub interceptor_config: ::core::option::Option<InterceptorConfig>,
6834    /// Data source name: android.network_packets.
6835    /// Introduced in Android 14 (U).
6836    #[prost(message, optional, tag="120")]
6837    pub network_packet_trace_config: ::core::option::Option<NetworkPacketTraceConfig>,
6838    /// Data source name: android.surfaceflinger.layers
6839    #[prost(message, optional, tag="121")]
6840    pub surfaceflinger_layers_config: ::core::option::Option<SurfaceFlingerLayersConfig>,
6841    /// Data source name: android.surfaceflinger.transactions
6842    #[prost(message, optional, tag="123")]
6843    pub surfaceflinger_transactions_config: ::core::option::Option<SurfaceFlingerTransactionsConfig>,
6844    /// Data source name: android.sdk_sysprop_guard
6845    /// Introduced in Android 14 (U) QPR1.
6846    #[prost(message, optional, tag="124")]
6847    pub android_sdk_sysprop_guard_config: ::core::option::Option<AndroidSdkSyspropGuardConfig>,
6848    /// Data source name: windows.etw
6849    #[prost(message, optional, tag="125")]
6850    pub etw_config: ::core::option::Option<EtwConfig>,
6851    /// Data source name: android.protolog
6852    #[prost(message, optional, tag="126")]
6853    pub protolog_config: ::core::option::Option<ProtoLogConfig>,
6854    /// Data source name: android.input.inputevent
6855    #[prost(message, optional, tag="128")]
6856    pub android_input_event_config: ::core::option::Option<AndroidInputEventConfig>,
6857    /// Data source name: android.pixel.modem
6858    #[prost(message, optional, tag="129")]
6859    pub pixel_modem_config: ::core::option::Option<PixelModemConfig>,
6860    /// Data source name: android.windowmanager
6861    #[prost(message, optional, tag="130")]
6862    pub windowmanager_config: ::core::option::Option<WindowManagerConfig>,
6863    /// Data source name: org.chromium.system_metrics
6864    #[prost(message, optional, tag="131")]
6865    pub chromium_system_metrics: ::core::option::Option<ChromiumSystemMetricsConfig>,
6866    /// Data source name: android.kernel_wakelocks
6867    #[prost(message, optional, tag="132")]
6868    pub kernel_wakelocks_config: ::core::option::Option<KernelWakelocksConfig>,
6869    /// Data source name: gpu.renderstages
6870    #[prost(message, optional, tag="133")]
6871    pub gpu_renderstages_config: ::core::option::Option<GpuRenderStagesConfig>,
6872    /// Data source name: org.chromium.histogram_samples
6873    #[prost(message, optional, tag="134")]
6874    pub chromium_histogram_samples: ::core::option::Option<ChromiumHistogramSamplesConfig>,
6875    /// Data source name: android.app_wakelocks
6876    #[prost(message, optional, tag="135")]
6877    pub app_wakelocks_config: ::core::option::Option<AppWakelocksConfig>,
6878    /// Data source name: android.cpu_per_uid
6879    #[prost(message, optional, tag="137")]
6880    pub cpu_per_uid_config: ::core::option::Option<CpuPerUidConfig>,
6881    /// Data source name: android.user_list
6882    #[prost(message, optional, tag="138")]
6883    pub user_list_config: ::core::option::Option<AndroidUserListConfig>,
6884    /// Data source name: android.inputmethod
6885    #[prost(message, optional, tag="139")]
6886    pub inputmethod_config: ::core::option::Option<InputMethodConfig>,
6887    /// Data source name: android.aflags
6888    #[prost(message, optional, tag="140")]
6889    pub android_aflags_config: ::core::option::Option<AndroidAflagsConfig>,
6890    /// Data source name: qnx.kernel
6891    #[prost(message, optional, tag="150")]
6892    pub qnx_config: ::core::option::Option<QnxConfig>,
6893    /// This is a fallback mechanism to send a free-form text config to the
6894    /// producer. In theory this should never be needed. All the code that
6895    /// is part of the platform (i.e. traced service) is supposed to *not* truncate
6896    /// the trace config proto and propagate unknown fields. However, if anything
6897    /// in the pipeline (client or backend) ends up breaking this forward compat
6898    /// plan, this field will become the escape hatch to allow future data sources
6899    /// to get some meaningful configuration.
6900    #[prost(string, optional, tag="1000")]
6901    pub legacy_config: ::core::option::Option<::prost::alloc::string::String>,
6902    /// This field is only used for testing.
6903    #[prost(message, optional, tag="1001")]
6904    pub for_testing: ::core::option::Option<TestConfig>,
6905}
6906/// Nested message and enum types in `DataSourceConfig`.
6907pub mod data_source_config {
6908    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6909    #[repr(i32)]
6910    pub enum SessionInitiator {
6911        Unspecified = 0,
6912        /// This trace was initiated from a trusted system app has DUMP and
6913        /// USAGE_STATS permission. This system app is expected to not expose the
6914        /// trace to the user of the device.
6915        /// This is determined by checking the UID initiating the trace.
6916        TrustedSystem = 1,
6917    }
6918    impl SessionInitiator {
6919        /// String value of the enum field names used in the ProtoBuf definition.
6920        ///
6921        /// The values are not transformed in any way and thus are considered stable
6922        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6923        pub fn as_str_name(&self) -> &'static str {
6924            match self {
6925                SessionInitiator::Unspecified => "SESSION_INITIATOR_UNSPECIFIED",
6926                SessionInitiator::TrustedSystem => "SESSION_INITIATOR_TRUSTED_SYSTEM",
6927            }
6928        }
6929    }
6930    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6931    #[repr(i32)]
6932    pub enum BufferExhaustedPolicy {
6933        /// The data source will use its default buffer exhausted policy, specified
6934        /// by the code when the data source is registered.
6935        BufferExhaustedUnspecified = 0,
6936        /// The data source will drop packets when there's no space in the shared
6937        /// memory buffer.
6938        BufferExhaustedDrop = 1,
6939        /// The data source will wait when there's no space in the shared memory
6940        /// buffer. If there's still not space, after a few seconds, the whole
6941        /// producer process will be aborted.
6942        BufferExhaustedStallThenAbort = 2,
6943        /// The data source will wait when there's no space in the shared memory
6944        /// buffer.  If there's still not space, after a few seconds, the data source
6945        /// will drop packets.
6946        BufferExhaustedStallThenDrop = 3,
6947    }
6948    impl BufferExhaustedPolicy {
6949        /// String value of the enum field names used in the ProtoBuf definition.
6950        ///
6951        /// The values are not transformed in any way and thus are considered stable
6952        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6953        pub fn as_str_name(&self) -> &'static str {
6954            match self {
6955                BufferExhaustedPolicy::BufferExhaustedUnspecified => "BUFFER_EXHAUSTED_UNSPECIFIED",
6956                BufferExhaustedPolicy::BufferExhaustedDrop => "BUFFER_EXHAUSTED_DROP",
6957                BufferExhaustedPolicy::BufferExhaustedStallThenAbort => "BUFFER_EXHAUSTED_STALL_THEN_ABORT",
6958                BufferExhaustedPolicy::BufferExhaustedStallThenDrop => "BUFFER_EXHAUSTED_STALL_THEN_DROP",
6959            }
6960        }
6961    }
6962}
6963/// The overall config that is used when starting a new tracing session through
6964/// ProducerPort::StartTracing().
6965/// It contains the general config for the logging buffer(s) and the configs for
6966/// all the data source being enabled.
6967///
6968/// Next id: 47.
6969#[derive(Clone, PartialEq, ::prost::Message)]
6970pub struct TraceConfig {
6971    #[prost(message, repeated, tag="1")]
6972    pub buffers: ::prost::alloc::vec::Vec<trace_config::BufferConfig>,
6973    #[prost(message, repeated, tag="2")]
6974    pub data_sources: ::prost::alloc::vec::Vec<trace_config::DataSource>,
6975    #[prost(message, optional, tag="20")]
6976    pub builtin_data_sources: ::core::option::Option<trace_config::BuiltinDataSource>,
6977    /// If specified, the trace will be stopped |duration_ms| after starting.
6978    /// This does *not* count the time the system is suspended, so we will run
6979    /// for duration_ms of system activity, not wall time.
6980    ///
6981    /// However in case of traces with triggers, see
6982    /// TriggerConfig.trigger_timeout_ms instead.
6983    #[prost(uint32, optional, tag="3")]
6984    pub duration_ms: ::core::option::Option<u32>,
6985    /// If true, tries to use CLOCK_BOOTTIME for duration_ms rather than
6986    /// CLOCK_MONOTONIC (which doesn't count time in suspend). Supported only on
6987    /// Linux/Android, no-op on other platforms. This is used when dealing with
6988    /// long (e.g. 24h) traces, where suspend can inflate them to weeks of
6989    /// wall-time, making them more likely to hit device reboots (and hence loss).
6990    /// This option also changes consistently the semantic of
6991    /// TriggerConfig.stop_delay_ms.
6992    #[prost(bool, optional, tag="36")]
6993    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
6994    /// This is set when --dropbox is passed to the Perfetto command line client
6995    /// and enables guardrails that limit resource usage for traces requested
6996    /// by statsd.
6997    #[prost(bool, optional, tag="4")]
6998    pub enable_extra_guardrails: ::core::option::Option<bool>,
6999    /// Reject producers that are not running under the same UID as the tracing
7000    /// service.
7001    #[prost(enumeration="trace_config::LockdownModeOperation", optional, tag="5")]
7002    pub lockdown_mode: ::core::option::Option<i32>,
7003    #[prost(message, repeated, tag="6")]
7004    pub producers: ::prost::alloc::vec::Vec<trace_config::ProducerConfig>,
7005    /// Statsd-specific metadata.
7006    #[prost(message, optional, tag="7")]
7007    pub statsd_metadata: ::core::option::Option<trace_config::StatsdMetadata>,
7008    /// When true && |output_path| is empty, the EnableTracing() request must
7009    /// provide a file descriptor. The service will then periodically read packets
7010    /// out of the trace buffer and store it into the passed file.
7011    /// If |output_path| is not empty no fd should be passed, the service
7012    /// will create a new file and write into that (see comment below).
7013    #[prost(bool, optional, tag="8")]
7014    pub write_into_file: ::core::option::Option<bool>,
7015    /// This must point to a non-existing file. If the file exists the service
7016    /// will NOT overwrite and will fail instead as a security precaution.
7017    /// On Android, when this is used with the system traced, the path must be
7018    /// within /data/misc/perfetto-traces/ or the trace will fail.
7019    /// This option has been introduced in Android R. Before R write_into_file
7020    /// can be used only with the "pass a file descriptor over IPC" mode.
7021    #[prost(string, optional, tag="29")]
7022    pub output_path: ::core::option::Option<::prost::alloc::string::String>,
7023    /// Optional. If non-zero tunes the write period. A min value of 100ms is
7024    /// enforced (i.e. smaller values are ignored).
7025    #[prost(uint32, optional, tag="9")]
7026    pub file_write_period_ms: ::core::option::Option<u32>,
7027    /// Optional. When non zero the periodic write stops once at most X bytes
7028    /// have been written into the file. Tracing is disabled when this limit is
7029    /// reached, even if |duration_ms| has not been reached yet.
7030    #[prost(uint64, optional, tag="10")]
7031    pub max_file_size_bytes: ::core::option::Option<u64>,
7032    #[prost(message, optional, tag="11")]
7033    pub guardrail_overrides: ::core::option::Option<trace_config::GuardrailOverrides>,
7034    /// When true, data sources are not started until an explicit call to
7035    /// StartTracing() on the consumer port. This is to support early
7036    /// initialization and fast trace triggering. This can be used only when the
7037    /// Consumer explicitly triggers the StartTracing() method.
7038    /// This should not be used in a remote trace config via statsd, doing so will
7039    /// result in a hung trace session.
7040    #[prost(bool, optional, tag="12")]
7041    pub deferred_start: ::core::option::Option<bool>,
7042    /// When set, it periodically issues a Flush() to all data source, forcing them
7043    /// to commit their data into the tracing service. This can be used for
7044    /// quasi-real-time streaming mode and to guarantee some partial ordering of
7045    /// events in the trace in windows of X ms.
7046    ///
7047    /// Warning: Perfetto automatically handles periodic flushing so in most
7048    /// scenarios setting this field is not needed. High frequency flushing can
7049    /// significantly impact performance.
7050    #[prost(uint32, optional, tag="13")]
7051    pub flush_period_ms: ::core::option::Option<u32>,
7052    /// Wait for this long for producers to acknowledge flush requests.
7053    /// Default 5s.
7054    #[prost(uint32, optional, tag="14")]
7055    pub flush_timeout_ms: ::core::option::Option<u32>,
7056    /// Wait for this long for producers to acknowledge stop requests.
7057    /// Default 5s.
7058    #[prost(uint32, optional, tag="23")]
7059    pub data_source_stop_timeout_ms: ::core::option::Option<u32>,
7060    /// Android-only. If set, sends an intent to the Traceur system app when the
7061    /// trace ends to notify it about the trace readiness.
7062    #[prost(bool, optional, tag="16")]
7063    pub notify_traceur: ::core::option::Option<bool>,
7064    /// This field was introduced in Android S.
7065    /// Android-only. If set to a value > 0, marks the trace session as a candidate
7066    /// for being attached to a bugreport. This field effectively acts as a z-index
7067    /// for bugreports. When Android's dumpstate runs perfetto
7068    /// --save-for-bugreport, traced will pick the tracing session with the highest
7069    /// score (score <= 0 is ignored) and:
7070    /// On Android S, T:  will steal its contents, save the trace into
7071    ///      a known path and stop prematurely.
7072    /// On Android U+: will create a read-only snapshot and save that into a known
7073    ///      path, without stoppin the original tracing session.
7074    /// When this field is set the tracing session becomes eligible to be cloned
7075    /// by other UIDs.
7076    #[prost(int32, optional, tag="30")]
7077    pub bugreport_score: ::core::option::Option<i32>,
7078    /// When set, defines name of the file that will be saved under
7079    /// /data/misc/perfetto-traces/bugreport/ when using --save-all-for-bugreport.
7080    /// If omitted, traces will be named systrace.pftrace, systrace_1.pftrace, etc,
7081    /// starting from the highest `bugreport_score`.
7082    /// Introduced in v42 / Android V.
7083    #[prost(string, optional, tag="38")]
7084    pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
7085    #[prost(message, optional, tag="17")]
7086    pub trigger_config: ::core::option::Option<trace_config::TriggerConfig>,
7087    /// When this is non-empty the perfetto command line tool will ignore the rest
7088    /// of this TraceConfig and instead connect to the perfetto service as a
7089    /// producer and send these triggers, potentially stopping or starting traces
7090    /// that were previous configured to use a TriggerConfig.
7091    #[prost(string, repeated, tag="18")]
7092    pub activate_triggers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7093    #[prost(message, optional, tag="21")]
7094    pub incremental_state_config: ::core::option::Option<trace_config::IncrementalStateConfig>,
7095    /// No longer needed as we unconditionally allow tracing on user builds.
7096    #[deprecated]
7097    #[prost(bool, optional, tag="19")]
7098    pub allow_user_build_tracing: ::core::option::Option<bool>,
7099    /// If set the tracing service will ensure there is at most one tracing session
7100    /// with this key.
7101    #[prost(string, optional, tag="22")]
7102    pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
7103    #[prost(enumeration="trace_config::CompressionType", optional, tag="24")]
7104    pub compression_type: ::core::option::Option<i32>,
7105    #[prost(message, optional, tag="25")]
7106    pub incident_report_config: ::core::option::Option<trace_config::IncidentReportConfig>,
7107    /// Android-only. Not for general use. If specified, sets the logging to statsd
7108    /// of guardrails and checkpoints in the tracing service. perfetto_cmd sets
7109    /// this to enabled (if not explicitly set in the config) when specifying
7110    /// --upload.
7111    #[prost(enumeration="trace_config::StatsdLogging", optional, tag="31")]
7112    pub statsd_logging: ::core::option::Option<i32>,
7113    /// An identifier clients can use to tie this trace to other logging.
7114    /// DEPRECATED as per v32. See TracePacket.trace_uuid for the authoritative
7115    /// Trace UUID. If this field is set, the tracing service will respect the
7116    /// requested UUID (i.e. TracePacket.trace_uuid == this field) but only if
7117    /// gap-less snapshotting is not used.
7118    #[deprecated]
7119    #[prost(int64, optional, tag="27")]
7120    pub trace_uuid_msb: ::core::option::Option<i64>,
7121    #[deprecated]
7122    #[prost(int64, optional, tag="28")]
7123    pub trace_uuid_lsb: ::core::option::Option<i64>,
7124    #[prost(message, optional, tag="33")]
7125    pub trace_filter: ::core::option::Option<trace_config::TraceFilter>,
7126    #[prost(message, optional, tag="34")]
7127    pub android_report_config: ::core::option::Option<trace_config::AndroidReportConfig>,
7128    #[prost(message, optional, tag="35")]
7129    pub cmd_trace_start_delay: ::core::option::Option<trace_config::CmdTraceStartDelay>,
7130    #[prost(message, repeated, tag="39")]
7131    pub session_semaphores: ::prost::alloc::vec::Vec<trace_config::SessionSemaphore>,
7132    /// Priority boost to be applied to the traced process, when the session is
7133    /// running.
7134    #[prost(message, optional, tag="40")]
7135    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
7136    /// When set to a value > 0, this tracing session will be started in
7137    /// "exclusive mode". This has the following semantics:
7138    /// - It can only be set by shell or root users.
7139    /// - A new exclusive session will only be started if its priority is strictly
7140    ///    higher than any other active tracing session.
7141    /// - If a new exclusive session is started, all other existing tracing
7142    ///    sessions (exclusive or not) are aborted.
7143    /// - While an exclusive session is active, any new non-exclusive session (or
7144    ///    any exclusive session with a lower or equal priority) will be rejected.
7145    ///
7146    /// Introduced in: perfetto v52.
7147    /// Supported on: Android 25Q3+.
7148    #[prost(uint32, optional, tag="41")]
7149    pub exclusive_prio: ::core::option::Option<u32>,
7150    /// Configures how the service should handle flushing data from producers
7151    /// before periodically writing the trace into the output file.
7152    /// Only applicable when |write_into_file| is true.
7153    ///
7154    /// By default, if |write_into_file| is set, the service periodically issues
7155    /// a Flush() to all data sources before writing buffers into the file.
7156    /// This ensures the file always contains the latest available data.
7157    ///
7158    /// Introduced in: perfetto v54.
7159    /// Supported on: Android 26Q1+.
7160    #[prost(enumeration="trace_config::WriteFlushMode", optional, tag="44")]
7161    pub write_flush_mode: ::core::option::Option<i32>,
7162    /// Whether to sync the output file to storage after each periodic write pass.
7163    /// Only applicable when |write_into_file| is true.
7164    ///
7165    /// By default, no fflush is invoked. FFLUSH_ENABLED must be set to explicitly
7166    /// sync to storage on every write.
7167    ///
7168    /// Introduced in: perfetto v54.
7169    /// Supported on: Android 26Q1+.
7170    #[prost(enumeration="trace_config::FFlushMode", optional, tag="45")]
7171    pub fflush_post_write: ::core::option::Option<i32>,
7172    /// When true, data sources in remote producers (machines connected via
7173    /// traced_relay) will be matched by default. When false (the default), data
7174    /// sources only match the host machine. In either case, an explicit
7175    /// |DataSource.machine_name_filter| takes priority.
7176    ///
7177    /// NB: perfetto versions before v54 do not have this option and match across
7178    /// machines by default. To be compatible across this version boundary, either
7179    /// set this field to true, or set an explicit machine_name_filter on all data
7180    /// sources.
7181    ///
7182    /// Introduced in: perfetto v54.
7183    #[prost(bool, optional, tag="43")]
7184    pub trace_all_machines: ::core::option::Option<bool>,
7185    #[prost(message, repeated, tag="46")]
7186    pub notes: ::prost::alloc::vec::Vec<trace_config::Note>,
7187}
7188/// Nested message and enum types in `TraceConfig`.
7189pub mod trace_config {
7190    #[derive(Clone, PartialEq, ::prost::Message)]
7191    pub struct BufferConfig {
7192        #[prost(uint32, optional, tag="1")]
7193        pub size_kb: ::core::option::Option<u32>,
7194        #[prost(enumeration="buffer_config::FillPolicy", optional, tag="4")]
7195        pub fill_policy: ::core::option::Option<i32>,
7196        /// When true the buffer is moved (rather than copied) onto the cloned
7197        /// session, and an empty buffer of the same size is allocated in the source
7198        /// tracing session. This feature will likely get deprecated in the future.
7199        /// It been introduced mainly to support the surfaceflinger snapshot dump
7200        /// for bugreports, where SF can dumps O(400MB) into the bugreport trace. In
7201        /// that case we don't want to retain another in-memory copy of the buffer.
7202        #[prost(bool, optional, tag="5")]
7203        pub transfer_on_clone: ::core::option::Option<bool>,
7204        /// Used in conjunction with transfer_on_clone. When true the buffer is
7205        /// cleared before issuing the Flush(reason=kTraceClone). This is to ensure
7206        /// that if the data source took too long to write the data in a previous
7207        /// clone-related flush, we don't end up with a mixture of leftovers from
7208        /// the previous write and new data.
7209        #[prost(bool, optional, tag="6")]
7210        pub clear_before_clone: ::core::option::Option<bool>,
7211        /// Optional name for this buffer. If set, data sources can reference this
7212        /// buffer by name using |target_buffer_name| in DataSourceConfig instead of
7213        /// using the buffer index. Buffer names must be unique within a tracing
7214        /// session. This provides a more human-readable and less error-prone way to
7215        /// configure which buffer a data source writes to.
7216        #[prost(string, optional, tag="7")]
7217        pub name: ::core::option::Option<::prost::alloc::string::String>,
7218        #[prost(enumeration="buffer_config::ExperimentalMode", optional, tag="8")]
7219        pub experimental_mode: ::core::option::Option<i32>,
7220    }
7221    /// Nested message and enum types in `BufferConfig`.
7222    pub mod buffer_config {
7223        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7224        #[repr(i32)]
7225        pub enum FillPolicy {
7226            Unspecified = 0,
7227            /// Default behavior. The buffer operates as a conventional ring buffer.
7228            /// If the writer is faster than the reader (or if the reader reads only
7229            /// after tracing is stopped) newly written packets will overwrite old
7230            /// packets.
7231            RingBuffer = 1,
7232            /// Behaves like RING_BUFFER as long as there is space in the buffer or
7233            /// the reader catches up with the writer. As soon as the writer hits
7234            /// an unread chunk, it stops accepting new data in the buffer.
7235            Discard = 2,
7236        }
7237        impl FillPolicy {
7238            /// String value of the enum field names used in the ProtoBuf definition.
7239            ///
7240            /// The values are not transformed in any way and thus are considered stable
7241            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7242            pub fn as_str_name(&self) -> &'static str {
7243                match self {
7244                    FillPolicy::Unspecified => "UNSPECIFIED",
7245                    FillPolicy::RingBuffer => "RING_BUFFER",
7246                    FillPolicy::Discard => "DISCARD",
7247                }
7248            }
7249        }
7250        /// When true, uses the experimental TraceBufferV2 implementation for this
7251        /// buffer. This is for testing purposes only and may be removed in future
7252        /// versions.
7253        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7254        #[repr(i32)]
7255        pub enum ExperimentalMode {
7256            /// Use the default V1 implementation.
7257            ModeUnspecified = 0,
7258            /// Use TraceBufferV2.
7259            TraceBufferV2 = 1,
7260            /// Use both V1 and V2 in shadow mode. Data is written to both buffers,
7261            /// but only V1 data is returned. Comparison stats are reported to
7262            /// validate V2 returns equivalent data.
7263            TraceBufferV2ShadowMode = 2,
7264        }
7265        impl ExperimentalMode {
7266            /// String value of the enum field names used in the ProtoBuf definition.
7267            ///
7268            /// The values are not transformed in any way and thus are considered stable
7269            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7270            pub fn as_str_name(&self) -> &'static str {
7271                match self {
7272                    ExperimentalMode::ModeUnspecified => "MODE_UNSPECIFIED",
7273                    ExperimentalMode::TraceBufferV2 => "TRACE_BUFFER_V2",
7274                    ExperimentalMode::TraceBufferV2ShadowMode => "TRACE_BUFFER_V2_SHADOW_MODE",
7275                }
7276            }
7277        }
7278    }
7279    #[derive(Clone, PartialEq, ::prost::Message)]
7280    pub struct DataSource {
7281        /// Filters and data-source specific config. It contains also the unique name
7282        /// of the data source, the one passed in the  DataSourceDescriptor when they
7283        /// register on the service.
7284        #[prost(message, optional, tag="1")]
7285        pub config: ::core::option::Option<super::DataSourceConfig>,
7286        /// Optional. If multiple producers (~processes) expose the same data source
7287        /// and either |producer_name_filter| or |producer_name_regex_filter| is set,
7288        /// the data source is enabled only for producers whose names match any of
7289        /// the filters.
7290        /// |producer_name_filter| has to be an exact match, while
7291        /// |producer_name_regex_filter| is a regular expression.
7292        /// This allows to enable a data source only for specific processes.
7293        /// The "repeated" fields have OR semantics: specifying a filter ["foo",
7294        /// "bar"] will enable data sources on both "foo" and "bar" (if they exist).
7295        #[prost(string, repeated, tag="2")]
7296        pub producer_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7297        #[prost(string, repeated, tag="3")]
7298        pub producer_name_regex_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7299        /// Filter by machine names. The name of a machine is determined by the
7300        /// PERFETTO_MACHINE_NAME env variable. In Android systems, if the env
7301        /// variable is not set then the
7302        /// persist.traced_relay.machine_name system property is used. If the
7303        /// sysprop isn't set or not in an Android system, then the machine name by
7304        /// default is set to the utsname sysname (e.g. Linux), which can be obtained
7305        /// via the 'uname -s' command. As a convenience, one can use "host" to refer
7306        /// to the host machine, which is the machine running traced.
7307        #[prost(string, repeated, tag="4")]
7308        pub machine_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7309    }
7310    /// Config for disabling builtin data sources in the tracing service.
7311    #[derive(Clone, PartialEq, ::prost::Message)]
7312    pub struct BuiltinDataSource {
7313        /// Disable emitting clock timestamps into the trace.
7314        #[prost(bool, optional, tag="1")]
7315        pub disable_clock_snapshotting: ::core::option::Option<bool>,
7316        /// Disable echoing the original trace config in the trace.
7317        #[prost(bool, optional, tag="2")]
7318        pub disable_trace_config: ::core::option::Option<bool>,
7319        /// Disable emitting system info (build fingerprint, cpuinfo, etc).
7320        #[prost(bool, optional, tag="3")]
7321        pub disable_system_info: ::core::option::Option<bool>,
7322        /// Disable emitting events for data-source state changes (e.g. the marker
7323        /// for all data sources having ACKed the start of the trace).
7324        #[prost(bool, optional, tag="4")]
7325        pub disable_service_events: ::core::option::Option<bool>,
7326        /// The authoritative clock domain for the trace. Defaults to BOOTTIME. See
7327        /// also ClockSnapshot's primary_trace_clock. The configured value is written
7328        /// into the trace as part of the ClockSnapshots emitted by the service.
7329        /// Trace processor will attempt to translate packet/event timestamps from
7330        /// various data sources (and their chosen clock domains) to this domain
7331        /// during import. Added in Android R.
7332        #[prost(enumeration="super::BuiltinClock", optional, tag="5")]
7333        pub primary_trace_clock: ::core::option::Option<i32>,
7334        /// Time interval in between snapshotting of sync markers, clock snapshots,
7335        /// stats, and other periodic service-emitted events. Note that the service
7336        /// only keeps track of the first and the most recent snapshot until
7337        /// ReadBuffers() is called.
7338        #[prost(uint32, optional, tag="6")]
7339        pub snapshot_interval_ms: ::core::option::Option<u32>,
7340        /// Hints to the service that a suspend-aware (i.e. counting time in suspend)
7341        /// clock should be used for periodic snapshots of service-emitted events.
7342        /// This means, if a snapshot *should* have happened during suspend, it will
7343        /// happen immediately after the device resumes.
7344        ///
7345        /// Choosing a clock like this is done on best-effort basis; not all
7346        /// platforms (e.g. Windows) expose a clock which can be used for periodic
7347        /// tasks counting suspend. If such a clock is not available, the service
7348        /// falls back to the best-available alternative.
7349        ///
7350        /// Introduced in Android S.
7351        /// TODO(lalitm): deprecate this in T and make this the default if nothing
7352        /// crashes in S.
7353        #[prost(bool, optional, tag="7")]
7354        pub prefer_suspend_clock_for_snapshot: ::core::option::Option<bool>,
7355        /// Disables the reporting of per-trace-writer histograms in TraceStats.
7356        #[prost(bool, optional, tag="8")]
7357        pub disable_chunk_usage_histograms: ::core::option::Option<bool>,
7358        /// Disable emitting extension descriptors into the trace.
7359        #[prost(bool, optional, tag="9")]
7360        pub disable_extension_descriptors: ::core::option::Option<bool>,
7361    }
7362    #[derive(Clone, PartialEq, ::prost::Message)]
7363    pub struct ProducerConfig {
7364        /// Identifies the producer for which this config is for.
7365        #[prost(string, optional, tag="1")]
7366        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
7367        /// Specifies the preferred size of the shared memory buffer. If the size is
7368        /// larger than the max size, the max will be used. If it is smaller than
7369        /// the page size or doesn't fit pages evenly into it, it will fall back to
7370        /// the size specified by the producer or finally the default shared memory
7371        /// size.
7372        #[prost(uint32, optional, tag="2")]
7373        pub shm_size_kb: ::core::option::Option<u32>,
7374        /// Specifies the preferred size of each page in the shared memory buffer.
7375        /// Must be an integer multiple of 4K.
7376        #[prost(uint32, optional, tag="3")]
7377        pub page_size_kb: ::core::option::Option<u32>,
7378    }
7379    /// Contains statsd-specific metadata about an alert associated with the trace.
7380    #[derive(Clone, PartialEq, ::prost::Message)]
7381    pub struct StatsdMetadata {
7382        /// The identifier of the alert which triggered this trace.
7383        #[prost(int64, optional, tag="1")]
7384        pub triggering_alert_id: ::core::option::Option<i64>,
7385        /// The uid which registered the triggering configuration with statsd.
7386        #[prost(int32, optional, tag="2")]
7387        pub triggering_config_uid: ::core::option::Option<i32>,
7388        /// The identifier of the config which triggered the alert.
7389        #[prost(int64, optional, tag="3")]
7390        pub triggering_config_id: ::core::option::Option<i64>,
7391        /// The identifier of the subscription which triggered this trace.
7392        #[prost(int64, optional, tag="4")]
7393        pub triggering_subscription_id: ::core::option::Option<i64>,
7394    }
7395    /// Contains flags which override the default values of the guardrails inside
7396    /// Perfetto.
7397    #[derive(Clone, PartialEq, ::prost::Message)]
7398    pub struct GuardrailOverrides {
7399        /// Override the default limit (in bytes) for uploading data to server within
7400        /// a 24 hour period.
7401        /// On R-, this override only affected userdebug builds. Since S, it also
7402        /// affects user builds.
7403        /// In 24Q3+ (V+), this override is a noop because upload guardrail logic
7404        /// was removed from Perfetto.
7405        #[deprecated]
7406        #[prost(uint64, optional, tag="1")]
7407        pub max_upload_per_day_bytes: ::core::option::Option<u64>,
7408        /// Overrides the guardrail for maximum trace buffer size.
7409        /// Available on U+
7410        #[prost(uint32, optional, tag="2")]
7411        pub max_tracing_buffer_size_kb: ::core::option::Option<u32>,
7412    }
7413    /// Triggers allow producers to start or stop the tracing session when an event
7414    /// occurs.
7415    ///
7416    /// For example if we are tracing probabilistically, most traces will be
7417    /// uninteresting. Triggers allow us to keep only the interesting ones such as
7418    /// those traces during which the device temperature reached a certain
7419    /// threshold. In this case the producer can activate a trigger to keep
7420    /// (STOP_TRACING) the trace, otherwise it can also begin a trace
7421    /// (START_TRACING) because it knows something is about to happen.
7422    #[derive(Clone, PartialEq, ::prost::Message)]
7423    pub struct TriggerConfig {
7424        #[prost(enumeration="trigger_config::TriggerMode", optional, tag="1")]
7425        pub trigger_mode: ::core::option::Option<i32>,
7426        /// This flag is really a workaround for b/274931668. This is needed only
7427        /// when deploying configs to different versions of the tracing service.
7428        /// When this is set to true this has the same effect of setting trigger_mode
7429        /// to CLONE_SNAPSHOT on newer versions of the service. This boolean has been
7430        /// introduced to allow to have configs that use CLONE_SNAPSHOT on newer
7431        /// versions of Android and fall back to STOP_TRACING on older versions where
7432        /// CLONE_SNAPSHOT did not exist.
7433        /// When using this flag, trigger_mode must be set to STOP_TRACING.
7434        #[prost(bool, optional, tag="5")]
7435        pub use_clone_snapshot_if_available: ::core::option::Option<bool>,
7436        /// A list of triggers which are related to this configuration. If ANY
7437        /// trigger is seen then an action will be performed based on |trigger_mode|.
7438        #[prost(message, repeated, tag="2")]
7439        pub triggers: ::prost::alloc::vec::Vec<trigger_config::Trigger>,
7440        /// Required and must be positive if a TriggerConfig is specified. This is
7441        /// how long this TraceConfig should wait for a trigger to arrive. After this
7442        /// period of time if no trigger is seen the TracingSession will be cleaned
7443        /// up.
7444        #[prost(uint32, optional, tag="3")]
7445        pub trigger_timeout_ms: ::core::option::Option<u32>,
7446    }
7447    /// Nested message and enum types in `TriggerConfig`.
7448    pub mod trigger_config {
7449        #[derive(Clone, PartialEq, ::prost::Message)]
7450        pub struct Trigger {
7451            /// The producer must specify this name to activate the trigger.
7452            #[prost(string, optional, tag="1")]
7453            pub name: ::core::option::Option<::prost::alloc::string::String>,
7454            /// An std::regex that will match the producer that can activate this
7455            /// trigger. This is optional. If unset any producers can activate this
7456            /// trigger.
7457            #[prost(string, optional, tag="2")]
7458            pub producer_name_regex: ::core::option::Option<::prost::alloc::string::String>,
7459            /// After a trigger is received either in START_TRACING or STOP_TRACING
7460            /// mode then the trace will end |stop_delay_ms| after triggering.
7461            /// In CLONE_SNAPSHOT mode, this is the delay between the trigger and the
7462            /// snapshot.
7463            /// If |prefer_suspend_clock_for_duration| is set, the duration will be
7464            /// based on wall-clock, counting also time in suspend.
7465            #[prost(uint32, optional, tag="3")]
7466            pub stop_delay_ms: ::core::option::Option<u32>,
7467            /// Limits the number of traces this trigger can start/stop in a rolling
7468            /// 24 hour window. If this field is unset or zero, no limit is applied and
7469            /// activiation of this trigger *always* starts/stops the trace.
7470            #[prost(uint32, optional, tag="4")]
7471            pub max_per_24_h: ::core::option::Option<u32>,
7472            /// A value between 0 and 1 which encodes the probability of skipping a
7473            /// trigger with this name. This is useful for reducing the probability
7474            /// of high-frequency triggers from dominating trace finaization. If this
7475            /// field is unset or zero, the trigger will *never* be skipped. If this
7476            /// field is greater than or equal to 1, this trigger will *always* be
7477            /// skipped i.e. it will be as if this trigger was never included in the
7478            /// first place.
7479            /// This probability check is applied *before* any other limits. For
7480            /// example, if |max_per_24_h| is also set, first we will check if the
7481            /// probability bar is met and only then will we check the |max_per_24_h|
7482            /// limit.
7483            #[prost(double, optional, tag="5")]
7484            pub skip_probability: ::core::option::Option<f64>,
7485        }
7486        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7487        #[repr(i32)]
7488        pub enum TriggerMode {
7489            Unspecified = 0,
7490            /// When this mode is chosen, data sources are not started until one of the
7491            /// |triggers| are received. This supports early initialization and fast
7492            /// starting of the tracing system. On triggering, the session will then
7493            /// record for |stop_delay_ms|. However if no trigger is seen
7494            /// after |trigger_timeout_ms| the session will be stopped and no data will
7495            /// be returned.
7496            StartTracing = 1,
7497            /// When this mode is chosen, the session will be started via the normal
7498            /// EnableTracing() & StartTracing(). If no trigger is ever seen
7499            /// the session will be stopped after |trigger_timeout_ms| and no data will
7500            /// be returned. However if triggered the trace will stop after
7501            /// |stop_delay_ms| and any data in the buffer will be returned to the
7502            /// consumer.
7503            StopTracing = 2,
7504            /// When this mode is chosen, this causes a snapshot of the current tracing
7505            /// session to be created after |stop_delay_ms| while the current tracing
7506            /// session continues undisturbed (% an extra flush). This mode can be
7507            /// used only when the tracing session is handled by the "perfetto" cmdline
7508            /// client (which is true in 90% of cases). Part of the business logic
7509            /// necessary for this behavior, and ensuing file handling, lives in
7510            /// perfetto_cmd.cc . On other consumers, this causes only a notification
7511            /// of the trigger through a CloneTriggerHit ObservableEvent. The custom
7512            /// consumer is supposed to call CloneSession() itself after the event.
7513            /// Use use_clone_snapshot_if_available=true when targeting older versions
7514            /// of perfetto.
7515            CloneSnapshot = 4,
7516        }
7517        impl TriggerMode {
7518            /// String value of the enum field names used in the ProtoBuf definition.
7519            ///
7520            /// The values are not transformed in any way and thus are considered stable
7521            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7522            pub fn as_str_name(&self) -> &'static str {
7523                match self {
7524                    TriggerMode::Unspecified => "UNSPECIFIED",
7525                    TriggerMode::StartTracing => "START_TRACING",
7526                    TriggerMode::StopTracing => "STOP_TRACING",
7527                    TriggerMode::CloneSnapshot => "CLONE_SNAPSHOT",
7528                }
7529            }
7530        }
7531    }
7532    /// Configuration for trace contents that reference earlier trace data. For
7533    /// example, a data source might intern strings, and emit packets containing
7534    /// {interned id : string} pairs. Future packets from that data source can then
7535    /// use the interned ids instead of duplicating the raw string contents. The
7536    /// trace parser will then need to use that interning table to fully interpret
7537    /// the rest of the trace.
7538    #[derive(Clone, PartialEq, ::prost::Message)]
7539    pub struct IncrementalStateConfig {
7540        /// If nonzero, notify eligible data sources to clear their incremental state
7541        /// periodically, with the given period. The notification is sent only to
7542        /// data sources that have |handles_incremental_state_clear| set in their
7543        /// DataSourceDescriptor. The notification requests that the data source
7544        /// stops referring to past trace contents. This is particularly useful when
7545        /// tracing in ring buffer mode, where it is not exceptional to overwrite old
7546        /// trace data.
7547        ///
7548        /// Warning: this time-based global clearing is likely to be removed in the
7549        /// future, to be replaced with a smarter way of sending the notifications
7550        /// only when necessary.
7551        #[prost(uint32, optional, tag="1")]
7552        pub clear_period_ms: ::core::option::Option<u32>,
7553    }
7554    /// Android-only. Not for general use. If set, saves the trace into an
7555    /// incident. This field is read by perfetto_cmd, rather than the tracing
7556    /// service. This field must be set when passing the --upload flag to
7557    /// perfetto_cmd.
7558    ///
7559    /// In this message, either:
7560    ///   * all of |destination_package|, |destination_class| and |privacy_level|
7561    ///     must be set.
7562    ///   * |skip_incidentd| must be explicitly set to true.
7563    #[derive(Clone, PartialEq, ::prost::Message)]
7564    pub struct IncidentReportConfig {
7565        #[prost(string, optional, tag="1")]
7566        pub destination_package: ::core::option::Option<::prost::alloc::string::String>,
7567        #[prost(string, optional, tag="2")]
7568        pub destination_class: ::core::option::Option<::prost::alloc::string::String>,
7569        /// Level of filtering in the requested incident. See |Destination| in
7570        /// frameworks/base/core/proto/android/privacy.proto.
7571        #[prost(int32, optional, tag="3")]
7572        pub privacy_level: ::core::option::Option<i32>,
7573        /// If true, then skips saving the trace to incidentd.
7574        ///
7575        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
7576        /// or when we explicitly don't want traces to go to incidentd even when they
7577        /// usually would (e.g. configs deployed using statsd but only used for
7578        /// inclusion in bugreports using |bugreport_score|).
7579        ///
7580        /// The motivation for having this flag, instead of just not setting
7581        /// |incident_report_config|, is prevent accidents where
7582        /// |incident_report_config| is omitted by mistake.
7583        #[prost(bool, optional, tag="5")]
7584        pub skip_incidentd: ::core::option::Option<bool>,
7585        /// If true, do not write the trace into dropbox (i.e. incident only).
7586        /// Otherwise, write to both dropbox and incident.
7587        /// TODO(lalitm): remove this field as we no longer use Dropbox.
7588        #[deprecated]
7589        #[prost(bool, optional, tag="4")]
7590        pub skip_dropbox: ::core::option::Option<bool>,
7591    }
7592    /// When set applies a post-filter to the trace contents using the filter
7593    /// provided. The filter is applied at ReadBuffers() time and works both in the
7594    /// case of IPC readback and write_into_file. This filter can be generated
7595    /// using `tools/proto_filter -s schema.proto -F filter_out.bytes` or
7596    /// `-T filter_out.escaped_string` (for .pbtx). See go/trace-filtering for
7597    /// design.
7598    ///
7599    /// Introduced in Android S, but it was broken (b/195065199). Reintroduced in
7600    /// Android T with a different field number. Updated in Android U with a new
7601    /// bytecode version which supports string filtering.
7602    ///
7603    /// =========================
7604    /// Filter bytecode.
7605    /// =========================
7606    #[derive(Clone, PartialEq, ::prost::Message)]
7607    pub struct TraceFilter {
7608        /// The bytecode as implemented in Android T.
7609        #[prost(bytes="vec", optional, tag="1")]
7610        pub bytecode: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7611        /// The bytecode as implemented in Android U. Adds support for string
7612        /// filtering.
7613        #[prost(bytes="vec", optional, tag="2")]
7614        pub bytecode_v2: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7615        #[prost(message, optional, tag="3")]
7616        pub string_filter_chain: ::core::option::Option<trace_filter::StringFilterChain>,
7617        /// Bytecode overlay for Perfetto v54+. This overlay is applied on top of
7618        /// bytecode_v2 to upgrade specific simple fields to new values. Old Perfetto
7619        /// versions ignore this field; new versions apply it.
7620        ///
7621        /// The motivation for this is that adding new opcodes in a backwards
7622        /// compatible way while also minimizing config size is hard. Instead, the
7623        /// overlay mechanism allows us to "patch" specific fields in the original
7624        /// bytecode_v2 with new semantics.
7625        ///
7626        /// See RFC 0011-subset-string-filter-rules.md for more info.
7627        ///
7628        /// Note:
7629        /// Unlike bytecode_v2 (which uses implicit message indices via EndOfMessage
7630        /// markers), this overlay uses a triplet format with explicit indices:
7631        ///    [msg_index, field_id << 3 | opcode, argument] ... \[checksum\]
7632        /// Each entry is exactly 3 varints. The argument is 0 when not needed.
7633        /// Entries must be sorted by (msg_index, field_id).
7634        ///
7635        /// The parser processes bytecode_v2 and this overlay simultaneously:
7636        ///   - any field not mentioned in the overlay is parsed as usual
7637        ///   - any field in the overlay but *not* in the bytecode_v2 is added
7638        ///     with its overlay value
7639        ///   - any field in both the overlay and bytecode_v2 takes the value in the
7640        ///     overlay, the bytecode_v2 value is ignored.
7641        ///
7642        /// Note: despite the name, this was broken in v54 (the overlay was not
7643        /// passed through to the bytecode parser). Only works in v55+.
7644        #[prost(bytes="vec", optional, tag="4")]
7645        pub bytecode_overlay_v54: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7646        /// String filter chain for Perfetto v54+. Rules in this chain either
7647        /// overwrite rules in string_filter_chain (if the name matches) or are
7648        /// appended (if the name doesn't match). This allows modifying existing
7649        /// rules (e.g., changing policy) without duplicating the entire chain.
7650        /// Rules without a name are always appended.
7651        /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7652        /// Introduced in: Perfetto v54.
7653        #[prost(message, optional, tag="5")]
7654        pub string_filter_chain_v54: ::core::option::Option<trace_filter::StringFilterChain>,
7655    }
7656    /// Nested message and enum types in `TraceFilter`.
7657    pub mod trace_filter {
7658        /// A rule specifies how strings should be filtered.
7659        #[derive(Clone, PartialEq, ::prost::Message)]
7660        pub struct StringFilterRule {
7661            /// The policy (i.e. algorithm) dictating how strings matching this rule
7662            /// should be handled.
7663            #[prost(enumeration="StringFilterPolicy", optional, tag="1")]
7664            pub policy: ::core::option::Option<i32>,
7665            /// The regex pattern used to match against each string.
7666            #[prost(string, optional, tag="2")]
7667            pub regex_pattern: ::core::option::Option<::prost::alloc::string::String>,
7668            /// The string which should appear after the tgid in atrace tracepoint
7669            /// strings.
7670            #[prost(string, optional, tag="3")]
7671            pub atrace_payload_starts_with: ::core::option::Option<::prost::alloc::string::String>,
7672            /// Optional name for the rule. When merging chains (e.g. via
7673            /// string_filter_chain_v54), rules with matching names in the newer chain
7674            /// will overwrite rules in the base chain. Rules without a name (empty or
7675            /// unset) are always treated as distinct and will be appended.
7676            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7677            /// Introduced in: Perfetto v54.
7678            #[prost(string, optional, tag="4")]
7679            pub name: ::core::option::Option<::prost::alloc::string::String>,
7680            /// The semantic types this rule applies to.
7681            ///
7682            /// SEMANTIC_TYPE_UNSPECIFIED (0) is treated as its own distinct category:
7683            /// - If empty, the rule applies only to fields with UNSPECIFIED type.
7684            /// - If non-empty, the rule applies only to fields whose semantic type
7685            ///    is explicitly listed. To match UNSPECIFIED fields, you must include
7686            ///    SEMANTIC_TYPE_UNSPECIFIED in the list.
7687            ///
7688            /// Examples:
7689            ///    semantic_type: []           -> matches only UNSPECIFIED fields
7690            ///    semantic_type: \[ATRACE\]     -> matches only ATRACE fields
7691            ///    semantic_type: [UNSPECIFIED, ATRACE] -> matches both
7692            ///
7693            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7694            /// Introduced in: Perfetto v54.
7695            #[prost(enumeration="super::super::SemanticType", repeated, packed="false", tag="5")]
7696            pub semantic_type: ::prost::alloc::vec::Vec<i32>,
7697        }
7698        /// A chain is a list of rules which string will be sequentially checked
7699        /// against.
7700        #[derive(Clone, PartialEq, ::prost::Message)]
7701        pub struct StringFilterChain {
7702            #[prost(message, repeated, tag="1")]
7703            pub rules: ::prost::alloc::vec::Vec<StringFilterRule>,
7704        }
7705        // =========================
7706        // String filtering
7707        // =========================
7708
7709        // The principles and terminology of string filtering is heavily inspired by
7710        // iptables. A "rule" decide how strings should be filtered. Each rule
7711        // contains a "policy" which indicates the algorithm to use for filtering.
7712        // A "chain" is a list of rules which will be sequentially checked against
7713        // each string.
7714        //
7715        // The first rule which applies to the string terminates filtering for that
7716        // string. If no rules apply, the string is left unchanged.
7717
7718        /// A policy specifies which algorithm should be used for filtering the
7719        /// string.
7720        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7721        #[repr(i32)]
7722        pub enum StringFilterPolicy {
7723            SfpUnspecified = 0,
7724            /// Tries to match the string field against |regex_pattern|. If it
7725            /// matches, all matching groups are "redacted" (i.e. replaced with a
7726            /// constant string) and filtering is terminated (i.e. no further rules are
7727            /// checked). If it doesn't match, the string is left unchanged and the
7728            /// next rule in chain is considered.
7729            SfpMatchRedactGroups = 1,
7730            /// Like |SFP_MATCH_REDACT_GROUPS| but tries to do some pre-work before
7731            /// checking the regex. Specifically, it tries to parse the string field as
7732            /// an atrace tracepoint and checks if the post-tgid field starts with
7733            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
7734            /// this check succeeds.
7735            SfpAtraceMatchRedactGroups = 2,
7736            /// Tries to match the string field against |regex_pattern|. If it
7737            /// matches, filtering is terminated (i.e. no further rules are checked).
7738            /// If it doesn't match, the string is left unchanged and the next rule in
7739            /// chain is considered.
7740            SfpMatchBreak = 3,
7741            /// Like |SFP_MATCH_BREAK| but tries to do some pre-work before checking
7742            /// the regex. Specifically, it tries to parse the string field as an
7743            /// atrace tracepoint and checks if the post-tgid field starts with
7744            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
7745            /// this check succeeds.
7746            SfpAtraceMatchBreak = 4,
7747            /// Tries to repeatedly search (i.e. find substrings of) the string field
7748            /// with |regex_pattern|. For each match, redacts any matching groups (i.e.
7749            /// replaced with a constant string). Once there are no further matches,
7750            /// filtering is terminated (i.e. no further rules are checked).
7751            ///
7752            /// Note that this is policy is a "search" policy not a "match" policy
7753            /// unlike the above policies:
7754            ///   * Match policies require matching the full string i.e. there is an
7755            ///     implicit leading `^` and trailing `$`.
7756            ///   * Search policies perform repeated partial matching of the string
7757            ///     e.g.
7758            ///       - String: `foo=aaa,bar=123,foo=bbb,baz=456`
7759            ///       - Pattern: `foo=(\d+)`
7760            ///       - Output: `foo=P6O,bar=123,foo=P6O,baz=456`
7761            ///     where P6O is the redaction string
7762            ///
7763            /// All of this is only performed after some pre-work where we try to parse
7764            /// the string field as an atrace tracepoint and check if the post-tgid
7765            /// field starts with |atrace_post_tgid_starts_with|.
7766            ///
7767            /// If there are no partial matches, the string is left unchanged and the
7768            /// next rule in chain is considered.
7769            SfpAtraceRepeatedSearchRedactGroups = 5,
7770        }
7771        impl StringFilterPolicy {
7772            /// String value of the enum field names used in the ProtoBuf definition.
7773            ///
7774            /// The values are not transformed in any way and thus are considered stable
7775            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7776            pub fn as_str_name(&self) -> &'static str {
7777                match self {
7778                    StringFilterPolicy::SfpUnspecified => "SFP_UNSPECIFIED",
7779                    StringFilterPolicy::SfpMatchRedactGroups => "SFP_MATCH_REDACT_GROUPS",
7780                    StringFilterPolicy::SfpAtraceMatchRedactGroups => "SFP_ATRACE_MATCH_REDACT_GROUPS",
7781                    StringFilterPolicy::SfpMatchBreak => "SFP_MATCH_BREAK",
7782                    StringFilterPolicy::SfpAtraceMatchBreak => "SFP_ATRACE_MATCH_BREAK",
7783                    StringFilterPolicy::SfpAtraceRepeatedSearchRedactGroups => "SFP_ATRACE_REPEATED_SEARCH_REDACT_GROUPS",
7784                }
7785            }
7786        }
7787    }
7788    /// Android-only. Not for general use. If set, reports the trace to the
7789    /// Android framework. This field is read by perfetto_cmd, rather than the
7790    /// tracing service. This field must be set when passing the --upload flag to
7791    /// perfetto_cmd.
7792    ///
7793    /// In this message, either:
7794    ///   * |reporter_service_package| and |reporter_service_class| must be set.
7795    ///   * |skip_reporting| must be explicitly set to true.
7796    #[derive(Clone, PartialEq, ::prost::Message)]
7797    pub struct AndroidReportConfig {
7798        #[prost(string, optional, tag="1")]
7799        pub reporter_service_package: ::core::option::Option<::prost::alloc::string::String>,
7800        #[prost(string, optional, tag="2")]
7801        pub reporter_service_class: ::core::option::Option<::prost::alloc::string::String>,
7802        /// If true, then skips reporting the trace to Android framework.
7803        ///
7804        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
7805        /// or when we explicitly don't want to report traces to the framework even
7806        /// when they usually would (e.g. configs deployed using statsd but only
7807        /// used for inclusion in bugreports using |bugreport_score|).
7808        ///
7809        /// The motivation for having this flag, instead of just not setting
7810        /// |framework_report_config|, is prevent accidents where
7811        /// |framework_report_config| is omitted by mistake.
7812        #[prost(bool, optional, tag="3")]
7813        pub skip_report: ::core::option::Option<bool>,
7814        /// If true, will direct the Android framework to read the data in trace
7815        /// file and pass it to the reporter class over a pipe instead of passing
7816        /// the file descriptor directly.
7817        ///
7818        /// This flag is needed because the Android test framework does not
7819        /// currently support priv-app helper apps (in terms of SELinux) and we
7820        /// really don't want to add an allow rule for untrusted_app to receive
7821        /// trace fds.
7822        ///
7823        /// Because of this, we instead will direct the framework to create a new
7824        /// pipe and pass this to the reporter process instead. As the pipe is
7825        /// created by the framework, we won't have any problems with SELinux
7826        /// (system_server is already allowed to pass pipe fds, even
7827        /// to untrusted apps).
7828        ///
7829        /// As the name suggests this option *MUST* only be used for testing.
7830        /// Note that the framework will reject (and drop) files which are too
7831        /// large both for simplicity and to be minimize the amount of data we
7832        /// pass to a non-priv app (note that the framework will still check
7833        /// manifest permissions even though SELinux permissions are worked around).
7834        #[prost(bool, optional, tag="4")]
7835        pub use_pipe_in_framework_for_testing: ::core::option::Option<bool>,
7836    }
7837    /// If set, delays the start of tracing by a random duration. The duration is
7838    /// chosen from a uniform distribution between the specified minimum and
7839    /// maximum.
7840    /// Note: this delay is implemented by perfetto_cmd *not* by traced so will
7841    /// not work if you communicate with traced directly over the consumer API.
7842    /// Introduced in Android T.
7843    #[derive(Clone, PartialEq, ::prost::Message)]
7844    pub struct CmdTraceStartDelay {
7845        #[prost(uint32, optional, tag="1")]
7846        pub min_delay_ms: ::core::option::Option<u32>,
7847        #[prost(uint32, optional, tag="2")]
7848        pub max_delay_ms: ::core::option::Option<u32>,
7849    }
7850    /// When non-empty, ensures that for a each semaphore named `name at most
7851    /// `max_other_session_count`` *other* sessions (whose value is taken of the
7852    /// minimum of all values specified by this config or any already-running
7853    /// session) can be be running.
7854    ///
7855    /// If a semaphore "acquisition" fails, EnableTracing will return an error
7856    /// and the tracing session will not be started (or elgible to start in
7857    /// the case of deferred sessions).
7858    ///
7859    /// This is easiest to explain with an example. Suppose the tracing service has
7860    /// the following active tracing sessions:
7861    ///    S1 = [{name=foo, max_other_session_count=2},
7862    ///          {name=bar, max_other_session_count=0}]
7863    ///    S2 = [{name=foo, max_other_session_count=1},
7864    ///          {name=baz, max_other_session_count=1}]
7865    ///
7866    /// Then, for a new session, the following would be the expected behaviour of
7867    /// EnableSession given the state of `session_semaphores`.
7868    ///    Q: session_semaphores = []
7869    ///    A: Allowed because it does not specify any semaphores. Will be allowed
7870    ///       no matter the state of any other tracing session.
7871    ///    Q: session_semaphores = [{name=baz, max_other_session_count=1}]
7872    ///    A: Allowed because both S2 and this config specify
7873    ///       max_other_session_count=1 for baz.
7874    ///    Q: session_semaphores = [{name=foo, max_other_session_count=3}]
7875    ///    A: Denied because S2 specified max_other_session_count=1 for foo and S1
7876    ///       takes that slot.
7877    ///    Q: session_semaphores = [{name=bar, max_other_session_count=0}]
7878    ///    A: Denied because S1 takes the the slot specified by both S1 and
7879    ///       this config.
7880    ///
7881    /// Introduced in 24Q3 (Android V).
7882    #[derive(Clone, PartialEq, ::prost::Message)]
7883    pub struct SessionSemaphore {
7884        /// The name of the semaphore. Acts as a unique identifier across all
7885        /// tracing sessions (including the one being started).
7886        #[prost(string, optional, tag="1")]
7887        pub name: ::core::option::Option<::prost::alloc::string::String>,
7888        /// The maximum number of *other* sesssions which specify the same semaphore
7889        /// which can be active. The minimum of this value across all tracing
7890        /// sessions and the value specified by the config is used when deciding
7891        /// whether the tracing session can be started.
7892        #[prost(uint64, optional, tag="2")]
7893        pub max_other_session_count: ::core::option::Option<u64>,
7894    }
7895    /// Allow key, value pairs to save arbitrary data about trace.
7896    #[derive(Clone, PartialEq, ::prost::Message)]
7897    pub struct Note {
7898        /// Required.
7899        #[prost(string, optional, tag="1")]
7900        pub key: ::core::option::Option<::prost::alloc::string::String>,
7901        /// Required.
7902        #[prost(string, optional, tag="2")]
7903        pub value: ::core::option::Option<::prost::alloc::string::String>,
7904    }
7905    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7906    #[repr(i32)]
7907    pub enum LockdownModeOperation {
7908        LockdownUnchanged = 0,
7909        LockdownClear = 1,
7910        LockdownSet = 2,
7911    }
7912    impl LockdownModeOperation {
7913        /// String value of the enum field names used in the ProtoBuf definition.
7914        ///
7915        /// The values are not transformed in any way and thus are considered stable
7916        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7917        pub fn as_str_name(&self) -> &'static str {
7918            match self {
7919                LockdownModeOperation::LockdownUnchanged => "LOCKDOWN_UNCHANGED",
7920                LockdownModeOperation::LockdownClear => "LOCKDOWN_CLEAR",
7921                LockdownModeOperation::LockdownSet => "LOCKDOWN_SET",
7922            }
7923        }
7924    }
7925    /// Compress trace with the given method. Best effort.
7926    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7927    #[repr(i32)]
7928    pub enum CompressionType {
7929        Unspecified = 0,
7930        Deflate = 1,
7931    }
7932    impl CompressionType {
7933        /// String value of the enum field names used in the ProtoBuf definition.
7934        ///
7935        /// The values are not transformed in any way and thus are considered stable
7936        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7937        pub fn as_str_name(&self) -> &'static str {
7938            match self {
7939                CompressionType::Unspecified => "COMPRESSION_TYPE_UNSPECIFIED",
7940                CompressionType::Deflate => "COMPRESSION_TYPE_DEFLATE",
7941            }
7942        }
7943    }
7944    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7945    #[repr(i32)]
7946    pub enum StatsdLogging {
7947        Unspecified = 0,
7948        Enabled = 1,
7949        Disabled = 2,
7950    }
7951    impl StatsdLogging {
7952        /// String value of the enum field names used in the ProtoBuf definition.
7953        ///
7954        /// The values are not transformed in any way and thus are considered stable
7955        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7956        pub fn as_str_name(&self) -> &'static str {
7957            match self {
7958                StatsdLogging::Unspecified => "STATSD_LOGGING_UNSPECIFIED",
7959                StatsdLogging::Enabled => "STATSD_LOGGING_ENABLED",
7960                StatsdLogging::Disabled => "STATSD_LOGGING_DISABLED",
7961            }
7962        }
7963    }
7964    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7965    #[repr(i32)]
7966    pub enum WriteFlushMode {
7967        /// Same as WRITE_FLUSH_AUTO.
7968        WriteFlushUnspecified = 0,
7969        /// Default mode. The service automatically determines the flush frequency
7970        /// to balance performance and data freshness:
7971        /// 1) If file_write_period_ms <= 5s (kDefaultWriteIntoFilePeriodMs):
7972        ///     Flushes are NOT issued on every write. Instead, a periodic flush is
7973        ///     issued every 5s.
7974        /// 2) If file_write_period_ms > 5s:
7975        ///     A flush is issued before every periodic write into the file.
7976        WriteFlushAuto = 1,
7977        // The following modes are intended for advanced usage and not recommended
7978        // for general use.
7979
7980        /// Do not flush buffers before periodic writes into the file.
7981        /// Use this mode if you want to minimize the performance impact of flushes
7982        /// and can tolerate potentially missing the most recent data in the trace
7983        /// file until the end of the session or an explicit flush.
7984        /// When this mode is selected, |flush_period_ms| is respected.
7985        WriteFlushDisabled = 2,
7986        /// Issue a flush before every periodic write into the file.
7987        /// This ensures that each write into the file contains the most up-to-date
7988        /// data from all data sources, but may have a higher performance overhead.
7989        WriteFlushEnabled = 3,
7990    }
7991    impl WriteFlushMode {
7992        /// String value of the enum field names used in the ProtoBuf definition.
7993        ///
7994        /// The values are not transformed in any way and thus are considered stable
7995        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7996        pub fn as_str_name(&self) -> &'static str {
7997            match self {
7998                WriteFlushMode::WriteFlushUnspecified => "WRITE_FLUSH_UNSPECIFIED",
7999                WriteFlushMode::WriteFlushAuto => "WRITE_FLUSH_AUTO",
8000                WriteFlushMode::WriteFlushDisabled => "WRITE_FLUSH_DISABLED",
8001                WriteFlushMode::WriteFlushEnabled => "WRITE_FLUSH_ENABLED",
8002            }
8003        }
8004    }
8005    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8006    #[repr(i32)]
8007    pub enum FFlushMode {
8008        /// Default: same as FFLUSH_DISABLED.
8009        FflushUnspecified = 0,
8010        /// Do not explicitly sync the file to storage after each write pass.
8011        FflushDisabled = 1,
8012        /// Explicitly sync the file to storage (via fdatasync) after each periodic
8013        /// write pass. Increases data durability at the cost of higher disk I/O
8014        /// overhead.
8015        FflushEnabled = 2,
8016    }
8017    impl FFlushMode {
8018        /// String value of the enum field names used in the ProtoBuf definition.
8019        ///
8020        /// The values are not transformed in any way and thus are considered stable
8021        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8022        pub fn as_str_name(&self) -> &'static str {
8023            match self {
8024                FFlushMode::FflushUnspecified => "FFLUSH_UNSPECIFIED",
8025                FFlushMode::FflushDisabled => "FFLUSH_DISABLED",
8026                FFlushMode::FflushEnabled => "FFLUSH_ENABLED",
8027            }
8028        }
8029    }
8030}
8031/// Arguments for rpc EnableTracing().
8032#[derive(Clone, PartialEq, ::prost::Message)]
8033pub struct EnableTracingRequest {
8034    #[prost(message, optional, tag="1")]
8035    pub trace_config: ::core::option::Option<TraceConfig>,
8036    /// Introduced in Android Q. This is used for re-attaching to the end-of-trace
8037    /// EnableTracingResponse notification after a Detach+Attach request.
8038    /// When this flag is set the |trace_config| is ignored and no method is called
8039    /// on the tracing service.
8040    #[prost(bool, optional, tag="2")]
8041    pub attach_notification_only: ::core::option::Option<bool>,
8042}
8043#[derive(Clone, PartialEq, ::prost::Message)]
8044pub struct EnableTracingResponse {
8045    /// If present and non-empty tracing was disabled because of an error.
8046    /// Introduced in Android S.
8047    #[prost(string, optional, tag="3")]
8048    pub error: ::core::option::Option<::prost::alloc::string::String>,
8049    #[prost(oneof="enable_tracing_response::State", tags="1")]
8050    pub state: ::core::option::Option<enable_tracing_response::State>,
8051}
8052/// Nested message and enum types in `EnableTracingResponse`.
8053pub mod enable_tracing_response {
8054    #[derive(Clone, PartialEq, ::prost::Oneof)]
8055    pub enum State {
8056        #[prost(bool, tag="1")]
8057        Disabled(bool),
8058    }
8059}
8060/// Arguments for rpc StartTracing().
8061#[derive(Clone, PartialEq, ::prost::Message)]
8062pub struct StartTracingRequest {
8063}
8064#[derive(Clone, PartialEq, ::prost::Message)]
8065pub struct StartTracingResponse {
8066}
8067/// Arguments for rpc ChangeTraceConfig().
8068#[derive(Clone, PartialEq, ::prost::Message)]
8069pub struct ChangeTraceConfigRequest {
8070    #[prost(message, optional, tag="1")]
8071    pub trace_config: ::core::option::Option<TraceConfig>,
8072}
8073#[derive(Clone, PartialEq, ::prost::Message)]
8074pub struct ChangeTraceConfigResponse {
8075}
8076/// Arguments for rpc DisableTracing().
8077///
8078/// TODO: not supported yet, selectively disable only some data sources.
8079/// repeated string data_source_name;
8080#[derive(Clone, PartialEq, ::prost::Message)]
8081pub struct DisableTracingRequest {
8082}
8083#[derive(Clone, PartialEq, ::prost::Message)]
8084pub struct DisableTracingResponse {
8085}
8086/// Arguments for rpc ReadBuffers().
8087///
8088/// The |id|s of the buffer, as passed to CreateBuffers().
8089/// TODO: repeated uint32 buffer_ids = 1;
8090#[derive(Clone, PartialEq, ::prost::Message)]
8091pub struct ReadBuffersRequest {
8092}
8093/// TODO: uint32 buffer_id = 1;
8094#[derive(Clone, PartialEq, ::prost::Message)]
8095pub struct ReadBuffersResponse {
8096    #[prost(message, repeated, tag="2")]
8097    pub slices: ::prost::alloc::vec::Vec<read_buffers_response::Slice>,
8098}
8099/// Nested message and enum types in `ReadBuffersResponse`.
8100pub mod read_buffers_response {
8101    /// Each streaming reply returns one or more slices for one or more trace
8102    /// packets, or even just a portion of it (if it's too big to fit within one
8103    /// IPC). The returned slices are ordered and contiguous: packets' slices are
8104    /// not interleaved and slices are sent only once all slices for a packet are
8105    /// available (i.e. the consumer will never see any gap).
8106    #[derive(Clone, PartialEq, ::prost::Message)]
8107    pub struct Slice {
8108        #[prost(bytes="vec", optional, tag="1")]
8109        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8110        /// When true, this is the last slice for the packet. A ReadBufferResponse
8111        /// might have no slices marked as |last_slice_for_packet|==true, in the case
8112        /// of a very large packet that gets chunked into several IPCs (in which case
8113        /// only the last IPC for the packet will have this flag set).
8114        #[prost(bool, optional, tag="2")]
8115        pub last_slice_for_packet: ::core::option::Option<bool>,
8116    }
8117}
8118/// Arguments for rpc FreeBuffers().
8119#[derive(Clone, PartialEq, ::prost::Message)]
8120pub struct FreeBuffersRequest {
8121    /// The |id|s of the buffer, as passed to CreateBuffers().
8122    #[prost(uint32, repeated, packed="false", tag="1")]
8123    pub buffer_ids: ::prost::alloc::vec::Vec<u32>,
8124}
8125#[derive(Clone, PartialEq, ::prost::Message)]
8126pub struct FreeBuffersResponse {
8127}
8128/// Arguments for rpc Flush().
8129#[derive(Clone, PartialEq, ::prost::Message)]
8130pub struct FlushRequest {
8131    #[prost(uint32, optional, tag="1")]
8132    pub timeout_ms: ::core::option::Option<u32>,
8133    /// More details such as flush reason and originator. Introduced in v38 / V.
8134    /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8135    #[prost(uint64, optional, tag="2")]
8136    pub flags: ::core::option::Option<u64>,
8137}
8138#[derive(Clone, PartialEq, ::prost::Message)]
8139pub struct FlushResponse {
8140}
8141/// Arguments for rpc Detach
8142#[derive(Clone, PartialEq, ::prost::Message)]
8143pub struct DetachRequest {
8144    #[prost(string, optional, tag="1")]
8145    pub key: ::core::option::Option<::prost::alloc::string::String>,
8146}
8147#[derive(Clone, PartialEq, ::prost::Message)]
8148pub struct DetachResponse {
8149}
8150/// Arguments for rpc Attach.
8151#[derive(Clone, PartialEq, ::prost::Message)]
8152pub struct AttachRequest {
8153    #[prost(string, optional, tag="1")]
8154    pub key: ::core::option::Option<::prost::alloc::string::String>,
8155}
8156#[derive(Clone, PartialEq, ::prost::Message)]
8157pub struct AttachResponse {
8158    #[prost(message, optional, tag="1")]
8159    pub trace_config: ::core::option::Option<TraceConfig>,
8160}
8161// Arguments for rpc GetTraceStats.
8162
8163#[derive(Clone, PartialEq, ::prost::Message)]
8164pub struct GetTraceStatsRequest {
8165}
8166#[derive(Clone, PartialEq, ::prost::Message)]
8167pub struct GetTraceStatsResponse {
8168    #[prost(message, optional, tag="1")]
8169    pub trace_stats: ::core::option::Option<TraceStats>,
8170}
8171// Arguments for rpc ObserveEvents.
8172
8173/// To stop observing events of a certain type, send a request with the remaining
8174/// types. To stop observing completely, send an empty request.
8175#[derive(Clone, PartialEq, ::prost::Message)]
8176pub struct ObserveEventsRequest {
8177    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="1")]
8178    pub events_to_observe: ::prost::alloc::vec::Vec<i32>,
8179}
8180#[derive(Clone, PartialEq, ::prost::Message)]
8181pub struct ObserveEventsResponse {
8182    #[prost(message, optional, tag="1")]
8183    pub events: ::core::option::Option<ObservableEvents>,
8184}
8185/// Arguments for rpc QueryServiceState.
8186#[derive(Clone, PartialEq, ::prost::Message)]
8187pub struct QueryServiceStateRequest {
8188    /// If set, only the TracingServiceState.tracing_sessions is filled. Producers
8189    /// and data sources are omitted.
8190    #[prost(bool, optional, tag="1")]
8191    pub sessions_only: ::core::option::Option<bool>,
8192}
8193#[derive(Clone, PartialEq, ::prost::Message)]
8194pub struct QueryServiceStateResponse {
8195    /// In order to avoid hitting IPC message size limitations, the service will
8196    /// return >1 replies for each query, chunking the TracingServiceState. The
8197    /// receiver is expected to merge replies together and parse that when the
8198    /// last reply is received (i.e. when IPC's |has_more| == false).
8199    #[prost(message, optional, tag="1")]
8200    pub service_state: ::core::option::Option<TracingServiceState>,
8201}
8202/// Arguments for rpc QueryCapabilities.
8203#[derive(Clone, PartialEq, ::prost::Message)]
8204pub struct QueryCapabilitiesRequest {
8205}
8206#[derive(Clone, PartialEq, ::prost::Message)]
8207pub struct QueryCapabilitiesResponse {
8208    #[prost(message, optional, tag="1")]
8209    pub capabilities: ::core::option::Option<TracingServiceCapabilities>,
8210}
8211/// Arguments for rpc SaveTraceForBugreport.
8212#[derive(Clone, PartialEq, ::prost::Message)]
8213pub struct SaveTraceForBugreportRequest {
8214}
8215/// This response is sent only after the trace was saved into file (if succeeded)
8216/// or something failed.
8217#[derive(Clone, PartialEq, ::prost::Message)]
8218pub struct SaveTraceForBugreportResponse {
8219    /// If true, an eligible the trace was saved into a known location (on Android
8220    /// /data/misc/perfetto-traces, see GetBugreportTracePath()).
8221    /// If false no trace with bugreport_score > 0 was found or an error occurred.
8222    /// see |msg| in that case for details about the failure.
8223    #[prost(bool, optional, tag="1")]
8224    pub success: ::core::option::Option<bool>,
8225    #[prost(string, optional, tag="2")]
8226    pub msg: ::core::option::Option<::prost::alloc::string::String>,
8227}
8228/// Arguments for rpc CloneSession.
8229#[derive(Clone, PartialEq, ::prost::Message)]
8230pub struct CloneSessionRequest {
8231    /// If set, the trace filter will not have effect on the cloned session.
8232    /// Used for bugreports.
8233    #[prost(bool, optional, tag="2")]
8234    pub skip_trace_filter: ::core::option::Option<bool>,
8235    /// If set, affects the generation of the FlushFlags::CloneTarget to be set
8236    /// to kBugreport when requesting the flush to the producers.
8237    #[prost(bool, optional, tag="3")]
8238    pub for_bugreport: ::core::option::Option<bool>,
8239    /// If set, this is stored in the trace as name of the trigger that caused the
8240    /// clone.
8241    #[prost(string, optional, tag="5")]
8242    pub clone_trigger_name: ::core::option::Option<::prost::alloc::string::String>,
8243    /// If set, this is stored in the trace as name of the producer that triggered
8244    /// the clone.
8245    #[prost(string, optional, tag="6")]
8246    pub clone_trigger_producer_name: ::core::option::Option<::prost::alloc::string::String>,
8247    /// If set, this is stored in the trace as uid of the producer that triggered
8248    /// the clone.
8249    #[prost(int32, optional, tag="7")]
8250    pub clone_trigger_trusted_producer_uid: ::core::option::Option<i32>,
8251    /// If set, this is stored in the trace as timestamp of the trigger that caused
8252    /// the clone.
8253    #[prost(uint64, optional, tag="8")]
8254    pub clone_trigger_boot_time_ns: ::core::option::Option<u64>,
8255    /// If set, this is stored in the trace as the configured delay of the trigger
8256    /// that caused the clone.
8257    ///
8258    /// Consumer may also send a file descriptor with this rpc message. If the
8259    /// descriptor is valid, and the session that should be cloned is
8260    /// 'write_into_file' session, traced writes the cloned session content to that
8261    /// file descriptor, instead of writing it in the cloned session buffers.
8262    #[prost(uint64, optional, tag="9")]
8263    pub clone_trigger_delay_ms: ::core::option::Option<u64>,
8264    #[prost(oneof="clone_session_request::Selector", tags="1, 4")]
8265    pub selector: ::core::option::Option<clone_session_request::Selector>,
8266}
8267/// Nested message and enum types in `CloneSessionRequest`.
8268pub mod clone_session_request {
8269    #[derive(Clone, PartialEq, ::prost::Oneof)]
8270    pub enum Selector {
8271        /// The session ID to clone. If session_id == kBugreportSessionId (0xff...ff)
8272        /// the session with the highest bugreport score is cloned (if any exists).
8273        #[prost(uint64, tag="1")]
8274        SessionId(u64),
8275        /// The unique_session_name of the tracing session to clone. Tracing sessions
8276        /// that are clones of other tracing sessions are ignored.
8277        #[prost(string, tag="4")]
8278        UniqueSessionName(::prost::alloc::string::String),
8279    }
8280}
8281#[derive(Clone, PartialEq, ::prost::Message)]
8282pub struct CloneSessionResponse {
8283    /// If true, the clone was successful. If false it failed and |error| contains
8284    /// the details about the failure.
8285    #[prost(bool, optional, tag="1")]
8286    pub success: ::core::option::Option<bool>,
8287    #[prost(string, optional, tag="2")]
8288    pub error: ::core::option::Option<::prost::alloc::string::String>,
8289    /// The UUID of the cloned session.
8290    #[prost(int64, optional, tag="3")]
8291    pub uuid_msb: ::core::option::Option<i64>,
8292    #[prost(int64, optional, tag="4")]
8293    pub uuid_lsb: ::core::option::Option<i64>,
8294    /// TracingService sets this when the cloned session was write_into_file=true.
8295    /// The consumer cannot know upfront if a session is WIF or not.
8296    /// Introduced in v53.
8297    #[prost(bool, optional, tag="5")]
8298    pub was_write_into_file: ::core::option::Option<bool>,
8299}
8300#[derive(Clone, PartialEq, ::prost::Message)]
8301pub struct CommitDataRequest {
8302    #[prost(message, repeated, tag="1")]
8303    pub chunks_to_move: ::prost::alloc::vec::Vec<commit_data_request::ChunksToMove>,
8304    #[prost(message, repeated, tag="2")]
8305    pub chunks_to_patch: ::prost::alloc::vec::Vec<commit_data_request::ChunkToPatch>,
8306    /// Optional. If this commit is made in response to a Flush(id) request coming
8307    /// from the service, copy back the id of the request so the service can tell
8308    /// when the flush happened.
8309    #[prost(uint64, optional, tag="3")]
8310    pub flush_request_id: ::core::option::Option<u64>,
8311}
8312/// Nested message and enum types in `CommitDataRequest`.
8313pub mod commit_data_request {
8314    /// When |chunks_to_move| is present, the producer is requesting the service to
8315    /// move the given chunks form the share memory buffer into the central
8316    /// trace buffer(s).
8317    #[derive(Clone, PartialEq, ::prost::Message)]
8318    pub struct ChunksToMove {
8319        /// The 0-based index of the page in the Shared Memory Buffer.
8320        #[prost(uint32, optional, tag="1")]
8321        pub page: ::core::option::Option<u32>,
8322        /// The 0-based chunk index \[0..13\] within the page.
8323        #[prost(uint32, optional, tag="2")]
8324        pub chunk: ::core::option::Option<u32>,
8325        /// The target buffer it should be moved onto. The service will check that
8326        /// the producer is allowed to write into that buffer before the move.
8327        #[prost(uint32, optional, tag="3")]
8328        pub target_buffer: ::core::option::Option<u32>,
8329        /// Sending the chunk data over the wire. Used for transports that don't
8330        /// support shared memory (e.g. vsock or TCP sockets). In the default case
8331        /// (tracing protocol over a Unix socket), this field is not used and tracing
8332        /// data is stored in the shmem buffer and referenced by the fields above.
8333        /// See |use_shemem_emulation| in the codebase for reference.
8334        #[prost(bytes="vec", optional, tag="4")]
8335        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8336        /// Set to true when scraping data in shmem emulation (aka commits-over-ipc)
8337        /// AND the chunk was still in kChunkBeingWritten. This is necessary because
8338        /// in emulation mode, the service cannot tell whether this is a complete
8339        /// chunk coming from a regular TraceWriter commit, or a scraped one.
8340        /// This field is only set when `data` is present. It is never set (and is
8341        /// ignored by the service) for the regular case of doing commits over
8342        /// shmem. Introduced in Perfetto v54.
8343        /// See /rfcs/0010-smb-scraping-remote-producers.md .
8344        #[prost(bool, optional, tag="5")]
8345        pub chunk_incomplete: ::core::option::Option<bool>,
8346    }
8347    /// Used to patch chunks that have already been sent to the service. The chunk
8348    /// might not be in the shared memory buffer anymore as it could have been
8349    /// moved by the service in response to a prior CommitDataRequest.
8350    /// It is perfectly valid to patch a chunk that is being notified in the same
8351    /// message (a chunk can show up both in the |changed_pages| and |patches|
8352    /// field within the same CommitDataRequest message).
8353    /// In other words, |chunks_to_patch| is always processed after
8354    /// |chunks_to_move|.
8355    #[derive(Clone, PartialEq, ::prost::Message)]
8356    pub struct ChunkToPatch {
8357        #[prost(uint32, optional, tag="1")]
8358        pub target_buffer: ::core::option::Option<u32>,
8359        /// {WriterID, ChunkID} uniquely identify a chunk for the current producer.
8360        #[prost(uint32, optional, tag="2")]
8361        pub writer_id: ::core::option::Option<u32>,
8362        #[prost(uint32, optional, tag="3")]
8363        pub chunk_id: ::core::option::Option<u32>,
8364        /// List of patches to apply to the given chunk.
8365        #[prost(message, repeated, tag="4")]
8366        pub patches: ::prost::alloc::vec::Vec<chunk_to_patch::Patch>,
8367        /// When true more patches will follow in future requests and the chunk
8368        /// should be still considered as patch-pending. When false the chunk becomes
8369        /// eligible for reading.
8370        #[prost(bool, optional, tag="5")]
8371        pub has_more_patches: ::core::option::Option<bool>,
8372    }
8373    /// Nested message and enum types in `ChunkToPatch`.
8374    pub mod chunk_to_patch {
8375        #[derive(Clone, PartialEq, ::prost::Message)]
8376        pub struct Patch {
8377            /// Offset in bytes from the start of the chunk payload. e.g., offset == 0
8378            /// corresponds to the first byte of the first packet (or fragment) in the
8379            /// chunk.
8380            #[prost(uint32, optional, tag="1")]
8381            pub offset: ::core::option::Option<u32>,
8382            /// Bytes to patch at the given offset.
8383            #[prost(bytes="vec", optional, tag="2")]
8384            pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8385        }
8386    }
8387}
8388/// Arguments for rpc InitializeConnection().
8389#[derive(Clone, PartialEq, ::prost::Message)]
8390pub struct InitializeConnectionRequest {
8391    /// Optional. Provides a hint to the tracing service about the suggested size
8392    /// of the shared memory buffer pages. The service is not required to respect
8393    /// this if it has already another value in the configuration or if the hint
8394    /// is unreasonably large. Must be an integer multiple of 4096. See tradeoff
8395    /// considerations in shared_memory_abi.h.
8396    #[prost(uint32, optional, tag="1")]
8397    pub shared_memory_page_size_hint_bytes: ::core::option::Option<u32>,
8398    /// Optional. Provides a hint to the tracing service about the suggested size
8399    /// of the shared memory buffer. The service is not required to respect this
8400    /// and might return a smaller buffer.
8401    #[prost(uint32, optional, tag="2")]
8402    pub shared_memory_size_hint_bytes: ::core::option::Option<u32>,
8403    /// Required to match the producer config set by the service to the correct
8404    /// producer.
8405    #[prost(string, optional, tag="3")]
8406    pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
8407    /// If provided, overrides the service's SMB scraping setting for the producer.
8408    #[prost(enumeration="initialize_connection_request::ProducerSmbScrapingMode", optional, tag="4")]
8409    pub smb_scraping_mode: ::core::option::Option<i32>,
8410    // ---------------------------------------------------
8411    // All fields below have been introduced in Android R.
8412    // ---------------------------------------------------
8413
8414    /// Since Android R, this request can also transport an FD for the producer's
8415    /// shared memory buffer, if allocated by the producer (e.g. for startup
8416    /// tracing). In this case, |shared_memory_page_size_hint_bytes| is a required
8417    /// field, and describes the SMB's page size. Note that the service may not
8418    /// accept this SMB (e.g. because it is too old or its size / page size are
8419    /// invalid) and instead allocate a new SMB which is provided in the
8420    /// SetupTracing response. See TracingService::ConnectProducer() and
8421    /// |using_shmem_provided_by_producer| in InitializeConnectionResponse.
8422    #[prost(bool, optional, tag="6")]
8423    pub producer_provided_shmem: ::core::option::Option<bool>,
8424    // ---------------------------------------------------
8425    // All fields below have been introduced in Android S.
8426    // ---------------------------------------------------
8427
8428    /// The version of the client library used by the producer.
8429    /// This is a human readable string with and its format varies depending on
8430    /// the build system that is used to build the code and the repo (standalone
8431    /// vs AOSP). This is intended for human debugging only.
8432    #[prost(string, optional, tag="8")]
8433    pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
8434    /// On Windows, when producer_provided_shmem = true, the client creates a named
8435    /// SHM region and passes the name (an unguessable token) back to the service.
8436    /// Introduced in v13.
8437    #[prost(string, optional, tag="7")]
8438    pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
8439}
8440/// Nested message and enum types in `InitializeConnectionRequest`.
8441pub mod initialize_connection_request {
8442    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8443    #[repr(i32)]
8444    pub enum ProducerSmbScrapingMode {
8445        /// Use the service's default setting for SMB scraping.
8446        SmbScrapingUnspecified = 0,
8447        /// Enable scraping of uncommitted chunks from the producer's shared memory
8448        /// buffer.
8449        SmbScrapingEnabled = 1,
8450        /// Disable scraping of uncommitted chunks from the producer's shared memory
8451        /// buffer.
8452        SmbScrapingDisabled = 2,
8453    }
8454    impl ProducerSmbScrapingMode {
8455        /// String value of the enum field names used in the ProtoBuf definition.
8456        ///
8457        /// The values are not transformed in any way and thus are considered stable
8458        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8459        pub fn as_str_name(&self) -> &'static str {
8460            match self {
8461                ProducerSmbScrapingMode::SmbScrapingUnspecified => "SMB_SCRAPING_UNSPECIFIED",
8462                ProducerSmbScrapingMode::SmbScrapingEnabled => "SMB_SCRAPING_ENABLED",
8463                ProducerSmbScrapingMode::SmbScrapingDisabled => "SMB_SCRAPING_DISABLED",
8464            }
8465        }
8466    }
8467}
8468#[derive(Clone, PartialEq, ::prost::Message)]
8469pub struct InitializeConnectionResponse {
8470    /// Indicates whether the service accepted the SMB provided by the producer in
8471    /// InitializeConnectionRequest (if any). If false, the shared memory buffer FD
8472    /// will provided by the service via the SetupTracing async command.
8473    #[prost(bool, optional, tag="1")]
8474    pub using_shmem_provided_by_producer: ::core::option::Option<bool>,
8475    /// Indicates to the producer that the service allows direct SMB patching of
8476    /// chunks that have not yet been committed to it.
8477    /// This field has been introduced in Android S.
8478    #[prost(bool, optional, tag="2")]
8479    pub direct_smb_patching_supported: ::core::option::Option<bool>,
8480    /// Indicates whether the service would like to use SMB emulation for the
8481    /// connection, and request the client to send chunk data over the socket e.g.
8482    /// for remote connection from a VM guest.
8483    #[prost(bool, optional, tag="3")]
8484    pub use_shmem_emulation: ::core::option::Option<bool>,
8485}
8486// Arguments for rpc RegisterDataSource().
8487
8488#[derive(Clone, PartialEq, ::prost::Message)]
8489pub struct RegisterDataSourceRequest {
8490    #[prost(message, optional, tag="1")]
8491    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
8492}
8493#[derive(Clone, PartialEq, ::prost::Message)]
8494pub struct RegisterDataSourceResponse {
8495    /// Only set in case of errors, when |data_source_id| == 0.
8496    #[prost(string, optional, tag="1")]
8497    pub error: ::core::option::Option<::prost::alloc::string::String>,
8498}
8499// Arguments for rpc UpdateDataSource().
8500
8501#[derive(Clone, PartialEq, ::prost::Message)]
8502pub struct UpdateDataSourceRequest {
8503    /// The new data_source_descriptor.{id, name} must match {id, name} of a
8504    /// data source previously registered via RegisterDataSource().
8505    #[prost(message, optional, tag="1")]
8506    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
8507}
8508#[derive(Clone, PartialEq, ::prost::Message)]
8509pub struct UpdateDataSourceResponse {
8510}
8511// Arguments for rpc UnregisterDataSource().
8512
8513#[derive(Clone, PartialEq, ::prost::Message)]
8514pub struct UnregisterDataSourceRequest {
8515    /// The name of the data source to unregister, as previously passed in
8516    /// |RegisterDataSourceRequest.name|.
8517    #[prost(string, optional, tag="1")]
8518    pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
8519}
8520#[derive(Clone, PartialEq, ::prost::Message)]
8521pub struct UnregisterDataSourceResponse {
8522}
8523// Arguments for rpc RegisterTraceWriter().
8524
8525#[derive(Clone, PartialEq, ::prost::Message)]
8526pub struct RegisterTraceWriterRequest {
8527    /// The ID of a producer's trace writer.
8528    #[prost(uint32, optional, tag="1")]
8529    pub trace_writer_id: ::core::option::Option<u32>,
8530    /// The ID of the target buffer that the trace writer commits its chunks to.
8531    #[prost(uint32, optional, tag="2")]
8532    pub target_buffer: ::core::option::Option<u32>,
8533}
8534#[derive(Clone, PartialEq, ::prost::Message)]
8535pub struct RegisterTraceWriterResponse {
8536}
8537// Arguments for rpc UnregisterTraceWriter().
8538
8539#[derive(Clone, PartialEq, ::prost::Message)]
8540pub struct UnregisterTraceWriterRequest {
8541    /// The ID of a producer's trace writer.
8542    #[prost(uint32, optional, tag="1")]
8543    pub trace_writer_id: ::core::option::Option<u32>,
8544}
8545#[derive(Clone, PartialEq, ::prost::Message)]
8546pub struct UnregisterTraceWriterResponse {
8547}
8548// Arguments for rpc CommitData().
8549// See commit_data_request.proto for CommitDataRequest. That has its own file
8550// because it is used also as input to generate C++ classes (xxx.gen.h).
8551
8552#[derive(Clone, PartialEq, ::prost::Message)]
8553pub struct CommitDataResponse {
8554}
8555// Arguments for rpc NotifyDataSourceStarted().
8556
8557#[derive(Clone, PartialEq, ::prost::Message)]
8558pub struct NotifyDataSourceStartedRequest {
8559    /// ID of the data source that has successfully started.
8560    #[prost(uint64, optional, tag="1")]
8561    pub data_source_id: ::core::option::Option<u64>,
8562}
8563#[derive(Clone, PartialEq, ::prost::Message)]
8564pub struct NotifyDataSourceStartedResponse {
8565}
8566// Arguments for rpc NotifyDataSourceStopped().
8567
8568#[derive(Clone, PartialEq, ::prost::Message)]
8569pub struct NotifyDataSourceStoppedRequest {
8570    /// ID of the data source that has successfully stopped.
8571    #[prost(uint64, optional, tag="1")]
8572    pub data_source_id: ::core::option::Option<u64>,
8573}
8574#[derive(Clone, PartialEq, ::prost::Message)]
8575pub struct NotifyDataSourceStoppedResponse {
8576}
8577// Arguments for rpc ActivateTriggersRequest().
8578
8579#[derive(Clone, PartialEq, ::prost::Message)]
8580pub struct ActivateTriggersRequest {
8581    #[prost(string, repeated, tag="1")]
8582    pub trigger_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
8583}
8584#[derive(Clone, PartialEq, ::prost::Message)]
8585pub struct ActivateTriggersResponse {
8586}
8587// Arguments for rpc GetAsyncCommand().
8588
8589#[derive(Clone, PartialEq, ::prost::Message)]
8590pub struct GetAsyncCommandRequest {
8591}
8592#[derive(Clone, PartialEq, ::prost::Message)]
8593pub struct GetAsyncCommandResponse {
8594    /// Next id: 8.
8595    #[prost(oneof="get_async_command_response::Cmd", tags="3, 6, 1, 2, 5, 7")]
8596    pub cmd: ::core::option::Option<get_async_command_response::Cmd>,
8597}
8598/// Nested message and enum types in `GetAsyncCommandResponse`.
8599pub mod get_async_command_response {
8600    /// Called after SetupTracing and before StartDataSource.
8601    /// This message was introduced in Android Q.
8602    #[derive(Clone, PartialEq, ::prost::Message)]
8603    pub struct SetupDataSource {
8604        #[prost(uint64, optional, tag="1")]
8605        pub new_instance_id: ::core::option::Option<u64>,
8606        #[prost(message, optional, tag="2")]
8607        pub config: ::core::option::Option<super::DataSourceConfig>,
8608    }
8609    #[derive(Clone, PartialEq, ::prost::Message)]
8610    pub struct StartDataSource {
8611        #[prost(uint64, optional, tag="1")]
8612        pub new_instance_id: ::core::option::Option<u64>,
8613        /// For backwards compat reasons (with Android P), the config passed here
8614        /// is identical to the one passed to SetupDataSource.config.
8615        #[prost(message, optional, tag="2")]
8616        pub config: ::core::option::Option<super::DataSourceConfig>,
8617    }
8618    #[derive(Clone, PartialEq, ::prost::Message)]
8619    pub struct StopDataSource {
8620        #[prost(uint64, optional, tag="1")]
8621        pub instance_id: ::core::option::Option<u64>,
8622    }
8623    /// On Android/Linux/Mac this message also transports the file descriptor for
8624    /// the shared memory buffer (not a proto field).
8625    #[derive(Clone, PartialEq, ::prost::Message)]
8626    pub struct SetupTracing {
8627        #[prost(uint32, optional, tag="1")]
8628        pub shared_buffer_page_size_kb: ::core::option::Option<u32>,
8629        /// On Windows, instead, we pass the name (an unguessable token) of a shared
8630        /// memory region that can be attached by the other process by name.
8631        /// Introduced in v13.
8632        #[prost(string, optional, tag="2")]
8633        pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
8634    }
8635    #[derive(Clone, PartialEq, ::prost::Message)]
8636    pub struct Flush {
8637        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8638        /// sources to flush.
8639        #[prost(uint64, repeated, packed="false", tag="1")]
8640        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8641        /// A monotonic counter generated by the service. The producer is simply
8642        /// expected to copy this value back into the CommitDataRequest, so the
8643        /// service can tell when the data for this flush has been committed.
8644        #[prost(uint64, optional, tag="2")]
8645        pub request_id: ::core::option::Option<u64>,
8646        /// More details such as flush reason and originator. Introduced in v38 / V.
8647        /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8648        #[prost(uint64, optional, tag="3")]
8649        pub flags: ::core::option::Option<u64>,
8650    }
8651    /// Instructs the given data sources to stop referring to any trace contents
8652    /// emitted so far. Sent only to active data sources that set
8653    /// |handles_incremental_state_clear| in their DataSourceDescriptor.
8654    ///
8655    /// Added to perfetto tree in May 2019.
8656    #[derive(Clone, PartialEq, ::prost::Message)]
8657    pub struct ClearIncrementalState {
8658        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8659        /// sources that should clear their incremental state.
8660        #[prost(uint64, repeated, packed="false", tag="1")]
8661        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8662    }
8663    /// Next id: 8.
8664    #[derive(Clone, PartialEq, ::prost::Oneof)]
8665    pub enum Cmd {
8666        #[prost(message, tag="3")]
8667        SetupTracing(SetupTracing),
8668        #[prost(message, tag="6")]
8669        SetupDataSource(SetupDataSource),
8670        #[prost(message, tag="1")]
8671        StartDataSource(StartDataSource),
8672        #[prost(message, tag="2")]
8673        StopDataSource(StopDataSource),
8674        /// id == 4 was teardown_tracing, never implemented.
8675        #[prost(message, tag="5")]
8676        Flush(Flush),
8677        #[prost(message, tag="7")]
8678        ClearIncrementalState(ClearIncrementalState),
8679    }
8680}
8681/// Arguments for rpc Sync().
8682#[derive(Clone, PartialEq, ::prost::Message)]
8683pub struct SyncRequest {
8684}
8685#[derive(Clone, PartialEq, ::prost::Message)]
8686pub struct SyncResponse {
8687}
8688#[derive(Clone, PartialEq, ::prost::Message)]
8689pub struct IpcFrame {
8690    /// The client is expected to send requests with monotonically increasing
8691    /// request_id. The host will match the request_id sent from the client.
8692    /// In the case of a Streaming response (has_more = true) the host will send
8693    /// several InvokeMethodReply with the same request_id.
8694    #[prost(uint64, optional, tag="2")]
8695    pub request_id: ::core::option::Option<u64>,
8696    /// Used only in unittests to generate a parsable message of arbitrary size.
8697    #[prost(bytes="vec", repeated, tag="1")]
8698    pub data_for_testing: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
8699    #[prost(oneof="ipc_frame::Msg", tags="3, 4, 5, 6, 7, 8")]
8700    pub msg: ::core::option::Option<ipc_frame::Msg>,
8701}
8702/// Nested message and enum types in `IPCFrame`.
8703pub mod ipc_frame {
8704    /// Client -> Host.
8705    #[derive(Clone, PartialEq, ::prost::Message)]
8706    pub struct BindService {
8707        #[prost(string, optional, tag="1")]
8708        pub service_name: ::core::option::Option<::prost::alloc::string::String>,
8709    }
8710    /// Host -> Client.
8711    #[derive(Clone, PartialEq, ::prost::Message)]
8712    pub struct BindServiceReply {
8713        #[prost(bool, optional, tag="1")]
8714        pub success: ::core::option::Option<bool>,
8715        #[prost(uint32, optional, tag="2")]
8716        pub service_id: ::core::option::Option<u32>,
8717        #[prost(message, repeated, tag="3")]
8718        pub methods: ::prost::alloc::vec::Vec<bind_service_reply::MethodInfo>,
8719    }
8720    /// Nested message and enum types in `BindServiceReply`.
8721    pub mod bind_service_reply {
8722        #[derive(Clone, PartialEq, ::prost::Message)]
8723        pub struct MethodInfo {
8724            #[prost(uint32, optional, tag="1")]
8725            pub id: ::core::option::Option<u32>,
8726            #[prost(string, optional, tag="2")]
8727            pub name: ::core::option::Option<::prost::alloc::string::String>,
8728        }
8729    }
8730    /// Client -> Host.
8731    #[derive(Clone, PartialEq, ::prost::Message)]
8732    pub struct InvokeMethod {
8733        /// BindServiceReply.id.
8734        #[prost(uint32, optional, tag="1")]
8735        pub service_id: ::core::option::Option<u32>,
8736        /// BindServiceReply.method.id.
8737        #[prost(uint32, optional, tag="2")]
8738        pub method_id: ::core::option::Option<u32>,
8739        /// Proto-encoded request argument.
8740        #[prost(bytes="vec", optional, tag="3")]
8741        pub args_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8742        /// When true the client specifies that a reply is not needed. The use case
8743        /// is a method with an empty, where the client doesn't care about the
8744        /// success/failure of the method invocation and rather prefers avoiding the
8745        /// IPC roundtrip + context switch associated with the reply.
8746        #[prost(bool, optional, tag="4")]
8747        pub drop_reply: ::core::option::Option<bool>,
8748    }
8749    /// Host -> Client.
8750    #[derive(Clone, PartialEq, ::prost::Message)]
8751    pub struct InvokeMethodReply {
8752        #[prost(bool, optional, tag="1")]
8753        pub success: ::core::option::Option<bool>,
8754        /// only for streaming RPCs.
8755        #[prost(bool, optional, tag="2")]
8756        pub has_more: ::core::option::Option<bool>,
8757        /// proto-encoded response value.
8758        #[prost(bytes="vec", optional, tag="3")]
8759        pub reply_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8760    }
8761    /// Host -> Client.
8762    #[derive(Clone, PartialEq, ::prost::Message)]
8763    pub struct RequestError {
8764        #[prost(string, optional, tag="1")]
8765        pub error: ::core::option::Option<::prost::alloc::string::String>,
8766    }
8767    /// Client (relay service) -> Host. This is generated by the relay service to
8768    /// fill the producer identity in the guest. This message is sent to the host
8769    /// service *before* any IPCFrame is from a local producer is relayed. This is
8770    /// accepted only on AF_VSOCK and AF_INET sockets, where we cannot validate the
8771    /// endpoont of the connection. for AF_UNIX sockets, this is ignored and traced
8772    /// uses instead the SO_PEERCRED.
8773    #[derive(Clone, PartialEq, ::prost::Message)]
8774    pub struct SetPeerIdentity {
8775        /// The UID and PID of the producer process.
8776        #[prost(int32, optional, tag="1")]
8777        pub pid: ::core::option::Option<i32>,
8778        #[prost(int32, optional, tag="2")]
8779        pub uid: ::core::option::Option<i32>,
8780        /// The hint for the tracing service to infer the machine ID. This field
8781        /// should satisfy the requriement that different machines should have
8782        /// different values. In practice, this filed contains the Linux kernel
8783        /// boot_id, or a hash of kernel bootup timestamp and uname(2) if boot_id
8784        /// isn't available.
8785        #[prost(string, optional, tag="3")]
8786        pub machine_id_hint: ::core::option::Option<::prost::alloc::string::String>,
8787        /// Human-readable name associated to the producer's machine. Provides the
8788        /// tracing service a new dimension to filter data sources on. Given the
8789        /// perfetto machine name is provided by users, there is no expectation of
8790        /// uniqueness across machines in a tracing session.
8791        #[prost(string, optional, tag="4")]
8792        pub machine_name: ::core::option::Option<::prost::alloc::string::String>,
8793    }
8794    #[derive(Clone, PartialEq, ::prost::Oneof)]
8795    pub enum Msg {
8796        #[prost(message, tag="3")]
8797        MsgBindService(BindService),
8798        #[prost(message, tag="4")]
8799        MsgBindServiceReply(BindServiceReply),
8800        #[prost(message, tag="5")]
8801        MsgInvokeMethod(InvokeMethod),
8802        #[prost(message, tag="6")]
8803        MsgInvokeMethodReply(InvokeMethodReply),
8804        #[prost(message, tag="7")]
8805        MsgRequestError(RequestError),
8806        #[prost(message, tag="8")]
8807        SetPeerIdentity(SetPeerIdentity),
8808    }
8809}