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    /// When true, the merge operation will skip any field that is already
477    /// resolved as a message node in the destination tree.
478    ///
479    /// This is used to support merging of nested messages. Because ProtoVM
480    /// does not know the schema, a standard MERGE cannot distinguish
481    /// between a string and a message on the wire and it would overwrite
482    /// the entire blob, destroying granular updates.
483    ///
484    /// By setting this to true, a program can be implemented to do a
485    /// bottom-up, multi-step merge by traversing into and merging
486    /// the deepest submessages first, then moving up to the parent
487    /// message and merging it with skip_submessages = true.
488    #[prost(bool, optional, tag="1")]
489    pub skip_submessages: ::core::option::Option<bool>,
490}
491/// Copies SRC into DST. If a message, replaces the DST node, discarding any
492/// pre-existing field.
493#[derive(Clone, PartialEq, ::prost::Message)]
494pub struct VmOpSet {
495}
496/// Delete the field or message pointed by DST.
497#[derive(Clone, PartialEq, ::prost::Message)]
498pub struct VmOpDel {
499}
500#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
501#[repr(i32)]
502pub enum VmCursorEnum {
503    VmCursorUnspecified = 0,
504    VmCursorSrc = 1,
505    VmCursorDst = 2,
506    VmCursorBoth = 3,
507}
508impl VmCursorEnum {
509    /// String value of the enum field names used in the ProtoBuf definition.
510    ///
511    /// The values are not transformed in any way and thus are considered stable
512    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
513    pub fn as_str_name(&self) -> &'static str {
514        match self {
515            VmCursorEnum::VmCursorUnspecified => "VM_CURSOR_UNSPECIFIED",
516            VmCursorEnum::VmCursorSrc => "VM_CURSOR_SRC",
517            VmCursorEnum::VmCursorDst => "VM_CURSOR_DST",
518            VmCursorEnum::VmCursorBoth => "VM_CURSOR_BOTH",
519        }
520    }
521}
522/// This message is sent from Producer(s) to the tracing Service when registering
523/// to advertise their capabilities. It describes the structure of tracing
524/// protos that will be produced by the data source and the supported filters.
525#[derive(Clone, PartialEq, ::prost::Message)]
526pub struct DataSourceDescriptor {
527    /// e.g., "linux.ftrace", "chromium.tracing"
528    #[prost(string, optional, tag="1")]
529    pub name: ::core::option::Option<::prost::alloc::string::String>,
530    /// When non-zero, this is a unique ID within the scope of the Producer for
531    /// this data source (it is NOT globally unique). This is useful to
532    /// differentiate between data sources with matching names when calling
533    /// UpdateDataSource(). This field has been introduced in November 2021
534    /// (v22, Android T) and is not supported on older versions.
535    #[prost(uint64, optional, tag="7")]
536    pub id: ::core::option::Option<u64>,
537    /// When true the data source is expected to ack the stop request through the
538    /// NotifyDataSourceStopped() IPC. This field has been introduced after
539    /// Android P in Jul 2018 and is not supported on older versions.
540    #[prost(bool, optional, tag="2")]
541    pub will_notify_on_stop: ::core::option::Option<bool>,
542    /// When true the data source is expected to ack the start request through the
543    /// NotifyDataSourceStarted() IPC. This field has been introduced after
544    /// Android P in March 2019 and is not supported on older versions.
545    #[prost(bool, optional, tag="3")]
546    pub will_notify_on_start: ::core::option::Option<bool>,
547    /// If true, opt into receiving the ClearIncrementalState() IPC. This should be
548    /// set if the data source writes packets that refer to previous trace
549    /// contents, and knows how to stop referring to the already-emitted data.
550    #[prost(bool, optional, tag="4")]
551    pub handles_incremental_state_clear: ::core::option::Option<bool>,
552    /// If true, indicates that the data source does nothing upon Flush. This
553    /// allows the service to reduce the flush-related IPC traffic and better deal
554    /// with frozen producers (see go/perfetto-frozen). This is usually the case
555    /// for data sources like 'track_event' that don't have access to the various
556    /// thread task runners to post a flush task and rely purely on server-side
557    /// scraping.
558    /// Introduced in v39 / Android V.
559    #[prost(bool, optional, tag="9")]
560    pub no_flush: ::core::option::Option<bool>,
561    /// If present, the tracing service executes this program within a ProtoVM to
562    /// process overwritten packets (patches). The service computes a hash of the
563    /// program to detect and disambiguate between different versions; if multiple
564    /// versions (from different producers) are specified for the same data source,
565    /// the service instantiates a dedicated ProtoVM for each.
566    #[prost(message, optional, tag="10")]
567    pub protovm_program: ::core::option::Option<VmProgram>,
568    /// Optional specification about available GPU counters.
569    #[prost(message, optional, tag="5")]
570    pub gpu_counter_descriptor: ::core::option::Option<GpuCounterDescriptor>,
571    #[prost(message, optional, tag="6")]
572    pub track_event_descriptor: ::core::option::Option<TrackEventDescriptor>,
573    #[prost(message, optional, tag="8")]
574    pub ftrace_descriptor: ::core::option::Option<FtraceDescriptor>,
575}
576/// Reports the state of the tracing service. Used to gather details about the
577/// data sources connected.
578/// See ConsumerPort::QueryServiceState().
579#[derive(Clone, PartialEq, ::prost::Message)]
580pub struct TracingServiceState {
581    /// Lists all the producers connected.
582    #[prost(message, repeated, tag="1")]
583    pub producers: ::prost::alloc::vec::Vec<tracing_service_state::Producer>,
584    /// Lists the data sources available.
585    #[prost(message, repeated, tag="2")]
586    pub data_sources: ::prost::alloc::vec::Vec<tracing_service_state::DataSource>,
587    /// Lists the tracing sessions active AND owned by a consumer that has the same
588    /// UID of the caller (or all of them if the caller is root).
589    /// Introduced in v24 / Android T.
590    #[prost(message, repeated, tag="6")]
591    pub tracing_sessions: ::prost::alloc::vec::Vec<tracing_service_state::TracingSession>,
592    /// This is always set to true from v24 and beyond. This flag is only used to
593    /// tell the difference between: (1) talking to a recent service which happens
594    /// to have no tracing session active; (2) talking to an older version of the
595    /// service which will never report any tracing session.
596    #[prost(bool, optional, tag="7")]
597    pub supports_tracing_sessions: ::core::option::Option<bool>,
598    /// Total number of tracing sessions.
599    #[prost(int32, optional, tag="3")]
600    pub num_sessions: ::core::option::Option<i32>,
601    /// Number of tracing sessions in the started state. Always <= num_sessions.
602    #[prost(int32, optional, tag="4")]
603    pub num_sessions_started: ::core::option::Option<i32>,
604    /// The version of traced (the same returned by `traced --version`).
605    /// This is a human readable string with and its format varies depending on
606    /// the build system and the repo (standalone vs AOSP).
607    /// This is intended for human debugging only.
608    #[prost(string, optional, tag="5")]
609    pub tracing_service_version: ::core::option::Option<::prost::alloc::string::String>,
610}
611/// Nested message and enum types in `TracingServiceState`.
612pub mod tracing_service_state {
613    /// Describes a producer process.
614    #[derive(Clone, PartialEq, ::prost::Message)]
615    pub struct Producer {
616        /// Unique ID of the producer (monotonic counter).
617        #[prost(int32, optional, tag="1")]
618        pub id: ::core::option::Option<i32>,
619        /// Typically matches the process name.
620        #[prost(string, optional, tag="2")]
621        pub name: ::core::option::Option<::prost::alloc::string::String>,
622        /// Unix pid of the remote process. Supported only on Linux-based systems.
623        /// Introduced in v24 / Android T.
624        #[prost(int32, optional, tag="5")]
625        pub pid: ::core::option::Option<i32>,
626        /// Unix uid of the remote process.
627        #[prost(int32, optional, tag="3")]
628        pub uid: ::core::option::Option<i32>,
629        /// The version of the client library used by the producer.
630        /// This is a human readable string with and its format varies depending on
631        /// the build system and the repo (standalone vs AOSP).
632        /// This is intended for human debugging only.
633        #[prost(string, optional, tag="4")]
634        pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
635        /// Returns true if the process appears to be frozen (Android only).
636        /// Introduced in Perfetto V49 / Android 24Q4.
637        #[prost(bool, optional, tag="6")]
638        pub frozen: ::core::option::Option<bool>,
639    }
640    /// Describes a data source registered by a producer. Data sources are listed
641    /// regardless of the fact that they are being used or not.
642    #[derive(Clone, PartialEq, ::prost::Message)]
643    pub struct DataSource {
644        /// Descriptor passed by the data source when calling RegisterDataSource().
645        #[prost(message, optional, tag="1")]
646        pub ds_descriptor: ::core::option::Option<super::DataSourceDescriptor>,
647        /// ID of the producer, as per Producer.id.
648        #[prost(int32, optional, tag="2")]
649        pub producer_id: ::core::option::Option<i32>,
650    }
651    #[derive(Clone, PartialEq, ::prost::Message)]
652    pub struct TracingSession {
653        /// The TracingSessionID.
654        #[prost(uint64, optional, tag="1")]
655        pub id: ::core::option::Option<u64>,
656        /// The Unix uid of the consumer that started the session.
657        /// This is meaningful only if the caller is root. In all other cases only
658        /// tracing sessions that match the caller UID will be displayed.
659        #[prost(int32, optional, tag="2")]
660        pub consumer_uid: ::core::option::Option<i32>,
661        /// Internal state of the tracing session.
662        /// These strings are FYI only and subjected to change.
663        #[prost(string, optional, tag="3")]
664        pub state: ::core::option::Option<::prost::alloc::string::String>,
665        /// The unique_session_name as set in the trace config (might be empty).
666        #[prost(string, optional, tag="4")]
667        pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
668        /// The number and size of each buffer.
669        #[prost(uint32, repeated, packed="false", tag="5")]
670        pub buffer_size_kb: ::prost::alloc::vec::Vec<u32>,
671        /// Duration, as specified in the TraceConfig.duration_ms.
672        #[prost(uint32, optional, tag="6")]
673        pub duration_ms: ::core::option::Option<u32>,
674        /// Number of data sources involved in the session.
675        #[prost(uint32, optional, tag="7")]
676        pub num_data_sources: ::core::option::Option<u32>,
677        /// Time when the session was started, in the CLOCK_REALTIME domain.
678        /// Available only on Linux-based systems.
679        #[prost(int64, optional, tag="8")]
680        pub start_realtime_ns: ::core::option::Option<i64>,
681        // The fields below have been introduced in v42.
682
683        /// The bugreport_score, as set in TraceConfig.bugreport_score.
684        #[prost(int32, optional, tag="9")]
685        pub bugreport_score: ::core::option::Option<i32>,
686        /// As per TraceConfig.bugreport_filename.
687        #[prost(string, optional, tag="10")]
688        pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
689        /// If true, the session is in the STARTED state. If false the session is in
690        /// any other state (see `state` field).
691        #[prost(bool, optional, tag="11")]
692        pub is_started: ::core::option::Option<bool>,
693    }
694}
695#[derive(Clone, PartialEq, ::prost::Message)]
696pub struct TracingServiceCapabilities {
697    /// Whether the service supports QueryCapabilities() at all or not.
698    /// This is only used at the C++ level to distinguish the case of talking to
699    /// an older version of the service that doesn't support QueryCapabilities().
700    /// In that case the IPC layer will just reject the unknown call, and the
701    /// consumer_ipc_client_impl.cc will return an empty message where this field
702    /// is false. In all other cases, this is always set to true.
703    #[prost(bool, optional, tag="1")]
704    pub has_query_capabilities: ::core::option::Option<bool>,
705    /// The set of known events that can be passed to ConsumerPort.ObserveEvents().
706    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="2")]
707    pub observable_events: ::prost::alloc::vec::Vec<i32>,
708    /// Whether the service supports TraceConfig.output_path (for asking traced to
709    /// create the output file instead of passing a file descriptor).
710    #[prost(bool, optional, tag="3")]
711    pub has_trace_config_output_path: ::core::option::Option<bool>,
712    /// Whether the service supports CloneSession and CLONE_SNAPSHOT triggers.
713    #[prost(bool, optional, tag="4")]
714    pub has_clone_session: ::core::option::Option<bool>,
715}
716/// Statistics for the internals of the tracing service.
717///
718/// Next id: 19.
719#[derive(Clone, PartialEq, ::prost::Message)]
720pub struct TraceStats {
721    /// Stats for the TraceBuffer(s) of the current trace session.
722    #[prost(message, repeated, tag="1")]
723    pub buffer_stats: ::prost::alloc::vec::Vec<trace_stats::BufferStats>,
724    /// The thresholds of each the `writer_stats` histogram buckets. This is
725    /// emitted only once as all WriterStats share the same bucket layout.
726    /// This field has the same cardinality of the
727    /// `writer_stats.chunk_payload_histogram_{counts,sum}` - 1.
728    /// (The -1 is because the last overflow bucket is not reported in the _def).
729    /// An array of values [10, 100, 1000] in the _def array means that there are
730    /// four buckets (3 + the implicit overflow bucket):
731    /// \[0\]: x <= 10; \[1\]: 100 < x <= 1000; \[2\]: 1000 < x <= 1000; \[3\]: x > 1000.
732    #[prost(int64, repeated, packed="false", tag="17")]
733    pub chunk_payload_histogram_def: ::prost::alloc::vec::Vec<i64>,
734    #[prost(message, repeated, tag="18")]
735    pub writer_stats: ::prost::alloc::vec::Vec<trace_stats::WriterStats>,
736    /// Num. producers connected (whether they are involved in the current tracing
737    /// session or not).
738    #[prost(uint32, optional, tag="2")]
739    pub producers_connected: ::core::option::Option<u32>,
740    /// Num. producers ever seen for all trace sessions since startup (it's a good
741    /// proxy for inferring num. producers crashed / killed).
742    #[prost(uint64, optional, tag="3")]
743    pub producers_seen: ::core::option::Option<u64>,
744    /// Num. data sources registered for all trace sessions.
745    #[prost(uint32, optional, tag="4")]
746    pub data_sources_registered: ::core::option::Option<u32>,
747    /// Num. data sources ever seen for all trace sessions since startup.
748    #[prost(uint64, optional, tag="5")]
749    pub data_sources_seen: ::core::option::Option<u64>,
750    /// Num. concurrently active tracing sessions.
751    #[prost(uint32, optional, tag="6")]
752    pub tracing_sessions: ::core::option::Option<u32>,
753    /// Num. buffers for all tracing session (not just the current one). This will
754    /// be >= buffer_stats.size(), because the latter is only about the current
755    /// session.
756    #[prost(uint32, optional, tag="7")]
757    pub total_buffers: ::core::option::Option<u32>,
758    // The fields below have been introduced in Android Q.
759
760    /// Num. chunks that were discarded by the service before attempting to commit
761    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
762    #[prost(uint64, optional, tag="8")]
763    pub chunks_discarded: ::core::option::Option<u64>,
764    /// Num. patches that were discarded by the service before attempting to apply
765    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
766    #[prost(uint64, optional, tag="9")]
767    pub patches_discarded: ::core::option::Option<u64>,
768    /// Packets that failed validation of the TrustedPacket. If this is > 0, there
769    /// is a bug in the producer.
770    #[prost(uint64, optional, tag="10")]
771    pub invalid_packets: ::core::option::Option<u64>,
772    #[prost(message, optional, tag="11")]
773    pub filter_stats: ::core::option::Option<trace_stats::FilterStats>,
774    /// Count of Flush() requests (either from the Consumer, or self-induced
775    /// periodic flushes). The final Flush() is also included in the count.
776    #[prost(uint64, optional, tag="12")]
777    pub flushes_requested: ::core::option::Option<u64>,
778    /// The count of the Flush() requests that were completed successfully.
779    /// In a well behaving trace this should always be == `flush_requests`.
780    #[prost(uint64, optional, tag="13")]
781    pub flushes_succeeded: ::core::option::Option<u64>,
782    /// The count of the Flush() requests that failed (in most timed out).
783    /// In a well behaving trace this should always be == 0.
784    #[prost(uint64, optional, tag="14")]
785    pub flushes_failed: ::core::option::Option<u64>,
786    #[prost(enumeration="trace_stats::FinalFlushOutcome", optional, tag="15")]
787    pub final_flush_outcome: ::core::option::Option<i32>,
788}
789/// Nested message and enum types in `TraceStats`.
790pub mod trace_stats {
791    /// From TraceBuffer::Stats.
792    ///
793    /// Next id: 22.
794    #[derive(Clone, PartialEq, ::prost::Message)]
795    pub struct BufferStats {
796        /// Size of the circular buffer in bytes.
797        #[prost(uint64, optional, tag="12")]
798        pub buffer_size: ::core::option::Option<u64>,
799        /// Num. bytes written into the circular buffer, including chunk headers.
800        #[prost(uint64, optional, tag="1")]
801        pub bytes_written: ::core::option::Option<u64>,
802        /// Num. bytes overwritten before they have been read (i.e. loss of data).
803        #[prost(uint64, optional, tag="13")]
804        pub bytes_overwritten: ::core::option::Option<u64>,
805        /// Total size of chunks that were fully read from the circular buffer by the
806        /// consumer. This may not be equal to |bytes_written| either in the middle
807        /// of tracing, or if |chunks_overwritten| is non-zero. Note that this is the
808        /// size of the chunks read from the buffer, including chunk headers, which
809        /// will be different from the total size of packets returned to the
810        /// consumer.
811        ///
812        /// The current utilization of the trace buffer (mid-tracing) can be obtained
813        /// by subtracting |bytes_read| and |bytes_overwritten| from |bytes_written|,
814        /// adding the difference of |padding_bytes_written| and
815        /// |padding_bytes_cleared|, and comparing this sum to the |buffer_size|.
816        /// Note that this represents the total size of buffered data in the buffer,
817        /// yet this data may be spread non-contiguously through the buffer and may
818        /// be overridden before the utilization reaches 100%.
819        #[prost(uint64, optional, tag="14")]
820        pub bytes_read: ::core::option::Option<u64>,
821        /// Num. bytes that were allocated as padding between chunks in the circular
822        /// buffer.
823        #[prost(uint64, optional, tag="15")]
824        pub padding_bytes_written: ::core::option::Option<u64>,
825        /// Num. of padding bytes that were removed from the circular buffer when
826        /// they were overwritten.
827        ///
828        /// The difference between |padding_bytes_written| and
829        /// |padding_bytes_cleared| denotes the total size of padding currently
830        /// present in the buffer.
831        #[prost(uint64, optional, tag="16")]
832        pub padding_bytes_cleared: ::core::option::Option<u64>,
833        /// Num. chunks (!= packets) written into the buffer.
834        #[prost(uint64, optional, tag="2")]
835        pub chunks_written: ::core::option::Option<u64>,
836        /// Num. chunks (!= packets) rewritten into the buffer. This means we rewrote
837        /// the same chunk with additional packets appended to the end.
838        #[prost(uint64, optional, tag="10")]
839        pub chunks_rewritten: ::core::option::Option<u64>,
840        /// Num. chunks overwritten before they have been read (i.e. loss of data).
841        #[prost(uint64, optional, tag="3")]
842        pub chunks_overwritten: ::core::option::Option<u64>,
843        /// Num. chunks discarded (i.e. loss of data). Can be > 0 only when a buffer
844        /// is configured with FillPolicy == DISCARD.
845        #[prost(uint64, optional, tag="18")]
846        pub chunks_discarded: ::core::option::Option<u64>,
847        /// Num. chunks (!= packets) that were fully read from the circular buffer by
848        /// the consumer. This may not be equal to |chunks_written| either in the
849        /// middle of tracing, or if |chunks_overwritten| is non-zero.
850        #[prost(uint64, optional, tag="17")]
851        pub chunks_read: ::core::option::Option<u64>,
852        /// Num. chunks that were committed out of order.
853        #[prost(uint64, optional, tag="11")]
854        pub chunks_committed_out_of_order: ::core::option::Option<u64>,
855        /// Num. times the ring buffer wrapped around.
856        #[prost(uint64, optional, tag="4")]
857        pub write_wrap_count: ::core::option::Option<u64>,
858        /// Num. out-of-band (OOB) patches that succeeded.
859        #[prost(uint64, optional, tag="5")]
860        pub patches_succeeded: ::core::option::Option<u64>,
861        /// Num. OOB patches that failed (e.g., the chunk to patch was gone).
862        #[prost(uint64, optional, tag="6")]
863        pub patches_failed: ::core::option::Option<u64>,
864        /// Num. readaheads (for large multi-chunk packet reads) that ended up in a
865        /// successful packet read.
866        #[prost(uint64, optional, tag="7")]
867        pub readaheads_succeeded: ::core::option::Option<u64>,
868        /// Num. readaheads aborted because of missing chunks in the sequence stream.
869        /// Note that a small number > 0 is totally expected: occasionally, when
870        /// issuing a read, the very last packet in a sequence might be incomplete
871        /// (because the producer is still writing it while we read). The read will
872        /// stop at that point, for that sequence, increasing this counter.
873        #[prost(uint64, optional, tag="8")]
874        pub readaheads_failed: ::core::option::Option<u64>,
875        /// Num. of violations of the SharedMemoryABI found while writing or reading
876        /// the buffer. This is an indication of either a bug in the producer(s) or
877        /// malicious producer(s).
878        #[prost(uint64, optional, tag="9")]
879        pub abi_violations: ::core::option::Option<u64>,
880        // The fields below have been introduced in Android R.
881
882        /// Num. of times the service detected packet loss on a trace writer
883        /// sequence. This is usually caused by exhaustion of available chunks in the
884        /// writer process's SMB. Note that this relies on the client's TraceWriter
885        /// indicating this loss to the service -- packets lost for other reasons are
886        /// not reflected in this stat.
887        #[prost(uint64, optional, tag="19")]
888        pub trace_writer_packet_loss: ::core::option::Option<u64>,
889        #[prost(message, optional, tag="21")]
890        pub shadow_buffer_stats: ::core::option::Option<buffer_stats::ShadowBufferStats>,
891    }
892    /// Nested message and enum types in `BufferStats`.
893    pub mod buffer_stats {
894        /// Statistics for TRACE_BUFFER_V2_SHADOW_MODE comparison.
895        /// Only populated when the buffer is configured with shadow mode.
896        #[derive(Clone, PartialEq, ::prost::Message)]
897        pub struct ShadowBufferStats {
898            /// Total num. packets read. This is not affected by capping of the hasher
899            /// to 32K elements.
900            #[prost(uint64, optional, tag="1")]
901            pub packets_seen: ::core::option::Option<u64>,
902            // The stats below are keps only for 32k packets. After reading 32K
903            // packets hashes are randomly evicted and that might lead to slightly
904            // inconsistent results.
905
906            /// Num. packets found in both V1 and V2 buffers (matched by content hash).
907            #[prost(uint64, optional, tag="2")]
908            pub packets_in_both: ::core::option::Option<u64>,
909            /// Num. packets found only in V1 buffer but not in V2.
910            #[prost(uint64, optional, tag="3")]
911            pub packets_only_v1: ::core::option::Option<u64>,
912            /// Num. packets found only in V2 buffer but not in V1.
913            #[prost(uint64, optional, tag="4")]
914            pub packets_only_v2: ::core::option::Option<u64>,
915            /// Num. patch operations attempted.
916            #[prost(uint64, optional, tag="5")]
917            pub patches_attempted: ::core::option::Option<u64>,
918            /// Num. patches that succeeded on V1 buffer.
919            #[prost(uint64, optional, tag="6")]
920            pub v1_patches_succeeded: ::core::option::Option<u64>,
921            /// Num. patches that succeeded on V2 buffer.
922            #[prost(uint64, optional, tag="7")]
923            pub v2_patches_succeeded: ::core::option::Option<u64>,
924            /// This is to distinguish the updated calculations after fixing the
925            /// hashes. This field is either empty or "2"
926            #[prost(uint32, optional, tag="8")]
927            pub stats_version: ::core::option::Option<u32>,
928        }
929    }
930    /// Per TraceWriter stat. Each {producer, trace writer} tuple is publicly
931    /// visible as a unique sequence ID in the trace.
932    #[derive(Clone, PartialEq, ::prost::Message)]
933    pub struct WriterStats {
934        /// This matches the TracePacket.trusted_packet_sequence_id and is used to
935        /// correlate the stats with the actual packet types.
936        #[prost(uint64, optional, tag="1")]
937        pub sequence_id: ::core::option::Option<u64>,
938        /// The buffer index (0..N, as defined in the TraceConfig).
939        #[prost(uint32, optional, tag="4")]
940        pub buffer: ::core::option::Option<u32>,
941        /// These two arrays have the same cardinality and match the cardinality of
942        /// chunk_payload_histogram_def + 1 (for the overflow bucket, see below).
943        /// `sum` contains the SUM(entries) and `counts` contains the COUNT(entries)
944        /// for each bucket.
945        #[prost(uint64, repeated, tag="2")]
946        pub chunk_payload_histogram_counts: ::prost::alloc::vec::Vec<u64>,
947        #[prost(int64, repeated, tag="3")]
948        pub chunk_payload_histogram_sum: ::prost::alloc::vec::Vec<i64>,
949    }
950    /// This is set only when the TraceConfig specifies a TraceFilter.
951    #[derive(Clone, PartialEq, ::prost::Message)]
952    pub struct FilterStats {
953        #[prost(uint64, optional, tag="1")]
954        pub input_packets: ::core::option::Option<u64>,
955        #[prost(uint64, optional, tag="2")]
956        pub input_bytes: ::core::option::Option<u64>,
957        #[prost(uint64, optional, tag="3")]
958        pub output_bytes: ::core::option::Option<u64>,
959        #[prost(uint64, optional, tag="4")]
960        pub errors: ::core::option::Option<u64>,
961        #[prost(uint64, optional, tag="5")]
962        pub time_taken_ns: ::core::option::Option<u64>,
963        /// The number of bytes discarded by the filter (i.e. output - input).
964        /// The array has one entry for each buffer defined in the config (unless no
965        /// packets for that buffer were seen and hence filtered).
966        /// Note: the SUM(bytes_discarded_per_buffer) will be <= but not == the total
967        /// (output_bytes - input_bytes) because the filter might also discard
968        /// server-generated synthetic packets, that have no buffer index.
969        #[prost(uint64, repeated, packed="false", tag="20")]
970        pub bytes_discarded_per_buffer: ::prost::alloc::vec::Vec<u64>,
971    }
972    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
973    #[repr(i32)]
974    pub enum FinalFlushOutcome {
975        FinalFlushUnspecified = 0,
976        FinalFlushSucceeded = 1,
977        FinalFlushFailed = 2,
978    }
979    impl FinalFlushOutcome {
980        /// String value of the enum field names used in the ProtoBuf definition.
981        ///
982        /// The values are not transformed in any way and thus are considered stable
983        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
984        pub fn as_str_name(&self) -> &'static str {
985            match self {
986                FinalFlushOutcome::FinalFlushUnspecified => "FINAL_FLUSH_UNSPECIFIED",
987                FinalFlushOutcome::FinalFlushSucceeded => "FINAL_FLUSH_SUCCEEDED",
988                FinalFlushOutcome::FinalFlushFailed => "FINAL_FLUSH_FAILED",
989            }
990        }
991    }
992}
993/// Builtin clock domains used in Perfetto traces.
994///
995/// The default trace time clock is BUILTIN_CLOCK_TRACE_FILE: a synthetic clock
996/// representing the trace file's own timeline. Each trace file gets its own
997/// instance (scoped by trace file index).
998///
999/// For backwards compatibility, Perfetto proto traces register BOOTTIME as a
1000/// fallback: if the first timestamp conversion uses a clock other than the
1001/// trace file clock and no explicit clock snapshot data exists, the trace time
1002/// is switched to BOOTTIME. This fallback does not fire for modern traces that
1003/// include ClockSnapshots or that only use the trace file clock directly.
1004///
1005/// The `primary_trace_clock` field in ClockSnapshot can definitively override
1006/// the trace time clock regardless of the above.
1007#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1008#[repr(i32)]
1009pub enum BuiltinClock {
1010    Unknown = 0,
1011    /// Corresponds to CLOCK_REALTIME. See clock_gettime(2).
1012    Realtime = 1,
1013    /// Corresponds to CLOCK_REALTIME_COARSE. See clock_gettime(2).
1014    RealtimeCoarse = 2,
1015    /// Corresponds to CLOCK_MONOTONIC. See clock_gettime(2).
1016    Monotonic = 3,
1017    /// Corresponds to CLOCK_MONOTONIC_COARSE. See clock_gettime(2).
1018    MonotonicCoarse = 4,
1019    /// Corresponds to CLOCK_MONOTONIC_RAW. See clock_gettime(2).
1020    MonotonicRaw = 5,
1021    /// Corresponds to CLOCK_BOOTTIME. See clock_gettime(2).
1022    /// For proto traces, this is used as a backwards-compatible fallback trace
1023    /// time clock when no explicit clock snapshots are present.
1024    Boottime = 6,
1025    /// TSC (Time Stamp Counter). Architecture-specific high-resolution counter.
1026    Tsc = 9,
1027    /// Corresponds to the perf event clock (PERF_CLOCK).
1028    Perf = 10,
1029    /// A synthetic clock representing the trace file's own timeline. Each trace
1030    /// file gets its own instance (scoped by trace file index). This is the
1031    /// default trace time clock before any clock snapshot or format-specific
1032    /// override takes effect.
1033    TraceFile = 11,
1034    MaxId = 63,
1035}
1036impl BuiltinClock {
1037    /// String value of the enum field names used in the ProtoBuf definition.
1038    ///
1039    /// The values are not transformed in any way and thus are considered stable
1040    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1041    pub fn as_str_name(&self) -> &'static str {
1042        match self {
1043            BuiltinClock::Unknown => "BUILTIN_CLOCK_UNKNOWN",
1044            BuiltinClock::Realtime => "BUILTIN_CLOCK_REALTIME",
1045            BuiltinClock::RealtimeCoarse => "BUILTIN_CLOCK_REALTIME_COARSE",
1046            BuiltinClock::Monotonic => "BUILTIN_CLOCK_MONOTONIC",
1047            BuiltinClock::MonotonicCoarse => "BUILTIN_CLOCK_MONOTONIC_COARSE",
1048            BuiltinClock::MonotonicRaw => "BUILTIN_CLOCK_MONOTONIC_RAW",
1049            BuiltinClock::Boottime => "BUILTIN_CLOCK_BOOTTIME",
1050            BuiltinClock::Tsc => "BUILTIN_CLOCK_TSC",
1051            BuiltinClock::Perf => "BUILTIN_CLOCK_PERF",
1052            BuiltinClock::TraceFile => "BUILTIN_CLOCK_TRACE_FILE",
1053            BuiltinClock::MaxId => "BUILTIN_CLOCK_MAX_ID",
1054        }
1055    }
1056}
1057/// Semantic types for string fields. This tells the filter what kind of
1058/// data the field contains, so it can apply the right filtering rules.
1059/// See /rfcs/0011-subset-string-filter-rules.md for design details.
1060/// Introduced in: Perfetto v54.
1061#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1062#[repr(i32)]
1063pub enum SemanticType {
1064    Unspecified = 0,
1065    Atrace = 1,
1066    Job = 2,
1067    Wakelock = 3,
1068}
1069impl SemanticType {
1070    /// String value of the enum field names used in the ProtoBuf definition.
1071    ///
1072    /// The values are not transformed in any way and thus are considered stable
1073    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1074    pub fn as_str_name(&self) -> &'static str {
1075        match self {
1076            SemanticType::Unspecified => "SEMANTIC_TYPE_UNSPECIFIED",
1077            SemanticType::Atrace => "SEMANTIC_TYPE_ATRACE",
1078            SemanticType::Job => "SEMANTIC_TYPE_JOB",
1079            SemanticType::Wakelock => "SEMANTIC_TYPE_WAKELOCK",
1080        }
1081    }
1082}
1083/// Options for the android.aflags data source.
1084/// This data source captures snapshots of Android aconfig flags.
1085/// See <https://source.android.com/docs/setup/build/feature-flagging/declare-flag>
1086/// for more information on aconfig flags.
1087#[derive(Clone, PartialEq, ::prost::Message)]
1088pub struct AndroidAflagsConfig {
1089    /// Frequency of polling. If absent or 0, the state will be recorded once,
1090    /// at the start of the trace.
1091    ///
1092    /// It is recommended to either leave this absent or set it to a large
1093    /// value as each invocation of the `aflags` tool can be time consuming
1094    /// (approx. 350ms) and also triggers an expensive flush. This is required to
1095    /// be > 1000ms if set, to avoid excessive CPU usage.
1096    #[prost(uint32, optional, tag="1")]
1097    pub poll_ms: ::core::option::Option<u32>,
1098}
1099/// Data source that lists game modes and game interventions of games
1100/// on an Android device.
1101#[derive(Clone, PartialEq, ::prost::Message)]
1102pub struct AndroidGameInterventionListConfig {
1103    /// If not empty, emit info about only the following list of package names
1104    /// (exact match, no regex). Otherwise, emit info about all packages.
1105    #[prost(string, repeated, tag="1")]
1106    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1107}
1108/// Custom configuration for the "android.input.inputevent" data source.
1109///
1110/// NOTE: Input traces can only be taken on debuggable (userdebug/eng) builds!
1111///
1112/// Next ID: 5
1113#[derive(Clone, PartialEq, ::prost::Message)]
1114pub struct AndroidInputEventConfig {
1115    /// The tracing mode to use. If unspecified, it will default to
1116    /// TRACE_MODE_USE_RULES.
1117    #[prost(enumeration="android_input_event_config::TraceMode", optional, tag="1")]
1118    pub mode: ::core::option::Option<i32>,
1119    /// The list of rules to use to determine the trace level of events.
1120    /// Each event will be traced using the TraceLevel of the first rule that it
1121    /// triggers from this list. The rules are evaluated in the order in which they
1122    /// are specified. If an event does not match any of the rules,
1123    /// TRACE_LEVEL_NONE will be used by default.
1124    #[prost(message, repeated, tag="2")]
1125    pub rules: ::prost::alloc::vec::Vec<android_input_event_config::TraceRule>,
1126    // --- Control flags ---
1127
1128    /// Trace input events processed by the system as they are being dispatched
1129    /// to application windows. All trace rules will apply.
1130    ///    - If this flag is used without enabling trace_dispatcher_window_dispatch,
1131    ///    it will
1132    ///      trace InputDispatcher's inbound events (which does not include events
1133    ///      synthesized within InputDispatcher) that match the rules.
1134    ///    - If used with trace_dispatcher_window_dispatch, all inbound and outbound
1135    ///    events
1136    ///      matching the rules, including all events synthesized within
1137    ///      InputDispatcher, will be traced.
1138    #[prost(bool, optional, tag="3")]
1139    pub trace_dispatcher_input_events: ::core::option::Option<bool>,
1140    /// Trace details about which windows the system is sending each input event
1141    /// to. All trace rules will apply.
1142    #[prost(bool, optional, tag="4")]
1143    pub trace_dispatcher_window_dispatch: ::core::option::Option<bool>,
1144}
1145/// Nested message and enum types in `AndroidInputEventConfig`.
1146pub mod android_input_event_config {
1147    /// A rule that specifies the TraceLevel for an event based on matching
1148    /// conditions. All matchers in the rule are optional. To trigger this rule, an
1149    /// event must match all of its specified matchers (i.e. the matchers function
1150    /// like a series of conditions connected by a logical 'AND' operator). A rule
1151    /// with no specified matchers will match all events. Next ID: 6
1152    #[derive(Clone, PartialEq, ::prost::Message)]
1153    pub struct TraceRule {
1154        /// The trace level to be used for events that trigger this rule.
1155        /// If unspecified, TRACE_LEVEL_NONE will be used by default.
1156        #[prost(enumeration="TraceLevel", optional, tag="1")]
1157        pub trace_level: ::core::option::Option<i32>,
1158        // --- Optional Matchers ---
1159
1160        /// Package matchers
1161        ///
1162        /// Respectively matches if all or any of the target apps for this event are
1163        /// contained in the specified list of package names.
1164        ///
1165        /// Intended usage:
1166        ///    - Use match_all_packages to selectively allow tracing for the listed
1167        ///    packages.
1168        ///    - Use match_any_packages to selectively deny tracing for certain
1169        ///    packages.
1170        ///
1171        /// WARNING: Great care must be taken when designing rules for field tracing!
1172        ///           This is because each event is almost always sent to more than
1173        ///           one app.
1174        ///               For example, when allowing tracing for a package that has a
1175        ///               spy window
1176        ///           over the display (e.g. SystemUI) using match_any_packages,
1177        ///           essentially all input will be recorded on that display. This is
1178        ///           because the events will be sent to the spy as well as the
1179        ///           foreground app, and regardless of what the foreground app is,
1180        ///           the event will end up being traced.
1181        ///               Alternatively, when attempting to block tracing for specific
1182        ///               packages using
1183        ///           match_all_packages, no events will likely be blocked. This is
1184        ///           because the event will also be sent to other apps (such as, but
1185        ///           not limited to, ones with spy windows), so the matcher will not
1186        ///           match unless all other targets are also listed under the
1187        ///           match_all_packages list.
1188        #[prost(string, repeated, tag="2")]
1189        pub match_all_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1190        #[prost(string, repeated, tag="3")]
1191        pub match_any_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1192        /// Matches if the event is secure, which means that at least one of the
1193        /// targets of this event is using the window flag FLAG_SECURE.
1194        #[prost(bool, optional, tag="4")]
1195        pub match_secure: ::core::option::Option<bool>,
1196        /// Matches if there was an active IME connection while this event was being
1197        /// processed.
1198        #[prost(bool, optional, tag="5")]
1199        pub match_ime_connection_active: ::core::option::Option<bool>,
1200    }
1201    /// Trace modes are tracing presets that are included in the system.
1202    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1203    #[repr(i32)]
1204    pub enum TraceMode {
1205        /// Preset mode for maximal tracing.
1206        /// WARNING: This will bypass all privacy measures on debuggable builds, and
1207        /// will record all
1208        ///           input events processed by the system, regardless of the context
1209        ///           in which they were processed. It should only be used for tracing
1210        ///           on a local device or for tests. It should NEVER be used for
1211        ///           field tracing.
1212        TraceAll = 0,
1213        /// Use the tracing rules defined in this config to specify what events to
1214        /// trace.
1215        UseRules = 1,
1216    }
1217    impl TraceMode {
1218        /// String value of the enum field names used in the ProtoBuf definition.
1219        ///
1220        /// The values are not transformed in any way and thus are considered stable
1221        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1222        pub fn as_str_name(&self) -> &'static str {
1223            match self {
1224                TraceMode::TraceAll => "TRACE_MODE_TRACE_ALL",
1225                TraceMode::UseRules => "TRACE_MODE_USE_RULES",
1226            }
1227        }
1228    }
1229    /// The level of tracing that should be applied to an event.
1230    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1231    #[repr(i32)]
1232    pub enum TraceLevel {
1233        /// Do not trace the input event.
1234        None = 0,
1235        /// Trace the event as a redacted event, where certain sensitive fields are
1236        /// omitted from the trace, including the coordinates of pointer events and
1237        /// the key/scan codes of key events.
1238        Redacted = 1,
1239        /// Trace the complete event.
1240        Complete = 2,
1241    }
1242    impl TraceLevel {
1243        /// String value of the enum field names used in the ProtoBuf definition.
1244        ///
1245        /// The values are not transformed in any way and thus are considered stable
1246        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1247        pub fn as_str_name(&self) -> &'static str {
1248            match self {
1249                TraceLevel::None => "TRACE_LEVEL_NONE",
1250                TraceLevel::Redacted => "TRACE_LEVEL_REDACTED",
1251                TraceLevel::Complete => "TRACE_LEVEL_COMPLETE",
1252            }
1253        }
1254    }
1255}
1256/// Values from NDK's android/log.h.
1257#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1258#[repr(i32)]
1259pub enum AndroidLogId {
1260    /// MAIN.
1261    LidDefault = 0,
1262    LidRadio = 1,
1263    LidEvents = 2,
1264    LidSystem = 3,
1265    LidCrash = 4,
1266    LidStats = 5,
1267    LidSecurity = 6,
1268    LidKernel = 7,
1269}
1270impl AndroidLogId {
1271    /// String value of the enum field names used in the ProtoBuf definition.
1272    ///
1273    /// The values are not transformed in any way and thus are considered stable
1274    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1275    pub fn as_str_name(&self) -> &'static str {
1276        match self {
1277            AndroidLogId::LidDefault => "LID_DEFAULT",
1278            AndroidLogId::LidRadio => "LID_RADIO",
1279            AndroidLogId::LidEvents => "LID_EVENTS",
1280            AndroidLogId::LidSystem => "LID_SYSTEM",
1281            AndroidLogId::LidCrash => "LID_CRASH",
1282            AndroidLogId::LidStats => "LID_STATS",
1283            AndroidLogId::LidSecurity => "LID_SECURITY",
1284            AndroidLogId::LidKernel => "LID_KERNEL",
1285        }
1286    }
1287}
1288#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1289#[repr(i32)]
1290pub enum AndroidLogPriority {
1291    PrioUnspecified = 0,
1292    /// _DEFAULT, but should never be seen in logs.
1293    PrioUnused = 1,
1294    PrioVerbose = 2,
1295    PrioDebug = 3,
1296    PrioInfo = 4,
1297    PrioWarn = 5,
1298    PrioError = 6,
1299    PrioFatal = 7,
1300}
1301impl AndroidLogPriority {
1302    /// String value of the enum field names used in the ProtoBuf definition.
1303    ///
1304    /// The values are not transformed in any way and thus are considered stable
1305    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1306    pub fn as_str_name(&self) -> &'static str {
1307        match self {
1308            AndroidLogPriority::PrioUnspecified => "PRIO_UNSPECIFIED",
1309            AndroidLogPriority::PrioUnused => "PRIO_UNUSED",
1310            AndroidLogPriority::PrioVerbose => "PRIO_VERBOSE",
1311            AndroidLogPriority::PrioDebug => "PRIO_DEBUG",
1312            AndroidLogPriority::PrioInfo => "PRIO_INFO",
1313            AndroidLogPriority::PrioWarn => "PRIO_WARN",
1314            AndroidLogPriority::PrioError => "PRIO_ERROR",
1315            AndroidLogPriority::PrioFatal => "PRIO_FATAL",
1316        }
1317    }
1318}
1319#[derive(Clone, PartialEq, ::prost::Message)]
1320pub struct AndroidLogConfig {
1321    #[prost(enumeration="AndroidLogId", repeated, packed="false", tag="1")]
1322    pub log_ids: ::prost::alloc::vec::Vec<i32>,
1323    /// If set ignores all log messages whose prio is < the given value.
1324    #[prost(enumeration="AndroidLogPriority", optional, tag="3")]
1325    pub min_prio: ::core::option::Option<i32>,
1326    /// If non-empty ignores all log messages whose tag doesn't match one of the
1327    /// specified values.
1328    #[prost(string, repeated, tag="4")]
1329    pub filter_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1330    /// If true, includes the contents of the logcat buffers that were already
1331    /// present before the data source started. By default (false), only new
1332    /// log entries produced after the data source starts are recorded.
1333    /// Can be useful for boot traces or situations where logs from before
1334    /// traced started are important.
1335    #[prost(bool, optional, tag="5")]
1336    pub preserve_log_buffer: ::core::option::Option<bool>,
1337}
1338/// Data source that polls for display state. This should only be used for
1339/// backward-compatibility; AndroidSystemPropertyConfig should be preferred.
1340#[derive(Clone, PartialEq, ::prost::Message)]
1341pub struct AndroidPolledStateConfig {
1342    /// Frequency of polling. If absent the state will be recorded once, at the
1343    /// start of the trace.
1344    /// This is required to be > 100ms to avoid excessive CPU usage.
1345    #[prost(uint32, optional, tag="1")]
1346    pub poll_ms: ::core::option::Option<u32>,
1347}
1348/// Data source that polls for system properties.
1349#[derive(Clone, PartialEq, ::prost::Message)]
1350pub struct AndroidSystemPropertyConfig {
1351    /// Frequency of polling. If absent the state will be recorded once, at the
1352    /// start of the trace.
1353    /// This is required to be > 100ms to avoid excessive CPU usage.
1354    #[prost(uint32, optional, tag="1")]
1355    pub poll_ms: ::core::option::Option<u32>,
1356    /// Properties to poll. All property names must start with "debug.tracing.".
1357    #[prost(string, repeated, tag="2")]
1358    pub property_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1359}
1360/// Data source that controls the system properties used to guard initialization
1361/// of track_event producers (i.e. Skia) in apps using HWUI, and certain
1362/// processes like SurfaceFlinger.
1363///
1364/// This data source only tells Skia to initialized the Perfetto SDK and start
1365/// routing data to the Track Event system instead of ATrace. For those events
1366/// to actually show up in a trace, the track_event data source must be used as
1367/// well. The Perfetto SDK cannot be de-initialized, so some long-lived apps and
1368/// processes may need to be restarted for Skia to revert to using ATrace if
1369/// Track Events are no longer desired.
1370///
1371/// In addition to switching Skia to use Perfetto's track_event data source,
1372/// this "guard" also controls Skia's "broad tracing", which removes Skia's
1373/// internal tracing constraints and allows the track_event config to specify
1374/// which categories should be traced. Filtering to the "skia.always" category
1375/// *tag* in a track_event config can be used to re-enable the standard
1376/// constraints typically used with ATrace.
1377///
1378/// Data source name: android.sdk_sysprop_guard
1379/// Introduced in Android 14 (U) QPR1.
1380/// Next id: 4
1381#[derive(Clone, PartialEq, ::prost::Message)]
1382pub struct AndroidSdkSyspropGuardConfig {
1383    /// If true, configures SurfaceFlinger to initialize Skia's Perfetto
1384    /// integration with the track_event data source in RenderEngine.
1385    /// If false or omitted, the simpler ATrace fallback is used.
1386    ///
1387    /// NOTE: once enabled, Skia will only revert to ATrace if SurfaceFlinger is
1388    /// restarted.
1389    ///
1390    /// Specifically this sets the following system properties:
1391    ///    - debug.tracing.ctl.renderengine.skia_tracing_enabled
1392    ///    - debug.tracing.ctl.renderengine.skia_use_perfetto_track_events
1393    ///
1394    /// Does not affect actual track_event data *collection*, which must be
1395    /// configured separately.
1396    #[prost(bool, optional, tag="1")]
1397    pub surfaceflinger_skia_track_events: ::core::option::Option<bool>,
1398    /// If true, configures HWUI apps to initialize Skia's Perfetto integration
1399    /// with the track_event data source. hwui_package_name_filter
1400    /// can be used to control which apps are affected.
1401    /// If false or omitted, the simpler ATrace fallback is used.
1402    ///
1403    /// NOTE: once enabled, Skia will only revert to ATrace if the app is
1404    /// restarted.
1405    ///
1406    /// ATTENTION: affects ALL HWUI APPS if hwui_package_name_filter is not set!
1407    /// If filtering is NOT set, this controls these GLOBAL system properties:
1408    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled
1409    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events
1410    /// If filtering IS set, this controls these APP-SPECIFIC system properties,
1411    /// for each package listed in the filter:
1412    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled.<package.name>
1413    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events.<package.name>
1414    ///
1415    /// Does not affect actual track_event data *collection*, which must be
1416    /// configured separately.
1417    #[prost(bool, optional, tag="2")]
1418    pub hwui_skia_track_events: ::core::option::Option<bool>,
1419    /// If non-empty, hwui_skia_track_events applies to only the packages listed.
1420    /// Otherwise, hwui_skia_track_events applies globally to all HWUI apps.
1421    #[prost(string, repeated, tag="3")]
1422    pub hwui_package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1423}
1424/// Configuration for the android.app_wakelocks data source.
1425#[derive(Clone, PartialEq, ::prost::Message)]
1426pub struct AppWakelocksConfig {
1427    /// Specifies the delay (in milliseconds) after which the data source will
1428    /// attempt to write events. Writing less frequently reduces the trace size by
1429    /// making better use of the packed arrays and reducing the total number of
1430    /// TracePackets needed (which each have dozens of bytes of overhead). The
1431    /// suggested delay is 5000ms.
1432    #[prost(int32, optional, tag="1")]
1433    pub write_delay_ms: ::core::option::Option<i32>,
1434    /// When set, wakelocks held for less than this amount of time are filtered
1435    /// from the resulting trace. Note: duration is computed by matching wakelocks
1436    /// with identical attributes, not by tracking the underlying objects. The
1437    /// threshold should be < the trace's flush_period_ms.
1438    #[prost(int32, optional, tag="2")]
1439    pub filter_duration_below_ms: ::core::option::Option<i32>,
1440    /// When true, the owner_pid is dropped from the resulting output, reducing the
1441    /// size of the interning tables.
1442    #[prost(bool, optional, tag="3")]
1443    pub drop_owner_pid: ::core::option::Option<bool>,
1444}
1445/// Data source that records CPU per UID data.
1446#[derive(Clone, PartialEq, ::prost::Message)]
1447pub struct CpuPerUidConfig {
1448    /// Record at this frequency.
1449    #[prost(uint32, optional, tag="1")]
1450    pub poll_ms: ::core::option::Option<u32>,
1451}
1452/// Custom configuration for the "android.inputmethod" data source.
1453#[derive(Clone, PartialEq, ::prost::Message)]
1454pub struct InputMethodConfig {
1455    /// If true, enables tracing in the clients.
1456    #[prost(bool, optional, tag="1")]
1457    pub client: ::core::option::Option<bool>,
1458    /// If true, enables tracing in InputMethodService.
1459    #[prost(bool, optional, tag="2")]
1460    pub service: ::core::option::Option<bool>,
1461    /// If true, enables tracing in InputMethodManagerService.
1462    #[prost(bool, optional, tag="3")]
1463    pub manager_service: ::core::option::Option<bool>,
1464}
1465/// Data source that records kernel (and native) wakelock data.
1466#[derive(Clone, PartialEq, ::prost::Message)]
1467pub struct KernelWakelocksConfig {
1468    /// Record at this frequency.
1469    #[prost(uint32, optional, tag="1")]
1470    pub poll_ms: ::core::option::Option<u32>,
1471}
1472/// Network tracing data source that records details on all packets sent or
1473/// received by the network.
1474#[derive(Clone, PartialEq, ::prost::Message)]
1475pub struct NetworkPacketTraceConfig {
1476    /// Polling frequency in milliseconds. Network tracing writes to a fixed size
1477    /// ring buffer. The polling interval should be such that the ring buffer is
1478    /// unlikely to fill in that interval (or that filling is an acceptable risk).
1479    /// The minimum polling rate is 100ms (values below this are ignored).
1480    /// Introduced in Android 14 (U).
1481    #[prost(uint32, optional, tag="1")]
1482    pub poll_ms: ::core::option::Option<u32>,
1483    /// The aggregation_threshold is the number of packets at which an event will
1484    /// switch from per-packet details to aggregate details. For example, a value
1485    /// of 50 means that if a particular event (grouped by the unique combinations
1486    /// of metadata fields: {interface, direction, uid, etc}) has fewer than 50
1487    /// packets, the exact timestamp and length are recorded for each packet. If
1488    /// there were 50 or more packets in an event, it would only record the total
1489    /// duration, packets, and length. A value of zero or unspecified will always
1490    /// / record per-packet details. A value of 1 always records aggregate details.
1491    #[prost(uint32, optional, tag="2")]
1492    pub aggregation_threshold: ::core::option::Option<u32>,
1493    /// Specifies the maximum number of packet contexts to intern at a time. This
1494    /// prevents the interning table from growing too large and controls whether
1495    /// interning is enabled or disabled (a value of zero disables interning and
1496    /// is the default). When a data sources interning table reaches this amount,
1497    /// packet contexts will be inlined into NetworkPacketEvents.
1498    #[prost(uint32, optional, tag="3")]
1499    pub intern_limit: ::core::option::Option<u32>,
1500    /// The following fields specify whether certain fields should be dropped from
1501    /// the output. Dropping fields improves normalization results, reduces the
1502    /// size of the interning table, and slightly reduces event size.
1503    #[prost(bool, optional, tag="4")]
1504    pub drop_local_port: ::core::option::Option<bool>,
1505    #[prost(bool, optional, tag="5")]
1506    pub drop_remote_port: ::core::option::Option<bool>,
1507    #[prost(bool, optional, tag="6")]
1508    pub drop_tcp_flags: ::core::option::Option<bool>,
1509}
1510/// Data source that lists details (such as version code) about packages on an
1511/// Android device.
1512#[derive(Clone, PartialEq, ::prost::Message)]
1513pub struct PackagesListConfig {
1514    /// If not empty, emit info about only the following list of package names
1515    /// (exact match, no regex). Can be combined with
1516    /// |package_name_regex_filter|: a package is included if it matches either
1517    /// filter. If both filters are empty, emit info about all packages.
1518    #[prost(string, repeated, tag="1")]
1519    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1520    /// If not empty, emit info about only the packages whose names match any of
1521    /// the following regexes (full match, not partial). Can be combined with
1522    /// |package_name_filter|: a package is included if it matches either filter.
1523    /// If both filters are empty, emit info about all packages.
1524    /// This field was introduced in Android 26Q2 (Perfetto v55).
1525    #[prost(string, repeated, tag="3")]
1526    pub package_name_regex_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1527    /// If present and non-zero, the data source will periodically poll for CPU
1528    /// use by packages and only emit results for those that it sees. If absent,
1529    /// the data source will emit results for all packages at startup. The package
1530    /// name filters apply either way.
1531    #[prost(uint32, optional, tag="2")]
1532    pub only_write_on_cpu_use_every_ms: ::core::option::Option<u32>,
1533}
1534/// Data source that records events from the modem.
1535#[derive(Clone, PartialEq, ::prost::Message)]
1536pub struct PixelModemConfig {
1537    #[prost(enumeration="pixel_modem_config::EventGroup", optional, tag="1")]
1538    pub event_group: ::core::option::Option<i32>,
1539    /// If set, record only events with these hashes.
1540    #[prost(int64, repeated, packed="false", tag="2")]
1541    pub pigweed_hash_allow_list: ::prost::alloc::vec::Vec<i64>,
1542    /// If set and allow_list is not set, deny events with these hashes.
1543    #[prost(int64, repeated, packed="false", tag="3")]
1544    pub pigweed_hash_deny_list: ::prost::alloc::vec::Vec<i64>,
1545}
1546/// Nested message and enum types in `PixelModemConfig`.
1547pub mod pixel_modem_config {
1548    /// Event group to record, as defined by the modem.
1549    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1550    #[repr(i32)]
1551    pub enum EventGroup {
1552        Unknown = 0,
1553        /// Events suitable for low bandwidth tracing only.
1554        LowBandwidth = 1,
1555        /// Events suitable for high and low bandwidth tracing.
1556        HighAndLowBandwidth = 2,
1557    }
1558    impl EventGroup {
1559        /// String value of the enum field names used in the ProtoBuf definition.
1560        ///
1561        /// The values are not transformed in any way and thus are considered stable
1562        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1563        pub fn as_str_name(&self) -> &'static str {
1564            match self {
1565                EventGroup::Unknown => "EVENT_GROUP_UNKNOWN",
1566                EventGroup::LowBandwidth => "EVENT_GROUP_LOW_BANDWIDTH",
1567                EventGroup::HighAndLowBandwidth => "EVENT_GROUP_HIGH_AND_LOW_BANDWIDTH",
1568            }
1569        }
1570    }
1571}
1572#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1573#[repr(i32)]
1574pub enum ProtoLogLevel {
1575    ProtologLevelUndefined = 0,
1576    ProtologLevelDebug = 1,
1577    ProtologLevelVerbose = 2,
1578    ProtologLevelInfo = 3,
1579    ProtologLevelWarn = 4,
1580    ProtologLevelError = 5,
1581    ProtologLevelWtf = 6,
1582}
1583impl ProtoLogLevel {
1584    /// String value of the enum field names used in the ProtoBuf definition.
1585    ///
1586    /// The values are not transformed in any way and thus are considered stable
1587    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1588    pub fn as_str_name(&self) -> &'static str {
1589        match self {
1590            ProtoLogLevel::ProtologLevelUndefined => "PROTOLOG_LEVEL_UNDEFINED",
1591            ProtoLogLevel::ProtologLevelDebug => "PROTOLOG_LEVEL_DEBUG",
1592            ProtoLogLevel::ProtologLevelVerbose => "PROTOLOG_LEVEL_VERBOSE",
1593            ProtoLogLevel::ProtologLevelInfo => "PROTOLOG_LEVEL_INFO",
1594            ProtoLogLevel::ProtologLevelWarn => "PROTOLOG_LEVEL_WARN",
1595            ProtoLogLevel::ProtologLevelError => "PROTOLOG_LEVEL_ERROR",
1596            ProtoLogLevel::ProtologLevelWtf => "PROTOLOG_LEVEL_WTF",
1597        }
1598    }
1599}
1600/// Custom configuration for the "android.protolog" data source.
1601/// ProtoLog is a logging mechanism that is intented to be more efficient than
1602/// logcat. This configures what logs to capture in the tracing instance.
1603#[derive(Clone, PartialEq, ::prost::Message)]
1604pub struct ProtoLogConfig {
1605    /// Specified the configurations for each of the logging groups. If none is
1606    /// specified for a group the defaults will be used.
1607    #[prost(message, repeated, tag="1")]
1608    pub group_overrides: ::prost::alloc::vec::Vec<ProtoLogGroup>,
1609    /// Specified what tracing mode to use for the tracing instance.
1610    #[prost(enumeration="proto_log_config::TracingMode", optional, tag="2")]
1611    pub tracing_mode: ::core::option::Option<i32>,
1612    /// If set, any message with log level higher than this level (inclusive) will
1613    /// be traced. Group overrides take precedence over this value.
1614    #[prost(enumeration="ProtoLogLevel", optional, tag="3")]
1615    pub default_log_from_level: ::core::option::Option<i32>,
1616}
1617/// Nested message and enum types in `ProtoLogConfig`.
1618pub mod proto_log_config {
1619    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1620    #[repr(i32)]
1621    pub enum TracingMode {
1622        /// When using the DEFAULT tracing mode, only log groups and levels specified
1623        /// in the group_overrides are traced.
1624        Default = 0,
1625        /// When using the ENABLE_ALL tracing mode, all log groups and levels are
1626        /// traced, unless specified in the group_overrides.
1627        EnableAll = 1,
1628    }
1629    impl TracingMode {
1630        /// String value of the enum field names used in the ProtoBuf definition.
1631        ///
1632        /// The values are not transformed in any way and thus are considered stable
1633        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1634        pub fn as_str_name(&self) -> &'static str {
1635            match self {
1636                TracingMode::Default => "DEFAULT",
1637                TracingMode::EnableAll => "ENABLE_ALL",
1638            }
1639        }
1640    }
1641}
1642#[derive(Clone, PartialEq, ::prost::Message)]
1643pub struct ProtoLogGroup {
1644    /// The ProtoLog group name this configuration entry applies to.
1645    #[prost(string, optional, tag="1")]
1646    pub group_name: ::core::option::Option<::prost::alloc::string::String>,
1647    /// Specify the level from which to start capturing protologs.
1648    /// e.g. if ProtoLogLevel.WARN is specified only warning, errors and fatal log
1649    /// message will be traced.
1650    #[prost(enumeration="ProtoLogLevel", optional, tag="2")]
1651    pub log_from: ::core::option::Option<i32>,
1652    /// When set to true we will collect the stacktrace for each protolog message
1653    /// in this group that we are tracing.
1654    #[prost(bool, optional, tag="3")]
1655    pub collect_stacktrace: ::core::option::Option<bool>,
1656}
1657/// Custom configuration for the "android.surfaceflinger.layers" data source.
1658#[derive(Clone, PartialEq, ::prost::Message)]
1659pub struct SurfaceFlingerLayersConfig {
1660    #[prost(enumeration="surface_flinger_layers_config::Mode", optional, tag="1")]
1661    pub mode: ::core::option::Option<i32>,
1662    #[prost(enumeration="surface_flinger_layers_config::TraceFlag", repeated, packed="false", tag="2")]
1663    pub trace_flags: ::prost::alloc::vec::Vec<i32>,
1664}
1665/// Nested message and enum types in `SurfaceFlingerLayersConfig`.
1666pub mod surface_flinger_layers_config {
1667    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1668    #[repr(i32)]
1669    pub enum Mode {
1670        Unspecified = 0,
1671        /// Trace layers snapshots. A snapshot is taken every time a layers change
1672        /// occurs.
1673        Active = 1,
1674        /// Generate layers snapshots from the transactions kept in the
1675        /// SurfaceFlinger's internal ring buffer.
1676        /// The layers snapshots generation occurs when this data source is flushed.
1677        Generated = 2,
1678        /// Trace a single layers snapshot.
1679        Dump = 3,
1680        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1681        /// Same as MODE_GENERATED, but triggers the layers snapshots generation only
1682        /// when a bugreport is taken.
1683        GeneratedBugreportOnly = 4,
1684        /// Layer snapshots are generated by ProtoVM from layer patches
1685        Protovm = 5,
1686    }
1687    impl Mode {
1688        /// String value of the enum field names used in the ProtoBuf definition.
1689        ///
1690        /// The values are not transformed in any way and thus are considered stable
1691        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1692        pub fn as_str_name(&self) -> &'static str {
1693            match self {
1694                Mode::Unspecified => "MODE_UNSPECIFIED",
1695                Mode::Active => "MODE_ACTIVE",
1696                Mode::Generated => "MODE_GENERATED",
1697                Mode::Dump => "MODE_DUMP",
1698                Mode::GeneratedBugreportOnly => "MODE_GENERATED_BUGREPORT_ONLY",
1699                Mode::Protovm => "MODE_PROTOVM",
1700            }
1701        }
1702    }
1703    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1704    #[repr(i32)]
1705    pub enum TraceFlag {
1706        Unspecified = 0,
1707        Input = 2,
1708        Composition = 4,
1709        Extra = 8,
1710        Hwc = 16,
1711        Buffers = 32,
1712        VirtualDisplays = 64,
1713        /// INPUT | COMPOSITION | EXTRA
1714        All = 14,
1715    }
1716    impl TraceFlag {
1717        /// String value of the enum field names used in the ProtoBuf definition.
1718        ///
1719        /// The values are not transformed in any way and thus are considered stable
1720        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1721        pub fn as_str_name(&self) -> &'static str {
1722            match self {
1723                TraceFlag::Unspecified => "TRACE_FLAG_UNSPECIFIED",
1724                TraceFlag::Input => "TRACE_FLAG_INPUT",
1725                TraceFlag::Composition => "TRACE_FLAG_COMPOSITION",
1726                TraceFlag::Extra => "TRACE_FLAG_EXTRA",
1727                TraceFlag::Hwc => "TRACE_FLAG_HWC",
1728                TraceFlag::Buffers => "TRACE_FLAG_BUFFERS",
1729                TraceFlag::VirtualDisplays => "TRACE_FLAG_VIRTUAL_DISPLAYS",
1730                TraceFlag::All => "TRACE_FLAG_ALL",
1731            }
1732        }
1733    }
1734}
1735/// Custom configuration for the "android.surfaceflinger.transactions" data
1736/// source.
1737#[derive(Clone, PartialEq, ::prost::Message)]
1738pub struct SurfaceFlingerTransactionsConfig {
1739    #[prost(enumeration="surface_flinger_transactions_config::Mode", optional, tag="1")]
1740    pub mode: ::core::option::Option<i32>,
1741}
1742/// Nested message and enum types in `SurfaceFlingerTransactionsConfig`.
1743pub mod surface_flinger_transactions_config {
1744    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1745    #[repr(i32)]
1746    pub enum Mode {
1747        Unspecified = 0,
1748        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1749        /// SurfaceFlinger writes its internal ring buffer of transactions every time
1750        /// the data source is flushed. The ring buffer contains the SurfaceFlinger's
1751        /// initial state and the latest transactions.
1752        Continuous = 1,
1753        /// SurfaceFlinger writes the initial state and then each incoming
1754        /// transaction until the data source is stopped.
1755        Active = 2,
1756    }
1757    impl Mode {
1758        /// String value of the enum field names used in the ProtoBuf definition.
1759        ///
1760        /// The values are not transformed in any way and thus are considered stable
1761        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1762        pub fn as_str_name(&self) -> &'static str {
1763            match self {
1764                Mode::Unspecified => "MODE_UNSPECIFIED",
1765                Mode::Continuous => "MODE_CONTINUOUS",
1766                Mode::Active => "MODE_ACTIVE",
1767            }
1768        }
1769    }
1770}
1771/// Data source that lists details (such as version code) about users on an
1772/// Android device.
1773#[derive(Clone, PartialEq, ::prost::Message)]
1774pub struct AndroidUserListConfig {
1775    /// An allowlist of user type strings, used to control the granularity of
1776    /// user type information emitted in the trace. Exact, case-sensitive string
1777    /// matching is used.
1778    ///
1779    /// Any user type read from the device that is NOT present in the
1780    /// effective allowlist will have its type reported as
1781    /// "android.os.usertype.FILTERED".
1782    ///
1783    /// The effective allowlist is determined as follows:
1784    ///
1785    /// 1. If this 'user_type_filter' field is provided and non-empty:
1786    ///     This list itself is the effective allowlist.
1787    ///     Example TraceConfig:
1788    ///     --------------------
1789    ///     data_sources {
1790    ///         config {
1791    ///             name: "android.user_list"
1792    ///             target_buffer: 0
1793    ///             user_list_config {
1794    ///               # Only report these specific types, others become FILTERED.
1795    ///               user_type_filter: "android.os.usertype.full.SYSTEM"
1796    ///               user_type_filter: "android.os.usertype.system.HEADLESS"
1797    ///             }
1798    ///         }
1799    ///     }
1800    ///
1801    ///
1802    /// Note: This field does not support regular expressions.
1803    #[prost(string, repeated, tag="1")]
1804    pub user_type_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1805}
1806/// Custom configuration for the "android.windowmanager" data source.
1807#[derive(Clone, PartialEq, ::prost::Message)]
1808pub struct WindowManagerConfig {
1809    #[prost(enumeration="window_manager_config::LogFrequency", optional, tag="1")]
1810    pub log_frequency: ::core::option::Option<i32>,
1811    #[prost(enumeration="window_manager_config::LogLevel", optional, tag="2")]
1812    pub log_level: ::core::option::Option<i32>,
1813}
1814/// Nested message and enum types in `WindowManagerConfig`.
1815pub mod window_manager_config {
1816    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1817    #[repr(i32)]
1818    pub enum LogFrequency {
1819        Unspecified = 0,
1820        /// Trace state snapshots when a frame is committed.
1821        Frame = 1,
1822        /// Trace state snapshots every time a transaction is committed.
1823        Transaction = 2,
1824        /// Trace single state snapshots when the data source is started.
1825        SingleDump = 3,
1826    }
1827    impl LogFrequency {
1828        /// String value of the enum field names used in the ProtoBuf definition.
1829        ///
1830        /// The values are not transformed in any way and thus are considered stable
1831        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1832        pub fn as_str_name(&self) -> &'static str {
1833            match self {
1834                LogFrequency::Unspecified => "LOG_FREQUENCY_UNSPECIFIED",
1835                LogFrequency::Frame => "LOG_FREQUENCY_FRAME",
1836                LogFrequency::Transaction => "LOG_FREQUENCY_TRANSACTION",
1837                LogFrequency::SingleDump => "LOG_FREQUENCY_SINGLE_DUMP",
1838            }
1839        }
1840    }
1841    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1842    #[repr(i32)]
1843    pub enum LogLevel {
1844        Unspecified = 0,
1845        /// Logs all elements with maximum amount of information.
1846        Verbose = 1,
1847        /// Logs all elements but doesn't write all configuration data.
1848        Debug = 2,
1849        /// Logs only visible elements, with the minimum amount of performance
1850        /// overhead
1851        Critical = 3,
1852    }
1853    impl LogLevel {
1854        /// String value of the enum field names used in the ProtoBuf definition.
1855        ///
1856        /// The values are not transformed in any way and thus are considered stable
1857        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1858        pub fn as_str_name(&self) -> &'static str {
1859            match self {
1860                LogLevel::Unspecified => "LOG_LEVEL_UNSPECIFIED",
1861                LogLevel::Verbose => "LOG_LEVEL_VERBOSE",
1862                LogLevel::Debug => "LOG_LEVEL_DEBUG",
1863                LogLevel::Critical => "LOG_LEVEL_CRITICAL",
1864            }
1865        }
1866    }
1867}
1868#[derive(Clone, PartialEq, ::prost::Message)]
1869pub struct ChromeConfig {
1870    #[prost(string, optional, tag="1")]
1871    pub trace_config: ::core::option::Option<::prost::alloc::string::String>,
1872    /// When enabled, the data source should only fill in fields in the output that
1873    /// are not potentially privacy sensitive.
1874    #[prost(bool, optional, tag="2")]
1875    pub privacy_filtering_enabled: ::core::option::Option<bool>,
1876    /// Instead of emitting binary protobuf, convert the trace data to the legacy
1877    /// JSON format. Note that the trace data will still be returned as a series of
1878    /// TracePackets, but the embedded data will be JSON instead of serialized
1879    /// protobuf.
1880    #[prost(bool, optional, tag="3")]
1881    pub convert_to_legacy_json: ::core::option::Option<bool>,
1882    #[prost(enumeration="chrome_config::ClientPriority", optional, tag="4")]
1883    pub client_priority: ::core::option::Option<i32>,
1884    /// Applicable only when using legacy JSON format.
1885    /// If |json_agent_label_filter| is not empty, only data pertaining to
1886    /// the specified tracing agent label (e.g. "traceEvents") will be returned.
1887    #[prost(string, optional, tag="5")]
1888    pub json_agent_label_filter: ::core::option::Option<::prost::alloc::string::String>,
1889    ///   When enabled, event names should not contain package names.
1890    #[prost(bool, optional, tag="6")]
1891    pub event_package_name_filter_enabled: ::core::option::Option<bool>,
1892}
1893/// Nested message and enum types in `ChromeConfig`.
1894pub mod chrome_config {
1895    /// Priority of the tracing session client. A higher priority session may
1896    /// preempt a lower priority one in configurations where concurrent sessions
1897    /// aren't supported.
1898    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1899    #[repr(i32)]
1900    pub enum ClientPriority {
1901        Unknown = 0,
1902        Background = 1,
1903        UserInitiated = 2,
1904    }
1905    impl ClientPriority {
1906        /// String value of the enum field names used in the ProtoBuf definition.
1907        ///
1908        /// The values are not transformed in any way and thus are considered stable
1909        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1910        pub fn as_str_name(&self) -> &'static str {
1911            match self {
1912                ClientPriority::Unknown => "UNKNOWN",
1913                ClientPriority::Background => "BACKGROUND",
1914                ClientPriority::UserInitiated => "USER_INITIATED",
1915            }
1916        }
1917    }
1918}
1919#[derive(Clone, PartialEq, ::prost::Message)]
1920pub struct V8Config {
1921    /// Whether to log the actual content of scripts (e.g. content of the JS file
1922    /// that was compiled to generate code).
1923    /// ATTENTION: This could considerably increase the size of the resuling trace
1924    ///             file.
1925    #[prost(bool, optional, tag="1")]
1926    pub log_script_sources: ::core::option::Option<bool>,
1927    /// Whether to log the generated code for jitted functions (machine code or
1928    /// bytecode).
1929    /// ATTENTION: This could considerably increase the size of the resuling trace
1930    ///             file.
1931    #[prost(bool, optional, tag="2")]
1932    pub log_instructions: ::core::option::Option<bool>,
1933}
1934/// Proto definition based on the struct _EVENT_TRACE_PROPERTIES definition
1935/// See: <https://learn.microsoft.com/en-us/windows/win32/api/evntrace/>
1936/// ns-evntrace-event_trace_properties
1937#[derive(Clone, PartialEq, ::prost::Message)]
1938pub struct EtwConfig {
1939    /// The kernel_flags determines the flags that will be used by the etw tracing
1940    /// session. These kernel flags have been built to expose the useful events
1941    /// captured from the kernel mode only.
1942    #[prost(enumeration="etw_config::KernelFlag", repeated, packed="false", tag="1")]
1943    pub kernel_flags: ::prost::alloc::vec::Vec<i32>,
1944    // See the list of keywords for for individual providers.
1945    // <https://learn.microsoft.com/en-us/windows/win32/etw/system-providers>
1946
1947    /// Provides events relating to the scheduler.
1948    #[prost(string, repeated, tag="2")]
1949    pub scheduler_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1950    /// Provides events relating to the memory manager.
1951    #[prost(string, repeated, tag="3")]
1952    pub memory_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1953    /// Provides events relating to file I/O.
1954    #[prost(string, repeated, tag="4")]
1955    pub file_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1956}
1957/// Nested message and enum types in `EtwConfig`.
1958pub mod etw_config {
1959    /// The KernelFlag represent list of kernel flags that we are intrested in.
1960    /// To get a more extensive list run 'xperf -providers k'.
1961    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1962    #[repr(i32)]
1963    pub enum KernelFlag {
1964        Cswitch = 0,
1965        Dispatcher = 1,
1966    }
1967    impl KernelFlag {
1968        /// String value of the enum field names used in the ProtoBuf definition.
1969        ///
1970        /// The values are not transformed in any way and thus are considered stable
1971        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1972        pub fn as_str_name(&self) -> &'static str {
1973            match self {
1974                KernelFlag::Cswitch => "CSWITCH",
1975                KernelFlag::Dispatcher => "DISPATCHER",
1976            }
1977        }
1978    }
1979}
1980#[derive(Clone, PartialEq, ::prost::Message)]
1981pub struct ChromiumSystemMetricsConfig {
1982    /// Samples counters every X ms.
1983    #[prost(uint32, optional, tag="1")]
1984    pub sampling_interval_ms: ::core::option::Option<u32>,
1985}
1986/// Next id: 38
1987#[derive(Clone, PartialEq, ::prost::Message)]
1988pub struct FtraceConfig {
1989    /// Ftrace events to record, example: "sched/sched_switch".
1990    #[prost(string, repeated, tag="1")]
1991    pub ftrace_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1992    /// Android-specific event categories:
1993    #[prost(string, repeated, tag="2")]
1994    pub atrace_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1995    #[prost(string, repeated, tag="3")]
1996    pub atrace_apps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1997    /// Some processes can emit data through atrace or through the perfetto SDK via
1998    /// the "track_event" data source. For these categories, the SDK will be
1999    /// preferred, if possible, for this config.
2000    #[prost(string, repeated, tag="28")]
2001    pub atrace_categories_prefer_sdk: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2002    /// If true, do *not* add in extra ftrace events when |atrace_categories| are
2003    /// set. This skips the legacy "atrace" behaviour of adding hardcoded ftrace
2004    /// events for convenience (and the vendor-specific events on top).
2005    /// Introduced in: perfetto v52.
2006    #[prost(bool, optional, tag="34")]
2007    pub atrace_userspace_only: ::core::option::Option<bool>,
2008    /// Size of each per-cpu kernel ftrace ring buffer.
2009    /// Not guaranteed if there are multiple concurrent tracing sessions, as the
2010    /// buffers cannot be resized without pausing recording in the kernel.
2011    #[prost(uint32, optional, tag="10")]
2012    pub buffer_size_kb: ::core::option::Option<u32>,
2013    /// If true, |buffer_size_kb| is interpreted as a lower bound, allowing the
2014    /// implementation to choose a bigger buffer size.
2015    ///
2016    /// Most configs for perfetto v43+ should simply leave both fields unset.
2017    ///
2018    /// If you need a config compatible with a range of perfetto builds and you
2019    /// used to set a non-default buffer_size_kb, consider setting both fields.
2020    /// Example:
2021    ///    buffer_size_kb: 4096
2022    ///    buffer_size_lower_bound: true
2023    /// On older builds, the per-cpu buffers will be exactly 4 MB.
2024    /// On v43+, buffers will be at least 4 MB.
2025    /// In both cases, neither is guaranteed if there are other concurrent
2026    /// perfetto ftrace sessions, as the buffers cannot be resized without pausing
2027    /// the recording in the kernel.
2028    /// Introduced in: perfetto v43.
2029    #[prost(bool, optional, tag="27")]
2030    pub buffer_size_lower_bound: ::core::option::Option<bool>,
2031    /// If set, specifies how often the tracing daemon reads from the kernel ring
2032    /// buffer. Not guaranteed if there are multiple concurrent tracing sessions.
2033    /// Leave unset unless you're fine-tuning a local config.
2034    #[prost(uint32, optional, tag="11")]
2035    pub drain_period_ms: ::core::option::Option<u32>,
2036    /// If set, the tracing daemon will read kernel ring buffers as soon as
2037    /// they're filled past this percentage of occupancy. In other words, a value
2038    /// of 50 means that a read pass is triggered as soon as any per-cpu buffer is
2039    /// half-full. Not guaranteed if there are multiple concurrent tracing
2040    /// sessions.
2041    /// Currently does nothing on Linux kernels below v6.9.
2042    /// Introduced in: perfetto v48.
2043    #[prost(uint32, optional, tag="29")]
2044    pub drain_buffer_percent: ::core::option::Option<u32>,
2045    #[prost(message, optional, tag="12")]
2046    pub compact_sched: ::core::option::Option<ftrace_config::CompactSchedConfig>,
2047    #[prost(message, optional, tag="22")]
2048    pub print_filter: ::core::option::Option<ftrace_config::PrintFilter>,
2049    /// Enables symbol name resolution against /proc/kallsyms.
2050    /// It requires that either traced_probes is running as root or that
2051    /// kptr_restrict has been manually lowered.
2052    /// It does not disclose KASLR, symbol addresses are mangled.
2053    #[prost(bool, optional, tag="13")]
2054    pub symbolize_ksyms: ::core::option::Option<bool>,
2055    #[prost(enumeration="ftrace_config::KsymsMemPolicy", optional, tag="17")]
2056    pub ksyms_mem_policy: ::core::option::Option<i32>,
2057    /// When this boolean is true AND the ftrace_events contains "kmem/rss_stat",
2058    /// this option causes traced_probes to enable the "kmem/rss_stat_throttled"
2059    /// event instead if present, and fall back to "kmem/rss_stat" if not present.
2060    /// The historical context for this is the following:
2061    /// - Up to Android S (12), the rss_stat was internally throttled in its
2062    ///    kernel implementation.
2063    /// - A change introduced in the kernels after S has introduced a new
2064    ///    "rss_stat_throttled" making the original "rss_stat" event unthrottled
2065    ///    (hence very spammy).
2066    /// - Not all Android T/13 devices will receive a new kernel though, hence we
2067    ///    need to deal with both cases.
2068    /// For more context: go/rss-stat-throttled.
2069    #[prost(bool, optional, tag="15")]
2070    pub throttle_rss_stat: ::core::option::Option<bool>,
2071    /// If true, use self-describing proto messages when writing events not known
2072    /// at compile time (aka generic events). Each event bundle will have a set of
2073    /// serialised proto descriptors for events within that bundle.
2074    ///
2075    /// Default if unset:
2076    /// * v53+: true
2077    /// * before v53: false
2078    ///
2079    /// Added in: perfetto v50.
2080    #[prost(bool, optional, tag="32")]
2081    pub denser_generic_event_encoding: ::core::option::Option<bool>,
2082    /// If true, avoid enabling events that aren't statically known by
2083    /// traced_probes. Otherwise, the default is to emit such events as
2084    /// GenericFtraceEvent protos.
2085    /// Prefer to keep this flag at its default. This was added for Android
2086    /// tracing, where atrace categories and/or atrace HAL requested events can
2087    /// expand to events that aren't of interest to the tracing user.
2088    /// Introduced in: Android T.
2089    #[prost(bool, optional, tag="16")]
2090    pub disable_generic_events: ::core::option::Option<bool>,
2091    /// The subset of syscalls to record. To record all syscalls, leave this unset
2092    /// and add "ftrace_events: raw_syscalls/sys_{enter,exit}" to the config.
2093    /// * before perfetto v43, requires the config to also enable
2094    ///    raw_syscalls/sys_{enter,exit}.
2095    /// * perfetto v43+ does the right thing if you set only this field.
2096    /// Example: ["sys_read", "sys_open"].
2097    /// Introduced in: Android U.
2098    #[prost(string, repeated, tag="18")]
2099    pub syscall_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2100    /// If true, enable the "function_graph" kernel tracer that emits events
2101    /// whenever a kernel function is entered and exited
2102    /// (funcgraph_entry/funcgraph_exit).
2103    /// Notes on use:
2104    /// * Requires |symbolize_ksyms| for function name resolution.
2105    /// * Use |function_filters| or |function_graph_roots| to constrain the traced
2106    ///    set of functions, otherwise the event bandwidth will be too high for
2107    ///    practical use.
2108    /// * The data source might be rejected if there is already a concurrent
2109    ///    ftrace data source that does not use function graph itself, as we do not
2110    ///    support switching kernel tracers mid-trace.
2111    /// * Requires a kernel compiled with CONFIG_FUNCTION_GRAPH_TRACER. This is
2112    ///    enabled if "cat /sys/kernel/tracing/available_tracers" includes
2113    ///    "function_graph".
2114    /// Android:
2115    /// * Available only on debuggable builds.
2116    /// * Introduced in: Android U.
2117    #[prost(bool, optional, tag="19")]
2118    pub enable_function_graph: ::core::option::Option<bool>,
2119    /// Constrains the set of functions traced when |enable_function_graph| is
2120    /// true. Supports globs, e.g. "sched*". You can specify multiple filters,
2121    /// in which case all matching functions will be traced. See kernel
2122    /// documentation on ftrace "set_ftrace_filter" file for more details.
2123    /// Android:
2124    /// * Available only on debuggable builds.
2125    /// * Introduced in: Android U.
2126    #[prost(string, repeated, tag="20")]
2127    pub function_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2128    /// If |enable_function_graph| is true, trace this set of functions *and* all
2129    /// of its callees. Supports globs. Can be set together with
2130    /// |function_filters|, in which case only callees matching the filter will be
2131    /// traced. If setting both, you most likely want all roots to also be
2132    /// included in |function_filters|.
2133    /// Android:
2134    /// * Available only on debuggable builds.
2135    /// * Introduced in: Android U.
2136    #[prost(string, repeated, tag="21")]
2137    pub function_graph_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2138    /// If |enable_function_graph| is true, only trace the specified
2139    /// number of calls down the stack. Sets the max_graph_depth value
2140    /// in sys/kernel/tracing/
2141    ///
2142    /// Only respected for the first tracing session that enables
2143    /// function_graph tracing.
2144    ///
2145    /// Introduced in: perfetto v51.
2146    /// Supported on: Android 25Q3+.
2147    #[prost(uint32, optional, tag="33")]
2148    pub function_graph_max_depth: ::core::option::Option<u32>,
2149    /// Ftrace events to record, specific for kprobes and kretprobes
2150    #[prost(message, repeated, tag="30")]
2151    pub kprobe_events: ::prost::alloc::vec::Vec<ftrace_config::KprobeEvent>,
2152    /// If true, does not clear kernel ftrace buffers when starting the trace.
2153    /// This makes sense only if this is the first ftrace data source instance
2154    /// created after the daemon has been started. Can be useful for gathering boot
2155    /// traces, if ftrace has been separately configured (e.g. via kernel
2156    /// commandline).
2157    /// NB: when configuring the pre-perfetto ftrace, prefer to set
2158    /// "/sys/kernel/tracing/trace_clock" to "boot" if your trace will contain
2159    /// anything besides ftrace. Otherwise timestamps might be skewed.
2160    #[prost(bool, optional, tag="23")]
2161    pub preserve_ftrace_buffer: ::core::option::Option<bool>,
2162    /// If true, overrides the default timestamp clock and uses a raw hardware
2163    /// based monotonic clock for getting timestamps.
2164    /// * Introduced in: Android U.
2165    #[prost(bool, optional, tag="24")]
2166    pub use_monotonic_raw_clock: ::core::option::Option<bool>,
2167    /// If |instance_name| is not empty, then attempt to use that tracefs instance
2168    /// for event recording. Normally, this means
2169    /// `/sys/kernel/tracing/instances/$instance_name`.
2170    ///
2171    /// Names "hyp" and "hypervisor" are reserved.
2172    ///
2173    /// The instance must already exist, the tracing daemon *will not* create it
2174    /// for you as it typically doesn't have such permissions.
2175    /// Only a subset of features is guaranteed to work with non-default instances,
2176    /// at the time of writing:
2177    ///   * ftrace_events
2178    ///   * buffer_size_kb
2179    #[prost(string, optional, tag="25")]
2180    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2181    /// For perfetto developer use. If true and on a debuggable android build,
2182    /// serialise raw tracing pages that the implementation cannot parse.
2183    #[prost(bool, optional, tag="31")]
2184    pub debug_ftrace_abi: ::core::option::Option<bool>,
2185    // =================================================
2186    // Exclusive single-tenant features: HERE BE DRAGONS
2187    // =================================================
2188    // The features below are considered "advanced" and require an exclusive
2189    // tracing session (as of Android 25Q3+ and Perfetto v52).
2190    //
2191    // These features directly manipulate the kernel's global ftrace state and
2192    // are incompatible with concurrent ftrace sessions. They are only enabled
2193    // if included in the *first* ftrace data source configured. Subsequent
2194    // ftrace data sources (even those not using advanced features) will be
2195    // rejected while a session with these features is active.
2196    //
2197    // To run the session in exclusive mode, see:
2198    // <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2199
2200    /// Filter ftrace events by Thread ID (TID).
2201    /// This writes the TIDs to `/sys/kernel/tracing/set_event_pid`.
2202    ///
2203    /// Note: this is an exclusive feature, see:
2204    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2205    ///
2206    /// Introduced in: perfetto v52.
2207    /// Supported on: Android 25Q3+.
2208    #[prost(uint32, repeated, packed="false", tag="35")]
2209    pub tids_to_trace: ::prost::alloc::vec::Vec<u32>,
2210    #[prost(message, repeated, tag="36")]
2211    pub tracefs_options: ::prost::alloc::vec::Vec<ftrace_config::TracefsOption>,
2212    /// This mask restricts tracing to a specific set of CPUs using a
2213    /// comma-separated hex mask. Each hex number (up to 8 digits) represents a
2214    /// 32-bit chunk of the CPU mask.
2215    ///
2216    /// The chunks are ordered from high CPUs to low CPUs (left to right):
2217    ///    - Rightmost chunk: CPUs 0-31
2218    ///    - 2nd chunk from right: CPUs 32-63
2219    ///    - ...and so on.
2220    ///
2221    /// Example (assuming NR_CPUS=128, requiring 4 chunks):
2222    /// The full mask would be in the format: "chunk3,chunk2,chunk1,chunk0"
2223    /// where chunk3 maps to CPUs 96-127, chunk2 to 64-95, chunk1 to 32-63, and
2224    /// chunk0 to 0-31.
2225    ///    - "ffffffff,0,0,0": Enables CPUs 96-127 only.
2226    ///    - "f,ff": Enables CPUs 0-7 (from "ff") and CPUs 32-35 (from "f").
2227    ///
2228    /// Note: This is an exclusive feature, see:
2229    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2230    ///
2231    /// Introduced in: perfetto v52.
2232    /// Supported on: Android 25Q3+.
2233    #[prost(string, optional, tag="37")]
2234    pub tracing_cpumask: ::core::option::Option<::prost::alloc::string::String>,
2235    /// No-op in perfetto v28+. Name preserved because of existing references in
2236    /// textproto configs.
2237    #[deprecated]
2238    #[prost(bool, optional, tag="14")]
2239    pub initialize_ksyms_synchronously_for_testing: ::core::option::Option<bool>,
2240}
2241/// Nested message and enum types in `FtraceConfig`.
2242pub mod ftrace_config {
2243    /// Configuration for compact encoding of scheduler events. When enabled (and
2244    /// recording the relevant ftrace events), specific high-volume events are
2245    /// encoded in a denser format than normal.
2246    #[derive(Clone, PartialEq, ::prost::Message)]
2247    pub struct CompactSchedConfig {
2248        /// If true, and sched_switch or sched_waking ftrace events are enabled,
2249        /// record those events in the compact format.
2250        ///
2251        /// If the field is unset, the default is:
2252        /// * perfetto v42.0+: enabled
2253        /// * before: disabled
2254        #[prost(bool, optional, tag="1")]
2255        pub enabled: ::core::option::Option<bool>,
2256    }
2257    /// Optional filter for "ftrace/print" events.
2258    ///
2259    /// The filter consists of multiple rules. As soon as a rule matches (the rules
2260    /// are processed in order), its `allow` field will be used as the outcome: if
2261    /// `allow` is true, the event will be included in the trace, otherwise it will
2262    /// be discarded. If an event does not match any rule, it will be allowed by
2263    /// default (a rule with an empty prefix and allow=false, disallows everything
2264    /// by default).
2265    #[derive(Clone, PartialEq, ::prost::Message)]
2266    pub struct PrintFilter {
2267        #[prost(message, repeated, tag="1")]
2268        pub rules: ::prost::alloc::vec::Vec<print_filter::Rule>,
2269    }
2270    /// Nested message and enum types in `PrintFilter`.
2271    pub mod print_filter {
2272        #[derive(Clone, PartialEq, ::prost::Message)]
2273        pub struct Rule {
2274            #[prost(bool, optional, tag="2")]
2275            pub allow: ::core::option::Option<bool>,
2276            #[prost(oneof="rule::Match", tags="1, 3")]
2277            pub r#match: ::core::option::Option<rule::Match>,
2278        }
2279        /// Nested message and enum types in `Rule`.
2280        pub mod rule {
2281            /// Matches an atrace message of the form:
2282            /// <type>|pid|<prefix>...
2283            #[derive(Clone, PartialEq, ::prost::Message)]
2284            pub struct AtraceMessage {
2285                #[prost(string, optional, tag="1")]
2286                pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2287                #[prost(string, optional, tag="2")]
2288                pub prefix: ::core::option::Option<::prost::alloc::string::String>,
2289            }
2290            #[derive(Clone, PartialEq, ::prost::Oneof)]
2291            pub enum Match {
2292                /// This rule matches if `prefix` matches exactly with the beginning of
2293                /// the "ftrace/print" "buf" field.
2294                #[prost(string, tag="1")]
2295                Prefix(::prost::alloc::string::String),
2296                /// This rule matches if the "buf" field contains an atrace-style print
2297                /// message as specified in `atrace_msg`.
2298                #[prost(message, tag="3")]
2299                AtraceMsg(AtraceMessage),
2300            }
2301        }
2302    }
2303    #[derive(Clone, PartialEq, ::prost::Message)]
2304    pub struct KprobeEvent {
2305        /// Kernel function name to attach to, for example "fuse_file_write_iter"
2306        #[prost(string, optional, tag="1")]
2307        pub probe: ::core::option::Option<::prost::alloc::string::String>,
2308        #[prost(enumeration="kprobe_event::KprobeType", optional, tag="2")]
2309        pub r#type: ::core::option::Option<i32>,
2310    }
2311    /// Nested message and enum types in `KprobeEvent`.
2312    pub mod kprobe_event {
2313        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2314        #[repr(i32)]
2315        pub enum KprobeType {
2316            Unknown = 0,
2317            Kprobe = 1,
2318            Kretprobe = 2,
2319            Both = 3,
2320        }
2321        impl KprobeType {
2322            /// String value of the enum field names used in the ProtoBuf definition.
2323            ///
2324            /// The values are not transformed in any way and thus are considered stable
2325            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2326            pub fn as_str_name(&self) -> &'static str {
2327                match self {
2328                    KprobeType::Unknown => "KPROBE_TYPE_UNKNOWN",
2329                    KprobeType::Kprobe => "KPROBE_TYPE_KPROBE",
2330                    KprobeType::Kretprobe => "KPROBE_TYPE_KRETPROBE",
2331                    KprobeType::Both => "KPROBE_TYPE_BOTH",
2332                }
2333            }
2334        }
2335    }
2336    /// Tracefs options to set directly in the tracefs instance. This is a very
2337    /// niche feature since almost all of the options deal with formatting textual
2338    /// output (the /trace file), which perfetto doesn't use.
2339    ///
2340    /// The options with a known use-case:
2341    /// * event-fork: when using `tids_to_trace` above, the kernel will
2342    ///    automatically add newly spawned descendant threads to the set of TIDs.
2343    ///
2344    /// Full list of options is available at
2345    /// <https://docs.kernel.org/trace/ftrace.html#trace-options.>
2346    ///
2347    /// Note: this is an exclusive feature, see:
2348    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2349    ///
2350    /// Introduced in: perfetto v52.
2351    /// Supported on: Android 25Q3+.
2352    #[derive(Clone, PartialEq, ::prost::Message)]
2353    pub struct TracefsOption {
2354        /// The name of the tracefs option as found in tracefs/trace_options (without
2355        /// the "no" prefix).
2356        #[prost(string, optional, tag="1")]
2357        pub name: ::core::option::Option<::prost::alloc::string::String>,
2358        #[prost(enumeration="tracefs_option::State", optional, tag="2")]
2359        pub state: ::core::option::Option<i32>,
2360    }
2361    /// Nested message and enum types in `TracefsOption`.
2362    pub mod tracefs_option {
2363        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2364        #[repr(i32)]
2365        pub enum State {
2366            Unknown = 0,
2367            Enabled = 1,
2368            Disabled = 2,
2369        }
2370        impl State {
2371            /// String value of the enum field names used in the ProtoBuf definition.
2372            ///
2373            /// The values are not transformed in any way and thus are considered stable
2374            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2375            pub fn as_str_name(&self) -> &'static str {
2376                match self {
2377                    State::Unknown => "STATE_UNKNOWN",
2378                    State::Enabled => "STATE_ENABLED",
2379                    State::Disabled => "STATE_DISABLED",
2380                }
2381            }
2382        }
2383    }
2384    /// When symbolize_ksyms=true, determines whether the traced_probes daemon
2385    /// should keep the symbol map in memory (and reuse it for future tracing
2386    /// sessions) or clear it (saving memory) and re-create it on each tracing
2387    /// session (wasting cpu and wall time).
2388    /// The tradeoff is roughly:
2389    ///   KSYMS_RETAIN: pay a fixed ~1.2 MB cost after the first trace.
2390    ///   KSYMS_CLEANUP_ON_STOP: pay a ~300-500ms cost when starting each trace.
2391    /// Default behavior: KSYMS_CLEANUP_ON_STOP.
2392    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2393    #[repr(i32)]
2394    pub enum KsymsMemPolicy {
2395        KsymsUnspecified = 0,
2396        KsymsCleanupOnStop = 1,
2397        KsymsRetain = 2,
2398    }
2399    impl KsymsMemPolicy {
2400        /// String value of the enum field names used in the ProtoBuf definition.
2401        ///
2402        /// The values are not transformed in any way and thus are considered stable
2403        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2404        pub fn as_str_name(&self) -> &'static str {
2405            match self {
2406                KsymsMemPolicy::KsymsUnspecified => "KSYMS_UNSPECIFIED",
2407                KsymsMemPolicy::KsymsCleanupOnStop => "KSYMS_CLEANUP_ON_STOP",
2408                KsymsMemPolicy::KsymsRetain => "KSYMS_RETAIN",
2409            }
2410        }
2411    }
2412}
2413#[derive(Clone, PartialEq, ::prost::Message)]
2414pub struct FrozenFtraceConfig {
2415    /// The instance name which stores the previous boot ftrace data. Required.
2416    #[prost(string, optional, tag="1")]
2417    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2418}
2419#[derive(Clone, PartialEq, ::prost::Message)]
2420pub struct GpuCounterConfig {
2421    /// Desired sampling interval for counters.
2422    #[prost(uint64, optional, tag="1")]
2423    pub counter_period_ns: ::core::option::Option<u64>,
2424    /// List of counters to be sampled. Counter IDs correspond to the ones
2425    /// described in GpuCounterSpec in the data source descriptor.
2426    #[prost(uint32, repeated, packed="false", tag="2")]
2427    pub counter_ids: ::prost::alloc::vec::Vec<u32>,
2428    /// Sample counters by instrumenting command buffers.
2429    #[prost(bool, optional, tag="3")]
2430    pub instrumented_sampling: ::core::option::Option<bool>,
2431    /// Fix gpu clock rate during trace session.
2432    #[prost(bool, optional, tag="4")]
2433    pub fix_gpu_clock: ::core::option::Option<bool>,
2434}
2435#[derive(Clone, PartialEq, ::prost::Message)]
2436pub struct VulkanMemoryConfig {
2437    /// Tracking driver memory usage events
2438    #[prost(bool, optional, tag="1")]
2439    pub track_driver_memory_usage: ::core::option::Option<bool>,
2440    /// Tracking device memory usage events
2441    #[prost(bool, optional, tag="2")]
2442    pub track_device_memory_usage: ::core::option::Option<bool>,
2443}
2444#[derive(Clone, PartialEq, ::prost::Message)]
2445pub struct GpuRenderStagesConfig {
2446    /// Enable to separate the color and depth/stencil load and store stages
2447    /// into a separate stages. If disabled, the depth/stencil load and store
2448    /// stages will be combined.  Disabled by default. This option has no effect if
2449    /// Low Overhead mode is enabled.
2450    #[prost(bool, optional, tag="1")]
2451    pub full_loadstore: ::core::option::Option<bool>,
2452    /// Use the low overhead mode for traces. In this mode render stages are
2453    /// combined into a single workload stage. This provides less granular data but
2454    /// induces minimal GPU overhead. Disabled by default.
2455    #[prost(bool, optional, tag="2")]
2456    pub low_overhead: ::core::option::Option<bool>,
2457    /// Trace metrics to capture for each render stage
2458    #[prost(string, repeated, tag="3")]
2459    pub trace_metrics: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2460}
2461/// WARNING: unmaintained and deprecated. Likely won't work at all on modern
2462/// systems.
2463#[derive(Clone, PartialEq, ::prost::Message)]
2464pub struct InodeFileConfig {
2465    /// How long to pause between batches.
2466    #[prost(uint32, optional, tag="1")]
2467    pub scan_interval_ms: ::core::option::Option<u32>,
2468    /// How long to wait before the first scan in order to accumulate inodes.
2469    #[prost(uint32, optional, tag="2")]
2470    pub scan_delay_ms: ::core::option::Option<u32>,
2471    /// How many inodes to scan in one batch.
2472    #[prost(uint32, optional, tag="3")]
2473    pub scan_batch_size: ::core::option::Option<u32>,
2474    /// Do not scan for inodes not found in the static map.
2475    #[prost(bool, optional, tag="4")]
2476    pub do_not_scan: ::core::option::Option<bool>,
2477    /// If non-empty, only scan inodes corresponding to block devices named in
2478    /// this list.
2479    #[prost(string, repeated, tag="5")]
2480    pub scan_mount_points: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2481    /// When encountering an inode belonging to a block device corresponding
2482    /// to one of the mount points in this map, scan its scan_roots instead.
2483    #[prost(message, repeated, tag="6")]
2484    pub mount_point_mapping: ::prost::alloc::vec::Vec<inode_file_config::MountPointMappingEntry>,
2485}
2486/// Nested message and enum types in `InodeFileConfig`.
2487pub mod inode_file_config {
2488    #[derive(Clone, PartialEq, ::prost::Message)]
2489    pub struct MountPointMappingEntry {
2490        #[prost(string, optional, tag="1")]
2491        pub mountpoint: ::core::option::Option<::prost::alloc::string::String>,
2492        #[prost(string, repeated, tag="2")]
2493        pub scan_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2494    }
2495}
2496#[derive(Clone, PartialEq, ::prost::Message)]
2497pub struct ConsoleConfig {
2498    #[prost(enumeration="console_config::Output", optional, tag="1")]
2499    pub output: ::core::option::Option<i32>,
2500    #[prost(bool, optional, tag="2")]
2501    pub enable_colors: ::core::option::Option<bool>,
2502}
2503/// Nested message and enum types in `ConsoleConfig`.
2504pub mod console_config {
2505    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2506    #[repr(i32)]
2507    pub enum Output {
2508        Unspecified = 0,
2509        Stdout = 1,
2510        Stderr = 2,
2511    }
2512    impl Output {
2513        /// String value of the enum field names used in the ProtoBuf definition.
2514        ///
2515        /// The values are not transformed in any way and thus are considered stable
2516        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2517        pub fn as_str_name(&self) -> &'static str {
2518            match self {
2519                Output::Unspecified => "OUTPUT_UNSPECIFIED",
2520                Output::Stdout => "OUTPUT_STDOUT",
2521                Output::Stderr => "OUTPUT_STDERR",
2522            }
2523        }
2524    }
2525}
2526/// Configuration for trace packet interception. Used for diverting trace data to
2527/// non-Perfetto sources (e.g., logging to the console, ETW) when using the
2528/// Perfetto SDK.
2529#[derive(Clone, PartialEq, ::prost::Message)]
2530pub struct InterceptorConfig {
2531    /// Matches the name given to RegisterInterceptor().
2532    #[prost(string, optional, tag="1")]
2533    pub name: ::core::option::Option<::prost::alloc::string::String>,
2534    #[prost(message, optional, tag="100")]
2535    pub console_config: ::core::option::Option<ConsoleConfig>,
2536}
2537#[derive(Clone, PartialEq, ::prost::Message)]
2538pub struct AndroidPowerConfig {
2539    #[prost(uint32, optional, tag="1")]
2540    pub battery_poll_ms: ::core::option::Option<u32>,
2541    #[prost(enumeration="android_power_config::BatteryCounters", repeated, packed="false", tag="2")]
2542    pub battery_counters: ::prost::alloc::vec::Vec<i32>,
2543    /// Where available enables per-power-rail measurements.
2544    #[prost(bool, optional, tag="3")]
2545    pub collect_power_rails: ::core::option::Option<bool>,
2546    /// Provides a breakdown of energy estimation for various subsystem (e.g. GPU).
2547    /// Available from Android S.
2548    #[prost(bool, optional, tag="4")]
2549    pub collect_energy_estimation_breakdown: ::core::option::Option<bool>,
2550    /// Provides a breakdown of time in state for various subsystems.
2551    /// Available from Android U.
2552    #[prost(bool, optional, tag="5")]
2553    pub collect_entity_state_residency: ::core::option::Option<bool>,
2554}
2555/// Nested message and enum types in `AndroidPowerConfig`.
2556pub mod android_power_config {
2557    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2558    #[repr(i32)]
2559    pub enum BatteryCounters {
2560        BatteryCounterUnspecified = 0,
2561        /// Coulomb counter.
2562        BatteryCounterCharge = 1,
2563        /// Charge (%).
2564        BatteryCounterCapacityPercent = 2,
2565        /// Instantaneous current.
2566        BatteryCounterCurrent = 3,
2567        /// Avg current.
2568        BatteryCounterCurrentAvg = 4,
2569        /// Instantaneous voltage.
2570        BatteryCounterVoltage = 5,
2571    }
2572    impl BatteryCounters {
2573        /// String value of the enum field names used in the ProtoBuf definition.
2574        ///
2575        /// The values are not transformed in any way and thus are considered stable
2576        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2577        pub fn as_str_name(&self) -> &'static str {
2578            match self {
2579                BatteryCounters::BatteryCounterUnspecified => "BATTERY_COUNTER_UNSPECIFIED",
2580                BatteryCounters::BatteryCounterCharge => "BATTERY_COUNTER_CHARGE",
2581                BatteryCounters::BatteryCounterCapacityPercent => "BATTERY_COUNTER_CAPACITY_PERCENT",
2582                BatteryCounters::BatteryCounterCurrent => "BATTERY_COUNTER_CURRENT",
2583                BatteryCounters::BatteryCounterCurrentAvg => "BATTERY_COUNTER_CURRENT_AVG",
2584                BatteryCounters::BatteryCounterVoltage => "BATTERY_COUNTER_VOLTAGE",
2585            }
2586        }
2587    }
2588}
2589#[derive(Clone, PartialEq, ::prost::Message)]
2590pub struct ProtoVmConfig {
2591    #[prost(uint32, optional, tag="1")]
2592    pub memory_limit_kb: ::core::option::Option<u32>,
2593}
2594/// This enum is obtained by post-processing
2595/// AOSP/frameworks/proto_logging/stats/atoms.proto through
2596/// AOSP/external/perfetto/tools/update-statsd-descriptor, which extracts one
2597/// enum value for each proto field defined in the upstream atoms.proto.
2598#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2599#[repr(i32)]
2600pub enum AtomId {
2601    AtomUnspecified = 0,
2602    AtomBleScanStateChanged = 2,
2603    AtomProcessStateChanged = 3,
2604    AtomBleScanResultReceived = 4,
2605    AtomSensorStateChanged = 5,
2606    AtomGpsScanStateChanged = 6,
2607    AtomSyncStateChanged = 7,
2608    AtomScheduledJobStateChanged = 8,
2609    AtomScreenBrightnessChanged = 9,
2610    AtomWakelockStateChanged = 10,
2611    AtomLongPartialWakelockStateChanged = 11,
2612    AtomMobileRadioPowerStateChanged = 12,
2613    AtomWifiRadioPowerStateChanged = 13,
2614    AtomActivityManagerSleepStateChanged = 14,
2615    AtomMemoryFactorStateChanged = 15,
2616    AtomExcessiveCpuUsageReported = 16,
2617    AtomCachedKillReported = 17,
2618    AtomProcessMemoryStatReported = 18,
2619    AtomLauncherEvent = 19,
2620    AtomBatterySaverModeStateChanged = 20,
2621    AtomDeviceIdleModeStateChanged = 21,
2622    AtomDeviceIdlingModeStateChanged = 22,
2623    AtomAudioStateChanged = 23,
2624    AtomMediaCodecStateChanged = 24,
2625    AtomCameraStateChanged = 25,
2626    AtomFlashlightStateChanged = 26,
2627    AtomUidProcessStateChanged = 27,
2628    AtomProcessLifeCycleStateChanged = 28,
2629    AtomScreenStateChanged = 29,
2630    AtomBatteryLevelChanged = 30,
2631    AtomChargingStateChanged = 31,
2632    AtomPluggedStateChanged = 32,
2633    AtomInteractiveStateChanged = 33,
2634    AtomTouchEventReported = 34,
2635    AtomWakeupAlarmOccurred = 35,
2636    AtomKernelWakeupReported = 36,
2637    AtomWifiLockStateChanged = 37,
2638    AtomWifiSignalStrengthChanged = 38,
2639    AtomWifiScanStateChanged = 39,
2640    AtomPhoneSignalStrengthChanged = 40,
2641    AtomSettingChanged = 41,
2642    AtomActivityForegroundStateChanged = 42,
2643    AtomIsolatedUidChanged = 43,
2644    AtomPacketWakeupOccurred = 44,
2645    AtomWallClockTimeShifted = 45,
2646    AtomAnomalyDetected = 46,
2647    AtomAppBreadcrumbReported = 47,
2648    AtomAppStartOccurred = 48,
2649    AtomAppStartCanceled = 49,
2650    AtomAppStartFullyDrawn = 50,
2651    AtomLmkKillOccurred = 51,
2652    AtomPictureInPictureStateChanged = 52,
2653    AtomWifiMulticastLockStateChanged = 53,
2654    AtomAppStartMemoryStateCaptured = 55,
2655    AtomShutdownSequenceReported = 56,
2656    AtomBootSequenceReported = 57,
2657    AtomOverlayStateChanged = 59,
2658    AtomForegroundServiceStateChanged = 60,
2659    AtomCallStateChanged = 61,
2660    AtomKeyguardStateChanged = 62,
2661    AtomKeyguardBouncerStateChanged = 63,
2662    AtomKeyguardBouncerPasswordEntered = 64,
2663    AtomAppDied = 65,
2664    AtomResourceConfigurationChanged = 66,
2665    AtomBluetoothEnabledStateChanged = 67,
2666    AtomBluetoothConnectionStateChanged = 68,
2667    AtomGpsSignalQualityChanged = 69,
2668    AtomUsbConnectorStateChanged = 70,
2669    AtomSpeakerImpedanceReported = 71,
2670    AtomHardwareFailed = 72,
2671    AtomPhysicalDropDetected = 73,
2672    AtomChargeCyclesReported = 74,
2673    AtomMobileConnectionStateChanged = 75,
2674    AtomMobileRadioTechnologyChanged = 76,
2675    AtomUsbDeviceAttached = 77,
2676    AtomAppCrashOccurred = 78,
2677    AtomAnrOccurred = 79,
2678    AtomWtfOccurred = 80,
2679    AtomLowMemReported = 81,
2680    AtomGenericAtom = 82,
2681    AtomVibratorStateChanged = 84,
2682    AtomDeferredJobStatsReported = 85,
2683    AtomThermalThrottling = 86,
2684    AtomBiometricAcquired = 87,
2685    AtomBiometricAuthenticated = 88,
2686    AtomBiometricErrorOccurred = 89,
2687    AtomUiEventReported = 90,
2688    AtomBatteryHealthSnapshot = 91,
2689    AtomSlowIo = 92,
2690    AtomBatteryCausedShutdown = 93,
2691    AtomPhoneServiceStateChanged = 94,
2692    AtomPhoneStateChanged = 95,
2693    AtomUserRestrictionChanged = 96,
2694    AtomSettingsUiChanged = 97,
2695    AtomConnectivityStateChanged = 98,
2696    AtomServiceStateChanged = 99,
2697    AtomServiceLaunchReported = 100,
2698    AtomFlagFlipUpdateOccurred = 101,
2699    AtomBinaryPushStateChanged = 102,
2700    AtomDevicePolicyEvent = 103,
2701    AtomDocsUiFileOpCanceled = 104,
2702    AtomDocsUiFileOpCopyMoveModeReported = 105,
2703    AtomDocsUiFileOpFailure = 106,
2704    AtomDocsUiProviderFileOp = 107,
2705    AtomDocsUiInvalidScopedAccessRequest = 108,
2706    AtomDocsUiLaunchReported = 109,
2707    AtomDocsUiRootVisited = 110,
2708    AtomDocsUiStartupMs = 111,
2709    AtomDocsUiUserActionReported = 112,
2710    AtomWifiEnabledStateChanged = 113,
2711    AtomWifiRunningStateChanged = 114,
2712    AtomAppCompacted = 115,
2713    AtomNetworkDnsEventReported = 116,
2714    AtomDocsUiPickerLaunchedFromReported = 117,
2715    AtomDocsUiPickResultReported = 118,
2716    AtomDocsUiSearchModeReported = 119,
2717    AtomDocsUiSearchTypeReported = 120,
2718    AtomDataStallEvent = 121,
2719    AtomRescuePartyResetReported = 122,
2720    AtomSignedConfigReported = 123,
2721    AtomGnssNiEventReported = 124,
2722    AtomBluetoothLinkLayerConnectionEvent = 125,
2723    AtomBluetoothAclConnectionStateChanged = 126,
2724    AtomBluetoothScoConnectionStateChanged = 127,
2725    AtomAppDowngraded = 128,
2726    AtomAppOptimizedAfterDowngraded = 129,
2727    AtomLowStorageStateChanged = 130,
2728    AtomGnssNfwNotificationReported = 131,
2729    AtomGnssConfigurationReported = 132,
2730    AtomUsbPortOverheatEventReported = 133,
2731    AtomNfcErrorOccurred = 134,
2732    AtomNfcStateChanged = 135,
2733    AtomNfcBeamOccurred = 136,
2734    AtomNfcCardemulationOccurred = 137,
2735    AtomNfcTagOccurred = 138,
2736    AtomNfcHceTransactionOccurred = 139,
2737    AtomSeStateChanged = 140,
2738    AtomSeOmapiReported = 141,
2739    AtomBroadcastDispatchLatencyReported = 142,
2740    AtomAttentionManagerServiceResultReported = 143,
2741    AtomAdbConnectionChanged = 144,
2742    AtomSpeechDspStatReported = 145,
2743    AtomUsbContaminantReported = 146,
2744    AtomWatchdogRollbackOccurred = 147,
2745    AtomBiometricSystemHealthIssueDetected = 148,
2746    AtomBubbleUiChanged = 149,
2747    AtomScheduledJobConstraintChanged = 150,
2748    AtomBluetoothActiveDeviceChanged = 151,
2749    AtomBluetoothA2dpPlaybackStateChanged = 152,
2750    AtomBluetoothA2dpCodecConfigChanged = 153,
2751    AtomBluetoothA2dpCodecCapabilityChanged = 154,
2752    AtomBluetoothA2dpAudioUnderrunReported = 155,
2753    AtomBluetoothA2dpAudioOverrunReported = 156,
2754    AtomBluetoothDeviceRssiReported = 157,
2755    AtomBluetoothDeviceFailedContactCounterReported = 158,
2756    AtomBluetoothDeviceTxPowerLevelReported = 159,
2757    AtomBluetoothHciTimeoutReported = 160,
2758    AtomBluetoothQualityReportReported = 161,
2759    AtomBluetoothDeviceInfoReported = 162,
2760    AtomBluetoothRemoteVersionInfoReported = 163,
2761    AtomBluetoothSdpAttributeReported = 164,
2762    AtomBluetoothBondStateChanged = 165,
2763    AtomBluetoothClassicPairingEventReported = 166,
2764    AtomBluetoothSmpPairingEventReported = 167,
2765    AtomScreenTimeoutExtensionReported = 168,
2766    AtomProcessStartTime = 169,
2767    AtomPermissionGrantRequestResultReported = 170,
2768    AtomBluetoothSocketConnectionStateChanged = 171,
2769    AtomDeviceIdentifierAccessDenied = 172,
2770    AtomBubbleDeveloperErrorReported = 173,
2771    AtomAssistGestureStageReported = 174,
2772    AtomAssistGestureFeedbackReported = 175,
2773    AtomAssistGestureProgressReported = 176,
2774    AtomTouchGestureClassified = 177,
2775    AtomHiddenApiUsed = 178,
2776    AtomStyleUiChanged = 179,
2777    AtomPrivacyIndicatorsInteracted = 180,
2778    AtomAppInstallOnExternalStorageReported = 181,
2779    AtomNetworkStackReported = 182,
2780    AtomAppMovedStorageReported = 183,
2781    AtomBiometricEnrolled = 184,
2782    AtomSystemServerWatchdogOccurred = 185,
2783    AtomTombStoneOccurred = 186,
2784    AtomBluetoothClassOfDeviceReported = 187,
2785    AtomIntelligenceEventReported = 188,
2786    AtomThermalThrottlingSeverityStateChanged = 189,
2787    AtomRoleRequestResultReported = 190,
2788    AtomMediametricsAudiopolicyReported = 191,
2789    AtomMediametricsAudiorecordReported = 192,
2790    AtomMediametricsAudiothreadReported = 193,
2791    AtomMediametricsAudiotrackReported = 194,
2792    AtomMediametricsCodecReported = 195,
2793    AtomMediametricsDrmWidevineReported = 196,
2794    AtomMediametricsExtractorReported = 197,
2795    AtomMediametricsMediadrmReported = 198,
2796    AtomMediametricsNuplayerReported = 199,
2797    AtomMediametricsRecorderReported = 200,
2798    AtomMediametricsDrmmanagerReported = 201,
2799    AtomCarPowerStateChanged = 203,
2800    AtomGarageModeInfo = 204,
2801    AtomTestAtomReported = 205,
2802    AtomContentCaptureCallerMismatchReported = 206,
2803    AtomContentCaptureServiceEvents = 207,
2804    AtomContentCaptureSessionEvents = 208,
2805    AtomContentCaptureFlushed = 209,
2806    AtomLocationManagerApiUsageReported = 210,
2807    AtomReviewPermissionsFragmentResultReported = 211,
2808    AtomRuntimePermissionsUpgradeResult = 212,
2809    AtomGrantPermissionsActivityButtonActions = 213,
2810    AtomLocationAccessCheckNotificationAction = 214,
2811    AtomAppPermissionFragmentActionReported = 215,
2812    AtomAppPermissionFragmentViewed = 216,
2813    AtomAppPermissionsFragmentViewed = 217,
2814    AtomPermissionAppsFragmentViewed = 218,
2815    AtomTextSelectionEvent = 219,
2816    AtomTextLinkifyEvent = 220,
2817    AtomConversationActionsEvent = 221,
2818    AtomLanguageDetectionEvent = 222,
2819    AtomExclusionRectStateChanged = 223,
2820    AtomBackGestureReportedReported = 224,
2821    AtomUpdateEngineUpdateAttemptReported = 225,
2822    AtomUpdateEngineSuccessfulUpdateReported = 226,
2823    AtomCameraActionEvent = 227,
2824    AtomAppCompatibilityChangeReported = 228,
2825    AtomPerfettoUploaded = 229,
2826    AtomVmsClientConnectionStateChanged = 230,
2827    AtomMediaProviderScanOccurred = 233,
2828    AtomMediaContentDeleted = 234,
2829    AtomMediaProviderPermissionRequested = 235,
2830    AtomMediaProviderSchemaChanged = 236,
2831    AtomMediaProviderIdleMaintenanceFinished = 237,
2832    AtomRebootEscrowRecoveryReported = 238,
2833    AtomBootTimeEventDurationReported = 239,
2834    AtomBootTimeEventElapsedTimeReported = 240,
2835    AtomBootTimeEventUtcTimeReported = 241,
2836    AtomBootTimeEventErrorCodeReported = 242,
2837    AtomUserspaceRebootReported = 243,
2838    AtomNotificationReported = 244,
2839    AtomNotificationPanelReported = 245,
2840    AtomNotificationChannelModified = 246,
2841    AtomIntegrityCheckResultReported = 247,
2842    AtomIntegrityRulesPushed = 248,
2843    AtomCbMessageReported = 249,
2844    AtomCbMessageError = 250,
2845    AtomWifiHealthStatReported = 251,
2846    AtomWifiFailureStatReported = 252,
2847    AtomWifiConnectionResultReported = 253,
2848    AtomAppFreezeChanged = 254,
2849    AtomSnapshotMergeReported = 255,
2850    AtomForegroundServiceAppOpSessionEnded = 256,
2851    AtomDisplayJankReported = 257,
2852    AtomAppStandbyBucketChanged = 258,
2853    AtomSharesheetStarted = 259,
2854    AtomRankingSelected = 260,
2855    AtomTvsettingsUiInteracted = 261,
2856    AtomLauncherSnapshot = 262,
2857    AtomPackageInstallerV2Reported = 263,
2858    AtomUserLifecycleJourneyReported = 264,
2859    AtomUserLifecycleEventOccurred = 265,
2860    AtomAccessibilityShortcutReported = 266,
2861    AtomAccessibilityServiceReported = 267,
2862    AtomDocsUiDragAndDropReported = 268,
2863    AtomAppUsageEventOccurred = 269,
2864    AtomAutoRevokeNotificationClicked = 270,
2865    AtomAutoRevokeFragmentAppViewed = 271,
2866    AtomAutoRevokedAppInteraction = 272,
2867    AtomAppPermissionGroupsFragmentAutoRevokeAction = 273,
2868    AtomEvsUsageStatsReported = 274,
2869    AtomAudioPowerUsageDataReported = 275,
2870    AtomTvTunerStateChanged = 276,
2871    AtomMediaoutputOpSwitchReported = 277,
2872    AtomCbMessageFiltered = 278,
2873    AtomTvTunerDvrStatus = 279,
2874    AtomTvCasSessionOpenStatus = 280,
2875    AtomAssistantInvocationReported = 281,
2876    AtomDisplayWakeReported = 282,
2877    AtomCarUserHalModifyUserRequestReported = 283,
2878    AtomCarUserHalModifyUserResponseReported = 284,
2879    AtomCarUserHalPostSwitchResponseReported = 285,
2880    AtomCarUserHalInitialUserInfoRequestReported = 286,
2881    AtomCarUserHalInitialUserInfoResponseReported = 287,
2882    AtomCarUserHalUserAssociationRequestReported = 288,
2883    AtomCarUserHalSetUserAssociationResponseReported = 289,
2884    AtomNetworkIpProvisioningReported = 290,
2885    AtomNetworkDhcpRenewReported = 291,
2886    AtomNetworkValidationReported = 292,
2887    AtomNetworkStackQuirkReported = 293,
2888    AtomMediametricsAudiorecorddeviceusageReported = 294,
2889    AtomMediametricsAudiothreaddeviceusageReported = 295,
2890    AtomMediametricsAudiotrackdeviceusageReported = 296,
2891    AtomMediametricsAudiodeviceconnectionReported = 297,
2892    AtomBlobCommitted = 298,
2893    AtomBlobLeased = 299,
2894    AtomBlobOpened = 300,
2895    AtomContactsProviderStatusReported = 301,
2896    AtomKeystoreKeyEventReported = 302,
2897    AtomNetworkTetheringReported = 303,
2898    AtomImeTouchReported = 304,
2899    AtomUiInteractionFrameInfoReported = 305,
2900    AtomUiActionLatencyReported = 306,
2901    AtomWifiDisconnectReported = 307,
2902    AtomWifiConnectionStateChanged = 308,
2903    AtomHdmiCecActiveSourceChanged = 309,
2904    AtomHdmiCecMessageReported = 310,
2905    AtomAirplaneMode = 311,
2906    AtomModemRestart = 312,
2907    AtomCarrierIdMismatchReported = 313,
2908    AtomCarrierIdTableUpdated = 314,
2909    AtomDataStallRecoveryReported = 315,
2910    AtomMediametricsMediaparserReported = 316,
2911    AtomTlsHandshakeReported = 317,
2912    AtomTextClassifierApiUsageReported = 318,
2913    AtomCarWatchdogKillStatsReported = 319,
2914    AtomMediametricsPlaybackReported = 320,
2915    AtomMediaNetworkInfoChanged = 321,
2916    AtomMediaPlaybackStateChanged = 322,
2917    AtomMediaPlaybackErrorReported = 323,
2918    AtomMediaPlaybackTrackChanged = 324,
2919    AtomWifiScanReported = 325,
2920    AtomWifiPnoScanReported = 326,
2921    AtomTifTuneChanged = 327,
2922    AtomAutoRotateReported = 328,
2923    AtomPerfettoTrigger = 329,
2924    AtomTranscodingData = 330,
2925    AtomImsServiceEntitlementUpdated = 331,
2926    AtomDeviceRotated = 333,
2927    AtomSimSpecificSettingsRestored = 334,
2928    AtomTextClassifierDownloadReported = 335,
2929    AtomPinStorageEvent = 336,
2930    AtomFaceDownReported = 337,
2931    AtomBluetoothHalCrashReasonReported = 338,
2932    AtomRebootEscrowPreparationReported = 339,
2933    AtomRebootEscrowLskfCaptureReported = 340,
2934    AtomRebootEscrowRebootReported = 341,
2935    AtomBinderLatencyReported = 342,
2936    AtomMediametricsAaudiostreamReported = 343,
2937    AtomMediaTranscodingSessionEnded = 344,
2938    AtomMagnificationUsageReported = 345,
2939    AtomMagnificationModeWithImeOnReported = 346,
2940    AtomAppSearchCallStatsReported = 347,
2941    AtomAppSearchPutDocumentStatsReported = 348,
2942    AtomDeviceControlChanged = 349,
2943    AtomDeviceStateChanged = 350,
2944    AtomInputdeviceRegistered = 351,
2945    AtomSmartspaceCardReported = 352,
2946    AtomAuthPromptAuthenticateInvoked = 353,
2947    AtomAuthManagerCanAuthenticateInvoked = 354,
2948    AtomAuthEnrollActionInvoked = 355,
2949    AtomAuthDeprecatedApiUsed = 356,
2950    AtomUnattendedRebootOccurred = 357,
2951    AtomLongRebootBlockingReported = 358,
2952    AtomLocationTimeZoneProviderStateChanged = 359,
2953    AtomFdtrackEventOccurred = 364,
2954    AtomTimeoutAutoExtendedReported = 365,
2955    AtomAlarmBatchDelivered = 367,
2956    AtomAlarmScheduled = 368,
2957    AtomCarWatchdogIoOveruseStatsReported = 369,
2958    AtomUserLevelHibernationStateChanged = 370,
2959    AtomAppSearchInitializeStatsReported = 371,
2960    AtomAppSearchQueryStatsReported = 372,
2961    AtomAppProcessDied = 373,
2962    AtomNetworkIpReachabilityMonitorReported = 374,
2963    AtomSlowInputEventReported = 375,
2964    AtomAnrOccurredProcessingStarted = 376,
2965    AtomAppSearchRemoveStatsReported = 377,
2966    AtomMediaCodecReported = 378,
2967    AtomPermissionUsageFragmentInteraction = 379,
2968    AtomPermissionDetailsInteraction = 380,
2969    AtomPrivacySensorToggleInteraction = 381,
2970    AtomPrivacyToggleDialogInteraction = 382,
2971    AtomAppSearchOptimizeStatsReported = 383,
2972    AtomNonA11yToolServiceWarningReport = 384,
2973    AtomAppCompatStateChanged = 386,
2974    AtomSizeCompatRestartButtonEventReported = 387,
2975    AtomSplitscreenUiChanged = 388,
2976    AtomNetworkDnsHandshakeReported = 389,
2977    AtomBluetoothCodePathCounter = 390,
2978    AtomBluetoothLeBatchScanReportDelay = 392,
2979    AtomAccessibilityFloatingMenuUiChanged = 393,
2980    AtomNeuralnetworksCompilationCompleted = 394,
2981    AtomNeuralnetworksExecutionCompleted = 395,
2982    AtomNeuralnetworksCompilationFailed = 396,
2983    AtomNeuralnetworksExecutionFailed = 397,
2984    AtomContextHubBooted = 398,
2985    AtomContextHubRestarted = 399,
2986    AtomContextHubLoadedNanoappSnapshotReported = 400,
2987    AtomChreCodeDownloadTransacted = 401,
2988    AtomUwbSessionInited = 402,
2989    AtomUwbSessionClosed = 403,
2990    AtomUwbFirstRangingReceived = 404,
2991    AtomUwbRangingMeasurementReceived = 405,
2992    AtomTextClassifierDownloadWorkScheduled = 406,
2993    AtomTextClassifierDownloadWorkCompleted = 407,
2994    AtomClipboardCleared = 408,
2995    AtomVmCreationRequested = 409,
2996    AtomNearbyDeviceScanStateChanged = 410,
2997    AtomApplicationLocalesChanged = 412,
2998    AtomMediametricsAudiotrackstatusReported = 413,
2999    AtomFoldStateDurationReported = 414,
3000    AtomLocationTimeZoneProviderControllerStateChanged = 415,
3001    AtomDisplayHbmStateChanged = 416,
3002    AtomDisplayHbmBrightnessChanged = 417,
3003    AtomPersistentUriPermissionsFlushed = 418,
3004    AtomEarlyBootCompOsArtifactsCheckReported = 419,
3005    AtomVbmetaDigestReported = 420,
3006    AtomApexInfoGathered = 421,
3007    AtomPvmInfoGathered = 422,
3008    AtomWearSettingsUiInteracted = 423,
3009    AtomTracingServiceReportEvent = 424,
3010    AtomMediametricsAudiorecordstatusReported = 425,
3011    AtomLauncherLatency = 426,
3012    AtomDropboxEntryDropped = 427,
3013    AtomWifiP2pConnectionReported = 428,
3014    AtomGameStateChanged = 429,
3015    AtomHotwordDetectorCreateRequested = 430,
3016    AtomHotwordDetectionServiceInitResultReported = 431,
3017    AtomHotwordDetectionServiceRestarted = 432,
3018    AtomHotwordDetectorKeyphraseTriggered = 433,
3019    AtomHotwordDetectorEvents = 434,
3020    AtomBootCompletedBroadcastCompletionLatencyReported = 437,
3021    AtomContactsIndexerUpdateStatsReported = 440,
3022    AtomAppBackgroundRestrictionsInfo = 441,
3023    AtomMmsSmsProviderGetThreadIdFailed = 442,
3024    AtomMmsSmsDatabaseHelperOnUpgradeFailed = 443,
3025    AtomPermissionReminderNotificationInteracted = 444,
3026    AtomRecentPermissionDecisionsInteracted = 445,
3027    AtomGnssPsdsDownloadReported = 446,
3028    AtomLeAudioConnectionSessionReported = 447,
3029    AtomLeAudioBroadcastSessionReported = 448,
3030    AtomDreamUiEventReported = 449,
3031    AtomTaskManagerEventReported = 450,
3032    AtomCdmAssociationAction = 451,
3033    AtomMagnificationTripleTapAndHoldActivatedSessionReported = 452,
3034    AtomMagnificationFollowTypingFocusActivatedSessionReported = 453,
3035    AtomAccessibilityTextReadingOptionsChanged = 454,
3036    AtomWifiSetupFailureCrashReported = 455,
3037    AtomUwbDeviceErrorReported = 456,
3038    AtomIsolatedCompilationScheduled = 457,
3039    AtomIsolatedCompilationEnded = 458,
3040    AtomOnsOpportunisticEsimProvisioningComplete = 459,
3041    AtomSystemServerPreWatchdogOccurred = 460,
3042    AtomTelephonyAnomalyDetected = 461,
3043    AtomLetterboxPositionChanged = 462,
3044    AtomRemoteKeyProvisioningAttempt = 463,
3045    AtomRemoteKeyProvisioningNetworkInfo = 464,
3046    AtomRemoteKeyProvisioningTiming = 465,
3047    AtomMediaoutputOpInteractionReport = 466,
3048    AtomSyncExemptionOccurred = 468,
3049    AtomAutofillPresentationEventReported = 469,
3050    AtomDockStateChanged = 470,
3051    AtomSafetySourceStateCollected = 471,
3052    AtomSafetyCenterSystemEventReported = 472,
3053    AtomSafetyCenterInteractionReported = 473,
3054    AtomSettingsProviderSettingChanged = 474,
3055    AtomBroadcastDeliveryEventReported = 475,
3056    AtomServiceRequestEventReported = 476,
3057    AtomProviderAcquisitionEventReported = 477,
3058    AtomBluetoothDeviceNameReported = 478,
3059    AtomCbConfigUpdated = 479,
3060    AtomCbModuleErrorReported = 480,
3061    AtomCbServiceFeatureChanged = 481,
3062    AtomCbReceiverFeatureChanged = 482,
3063    AtomPrivacySignalNotificationInteraction = 484,
3064    AtomPrivacySignalIssueCardInteraction = 485,
3065    AtomPrivacySignalsJobFailure = 486,
3066    AtomVibrationReported = 487,
3067    AtomUwbRangingStart = 489,
3068    AtomAppCompactedV2 = 491,
3069    AtomDisplayBrightnessChanged = 494,
3070    AtomActivityActionBlocked = 495,
3071    AtomNetworkDnsServerSupportReported = 504,
3072    AtomVmBooted = 505,
3073    AtomVmExited = 506,
3074    AtomAmbientBrightnessStatsReported = 507,
3075    AtomMediametricsSpatializercapabilitiesReported = 508,
3076    AtomMediametricsSpatializerdeviceenabledReported = 509,
3077    AtomMediametricsHeadtrackerdeviceenabledReported = 510,
3078    AtomMediametricsHeadtrackerdevicesupportedReported = 511,
3079    AtomHearingAidInfoReported = 513,
3080    AtomDeviceWideJobConstraintChanged = 514,
3081    AtomAmbientModeChanged = 515,
3082    AtomAnrLatencyReported = 516,
3083    AtomResourceApiInfo = 517,
3084    AtomSystemDefaultNetworkChanged = 518,
3085    AtomIwlanSetupDataCallResultReported = 519,
3086    AtomIwlanPdnDisconnectedReasonReported = 520,
3087    AtomAirplaneModeSessionReported = 521,
3088    AtomVmCpuStatusReported = 522,
3089    AtomVmMemStatusReported = 523,
3090    AtomPackageInstallationSessionReported = 524,
3091    AtomDefaultNetworkRematchInfo = 525,
3092    AtomNetworkSelectionPerformance = 526,
3093    AtomNetworkNsdReported = 527,
3094    AtomBluetoothDisconnectionReasonReported = 529,
3095    AtomBluetoothLocalVersionsReported = 530,
3096    AtomBluetoothRemoteSupportedFeaturesReported = 531,
3097    AtomBluetoothLocalSupportedFeaturesReported = 532,
3098    AtomBluetoothGattAppInfo = 533,
3099    AtomBrightnessConfigurationUpdated = 534,
3100    AtomWearMediaOutputSwitcherLaunched = 538,
3101    AtomWearMediaOutputSwitcherFinished = 539,
3102    AtomWearMediaOutputSwitcherConnectionReported = 540,
3103    AtomWearMediaOutputSwitcherDeviceScanTriggered = 541,
3104    AtomWearMediaOutputSwitcherFirstDeviceScanLatency = 542,
3105    AtomWearMediaOutputSwitcherConnectDeviceLatency = 543,
3106    AtomPackageManagerSnapshotReported = 544,
3107    AtomPackageManagerAppsFilterCacheBuildReported = 545,
3108    AtomPackageManagerAppsFilterCacheUpdateReported = 546,
3109    AtomLauncherImpressionEvent = 547,
3110    AtomWearMediaOutputSwitcherAllDevicesScanLatency = 549,
3111    AtomWsWatchFaceEdited = 551,
3112    AtomWsWatchFaceFavoriteActionReported = 552,
3113    AtomWsWatchFaceSetActionReported = 553,
3114    AtomPackageUninstallationReported = 554,
3115    AtomGameModeChanged = 555,
3116    AtomGameModeConfigurationChanged = 556,
3117    AtomBedtimeModeStateChanged = 557,
3118    AtomNetworkSliceSessionEnded = 558,
3119    AtomNetworkSliceDailyDataUsageReported = 559,
3120    AtomNfcTagTypeOccurred = 560,
3121    AtomNfcAidConflictOccurred = 561,
3122    AtomNfcReaderConflictOccurred = 562,
3123    AtomWsTileListChanged = 563,
3124    AtomGetTypeAccessedWithoutPermission = 564,
3125    AtomMobileBundledAppInfoGathered = 566,
3126    AtomWsWatchFaceComplicationSetChanged = 567,
3127    AtomMediaDrmCreated = 568,
3128    AtomMediaDrmErrored = 569,
3129    AtomMediaDrmSessionOpened = 570,
3130    AtomMediaDrmSessionClosed = 571,
3131    AtomUserSelectedResolution = 572,
3132    AtomUnsafeIntentEventReported = 573,
3133    AtomPerformanceHintSessionReported = 574,
3134    AtomMediametricsMidiDeviceCloseReported = 576,
3135    AtomBiometricTouchReported = 577,
3136    AtomHotwordAudioEgressEventReported = 578,
3137    AtomLocationEnabledStateChanged = 580,
3138    AtomImeRequestFinished = 581,
3139    AtomUsbComplianceWarningsReported = 582,
3140    AtomAppSupportedLocalesChanged = 583,
3141    AtomMediaProviderVolumeRecoveryReported = 586,
3142    AtomBiometricPropertiesCollected = 587,
3143    AtomKernelWakeupAttributed = 588,
3144    AtomScreenStateChangedV2 = 589,
3145    AtomWsBackupActionReported = 590,
3146    AtomWsRestoreActionReported = 591,
3147    AtomDeviceLogAccessEventReported = 592,
3148    AtomMediaSessionUpdated = 594,
3149    AtomWearOobeStateChanged = 595,
3150    AtomWsNotificationUpdated = 596,
3151    AtomNetworkValidationFailureStatsDailyReported = 601,
3152    AtomWsComplicationTapped = 602,
3153    AtomWsNotificationBlocking = 780,
3154    AtomWsNotificationBridgemodeUpdated = 822,
3155    AtomWsNotificationDismissalActioned = 823,
3156    AtomWsNotificationActioned = 824,
3157    AtomWsNotificationLatency = 880,
3158    AtomWifiBytesTransfer = 10000,
3159    AtomWifiBytesTransferByFgBg = 10001,
3160    AtomMobileBytesTransfer = 10002,
3161    AtomMobileBytesTransferByFgBg = 10003,
3162    AtomBluetoothBytesTransfer = 10006,
3163    AtomKernelWakelock = 10004,
3164    AtomSubsystemSleepState = 10005,
3165    AtomCpuTimePerUid = 10009,
3166    AtomCpuTimePerUidFreq = 10010,
3167    AtomWifiActivityInfo = 10011,
3168    AtomModemActivityInfo = 10012,
3169    AtomBluetoothActivityInfo = 10007,
3170    AtomProcessMemoryState = 10013,
3171    AtomSystemElapsedRealtime = 10014,
3172    AtomSystemUptime = 10015,
3173    AtomCpuActiveTime = 10016,
3174    AtomCpuClusterTime = 10017,
3175    AtomDiskSpace = 10018,
3176    AtomRemainingBatteryCapacity = 10019,
3177    AtomFullBatteryCapacity = 10020,
3178    AtomTemperature = 10021,
3179    AtomBinderCalls = 10022,
3180    AtomBinderCallsExceptions = 10023,
3181    AtomLooperStats = 10024,
3182    AtomDiskStats = 10025,
3183    AtomDirectoryUsage = 10026,
3184    AtomAppSize = 10027,
3185    AtomCategorySize = 10028,
3186    AtomProcStats = 10029,
3187    AtomBatteryVoltage = 10030,
3188    AtomNumFingerprintsEnrolled = 10031,
3189    AtomDiskIo = 10032,
3190    AtomPowerProfile = 10033,
3191    AtomProcStatsPkgProc = 10034,
3192    AtomProcessCpuTime = 10035,
3193    AtomCpuTimePerThreadFreq = 10037,
3194    AtomOnDevicePowerMeasurement = 10038,
3195    AtomDeviceCalculatedPowerUse = 10039,
3196    AtomProcessMemoryHighWaterMark = 10042,
3197    AtomBatteryLevel = 10043,
3198    AtomBuildInformation = 10044,
3199    AtomBatteryCycleCount = 10045,
3200    AtomDebugElapsedClock = 10046,
3201    AtomDebugFailingElapsedClock = 10047,
3202    AtomNumFacesEnrolled = 10048,
3203    AtomRoleHolder = 10049,
3204    AtomDangerousPermissionState = 10050,
3205    AtomTrainInfo = 10051,
3206    AtomTimeZoneDataInfo = 10052,
3207    AtomExternalStorageInfo = 10053,
3208    AtomGpuStatsGlobalInfo = 10054,
3209    AtomGpuStatsAppInfo = 10055,
3210    AtomSystemIonHeapSize = 10056,
3211    AtomAppsOnExternalStorageInfo = 10057,
3212    AtomFaceSettings = 10058,
3213    AtomCoolingDevice = 10059,
3214    AtomAppOps = 10060,
3215    AtomProcessSystemIonHeapSize = 10061,
3216    AtomSurfaceflingerStatsGlobalInfo = 10062,
3217    AtomSurfaceflingerStatsLayerInfo = 10063,
3218    AtomProcessMemorySnapshot = 10064,
3219    AtomVmsClientStats = 10065,
3220    AtomNotificationRemoteViews = 10066,
3221    AtomDangerousPermissionStateSampled = 10067,
3222    AtomGraphicsStats = 10068,
3223    AtomRuntimeAppOpAccess = 10069,
3224    AtomIonHeapSize = 10070,
3225    AtomPackageNotificationPreferences = 10071,
3226    AtomPackageNotificationChannelPreferences = 10072,
3227    AtomPackageNotificationChannelGroupPreferences = 10073,
3228    AtomGnssStats = 10074,
3229    AtomAttributedAppOps = 10075,
3230    AtomVoiceCallSession = 10076,
3231    AtomVoiceCallRatUsage = 10077,
3232    AtomSimSlotState = 10078,
3233    AtomSupportedRadioAccessFamily = 10079,
3234    AtomSettingSnapshot = 10080,
3235    AtomBlobInfo = 10081,
3236    AtomDataUsageBytesTransfer = 10082,
3237    AtomBytesTransferByTagAndMetered = 10083,
3238    AtomDndModeRule = 10084,
3239    AtomGeneralExternalStorageAccessStats = 10085,
3240    AtomIncomingSms = 10086,
3241    AtomOutgoingSms = 10087,
3242    AtomCarrierIdTableVersion = 10088,
3243    AtomDataCallSession = 10089,
3244    AtomCellularServiceState = 10090,
3245    AtomCellularDataServiceSwitch = 10091,
3246    AtomSystemMemory = 10092,
3247    AtomImsRegistrationTermination = 10093,
3248    AtomImsRegistrationStats = 10094,
3249    AtomCpuTimePerClusterFreq = 10095,
3250    AtomCpuCyclesPerUidCluster = 10096,
3251    AtomDeviceRotatedData = 10097,
3252    AtomCpuCyclesPerThreadGroupCluster = 10098,
3253    AtomMediaDrmActivityInfo = 10099,
3254    AtomOemManagedBytesTransfer = 10100,
3255    AtomGnssPowerStats = 10101,
3256    AtomTimeZoneDetectorState = 10102,
3257    AtomKeystore2StorageStats = 10103,
3258    AtomRkpPoolStats = 10104,
3259    AtomProcessDmabufMemory = 10105,
3260    AtomPendingAlarmInfo = 10106,
3261    AtomUserLevelHibernatedApps = 10107,
3262    AtomLauncherLayoutSnapshot = 10108,
3263    AtomGlobalHibernatedApps = 10109,
3264    AtomInputEventLatencySketch = 10110,
3265    AtomBatteryUsageStatsBeforeReset = 10111,
3266    AtomBatteryUsageStatsSinceReset = 10112,
3267    AtomBatteryUsageStatsSinceResetUsingPowerProfileModel = 10113,
3268    AtomInstalledIncrementalPackage = 10114,
3269    AtomTelephonyNetworkRequests = 10115,
3270    AtomAppSearchStorageInfo = 10116,
3271    AtomVmstat = 10117,
3272    AtomKeystore2KeyCreationWithGeneralInfo = 10118,
3273    AtomKeystore2KeyCreationWithAuthInfo = 10119,
3274    AtomKeystore2KeyCreationWithPurposeAndModesInfo = 10120,
3275    AtomKeystore2AtomWithOverflow = 10121,
3276    AtomKeystore2KeyOperationWithPurposeAndModesInfo = 10122,
3277    AtomKeystore2KeyOperationWithGeneralInfo = 10123,
3278    AtomRkpErrorStats = 10124,
3279    AtomKeystore2CrashStats = 10125,
3280    AtomVendorApexInfo = 10126,
3281    AtomAccessibilityShortcutStats = 10127,
3282    AtomAccessibilityFloatingMenuStats = 10128,
3283    AtomDataUsageBytesTransferV2 = 10129,
3284    AtomMediaCapabilities = 10130,
3285    AtomCarWatchdogSystemIoUsageSummary = 10131,
3286    AtomCarWatchdogUidIoUsageSummary = 10132,
3287    AtomImsRegistrationFeatureTagStats = 10133,
3288    AtomRcsClientProvisioningStats = 10134,
3289    AtomRcsAcsProvisioningStats = 10135,
3290    AtomSipDelegateStats = 10136,
3291    AtomSipTransportFeatureTagStats = 10137,
3292    AtomSipMessageResponse = 10138,
3293    AtomSipTransportSession = 10139,
3294    AtomImsDedicatedBearerListenerEvent = 10140,
3295    AtomImsDedicatedBearerEvent = 10141,
3296    AtomImsRegistrationServiceDescStats = 10142,
3297    AtomUceEventStats = 10143,
3298    AtomPresenceNotifyEvent = 10144,
3299    AtomGbaEvent = 10145,
3300    AtomPerSimStatus = 10146,
3301    AtomGpuWorkPerUid = 10147,
3302    AtomPersistentUriPermissionsAmountPerPackage = 10148,
3303    AtomSignedPartitionInfo = 10149,
3304    AtomPinnedFileSizesPerPackage = 10150,
3305    AtomPendingIntentsPerPackage = 10151,
3306    AtomUserInfo = 10152,
3307    AtomTelephonyNetworkRequestsV2 = 10153,
3308    AtomDeviceTelephonyProperties = 10154,
3309    AtomRemoteKeyProvisioningErrorCounts = 10155,
3310    AtomSafetyState = 10156,
3311    AtomIncomingMms = 10157,
3312    AtomOutgoingMms = 10158,
3313    AtomMultiUserInfo = 10160,
3314    AtomNetworkBpfMapInfo = 10161,
3315    AtomOutgoingShortCodeSms = 10162,
3316    AtomConnectivityStateSample = 10163,
3317    AtomNetworkSelectionRematchReasonsInfo = 10164,
3318    AtomGameModeInfo = 10165,
3319    AtomGameModeConfiguration = 10166,
3320    AtomGameModeListener = 10167,
3321    AtomNetworkSliceRequestCount = 10168,
3322    AtomWsTileSnapshot = 10169,
3323    AtomWsActiveWatchFaceComplicationSetSnapshot = 10170,
3324    AtomProcessState = 10171,
3325    AtomProcessAssociation = 10172,
3326    AtomAdpfSystemComponentInfo = 10173,
3327    AtomNotificationMemoryUse = 10174,
3328    AtomHdrCapabilities = 10175,
3329    AtomWsFavouriteWatchFaceListSnapshot = 10176,
3330    AtomAccessibilityCheckResultReported = 910,
3331    AtomAdaptiveAuthUnlockAfterLockReported = 820,
3332    AtomThermalStatusCalled = 772,
3333    AtomThermalHeadroomCalled = 773,
3334    AtomThermalHeadroomThresholdsCalled = 774,
3335    AtomAdpfHintSessionTidCleanup = 839,
3336    AtomThermalHeadroomThresholds = 10201,
3337    AtomAdpfSessionSnapshot = 10218,
3338    AtomJsscriptengineLatencyReported = 483,
3339    AtomAdServicesApiCalled = 435,
3340    AtomAdServicesMesurementReportsUploaded = 436,
3341    AtomMobileDataDownloadFileGroupStatusReported = 490,
3342    AtomMobileDataDownloadDownloadResultReported = 502,
3343    AtomAdServicesSettingsUsageReported = 493,
3344    AtomBackgroundFetchProcessReported = 496,
3345    AtomUpdateCustomAudienceProcessReported = 497,
3346    AtomRunAdBiddingProcessReported = 498,
3347    AtomRunAdScoringProcessReported = 499,
3348    AtomRunAdSelectionProcessReported = 500,
3349    AtomRunAdBiddingPerCaProcessReported = 501,
3350    AtomMobileDataDownloadFileGroupStorageStatsReported = 503,
3351    AtomAdServicesMeasurementRegistrations = 512,
3352    AtomAdServicesGetTopicsReported = 535,
3353    AtomAdServicesEpochComputationGetTopTopicsReported = 536,
3354    AtomAdServicesEpochComputationClassifierReported = 537,
3355    AtomAdServicesBackCompatGetTopicsReported = 598,
3356    AtomAdServicesBackCompatEpochComputationClassifierReported = 599,
3357    AtomAdServicesMeasurementDebugKeys = 640,
3358    AtomAdServicesErrorReported = 662,
3359    AtomAdServicesBackgroundJobsExecutionReported = 663,
3360    AtomAdServicesMeasurementDelayedSourceRegistration = 673,
3361    AtomAdServicesMeasurementAttribution = 674,
3362    AtomAdServicesMeasurementJobs = 675,
3363    AtomAdServicesMeasurementWipeout = 676,
3364    AtomAdServicesMeasurementAdIdMatchForDebugKeys = 695,
3365    AtomAdServicesEnrollmentDataStored = 697,
3366    AtomAdServicesEnrollmentFileDownloaded = 698,
3367    AtomAdServicesEnrollmentMatched = 699,
3368    AtomAdServicesConsentMigrated = 702,
3369    AtomAdServicesEnrollmentFailed = 714,
3370    AtomAdServicesMeasurementClickVerification = 756,
3371    AtomAdServicesEncryptionKeyFetched = 765,
3372    AtomAdServicesEncryptionKeyDbTransactionEnded = 766,
3373    AtomDestinationRegisteredBeacons = 767,
3374    AtomReportInteractionApiCalled = 768,
3375    AtomInteractionReportingTableCleared = 769,
3376    AtomAppManifestConfigHelperCalled = 788,
3377    AtomAdFilteringProcessJoinCaReported = 793,
3378    AtomAdFilteringProcessAdSelectionReported = 794,
3379    AtomAdCounterHistogramUpdaterReported = 795,
3380    AtomSignatureVerification = 807,
3381    AtomKAnonImmediateSignJoinStatusReported = 808,
3382    AtomKAnonBackgroundJobStatusReported = 809,
3383    AtomKAnonInitializeStatusReported = 810,
3384    AtomKAnonSignStatusReported = 811,
3385    AtomKAnonJoinStatusReported = 812,
3386    AtomKAnonKeyAttestationStatusReported = 813,
3387    AtomGetAdSelectionDataApiCalled = 814,
3388    AtomGetAdSelectionDataBuyerInputGenerated = 815,
3389    AtomBackgroundJobSchedulingReported = 834,
3390    AtomTopicsEncryptionEpochComputationReported = 840,
3391    AtomTopicsEncryptionGetTopicsReported = 841,
3392    AtomAdservicesShellCommandCalled = 842,
3393    AtomUpdateSignalsApiCalled = 843,
3394    AtomEncodingJobRun = 844,
3395    AtomEncodingJsFetch = 845,
3396    AtomEncodingJsExecution = 846,
3397    AtomPersistAdSelectionResultCalled = 847,
3398    AtomServerAuctionKeyFetchCalled = 848,
3399    AtomServerAuctionBackgroundKeyFetchEnabled = 849,
3400    AtomAdServicesMeasurementProcessOdpRegistration = 864,
3401    AtomAdServicesMeasurementNotifyRegistrationToOdp = 865,
3402    AtomSelectAdsFromOutcomesApiCalled = 876,
3403    AtomReportImpressionApiCalled = 877,
3404    AtomAdServicesEnrollmentTransactionStats = 885,
3405    AtomAdServicesCobaltLoggerEventReported = 902,
3406    AtomAdServicesCobaltPeriodicJobEventReported = 903,
3407    AtomUpdateSignalsProcessReported = 905,
3408    AtomTopicsScheduleEpochJobSettingReported = 930,
3409    AtomAiWallpapersButtonPressed = 706,
3410    AtomAiWallpapersTemplateSelected = 707,
3411    AtomAiWallpapersTermSelected = 708,
3412    AtomAiWallpapersWallpaperSet = 709,
3413    AtomAiWallpapersSessionSummary = 710,
3414    AtomApexInstallationRequested = 732,
3415    AtomApexInstallationStaged = 733,
3416    AtomApexInstallationEnded = 734,
3417    AtomAppSearchSetSchemaStatsReported = 385,
3418    AtomAppSearchSchemaMigrationStatsReported = 579,
3419    AtomAppSearchUsageSearchIntentStatsReported = 825,
3420    AtomAppSearchUsageSearchIntentRawQueryStatsReported = 826,
3421    AtomAppSearchAppsIndexerStatsReported = 909,
3422    AtomArtDatumReported = 332,
3423    AtomArtDeviceDatumReported = 550,
3424    AtomArtDatumDeltaReported = 565,
3425    AtomArtDex2oatReported = 929,
3426    AtomArtDeviceStatus = 10205,
3427    AtomBackgroundDexoptJobEnded = 467,
3428    AtomPrerebootDexoptJobEnded = 883,
3429    AtomOdrefreshReported = 366,
3430    AtomOdsignReported = 548,
3431    AtomAutofillUiEventReported = 603,
3432    AtomAutofillFillRequestReported = 604,
3433    AtomAutofillFillResponseReported = 605,
3434    AtomAutofillSaveEventReported = 606,
3435    AtomAutofillSessionCommitted = 607,
3436    AtomAutofillFieldClassificationEventReported = 659,
3437    AtomCarRecentsEventReported = 770,
3438    AtomCarCalmModeEventReported = 797,
3439    AtomCarWakeupFromSuspendReported = 852,
3440    AtomPluginInitialized = 655,
3441    AtomBluetoothHashedDeviceNameReported = 613,
3442    AtomBluetoothL2capCocClientConnection = 614,
3443    AtomBluetoothL2capCocServerConnection = 615,
3444    AtomBluetoothLeSessionConnected = 656,
3445    AtomRestrictedBluetoothDeviceNameReported = 666,
3446    AtomBluetoothProfileConnectionAttempted = 696,
3447    AtomBluetoothContentProfileErrorReported = 781,
3448    AtomBluetoothRfcommConnectionAttempted = 782,
3449    AtomRemoteDeviceInformationWithMetricId = 862,
3450    AtomLeAppScanStateChanged = 870,
3451    AtomLeRadioScanStopped = 871,
3452    AtomLeScanResultReceived = 872,
3453    AtomLeScanAbused = 873,
3454    AtomLeAdvStateChanged = 874,
3455    AtomLeAdvErrorReported = 875,
3456    AtomA2dpSessionReported = 904,
3457    AtomBluetoothCrossLayerEventReported = 916,
3458    AtomBroadcastAudioSessionReported = 927,
3459    AtomBroadcastAudioSyncReported = 928,
3460    AtomBluetoothRfcommConnectionReportedAtClose = 982,
3461    AtomBluetoothLeConnection = 988,
3462    AtomBroadcastSent = 922,
3463    AtomCameraFeatureCombinationQueryEvent = 900,
3464    AtomCertificateTransparencyLogListStateChanged = 934,
3465    AtomCertificateTransparencyLogListUpdateFailed = 972,
3466    AtomDailyKeepaliveInfoReported = 650,
3467    AtomNetworkRequestStateChanged = 779,
3468    AtomTetheringActiveSessionsReported = 925,
3469    AtomNetworkStatsRecorderFileOperated = 783,
3470    AtomCoreNetworkingTerribleErrorOccurred = 979,
3471    AtomApfSessionInfoReported = 777,
3472    AtomIpClientRaInfoReported = 778,
3473    AtomVpnConnectionStateChanged = 850,
3474    AtomVpnConnectionReported = 851,
3475    AtomCpuPolicy = 10199,
3476    AtomCredentialManagerApiCalled = 585,
3477    AtomCredentialManagerInitPhaseReported = 651,
3478    AtomCredentialManagerCandidatePhaseReported = 652,
3479    AtomCredentialManagerFinalPhaseReported = 653,
3480    AtomCredentialManagerTotalReported = 667,
3481    AtomCredentialManagerFinalnouidReported = 668,
3482    AtomCredentialManagerGetReported = 669,
3483    AtomCredentialManagerAuthClickReported = 670,
3484    AtomCredentialManagerApiv2Called = 671,
3485    AtomCronetEngineCreated = 703,
3486    AtomCronetTrafficReported = 704,
3487    AtomCronetEngineBuilderInitialized = 762,
3488    AtomCronetHttpFlagsInitialized = 763,
3489    AtomCronetInitialized = 764,
3490    AtomDesktopModeUiChanged = 818,
3491    AtomDesktopModeSessionTaskUpdate = 819,
3492    AtomDesktopModeTaskSizeUpdated = 935,
3493    AtomDeviceLockCheckInRequestReported = 726,
3494    AtomDeviceLockProvisioningCompleteReported = 727,
3495    AtomDeviceLockKioskAppRequestReported = 728,
3496    AtomDeviceLockCheckInRetryReported = 789,
3497    AtomDeviceLockProvisionFailureReported = 790,
3498    AtomDeviceLockLockUnlockDeviceFailureReported = 791,
3499    AtomDevicePolicyManagementMode = 10216,
3500    AtomDevicePolicyState = 10217,
3501    AtomDisplayModeDirectorVoteChanged = 792,
3502    AtomExternalDisplayStateChanged = 806,
3503    AtomDndStateChanged = 657,
3504    AtomDreamSettingChanged = 705,
3505    AtomDreamSettingSnapshot = 10192,
3506    AtomExpressEventReported = 528,
3507    AtomExpressHistogramSampleReported = 593,
3508    AtomExpressUidEventReported = 644,
3509    AtomExpressUidHistogramSampleReported = 658,
3510    AtomFederatedComputeApiCalled = 712,
3511    AtomFederatedComputeTrainingEventReported = 771,
3512    AtomExampleIteratorNextLatencyReported = 838,
3513    AtomFullScreenIntentLaunched = 631,
3514    AtomBalAllowed = 632,
3515    AtomInTaskActivityStarted = 685,
3516    AtomDeviceOrientationChanged = 906,
3517    AtomCachedAppsHighWatermark = 10189,
3518    AtomStylusPredictionMetricsReported = 718,
3519    AtomUserRiskEventReported = 725,
3520    AtomMediaProjectionStateChanged = 729,
3521    AtomMediaProjectionTargetChanged = 730,
3522    AtomExcessiveBinderProxyCountReported = 853,
3523    AtomProxyBytesTransferByFgBg = 10200,
3524    AtomMobileBytesTransferByProcState = 10204,
3525    AtomBiometricFrrNotification = 817,
3526    AtomSensitiveContentMediaProjectionSession = 830,
3527    AtomSensitiveNotificationAppProtectionSession = 831,
3528    AtomSensitiveNotificationAppProtectionApplied = 832,
3529    AtomSensitiveNotificationRedaction = 833,
3530    AtomSensitiveContentAppProtection = 835,
3531    AtomAppRestrictionStateChanged = 866,
3532    AtomBatteryUsageStatsPerUid = 10209,
3533    AtomPostgcMemorySnapshot = 924,
3534    AtomPowerSaveTempAllowlistChanged = 926,
3535    AtomAppOpAccessTracked = 931,
3536    AtomContentOrFileUriEventReported = 933,
3537    AtomApplicationGrammaticalInflectionChanged = 584,
3538    AtomSystemGrammaticalInflectionChanged = 816,
3539    AtomBatteryHealth = 10220,
3540    AtomHdmiEarcStatusReported = 701,
3541    AtomHdmiSoundbarModeStatusReported = 724,
3542    AtomHealthConnectApiCalled = 616,
3543    AtomHealthConnectUsageStats = 617,
3544    AtomHealthConnectStorageStats = 618,
3545    AtomHealthConnectApiInvoked = 643,
3546    AtomExerciseRouteApiCalled = 654,
3547    AtomHealthConnectExportInvoked = 907,
3548    AtomHealthConnectImportInvoked = 918,
3549    AtomHealthConnectExportImportStatsReported = 919,
3550    AtomHealthConnectUiImpression = 623,
3551    AtomHealthConnectUiInteraction = 624,
3552    AtomHealthConnectAppOpenedReported = 625,
3553    AtomHotwordEgressSizeAtomReported = 761,
3554    AtomIkeSessionTerminated = 678,
3555    AtomIkeLivenessCheckSessionValidated = 760,
3556    AtomNegotiatedSecurityAssociation = 821,
3557    AtomKeyboardConfigured = 682,
3558    AtomKeyboardSystemsEventReported = 683,
3559    AtomInputdeviceUsageReported = 686,
3560    AtomInputEventLatencyReported = 932,
3561    AtomTouchpadUsage = 10191,
3562    AtomKernelOomKillOccurred = 754,
3563    AtomEmergencyStateChanged = 633,
3564    AtomChreSignificantMotionStateChanged = 868,
3565    AtomPopulationDensityProviderLoadingReported = 1002,
3566    AtomDensityBasedCoarseLocationsUsageReported = 1003,
3567    AtomDensityBasedCoarseLocationsProviderQueryReported = 1004,
3568    AtomMediaCodecReclaimRequestCompleted = 600,
3569    AtomMediaCodecStarted = 641,
3570    AtomMediaCodecStopped = 642,
3571    AtomMediaCodecRendered = 684,
3572    AtomMediaEditingEndedReported = 798,
3573    AtomMteState = 10181,
3574    AtomMicroxrDeviceBootCompleteReported = 901,
3575    AtomNfcObserveModeStateChanged = 855,
3576    AtomNfcFieldChanged = 856,
3577    AtomNfcPollingLoopNotificationReported = 857,
3578    AtomNfcProprietaryCapabilitiesReported = 858,
3579    AtomOndevicepersonalizationApiCalled = 711,
3580    AtomComponentStateChangedReported = 863,
3581    AtomPdfLoadReported = 859,
3582    AtomPdfApiUsageReported = 860,
3583    AtomPdfSearchReported = 861,
3584    AtomPressureStallInformation = 10229,
3585    AtomPermissionRationaleDialogViewed = 645,
3586    AtomPermissionRationaleDialogActionReported = 646,
3587    AtomAppDataSharingUpdatesNotificationInteraction = 647,
3588    AtomAppDataSharingUpdatesFragmentViewed = 648,
3589    AtomAppDataSharingUpdatesFragmentActionReported = 649,
3590    AtomEnhancedConfirmationDialogResultReported = 827,
3591    AtomEnhancedConfirmationRestrictionCleared = 828,
3592    AtomPhotopickerSessionInfoReported = 886,
3593    AtomPhotopickerApiInfoReported = 887,
3594    AtomPhotopickerUiEventLogged = 888,
3595    AtomPhotopickerMediaItemStatusReported = 889,
3596    AtomPhotopickerPreviewInfoLogged = 890,
3597    AtomPhotopickerMenuInteractionLogged = 891,
3598    AtomPhotopickerBannerInteractionLogged = 892,
3599    AtomPhotopickerMediaLibraryInfoLogged = 893,
3600    AtomPhotopickerPageInfoLogged = 894,
3601    AtomPhotopickerMediaGridSyncInfoReported = 895,
3602    AtomPhotopickerAlbumSyncInfoReported = 896,
3603    AtomPhotopickerSearchInfoReported = 897,
3604    AtomSearchDataExtractionDetailsReported = 898,
3605    AtomEmbeddedPhotopickerInfoReported = 899,
3606    AtomAtom9999 = 9999,
3607    AtomAtom99999 = 99999,
3608    AtomScreenOffReported = 776,
3609    AtomScreenTimeoutOverrideReported = 836,
3610    AtomScreenInteractiveSessionReported = 837,
3611    AtomScreenDimReported = 867,
3612    AtomMediaProviderDatabaseRollbackReported = 784,
3613    AtomBackupSetupStatusReported = 785,
3614    AtomRangingSessionConfigured = 993,
3615    AtomRangingSessionStarted = 994,
3616    AtomRangingSessionClosed = 995,
3617    AtomRangingTechnologyStarted = 996,
3618    AtomRangingTechnologyStopped = 997,
3619    AtomRkpdPoolStats = 664,
3620    AtomRkpdClientOperation = 665,
3621    AtomSandboxApiCalled = 488,
3622    AtomSandboxActivityEventOccurred = 735,
3623    AtomSdkSandboxRestrictedAccessInSession = 796,
3624    AtomSandboxSdkStorage = 10159,
3625    AtomSelinuxAuditLog = 799,
3626    AtomSettingsSpaReported = 622,
3627    AtomTestExtensionAtomReported = 660,
3628    AtomTestRestrictedAtomReported = 672,
3629    AtomStatsSocketLossReported = 752,
3630    AtomLockscreenShortcutSelected = 611,
3631    AtomLockscreenShortcutTriggered = 612,
3632    AtomLauncherImpressionEventV2 = 716,
3633    AtomDisplaySwitchLatencyTracked = 753,
3634    AtomNotificationListenerService = 829,
3635    AtomNavHandleTouchPoints = 869,
3636    AtomCommunalHubWidgetEventReported = 908,
3637    AtomCommunalHubSnapshot = 10226,
3638    AtomEmergencyNumberDialed = 637,
3639    AtomCallStats = 10221,
3640    AtomCallAudioRouteStats = 10222,
3641    AtomTelecomApiStats = 10223,
3642    AtomTelecomErrorStats = 10224,
3643    AtomCellularRadioPowerStateChanged = 713,
3644    AtomEmergencyNumbersInfo = 10180,
3645    AtomDataNetworkValidation = 10207,
3646    AtomDataRatStateChanged = 854,
3647    AtomConnectedChannelChanged = 882,
3648    AtomIwlanUnderlyingNetworkValidationResultReported = 923,
3649    AtomQualifiedRatListChanged = 634,
3650    AtomQnsImsCallDropStats = 635,
3651    AtomQnsFallbackRestrictionChanged = 636,
3652    AtomQnsRatPreferenceMismatchInfo = 10177,
3653    AtomQnsHandoverTimeMillis = 10178,
3654    AtomQnsHandoverPingpong = 10179,
3655    AtomSatelliteController = 10182,
3656    AtomSatelliteSession = 10183,
3657    AtomSatelliteIncomingDatagram = 10184,
3658    AtomSatelliteOutgoingDatagram = 10185,
3659    AtomSatelliteProvision = 10186,
3660    AtomSatelliteSosMessageRecommender = 10187,
3661    AtomCarrierRoamingSatelliteSession = 10211,
3662    AtomCarrierRoamingSatelliteControllerStats = 10212,
3663    AtomControllerStatsPerPackage = 10213,
3664    AtomSatelliteEntitlement = 10214,
3665    AtomSatelliteConfigUpdater = 10215,
3666    AtomSatelliteAccessController = 10219,
3667    AtomCellularIdentifierDisclosed = 800,
3668    AtomThreadnetworkTelemetryDataReported = 738,
3669    AtomThreadnetworkTopoEntryRepeated = 739,
3670    AtomThreadnetworkDeviceInfoReported = 740,
3671    AtomBootIntegrityInfoReported = 775,
3672    AtomTvLowPowerStandbyPolicy = 679,
3673    AtomExternalTvInputEvent = 717,
3674    AtomTestUprobestatsAtomReported = 915,
3675    AtomUwbActivityInfo = 10188,
3676    AtomMediatorUpdated = 721,
3677    AtomSysproxyBluetoothBytesTransfer = 10196,
3678    AtomSysproxyConnectionUpdated = 786,
3679    AtomWearCompanionConnectionState = 921,
3680    AtomMediaActionReported = 608,
3681    AtomMediaControlsLaunched = 609,
3682    AtomMediaSessionStateChanged = 677,
3683    AtomWearMediaOutputSwitcherDeviceScanApiLatency = 757,
3684    AtomWearMediaOutputSwitcherSassDeviceUnavailable = 758,
3685    AtomWearMediaOutputSwitcherFastpairApiTimeout = 759,
3686    AtomWearModeStateChanged = 715,
3687    AtomRendererInitialized = 736,
3688    AtomSchemaVersionReceived = 737,
3689    AtomLayoutInspected = 741,
3690    AtomLayoutExpressionInspected = 742,
3691    AtomLayoutAnimationsInspected = 743,
3692    AtomMaterialComponentsInspected = 744,
3693    AtomTileRequested = 745,
3694    AtomStateResponseReceived = 746,
3695    AtomTileResponseReceived = 747,
3696    AtomInflationFinished = 748,
3697    AtomInflationFailed = 749,
3698    AtomIgnoredInflationFailuresReported = 750,
3699    AtomDrawableRendered = 751,
3700    AtomWearTimeSyncRequested = 911,
3701    AtomWearTimeUpdateStarted = 912,
3702    AtomWearTimeSyncAttemptCompleted = 913,
3703    AtomWearTimeChanged = 914,
3704    AtomWearAdaptiveSuspendStatsReported = 619,
3705    AtomWearPowerAnomalyServiceOperationalStatsReported = 620,
3706    AtomWearPowerAnomalyServiceEventStatsReported = 621,
3707    AtomWsWearTimeSession = 610,
3708    AtomWsIncomingCallActionReported = 626,
3709    AtomWsCallDisconnectionReported = 627,
3710    AtomWsCallDurationReported = 628,
3711    AtomWsCallUserExperienceLatencyReported = 629,
3712    AtomWsCallInteractionReported = 630,
3713    AtomWsOnBodyStateChanged = 787,
3714    AtomWsWatchFaceRestrictedComplicationsImpacted = 802,
3715    AtomWsWatchFaceDefaultRestrictedComplicationsRemoved = 803,
3716    AtomWsComplicationsImpactedNotificationEventReported = 804,
3717    AtomWsRemoteEventUsageReported = 920,
3718    AtomWsBugreportRequested = 936,
3719    AtomWsBugreportTriggered = 937,
3720    AtomWsBugreportFinished = 938,
3721    AtomWsBugreportResultReceived = 939,
3722    AtomWsStandaloneModeSnapshot = 10197,
3723    AtomWsFavoriteWatchFaceSnapshot = 10206,
3724    AtomWsPhotosWatchFaceFeatureSnapshot = 10225,
3725    AtomWsWatchFaceCustomizationSnapshot = 10227,
3726    AtomWearPowerMenuOpened = 731,
3727    AtomWearAssistantOpened = 755,
3728    AtomFirstOverlayStateChanged = 917,
3729    AtomWifiAwareNdpReported = 638,
3730    AtomWifiAwareAttachReported = 639,
3731    AtomWifiSelfRecoveryTriggered = 661,
3732    AtomSoftApStarted = 680,
3733    AtomSoftApStopped = 681,
3734    AtomWifiLockReleased = 687,
3735    AtomWifiLockDeactivated = 688,
3736    AtomWifiConfigSaved = 689,
3737    AtomWifiAwareResourceUsingChanged = 690,
3738    AtomWifiAwareHalApiCalled = 691,
3739    AtomWifiLocalOnlyRequestReceived = 692,
3740    AtomWifiLocalOnlyRequestScanTriggered = 693,
3741    AtomWifiThreadTaskExecuted = 694,
3742    AtomWifiStateChanged = 700,
3743    AtomPnoScanStarted = 719,
3744    AtomPnoScanStopped = 720,
3745    AtomWifiIsUnusableReported = 722,
3746    AtomWifiApCapabilitiesReported = 723,
3747    AtomSoftApStateChanged = 805,
3748    AtomScorerPredictionResultReported = 884,
3749    AtomWifiAwareCapabilities = 10190,
3750    AtomWifiModuleInfo = 10193,
3751    AtomWifiSettingInfo = 10194,
3752    AtomWifiComplexSettingInfo = 10195,
3753    AtomWifiConfiguredNetworkInfo = 10198,
3754}
3755impl AtomId {
3756    /// String value of the enum field names used in the ProtoBuf definition.
3757    ///
3758    /// The values are not transformed in any way and thus are considered stable
3759    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3760    pub fn as_str_name(&self) -> &'static str {
3761        match self {
3762            AtomId::AtomUnspecified => "ATOM_UNSPECIFIED",
3763            AtomId::AtomBleScanStateChanged => "ATOM_BLE_SCAN_STATE_CHANGED",
3764            AtomId::AtomProcessStateChanged => "ATOM_PROCESS_STATE_CHANGED",
3765            AtomId::AtomBleScanResultReceived => "ATOM_BLE_SCAN_RESULT_RECEIVED",
3766            AtomId::AtomSensorStateChanged => "ATOM_SENSOR_STATE_CHANGED",
3767            AtomId::AtomGpsScanStateChanged => "ATOM_GPS_SCAN_STATE_CHANGED",
3768            AtomId::AtomSyncStateChanged => "ATOM_SYNC_STATE_CHANGED",
3769            AtomId::AtomScheduledJobStateChanged => "ATOM_SCHEDULED_JOB_STATE_CHANGED",
3770            AtomId::AtomScreenBrightnessChanged => "ATOM_SCREEN_BRIGHTNESS_CHANGED",
3771            AtomId::AtomWakelockStateChanged => "ATOM_WAKELOCK_STATE_CHANGED",
3772            AtomId::AtomLongPartialWakelockStateChanged => "ATOM_LONG_PARTIAL_WAKELOCK_STATE_CHANGED",
3773            AtomId::AtomMobileRadioPowerStateChanged => "ATOM_MOBILE_RADIO_POWER_STATE_CHANGED",
3774            AtomId::AtomWifiRadioPowerStateChanged => "ATOM_WIFI_RADIO_POWER_STATE_CHANGED",
3775            AtomId::AtomActivityManagerSleepStateChanged => "ATOM_ACTIVITY_MANAGER_SLEEP_STATE_CHANGED",
3776            AtomId::AtomMemoryFactorStateChanged => "ATOM_MEMORY_FACTOR_STATE_CHANGED",
3777            AtomId::AtomExcessiveCpuUsageReported => "ATOM_EXCESSIVE_CPU_USAGE_REPORTED",
3778            AtomId::AtomCachedKillReported => "ATOM_CACHED_KILL_REPORTED",
3779            AtomId::AtomProcessMemoryStatReported => "ATOM_PROCESS_MEMORY_STAT_REPORTED",
3780            AtomId::AtomLauncherEvent => "ATOM_LAUNCHER_EVENT",
3781            AtomId::AtomBatterySaverModeStateChanged => "ATOM_BATTERY_SAVER_MODE_STATE_CHANGED",
3782            AtomId::AtomDeviceIdleModeStateChanged => "ATOM_DEVICE_IDLE_MODE_STATE_CHANGED",
3783            AtomId::AtomDeviceIdlingModeStateChanged => "ATOM_DEVICE_IDLING_MODE_STATE_CHANGED",
3784            AtomId::AtomAudioStateChanged => "ATOM_AUDIO_STATE_CHANGED",
3785            AtomId::AtomMediaCodecStateChanged => "ATOM_MEDIA_CODEC_STATE_CHANGED",
3786            AtomId::AtomCameraStateChanged => "ATOM_CAMERA_STATE_CHANGED",
3787            AtomId::AtomFlashlightStateChanged => "ATOM_FLASHLIGHT_STATE_CHANGED",
3788            AtomId::AtomUidProcessStateChanged => "ATOM_UID_PROCESS_STATE_CHANGED",
3789            AtomId::AtomProcessLifeCycleStateChanged => "ATOM_PROCESS_LIFE_CYCLE_STATE_CHANGED",
3790            AtomId::AtomScreenStateChanged => "ATOM_SCREEN_STATE_CHANGED",
3791            AtomId::AtomBatteryLevelChanged => "ATOM_BATTERY_LEVEL_CHANGED",
3792            AtomId::AtomChargingStateChanged => "ATOM_CHARGING_STATE_CHANGED",
3793            AtomId::AtomPluggedStateChanged => "ATOM_PLUGGED_STATE_CHANGED",
3794            AtomId::AtomInteractiveStateChanged => "ATOM_INTERACTIVE_STATE_CHANGED",
3795            AtomId::AtomTouchEventReported => "ATOM_TOUCH_EVENT_REPORTED",
3796            AtomId::AtomWakeupAlarmOccurred => "ATOM_WAKEUP_ALARM_OCCURRED",
3797            AtomId::AtomKernelWakeupReported => "ATOM_KERNEL_WAKEUP_REPORTED",
3798            AtomId::AtomWifiLockStateChanged => "ATOM_WIFI_LOCK_STATE_CHANGED",
3799            AtomId::AtomWifiSignalStrengthChanged => "ATOM_WIFI_SIGNAL_STRENGTH_CHANGED",
3800            AtomId::AtomWifiScanStateChanged => "ATOM_WIFI_SCAN_STATE_CHANGED",
3801            AtomId::AtomPhoneSignalStrengthChanged => "ATOM_PHONE_SIGNAL_STRENGTH_CHANGED",
3802            AtomId::AtomSettingChanged => "ATOM_SETTING_CHANGED",
3803            AtomId::AtomActivityForegroundStateChanged => "ATOM_ACTIVITY_FOREGROUND_STATE_CHANGED",
3804            AtomId::AtomIsolatedUidChanged => "ATOM_ISOLATED_UID_CHANGED",
3805            AtomId::AtomPacketWakeupOccurred => "ATOM_PACKET_WAKEUP_OCCURRED",
3806            AtomId::AtomWallClockTimeShifted => "ATOM_WALL_CLOCK_TIME_SHIFTED",
3807            AtomId::AtomAnomalyDetected => "ATOM_ANOMALY_DETECTED",
3808            AtomId::AtomAppBreadcrumbReported => "ATOM_APP_BREADCRUMB_REPORTED",
3809            AtomId::AtomAppStartOccurred => "ATOM_APP_START_OCCURRED",
3810            AtomId::AtomAppStartCanceled => "ATOM_APP_START_CANCELED",
3811            AtomId::AtomAppStartFullyDrawn => "ATOM_APP_START_FULLY_DRAWN",
3812            AtomId::AtomLmkKillOccurred => "ATOM_LMK_KILL_OCCURRED",
3813            AtomId::AtomPictureInPictureStateChanged => "ATOM_PICTURE_IN_PICTURE_STATE_CHANGED",
3814            AtomId::AtomWifiMulticastLockStateChanged => "ATOM_WIFI_MULTICAST_LOCK_STATE_CHANGED",
3815            AtomId::AtomAppStartMemoryStateCaptured => "ATOM_APP_START_MEMORY_STATE_CAPTURED",
3816            AtomId::AtomShutdownSequenceReported => "ATOM_SHUTDOWN_SEQUENCE_REPORTED",
3817            AtomId::AtomBootSequenceReported => "ATOM_BOOT_SEQUENCE_REPORTED",
3818            AtomId::AtomOverlayStateChanged => "ATOM_OVERLAY_STATE_CHANGED",
3819            AtomId::AtomForegroundServiceStateChanged => "ATOM_FOREGROUND_SERVICE_STATE_CHANGED",
3820            AtomId::AtomCallStateChanged => "ATOM_CALL_STATE_CHANGED",
3821            AtomId::AtomKeyguardStateChanged => "ATOM_KEYGUARD_STATE_CHANGED",
3822            AtomId::AtomKeyguardBouncerStateChanged => "ATOM_KEYGUARD_BOUNCER_STATE_CHANGED",
3823            AtomId::AtomKeyguardBouncerPasswordEntered => "ATOM_KEYGUARD_BOUNCER_PASSWORD_ENTERED",
3824            AtomId::AtomAppDied => "ATOM_APP_DIED",
3825            AtomId::AtomResourceConfigurationChanged => "ATOM_RESOURCE_CONFIGURATION_CHANGED",
3826            AtomId::AtomBluetoothEnabledStateChanged => "ATOM_BLUETOOTH_ENABLED_STATE_CHANGED",
3827            AtomId::AtomBluetoothConnectionStateChanged => "ATOM_BLUETOOTH_CONNECTION_STATE_CHANGED",
3828            AtomId::AtomGpsSignalQualityChanged => "ATOM_GPS_SIGNAL_QUALITY_CHANGED",
3829            AtomId::AtomUsbConnectorStateChanged => "ATOM_USB_CONNECTOR_STATE_CHANGED",
3830            AtomId::AtomSpeakerImpedanceReported => "ATOM_SPEAKER_IMPEDANCE_REPORTED",
3831            AtomId::AtomHardwareFailed => "ATOM_HARDWARE_FAILED",
3832            AtomId::AtomPhysicalDropDetected => "ATOM_PHYSICAL_DROP_DETECTED",
3833            AtomId::AtomChargeCyclesReported => "ATOM_CHARGE_CYCLES_REPORTED",
3834            AtomId::AtomMobileConnectionStateChanged => "ATOM_MOBILE_CONNECTION_STATE_CHANGED",
3835            AtomId::AtomMobileRadioTechnologyChanged => "ATOM_MOBILE_RADIO_TECHNOLOGY_CHANGED",
3836            AtomId::AtomUsbDeviceAttached => "ATOM_USB_DEVICE_ATTACHED",
3837            AtomId::AtomAppCrashOccurred => "ATOM_APP_CRASH_OCCURRED",
3838            AtomId::AtomAnrOccurred => "ATOM_ANR_OCCURRED",
3839            AtomId::AtomWtfOccurred => "ATOM_WTF_OCCURRED",
3840            AtomId::AtomLowMemReported => "ATOM_LOW_MEM_REPORTED",
3841            AtomId::AtomGenericAtom => "ATOM_GENERIC_ATOM",
3842            AtomId::AtomVibratorStateChanged => "ATOM_VIBRATOR_STATE_CHANGED",
3843            AtomId::AtomDeferredJobStatsReported => "ATOM_DEFERRED_JOB_STATS_REPORTED",
3844            AtomId::AtomThermalThrottling => "ATOM_THERMAL_THROTTLING",
3845            AtomId::AtomBiometricAcquired => "ATOM_BIOMETRIC_ACQUIRED",
3846            AtomId::AtomBiometricAuthenticated => "ATOM_BIOMETRIC_AUTHENTICATED",
3847            AtomId::AtomBiometricErrorOccurred => "ATOM_BIOMETRIC_ERROR_OCCURRED",
3848            AtomId::AtomUiEventReported => "ATOM_UI_EVENT_REPORTED",
3849            AtomId::AtomBatteryHealthSnapshot => "ATOM_BATTERY_HEALTH_SNAPSHOT",
3850            AtomId::AtomSlowIo => "ATOM_SLOW_IO",
3851            AtomId::AtomBatteryCausedShutdown => "ATOM_BATTERY_CAUSED_SHUTDOWN",
3852            AtomId::AtomPhoneServiceStateChanged => "ATOM_PHONE_SERVICE_STATE_CHANGED",
3853            AtomId::AtomPhoneStateChanged => "ATOM_PHONE_STATE_CHANGED",
3854            AtomId::AtomUserRestrictionChanged => "ATOM_USER_RESTRICTION_CHANGED",
3855            AtomId::AtomSettingsUiChanged => "ATOM_SETTINGS_UI_CHANGED",
3856            AtomId::AtomConnectivityStateChanged => "ATOM_CONNECTIVITY_STATE_CHANGED",
3857            AtomId::AtomServiceStateChanged => "ATOM_SERVICE_STATE_CHANGED",
3858            AtomId::AtomServiceLaunchReported => "ATOM_SERVICE_LAUNCH_REPORTED",
3859            AtomId::AtomFlagFlipUpdateOccurred => "ATOM_FLAG_FLIP_UPDATE_OCCURRED",
3860            AtomId::AtomBinaryPushStateChanged => "ATOM_BINARY_PUSH_STATE_CHANGED",
3861            AtomId::AtomDevicePolicyEvent => "ATOM_DEVICE_POLICY_EVENT",
3862            AtomId::AtomDocsUiFileOpCanceled => "ATOM_DOCS_UI_FILE_OP_CANCELED",
3863            AtomId::AtomDocsUiFileOpCopyMoveModeReported => "ATOM_DOCS_UI_FILE_OP_COPY_MOVE_MODE_REPORTED",
3864            AtomId::AtomDocsUiFileOpFailure => "ATOM_DOCS_UI_FILE_OP_FAILURE",
3865            AtomId::AtomDocsUiProviderFileOp => "ATOM_DOCS_UI_PROVIDER_FILE_OP",
3866            AtomId::AtomDocsUiInvalidScopedAccessRequest => "ATOM_DOCS_UI_INVALID_SCOPED_ACCESS_REQUEST",
3867            AtomId::AtomDocsUiLaunchReported => "ATOM_DOCS_UI_LAUNCH_REPORTED",
3868            AtomId::AtomDocsUiRootVisited => "ATOM_DOCS_UI_ROOT_VISITED",
3869            AtomId::AtomDocsUiStartupMs => "ATOM_DOCS_UI_STARTUP_MS",
3870            AtomId::AtomDocsUiUserActionReported => "ATOM_DOCS_UI_USER_ACTION_REPORTED",
3871            AtomId::AtomWifiEnabledStateChanged => "ATOM_WIFI_ENABLED_STATE_CHANGED",
3872            AtomId::AtomWifiRunningStateChanged => "ATOM_WIFI_RUNNING_STATE_CHANGED",
3873            AtomId::AtomAppCompacted => "ATOM_APP_COMPACTED",
3874            AtomId::AtomNetworkDnsEventReported => "ATOM_NETWORK_DNS_EVENT_REPORTED",
3875            AtomId::AtomDocsUiPickerLaunchedFromReported => "ATOM_DOCS_UI_PICKER_LAUNCHED_FROM_REPORTED",
3876            AtomId::AtomDocsUiPickResultReported => "ATOM_DOCS_UI_PICK_RESULT_REPORTED",
3877            AtomId::AtomDocsUiSearchModeReported => "ATOM_DOCS_UI_SEARCH_MODE_REPORTED",
3878            AtomId::AtomDocsUiSearchTypeReported => "ATOM_DOCS_UI_SEARCH_TYPE_REPORTED",
3879            AtomId::AtomDataStallEvent => "ATOM_DATA_STALL_EVENT",
3880            AtomId::AtomRescuePartyResetReported => "ATOM_RESCUE_PARTY_RESET_REPORTED",
3881            AtomId::AtomSignedConfigReported => "ATOM_SIGNED_CONFIG_REPORTED",
3882            AtomId::AtomGnssNiEventReported => "ATOM_GNSS_NI_EVENT_REPORTED",
3883            AtomId::AtomBluetoothLinkLayerConnectionEvent => "ATOM_BLUETOOTH_LINK_LAYER_CONNECTION_EVENT",
3884            AtomId::AtomBluetoothAclConnectionStateChanged => "ATOM_BLUETOOTH_ACL_CONNECTION_STATE_CHANGED",
3885            AtomId::AtomBluetoothScoConnectionStateChanged => "ATOM_BLUETOOTH_SCO_CONNECTION_STATE_CHANGED",
3886            AtomId::AtomAppDowngraded => "ATOM_APP_DOWNGRADED",
3887            AtomId::AtomAppOptimizedAfterDowngraded => "ATOM_APP_OPTIMIZED_AFTER_DOWNGRADED",
3888            AtomId::AtomLowStorageStateChanged => "ATOM_LOW_STORAGE_STATE_CHANGED",
3889            AtomId::AtomGnssNfwNotificationReported => "ATOM_GNSS_NFW_NOTIFICATION_REPORTED",
3890            AtomId::AtomGnssConfigurationReported => "ATOM_GNSS_CONFIGURATION_REPORTED",
3891            AtomId::AtomUsbPortOverheatEventReported => "ATOM_USB_PORT_OVERHEAT_EVENT_REPORTED",
3892            AtomId::AtomNfcErrorOccurred => "ATOM_NFC_ERROR_OCCURRED",
3893            AtomId::AtomNfcStateChanged => "ATOM_NFC_STATE_CHANGED",
3894            AtomId::AtomNfcBeamOccurred => "ATOM_NFC_BEAM_OCCURRED",
3895            AtomId::AtomNfcCardemulationOccurred => "ATOM_NFC_CARDEMULATION_OCCURRED",
3896            AtomId::AtomNfcTagOccurred => "ATOM_NFC_TAG_OCCURRED",
3897            AtomId::AtomNfcHceTransactionOccurred => "ATOM_NFC_HCE_TRANSACTION_OCCURRED",
3898            AtomId::AtomSeStateChanged => "ATOM_SE_STATE_CHANGED",
3899            AtomId::AtomSeOmapiReported => "ATOM_SE_OMAPI_REPORTED",
3900            AtomId::AtomBroadcastDispatchLatencyReported => "ATOM_BROADCAST_DISPATCH_LATENCY_REPORTED",
3901            AtomId::AtomAttentionManagerServiceResultReported => "ATOM_ATTENTION_MANAGER_SERVICE_RESULT_REPORTED",
3902            AtomId::AtomAdbConnectionChanged => "ATOM_ADB_CONNECTION_CHANGED",
3903            AtomId::AtomSpeechDspStatReported => "ATOM_SPEECH_DSP_STAT_REPORTED",
3904            AtomId::AtomUsbContaminantReported => "ATOM_USB_CONTAMINANT_REPORTED",
3905            AtomId::AtomWatchdogRollbackOccurred => "ATOM_WATCHDOG_ROLLBACK_OCCURRED",
3906            AtomId::AtomBiometricSystemHealthIssueDetected => "ATOM_BIOMETRIC_SYSTEM_HEALTH_ISSUE_DETECTED",
3907            AtomId::AtomBubbleUiChanged => "ATOM_BUBBLE_UI_CHANGED",
3908            AtomId::AtomScheduledJobConstraintChanged => "ATOM_SCHEDULED_JOB_CONSTRAINT_CHANGED",
3909            AtomId::AtomBluetoothActiveDeviceChanged => "ATOM_BLUETOOTH_ACTIVE_DEVICE_CHANGED",
3910            AtomId::AtomBluetoothA2dpPlaybackStateChanged => "ATOM_BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED",
3911            AtomId::AtomBluetoothA2dpCodecConfigChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CONFIG_CHANGED",
3912            AtomId::AtomBluetoothA2dpCodecCapabilityChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CAPABILITY_CHANGED",
3913            AtomId::AtomBluetoothA2dpAudioUnderrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_UNDERRUN_REPORTED",
3914            AtomId::AtomBluetoothA2dpAudioOverrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_OVERRUN_REPORTED",
3915            AtomId::AtomBluetoothDeviceRssiReported => "ATOM_BLUETOOTH_DEVICE_RSSI_REPORTED",
3916            AtomId::AtomBluetoothDeviceFailedContactCounterReported => "ATOM_BLUETOOTH_DEVICE_FAILED_CONTACT_COUNTER_REPORTED",
3917            AtomId::AtomBluetoothDeviceTxPowerLevelReported => "ATOM_BLUETOOTH_DEVICE_TX_POWER_LEVEL_REPORTED",
3918            AtomId::AtomBluetoothHciTimeoutReported => "ATOM_BLUETOOTH_HCI_TIMEOUT_REPORTED",
3919            AtomId::AtomBluetoothQualityReportReported => "ATOM_BLUETOOTH_QUALITY_REPORT_REPORTED",
3920            AtomId::AtomBluetoothDeviceInfoReported => "ATOM_BLUETOOTH_DEVICE_INFO_REPORTED",
3921            AtomId::AtomBluetoothRemoteVersionInfoReported => "ATOM_BLUETOOTH_REMOTE_VERSION_INFO_REPORTED",
3922            AtomId::AtomBluetoothSdpAttributeReported => "ATOM_BLUETOOTH_SDP_ATTRIBUTE_REPORTED",
3923            AtomId::AtomBluetoothBondStateChanged => "ATOM_BLUETOOTH_BOND_STATE_CHANGED",
3924            AtomId::AtomBluetoothClassicPairingEventReported => "ATOM_BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED",
3925            AtomId::AtomBluetoothSmpPairingEventReported => "ATOM_BLUETOOTH_SMP_PAIRING_EVENT_REPORTED",
3926            AtomId::AtomScreenTimeoutExtensionReported => "ATOM_SCREEN_TIMEOUT_EXTENSION_REPORTED",
3927            AtomId::AtomProcessStartTime => "ATOM_PROCESS_START_TIME",
3928            AtomId::AtomPermissionGrantRequestResultReported => "ATOM_PERMISSION_GRANT_REQUEST_RESULT_REPORTED",
3929            AtomId::AtomBluetoothSocketConnectionStateChanged => "ATOM_BLUETOOTH_SOCKET_CONNECTION_STATE_CHANGED",
3930            AtomId::AtomDeviceIdentifierAccessDenied => "ATOM_DEVICE_IDENTIFIER_ACCESS_DENIED",
3931            AtomId::AtomBubbleDeveloperErrorReported => "ATOM_BUBBLE_DEVELOPER_ERROR_REPORTED",
3932            AtomId::AtomAssistGestureStageReported => "ATOM_ASSIST_GESTURE_STAGE_REPORTED",
3933            AtomId::AtomAssistGestureFeedbackReported => "ATOM_ASSIST_GESTURE_FEEDBACK_REPORTED",
3934            AtomId::AtomAssistGestureProgressReported => "ATOM_ASSIST_GESTURE_PROGRESS_REPORTED",
3935            AtomId::AtomTouchGestureClassified => "ATOM_TOUCH_GESTURE_CLASSIFIED",
3936            AtomId::AtomHiddenApiUsed => "ATOM_HIDDEN_API_USED",
3937            AtomId::AtomStyleUiChanged => "ATOM_STYLE_UI_CHANGED",
3938            AtomId::AtomPrivacyIndicatorsInteracted => "ATOM_PRIVACY_INDICATORS_INTERACTED",
3939            AtomId::AtomAppInstallOnExternalStorageReported => "ATOM_APP_INSTALL_ON_EXTERNAL_STORAGE_REPORTED",
3940            AtomId::AtomNetworkStackReported => "ATOM_NETWORK_STACK_REPORTED",
3941            AtomId::AtomAppMovedStorageReported => "ATOM_APP_MOVED_STORAGE_REPORTED",
3942            AtomId::AtomBiometricEnrolled => "ATOM_BIOMETRIC_ENROLLED",
3943            AtomId::AtomSystemServerWatchdogOccurred => "ATOM_SYSTEM_SERVER_WATCHDOG_OCCURRED",
3944            AtomId::AtomTombStoneOccurred => "ATOM_TOMB_STONE_OCCURRED",
3945            AtomId::AtomBluetoothClassOfDeviceReported => "ATOM_BLUETOOTH_CLASS_OF_DEVICE_REPORTED",
3946            AtomId::AtomIntelligenceEventReported => "ATOM_INTELLIGENCE_EVENT_REPORTED",
3947            AtomId::AtomThermalThrottlingSeverityStateChanged => "ATOM_THERMAL_THROTTLING_SEVERITY_STATE_CHANGED",
3948            AtomId::AtomRoleRequestResultReported => "ATOM_ROLE_REQUEST_RESULT_REPORTED",
3949            AtomId::AtomMediametricsAudiopolicyReported => "ATOM_MEDIAMETRICS_AUDIOPOLICY_REPORTED",
3950            AtomId::AtomMediametricsAudiorecordReported => "ATOM_MEDIAMETRICS_AUDIORECORD_REPORTED",
3951            AtomId::AtomMediametricsAudiothreadReported => "ATOM_MEDIAMETRICS_AUDIOTHREAD_REPORTED",
3952            AtomId::AtomMediametricsAudiotrackReported => "ATOM_MEDIAMETRICS_AUDIOTRACK_REPORTED",
3953            AtomId::AtomMediametricsCodecReported => "ATOM_MEDIAMETRICS_CODEC_REPORTED",
3954            AtomId::AtomMediametricsDrmWidevineReported => "ATOM_MEDIAMETRICS_DRM_WIDEVINE_REPORTED",
3955            AtomId::AtomMediametricsExtractorReported => "ATOM_MEDIAMETRICS_EXTRACTOR_REPORTED",
3956            AtomId::AtomMediametricsMediadrmReported => "ATOM_MEDIAMETRICS_MEDIADRM_REPORTED",
3957            AtomId::AtomMediametricsNuplayerReported => "ATOM_MEDIAMETRICS_NUPLAYER_REPORTED",
3958            AtomId::AtomMediametricsRecorderReported => "ATOM_MEDIAMETRICS_RECORDER_REPORTED",
3959            AtomId::AtomMediametricsDrmmanagerReported => "ATOM_MEDIAMETRICS_DRMMANAGER_REPORTED",
3960            AtomId::AtomCarPowerStateChanged => "ATOM_CAR_POWER_STATE_CHANGED",
3961            AtomId::AtomGarageModeInfo => "ATOM_GARAGE_MODE_INFO",
3962            AtomId::AtomTestAtomReported => "ATOM_TEST_ATOM_REPORTED",
3963            AtomId::AtomContentCaptureCallerMismatchReported => "ATOM_CONTENT_CAPTURE_CALLER_MISMATCH_REPORTED",
3964            AtomId::AtomContentCaptureServiceEvents => "ATOM_CONTENT_CAPTURE_SERVICE_EVENTS",
3965            AtomId::AtomContentCaptureSessionEvents => "ATOM_CONTENT_CAPTURE_SESSION_EVENTS",
3966            AtomId::AtomContentCaptureFlushed => "ATOM_CONTENT_CAPTURE_FLUSHED",
3967            AtomId::AtomLocationManagerApiUsageReported => "ATOM_LOCATION_MANAGER_API_USAGE_REPORTED",
3968            AtomId::AtomReviewPermissionsFragmentResultReported => "ATOM_REVIEW_PERMISSIONS_FRAGMENT_RESULT_REPORTED",
3969            AtomId::AtomRuntimePermissionsUpgradeResult => "ATOM_RUNTIME_PERMISSIONS_UPGRADE_RESULT",
3970            AtomId::AtomGrantPermissionsActivityButtonActions => "ATOM_GRANT_PERMISSIONS_ACTIVITY_BUTTON_ACTIONS",
3971            AtomId::AtomLocationAccessCheckNotificationAction => "ATOM_LOCATION_ACCESS_CHECK_NOTIFICATION_ACTION",
3972            AtomId::AtomAppPermissionFragmentActionReported => "ATOM_APP_PERMISSION_FRAGMENT_ACTION_REPORTED",
3973            AtomId::AtomAppPermissionFragmentViewed => "ATOM_APP_PERMISSION_FRAGMENT_VIEWED",
3974            AtomId::AtomAppPermissionsFragmentViewed => "ATOM_APP_PERMISSIONS_FRAGMENT_VIEWED",
3975            AtomId::AtomPermissionAppsFragmentViewed => "ATOM_PERMISSION_APPS_FRAGMENT_VIEWED",
3976            AtomId::AtomTextSelectionEvent => "ATOM_TEXT_SELECTION_EVENT",
3977            AtomId::AtomTextLinkifyEvent => "ATOM_TEXT_LINKIFY_EVENT",
3978            AtomId::AtomConversationActionsEvent => "ATOM_CONVERSATION_ACTIONS_EVENT",
3979            AtomId::AtomLanguageDetectionEvent => "ATOM_LANGUAGE_DETECTION_EVENT",
3980            AtomId::AtomExclusionRectStateChanged => "ATOM_EXCLUSION_RECT_STATE_CHANGED",
3981            AtomId::AtomBackGestureReportedReported => "ATOM_BACK_GESTURE_REPORTED_REPORTED",
3982            AtomId::AtomUpdateEngineUpdateAttemptReported => "ATOM_UPDATE_ENGINE_UPDATE_ATTEMPT_REPORTED",
3983            AtomId::AtomUpdateEngineSuccessfulUpdateReported => "ATOM_UPDATE_ENGINE_SUCCESSFUL_UPDATE_REPORTED",
3984            AtomId::AtomCameraActionEvent => "ATOM_CAMERA_ACTION_EVENT",
3985            AtomId::AtomAppCompatibilityChangeReported => "ATOM_APP_COMPATIBILITY_CHANGE_REPORTED",
3986            AtomId::AtomPerfettoUploaded => "ATOM_PERFETTO_UPLOADED",
3987            AtomId::AtomVmsClientConnectionStateChanged => "ATOM_VMS_CLIENT_CONNECTION_STATE_CHANGED",
3988            AtomId::AtomMediaProviderScanOccurred => "ATOM_MEDIA_PROVIDER_SCAN_OCCURRED",
3989            AtomId::AtomMediaContentDeleted => "ATOM_MEDIA_CONTENT_DELETED",
3990            AtomId::AtomMediaProviderPermissionRequested => "ATOM_MEDIA_PROVIDER_PERMISSION_REQUESTED",
3991            AtomId::AtomMediaProviderSchemaChanged => "ATOM_MEDIA_PROVIDER_SCHEMA_CHANGED",
3992            AtomId::AtomMediaProviderIdleMaintenanceFinished => "ATOM_MEDIA_PROVIDER_IDLE_MAINTENANCE_FINISHED",
3993            AtomId::AtomRebootEscrowRecoveryReported => "ATOM_REBOOT_ESCROW_RECOVERY_REPORTED",
3994            AtomId::AtomBootTimeEventDurationReported => "ATOM_BOOT_TIME_EVENT_DURATION_REPORTED",
3995            AtomId::AtomBootTimeEventElapsedTimeReported => "ATOM_BOOT_TIME_EVENT_ELAPSED_TIME_REPORTED",
3996            AtomId::AtomBootTimeEventUtcTimeReported => "ATOM_BOOT_TIME_EVENT_UTC_TIME_REPORTED",
3997            AtomId::AtomBootTimeEventErrorCodeReported => "ATOM_BOOT_TIME_EVENT_ERROR_CODE_REPORTED",
3998            AtomId::AtomUserspaceRebootReported => "ATOM_USERSPACE_REBOOT_REPORTED",
3999            AtomId::AtomNotificationReported => "ATOM_NOTIFICATION_REPORTED",
4000            AtomId::AtomNotificationPanelReported => "ATOM_NOTIFICATION_PANEL_REPORTED",
4001            AtomId::AtomNotificationChannelModified => "ATOM_NOTIFICATION_CHANNEL_MODIFIED",
4002            AtomId::AtomIntegrityCheckResultReported => "ATOM_INTEGRITY_CHECK_RESULT_REPORTED",
4003            AtomId::AtomIntegrityRulesPushed => "ATOM_INTEGRITY_RULES_PUSHED",
4004            AtomId::AtomCbMessageReported => "ATOM_CB_MESSAGE_REPORTED",
4005            AtomId::AtomCbMessageError => "ATOM_CB_MESSAGE_ERROR",
4006            AtomId::AtomWifiHealthStatReported => "ATOM_WIFI_HEALTH_STAT_REPORTED",
4007            AtomId::AtomWifiFailureStatReported => "ATOM_WIFI_FAILURE_STAT_REPORTED",
4008            AtomId::AtomWifiConnectionResultReported => "ATOM_WIFI_CONNECTION_RESULT_REPORTED",
4009            AtomId::AtomAppFreezeChanged => "ATOM_APP_FREEZE_CHANGED",
4010            AtomId::AtomSnapshotMergeReported => "ATOM_SNAPSHOT_MERGE_REPORTED",
4011            AtomId::AtomForegroundServiceAppOpSessionEnded => "ATOM_FOREGROUND_SERVICE_APP_OP_SESSION_ENDED",
4012            AtomId::AtomDisplayJankReported => "ATOM_DISPLAY_JANK_REPORTED",
4013            AtomId::AtomAppStandbyBucketChanged => "ATOM_APP_STANDBY_BUCKET_CHANGED",
4014            AtomId::AtomSharesheetStarted => "ATOM_SHARESHEET_STARTED",
4015            AtomId::AtomRankingSelected => "ATOM_RANKING_SELECTED",
4016            AtomId::AtomTvsettingsUiInteracted => "ATOM_TVSETTINGS_UI_INTERACTED",
4017            AtomId::AtomLauncherSnapshot => "ATOM_LAUNCHER_SNAPSHOT",
4018            AtomId::AtomPackageInstallerV2Reported => "ATOM_PACKAGE_INSTALLER_V2_REPORTED",
4019            AtomId::AtomUserLifecycleJourneyReported => "ATOM_USER_LIFECYCLE_JOURNEY_REPORTED",
4020            AtomId::AtomUserLifecycleEventOccurred => "ATOM_USER_LIFECYCLE_EVENT_OCCURRED",
4021            AtomId::AtomAccessibilityShortcutReported => "ATOM_ACCESSIBILITY_SHORTCUT_REPORTED",
4022            AtomId::AtomAccessibilityServiceReported => "ATOM_ACCESSIBILITY_SERVICE_REPORTED",
4023            AtomId::AtomDocsUiDragAndDropReported => "ATOM_DOCS_UI_DRAG_AND_DROP_REPORTED",
4024            AtomId::AtomAppUsageEventOccurred => "ATOM_APP_USAGE_EVENT_OCCURRED",
4025            AtomId::AtomAutoRevokeNotificationClicked => "ATOM_AUTO_REVOKE_NOTIFICATION_CLICKED",
4026            AtomId::AtomAutoRevokeFragmentAppViewed => "ATOM_AUTO_REVOKE_FRAGMENT_APP_VIEWED",
4027            AtomId::AtomAutoRevokedAppInteraction => "ATOM_AUTO_REVOKED_APP_INTERACTION",
4028            AtomId::AtomAppPermissionGroupsFragmentAutoRevokeAction => "ATOM_APP_PERMISSION_GROUPS_FRAGMENT_AUTO_REVOKE_ACTION",
4029            AtomId::AtomEvsUsageStatsReported => "ATOM_EVS_USAGE_STATS_REPORTED",
4030            AtomId::AtomAudioPowerUsageDataReported => "ATOM_AUDIO_POWER_USAGE_DATA_REPORTED",
4031            AtomId::AtomTvTunerStateChanged => "ATOM_TV_TUNER_STATE_CHANGED",
4032            AtomId::AtomMediaoutputOpSwitchReported => "ATOM_MEDIAOUTPUT_OP_SWITCH_REPORTED",
4033            AtomId::AtomCbMessageFiltered => "ATOM_CB_MESSAGE_FILTERED",
4034            AtomId::AtomTvTunerDvrStatus => "ATOM_TV_TUNER_DVR_STATUS",
4035            AtomId::AtomTvCasSessionOpenStatus => "ATOM_TV_CAS_SESSION_OPEN_STATUS",
4036            AtomId::AtomAssistantInvocationReported => "ATOM_ASSISTANT_INVOCATION_REPORTED",
4037            AtomId::AtomDisplayWakeReported => "ATOM_DISPLAY_WAKE_REPORTED",
4038            AtomId::AtomCarUserHalModifyUserRequestReported => "ATOM_CAR_USER_HAL_MODIFY_USER_REQUEST_REPORTED",
4039            AtomId::AtomCarUserHalModifyUserResponseReported => "ATOM_CAR_USER_HAL_MODIFY_USER_RESPONSE_REPORTED",
4040            AtomId::AtomCarUserHalPostSwitchResponseReported => "ATOM_CAR_USER_HAL_POST_SWITCH_RESPONSE_REPORTED",
4041            AtomId::AtomCarUserHalInitialUserInfoRequestReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_REQUEST_REPORTED",
4042            AtomId::AtomCarUserHalInitialUserInfoResponseReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_RESPONSE_REPORTED",
4043            AtomId::AtomCarUserHalUserAssociationRequestReported => "ATOM_CAR_USER_HAL_USER_ASSOCIATION_REQUEST_REPORTED",
4044            AtomId::AtomCarUserHalSetUserAssociationResponseReported => "ATOM_CAR_USER_HAL_SET_USER_ASSOCIATION_RESPONSE_REPORTED",
4045            AtomId::AtomNetworkIpProvisioningReported => "ATOM_NETWORK_IP_PROVISIONING_REPORTED",
4046            AtomId::AtomNetworkDhcpRenewReported => "ATOM_NETWORK_DHCP_RENEW_REPORTED",
4047            AtomId::AtomNetworkValidationReported => "ATOM_NETWORK_VALIDATION_REPORTED",
4048            AtomId::AtomNetworkStackQuirkReported => "ATOM_NETWORK_STACK_QUIRK_REPORTED",
4049            AtomId::AtomMediametricsAudiorecorddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIORECORDDEVICEUSAGE_REPORTED",
4050            AtomId::AtomMediametricsAudiothreaddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTHREADDEVICEUSAGE_REPORTED",
4051            AtomId::AtomMediametricsAudiotrackdeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTRACKDEVICEUSAGE_REPORTED",
4052            AtomId::AtomMediametricsAudiodeviceconnectionReported => "ATOM_MEDIAMETRICS_AUDIODEVICECONNECTION_REPORTED",
4053            AtomId::AtomBlobCommitted => "ATOM_BLOB_COMMITTED",
4054            AtomId::AtomBlobLeased => "ATOM_BLOB_LEASED",
4055            AtomId::AtomBlobOpened => "ATOM_BLOB_OPENED",
4056            AtomId::AtomContactsProviderStatusReported => "ATOM_CONTACTS_PROVIDER_STATUS_REPORTED",
4057            AtomId::AtomKeystoreKeyEventReported => "ATOM_KEYSTORE_KEY_EVENT_REPORTED",
4058            AtomId::AtomNetworkTetheringReported => "ATOM_NETWORK_TETHERING_REPORTED",
4059            AtomId::AtomImeTouchReported => "ATOM_IME_TOUCH_REPORTED",
4060            AtomId::AtomUiInteractionFrameInfoReported => "ATOM_UI_INTERACTION_FRAME_INFO_REPORTED",
4061            AtomId::AtomUiActionLatencyReported => "ATOM_UI_ACTION_LATENCY_REPORTED",
4062            AtomId::AtomWifiDisconnectReported => "ATOM_WIFI_DISCONNECT_REPORTED",
4063            AtomId::AtomWifiConnectionStateChanged => "ATOM_WIFI_CONNECTION_STATE_CHANGED",
4064            AtomId::AtomHdmiCecActiveSourceChanged => "ATOM_HDMI_CEC_ACTIVE_SOURCE_CHANGED",
4065            AtomId::AtomHdmiCecMessageReported => "ATOM_HDMI_CEC_MESSAGE_REPORTED",
4066            AtomId::AtomAirplaneMode => "ATOM_AIRPLANE_MODE",
4067            AtomId::AtomModemRestart => "ATOM_MODEM_RESTART",
4068            AtomId::AtomCarrierIdMismatchReported => "ATOM_CARRIER_ID_MISMATCH_REPORTED",
4069            AtomId::AtomCarrierIdTableUpdated => "ATOM_CARRIER_ID_TABLE_UPDATED",
4070            AtomId::AtomDataStallRecoveryReported => "ATOM_DATA_STALL_RECOVERY_REPORTED",
4071            AtomId::AtomMediametricsMediaparserReported => "ATOM_MEDIAMETRICS_MEDIAPARSER_REPORTED",
4072            AtomId::AtomTlsHandshakeReported => "ATOM_TLS_HANDSHAKE_REPORTED",
4073            AtomId::AtomTextClassifierApiUsageReported => "ATOM_TEXT_CLASSIFIER_API_USAGE_REPORTED",
4074            AtomId::AtomCarWatchdogKillStatsReported => "ATOM_CAR_WATCHDOG_KILL_STATS_REPORTED",
4075            AtomId::AtomMediametricsPlaybackReported => "ATOM_MEDIAMETRICS_PLAYBACK_REPORTED",
4076            AtomId::AtomMediaNetworkInfoChanged => "ATOM_MEDIA_NETWORK_INFO_CHANGED",
4077            AtomId::AtomMediaPlaybackStateChanged => "ATOM_MEDIA_PLAYBACK_STATE_CHANGED",
4078            AtomId::AtomMediaPlaybackErrorReported => "ATOM_MEDIA_PLAYBACK_ERROR_REPORTED",
4079            AtomId::AtomMediaPlaybackTrackChanged => "ATOM_MEDIA_PLAYBACK_TRACK_CHANGED",
4080            AtomId::AtomWifiScanReported => "ATOM_WIFI_SCAN_REPORTED",
4081            AtomId::AtomWifiPnoScanReported => "ATOM_WIFI_PNO_SCAN_REPORTED",
4082            AtomId::AtomTifTuneChanged => "ATOM_TIF_TUNE_CHANGED",
4083            AtomId::AtomAutoRotateReported => "ATOM_AUTO_ROTATE_REPORTED",
4084            AtomId::AtomPerfettoTrigger => "ATOM_PERFETTO_TRIGGER",
4085            AtomId::AtomTranscodingData => "ATOM_TRANSCODING_DATA",
4086            AtomId::AtomImsServiceEntitlementUpdated => "ATOM_IMS_SERVICE_ENTITLEMENT_UPDATED",
4087            AtomId::AtomDeviceRotated => "ATOM_DEVICE_ROTATED",
4088            AtomId::AtomSimSpecificSettingsRestored => "ATOM_SIM_SPECIFIC_SETTINGS_RESTORED",
4089            AtomId::AtomTextClassifierDownloadReported => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_REPORTED",
4090            AtomId::AtomPinStorageEvent => "ATOM_PIN_STORAGE_EVENT",
4091            AtomId::AtomFaceDownReported => "ATOM_FACE_DOWN_REPORTED",
4092            AtomId::AtomBluetoothHalCrashReasonReported => "ATOM_BLUETOOTH_HAL_CRASH_REASON_REPORTED",
4093            AtomId::AtomRebootEscrowPreparationReported => "ATOM_REBOOT_ESCROW_PREPARATION_REPORTED",
4094            AtomId::AtomRebootEscrowLskfCaptureReported => "ATOM_REBOOT_ESCROW_LSKF_CAPTURE_REPORTED",
4095            AtomId::AtomRebootEscrowRebootReported => "ATOM_REBOOT_ESCROW_REBOOT_REPORTED",
4096            AtomId::AtomBinderLatencyReported => "ATOM_BINDER_LATENCY_REPORTED",
4097            AtomId::AtomMediametricsAaudiostreamReported => "ATOM_MEDIAMETRICS_AAUDIOSTREAM_REPORTED",
4098            AtomId::AtomMediaTranscodingSessionEnded => "ATOM_MEDIA_TRANSCODING_SESSION_ENDED",
4099            AtomId::AtomMagnificationUsageReported => "ATOM_MAGNIFICATION_USAGE_REPORTED",
4100            AtomId::AtomMagnificationModeWithImeOnReported => "ATOM_MAGNIFICATION_MODE_WITH_IME_ON_REPORTED",
4101            AtomId::AtomAppSearchCallStatsReported => "ATOM_APP_SEARCH_CALL_STATS_REPORTED",
4102            AtomId::AtomAppSearchPutDocumentStatsReported => "ATOM_APP_SEARCH_PUT_DOCUMENT_STATS_REPORTED",
4103            AtomId::AtomDeviceControlChanged => "ATOM_DEVICE_CONTROL_CHANGED",
4104            AtomId::AtomDeviceStateChanged => "ATOM_DEVICE_STATE_CHANGED",
4105            AtomId::AtomInputdeviceRegistered => "ATOM_INPUTDEVICE_REGISTERED",
4106            AtomId::AtomSmartspaceCardReported => "ATOM_SMARTSPACE_CARD_REPORTED",
4107            AtomId::AtomAuthPromptAuthenticateInvoked => "ATOM_AUTH_PROMPT_AUTHENTICATE_INVOKED",
4108            AtomId::AtomAuthManagerCanAuthenticateInvoked => "ATOM_AUTH_MANAGER_CAN_AUTHENTICATE_INVOKED",
4109            AtomId::AtomAuthEnrollActionInvoked => "ATOM_AUTH_ENROLL_ACTION_INVOKED",
4110            AtomId::AtomAuthDeprecatedApiUsed => "ATOM_AUTH_DEPRECATED_API_USED",
4111            AtomId::AtomUnattendedRebootOccurred => "ATOM_UNATTENDED_REBOOT_OCCURRED",
4112            AtomId::AtomLongRebootBlockingReported => "ATOM_LONG_REBOOT_BLOCKING_REPORTED",
4113            AtomId::AtomLocationTimeZoneProviderStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_STATE_CHANGED",
4114            AtomId::AtomFdtrackEventOccurred => "ATOM_FDTRACK_EVENT_OCCURRED",
4115            AtomId::AtomTimeoutAutoExtendedReported => "ATOM_TIMEOUT_AUTO_EXTENDED_REPORTED",
4116            AtomId::AtomAlarmBatchDelivered => "ATOM_ALARM_BATCH_DELIVERED",
4117            AtomId::AtomAlarmScheduled => "ATOM_ALARM_SCHEDULED",
4118            AtomId::AtomCarWatchdogIoOveruseStatsReported => "ATOM_CAR_WATCHDOG_IO_OVERUSE_STATS_REPORTED",
4119            AtomId::AtomUserLevelHibernationStateChanged => "ATOM_USER_LEVEL_HIBERNATION_STATE_CHANGED",
4120            AtomId::AtomAppSearchInitializeStatsReported => "ATOM_APP_SEARCH_INITIALIZE_STATS_REPORTED",
4121            AtomId::AtomAppSearchQueryStatsReported => "ATOM_APP_SEARCH_QUERY_STATS_REPORTED",
4122            AtomId::AtomAppProcessDied => "ATOM_APP_PROCESS_DIED",
4123            AtomId::AtomNetworkIpReachabilityMonitorReported => "ATOM_NETWORK_IP_REACHABILITY_MONITOR_REPORTED",
4124            AtomId::AtomSlowInputEventReported => "ATOM_SLOW_INPUT_EVENT_REPORTED",
4125            AtomId::AtomAnrOccurredProcessingStarted => "ATOM_ANR_OCCURRED_PROCESSING_STARTED",
4126            AtomId::AtomAppSearchRemoveStatsReported => "ATOM_APP_SEARCH_REMOVE_STATS_REPORTED",
4127            AtomId::AtomMediaCodecReported => "ATOM_MEDIA_CODEC_REPORTED",
4128            AtomId::AtomPermissionUsageFragmentInteraction => "ATOM_PERMISSION_USAGE_FRAGMENT_INTERACTION",
4129            AtomId::AtomPermissionDetailsInteraction => "ATOM_PERMISSION_DETAILS_INTERACTION",
4130            AtomId::AtomPrivacySensorToggleInteraction => "ATOM_PRIVACY_SENSOR_TOGGLE_INTERACTION",
4131            AtomId::AtomPrivacyToggleDialogInteraction => "ATOM_PRIVACY_TOGGLE_DIALOG_INTERACTION",
4132            AtomId::AtomAppSearchOptimizeStatsReported => "ATOM_APP_SEARCH_OPTIMIZE_STATS_REPORTED",
4133            AtomId::AtomNonA11yToolServiceWarningReport => "ATOM_NON_A11Y_TOOL_SERVICE_WARNING_REPORT",
4134            AtomId::AtomAppCompatStateChanged => "ATOM_APP_COMPAT_STATE_CHANGED",
4135            AtomId::AtomSizeCompatRestartButtonEventReported => "ATOM_SIZE_COMPAT_RESTART_BUTTON_EVENT_REPORTED",
4136            AtomId::AtomSplitscreenUiChanged => "ATOM_SPLITSCREEN_UI_CHANGED",
4137            AtomId::AtomNetworkDnsHandshakeReported => "ATOM_NETWORK_DNS_HANDSHAKE_REPORTED",
4138            AtomId::AtomBluetoothCodePathCounter => "ATOM_BLUETOOTH_CODE_PATH_COUNTER",
4139            AtomId::AtomBluetoothLeBatchScanReportDelay => "ATOM_BLUETOOTH_LE_BATCH_SCAN_REPORT_DELAY",
4140            AtomId::AtomAccessibilityFloatingMenuUiChanged => "ATOM_ACCESSIBILITY_FLOATING_MENU_UI_CHANGED",
4141            AtomId::AtomNeuralnetworksCompilationCompleted => "ATOM_NEURALNETWORKS_COMPILATION_COMPLETED",
4142            AtomId::AtomNeuralnetworksExecutionCompleted => "ATOM_NEURALNETWORKS_EXECUTION_COMPLETED",
4143            AtomId::AtomNeuralnetworksCompilationFailed => "ATOM_NEURALNETWORKS_COMPILATION_FAILED",
4144            AtomId::AtomNeuralnetworksExecutionFailed => "ATOM_NEURALNETWORKS_EXECUTION_FAILED",
4145            AtomId::AtomContextHubBooted => "ATOM_CONTEXT_HUB_BOOTED",
4146            AtomId::AtomContextHubRestarted => "ATOM_CONTEXT_HUB_RESTARTED",
4147            AtomId::AtomContextHubLoadedNanoappSnapshotReported => "ATOM_CONTEXT_HUB_LOADED_NANOAPP_SNAPSHOT_REPORTED",
4148            AtomId::AtomChreCodeDownloadTransacted => "ATOM_CHRE_CODE_DOWNLOAD_TRANSACTED",
4149            AtomId::AtomUwbSessionInited => "ATOM_UWB_SESSION_INITED",
4150            AtomId::AtomUwbSessionClosed => "ATOM_UWB_SESSION_CLOSED",
4151            AtomId::AtomUwbFirstRangingReceived => "ATOM_UWB_FIRST_RANGING_RECEIVED",
4152            AtomId::AtomUwbRangingMeasurementReceived => "ATOM_UWB_RANGING_MEASUREMENT_RECEIVED",
4153            AtomId::AtomTextClassifierDownloadWorkScheduled => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_SCHEDULED",
4154            AtomId::AtomTextClassifierDownloadWorkCompleted => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_COMPLETED",
4155            AtomId::AtomClipboardCleared => "ATOM_CLIPBOARD_CLEARED",
4156            AtomId::AtomVmCreationRequested => "ATOM_VM_CREATION_REQUESTED",
4157            AtomId::AtomNearbyDeviceScanStateChanged => "ATOM_NEARBY_DEVICE_SCAN_STATE_CHANGED",
4158            AtomId::AtomApplicationLocalesChanged => "ATOM_APPLICATION_LOCALES_CHANGED",
4159            AtomId::AtomMediametricsAudiotrackstatusReported => "ATOM_MEDIAMETRICS_AUDIOTRACKSTATUS_REPORTED",
4160            AtomId::AtomFoldStateDurationReported => "ATOM_FOLD_STATE_DURATION_REPORTED",
4161            AtomId::AtomLocationTimeZoneProviderControllerStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_CONTROLLER_STATE_CHANGED",
4162            AtomId::AtomDisplayHbmStateChanged => "ATOM_DISPLAY_HBM_STATE_CHANGED",
4163            AtomId::AtomDisplayHbmBrightnessChanged => "ATOM_DISPLAY_HBM_BRIGHTNESS_CHANGED",
4164            AtomId::AtomPersistentUriPermissionsFlushed => "ATOM_PERSISTENT_URI_PERMISSIONS_FLUSHED",
4165            AtomId::AtomEarlyBootCompOsArtifactsCheckReported => "ATOM_EARLY_BOOT_COMP_OS_ARTIFACTS_CHECK_REPORTED",
4166            AtomId::AtomVbmetaDigestReported => "ATOM_VBMETA_DIGEST_REPORTED",
4167            AtomId::AtomApexInfoGathered => "ATOM_APEX_INFO_GATHERED",
4168            AtomId::AtomPvmInfoGathered => "ATOM_PVM_INFO_GATHERED",
4169            AtomId::AtomWearSettingsUiInteracted => "ATOM_WEAR_SETTINGS_UI_INTERACTED",
4170            AtomId::AtomTracingServiceReportEvent => "ATOM_TRACING_SERVICE_REPORT_EVENT",
4171            AtomId::AtomMediametricsAudiorecordstatusReported => "ATOM_MEDIAMETRICS_AUDIORECORDSTATUS_REPORTED",
4172            AtomId::AtomLauncherLatency => "ATOM_LAUNCHER_LATENCY",
4173            AtomId::AtomDropboxEntryDropped => "ATOM_DROPBOX_ENTRY_DROPPED",
4174            AtomId::AtomWifiP2pConnectionReported => "ATOM_WIFI_P2P_CONNECTION_REPORTED",
4175            AtomId::AtomGameStateChanged => "ATOM_GAME_STATE_CHANGED",
4176            AtomId::AtomHotwordDetectorCreateRequested => "ATOM_HOTWORD_DETECTOR_CREATE_REQUESTED",
4177            AtomId::AtomHotwordDetectionServiceInitResultReported => "ATOM_HOTWORD_DETECTION_SERVICE_INIT_RESULT_REPORTED",
4178            AtomId::AtomHotwordDetectionServiceRestarted => "ATOM_HOTWORD_DETECTION_SERVICE_RESTARTED",
4179            AtomId::AtomHotwordDetectorKeyphraseTriggered => "ATOM_HOTWORD_DETECTOR_KEYPHRASE_TRIGGERED",
4180            AtomId::AtomHotwordDetectorEvents => "ATOM_HOTWORD_DETECTOR_EVENTS",
4181            AtomId::AtomBootCompletedBroadcastCompletionLatencyReported => "ATOM_BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED",
4182            AtomId::AtomContactsIndexerUpdateStatsReported => "ATOM_CONTACTS_INDEXER_UPDATE_STATS_REPORTED",
4183            AtomId::AtomAppBackgroundRestrictionsInfo => "ATOM_APP_BACKGROUND_RESTRICTIONS_INFO",
4184            AtomId::AtomMmsSmsProviderGetThreadIdFailed => "ATOM_MMS_SMS_PROVIDER_GET_THREAD_ID_FAILED",
4185            AtomId::AtomMmsSmsDatabaseHelperOnUpgradeFailed => "ATOM_MMS_SMS_DATABASE_HELPER_ON_UPGRADE_FAILED",
4186            AtomId::AtomPermissionReminderNotificationInteracted => "ATOM_PERMISSION_REMINDER_NOTIFICATION_INTERACTED",
4187            AtomId::AtomRecentPermissionDecisionsInteracted => "ATOM_RECENT_PERMISSION_DECISIONS_INTERACTED",
4188            AtomId::AtomGnssPsdsDownloadReported => "ATOM_GNSS_PSDS_DOWNLOAD_REPORTED",
4189            AtomId::AtomLeAudioConnectionSessionReported => "ATOM_LE_AUDIO_CONNECTION_SESSION_REPORTED",
4190            AtomId::AtomLeAudioBroadcastSessionReported => "ATOM_LE_AUDIO_BROADCAST_SESSION_REPORTED",
4191            AtomId::AtomDreamUiEventReported => "ATOM_DREAM_UI_EVENT_REPORTED",
4192            AtomId::AtomTaskManagerEventReported => "ATOM_TASK_MANAGER_EVENT_REPORTED",
4193            AtomId::AtomCdmAssociationAction => "ATOM_CDM_ASSOCIATION_ACTION",
4194            AtomId::AtomMagnificationTripleTapAndHoldActivatedSessionReported => "ATOM_MAGNIFICATION_TRIPLE_TAP_AND_HOLD_ACTIVATED_SESSION_REPORTED",
4195            AtomId::AtomMagnificationFollowTypingFocusActivatedSessionReported => "ATOM_MAGNIFICATION_FOLLOW_TYPING_FOCUS_ACTIVATED_SESSION_REPORTED",
4196            AtomId::AtomAccessibilityTextReadingOptionsChanged => "ATOM_ACCESSIBILITY_TEXT_READING_OPTIONS_CHANGED",
4197            AtomId::AtomWifiSetupFailureCrashReported => "ATOM_WIFI_SETUP_FAILURE_CRASH_REPORTED",
4198            AtomId::AtomUwbDeviceErrorReported => "ATOM_UWB_DEVICE_ERROR_REPORTED",
4199            AtomId::AtomIsolatedCompilationScheduled => "ATOM_ISOLATED_COMPILATION_SCHEDULED",
4200            AtomId::AtomIsolatedCompilationEnded => "ATOM_ISOLATED_COMPILATION_ENDED",
4201            AtomId::AtomOnsOpportunisticEsimProvisioningComplete => "ATOM_ONS_OPPORTUNISTIC_ESIM_PROVISIONING_COMPLETE",
4202            AtomId::AtomSystemServerPreWatchdogOccurred => "ATOM_SYSTEM_SERVER_PRE_WATCHDOG_OCCURRED",
4203            AtomId::AtomTelephonyAnomalyDetected => "ATOM_TELEPHONY_ANOMALY_DETECTED",
4204            AtomId::AtomLetterboxPositionChanged => "ATOM_LETTERBOX_POSITION_CHANGED",
4205            AtomId::AtomRemoteKeyProvisioningAttempt => "ATOM_REMOTE_KEY_PROVISIONING_ATTEMPT",
4206            AtomId::AtomRemoteKeyProvisioningNetworkInfo => "ATOM_REMOTE_KEY_PROVISIONING_NETWORK_INFO",
4207            AtomId::AtomRemoteKeyProvisioningTiming => "ATOM_REMOTE_KEY_PROVISIONING_TIMING",
4208            AtomId::AtomMediaoutputOpInteractionReport => "ATOM_MEDIAOUTPUT_OP_INTERACTION_REPORT",
4209            AtomId::AtomSyncExemptionOccurred => "ATOM_SYNC_EXEMPTION_OCCURRED",
4210            AtomId::AtomAutofillPresentationEventReported => "ATOM_AUTOFILL_PRESENTATION_EVENT_REPORTED",
4211            AtomId::AtomDockStateChanged => "ATOM_DOCK_STATE_CHANGED",
4212            AtomId::AtomSafetySourceStateCollected => "ATOM_SAFETY_SOURCE_STATE_COLLECTED",
4213            AtomId::AtomSafetyCenterSystemEventReported => "ATOM_SAFETY_CENTER_SYSTEM_EVENT_REPORTED",
4214            AtomId::AtomSafetyCenterInteractionReported => "ATOM_SAFETY_CENTER_INTERACTION_REPORTED",
4215            AtomId::AtomSettingsProviderSettingChanged => "ATOM_SETTINGS_PROVIDER_SETTING_CHANGED",
4216            AtomId::AtomBroadcastDeliveryEventReported => "ATOM_BROADCAST_DELIVERY_EVENT_REPORTED",
4217            AtomId::AtomServiceRequestEventReported => "ATOM_SERVICE_REQUEST_EVENT_REPORTED",
4218            AtomId::AtomProviderAcquisitionEventReported => "ATOM_PROVIDER_ACQUISITION_EVENT_REPORTED",
4219            AtomId::AtomBluetoothDeviceNameReported => "ATOM_BLUETOOTH_DEVICE_NAME_REPORTED",
4220            AtomId::AtomCbConfigUpdated => "ATOM_CB_CONFIG_UPDATED",
4221            AtomId::AtomCbModuleErrorReported => "ATOM_CB_MODULE_ERROR_REPORTED",
4222            AtomId::AtomCbServiceFeatureChanged => "ATOM_CB_SERVICE_FEATURE_CHANGED",
4223            AtomId::AtomCbReceiverFeatureChanged => "ATOM_CB_RECEIVER_FEATURE_CHANGED",
4224            AtomId::AtomPrivacySignalNotificationInteraction => "ATOM_PRIVACY_SIGNAL_NOTIFICATION_INTERACTION",
4225            AtomId::AtomPrivacySignalIssueCardInteraction => "ATOM_PRIVACY_SIGNAL_ISSUE_CARD_INTERACTION",
4226            AtomId::AtomPrivacySignalsJobFailure => "ATOM_PRIVACY_SIGNALS_JOB_FAILURE",
4227            AtomId::AtomVibrationReported => "ATOM_VIBRATION_REPORTED",
4228            AtomId::AtomUwbRangingStart => "ATOM_UWB_RANGING_START",
4229            AtomId::AtomAppCompactedV2 => "ATOM_APP_COMPACTED_V2",
4230            AtomId::AtomDisplayBrightnessChanged => "ATOM_DISPLAY_BRIGHTNESS_CHANGED",
4231            AtomId::AtomActivityActionBlocked => "ATOM_ACTIVITY_ACTION_BLOCKED",
4232            AtomId::AtomNetworkDnsServerSupportReported => "ATOM_NETWORK_DNS_SERVER_SUPPORT_REPORTED",
4233            AtomId::AtomVmBooted => "ATOM_VM_BOOTED",
4234            AtomId::AtomVmExited => "ATOM_VM_EXITED",
4235            AtomId::AtomAmbientBrightnessStatsReported => "ATOM_AMBIENT_BRIGHTNESS_STATS_REPORTED",
4236            AtomId::AtomMediametricsSpatializercapabilitiesReported => "ATOM_MEDIAMETRICS_SPATIALIZERCAPABILITIES_REPORTED",
4237            AtomId::AtomMediametricsSpatializerdeviceenabledReported => "ATOM_MEDIAMETRICS_SPATIALIZERDEVICEENABLED_REPORTED",
4238            AtomId::AtomMediametricsHeadtrackerdeviceenabledReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICEENABLED_REPORTED",
4239            AtomId::AtomMediametricsHeadtrackerdevicesupportedReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICESUPPORTED_REPORTED",
4240            AtomId::AtomHearingAidInfoReported => "ATOM_HEARING_AID_INFO_REPORTED",
4241            AtomId::AtomDeviceWideJobConstraintChanged => "ATOM_DEVICE_WIDE_JOB_CONSTRAINT_CHANGED",
4242            AtomId::AtomAmbientModeChanged => "ATOM_AMBIENT_MODE_CHANGED",
4243            AtomId::AtomAnrLatencyReported => "ATOM_ANR_LATENCY_REPORTED",
4244            AtomId::AtomResourceApiInfo => "ATOM_RESOURCE_API_INFO",
4245            AtomId::AtomSystemDefaultNetworkChanged => "ATOM_SYSTEM_DEFAULT_NETWORK_CHANGED",
4246            AtomId::AtomIwlanSetupDataCallResultReported => "ATOM_IWLAN_SETUP_DATA_CALL_RESULT_REPORTED",
4247            AtomId::AtomIwlanPdnDisconnectedReasonReported => "ATOM_IWLAN_PDN_DISCONNECTED_REASON_REPORTED",
4248            AtomId::AtomAirplaneModeSessionReported => "ATOM_AIRPLANE_MODE_SESSION_REPORTED",
4249            AtomId::AtomVmCpuStatusReported => "ATOM_VM_CPU_STATUS_REPORTED",
4250            AtomId::AtomVmMemStatusReported => "ATOM_VM_MEM_STATUS_REPORTED",
4251            AtomId::AtomPackageInstallationSessionReported => "ATOM_PACKAGE_INSTALLATION_SESSION_REPORTED",
4252            AtomId::AtomDefaultNetworkRematchInfo => "ATOM_DEFAULT_NETWORK_REMATCH_INFO",
4253            AtomId::AtomNetworkSelectionPerformance => "ATOM_NETWORK_SELECTION_PERFORMANCE",
4254            AtomId::AtomNetworkNsdReported => "ATOM_NETWORK_NSD_REPORTED",
4255            AtomId::AtomBluetoothDisconnectionReasonReported => "ATOM_BLUETOOTH_DISCONNECTION_REASON_REPORTED",
4256            AtomId::AtomBluetoothLocalVersionsReported => "ATOM_BLUETOOTH_LOCAL_VERSIONS_REPORTED",
4257            AtomId::AtomBluetoothRemoteSupportedFeaturesReported => "ATOM_BLUETOOTH_REMOTE_SUPPORTED_FEATURES_REPORTED",
4258            AtomId::AtomBluetoothLocalSupportedFeaturesReported => "ATOM_BLUETOOTH_LOCAL_SUPPORTED_FEATURES_REPORTED",
4259            AtomId::AtomBluetoothGattAppInfo => "ATOM_BLUETOOTH_GATT_APP_INFO",
4260            AtomId::AtomBrightnessConfigurationUpdated => "ATOM_BRIGHTNESS_CONFIGURATION_UPDATED",
4261            AtomId::AtomWearMediaOutputSwitcherLaunched => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_LAUNCHED",
4262            AtomId::AtomWearMediaOutputSwitcherFinished => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FINISHED",
4263            AtomId::AtomWearMediaOutputSwitcherConnectionReported => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECTION_REPORTED",
4264            AtomId::AtomWearMediaOutputSwitcherDeviceScanTriggered => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_TRIGGERED",
4265            AtomId::AtomWearMediaOutputSwitcherFirstDeviceScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FIRST_DEVICE_SCAN_LATENCY",
4266            AtomId::AtomWearMediaOutputSwitcherConnectDeviceLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECT_DEVICE_LATENCY",
4267            AtomId::AtomPackageManagerSnapshotReported => "ATOM_PACKAGE_MANAGER_SNAPSHOT_REPORTED",
4268            AtomId::AtomPackageManagerAppsFilterCacheBuildReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_BUILD_REPORTED",
4269            AtomId::AtomPackageManagerAppsFilterCacheUpdateReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_UPDATE_REPORTED",
4270            AtomId::AtomLauncherImpressionEvent => "ATOM_LAUNCHER_IMPRESSION_EVENT",
4271            AtomId::AtomWearMediaOutputSwitcherAllDevicesScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_ALL_DEVICES_SCAN_LATENCY",
4272            AtomId::AtomWsWatchFaceEdited => "ATOM_WS_WATCH_FACE_EDITED",
4273            AtomId::AtomWsWatchFaceFavoriteActionReported => "ATOM_WS_WATCH_FACE_FAVORITE_ACTION_REPORTED",
4274            AtomId::AtomWsWatchFaceSetActionReported => "ATOM_WS_WATCH_FACE_SET_ACTION_REPORTED",
4275            AtomId::AtomPackageUninstallationReported => "ATOM_PACKAGE_UNINSTALLATION_REPORTED",
4276            AtomId::AtomGameModeChanged => "ATOM_GAME_MODE_CHANGED",
4277            AtomId::AtomGameModeConfigurationChanged => "ATOM_GAME_MODE_CONFIGURATION_CHANGED",
4278            AtomId::AtomBedtimeModeStateChanged => "ATOM_BEDTIME_MODE_STATE_CHANGED",
4279            AtomId::AtomNetworkSliceSessionEnded => "ATOM_NETWORK_SLICE_SESSION_ENDED",
4280            AtomId::AtomNetworkSliceDailyDataUsageReported => "ATOM_NETWORK_SLICE_DAILY_DATA_USAGE_REPORTED",
4281            AtomId::AtomNfcTagTypeOccurred => "ATOM_NFC_TAG_TYPE_OCCURRED",
4282            AtomId::AtomNfcAidConflictOccurred => "ATOM_NFC_AID_CONFLICT_OCCURRED",
4283            AtomId::AtomNfcReaderConflictOccurred => "ATOM_NFC_READER_CONFLICT_OCCURRED",
4284            AtomId::AtomWsTileListChanged => "ATOM_WS_TILE_LIST_CHANGED",
4285            AtomId::AtomGetTypeAccessedWithoutPermission => "ATOM_GET_TYPE_ACCESSED_WITHOUT_PERMISSION",
4286            AtomId::AtomMobileBundledAppInfoGathered => "ATOM_MOBILE_BUNDLED_APP_INFO_GATHERED",
4287            AtomId::AtomWsWatchFaceComplicationSetChanged => "ATOM_WS_WATCH_FACE_COMPLICATION_SET_CHANGED",
4288            AtomId::AtomMediaDrmCreated => "ATOM_MEDIA_DRM_CREATED",
4289            AtomId::AtomMediaDrmErrored => "ATOM_MEDIA_DRM_ERRORED",
4290            AtomId::AtomMediaDrmSessionOpened => "ATOM_MEDIA_DRM_SESSION_OPENED",
4291            AtomId::AtomMediaDrmSessionClosed => "ATOM_MEDIA_DRM_SESSION_CLOSED",
4292            AtomId::AtomUserSelectedResolution => "ATOM_USER_SELECTED_RESOLUTION",
4293            AtomId::AtomUnsafeIntentEventReported => "ATOM_UNSAFE_INTENT_EVENT_REPORTED",
4294            AtomId::AtomPerformanceHintSessionReported => "ATOM_PERFORMANCE_HINT_SESSION_REPORTED",
4295            AtomId::AtomMediametricsMidiDeviceCloseReported => "ATOM_MEDIAMETRICS_MIDI_DEVICE_CLOSE_REPORTED",
4296            AtomId::AtomBiometricTouchReported => "ATOM_BIOMETRIC_TOUCH_REPORTED",
4297            AtomId::AtomHotwordAudioEgressEventReported => "ATOM_HOTWORD_AUDIO_EGRESS_EVENT_REPORTED",
4298            AtomId::AtomLocationEnabledStateChanged => "ATOM_LOCATION_ENABLED_STATE_CHANGED",
4299            AtomId::AtomImeRequestFinished => "ATOM_IME_REQUEST_FINISHED",
4300            AtomId::AtomUsbComplianceWarningsReported => "ATOM_USB_COMPLIANCE_WARNINGS_REPORTED",
4301            AtomId::AtomAppSupportedLocalesChanged => "ATOM_APP_SUPPORTED_LOCALES_CHANGED",
4302            AtomId::AtomMediaProviderVolumeRecoveryReported => "ATOM_MEDIA_PROVIDER_VOLUME_RECOVERY_REPORTED",
4303            AtomId::AtomBiometricPropertiesCollected => "ATOM_BIOMETRIC_PROPERTIES_COLLECTED",
4304            AtomId::AtomKernelWakeupAttributed => "ATOM_KERNEL_WAKEUP_ATTRIBUTED",
4305            AtomId::AtomScreenStateChangedV2 => "ATOM_SCREEN_STATE_CHANGED_V2",
4306            AtomId::AtomWsBackupActionReported => "ATOM_WS_BACKUP_ACTION_REPORTED",
4307            AtomId::AtomWsRestoreActionReported => "ATOM_WS_RESTORE_ACTION_REPORTED",
4308            AtomId::AtomDeviceLogAccessEventReported => "ATOM_DEVICE_LOG_ACCESS_EVENT_REPORTED",
4309            AtomId::AtomMediaSessionUpdated => "ATOM_MEDIA_SESSION_UPDATED",
4310            AtomId::AtomWearOobeStateChanged => "ATOM_WEAR_OOBE_STATE_CHANGED",
4311            AtomId::AtomWsNotificationUpdated => "ATOM_WS_NOTIFICATION_UPDATED",
4312            AtomId::AtomNetworkValidationFailureStatsDailyReported => "ATOM_NETWORK_VALIDATION_FAILURE_STATS_DAILY_REPORTED",
4313            AtomId::AtomWsComplicationTapped => "ATOM_WS_COMPLICATION_TAPPED",
4314            AtomId::AtomWsNotificationBlocking => "ATOM_WS_NOTIFICATION_BLOCKING",
4315            AtomId::AtomWsNotificationBridgemodeUpdated => "ATOM_WS_NOTIFICATION_BRIDGEMODE_UPDATED",
4316            AtomId::AtomWsNotificationDismissalActioned => "ATOM_WS_NOTIFICATION_DISMISSAL_ACTIONED",
4317            AtomId::AtomWsNotificationActioned => "ATOM_WS_NOTIFICATION_ACTIONED",
4318            AtomId::AtomWsNotificationLatency => "ATOM_WS_NOTIFICATION_LATENCY",
4319            AtomId::AtomWifiBytesTransfer => "ATOM_WIFI_BYTES_TRANSFER",
4320            AtomId::AtomWifiBytesTransferByFgBg => "ATOM_WIFI_BYTES_TRANSFER_BY_FG_BG",
4321            AtomId::AtomMobileBytesTransfer => "ATOM_MOBILE_BYTES_TRANSFER",
4322            AtomId::AtomMobileBytesTransferByFgBg => "ATOM_MOBILE_BYTES_TRANSFER_BY_FG_BG",
4323            AtomId::AtomBluetoothBytesTransfer => "ATOM_BLUETOOTH_BYTES_TRANSFER",
4324            AtomId::AtomKernelWakelock => "ATOM_KERNEL_WAKELOCK",
4325            AtomId::AtomSubsystemSleepState => "ATOM_SUBSYSTEM_SLEEP_STATE",
4326            AtomId::AtomCpuTimePerUid => "ATOM_CPU_TIME_PER_UID",
4327            AtomId::AtomCpuTimePerUidFreq => "ATOM_CPU_TIME_PER_UID_FREQ",
4328            AtomId::AtomWifiActivityInfo => "ATOM_WIFI_ACTIVITY_INFO",
4329            AtomId::AtomModemActivityInfo => "ATOM_MODEM_ACTIVITY_INFO",
4330            AtomId::AtomBluetoothActivityInfo => "ATOM_BLUETOOTH_ACTIVITY_INFO",
4331            AtomId::AtomProcessMemoryState => "ATOM_PROCESS_MEMORY_STATE",
4332            AtomId::AtomSystemElapsedRealtime => "ATOM_SYSTEM_ELAPSED_REALTIME",
4333            AtomId::AtomSystemUptime => "ATOM_SYSTEM_UPTIME",
4334            AtomId::AtomCpuActiveTime => "ATOM_CPU_ACTIVE_TIME",
4335            AtomId::AtomCpuClusterTime => "ATOM_CPU_CLUSTER_TIME",
4336            AtomId::AtomDiskSpace => "ATOM_DISK_SPACE",
4337            AtomId::AtomRemainingBatteryCapacity => "ATOM_REMAINING_BATTERY_CAPACITY",
4338            AtomId::AtomFullBatteryCapacity => "ATOM_FULL_BATTERY_CAPACITY",
4339            AtomId::AtomTemperature => "ATOM_TEMPERATURE",
4340            AtomId::AtomBinderCalls => "ATOM_BINDER_CALLS",
4341            AtomId::AtomBinderCallsExceptions => "ATOM_BINDER_CALLS_EXCEPTIONS",
4342            AtomId::AtomLooperStats => "ATOM_LOOPER_STATS",
4343            AtomId::AtomDiskStats => "ATOM_DISK_STATS",
4344            AtomId::AtomDirectoryUsage => "ATOM_DIRECTORY_USAGE",
4345            AtomId::AtomAppSize => "ATOM_APP_SIZE",
4346            AtomId::AtomCategorySize => "ATOM_CATEGORY_SIZE",
4347            AtomId::AtomProcStats => "ATOM_PROC_STATS",
4348            AtomId::AtomBatteryVoltage => "ATOM_BATTERY_VOLTAGE",
4349            AtomId::AtomNumFingerprintsEnrolled => "ATOM_NUM_FINGERPRINTS_ENROLLED",
4350            AtomId::AtomDiskIo => "ATOM_DISK_IO",
4351            AtomId::AtomPowerProfile => "ATOM_POWER_PROFILE",
4352            AtomId::AtomProcStatsPkgProc => "ATOM_PROC_STATS_PKG_PROC",
4353            AtomId::AtomProcessCpuTime => "ATOM_PROCESS_CPU_TIME",
4354            AtomId::AtomCpuTimePerThreadFreq => "ATOM_CPU_TIME_PER_THREAD_FREQ",
4355            AtomId::AtomOnDevicePowerMeasurement => "ATOM_ON_DEVICE_POWER_MEASUREMENT",
4356            AtomId::AtomDeviceCalculatedPowerUse => "ATOM_DEVICE_CALCULATED_POWER_USE",
4357            AtomId::AtomProcessMemoryHighWaterMark => "ATOM_PROCESS_MEMORY_HIGH_WATER_MARK",
4358            AtomId::AtomBatteryLevel => "ATOM_BATTERY_LEVEL",
4359            AtomId::AtomBuildInformation => "ATOM_BUILD_INFORMATION",
4360            AtomId::AtomBatteryCycleCount => "ATOM_BATTERY_CYCLE_COUNT",
4361            AtomId::AtomDebugElapsedClock => "ATOM_DEBUG_ELAPSED_CLOCK",
4362            AtomId::AtomDebugFailingElapsedClock => "ATOM_DEBUG_FAILING_ELAPSED_CLOCK",
4363            AtomId::AtomNumFacesEnrolled => "ATOM_NUM_FACES_ENROLLED",
4364            AtomId::AtomRoleHolder => "ATOM_ROLE_HOLDER",
4365            AtomId::AtomDangerousPermissionState => "ATOM_DANGEROUS_PERMISSION_STATE",
4366            AtomId::AtomTrainInfo => "ATOM_TRAIN_INFO",
4367            AtomId::AtomTimeZoneDataInfo => "ATOM_TIME_ZONE_DATA_INFO",
4368            AtomId::AtomExternalStorageInfo => "ATOM_EXTERNAL_STORAGE_INFO",
4369            AtomId::AtomGpuStatsGlobalInfo => "ATOM_GPU_STATS_GLOBAL_INFO",
4370            AtomId::AtomGpuStatsAppInfo => "ATOM_GPU_STATS_APP_INFO",
4371            AtomId::AtomSystemIonHeapSize => "ATOM_SYSTEM_ION_HEAP_SIZE",
4372            AtomId::AtomAppsOnExternalStorageInfo => "ATOM_APPS_ON_EXTERNAL_STORAGE_INFO",
4373            AtomId::AtomFaceSettings => "ATOM_FACE_SETTINGS",
4374            AtomId::AtomCoolingDevice => "ATOM_COOLING_DEVICE",
4375            AtomId::AtomAppOps => "ATOM_APP_OPS",
4376            AtomId::AtomProcessSystemIonHeapSize => "ATOM_PROCESS_SYSTEM_ION_HEAP_SIZE",
4377            AtomId::AtomSurfaceflingerStatsGlobalInfo => "ATOM_SURFACEFLINGER_STATS_GLOBAL_INFO",
4378            AtomId::AtomSurfaceflingerStatsLayerInfo => "ATOM_SURFACEFLINGER_STATS_LAYER_INFO",
4379            AtomId::AtomProcessMemorySnapshot => "ATOM_PROCESS_MEMORY_SNAPSHOT",
4380            AtomId::AtomVmsClientStats => "ATOM_VMS_CLIENT_STATS",
4381            AtomId::AtomNotificationRemoteViews => "ATOM_NOTIFICATION_REMOTE_VIEWS",
4382            AtomId::AtomDangerousPermissionStateSampled => "ATOM_DANGEROUS_PERMISSION_STATE_SAMPLED",
4383            AtomId::AtomGraphicsStats => "ATOM_GRAPHICS_STATS",
4384            AtomId::AtomRuntimeAppOpAccess => "ATOM_RUNTIME_APP_OP_ACCESS",
4385            AtomId::AtomIonHeapSize => "ATOM_ION_HEAP_SIZE",
4386            AtomId::AtomPackageNotificationPreferences => "ATOM_PACKAGE_NOTIFICATION_PREFERENCES",
4387            AtomId::AtomPackageNotificationChannelPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_PREFERENCES",
4388            AtomId::AtomPackageNotificationChannelGroupPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_GROUP_PREFERENCES",
4389            AtomId::AtomGnssStats => "ATOM_GNSS_STATS",
4390            AtomId::AtomAttributedAppOps => "ATOM_ATTRIBUTED_APP_OPS",
4391            AtomId::AtomVoiceCallSession => "ATOM_VOICE_CALL_SESSION",
4392            AtomId::AtomVoiceCallRatUsage => "ATOM_VOICE_CALL_RAT_USAGE",
4393            AtomId::AtomSimSlotState => "ATOM_SIM_SLOT_STATE",
4394            AtomId::AtomSupportedRadioAccessFamily => "ATOM_SUPPORTED_RADIO_ACCESS_FAMILY",
4395            AtomId::AtomSettingSnapshot => "ATOM_SETTING_SNAPSHOT",
4396            AtomId::AtomBlobInfo => "ATOM_BLOB_INFO",
4397            AtomId::AtomDataUsageBytesTransfer => "ATOM_DATA_USAGE_BYTES_TRANSFER",
4398            AtomId::AtomBytesTransferByTagAndMetered => "ATOM_BYTES_TRANSFER_BY_TAG_AND_METERED",
4399            AtomId::AtomDndModeRule => "ATOM_DND_MODE_RULE",
4400            AtomId::AtomGeneralExternalStorageAccessStats => "ATOM_GENERAL_EXTERNAL_STORAGE_ACCESS_STATS",
4401            AtomId::AtomIncomingSms => "ATOM_INCOMING_SMS",
4402            AtomId::AtomOutgoingSms => "ATOM_OUTGOING_SMS",
4403            AtomId::AtomCarrierIdTableVersion => "ATOM_CARRIER_ID_TABLE_VERSION",
4404            AtomId::AtomDataCallSession => "ATOM_DATA_CALL_SESSION",
4405            AtomId::AtomCellularServiceState => "ATOM_CELLULAR_SERVICE_STATE",
4406            AtomId::AtomCellularDataServiceSwitch => "ATOM_CELLULAR_DATA_SERVICE_SWITCH",
4407            AtomId::AtomSystemMemory => "ATOM_SYSTEM_MEMORY",
4408            AtomId::AtomImsRegistrationTermination => "ATOM_IMS_REGISTRATION_TERMINATION",
4409            AtomId::AtomImsRegistrationStats => "ATOM_IMS_REGISTRATION_STATS",
4410            AtomId::AtomCpuTimePerClusterFreq => "ATOM_CPU_TIME_PER_CLUSTER_FREQ",
4411            AtomId::AtomCpuCyclesPerUidCluster => "ATOM_CPU_CYCLES_PER_UID_CLUSTER",
4412            AtomId::AtomDeviceRotatedData => "ATOM_DEVICE_ROTATED_DATA",
4413            AtomId::AtomCpuCyclesPerThreadGroupCluster => "ATOM_CPU_CYCLES_PER_THREAD_GROUP_CLUSTER",
4414            AtomId::AtomMediaDrmActivityInfo => "ATOM_MEDIA_DRM_ACTIVITY_INFO",
4415            AtomId::AtomOemManagedBytesTransfer => "ATOM_OEM_MANAGED_BYTES_TRANSFER",
4416            AtomId::AtomGnssPowerStats => "ATOM_GNSS_POWER_STATS",
4417            AtomId::AtomTimeZoneDetectorState => "ATOM_TIME_ZONE_DETECTOR_STATE",
4418            AtomId::AtomKeystore2StorageStats => "ATOM_KEYSTORE2_STORAGE_STATS",
4419            AtomId::AtomRkpPoolStats => "ATOM_RKP_POOL_STATS",
4420            AtomId::AtomProcessDmabufMemory => "ATOM_PROCESS_DMABUF_MEMORY",
4421            AtomId::AtomPendingAlarmInfo => "ATOM_PENDING_ALARM_INFO",
4422            AtomId::AtomUserLevelHibernatedApps => "ATOM_USER_LEVEL_HIBERNATED_APPS",
4423            AtomId::AtomLauncherLayoutSnapshot => "ATOM_LAUNCHER_LAYOUT_SNAPSHOT",
4424            AtomId::AtomGlobalHibernatedApps => "ATOM_GLOBAL_HIBERNATED_APPS",
4425            AtomId::AtomInputEventLatencySketch => "ATOM_INPUT_EVENT_LATENCY_SKETCH",
4426            AtomId::AtomBatteryUsageStatsBeforeReset => "ATOM_BATTERY_USAGE_STATS_BEFORE_RESET",
4427            AtomId::AtomBatteryUsageStatsSinceReset => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET",
4428            AtomId::AtomBatteryUsageStatsSinceResetUsingPowerProfileModel => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET_USING_POWER_PROFILE_MODEL",
4429            AtomId::AtomInstalledIncrementalPackage => "ATOM_INSTALLED_INCREMENTAL_PACKAGE",
4430            AtomId::AtomTelephonyNetworkRequests => "ATOM_TELEPHONY_NETWORK_REQUESTS",
4431            AtomId::AtomAppSearchStorageInfo => "ATOM_APP_SEARCH_STORAGE_INFO",
4432            AtomId::AtomVmstat => "ATOM_VMSTAT",
4433            AtomId::AtomKeystore2KeyCreationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_GENERAL_INFO",
4434            AtomId::AtomKeystore2KeyCreationWithAuthInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_AUTH_INFO",
4435            AtomId::AtomKeystore2KeyCreationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_PURPOSE_AND_MODES_INFO",
4436            AtomId::AtomKeystore2AtomWithOverflow => "ATOM_KEYSTORE2_ATOM_WITH_OVERFLOW",
4437            AtomId::AtomKeystore2KeyOperationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_PURPOSE_AND_MODES_INFO",
4438            AtomId::AtomKeystore2KeyOperationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_GENERAL_INFO",
4439            AtomId::AtomRkpErrorStats => "ATOM_RKP_ERROR_STATS",
4440            AtomId::AtomKeystore2CrashStats => "ATOM_KEYSTORE2_CRASH_STATS",
4441            AtomId::AtomVendorApexInfo => "ATOM_VENDOR_APEX_INFO",
4442            AtomId::AtomAccessibilityShortcutStats => "ATOM_ACCESSIBILITY_SHORTCUT_STATS",
4443            AtomId::AtomAccessibilityFloatingMenuStats => "ATOM_ACCESSIBILITY_FLOATING_MENU_STATS",
4444            AtomId::AtomDataUsageBytesTransferV2 => "ATOM_DATA_USAGE_BYTES_TRANSFER_V2",
4445            AtomId::AtomMediaCapabilities => "ATOM_MEDIA_CAPABILITIES",
4446            AtomId::AtomCarWatchdogSystemIoUsageSummary => "ATOM_CAR_WATCHDOG_SYSTEM_IO_USAGE_SUMMARY",
4447            AtomId::AtomCarWatchdogUidIoUsageSummary => "ATOM_CAR_WATCHDOG_UID_IO_USAGE_SUMMARY",
4448            AtomId::AtomImsRegistrationFeatureTagStats => "ATOM_IMS_REGISTRATION_FEATURE_TAG_STATS",
4449            AtomId::AtomRcsClientProvisioningStats => "ATOM_RCS_CLIENT_PROVISIONING_STATS",
4450            AtomId::AtomRcsAcsProvisioningStats => "ATOM_RCS_ACS_PROVISIONING_STATS",
4451            AtomId::AtomSipDelegateStats => "ATOM_SIP_DELEGATE_STATS",
4452            AtomId::AtomSipTransportFeatureTagStats => "ATOM_SIP_TRANSPORT_FEATURE_TAG_STATS",
4453            AtomId::AtomSipMessageResponse => "ATOM_SIP_MESSAGE_RESPONSE",
4454            AtomId::AtomSipTransportSession => "ATOM_SIP_TRANSPORT_SESSION",
4455            AtomId::AtomImsDedicatedBearerListenerEvent => "ATOM_IMS_DEDICATED_BEARER_LISTENER_EVENT",
4456            AtomId::AtomImsDedicatedBearerEvent => "ATOM_IMS_DEDICATED_BEARER_EVENT",
4457            AtomId::AtomImsRegistrationServiceDescStats => "ATOM_IMS_REGISTRATION_SERVICE_DESC_STATS",
4458            AtomId::AtomUceEventStats => "ATOM_UCE_EVENT_STATS",
4459            AtomId::AtomPresenceNotifyEvent => "ATOM_PRESENCE_NOTIFY_EVENT",
4460            AtomId::AtomGbaEvent => "ATOM_GBA_EVENT",
4461            AtomId::AtomPerSimStatus => "ATOM_PER_SIM_STATUS",
4462            AtomId::AtomGpuWorkPerUid => "ATOM_GPU_WORK_PER_UID",
4463            AtomId::AtomPersistentUriPermissionsAmountPerPackage => "ATOM_PERSISTENT_URI_PERMISSIONS_AMOUNT_PER_PACKAGE",
4464            AtomId::AtomSignedPartitionInfo => "ATOM_SIGNED_PARTITION_INFO",
4465            AtomId::AtomPinnedFileSizesPerPackage => "ATOM_PINNED_FILE_SIZES_PER_PACKAGE",
4466            AtomId::AtomPendingIntentsPerPackage => "ATOM_PENDING_INTENTS_PER_PACKAGE",
4467            AtomId::AtomUserInfo => "ATOM_USER_INFO",
4468            AtomId::AtomTelephonyNetworkRequestsV2 => "ATOM_TELEPHONY_NETWORK_REQUESTS_V2",
4469            AtomId::AtomDeviceTelephonyProperties => "ATOM_DEVICE_TELEPHONY_PROPERTIES",
4470            AtomId::AtomRemoteKeyProvisioningErrorCounts => "ATOM_REMOTE_KEY_PROVISIONING_ERROR_COUNTS",
4471            AtomId::AtomSafetyState => "ATOM_SAFETY_STATE",
4472            AtomId::AtomIncomingMms => "ATOM_INCOMING_MMS",
4473            AtomId::AtomOutgoingMms => "ATOM_OUTGOING_MMS",
4474            AtomId::AtomMultiUserInfo => "ATOM_MULTI_USER_INFO",
4475            AtomId::AtomNetworkBpfMapInfo => "ATOM_NETWORK_BPF_MAP_INFO",
4476            AtomId::AtomOutgoingShortCodeSms => "ATOM_OUTGOING_SHORT_CODE_SMS",
4477            AtomId::AtomConnectivityStateSample => "ATOM_CONNECTIVITY_STATE_SAMPLE",
4478            AtomId::AtomNetworkSelectionRematchReasonsInfo => "ATOM_NETWORK_SELECTION_REMATCH_REASONS_INFO",
4479            AtomId::AtomGameModeInfo => "ATOM_GAME_MODE_INFO",
4480            AtomId::AtomGameModeConfiguration => "ATOM_GAME_MODE_CONFIGURATION",
4481            AtomId::AtomGameModeListener => "ATOM_GAME_MODE_LISTENER",
4482            AtomId::AtomNetworkSliceRequestCount => "ATOM_NETWORK_SLICE_REQUEST_COUNT",
4483            AtomId::AtomWsTileSnapshot => "ATOM_WS_TILE_SNAPSHOT",
4484            AtomId::AtomWsActiveWatchFaceComplicationSetSnapshot => "ATOM_WS_ACTIVE_WATCH_FACE_COMPLICATION_SET_SNAPSHOT",
4485            AtomId::AtomProcessState => "ATOM_PROCESS_STATE",
4486            AtomId::AtomProcessAssociation => "ATOM_PROCESS_ASSOCIATION",
4487            AtomId::AtomAdpfSystemComponentInfo => "ATOM_ADPF_SYSTEM_COMPONENT_INFO",
4488            AtomId::AtomNotificationMemoryUse => "ATOM_NOTIFICATION_MEMORY_USE",
4489            AtomId::AtomHdrCapabilities => "ATOM_HDR_CAPABILITIES",
4490            AtomId::AtomWsFavouriteWatchFaceListSnapshot => "ATOM_WS_FAVOURITE_WATCH_FACE_LIST_SNAPSHOT",
4491            AtomId::AtomAccessibilityCheckResultReported => "ATOM_ACCESSIBILITY_CHECK_RESULT_REPORTED",
4492            AtomId::AtomAdaptiveAuthUnlockAfterLockReported => "ATOM_ADAPTIVE_AUTH_UNLOCK_AFTER_LOCK_REPORTED",
4493            AtomId::AtomThermalStatusCalled => "ATOM_THERMAL_STATUS_CALLED",
4494            AtomId::AtomThermalHeadroomCalled => "ATOM_THERMAL_HEADROOM_CALLED",
4495            AtomId::AtomThermalHeadroomThresholdsCalled => "ATOM_THERMAL_HEADROOM_THRESHOLDS_CALLED",
4496            AtomId::AtomAdpfHintSessionTidCleanup => "ATOM_ADPF_HINT_SESSION_TID_CLEANUP",
4497            AtomId::AtomThermalHeadroomThresholds => "ATOM_THERMAL_HEADROOM_THRESHOLDS",
4498            AtomId::AtomAdpfSessionSnapshot => "ATOM_ADPF_SESSION_SNAPSHOT",
4499            AtomId::AtomJsscriptengineLatencyReported => "ATOM_JSSCRIPTENGINE_LATENCY_REPORTED",
4500            AtomId::AtomAdServicesApiCalled => "ATOM_AD_SERVICES_API_CALLED",
4501            AtomId::AtomAdServicesMesurementReportsUploaded => "ATOM_AD_SERVICES_MESUREMENT_REPORTS_UPLOADED",
4502            AtomId::AtomMobileDataDownloadFileGroupStatusReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STATUS_REPORTED",
4503            AtomId::AtomMobileDataDownloadDownloadResultReported => "ATOM_MOBILE_DATA_DOWNLOAD_DOWNLOAD_RESULT_REPORTED",
4504            AtomId::AtomAdServicesSettingsUsageReported => "ATOM_AD_SERVICES_SETTINGS_USAGE_REPORTED",
4505            AtomId::AtomBackgroundFetchProcessReported => "ATOM_BACKGROUND_FETCH_PROCESS_REPORTED",
4506            AtomId::AtomUpdateCustomAudienceProcessReported => "ATOM_UPDATE_CUSTOM_AUDIENCE_PROCESS_REPORTED",
4507            AtomId::AtomRunAdBiddingProcessReported => "ATOM_RUN_AD_BIDDING_PROCESS_REPORTED",
4508            AtomId::AtomRunAdScoringProcessReported => "ATOM_RUN_AD_SCORING_PROCESS_REPORTED",
4509            AtomId::AtomRunAdSelectionProcessReported => "ATOM_RUN_AD_SELECTION_PROCESS_REPORTED",
4510            AtomId::AtomRunAdBiddingPerCaProcessReported => "ATOM_RUN_AD_BIDDING_PER_CA_PROCESS_REPORTED",
4511            AtomId::AtomMobileDataDownloadFileGroupStorageStatsReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STORAGE_STATS_REPORTED",
4512            AtomId::AtomAdServicesMeasurementRegistrations => "ATOM_AD_SERVICES_MEASUREMENT_REGISTRATIONS",
4513            AtomId::AtomAdServicesGetTopicsReported => "ATOM_AD_SERVICES_GET_TOPICS_REPORTED",
4514            AtomId::AtomAdServicesEpochComputationGetTopTopicsReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_GET_TOP_TOPICS_REPORTED",
4515            AtomId::AtomAdServicesEpochComputationClassifierReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4516            AtomId::AtomAdServicesBackCompatGetTopicsReported => "ATOM_AD_SERVICES_BACK_COMPAT_GET_TOPICS_REPORTED",
4517            AtomId::AtomAdServicesBackCompatEpochComputationClassifierReported => "ATOM_AD_SERVICES_BACK_COMPAT_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4518            AtomId::AtomAdServicesMeasurementDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_DEBUG_KEYS",
4519            AtomId::AtomAdServicesErrorReported => "ATOM_AD_SERVICES_ERROR_REPORTED",
4520            AtomId::AtomAdServicesBackgroundJobsExecutionReported => "ATOM_AD_SERVICES_BACKGROUND_JOBS_EXECUTION_REPORTED",
4521            AtomId::AtomAdServicesMeasurementDelayedSourceRegistration => "ATOM_AD_SERVICES_MEASUREMENT_DELAYED_SOURCE_REGISTRATION",
4522            AtomId::AtomAdServicesMeasurementAttribution => "ATOM_AD_SERVICES_MEASUREMENT_ATTRIBUTION",
4523            AtomId::AtomAdServicesMeasurementJobs => "ATOM_AD_SERVICES_MEASUREMENT_JOBS",
4524            AtomId::AtomAdServicesMeasurementWipeout => "ATOM_AD_SERVICES_MEASUREMENT_WIPEOUT",
4525            AtomId::AtomAdServicesMeasurementAdIdMatchForDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_AD_ID_MATCH_FOR_DEBUG_KEYS",
4526            AtomId::AtomAdServicesEnrollmentDataStored => "ATOM_AD_SERVICES_ENROLLMENT_DATA_STORED",
4527            AtomId::AtomAdServicesEnrollmentFileDownloaded => "ATOM_AD_SERVICES_ENROLLMENT_FILE_DOWNLOADED",
4528            AtomId::AtomAdServicesEnrollmentMatched => "ATOM_AD_SERVICES_ENROLLMENT_MATCHED",
4529            AtomId::AtomAdServicesConsentMigrated => "ATOM_AD_SERVICES_CONSENT_MIGRATED",
4530            AtomId::AtomAdServicesEnrollmentFailed => "ATOM_AD_SERVICES_ENROLLMENT_FAILED",
4531            AtomId::AtomAdServicesMeasurementClickVerification => "ATOM_AD_SERVICES_MEASUREMENT_CLICK_VERIFICATION",
4532            AtomId::AtomAdServicesEncryptionKeyFetched => "ATOM_AD_SERVICES_ENCRYPTION_KEY_FETCHED",
4533            AtomId::AtomAdServicesEncryptionKeyDbTransactionEnded => "ATOM_AD_SERVICES_ENCRYPTION_KEY_DB_TRANSACTION_ENDED",
4534            AtomId::AtomDestinationRegisteredBeacons => "ATOM_DESTINATION_REGISTERED_BEACONS",
4535            AtomId::AtomReportInteractionApiCalled => "ATOM_REPORT_INTERACTION_API_CALLED",
4536            AtomId::AtomInteractionReportingTableCleared => "ATOM_INTERACTION_REPORTING_TABLE_CLEARED",
4537            AtomId::AtomAppManifestConfigHelperCalled => "ATOM_APP_MANIFEST_CONFIG_HELPER_CALLED",
4538            AtomId::AtomAdFilteringProcessJoinCaReported => "ATOM_AD_FILTERING_PROCESS_JOIN_CA_REPORTED",
4539            AtomId::AtomAdFilteringProcessAdSelectionReported => "ATOM_AD_FILTERING_PROCESS_AD_SELECTION_REPORTED",
4540            AtomId::AtomAdCounterHistogramUpdaterReported => "ATOM_AD_COUNTER_HISTOGRAM_UPDATER_REPORTED",
4541            AtomId::AtomSignatureVerification => "ATOM_SIGNATURE_VERIFICATION",
4542            AtomId::AtomKAnonImmediateSignJoinStatusReported => "ATOM_K_ANON_IMMEDIATE_SIGN_JOIN_STATUS_REPORTED",
4543            AtomId::AtomKAnonBackgroundJobStatusReported => "ATOM_K_ANON_BACKGROUND_JOB_STATUS_REPORTED",
4544            AtomId::AtomKAnonInitializeStatusReported => "ATOM_K_ANON_INITIALIZE_STATUS_REPORTED",
4545            AtomId::AtomKAnonSignStatusReported => "ATOM_K_ANON_SIGN_STATUS_REPORTED",
4546            AtomId::AtomKAnonJoinStatusReported => "ATOM_K_ANON_JOIN_STATUS_REPORTED",
4547            AtomId::AtomKAnonKeyAttestationStatusReported => "ATOM_K_ANON_KEY_ATTESTATION_STATUS_REPORTED",
4548            AtomId::AtomGetAdSelectionDataApiCalled => "ATOM_GET_AD_SELECTION_DATA_API_CALLED",
4549            AtomId::AtomGetAdSelectionDataBuyerInputGenerated => "ATOM_GET_AD_SELECTION_DATA_BUYER_INPUT_GENERATED",
4550            AtomId::AtomBackgroundJobSchedulingReported => "ATOM_BACKGROUND_JOB_SCHEDULING_REPORTED",
4551            AtomId::AtomTopicsEncryptionEpochComputationReported => "ATOM_TOPICS_ENCRYPTION_EPOCH_COMPUTATION_REPORTED",
4552            AtomId::AtomTopicsEncryptionGetTopicsReported => "ATOM_TOPICS_ENCRYPTION_GET_TOPICS_REPORTED",
4553            AtomId::AtomAdservicesShellCommandCalled => "ATOM_ADSERVICES_SHELL_COMMAND_CALLED",
4554            AtomId::AtomUpdateSignalsApiCalled => "ATOM_UPDATE_SIGNALS_API_CALLED",
4555            AtomId::AtomEncodingJobRun => "ATOM_ENCODING_JOB_RUN",
4556            AtomId::AtomEncodingJsFetch => "ATOM_ENCODING_JS_FETCH",
4557            AtomId::AtomEncodingJsExecution => "ATOM_ENCODING_JS_EXECUTION",
4558            AtomId::AtomPersistAdSelectionResultCalled => "ATOM_PERSIST_AD_SELECTION_RESULT_CALLED",
4559            AtomId::AtomServerAuctionKeyFetchCalled => "ATOM_SERVER_AUCTION_KEY_FETCH_CALLED",
4560            AtomId::AtomServerAuctionBackgroundKeyFetchEnabled => "ATOM_SERVER_AUCTION_BACKGROUND_KEY_FETCH_ENABLED",
4561            AtomId::AtomAdServicesMeasurementProcessOdpRegistration => "ATOM_AD_SERVICES_MEASUREMENT_PROCESS_ODP_REGISTRATION",
4562            AtomId::AtomAdServicesMeasurementNotifyRegistrationToOdp => "ATOM_AD_SERVICES_MEASUREMENT_NOTIFY_REGISTRATION_TO_ODP",
4563            AtomId::AtomSelectAdsFromOutcomesApiCalled => "ATOM_SELECT_ADS_FROM_OUTCOMES_API_CALLED",
4564            AtomId::AtomReportImpressionApiCalled => "ATOM_REPORT_IMPRESSION_API_CALLED",
4565            AtomId::AtomAdServicesEnrollmentTransactionStats => "ATOM_AD_SERVICES_ENROLLMENT_TRANSACTION_STATS",
4566            AtomId::AtomAdServicesCobaltLoggerEventReported => "ATOM_AD_SERVICES_COBALT_LOGGER_EVENT_REPORTED",
4567            AtomId::AtomAdServicesCobaltPeriodicJobEventReported => "ATOM_AD_SERVICES_COBALT_PERIODIC_JOB_EVENT_REPORTED",
4568            AtomId::AtomUpdateSignalsProcessReported => "ATOM_UPDATE_SIGNALS_PROCESS_REPORTED",
4569            AtomId::AtomTopicsScheduleEpochJobSettingReported => "ATOM_TOPICS_SCHEDULE_EPOCH_JOB_SETTING_REPORTED",
4570            AtomId::AtomAiWallpapersButtonPressed => "ATOM_AI_WALLPAPERS_BUTTON_PRESSED",
4571            AtomId::AtomAiWallpapersTemplateSelected => "ATOM_AI_WALLPAPERS_TEMPLATE_SELECTED",
4572            AtomId::AtomAiWallpapersTermSelected => "ATOM_AI_WALLPAPERS_TERM_SELECTED",
4573            AtomId::AtomAiWallpapersWallpaperSet => "ATOM_AI_WALLPAPERS_WALLPAPER_SET",
4574            AtomId::AtomAiWallpapersSessionSummary => "ATOM_AI_WALLPAPERS_SESSION_SUMMARY",
4575            AtomId::AtomApexInstallationRequested => "ATOM_APEX_INSTALLATION_REQUESTED",
4576            AtomId::AtomApexInstallationStaged => "ATOM_APEX_INSTALLATION_STAGED",
4577            AtomId::AtomApexInstallationEnded => "ATOM_APEX_INSTALLATION_ENDED",
4578            AtomId::AtomAppSearchSetSchemaStatsReported => "ATOM_APP_SEARCH_SET_SCHEMA_STATS_REPORTED",
4579            AtomId::AtomAppSearchSchemaMigrationStatsReported => "ATOM_APP_SEARCH_SCHEMA_MIGRATION_STATS_REPORTED",
4580            AtomId::AtomAppSearchUsageSearchIntentStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_STATS_REPORTED",
4581            AtomId::AtomAppSearchUsageSearchIntentRawQueryStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_RAW_QUERY_STATS_REPORTED",
4582            AtomId::AtomAppSearchAppsIndexerStatsReported => "ATOM_APP_SEARCH_APPS_INDEXER_STATS_REPORTED",
4583            AtomId::AtomArtDatumReported => "ATOM_ART_DATUM_REPORTED",
4584            AtomId::AtomArtDeviceDatumReported => "ATOM_ART_DEVICE_DATUM_REPORTED",
4585            AtomId::AtomArtDatumDeltaReported => "ATOM_ART_DATUM_DELTA_REPORTED",
4586            AtomId::AtomArtDex2oatReported => "ATOM_ART_DEX2OAT_REPORTED",
4587            AtomId::AtomArtDeviceStatus => "ATOM_ART_DEVICE_STATUS",
4588            AtomId::AtomBackgroundDexoptJobEnded => "ATOM_BACKGROUND_DEXOPT_JOB_ENDED",
4589            AtomId::AtomPrerebootDexoptJobEnded => "ATOM_PREREBOOT_DEXOPT_JOB_ENDED",
4590            AtomId::AtomOdrefreshReported => "ATOM_ODREFRESH_REPORTED",
4591            AtomId::AtomOdsignReported => "ATOM_ODSIGN_REPORTED",
4592            AtomId::AtomAutofillUiEventReported => "ATOM_AUTOFILL_UI_EVENT_REPORTED",
4593            AtomId::AtomAutofillFillRequestReported => "ATOM_AUTOFILL_FILL_REQUEST_REPORTED",
4594            AtomId::AtomAutofillFillResponseReported => "ATOM_AUTOFILL_FILL_RESPONSE_REPORTED",
4595            AtomId::AtomAutofillSaveEventReported => "ATOM_AUTOFILL_SAVE_EVENT_REPORTED",
4596            AtomId::AtomAutofillSessionCommitted => "ATOM_AUTOFILL_SESSION_COMMITTED",
4597            AtomId::AtomAutofillFieldClassificationEventReported => "ATOM_AUTOFILL_FIELD_CLASSIFICATION_EVENT_REPORTED",
4598            AtomId::AtomCarRecentsEventReported => "ATOM_CAR_RECENTS_EVENT_REPORTED",
4599            AtomId::AtomCarCalmModeEventReported => "ATOM_CAR_CALM_MODE_EVENT_REPORTED",
4600            AtomId::AtomCarWakeupFromSuspendReported => "ATOM_CAR_WAKEUP_FROM_SUSPEND_REPORTED",
4601            AtomId::AtomPluginInitialized => "ATOM_PLUGIN_INITIALIZED",
4602            AtomId::AtomBluetoothHashedDeviceNameReported => "ATOM_BLUETOOTH_HASHED_DEVICE_NAME_REPORTED",
4603            AtomId::AtomBluetoothL2capCocClientConnection => "ATOM_BLUETOOTH_L2CAP_COC_CLIENT_CONNECTION",
4604            AtomId::AtomBluetoothL2capCocServerConnection => "ATOM_BLUETOOTH_L2CAP_COC_SERVER_CONNECTION",
4605            AtomId::AtomBluetoothLeSessionConnected => "ATOM_BLUETOOTH_LE_SESSION_CONNECTED",
4606            AtomId::AtomRestrictedBluetoothDeviceNameReported => "ATOM_RESTRICTED_BLUETOOTH_DEVICE_NAME_REPORTED",
4607            AtomId::AtomBluetoothProfileConnectionAttempted => "ATOM_BLUETOOTH_PROFILE_CONNECTION_ATTEMPTED",
4608            AtomId::AtomBluetoothContentProfileErrorReported => "ATOM_BLUETOOTH_CONTENT_PROFILE_ERROR_REPORTED",
4609            AtomId::AtomBluetoothRfcommConnectionAttempted => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_ATTEMPTED",
4610            AtomId::AtomRemoteDeviceInformationWithMetricId => "ATOM_REMOTE_DEVICE_INFORMATION_WITH_METRIC_ID",
4611            AtomId::AtomLeAppScanStateChanged => "ATOM_LE_APP_SCAN_STATE_CHANGED",
4612            AtomId::AtomLeRadioScanStopped => "ATOM_LE_RADIO_SCAN_STOPPED",
4613            AtomId::AtomLeScanResultReceived => "ATOM_LE_SCAN_RESULT_RECEIVED",
4614            AtomId::AtomLeScanAbused => "ATOM_LE_SCAN_ABUSED",
4615            AtomId::AtomLeAdvStateChanged => "ATOM_LE_ADV_STATE_CHANGED",
4616            AtomId::AtomLeAdvErrorReported => "ATOM_LE_ADV_ERROR_REPORTED",
4617            AtomId::AtomA2dpSessionReported => "ATOM_A2DP_SESSION_REPORTED",
4618            AtomId::AtomBluetoothCrossLayerEventReported => "ATOM_BLUETOOTH_CROSS_LAYER_EVENT_REPORTED",
4619            AtomId::AtomBroadcastAudioSessionReported => "ATOM_BROADCAST_AUDIO_SESSION_REPORTED",
4620            AtomId::AtomBroadcastAudioSyncReported => "ATOM_BROADCAST_AUDIO_SYNC_REPORTED",
4621            AtomId::AtomBluetoothRfcommConnectionReportedAtClose => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_REPORTED_AT_CLOSE",
4622            AtomId::AtomBluetoothLeConnection => "ATOM_BLUETOOTH_LE_CONNECTION",
4623            AtomId::AtomBroadcastSent => "ATOM_BROADCAST_SENT",
4624            AtomId::AtomCameraFeatureCombinationQueryEvent => "ATOM_CAMERA_FEATURE_COMBINATION_QUERY_EVENT",
4625            AtomId::AtomCertificateTransparencyLogListStateChanged => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_STATE_CHANGED",
4626            AtomId::AtomCertificateTransparencyLogListUpdateFailed => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_UPDATE_FAILED",
4627            AtomId::AtomDailyKeepaliveInfoReported => "ATOM_DAILY_KEEPALIVE_INFO_REPORTED",
4628            AtomId::AtomNetworkRequestStateChanged => "ATOM_NETWORK_REQUEST_STATE_CHANGED",
4629            AtomId::AtomTetheringActiveSessionsReported => "ATOM_TETHERING_ACTIVE_SESSIONS_REPORTED",
4630            AtomId::AtomNetworkStatsRecorderFileOperated => "ATOM_NETWORK_STATS_RECORDER_FILE_OPERATED",
4631            AtomId::AtomCoreNetworkingTerribleErrorOccurred => "ATOM_CORE_NETWORKING_TERRIBLE_ERROR_OCCURRED",
4632            AtomId::AtomApfSessionInfoReported => "ATOM_APF_SESSION_INFO_REPORTED",
4633            AtomId::AtomIpClientRaInfoReported => "ATOM_IP_CLIENT_RA_INFO_REPORTED",
4634            AtomId::AtomVpnConnectionStateChanged => "ATOM_VPN_CONNECTION_STATE_CHANGED",
4635            AtomId::AtomVpnConnectionReported => "ATOM_VPN_CONNECTION_REPORTED",
4636            AtomId::AtomCpuPolicy => "ATOM_CPU_POLICY",
4637            AtomId::AtomCredentialManagerApiCalled => "ATOM_CREDENTIAL_MANAGER_API_CALLED",
4638            AtomId::AtomCredentialManagerInitPhaseReported => "ATOM_CREDENTIAL_MANAGER_INIT_PHASE_REPORTED",
4639            AtomId::AtomCredentialManagerCandidatePhaseReported => "ATOM_CREDENTIAL_MANAGER_CANDIDATE_PHASE_REPORTED",
4640            AtomId::AtomCredentialManagerFinalPhaseReported => "ATOM_CREDENTIAL_MANAGER_FINAL_PHASE_REPORTED",
4641            AtomId::AtomCredentialManagerTotalReported => "ATOM_CREDENTIAL_MANAGER_TOTAL_REPORTED",
4642            AtomId::AtomCredentialManagerFinalnouidReported => "ATOM_CREDENTIAL_MANAGER_FINALNOUID_REPORTED",
4643            AtomId::AtomCredentialManagerGetReported => "ATOM_CREDENTIAL_MANAGER_GET_REPORTED",
4644            AtomId::AtomCredentialManagerAuthClickReported => "ATOM_CREDENTIAL_MANAGER_AUTH_CLICK_REPORTED",
4645            AtomId::AtomCredentialManagerApiv2Called => "ATOM_CREDENTIAL_MANAGER_APIV2_CALLED",
4646            AtomId::AtomCronetEngineCreated => "ATOM_CRONET_ENGINE_CREATED",
4647            AtomId::AtomCronetTrafficReported => "ATOM_CRONET_TRAFFIC_REPORTED",
4648            AtomId::AtomCronetEngineBuilderInitialized => "ATOM_CRONET_ENGINE_BUILDER_INITIALIZED",
4649            AtomId::AtomCronetHttpFlagsInitialized => "ATOM_CRONET_HTTP_FLAGS_INITIALIZED",
4650            AtomId::AtomCronetInitialized => "ATOM_CRONET_INITIALIZED",
4651            AtomId::AtomDesktopModeUiChanged => "ATOM_DESKTOP_MODE_UI_CHANGED",
4652            AtomId::AtomDesktopModeSessionTaskUpdate => "ATOM_DESKTOP_MODE_SESSION_TASK_UPDATE",
4653            AtomId::AtomDesktopModeTaskSizeUpdated => "ATOM_DESKTOP_MODE_TASK_SIZE_UPDATED",
4654            AtomId::AtomDeviceLockCheckInRequestReported => "ATOM_DEVICE_LOCK_CHECK_IN_REQUEST_REPORTED",
4655            AtomId::AtomDeviceLockProvisioningCompleteReported => "ATOM_DEVICE_LOCK_PROVISIONING_COMPLETE_REPORTED",
4656            AtomId::AtomDeviceLockKioskAppRequestReported => "ATOM_DEVICE_LOCK_KIOSK_APP_REQUEST_REPORTED",
4657            AtomId::AtomDeviceLockCheckInRetryReported => "ATOM_DEVICE_LOCK_CHECK_IN_RETRY_REPORTED",
4658            AtomId::AtomDeviceLockProvisionFailureReported => "ATOM_DEVICE_LOCK_PROVISION_FAILURE_REPORTED",
4659            AtomId::AtomDeviceLockLockUnlockDeviceFailureReported => "ATOM_DEVICE_LOCK_LOCK_UNLOCK_DEVICE_FAILURE_REPORTED",
4660            AtomId::AtomDevicePolicyManagementMode => "ATOM_DEVICE_POLICY_MANAGEMENT_MODE",
4661            AtomId::AtomDevicePolicyState => "ATOM_DEVICE_POLICY_STATE",
4662            AtomId::AtomDisplayModeDirectorVoteChanged => "ATOM_DISPLAY_MODE_DIRECTOR_VOTE_CHANGED",
4663            AtomId::AtomExternalDisplayStateChanged => "ATOM_EXTERNAL_DISPLAY_STATE_CHANGED",
4664            AtomId::AtomDndStateChanged => "ATOM_DND_STATE_CHANGED",
4665            AtomId::AtomDreamSettingChanged => "ATOM_DREAM_SETTING_CHANGED",
4666            AtomId::AtomDreamSettingSnapshot => "ATOM_DREAM_SETTING_SNAPSHOT",
4667            AtomId::AtomExpressEventReported => "ATOM_EXPRESS_EVENT_REPORTED",
4668            AtomId::AtomExpressHistogramSampleReported => "ATOM_EXPRESS_HISTOGRAM_SAMPLE_REPORTED",
4669            AtomId::AtomExpressUidEventReported => "ATOM_EXPRESS_UID_EVENT_REPORTED",
4670            AtomId::AtomExpressUidHistogramSampleReported => "ATOM_EXPRESS_UID_HISTOGRAM_SAMPLE_REPORTED",
4671            AtomId::AtomFederatedComputeApiCalled => "ATOM_FEDERATED_COMPUTE_API_CALLED",
4672            AtomId::AtomFederatedComputeTrainingEventReported => "ATOM_FEDERATED_COMPUTE_TRAINING_EVENT_REPORTED",
4673            AtomId::AtomExampleIteratorNextLatencyReported => "ATOM_EXAMPLE_ITERATOR_NEXT_LATENCY_REPORTED",
4674            AtomId::AtomFullScreenIntentLaunched => "ATOM_FULL_SCREEN_INTENT_LAUNCHED",
4675            AtomId::AtomBalAllowed => "ATOM_BAL_ALLOWED",
4676            AtomId::AtomInTaskActivityStarted => "ATOM_IN_TASK_ACTIVITY_STARTED",
4677            AtomId::AtomDeviceOrientationChanged => "ATOM_DEVICE_ORIENTATION_CHANGED",
4678            AtomId::AtomCachedAppsHighWatermark => "ATOM_CACHED_APPS_HIGH_WATERMARK",
4679            AtomId::AtomStylusPredictionMetricsReported => "ATOM_STYLUS_PREDICTION_METRICS_REPORTED",
4680            AtomId::AtomUserRiskEventReported => "ATOM_USER_RISK_EVENT_REPORTED",
4681            AtomId::AtomMediaProjectionStateChanged => "ATOM_MEDIA_PROJECTION_STATE_CHANGED",
4682            AtomId::AtomMediaProjectionTargetChanged => "ATOM_MEDIA_PROJECTION_TARGET_CHANGED",
4683            AtomId::AtomExcessiveBinderProxyCountReported => "ATOM_EXCESSIVE_BINDER_PROXY_COUNT_REPORTED",
4684            AtomId::AtomProxyBytesTransferByFgBg => "ATOM_PROXY_BYTES_TRANSFER_BY_FG_BG",
4685            AtomId::AtomMobileBytesTransferByProcState => "ATOM_MOBILE_BYTES_TRANSFER_BY_PROC_STATE",
4686            AtomId::AtomBiometricFrrNotification => "ATOM_BIOMETRIC_FRR_NOTIFICATION",
4687            AtomId::AtomSensitiveContentMediaProjectionSession => "ATOM_SENSITIVE_CONTENT_MEDIA_PROJECTION_SESSION",
4688            AtomId::AtomSensitiveNotificationAppProtectionSession => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_SESSION",
4689            AtomId::AtomSensitiveNotificationAppProtectionApplied => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_APPLIED",
4690            AtomId::AtomSensitiveNotificationRedaction => "ATOM_SENSITIVE_NOTIFICATION_REDACTION",
4691            AtomId::AtomSensitiveContentAppProtection => "ATOM_SENSITIVE_CONTENT_APP_PROTECTION",
4692            AtomId::AtomAppRestrictionStateChanged => "ATOM_APP_RESTRICTION_STATE_CHANGED",
4693            AtomId::AtomBatteryUsageStatsPerUid => "ATOM_BATTERY_USAGE_STATS_PER_UID",
4694            AtomId::AtomPostgcMemorySnapshot => "ATOM_POSTGC_MEMORY_SNAPSHOT",
4695            AtomId::AtomPowerSaveTempAllowlistChanged => "ATOM_POWER_SAVE_TEMP_ALLOWLIST_CHANGED",
4696            AtomId::AtomAppOpAccessTracked => "ATOM_APP_OP_ACCESS_TRACKED",
4697            AtomId::AtomContentOrFileUriEventReported => "ATOM_CONTENT_OR_FILE_URI_EVENT_REPORTED",
4698            AtomId::AtomApplicationGrammaticalInflectionChanged => "ATOM_APPLICATION_GRAMMATICAL_INFLECTION_CHANGED",
4699            AtomId::AtomSystemGrammaticalInflectionChanged => "ATOM_SYSTEM_GRAMMATICAL_INFLECTION_CHANGED",
4700            AtomId::AtomBatteryHealth => "ATOM_BATTERY_HEALTH",
4701            AtomId::AtomHdmiEarcStatusReported => "ATOM_HDMI_EARC_STATUS_REPORTED",
4702            AtomId::AtomHdmiSoundbarModeStatusReported => "ATOM_HDMI_SOUNDBAR_MODE_STATUS_REPORTED",
4703            AtomId::AtomHealthConnectApiCalled => "ATOM_HEALTH_CONNECT_API_CALLED",
4704            AtomId::AtomHealthConnectUsageStats => "ATOM_HEALTH_CONNECT_USAGE_STATS",
4705            AtomId::AtomHealthConnectStorageStats => "ATOM_HEALTH_CONNECT_STORAGE_STATS",
4706            AtomId::AtomHealthConnectApiInvoked => "ATOM_HEALTH_CONNECT_API_INVOKED",
4707            AtomId::AtomExerciseRouteApiCalled => "ATOM_EXERCISE_ROUTE_API_CALLED",
4708            AtomId::AtomHealthConnectExportInvoked => "ATOM_HEALTH_CONNECT_EXPORT_INVOKED",
4709            AtomId::AtomHealthConnectImportInvoked => "ATOM_HEALTH_CONNECT_IMPORT_INVOKED",
4710            AtomId::AtomHealthConnectExportImportStatsReported => "ATOM_HEALTH_CONNECT_EXPORT_IMPORT_STATS_REPORTED",
4711            AtomId::AtomHealthConnectUiImpression => "ATOM_HEALTH_CONNECT_UI_IMPRESSION",
4712            AtomId::AtomHealthConnectUiInteraction => "ATOM_HEALTH_CONNECT_UI_INTERACTION",
4713            AtomId::AtomHealthConnectAppOpenedReported => "ATOM_HEALTH_CONNECT_APP_OPENED_REPORTED",
4714            AtomId::AtomHotwordEgressSizeAtomReported => "ATOM_HOTWORD_EGRESS_SIZE_ATOM_REPORTED",
4715            AtomId::AtomIkeSessionTerminated => "ATOM_IKE_SESSION_TERMINATED",
4716            AtomId::AtomIkeLivenessCheckSessionValidated => "ATOM_IKE_LIVENESS_CHECK_SESSION_VALIDATED",
4717            AtomId::AtomNegotiatedSecurityAssociation => "ATOM_NEGOTIATED_SECURITY_ASSOCIATION",
4718            AtomId::AtomKeyboardConfigured => "ATOM_KEYBOARD_CONFIGURED",
4719            AtomId::AtomKeyboardSystemsEventReported => "ATOM_KEYBOARD_SYSTEMS_EVENT_REPORTED",
4720            AtomId::AtomInputdeviceUsageReported => "ATOM_INPUTDEVICE_USAGE_REPORTED",
4721            AtomId::AtomInputEventLatencyReported => "ATOM_INPUT_EVENT_LATENCY_REPORTED",
4722            AtomId::AtomTouchpadUsage => "ATOM_TOUCHPAD_USAGE",
4723            AtomId::AtomKernelOomKillOccurred => "ATOM_KERNEL_OOM_KILL_OCCURRED",
4724            AtomId::AtomEmergencyStateChanged => "ATOM_EMERGENCY_STATE_CHANGED",
4725            AtomId::AtomChreSignificantMotionStateChanged => "ATOM_CHRE_SIGNIFICANT_MOTION_STATE_CHANGED",
4726            AtomId::AtomPopulationDensityProviderLoadingReported => "ATOM_POPULATION_DENSITY_PROVIDER_LOADING_REPORTED",
4727            AtomId::AtomDensityBasedCoarseLocationsUsageReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_USAGE_REPORTED",
4728            AtomId::AtomDensityBasedCoarseLocationsProviderQueryReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_PROVIDER_QUERY_REPORTED",
4729            AtomId::AtomMediaCodecReclaimRequestCompleted => "ATOM_MEDIA_CODEC_RECLAIM_REQUEST_COMPLETED",
4730            AtomId::AtomMediaCodecStarted => "ATOM_MEDIA_CODEC_STARTED",
4731            AtomId::AtomMediaCodecStopped => "ATOM_MEDIA_CODEC_STOPPED",
4732            AtomId::AtomMediaCodecRendered => "ATOM_MEDIA_CODEC_RENDERED",
4733            AtomId::AtomMediaEditingEndedReported => "ATOM_MEDIA_EDITING_ENDED_REPORTED",
4734            AtomId::AtomMteState => "ATOM_MTE_STATE",
4735            AtomId::AtomMicroxrDeviceBootCompleteReported => "ATOM_MICROXR_DEVICE_BOOT_COMPLETE_REPORTED",
4736            AtomId::AtomNfcObserveModeStateChanged => "ATOM_NFC_OBSERVE_MODE_STATE_CHANGED",
4737            AtomId::AtomNfcFieldChanged => "ATOM_NFC_FIELD_CHANGED",
4738            AtomId::AtomNfcPollingLoopNotificationReported => "ATOM_NFC_POLLING_LOOP_NOTIFICATION_REPORTED",
4739            AtomId::AtomNfcProprietaryCapabilitiesReported => "ATOM_NFC_PROPRIETARY_CAPABILITIES_REPORTED",
4740            AtomId::AtomOndevicepersonalizationApiCalled => "ATOM_ONDEVICEPERSONALIZATION_API_CALLED",
4741            AtomId::AtomComponentStateChangedReported => "ATOM_COMPONENT_STATE_CHANGED_REPORTED",
4742            AtomId::AtomPdfLoadReported => "ATOM_PDF_LOAD_REPORTED",
4743            AtomId::AtomPdfApiUsageReported => "ATOM_PDF_API_USAGE_REPORTED",
4744            AtomId::AtomPdfSearchReported => "ATOM_PDF_SEARCH_REPORTED",
4745            AtomId::AtomPressureStallInformation => "ATOM_PRESSURE_STALL_INFORMATION",
4746            AtomId::AtomPermissionRationaleDialogViewed => "ATOM_PERMISSION_RATIONALE_DIALOG_VIEWED",
4747            AtomId::AtomPermissionRationaleDialogActionReported => "ATOM_PERMISSION_RATIONALE_DIALOG_ACTION_REPORTED",
4748            AtomId::AtomAppDataSharingUpdatesNotificationInteraction => "ATOM_APP_DATA_SHARING_UPDATES_NOTIFICATION_INTERACTION",
4749            AtomId::AtomAppDataSharingUpdatesFragmentViewed => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_VIEWED",
4750            AtomId::AtomAppDataSharingUpdatesFragmentActionReported => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_ACTION_REPORTED",
4751            AtomId::AtomEnhancedConfirmationDialogResultReported => "ATOM_ENHANCED_CONFIRMATION_DIALOG_RESULT_REPORTED",
4752            AtomId::AtomEnhancedConfirmationRestrictionCleared => "ATOM_ENHANCED_CONFIRMATION_RESTRICTION_CLEARED",
4753            AtomId::AtomPhotopickerSessionInfoReported => "ATOM_PHOTOPICKER_SESSION_INFO_REPORTED",
4754            AtomId::AtomPhotopickerApiInfoReported => "ATOM_PHOTOPICKER_API_INFO_REPORTED",
4755            AtomId::AtomPhotopickerUiEventLogged => "ATOM_PHOTOPICKER_UI_EVENT_LOGGED",
4756            AtomId::AtomPhotopickerMediaItemStatusReported => "ATOM_PHOTOPICKER_MEDIA_ITEM_STATUS_REPORTED",
4757            AtomId::AtomPhotopickerPreviewInfoLogged => "ATOM_PHOTOPICKER_PREVIEW_INFO_LOGGED",
4758            AtomId::AtomPhotopickerMenuInteractionLogged => "ATOM_PHOTOPICKER_MENU_INTERACTION_LOGGED",
4759            AtomId::AtomPhotopickerBannerInteractionLogged => "ATOM_PHOTOPICKER_BANNER_INTERACTION_LOGGED",
4760            AtomId::AtomPhotopickerMediaLibraryInfoLogged => "ATOM_PHOTOPICKER_MEDIA_LIBRARY_INFO_LOGGED",
4761            AtomId::AtomPhotopickerPageInfoLogged => "ATOM_PHOTOPICKER_PAGE_INFO_LOGGED",
4762            AtomId::AtomPhotopickerMediaGridSyncInfoReported => "ATOM_PHOTOPICKER_MEDIA_GRID_SYNC_INFO_REPORTED",
4763            AtomId::AtomPhotopickerAlbumSyncInfoReported => "ATOM_PHOTOPICKER_ALBUM_SYNC_INFO_REPORTED",
4764            AtomId::AtomPhotopickerSearchInfoReported => "ATOM_PHOTOPICKER_SEARCH_INFO_REPORTED",
4765            AtomId::AtomSearchDataExtractionDetailsReported => "ATOM_SEARCH_DATA_EXTRACTION_DETAILS_REPORTED",
4766            AtomId::AtomEmbeddedPhotopickerInfoReported => "ATOM_EMBEDDED_PHOTOPICKER_INFO_REPORTED",
4767            AtomId::AtomAtom9999 => "ATOM_ATOM_9999",
4768            AtomId::AtomAtom99999 => "ATOM_ATOM_99999",
4769            AtomId::AtomScreenOffReported => "ATOM_SCREEN_OFF_REPORTED",
4770            AtomId::AtomScreenTimeoutOverrideReported => "ATOM_SCREEN_TIMEOUT_OVERRIDE_REPORTED",
4771            AtomId::AtomScreenInteractiveSessionReported => "ATOM_SCREEN_INTERACTIVE_SESSION_REPORTED",
4772            AtomId::AtomScreenDimReported => "ATOM_SCREEN_DIM_REPORTED",
4773            AtomId::AtomMediaProviderDatabaseRollbackReported => "ATOM_MEDIA_PROVIDER_DATABASE_ROLLBACK_REPORTED",
4774            AtomId::AtomBackupSetupStatusReported => "ATOM_BACKUP_SETUP_STATUS_REPORTED",
4775            AtomId::AtomRangingSessionConfigured => "ATOM_RANGING_SESSION_CONFIGURED",
4776            AtomId::AtomRangingSessionStarted => "ATOM_RANGING_SESSION_STARTED",
4777            AtomId::AtomRangingSessionClosed => "ATOM_RANGING_SESSION_CLOSED",
4778            AtomId::AtomRangingTechnologyStarted => "ATOM_RANGING_TECHNOLOGY_STARTED",
4779            AtomId::AtomRangingTechnologyStopped => "ATOM_RANGING_TECHNOLOGY_STOPPED",
4780            AtomId::AtomRkpdPoolStats => "ATOM_RKPD_POOL_STATS",
4781            AtomId::AtomRkpdClientOperation => "ATOM_RKPD_CLIENT_OPERATION",
4782            AtomId::AtomSandboxApiCalled => "ATOM_SANDBOX_API_CALLED",
4783            AtomId::AtomSandboxActivityEventOccurred => "ATOM_SANDBOX_ACTIVITY_EVENT_OCCURRED",
4784            AtomId::AtomSdkSandboxRestrictedAccessInSession => "ATOM_SDK_SANDBOX_RESTRICTED_ACCESS_IN_SESSION",
4785            AtomId::AtomSandboxSdkStorage => "ATOM_SANDBOX_SDK_STORAGE",
4786            AtomId::AtomSelinuxAuditLog => "ATOM_SELINUX_AUDIT_LOG",
4787            AtomId::AtomSettingsSpaReported => "ATOM_SETTINGS_SPA_REPORTED",
4788            AtomId::AtomTestExtensionAtomReported => "ATOM_TEST_EXTENSION_ATOM_REPORTED",
4789            AtomId::AtomTestRestrictedAtomReported => "ATOM_TEST_RESTRICTED_ATOM_REPORTED",
4790            AtomId::AtomStatsSocketLossReported => "ATOM_STATS_SOCKET_LOSS_REPORTED",
4791            AtomId::AtomLockscreenShortcutSelected => "ATOM_LOCKSCREEN_SHORTCUT_SELECTED",
4792            AtomId::AtomLockscreenShortcutTriggered => "ATOM_LOCKSCREEN_SHORTCUT_TRIGGERED",
4793            AtomId::AtomLauncherImpressionEventV2 => "ATOM_LAUNCHER_IMPRESSION_EVENT_V2",
4794            AtomId::AtomDisplaySwitchLatencyTracked => "ATOM_DISPLAY_SWITCH_LATENCY_TRACKED",
4795            AtomId::AtomNotificationListenerService => "ATOM_NOTIFICATION_LISTENER_SERVICE",
4796            AtomId::AtomNavHandleTouchPoints => "ATOM_NAV_HANDLE_TOUCH_POINTS",
4797            AtomId::AtomCommunalHubWidgetEventReported => "ATOM_COMMUNAL_HUB_WIDGET_EVENT_REPORTED",
4798            AtomId::AtomCommunalHubSnapshot => "ATOM_COMMUNAL_HUB_SNAPSHOT",
4799            AtomId::AtomEmergencyNumberDialed => "ATOM_EMERGENCY_NUMBER_DIALED",
4800            AtomId::AtomCallStats => "ATOM_CALL_STATS",
4801            AtomId::AtomCallAudioRouteStats => "ATOM_CALL_AUDIO_ROUTE_STATS",
4802            AtomId::AtomTelecomApiStats => "ATOM_TELECOM_API_STATS",
4803            AtomId::AtomTelecomErrorStats => "ATOM_TELECOM_ERROR_STATS",
4804            AtomId::AtomCellularRadioPowerStateChanged => "ATOM_CELLULAR_RADIO_POWER_STATE_CHANGED",
4805            AtomId::AtomEmergencyNumbersInfo => "ATOM_EMERGENCY_NUMBERS_INFO",
4806            AtomId::AtomDataNetworkValidation => "ATOM_DATA_NETWORK_VALIDATION",
4807            AtomId::AtomDataRatStateChanged => "ATOM_DATA_RAT_STATE_CHANGED",
4808            AtomId::AtomConnectedChannelChanged => "ATOM_CONNECTED_CHANNEL_CHANGED",
4809            AtomId::AtomIwlanUnderlyingNetworkValidationResultReported => "ATOM_IWLAN_UNDERLYING_NETWORK_VALIDATION_RESULT_REPORTED",
4810            AtomId::AtomQualifiedRatListChanged => "ATOM_QUALIFIED_RAT_LIST_CHANGED",
4811            AtomId::AtomQnsImsCallDropStats => "ATOM_QNS_IMS_CALL_DROP_STATS",
4812            AtomId::AtomQnsFallbackRestrictionChanged => "ATOM_QNS_FALLBACK_RESTRICTION_CHANGED",
4813            AtomId::AtomQnsRatPreferenceMismatchInfo => "ATOM_QNS_RAT_PREFERENCE_MISMATCH_INFO",
4814            AtomId::AtomQnsHandoverTimeMillis => "ATOM_QNS_HANDOVER_TIME_MILLIS",
4815            AtomId::AtomQnsHandoverPingpong => "ATOM_QNS_HANDOVER_PINGPONG",
4816            AtomId::AtomSatelliteController => "ATOM_SATELLITE_CONTROLLER",
4817            AtomId::AtomSatelliteSession => "ATOM_SATELLITE_SESSION",
4818            AtomId::AtomSatelliteIncomingDatagram => "ATOM_SATELLITE_INCOMING_DATAGRAM",
4819            AtomId::AtomSatelliteOutgoingDatagram => "ATOM_SATELLITE_OUTGOING_DATAGRAM",
4820            AtomId::AtomSatelliteProvision => "ATOM_SATELLITE_PROVISION",
4821            AtomId::AtomSatelliteSosMessageRecommender => "ATOM_SATELLITE_SOS_MESSAGE_RECOMMENDER",
4822            AtomId::AtomCarrierRoamingSatelliteSession => "ATOM_CARRIER_ROAMING_SATELLITE_SESSION",
4823            AtomId::AtomCarrierRoamingSatelliteControllerStats => "ATOM_CARRIER_ROAMING_SATELLITE_CONTROLLER_STATS",
4824            AtomId::AtomControllerStatsPerPackage => "ATOM_CONTROLLER_STATS_PER_PACKAGE",
4825            AtomId::AtomSatelliteEntitlement => "ATOM_SATELLITE_ENTITLEMENT",
4826            AtomId::AtomSatelliteConfigUpdater => "ATOM_SATELLITE_CONFIG_UPDATER",
4827            AtomId::AtomSatelliteAccessController => "ATOM_SATELLITE_ACCESS_CONTROLLER",
4828            AtomId::AtomCellularIdentifierDisclosed => "ATOM_CELLULAR_IDENTIFIER_DISCLOSED",
4829            AtomId::AtomThreadnetworkTelemetryDataReported => "ATOM_THREADNETWORK_TELEMETRY_DATA_REPORTED",
4830            AtomId::AtomThreadnetworkTopoEntryRepeated => "ATOM_THREADNETWORK_TOPO_ENTRY_REPEATED",
4831            AtomId::AtomThreadnetworkDeviceInfoReported => "ATOM_THREADNETWORK_DEVICE_INFO_REPORTED",
4832            AtomId::AtomBootIntegrityInfoReported => "ATOM_BOOT_INTEGRITY_INFO_REPORTED",
4833            AtomId::AtomTvLowPowerStandbyPolicy => "ATOM_TV_LOW_POWER_STANDBY_POLICY",
4834            AtomId::AtomExternalTvInputEvent => "ATOM_EXTERNAL_TV_INPUT_EVENT",
4835            AtomId::AtomTestUprobestatsAtomReported => "ATOM_TEST_UPROBESTATS_ATOM_REPORTED",
4836            AtomId::AtomUwbActivityInfo => "ATOM_UWB_ACTIVITY_INFO",
4837            AtomId::AtomMediatorUpdated => "ATOM_MEDIATOR_UPDATED",
4838            AtomId::AtomSysproxyBluetoothBytesTransfer => "ATOM_SYSPROXY_BLUETOOTH_BYTES_TRANSFER",
4839            AtomId::AtomSysproxyConnectionUpdated => "ATOM_SYSPROXY_CONNECTION_UPDATED",
4840            AtomId::AtomWearCompanionConnectionState => "ATOM_WEAR_COMPANION_CONNECTION_STATE",
4841            AtomId::AtomMediaActionReported => "ATOM_MEDIA_ACTION_REPORTED",
4842            AtomId::AtomMediaControlsLaunched => "ATOM_MEDIA_CONTROLS_LAUNCHED",
4843            AtomId::AtomMediaSessionStateChanged => "ATOM_MEDIA_SESSION_STATE_CHANGED",
4844            AtomId::AtomWearMediaOutputSwitcherDeviceScanApiLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_API_LATENCY",
4845            AtomId::AtomWearMediaOutputSwitcherSassDeviceUnavailable => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_SASS_DEVICE_UNAVAILABLE",
4846            AtomId::AtomWearMediaOutputSwitcherFastpairApiTimeout => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FASTPAIR_API_TIMEOUT",
4847            AtomId::AtomWearModeStateChanged => "ATOM_WEAR_MODE_STATE_CHANGED",
4848            AtomId::AtomRendererInitialized => "ATOM_RENDERER_INITIALIZED",
4849            AtomId::AtomSchemaVersionReceived => "ATOM_SCHEMA_VERSION_RECEIVED",
4850            AtomId::AtomLayoutInspected => "ATOM_LAYOUT_INSPECTED",
4851            AtomId::AtomLayoutExpressionInspected => "ATOM_LAYOUT_EXPRESSION_INSPECTED",
4852            AtomId::AtomLayoutAnimationsInspected => "ATOM_LAYOUT_ANIMATIONS_INSPECTED",
4853            AtomId::AtomMaterialComponentsInspected => "ATOM_MATERIAL_COMPONENTS_INSPECTED",
4854            AtomId::AtomTileRequested => "ATOM_TILE_REQUESTED",
4855            AtomId::AtomStateResponseReceived => "ATOM_STATE_RESPONSE_RECEIVED",
4856            AtomId::AtomTileResponseReceived => "ATOM_TILE_RESPONSE_RECEIVED",
4857            AtomId::AtomInflationFinished => "ATOM_INFLATION_FINISHED",
4858            AtomId::AtomInflationFailed => "ATOM_INFLATION_FAILED",
4859            AtomId::AtomIgnoredInflationFailuresReported => "ATOM_IGNORED_INFLATION_FAILURES_REPORTED",
4860            AtomId::AtomDrawableRendered => "ATOM_DRAWABLE_RENDERED",
4861            AtomId::AtomWearTimeSyncRequested => "ATOM_WEAR_TIME_SYNC_REQUESTED",
4862            AtomId::AtomWearTimeUpdateStarted => "ATOM_WEAR_TIME_UPDATE_STARTED",
4863            AtomId::AtomWearTimeSyncAttemptCompleted => "ATOM_WEAR_TIME_SYNC_ATTEMPT_COMPLETED",
4864            AtomId::AtomWearTimeChanged => "ATOM_WEAR_TIME_CHANGED",
4865            AtomId::AtomWearAdaptiveSuspendStatsReported => "ATOM_WEAR_ADAPTIVE_SUSPEND_STATS_REPORTED",
4866            AtomId::AtomWearPowerAnomalyServiceOperationalStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_OPERATIONAL_STATS_REPORTED",
4867            AtomId::AtomWearPowerAnomalyServiceEventStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_EVENT_STATS_REPORTED",
4868            AtomId::AtomWsWearTimeSession => "ATOM_WS_WEAR_TIME_SESSION",
4869            AtomId::AtomWsIncomingCallActionReported => "ATOM_WS_INCOMING_CALL_ACTION_REPORTED",
4870            AtomId::AtomWsCallDisconnectionReported => "ATOM_WS_CALL_DISCONNECTION_REPORTED",
4871            AtomId::AtomWsCallDurationReported => "ATOM_WS_CALL_DURATION_REPORTED",
4872            AtomId::AtomWsCallUserExperienceLatencyReported => "ATOM_WS_CALL_USER_EXPERIENCE_LATENCY_REPORTED",
4873            AtomId::AtomWsCallInteractionReported => "ATOM_WS_CALL_INTERACTION_REPORTED",
4874            AtomId::AtomWsOnBodyStateChanged => "ATOM_WS_ON_BODY_STATE_CHANGED",
4875            AtomId::AtomWsWatchFaceRestrictedComplicationsImpacted => "ATOM_WS_WATCH_FACE_RESTRICTED_COMPLICATIONS_IMPACTED",
4876            AtomId::AtomWsWatchFaceDefaultRestrictedComplicationsRemoved => "ATOM_WS_WATCH_FACE_DEFAULT_RESTRICTED_COMPLICATIONS_REMOVED",
4877            AtomId::AtomWsComplicationsImpactedNotificationEventReported => "ATOM_WS_COMPLICATIONS_IMPACTED_NOTIFICATION_EVENT_REPORTED",
4878            AtomId::AtomWsRemoteEventUsageReported => "ATOM_WS_REMOTE_EVENT_USAGE_REPORTED",
4879            AtomId::AtomWsBugreportRequested => "ATOM_WS_BUGREPORT_REQUESTED",
4880            AtomId::AtomWsBugreportTriggered => "ATOM_WS_BUGREPORT_TRIGGERED",
4881            AtomId::AtomWsBugreportFinished => "ATOM_WS_BUGREPORT_FINISHED",
4882            AtomId::AtomWsBugreportResultReceived => "ATOM_WS_BUGREPORT_RESULT_RECEIVED",
4883            AtomId::AtomWsStandaloneModeSnapshot => "ATOM_WS_STANDALONE_MODE_SNAPSHOT",
4884            AtomId::AtomWsFavoriteWatchFaceSnapshot => "ATOM_WS_FAVORITE_WATCH_FACE_SNAPSHOT",
4885            AtomId::AtomWsPhotosWatchFaceFeatureSnapshot => "ATOM_WS_PHOTOS_WATCH_FACE_FEATURE_SNAPSHOT",
4886            AtomId::AtomWsWatchFaceCustomizationSnapshot => "ATOM_WS_WATCH_FACE_CUSTOMIZATION_SNAPSHOT",
4887            AtomId::AtomWearPowerMenuOpened => "ATOM_WEAR_POWER_MENU_OPENED",
4888            AtomId::AtomWearAssistantOpened => "ATOM_WEAR_ASSISTANT_OPENED",
4889            AtomId::AtomFirstOverlayStateChanged => "ATOM_FIRST_OVERLAY_STATE_CHANGED",
4890            AtomId::AtomWifiAwareNdpReported => "ATOM_WIFI_AWARE_NDP_REPORTED",
4891            AtomId::AtomWifiAwareAttachReported => "ATOM_WIFI_AWARE_ATTACH_REPORTED",
4892            AtomId::AtomWifiSelfRecoveryTriggered => "ATOM_WIFI_SELF_RECOVERY_TRIGGERED",
4893            AtomId::AtomSoftApStarted => "ATOM_SOFT_AP_STARTED",
4894            AtomId::AtomSoftApStopped => "ATOM_SOFT_AP_STOPPED",
4895            AtomId::AtomWifiLockReleased => "ATOM_WIFI_LOCK_RELEASED",
4896            AtomId::AtomWifiLockDeactivated => "ATOM_WIFI_LOCK_DEACTIVATED",
4897            AtomId::AtomWifiConfigSaved => "ATOM_WIFI_CONFIG_SAVED",
4898            AtomId::AtomWifiAwareResourceUsingChanged => "ATOM_WIFI_AWARE_RESOURCE_USING_CHANGED",
4899            AtomId::AtomWifiAwareHalApiCalled => "ATOM_WIFI_AWARE_HAL_API_CALLED",
4900            AtomId::AtomWifiLocalOnlyRequestReceived => "ATOM_WIFI_LOCAL_ONLY_REQUEST_RECEIVED",
4901            AtomId::AtomWifiLocalOnlyRequestScanTriggered => "ATOM_WIFI_LOCAL_ONLY_REQUEST_SCAN_TRIGGERED",
4902            AtomId::AtomWifiThreadTaskExecuted => "ATOM_WIFI_THREAD_TASK_EXECUTED",
4903            AtomId::AtomWifiStateChanged => "ATOM_WIFI_STATE_CHANGED",
4904            AtomId::AtomPnoScanStarted => "ATOM_PNO_SCAN_STARTED",
4905            AtomId::AtomPnoScanStopped => "ATOM_PNO_SCAN_STOPPED",
4906            AtomId::AtomWifiIsUnusableReported => "ATOM_WIFI_IS_UNUSABLE_REPORTED",
4907            AtomId::AtomWifiApCapabilitiesReported => "ATOM_WIFI_AP_CAPABILITIES_REPORTED",
4908            AtomId::AtomSoftApStateChanged => "ATOM_SOFT_AP_STATE_CHANGED",
4909            AtomId::AtomScorerPredictionResultReported => "ATOM_SCORER_PREDICTION_RESULT_REPORTED",
4910            AtomId::AtomWifiAwareCapabilities => "ATOM_WIFI_AWARE_CAPABILITIES",
4911            AtomId::AtomWifiModuleInfo => "ATOM_WIFI_MODULE_INFO",
4912            AtomId::AtomWifiSettingInfo => "ATOM_WIFI_SETTING_INFO",
4913            AtomId::AtomWifiComplexSettingInfo => "ATOM_WIFI_COMPLEX_SETTING_INFO",
4914            AtomId::AtomWifiConfiguredNetworkInfo => "ATOM_WIFI_CONFIGURED_NETWORK_INFO",
4915        }
4916    }
4917}
4918/// This file is named 'statsd_tracing_config.proto' rather than
4919/// 'statsd_config.proto' (which would be more consistent with the other
4920/// config protos) so it doesn't show up and confuse folks looking for
4921/// the existing statsd_config.proto for configuring statsd itself.
4922/// Same for the config proto itself.
4923#[derive(Clone, PartialEq, ::prost::Message)]
4924pub struct StatsdTracingConfig {
4925    /// This is for the common case of the atom id being known in the enum AtomId.
4926    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
4927    pub push_atom_id: ::prost::alloc::vec::Vec<i32>,
4928    /// Escape hatch for Atom IDs that are not yet in the AtomId enum
4929    /// (e.g. non-upstream atoms that don't exist in AOSP).
4930    #[prost(int32, repeated, packed="false", tag="2")]
4931    pub raw_push_atom_id: ::prost::alloc::vec::Vec<i32>,
4932    #[prost(message, repeated, tag="3")]
4933    pub pull_config: ::prost::alloc::vec::Vec<StatsdPullAtomConfig>,
4934}
4935#[derive(Clone, PartialEq, ::prost::Message)]
4936pub struct StatsdPullAtomConfig {
4937    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
4938    pub pull_atom_id: ::prost::alloc::vec::Vec<i32>,
4939    #[prost(int32, repeated, packed="false", tag="2")]
4940    pub raw_pull_atom_id: ::prost::alloc::vec::Vec<i32>,
4941    #[prost(int32, optional, tag="3")]
4942    pub pull_frequency_ms: ::core::option::Option<i32>,
4943    #[prost(string, repeated, tag="4")]
4944    pub packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4945}
4946/// Configuration that allows to boost the priority of the 'traced' or
4947/// 'traced_probs' processes, by changing the scheduler configuration.
4948/// Only supported on Linux and Android the boosted process must have
4949/// 'CAP_SYS_NICE' capability.
4950#[derive(Clone, PartialEq, ::prost::Message)]
4951pub struct PriorityBoostConfig {
4952    #[prost(enumeration="priority_boost_config::BoostPolicy", optional, tag="1")]
4953    pub policy: ::core::option::Option<i32>,
4954    #[prost(uint32, optional, tag="2")]
4955    pub priority: ::core::option::Option<u32>,
4956}
4957/// Nested message and enum types in `PriorityBoostConfig`.
4958pub mod priority_boost_config {
4959    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
4960    #[repr(i32)]
4961    pub enum BoostPolicy {
4962        PolicyUnspecified = 0,
4963        /// The default policy (e.g., CFS on Linux). Priority range: [0; 20]
4964        /// priority is interpreted as -(nice), i.e., 1 is slightly higher prio
4965        /// than default 0, 20 is the highest priority.
4966        /// Note: this is the opposite semantic of the cmdline nice, and is done for
4967        /// consistency with POLICY_SCHED_FIFO, so higher number == higher prio.
4968        PolicySchedOther = 1,
4969        /// The Real-time policy, Priority range: [1; 99]
4970        PolicySchedFifo = 2,
4971    }
4972    impl BoostPolicy {
4973        /// String value of the enum field names used in the ProtoBuf definition.
4974        ///
4975        /// The values are not transformed in any way and thus are considered stable
4976        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
4977        pub fn as_str_name(&self) -> &'static str {
4978            match self {
4979                BoostPolicy::PolicyUnspecified => "POLICY_UNSPECIFIED",
4980                BoostPolicy::PolicySchedOther => "POLICY_SCHED_OTHER",
4981                BoostPolicy::PolicySchedFifo => "POLICY_SCHED_FIFO",
4982            }
4983        }
4984    }
4985}
4986/// Config for polling process-related information from /proc/pid/status and
4987/// related files on Linux.
4988///
4989/// Data source name: "linux.process_stats".
4990#[derive(Clone, PartialEq, ::prost::Message)]
4991pub struct ProcessStatsConfig {
4992    #[prost(enumeration="process_stats_config::Quirks", repeated, packed="false", tag="1")]
4993    pub quirks: ::prost::alloc::vec::Vec<i32>,
4994    /// If enabled all processes will be scanned and dumped when the trace starts.
4995    #[prost(bool, optional, tag="2")]
4996    pub scan_all_processes_on_start: ::core::option::Option<bool>,
4997    /// If enabled thread names are also recoded (this is redundant if sched_switch
4998    /// is enabled).
4999    #[prost(bool, optional, tag="3")]
5000    pub record_thread_names: ::core::option::Option<bool>,
5001    /// If > 0 samples counters (see process_stats.proto) from
5002    /// /proc/pid/status and oom_score_adj every X ms.
5003    /// This is required to be > 100ms to avoid excessive CPU usage.
5004    #[prost(uint32, optional, tag="4")]
5005    pub proc_stats_poll_ms: ::core::option::Option<u32>,
5006    // id 5 never used
5007
5008    /// Explicit caching period during which the polling won't re-emit identical
5009    /// counter values. This is required to be either = 0 or a multiple of
5010    /// |proc_stats_poll_ms| (default: |proc_stats_poll_ms|). Non-multiples will be
5011    /// rounded down to the nearest multiple.
5012    #[prost(uint32, optional, tag="6")]
5013    pub proc_stats_cache_ttl_ms: ::core::option::Option<u32>,
5014    /// If true and |proc_stats_poll_ms| is set, sample memory stats from
5015    /// /proc/pid/smaps_rollup.
5016    ///
5017    /// Android: does NOT work with the system daemons by default, as it requires
5018    /// running the recording process (traced_probes or tracebox) as root. It is
5019    /// possible to avoid the root requirement, but the exact steps depend on the
5020    /// Linux distibution. The proc file requires passing a PTRACE_MODE_READ
5021    /// check, and might be further covered by the procfs "hidepid" mount option.
5022    #[prost(bool, optional, tag="10")]
5023    pub scan_smaps_rollup: ::core::option::Option<bool>,
5024    /// If true: process descriptions will include process age (starttime in
5025    /// /proc/pid/stat).
5026    /// Introduced in: perfetto v44.
5027    #[prost(bool, optional, tag="11")]
5028    pub record_process_age: ::core::option::Option<bool>,
5029    /// If true and |proc_stats_poll_ms| is set, process stats will include time
5030    /// spent running in user/kernel mode (utime/stime in /proc/pid/stat).
5031    /// Introduced in: perfetto v44.
5032    #[prost(bool, optional, tag="12")]
5033    pub record_process_runtime: ::core::option::Option<bool>,
5034    /// If true obtain per-process dmabuf resident set size from
5035    /// /proc/pid/dmabuf_rss.
5036    /// This feature is not in upstream linux, and is available only on some
5037    /// Android kernels.
5038    #[prost(bool, optional, tag="13")]
5039    pub record_process_dmabuf_rss: ::core::option::Option<bool>,
5040    /// WARNING: unmaintained and deprecated. If true this will resolve file
5041    /// descriptors for each process so these can be mapped to their actual device
5042    /// or file. Requires raw_syscalls/sys_{enter,exit} ftrace events to be enabled
5043    /// or new fds opened after initially scanning a process will not be
5044    /// recognized.
5045    #[prost(bool, optional, tag="9")]
5046    pub resolve_process_fds: ::core::option::Option<bool>,
5047}
5048/// Nested message and enum types in `ProcessStatsConfig`.
5049pub mod process_stats_config {
5050    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5051    #[repr(i32)]
5052    pub enum Quirks {
5053        Unspecified = 0,
5054        /// This has been deprecated and ignored as per 2018-05-01. Full scan at
5055        /// startup is now disabled by default and can be re-enabled using the
5056        /// |scan_all_processes_on_start| arg.
5057        DisableInitialDump = 1,
5058        /// If set, disables the special interaction with "linux.ftrace" data source,
5059        /// where the process stats rescrapes any thread id seen in the ftrace
5060        /// stream.
5061        DisableOnDemand = 2,
5062    }
5063    impl Quirks {
5064        /// String value of the enum field names used in the ProtoBuf definition.
5065        ///
5066        /// The values are not transformed in any way and thus are considered stable
5067        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5068        pub fn as_str_name(&self) -> &'static str {
5069            match self {
5070                Quirks::Unspecified => "QUIRKS_UNSPECIFIED",
5071                Quirks::DisableInitialDump => "DISABLE_INITIAL_DUMP",
5072                Quirks::DisableOnDemand => "DISABLE_ON_DEMAND",
5073            }
5074        }
5075    }
5076}
5077/// Configuration for go/heapprofd.
5078/// Next id: 28
5079#[derive(Clone, PartialEq, ::prost::Message)]
5080pub struct HeapprofdConfig {
5081    /// Sampling rate for all heaps not specified via heap_sampling_intervals.
5082    ///
5083    /// These are:
5084    /// * All heaps if heap_sampling_intervals is empty.
5085    /// * Those profiled due to all_heaps and not named in heaps if
5086    ///    heap_sampling_intervals is not empty.
5087    /// * The implicit libc.malloc heap if heaps is empty.
5088    ///
5089    /// Set to 1 for perfect accuracy.
5090    /// Otherwise, sample every sample_interval_bytes on average.
5091    ///
5092    /// See
5093    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#sampling-interval>
5094    /// for more details.
5095    ///
5096    /// BUGS
5097    /// Before Android 12, setting this to 0 would crash the target process.
5098    ///
5099    /// N.B. This must be explicitly set to a non-zero value for all heaps (with
5100    /// this field or with heap_sampling_intervals), otherwise the producer will
5101    /// not start.
5102    #[prost(uint64, optional, tag="1")]
5103    pub sampling_interval_bytes: ::core::option::Option<u64>,
5104    /// If less than the given numbers of bytes are left free in the shared
5105    /// memory buffer, increase sampling interval by a factor of two.
5106    /// Adaptive sampling is disabled when set to 0.
5107    #[prost(uint64, optional, tag="24")]
5108    pub adaptive_sampling_shmem_threshold: ::core::option::Option<u64>,
5109    /// Stop doubling the sampling_interval once the sampling interval has reached
5110    /// this value.
5111    #[prost(uint64, optional, tag="25")]
5112    pub adaptive_sampling_max_sampling_interval_bytes: ::core::option::Option<u64>,
5113    /// E.g. surfaceflinger, com.android.phone
5114    /// This input is normalized in the following way: if it contains slashes,
5115    /// everything up to the last slash is discarded. If it contains "@",
5116    /// everything after the first @ is discared.
5117    /// E.g. /system/bin/surfaceflinger@1.0 normalizes to surfaceflinger.
5118    /// This transformation is also applied to the processes' command lines when
5119    /// matching.
5120    #[prost(string, repeated, tag="2")]
5121    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5122    /// For watermark based triggering or local debugging.
5123    #[prost(uint64, repeated, packed="false", tag="4")]
5124    pub pid: ::prost::alloc::vec::Vec<u64>,
5125    /// Only profile target if it was installed by one of the packages given.
5126    /// Special values are:
5127    /// * @system: installed on the system partition
5128    /// * @product: installed on the product partition
5129    /// * @null: sideloaded
5130    /// Supported on Android 12+.
5131    #[prost(string, repeated, tag="26")]
5132    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5133    /// Which heaps to sample, e.g. "libc.malloc". If left empty, only samples
5134    /// "malloc".
5135    ///
5136    /// Introduced in Android 12.
5137    #[prost(string, repeated, tag="20")]
5138    pub heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5139    /// Which heaps not to sample, e.g. "libc.malloc". This is useful when used in
5140    /// combination with all_heaps;
5141    ///
5142    /// Introduced in Android 12.
5143    #[prost(string, repeated, tag="27")]
5144    pub exclude_heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5145    #[prost(bool, optional, tag="23")]
5146    pub stream_allocations: ::core::option::Option<bool>,
5147    /// If given, needs to be the same length as heaps and gives the sampling
5148    /// interval for the respective entry in heaps.
5149    ///
5150    /// Otherwise, sampling_interval_bytes is used.
5151    ///
5152    /// It is recommended to set sampling_interval_bytes to a reasonable default
5153    /// value when using this, as a value of 0 for sampling_interval_bytes will
5154    /// crash the target process before Android 12.
5155    ///
5156    /// Introduced in Android 12.
5157    ///
5158    /// All values must be non-zero or the producer will not start.
5159    #[prost(uint64, repeated, packed="false", tag="22")]
5160    pub heap_sampling_intervals: ::prost::alloc::vec::Vec<u64>,
5161    /// Sample all heaps registered by target process. Introduced in Android 12.
5162    #[prost(bool, optional, tag="21")]
5163    pub all_heaps: ::core::option::Option<bool>,
5164    /// Profile all processes eligible for profiling on the system.
5165    /// See
5166    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#heapprofd-targets>
5167    /// for which processes are eligible.
5168    ///
5169    /// On unmodified userdebug builds, this will lead to system crashes. Zygote
5170    /// will crash when trying to launch a new process as it will have an
5171    /// unexpected open socket to heapprofd.
5172    ///
5173    /// heapprofd will likely be overloaded by the amount of data for low
5174    /// sampling intervals.
5175    #[prost(bool, optional, tag="5")]
5176    pub all: ::core::option::Option<bool>,
5177    /// Do not profile processes whose anon RSS + swap < given value.
5178    /// Introduced in Android 11.
5179    #[prost(uint32, optional, tag="15")]
5180    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
5181    /// Stop profile if heapprofd memory usage goes beyond the given value.
5182    /// Introduced in Android 11.
5183    #[prost(uint32, optional, tag="16")]
5184    pub max_heapprofd_memory_kb: ::core::option::Option<u32>,
5185    /// Stop profile if heapprofd CPU time since start of this data-source
5186    /// goes beyond given value.
5187    /// Introduced in Android 11.
5188    #[prost(uint64, optional, tag="17")]
5189    pub max_heapprofd_cpu_secs: ::core::option::Option<u64>,
5190    /// Do not emit function names for mappings starting with this prefix.
5191    /// E.g. /system to not emit symbols for any system libraries.
5192    #[prost(string, repeated, tag="7")]
5193    pub skip_symbol_prefix: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5194    /// Dump at a predefined interval.
5195    #[prost(message, optional, tag="6")]
5196    pub continuous_dump_config: ::core::option::Option<heapprofd_config::ContinuousDumpConfig>,
5197    /// Size of the shared memory buffer between the profiled processes and
5198    /// heapprofd. Defaults to 8 MiB. If larger than 500 MiB, truncated to 500
5199    /// MiB.
5200    ///
5201    /// Needs to be:
5202    /// * at least 8192,
5203    /// * a power of two,
5204    /// * a multiple of 4096.
5205    #[prost(uint64, optional, tag="8")]
5206    pub shmem_size_bytes: ::core::option::Option<u64>,
5207    /// When the shmem buffer is full, block the client instead of ending the
5208    /// trace. Use with caution as this will significantly slow down the target
5209    /// process.
5210    #[prost(bool, optional, tag="9")]
5211    pub block_client: ::core::option::Option<bool>,
5212    /// If set, stop the trace session after blocking the client for this
5213    /// timeout. Needs to be larger than 100 us, otherwise no retries are done.
5214    /// Introduced in Android 11.
5215    #[prost(uint32, optional, tag="14")]
5216    pub block_client_timeout_us: ::core::option::Option<u32>,
5217    /// Do not profile processes from startup, only match already running
5218    /// processes.
5219    ///
5220    /// Can not be set at the same time as no_running.
5221    /// Introduced in Android 11.
5222    #[prost(bool, optional, tag="10")]
5223    pub no_startup: ::core::option::Option<bool>,
5224    /// Do not profile running processes. Only match processes on startup.
5225    ///
5226    /// Can not be set at the same time as no_startup.
5227    /// Introduced in Android 11.
5228    #[prost(bool, optional, tag="11")]
5229    pub no_running: ::core::option::Option<bool>,
5230    /// Cause heapprofd to emit a single dump at the end, showing the memory usage
5231    /// at the point in time when the sampled heap usage of the process was at its
5232    /// maximum. This causes ProfilePacket.HeapSample.self_max to be set, and
5233    /// self_allocated and self_freed to not be set.
5234    /// Introduced in Android 11.
5235    #[prost(bool, optional, tag="13")]
5236    pub dump_at_max: ::core::option::Option<bool>,
5237    // FEATURE FLAGS. THERE BE DRAGONS.
5238
5239    /// Escape hatch if the session is being torn down because of a forked child
5240    /// that shares memory space, but is not correctly identified as a vforked
5241    /// child.
5242    /// Introduced in Android 11.
5243    #[prost(bool, optional, tag="18")]
5244    pub disable_fork_teardown: ::core::option::Option<bool>,
5245    /// We try to automatically detect when a target applicatation vforks but then
5246    /// does a memory allocation (or free). This auto-detection can be disabled
5247    /// with this.
5248    /// Introduced in Android 11.
5249    #[prost(bool, optional, tag="19")]
5250    pub disable_vfork_detection: ::core::option::Option<bool>,
5251}
5252/// Nested message and enum types in `HeapprofdConfig`.
5253pub mod heapprofd_config {
5254    #[derive(Clone, PartialEq, ::prost::Message)]
5255    pub struct ContinuousDumpConfig {
5256        /// ms to wait before first dump.
5257        #[prost(uint32, optional, tag="5")]
5258        pub dump_phase_ms: ::core::option::Option<u32>,
5259        /// ms to wait between following dumps.
5260        #[prost(uint32, optional, tag="6")]
5261        pub dump_interval_ms: ::core::option::Option<u32>,
5262    }
5263}
5264/// Configuration for managed app heap graph snapshots.
5265#[derive(Clone, PartialEq, ::prost::Message)]
5266pub struct JavaHprofConfig {
5267    /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
5268    /// comm string). The semantics of this field were changed since its original
5269    /// introduction.
5270    ///
5271    /// On Android T+ (13+), this field can specify a single wildcard (*), and
5272    /// the profiler will attempt to match it in two possible ways:
5273    /// * if the pattern starts with a '/', then it is matched against the first
5274    ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
5275    ///    "/bin/echo".
5276    /// * otherwise the pattern is matched against the part of argv0
5277    ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
5278    ///    For example "echo" would match "/bin/echo".
5279    ///
5280    /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
5281    /// normalized prior to an exact string comparison. Normalization is as
5282    /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
5283    /// the string contains forward slashes, trim everything up to and including
5284    /// the last one.
5285    ///
5286    /// Implementation note: in either case, at most 511 characters of cmdline
5287    /// are considered.
5288    #[prost(string, repeated, tag="1")]
5289    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5290    /// For watermark based triggering or local debugging.
5291    #[prost(uint64, repeated, packed="false", tag="2")]
5292    pub pid: ::prost::alloc::vec::Vec<u64>,
5293    /// Only profile target if it was installed by one of the packages given.
5294    /// Special values are:
5295    /// * @system: installed on the system partition
5296    /// * @product: installed on the product partition
5297    /// * @null: sideloaded
5298    /// Supported on Android 12+.
5299    #[prost(string, repeated, tag="7")]
5300    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5301    /// Dump at a predefined interval.
5302    #[prost(message, optional, tag="3")]
5303    pub continuous_dump_config: ::core::option::Option<java_hprof_config::ContinuousDumpConfig>,
5304    /// Do not profile processes whose anon RSS + swap < given value.
5305    #[prost(uint32, optional, tag="4")]
5306    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
5307    /// Include the process' /proc/self/smaps.
5308    /// This only shows maps that:
5309    /// * start with /system
5310    /// * start with /vendor
5311    /// * start with /data/app
5312    /// * contain "extracted in memory from Y", where Y matches any of the above
5313    #[prost(bool, optional, tag="5")]
5314    pub dump_smaps: ::core::option::Option<bool>,
5315    /// Exclude objects of the following types from the profile. This can be
5316    /// useful if lots of uninteresting objects, e.g. "sun.misc.Cleaner".
5317    #[prost(string, repeated, tag="6")]
5318    pub ignored_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5319}
5320/// Nested message and enum types in `JavaHprofConfig`.
5321pub mod java_hprof_config {
5322    /// If dump_interval_ms != 0, the following configuration is used.
5323    #[derive(Clone, PartialEq, ::prost::Message)]
5324    pub struct ContinuousDumpConfig {
5325        /// ms to wait before first continuous dump.
5326        /// A dump is always created at the beginning of the trace.
5327        #[prost(uint32, optional, tag="1")]
5328        pub dump_phase_ms: ::core::option::Option<u32>,
5329        /// ms to wait between following dumps.
5330        #[prost(uint32, optional, tag="2")]
5331        pub dump_interval_ms: ::core::option::Option<u32>,
5332        /// If true, scans all the processes to find `process_cmdline` and filter by
5333        /// `min_anonymous_memory_kb` only at data source start. Default on Android
5334        /// S-.
5335        ///
5336        /// If false, rescans all the processes to find on every dump. Default on
5337        /// Android T+.
5338        #[prost(bool, optional, tag="3")]
5339        pub scan_pids_only_on_start: ::core::option::Option<bool>,
5340    }
5341}
5342#[derive(Clone, PartialEq, ::prost::Message)]
5343pub struct PerfEvents {
5344}
5345/// Nested message and enum types in `PerfEvents`.
5346pub mod perf_events {
5347    /// The primary event to count. If recording multiple events, this
5348    /// counter is the "group leader".
5349    /// Commented from the perspective of its use in |PerfEventConfig|.
5350    /// Next id: 13
5351    #[derive(Clone, PartialEq, ::prost::Message)]
5352    pub struct Timebase {
5353        /// Optional modifiers for the event. Modelled after the perftool's
5354        /// <https://man7.org/linux/man-pages/man1/perf-list.1.html#EVENT_MODIFIERS>
5355        /// Currently supported: count scoping such as :u, :k, :uk, ...
5356        /// Modifiers can differ between the timebase and followers.
5357        #[prost(enumeration="EventModifier", repeated, packed="false", tag="12")]
5358        pub modifiers: ::prost::alloc::vec::Vec<i32>,
5359        /// If set, samples will be timestamped with the given clock.
5360        /// If unset, the clock is chosen by the implementation.
5361        /// For software events, prefer PERF_CLOCK_BOOTTIME. However it cannot be
5362        /// used for hardware events (due to interrupt safety), for which the
5363        /// recommendation is to use one of the monotonic clocks.
5364        #[prost(enumeration="PerfClock", optional, tag="11")]
5365        pub timestamp_clock: ::core::option::Option<i32>,
5366        /// Optional arbitrary name for the event, to identify it in the parsed
5367        /// trace. Does *not* affect the profiling itself. If unset, the trace
5368        /// parser will choose a suitable name.
5369        #[prost(string, optional, tag="10")]
5370        pub name: ::core::option::Option<::prost::alloc::string::String>,
5371        /// How often to snapshot the counter, along with any follower events and
5372        /// any additional sampled data such as callstacks.
5373        ///
5374        /// This choice also controls how the readings are taken:
5375        /// * With |frequency| or |period|, samples are taken by the kernel
5376        ///    into a ring buffer. Analogous to `perf record`.
5377        /// * With |poll_period_ms|, the userspace periodically snapshots
5378        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5379        /// Prefer the sampling options unless you're recording PMUs whose
5380        /// perf drivers only support the reading mode.
5381        ///
5382        /// If unset, an implementation-defined sampling default is used.
5383        #[prost(oneof="timebase::Interval", tags="2, 1, 6")]
5384        pub interval: ::core::option::Option<timebase::Interval>,
5385        /// Counting event to use as the timebase.
5386        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5387        /// which is what you usually want.
5388        #[prost(oneof="timebase::Event", tags="4, 3, 5")]
5389        pub event: ::core::option::Option<timebase::Event>,
5390    }
5391    /// Nested message and enum types in `Timebase`.
5392    pub mod timebase {
5393        /// How often to snapshot the counter, along with any follower events and
5394        /// any additional sampled data such as callstacks.
5395        ///
5396        /// This choice also controls how the readings are taken:
5397        /// * With |frequency| or |period|, samples are taken by the kernel
5398        ///    into a ring buffer. Analogous to `perf record`.
5399        /// * With |poll_period_ms|, the userspace periodically snapshots
5400        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5401        /// Prefer the sampling options unless you're recording PMUs whose
5402        /// perf drivers only support the reading mode.
5403        ///
5404        /// If unset, an implementation-defined sampling default is used.
5405        #[derive(Clone, PartialEq, ::prost::Oneof)]
5406        pub enum Interval {
5407            /// Per-cpu sampling frequency in Hz, as requested from the kernel. Not the
5408            /// same as 1/period.
5409            /// Details: the actual sampling will still be based on a period, but the
5410            /// kernel will dynamically adjust it based on the observed event rate, to
5411            /// approximate this frequency. Works best with steady-rate events like
5412            /// timers.
5413            /// Not guaranteed to be honored as the kernel can throttle the sampling
5414            /// rate if it's too high.
5415            #[prost(uint64, tag="2")]
5416            Frequency(u64),
5417            /// Per-cpu sampling will occur every |period| counts of |event|.
5418            /// Prefer |frequency| by default, as it's easier to oversample with a
5419            /// fixed period.
5420            /// Not guaranteed to be honored as the kernel can throttle the sampling
5421            /// rate if it's too high.
5422            #[prost(uint64, tag="1")]
5423            Period(u64),
5424            /// Per-cpu values are read by the userspace every interval. If using this
5425            /// mode, only follower events are supported. Options such as
5426            /// |PerfEventConfig.CallstackSampling| are incompatible.
5427            /// The period can't be guaranteed to be exact since the readings are taken
5428            /// by userspace.
5429            #[prost(uint32, tag="6")]
5430            PollPeriodMs(u32),
5431        }
5432        /// Counting event to use as the timebase.
5433        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5434        /// which is what you usually want.
5435        #[derive(Clone, PartialEq, ::prost::Oneof)]
5436        pub enum Event {
5437            #[prost(enumeration="super::Counter", tag="4")]
5438            Counter(i32),
5439            #[prost(message, tag="3")]
5440            Tracepoint(super::Tracepoint),
5441            #[prost(message, tag="5")]
5442            RawEvent(super::RawEvent),
5443        }
5444    }
5445    #[derive(Clone, PartialEq, ::prost::Message)]
5446    pub struct Tracepoint {
5447        /// Group and name for the tracepoint, acceptable forms:
5448        /// * "sched/sched_switch"
5449        /// * "sched:sched_switch"
5450        #[prost(string, optional, tag="1")]
5451        pub name: ::core::option::Option<::prost::alloc::string::String>,
5452        /// Optional field-level filter for the tracepoint. Only events matching this
5453        /// filter will be counted (and therefore contribute to the sampling period).
5454        /// Example: "prev_pid >= 42 && next_pid == 0".
5455        /// For full syntax, see kernel documentation on "Event filtering":
5456        /// <https://www.kernel.org/doc/Documentation/trace/events.txt>
5457        #[prost(string, optional, tag="2")]
5458        pub filter: ::core::option::Option<::prost::alloc::string::String>,
5459    }
5460    /// Syscall-level description of the event, propagated to the perf_event_attr
5461    /// struct. Primarily for local use-cases, since the event availability and
5462    /// encoding is hardware-specific.
5463    #[derive(Clone, PartialEq, ::prost::Message)]
5464    pub struct RawEvent {
5465        #[prost(uint32, optional, tag="1")]
5466        pub r#type: ::core::option::Option<u32>,
5467        #[prost(uint64, optional, tag="2")]
5468        pub config: ::core::option::Option<u64>,
5469        #[prost(uint64, optional, tag="3")]
5470        pub config1: ::core::option::Option<u64>,
5471        #[prost(uint64, optional, tag="4")]
5472        pub config2: ::core::option::Option<u64>,
5473    }
5474    /// Builtin counter names from the uapi header. Commented with their perf tool
5475    /// aliases.
5476    /// TODO(rsavitski): consider generating enums for cache events (should be
5477    /// finite), and generally make this list as extensive as possible. Excluding
5478    /// things like dynamic PMUs since those don't fit into a static enum.
5479    /// Next id: 21
5480    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5481    #[repr(i32)]
5482    pub enum Counter {
5483        UnknownCounter = 0,
5484        /// cpu-clock
5485        SwCpuClock = 1,
5486        /// page-faults, faults
5487        SwPageFaults = 2,
5488        /// task-clock
5489        SwTaskClock = 3,
5490        /// context-switches, cs
5491        SwContextSwitches = 4,
5492        /// cpu-migrations, migrations
5493        SwCpuMigrations = 5,
5494        /// minor-faults
5495        SwPageFaultsMin = 6,
5496        /// major-faults
5497        SwPageFaultsMaj = 7,
5498        /// alignment-faults
5499        SwAlignmentFaults = 8,
5500        /// emulation-faults
5501        SwEmulationFaults = 9,
5502        /// dummy
5503        SwDummy = 20,
5504        /// cpu-cycles, cycles
5505        HwCpuCycles = 10,
5506        /// instructions
5507        HwInstructions = 11,
5508        /// cache-references
5509        HwCacheReferences = 12,
5510        /// cache-misses
5511        HwCacheMisses = 13,
5512        /// branch-instructions, branches
5513        HwBranchInstructions = 14,
5514        /// branch-misses
5515        HwBranchMisses = 15,
5516        /// bus-cycles
5517        HwBusCycles = 16,
5518        /// stalled-cycles-frontend, idle-cycles-frontend
5519        HwStalledCyclesFrontend = 17,
5520        /// stalled-cycles-backend, idle-cycles-backend
5521        HwStalledCyclesBackend = 18,
5522        /// ref-cycles
5523        HwRefCpuCycles = 19,
5524    }
5525    impl Counter {
5526        /// String value of the enum field names used in the ProtoBuf definition.
5527        ///
5528        /// The values are not transformed in any way and thus are considered stable
5529        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5530        pub fn as_str_name(&self) -> &'static str {
5531            match self {
5532                Counter::UnknownCounter => "UNKNOWN_COUNTER",
5533                Counter::SwCpuClock => "SW_CPU_CLOCK",
5534                Counter::SwPageFaults => "SW_PAGE_FAULTS",
5535                Counter::SwTaskClock => "SW_TASK_CLOCK",
5536                Counter::SwContextSwitches => "SW_CONTEXT_SWITCHES",
5537                Counter::SwCpuMigrations => "SW_CPU_MIGRATIONS",
5538                Counter::SwPageFaultsMin => "SW_PAGE_FAULTS_MIN",
5539                Counter::SwPageFaultsMaj => "SW_PAGE_FAULTS_MAJ",
5540                Counter::SwAlignmentFaults => "SW_ALIGNMENT_FAULTS",
5541                Counter::SwEmulationFaults => "SW_EMULATION_FAULTS",
5542                Counter::SwDummy => "SW_DUMMY",
5543                Counter::HwCpuCycles => "HW_CPU_CYCLES",
5544                Counter::HwInstructions => "HW_INSTRUCTIONS",
5545                Counter::HwCacheReferences => "HW_CACHE_REFERENCES",
5546                Counter::HwCacheMisses => "HW_CACHE_MISSES",
5547                Counter::HwBranchInstructions => "HW_BRANCH_INSTRUCTIONS",
5548                Counter::HwBranchMisses => "HW_BRANCH_MISSES",
5549                Counter::HwBusCycles => "HW_BUS_CYCLES",
5550                Counter::HwStalledCyclesFrontend => "HW_STALLED_CYCLES_FRONTEND",
5551                Counter::HwStalledCyclesBackend => "HW_STALLED_CYCLES_BACKEND",
5552                Counter::HwRefCpuCycles => "HW_REF_CPU_CYCLES",
5553            }
5554        }
5555    }
5556    /// Subset of clocks that is supported by perf timestamping.
5557    /// CLOCK_TAI is excluded since it's not expected to be used in practice, but
5558    /// would require additions to the trace clock synchronisation logic.
5559    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5560    #[repr(i32)]
5561    pub enum PerfClock {
5562        UnknownPerfClock = 0,
5563        Realtime = 1,
5564        Monotonic = 2,
5565        MonotonicRaw = 3,
5566        Boottime = 4,
5567    }
5568    impl PerfClock {
5569        /// String value of the enum field names used in the ProtoBuf definition.
5570        ///
5571        /// The values are not transformed in any way and thus are considered stable
5572        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5573        pub fn as_str_name(&self) -> &'static str {
5574            match self {
5575                PerfClock::UnknownPerfClock => "UNKNOWN_PERF_CLOCK",
5576                PerfClock::Realtime => "PERF_CLOCK_REALTIME",
5577                PerfClock::Monotonic => "PERF_CLOCK_MONOTONIC",
5578                PerfClock::MonotonicRaw => "PERF_CLOCK_MONOTONIC_RAW",
5579                PerfClock::Boottime => "PERF_CLOCK_BOOTTIME",
5580            }
5581        }
5582    }
5583    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5584    #[repr(i32)]
5585    pub enum EventModifier {
5586        UnknownEventModifier = 0,
5587        /// count only while in userspace
5588        CountUserspace = 1,
5589        /// count only while in kernel
5590        CountKernel = 2,
5591        /// count only while in hypervisor
5592        CountHypervisor = 3,
5593    }
5594    impl EventModifier {
5595        /// String value of the enum field names used in the ProtoBuf definition.
5596        ///
5597        /// The values are not transformed in any way and thus are considered stable
5598        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5599        pub fn as_str_name(&self) -> &'static str {
5600            match self {
5601                EventModifier::UnknownEventModifier => "UNKNOWN_EVENT_MODIFIER",
5602                EventModifier::CountUserspace => "EVENT_MODIFIER_COUNT_USERSPACE",
5603                EventModifier::CountKernel => "EVENT_MODIFIER_COUNT_KERNEL",
5604                EventModifier::CountHypervisor => "EVENT_MODIFIER_COUNT_HYPERVISOR",
5605            }
5606        }
5607    }
5608}
5609/// Additional events associated with a leader.
5610/// See <https://man7.org/linux/man-pages/man1/perf-list.1.html#LEADER_SAMPLING>
5611#[derive(Clone, PartialEq, ::prost::Message)]
5612pub struct FollowerEvent {
5613    /// Modifiers can differ between the timebase and followers.
5614    #[prost(enumeration="perf_events::EventModifier", repeated, packed="false", tag="5")]
5615    pub modifiers: ::prost::alloc::vec::Vec<i32>,
5616    /// Optional arbitrary name for the event, to identify it in the parsed
5617    /// trace. Does *not* affect the profiling itself. If unset, the trace
5618    /// parser will choose a suitable name.
5619    #[prost(string, optional, tag="4")]
5620    pub name: ::core::option::Option<::prost::alloc::string::String>,
5621    #[prost(oneof="follower_event::Event", tags="1, 2, 3")]
5622    pub event: ::core::option::Option<follower_event::Event>,
5623}
5624/// Nested message and enum types in `FollowerEvent`.
5625pub mod follower_event {
5626    #[derive(Clone, PartialEq, ::prost::Oneof)]
5627    pub enum Event {
5628        #[prost(enumeration="super::perf_events::Counter", tag="1")]
5629        Counter(i32),
5630        #[prost(message, tag="2")]
5631        Tracepoint(super::perf_events::Tracepoint),
5632        #[prost(message, tag="3")]
5633        RawEvent(super::perf_events::RawEvent),
5634    }
5635}
5636/// Configuration for the traced_perf profiler.
5637///
5638/// Example config for basic cpu profiling:
5639///    perf_event_config {
5640///      timebase {
5641///        frequency: 80
5642///      }
5643///      callstack_sampling {
5644///        scope {
5645///          target_cmdline: "surfaceflinger"
5646///          target_cmdline: "system_server"
5647///        }
5648///        kernel_frames: true
5649///      }
5650///    }
5651///
5652/// Next id: 21
5653#[derive(Clone, PartialEq, ::prost::Message)]
5654pub struct PerfEventConfig {
5655    /// What event to sample on, and how often.
5656    /// Defined in common/perf_events.proto.
5657    #[prost(message, optional, tag="15")]
5658    pub timebase: ::core::option::Option<perf_events::Timebase>,
5659    /// Other events associated with the leader described in the timebase.
5660    #[prost(message, repeated, tag="19")]
5661    pub followers: ::prost::alloc::vec::Vec<FollowerEvent>,
5662    /// If set, the profiler will sample userspace processes' callstacks at the
5663    /// interval specified by the |timebase|.
5664    /// If unset, the profiler will record only the event counts.
5665    #[prost(message, optional, tag="16")]
5666    pub callstack_sampling: ::core::option::Option<perf_event_config::CallstackSampling>,
5667    /// List of cpu indices for counting. If empty, the default is all cpus.
5668    ///
5669    /// Note: this is not inside |callstack_sampling.scope| as it also applies to
5670    /// counter-only traces. A future change will likely reorganise the options,
5671    /// but this field will continue to be supported.
5672    ///
5673    /// Available since: perfetto v50.
5674    #[prost(uint32, repeated, packed="false", tag="20")]
5675    pub target_cpu: ::prost::alloc::vec::Vec<u32>,
5676    //
5677    // Kernel <-> userspace ring buffer options:
5678    //
5679
5680    /// How often the per-cpu ring buffers are read by the producer.
5681    /// If unset, an implementation-defined default is used.
5682    #[prost(uint32, optional, tag="8")]
5683    pub ring_buffer_read_period_ms: ::core::option::Option<u32>,
5684    /// Size (in 4k pages) of each per-cpu ring buffer that is filled by the
5685    /// kernel. If set, must be a power of two.
5686    /// If unset, an implementation-defined default is used.
5687    #[prost(uint32, optional, tag="3")]
5688    pub ring_buffer_pages: ::core::option::Option<u32>,
5689    //
5690    // Daemon's resource usage limits:
5691    //
5692
5693    /// Drop samples if the heap memory held by the samples in the unwinder queue
5694    /// is above the given limit. This counts the memory across all concurrent data
5695    /// sources (not just this one's), and there is no fairness guarantee - the
5696    /// whole quota might be used up by a concurrent source.
5697    #[prost(uint64, optional, tag="17")]
5698    pub max_enqueued_footprint_kb: ::core::option::Option<u64>,
5699    /// Stop the data source if traced_perf's combined {RssAnon + Swap} memory
5700    /// footprint exceeds this value.
5701    #[prost(uint32, optional, tag="13")]
5702    pub max_daemon_memory_kb: ::core::option::Option<u32>,
5703    //
5704    // Niche options:
5705    //
5706
5707    /// Timeout for the remote /proc/<pid>/{maps,mem} file descriptors for a
5708    /// sampled process. This is primarily for Android, where this lookup is
5709    /// asynchronous. As long as the producer is waiting, the associated samples
5710    /// will be kept enqueued (putting pressure on the capacity of the shared
5711    /// unwinding queue). Once a lookup for a process expires, all associated
5712    /// samples are discarded. However, if the lookup still succeeds after the
5713    /// timeout, future samples will be handled normally.
5714    /// If unset, an implementation-defined default is used.
5715    #[prost(uint32, optional, tag="9")]
5716    pub remote_descriptor_timeout_ms: ::core::option::Option<u32>,
5717    /// Optional period for clearing state cached by the userspace unwinder. This
5718    /// is a heavy operation that is only necessary for traces that target a wide
5719    /// set of processes, and require the memory footprint to be reset
5720    /// periodically. To effectively disable the cache clearing, set to a value
5721    /// greater than your trace duration.
5722    ///
5723    /// Relevant only if |callstack_sampling.user_frames| is set to UNWIND_DWARF.
5724    ///
5725    /// If zero or unset:
5726    /// * before perfetto v52: no cache clearing.
5727    /// * perfetto v52+: implementation chooses an infrequent default.
5728    #[prost(uint32, optional, tag="10")]
5729    pub unwind_state_clear_period_ms: ::core::option::Option<u32>,
5730    /// If set, only profile target if it was installed by a package with one of
5731    /// these names. Special values:
5732    /// * "@system": installed on the system partition
5733    /// * "@product": installed on the product partition
5734    /// * "@null": sideloaded
5735    /// Supported on Android 12+.
5736    #[prost(string, repeated, tag="18")]
5737    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5738    //
5739    // Deprecated (superseded by options above):
5740    //
5741    // Do not set *any* of these fields in new configs.
5742    //
5743
5744    /// Note: legacy configs had to set |all_cpus| to true to pass parsing.
5745    /// We rely on this to detect such configs.
5746    #[prost(bool, optional, tag="1")]
5747    pub all_cpus: ::core::option::Option<bool>,
5748    #[prost(uint32, optional, tag="2")]
5749    pub sampling_frequency: ::core::option::Option<u32>,
5750    #[prost(bool, optional, tag="12")]
5751    pub kernel_frames: ::core::option::Option<bool>,
5752    #[prost(int32, repeated, packed="false", tag="4")]
5753    pub target_pid: ::prost::alloc::vec::Vec<i32>,
5754    #[prost(string, repeated, tag="5")]
5755    pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5756    #[prost(int32, repeated, packed="false", tag="6")]
5757    pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
5758    #[prost(string, repeated, tag="7")]
5759    pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5760    #[prost(uint32, optional, tag="11")]
5761    pub additional_cmdline_count: ::core::option::Option<u32>,
5762}
5763/// Nested message and enum types in `PerfEventConfig`.
5764pub mod perf_event_config {
5765    //
5766    // Sub-messages (nested for generated code namespacing).
5767    //
5768
5769    #[derive(Clone, PartialEq, ::prost::Message)]
5770    pub struct CallstackSampling {
5771        /// Defines a set of processes for which samples are retained/skipped. If
5772        /// unset, all samples are kept, but beware that it will be very heavy on the
5773        /// stack unwinder, which might start dropping samples due to overload.
5774        #[prost(message, optional, tag="1")]
5775        pub scope: ::core::option::Option<Scope>,
5776        /// If true, callstacks will include the kernel-space frames. Such frames can
5777        /// be identified by a magical "kernel" string as their mapping name.
5778        /// Requires traced_perf to be running as root, or kptr_restrict to have been
5779        /// manually unrestricted. On Android, the platform should do the right thing
5780        /// on debug builds.
5781        /// This does *not* disclose KASLR, as only the function names are emitted.
5782        #[prost(bool, optional, tag="2")]
5783        pub kernel_frames: ::core::option::Option<bool>,
5784        /// Whether to record and unwind userspace callstacks. If unset, defaults to
5785        /// including userspace (UNWIND_DWARF) both for backwards compatibility and
5786        /// as the most common default (this defaulting is only applicable if the
5787        /// outer CallstackSampling message is explicitly set).
5788        #[prost(enumeration="UnwindMode", optional, tag="3")]
5789        pub user_frames: ::core::option::Option<i32>,
5790    }
5791    #[derive(Clone, PartialEq, ::prost::Message)]
5792    pub struct Scope {
5793        /// Process ID (TGID) allowlist. If this list is not empty, only matching
5794        /// samples will be retained. If multiple allow/deny-lists are
5795        /// specified by the config, then all of them are evaluated for each sampled
5796        /// process.
5797        #[prost(int32, repeated, packed="false", tag="1")]
5798        pub target_pid: ::prost::alloc::vec::Vec<i32>,
5799        /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
5800        /// comm string). The semantics of this field were changed since its original
5801        /// introduction.
5802        ///
5803        /// On Android T+ (13+), this field can specify a single wildcard (*), and
5804        /// the profiler will attempt to match it in two possible ways:
5805        /// * if the pattern starts with a '/', then it is matched against the first
5806        ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
5807        ///    "/bin/echo".
5808        /// * otherwise the pattern is matched against the part of argv0
5809        ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
5810        ///    For example "echo" would match "/bin/echo".
5811        ///
5812        /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
5813        /// normalized prior to an exact string comparison. Normalization is as
5814        /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
5815        /// the string contains forward slashes, trim everything up to and including
5816        /// the last one.
5817        ///
5818        /// Implementation note: in either case, at most 511 characters of cmdline
5819        /// are considered.
5820        #[prost(string, repeated, tag="2")]
5821        pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5822        /// List of excluded pids.
5823        #[prost(int32, repeated, packed="false", tag="3")]
5824        pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
5825        /// List of excluded cmdlines. See description of |target_cmdline| for how
5826        /// this is handled.
5827        #[prost(string, repeated, tag="4")]
5828        pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5829        // Niche features for systemwide callstacks:
5830
5831        /// Number of additional command lines to sample. Only those which are
5832        /// neither explicitly included nor excluded will be considered. Processes
5833        /// are accepted on a first come, first served basis.
5834        #[prost(uint32, optional, tag="5")]
5835        pub additional_cmdline_count: ::core::option::Option<u32>,
5836        /// If set to N, all encountered processes will be put into one of the N
5837        /// possible bins, and only one randomly-chosen bin will be selected for
5838        /// unwinding. The binning is simply "pid % N", under the assumption that
5839        /// low-order bits of pids are roughly uniformly distributed. Other explicit
5840        /// inclusions/exclusions in this |Scope| message are still respected.
5841        ///
5842        /// The profiler will report the chosen shard in PerfSampleDefaults, and the
5843        /// values will be queryable in trace processor under the "stats" table as
5844        /// "perf_process_shard_count" and "perf_chosen_process_shard".
5845        ///
5846        /// NB: all data sources in a config that set |process_shard_count| must set
5847        /// it to the same value. The profiler will choose one bin for all those data
5848        /// sources.
5849        #[prost(uint32, optional, tag="6")]
5850        pub process_shard_count: ::core::option::Option<u32>,
5851    }
5852    /// Userspace unwinding mode. A possible future addition is kernel-unwound
5853    /// callchains for frame pointer based systems.
5854    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5855    #[repr(i32)]
5856    pub enum UnwindMode {
5857        UnwindUnknown = 0,
5858        /// Do not unwind userspace:
5859        UnwindSkip = 1,
5860        /// Use libunwindstack (default):
5861        UnwindDwarf = 2,
5862        /// Use userspace frame pointer unwinder:
5863        UnwindFramePointer = 3,
5864    }
5865    impl UnwindMode {
5866        /// String value of the enum field names used in the ProtoBuf definition.
5867        ///
5868        /// The values are not transformed in any way and thus are considered stable
5869        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5870        pub fn as_str_name(&self) -> &'static str {
5871            match self {
5872                UnwindMode::UnwindUnknown => "UNWIND_UNKNOWN",
5873                UnwindMode::UnwindSkip => "UNWIND_SKIP",
5874                UnwindMode::UnwindDwarf => "UNWIND_DWARF",
5875                UnwindMode::UnwindFramePointer => "UNWIND_FRAME_POINTER",
5876            }
5877        }
5878    }
5879}
5880// When editing entries here remember also to update "sys_stats_counters.h" with
5881// the corresponding string definitions for the actual /proc files parser.
5882
5883/// Counter definitions for Linux's /proc/meminfo.
5884#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5885#[repr(i32)]
5886pub enum MeminfoCounters {
5887    MeminfoUnspecified = 0,
5888    MeminfoMemTotal = 1,
5889    MeminfoMemFree = 2,
5890    MeminfoMemAvailable = 3,
5891    MeminfoBuffers = 4,
5892    MeminfoCached = 5,
5893    MeminfoSwapCached = 6,
5894    MeminfoActive = 7,
5895    MeminfoInactive = 8,
5896    MeminfoActiveAnon = 9,
5897    MeminfoInactiveAnon = 10,
5898    MeminfoActiveFile = 11,
5899    MeminfoInactiveFile = 12,
5900    MeminfoUnevictable = 13,
5901    MeminfoMlocked = 14,
5902    MeminfoSwapTotal = 15,
5903    MeminfoSwapFree = 16,
5904    MeminfoDirty = 17,
5905    MeminfoWriteback = 18,
5906    MeminfoAnonPages = 19,
5907    MeminfoMapped = 20,
5908    MeminfoShmem = 21,
5909    MeminfoSlab = 22,
5910    MeminfoSlabReclaimable = 23,
5911    MeminfoSlabUnreclaimable = 24,
5912    MeminfoKernelStack = 25,
5913    MeminfoPageTables = 26,
5914    MeminfoCommitLimit = 27,
5915    MeminfoCommitedAs = 28,
5916    MeminfoVmallocTotal = 29,
5917    MeminfoVmallocUsed = 30,
5918    MeminfoVmallocChunk = 31,
5919    MeminfoCmaTotal = 32,
5920    MeminfoCmaFree = 33,
5921    MeminfoGpu = 34,
5922    MeminfoZram = 35,
5923    MeminfoMisc = 36,
5924    MeminfoIonHeap = 37,
5925    MeminfoIonHeapPool = 38,
5926}
5927impl MeminfoCounters {
5928    /// String value of the enum field names used in the ProtoBuf definition.
5929    ///
5930    /// The values are not transformed in any way and thus are considered stable
5931    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5932    pub fn as_str_name(&self) -> &'static str {
5933        match self {
5934            MeminfoCounters::MeminfoUnspecified => "MEMINFO_UNSPECIFIED",
5935            MeminfoCounters::MeminfoMemTotal => "MEMINFO_MEM_TOTAL",
5936            MeminfoCounters::MeminfoMemFree => "MEMINFO_MEM_FREE",
5937            MeminfoCounters::MeminfoMemAvailable => "MEMINFO_MEM_AVAILABLE",
5938            MeminfoCounters::MeminfoBuffers => "MEMINFO_BUFFERS",
5939            MeminfoCounters::MeminfoCached => "MEMINFO_CACHED",
5940            MeminfoCounters::MeminfoSwapCached => "MEMINFO_SWAP_CACHED",
5941            MeminfoCounters::MeminfoActive => "MEMINFO_ACTIVE",
5942            MeminfoCounters::MeminfoInactive => "MEMINFO_INACTIVE",
5943            MeminfoCounters::MeminfoActiveAnon => "MEMINFO_ACTIVE_ANON",
5944            MeminfoCounters::MeminfoInactiveAnon => "MEMINFO_INACTIVE_ANON",
5945            MeminfoCounters::MeminfoActiveFile => "MEMINFO_ACTIVE_FILE",
5946            MeminfoCounters::MeminfoInactiveFile => "MEMINFO_INACTIVE_FILE",
5947            MeminfoCounters::MeminfoUnevictable => "MEMINFO_UNEVICTABLE",
5948            MeminfoCounters::MeminfoMlocked => "MEMINFO_MLOCKED",
5949            MeminfoCounters::MeminfoSwapTotal => "MEMINFO_SWAP_TOTAL",
5950            MeminfoCounters::MeminfoSwapFree => "MEMINFO_SWAP_FREE",
5951            MeminfoCounters::MeminfoDirty => "MEMINFO_DIRTY",
5952            MeminfoCounters::MeminfoWriteback => "MEMINFO_WRITEBACK",
5953            MeminfoCounters::MeminfoAnonPages => "MEMINFO_ANON_PAGES",
5954            MeminfoCounters::MeminfoMapped => "MEMINFO_MAPPED",
5955            MeminfoCounters::MeminfoShmem => "MEMINFO_SHMEM",
5956            MeminfoCounters::MeminfoSlab => "MEMINFO_SLAB",
5957            MeminfoCounters::MeminfoSlabReclaimable => "MEMINFO_SLAB_RECLAIMABLE",
5958            MeminfoCounters::MeminfoSlabUnreclaimable => "MEMINFO_SLAB_UNRECLAIMABLE",
5959            MeminfoCounters::MeminfoKernelStack => "MEMINFO_KERNEL_STACK",
5960            MeminfoCounters::MeminfoPageTables => "MEMINFO_PAGE_TABLES",
5961            MeminfoCounters::MeminfoCommitLimit => "MEMINFO_COMMIT_LIMIT",
5962            MeminfoCounters::MeminfoCommitedAs => "MEMINFO_COMMITED_AS",
5963            MeminfoCounters::MeminfoVmallocTotal => "MEMINFO_VMALLOC_TOTAL",
5964            MeminfoCounters::MeminfoVmallocUsed => "MEMINFO_VMALLOC_USED",
5965            MeminfoCounters::MeminfoVmallocChunk => "MEMINFO_VMALLOC_CHUNK",
5966            MeminfoCounters::MeminfoCmaTotal => "MEMINFO_CMA_TOTAL",
5967            MeminfoCounters::MeminfoCmaFree => "MEMINFO_CMA_FREE",
5968            MeminfoCounters::MeminfoGpu => "MEMINFO_GPU",
5969            MeminfoCounters::MeminfoZram => "MEMINFO_ZRAM",
5970            MeminfoCounters::MeminfoMisc => "MEMINFO_MISC",
5971            MeminfoCounters::MeminfoIonHeap => "MEMINFO_ION_HEAP",
5972            MeminfoCounters::MeminfoIonHeapPool => "MEMINFO_ION_HEAP_POOL",
5973        }
5974    }
5975}
5976/// Counter definitions for Linux's /proc/vmstat.
5977#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5978#[repr(i32)]
5979pub enum VmstatCounters {
5980    VmstatUnspecified = 0,
5981    VmstatNrFreePages = 1,
5982    VmstatNrAllocBatch = 2,
5983    VmstatNrInactiveAnon = 3,
5984    VmstatNrActiveAnon = 4,
5985    VmstatNrInactiveFile = 5,
5986    VmstatNrActiveFile = 6,
5987    VmstatNrUnevictable = 7,
5988    VmstatNrMlock = 8,
5989    VmstatNrAnonPages = 9,
5990    VmstatNrMapped = 10,
5991    VmstatNrFilePages = 11,
5992    VmstatNrDirty = 12,
5993    VmstatNrWriteback = 13,
5994    VmstatNrSlabReclaimable = 14,
5995    VmstatNrSlabUnreclaimable = 15,
5996    VmstatNrPageTablePages = 16,
5997    VmstatNrKernelStack = 17,
5998    VmstatNrOverhead = 18,
5999    VmstatNrUnstable = 19,
6000    VmstatNrBounce = 20,
6001    VmstatNrVmscanWrite = 21,
6002    VmstatNrVmscanImmediateReclaim = 22,
6003    VmstatNrWritebackTemp = 23,
6004    VmstatNrIsolatedAnon = 24,
6005    VmstatNrIsolatedFile = 25,
6006    VmstatNrShmem = 26,
6007    VmstatNrDirtied = 27,
6008    VmstatNrWritten = 28,
6009    VmstatNrPagesScanned = 29,
6010    VmstatWorkingsetRefault = 30,
6011    VmstatWorkingsetActivate = 31,
6012    VmstatWorkingsetNodereclaim = 32,
6013    VmstatNrAnonTransparentHugepages = 33,
6014    VmstatNrFreeCma = 34,
6015    VmstatNrSwapcache = 35,
6016    VmstatNrDirtyThreshold = 36,
6017    VmstatNrDirtyBackgroundThreshold = 37,
6018    VmstatPgpgin = 38,
6019    VmstatPgpgout = 39,
6020    VmstatPgpgoutclean = 40,
6021    VmstatPswpin = 41,
6022    VmstatPswpout = 42,
6023    VmstatPgallocDma = 43,
6024    VmstatPgallocNormal = 44,
6025    VmstatPgallocMovable = 45,
6026    VmstatPgfree = 46,
6027    VmstatPgactivate = 47,
6028    VmstatPgdeactivate = 48,
6029    VmstatPgfault = 49,
6030    VmstatPgmajfault = 50,
6031    VmstatPgrefillDma = 51,
6032    VmstatPgrefillNormal = 52,
6033    VmstatPgrefillMovable = 53,
6034    VmstatPgstealKswapdDma = 54,
6035    VmstatPgstealKswapdNormal = 55,
6036    VmstatPgstealKswapdMovable = 56,
6037    VmstatPgstealDirectDma = 57,
6038    VmstatPgstealDirectNormal = 58,
6039    VmstatPgstealDirectMovable = 59,
6040    VmstatPgscanKswapdDma = 60,
6041    VmstatPgscanKswapdNormal = 61,
6042    VmstatPgscanKswapdMovable = 62,
6043    VmstatPgscanDirectDma = 63,
6044    VmstatPgscanDirectNormal = 64,
6045    VmstatPgscanDirectMovable = 65,
6046    VmstatPgscanDirectThrottle = 66,
6047    VmstatPginodesteal = 67,
6048    VmstatSlabsScanned = 68,
6049    VmstatKswapdInodesteal = 69,
6050    VmstatKswapdLowWmarkHitQuickly = 70,
6051    VmstatKswapdHighWmarkHitQuickly = 71,
6052    VmstatPageoutrun = 72,
6053    VmstatAllocstall = 73,
6054    VmstatPgrotated = 74,
6055    VmstatDropPagecache = 75,
6056    VmstatDropSlab = 76,
6057    VmstatPgmigrateSuccess = 77,
6058    VmstatPgmigrateFail = 78,
6059    VmstatCompactMigrateScanned = 79,
6060    VmstatCompactFreeScanned = 80,
6061    VmstatCompactIsolated = 81,
6062    VmstatCompactStall = 82,
6063    VmstatCompactFail = 83,
6064    VmstatCompactSuccess = 84,
6065    VmstatCompactDaemonWake = 85,
6066    VmstatUnevictablePgsCulled = 86,
6067    VmstatUnevictablePgsScanned = 87,
6068    VmstatUnevictablePgsRescued = 88,
6069    VmstatUnevictablePgsMlocked = 89,
6070    VmstatUnevictablePgsMunlocked = 90,
6071    VmstatUnevictablePgsCleared = 91,
6072    VmstatUnevictablePgsStranded = 92,
6073    VmstatNrZspages = 93,
6074    VmstatNrIonHeap = 94,
6075    VmstatNrGpuHeap = 95,
6076    VmstatAllocstallDma = 96,
6077    VmstatAllocstallMovable = 97,
6078    VmstatAllocstallNormal = 98,
6079    VmstatCompactDaemonFreeScanned = 99,
6080    VmstatCompactDaemonMigrateScanned = 100,
6081    VmstatNrFastrpc = 101,
6082    VmstatNrIndirectlyReclaimable = 102,
6083    VmstatNrIonHeapPool = 103,
6084    VmstatNrKernelMiscReclaimable = 104,
6085    VmstatNrShadowCallStackBytes = 105,
6086    VmstatNrShmemHugepages = 106,
6087    VmstatNrShmemPmdmapped = 107,
6088    VmstatNrUnreclaimablePages = 108,
6089    VmstatNrZoneActiveAnon = 109,
6090    VmstatNrZoneActiveFile = 110,
6091    VmstatNrZoneInactiveAnon = 111,
6092    VmstatNrZoneInactiveFile = 112,
6093    VmstatNrZoneUnevictable = 113,
6094    VmstatNrZoneWritePending = 114,
6095    VmstatOomKill = 115,
6096    VmstatPglazyfree = 116,
6097    VmstatPglazyfreed = 117,
6098    VmstatPgrefill = 118,
6099    VmstatPgscanDirect = 119,
6100    VmstatPgscanKswapd = 120,
6101    VmstatPgskipDma = 121,
6102    VmstatPgskipMovable = 122,
6103    VmstatPgskipNormal = 123,
6104    VmstatPgstealDirect = 124,
6105    VmstatPgstealKswapd = 125,
6106    VmstatSwapRa = 126,
6107    VmstatSwapRaHit = 127,
6108    VmstatWorkingsetRestore = 128,
6109    VmstatAllocstallDevice = 129,
6110    VmstatAllocstallDma32 = 130,
6111    VmstatBalloonDeflate = 131,
6112    VmstatBalloonInflate = 132,
6113    VmstatBalloonMigrate = 133,
6114    VmstatCmaAllocFail = 134,
6115    VmstatCmaAllocSuccess = 135,
6116    VmstatNrFileHugepages = 136,
6117    VmstatNrFilePmdmapped = 137,
6118    VmstatNrFollPinAcquired = 138,
6119    VmstatNrFollPinReleased = 139,
6120    VmstatNrSecPageTablePages = 140,
6121    VmstatNrShadowCallStack = 141,
6122    VmstatNrSwapcached = 142,
6123    VmstatNrThrottledWritten = 143,
6124    VmstatPgallocDevice = 144,
6125    VmstatPgallocDma32 = 145,
6126    VmstatPgdemoteDirect = 146,
6127    VmstatPgdemoteKswapd = 147,
6128    VmstatPgreuse = 148,
6129    VmstatPgscanAnon = 149,
6130    VmstatPgscanFile = 150,
6131    VmstatPgskipDevice = 151,
6132    VmstatPgskipDma32 = 152,
6133    VmstatPgstealAnon = 153,
6134    VmstatPgstealFile = 154,
6135    VmstatThpCollapseAlloc = 155,
6136    VmstatThpCollapseAllocFailed = 156,
6137    VmstatThpDeferredSplitPage = 157,
6138    VmstatThpFaultAlloc = 158,
6139    VmstatThpFaultFallback = 159,
6140    VmstatThpFaultFallbackCharge = 160,
6141    VmstatThpFileAlloc = 161,
6142    VmstatThpFileFallback = 162,
6143    VmstatThpFileFallbackCharge = 163,
6144    VmstatThpFileMapped = 164,
6145    VmstatThpMigrationFail = 165,
6146    VmstatThpMigrationSplit = 166,
6147    VmstatThpMigrationSuccess = 167,
6148    VmstatThpScanExceedNonePte = 168,
6149    VmstatThpScanExceedSharePte = 169,
6150    VmstatThpScanExceedSwapPte = 170,
6151    VmstatThpSplitPage = 171,
6152    VmstatThpSplitPageFailed = 172,
6153    VmstatThpSplitPmd = 173,
6154    VmstatThpSwpout = 174,
6155    VmstatThpSwpoutFallback = 175,
6156    VmstatThpZeroPageAlloc = 176,
6157    VmstatThpZeroPageAllocFailed = 177,
6158    VmstatVmaLockAbort = 178,
6159    VmstatVmaLockMiss = 179,
6160    VmstatVmaLockRetry = 180,
6161    VmstatVmaLockSuccess = 181,
6162    VmstatWorkingsetActivateAnon = 182,
6163    VmstatWorkingsetActivateFile = 183,
6164    VmstatWorkingsetNodes = 184,
6165    VmstatWorkingsetRefaultAnon = 185,
6166    VmstatWorkingsetRefaultFile = 186,
6167    VmstatWorkingsetRestoreAnon = 187,
6168    VmstatWorkingsetRestoreFile = 188,
6169}
6170impl VmstatCounters {
6171    /// String value of the enum field names used in the ProtoBuf definition.
6172    ///
6173    /// The values are not transformed in any way and thus are considered stable
6174    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6175    pub fn as_str_name(&self) -> &'static str {
6176        match self {
6177            VmstatCounters::VmstatUnspecified => "VMSTAT_UNSPECIFIED",
6178            VmstatCounters::VmstatNrFreePages => "VMSTAT_NR_FREE_PAGES",
6179            VmstatCounters::VmstatNrAllocBatch => "VMSTAT_NR_ALLOC_BATCH",
6180            VmstatCounters::VmstatNrInactiveAnon => "VMSTAT_NR_INACTIVE_ANON",
6181            VmstatCounters::VmstatNrActiveAnon => "VMSTAT_NR_ACTIVE_ANON",
6182            VmstatCounters::VmstatNrInactiveFile => "VMSTAT_NR_INACTIVE_FILE",
6183            VmstatCounters::VmstatNrActiveFile => "VMSTAT_NR_ACTIVE_FILE",
6184            VmstatCounters::VmstatNrUnevictable => "VMSTAT_NR_UNEVICTABLE",
6185            VmstatCounters::VmstatNrMlock => "VMSTAT_NR_MLOCK",
6186            VmstatCounters::VmstatNrAnonPages => "VMSTAT_NR_ANON_PAGES",
6187            VmstatCounters::VmstatNrMapped => "VMSTAT_NR_MAPPED",
6188            VmstatCounters::VmstatNrFilePages => "VMSTAT_NR_FILE_PAGES",
6189            VmstatCounters::VmstatNrDirty => "VMSTAT_NR_DIRTY",
6190            VmstatCounters::VmstatNrWriteback => "VMSTAT_NR_WRITEBACK",
6191            VmstatCounters::VmstatNrSlabReclaimable => "VMSTAT_NR_SLAB_RECLAIMABLE",
6192            VmstatCounters::VmstatNrSlabUnreclaimable => "VMSTAT_NR_SLAB_UNRECLAIMABLE",
6193            VmstatCounters::VmstatNrPageTablePages => "VMSTAT_NR_PAGE_TABLE_PAGES",
6194            VmstatCounters::VmstatNrKernelStack => "VMSTAT_NR_KERNEL_STACK",
6195            VmstatCounters::VmstatNrOverhead => "VMSTAT_NR_OVERHEAD",
6196            VmstatCounters::VmstatNrUnstable => "VMSTAT_NR_UNSTABLE",
6197            VmstatCounters::VmstatNrBounce => "VMSTAT_NR_BOUNCE",
6198            VmstatCounters::VmstatNrVmscanWrite => "VMSTAT_NR_VMSCAN_WRITE",
6199            VmstatCounters::VmstatNrVmscanImmediateReclaim => "VMSTAT_NR_VMSCAN_IMMEDIATE_RECLAIM",
6200            VmstatCounters::VmstatNrWritebackTemp => "VMSTAT_NR_WRITEBACK_TEMP",
6201            VmstatCounters::VmstatNrIsolatedAnon => "VMSTAT_NR_ISOLATED_ANON",
6202            VmstatCounters::VmstatNrIsolatedFile => "VMSTAT_NR_ISOLATED_FILE",
6203            VmstatCounters::VmstatNrShmem => "VMSTAT_NR_SHMEM",
6204            VmstatCounters::VmstatNrDirtied => "VMSTAT_NR_DIRTIED",
6205            VmstatCounters::VmstatNrWritten => "VMSTAT_NR_WRITTEN",
6206            VmstatCounters::VmstatNrPagesScanned => "VMSTAT_NR_PAGES_SCANNED",
6207            VmstatCounters::VmstatWorkingsetRefault => "VMSTAT_WORKINGSET_REFAULT",
6208            VmstatCounters::VmstatWorkingsetActivate => "VMSTAT_WORKINGSET_ACTIVATE",
6209            VmstatCounters::VmstatWorkingsetNodereclaim => "VMSTAT_WORKINGSET_NODERECLAIM",
6210            VmstatCounters::VmstatNrAnonTransparentHugepages => "VMSTAT_NR_ANON_TRANSPARENT_HUGEPAGES",
6211            VmstatCounters::VmstatNrFreeCma => "VMSTAT_NR_FREE_CMA",
6212            VmstatCounters::VmstatNrSwapcache => "VMSTAT_NR_SWAPCACHE",
6213            VmstatCounters::VmstatNrDirtyThreshold => "VMSTAT_NR_DIRTY_THRESHOLD",
6214            VmstatCounters::VmstatNrDirtyBackgroundThreshold => "VMSTAT_NR_DIRTY_BACKGROUND_THRESHOLD",
6215            VmstatCounters::VmstatPgpgin => "VMSTAT_PGPGIN",
6216            VmstatCounters::VmstatPgpgout => "VMSTAT_PGPGOUT",
6217            VmstatCounters::VmstatPgpgoutclean => "VMSTAT_PGPGOUTCLEAN",
6218            VmstatCounters::VmstatPswpin => "VMSTAT_PSWPIN",
6219            VmstatCounters::VmstatPswpout => "VMSTAT_PSWPOUT",
6220            VmstatCounters::VmstatPgallocDma => "VMSTAT_PGALLOC_DMA",
6221            VmstatCounters::VmstatPgallocNormal => "VMSTAT_PGALLOC_NORMAL",
6222            VmstatCounters::VmstatPgallocMovable => "VMSTAT_PGALLOC_MOVABLE",
6223            VmstatCounters::VmstatPgfree => "VMSTAT_PGFREE",
6224            VmstatCounters::VmstatPgactivate => "VMSTAT_PGACTIVATE",
6225            VmstatCounters::VmstatPgdeactivate => "VMSTAT_PGDEACTIVATE",
6226            VmstatCounters::VmstatPgfault => "VMSTAT_PGFAULT",
6227            VmstatCounters::VmstatPgmajfault => "VMSTAT_PGMAJFAULT",
6228            VmstatCounters::VmstatPgrefillDma => "VMSTAT_PGREFILL_DMA",
6229            VmstatCounters::VmstatPgrefillNormal => "VMSTAT_PGREFILL_NORMAL",
6230            VmstatCounters::VmstatPgrefillMovable => "VMSTAT_PGREFILL_MOVABLE",
6231            VmstatCounters::VmstatPgstealKswapdDma => "VMSTAT_PGSTEAL_KSWAPD_DMA",
6232            VmstatCounters::VmstatPgstealKswapdNormal => "VMSTAT_PGSTEAL_KSWAPD_NORMAL",
6233            VmstatCounters::VmstatPgstealKswapdMovable => "VMSTAT_PGSTEAL_KSWAPD_MOVABLE",
6234            VmstatCounters::VmstatPgstealDirectDma => "VMSTAT_PGSTEAL_DIRECT_DMA",
6235            VmstatCounters::VmstatPgstealDirectNormal => "VMSTAT_PGSTEAL_DIRECT_NORMAL",
6236            VmstatCounters::VmstatPgstealDirectMovable => "VMSTAT_PGSTEAL_DIRECT_MOVABLE",
6237            VmstatCounters::VmstatPgscanKswapdDma => "VMSTAT_PGSCAN_KSWAPD_DMA",
6238            VmstatCounters::VmstatPgscanKswapdNormal => "VMSTAT_PGSCAN_KSWAPD_NORMAL",
6239            VmstatCounters::VmstatPgscanKswapdMovable => "VMSTAT_PGSCAN_KSWAPD_MOVABLE",
6240            VmstatCounters::VmstatPgscanDirectDma => "VMSTAT_PGSCAN_DIRECT_DMA",
6241            VmstatCounters::VmstatPgscanDirectNormal => "VMSTAT_PGSCAN_DIRECT_NORMAL",
6242            VmstatCounters::VmstatPgscanDirectMovable => "VMSTAT_PGSCAN_DIRECT_MOVABLE",
6243            VmstatCounters::VmstatPgscanDirectThrottle => "VMSTAT_PGSCAN_DIRECT_THROTTLE",
6244            VmstatCounters::VmstatPginodesteal => "VMSTAT_PGINODESTEAL",
6245            VmstatCounters::VmstatSlabsScanned => "VMSTAT_SLABS_SCANNED",
6246            VmstatCounters::VmstatKswapdInodesteal => "VMSTAT_KSWAPD_INODESTEAL",
6247            VmstatCounters::VmstatKswapdLowWmarkHitQuickly => "VMSTAT_KSWAPD_LOW_WMARK_HIT_QUICKLY",
6248            VmstatCounters::VmstatKswapdHighWmarkHitQuickly => "VMSTAT_KSWAPD_HIGH_WMARK_HIT_QUICKLY",
6249            VmstatCounters::VmstatPageoutrun => "VMSTAT_PAGEOUTRUN",
6250            VmstatCounters::VmstatAllocstall => "VMSTAT_ALLOCSTALL",
6251            VmstatCounters::VmstatPgrotated => "VMSTAT_PGROTATED",
6252            VmstatCounters::VmstatDropPagecache => "VMSTAT_DROP_PAGECACHE",
6253            VmstatCounters::VmstatDropSlab => "VMSTAT_DROP_SLAB",
6254            VmstatCounters::VmstatPgmigrateSuccess => "VMSTAT_PGMIGRATE_SUCCESS",
6255            VmstatCounters::VmstatPgmigrateFail => "VMSTAT_PGMIGRATE_FAIL",
6256            VmstatCounters::VmstatCompactMigrateScanned => "VMSTAT_COMPACT_MIGRATE_SCANNED",
6257            VmstatCounters::VmstatCompactFreeScanned => "VMSTAT_COMPACT_FREE_SCANNED",
6258            VmstatCounters::VmstatCompactIsolated => "VMSTAT_COMPACT_ISOLATED",
6259            VmstatCounters::VmstatCompactStall => "VMSTAT_COMPACT_STALL",
6260            VmstatCounters::VmstatCompactFail => "VMSTAT_COMPACT_FAIL",
6261            VmstatCounters::VmstatCompactSuccess => "VMSTAT_COMPACT_SUCCESS",
6262            VmstatCounters::VmstatCompactDaemonWake => "VMSTAT_COMPACT_DAEMON_WAKE",
6263            VmstatCounters::VmstatUnevictablePgsCulled => "VMSTAT_UNEVICTABLE_PGS_CULLED",
6264            VmstatCounters::VmstatUnevictablePgsScanned => "VMSTAT_UNEVICTABLE_PGS_SCANNED",
6265            VmstatCounters::VmstatUnevictablePgsRescued => "VMSTAT_UNEVICTABLE_PGS_RESCUED",
6266            VmstatCounters::VmstatUnevictablePgsMlocked => "VMSTAT_UNEVICTABLE_PGS_MLOCKED",
6267            VmstatCounters::VmstatUnevictablePgsMunlocked => "VMSTAT_UNEVICTABLE_PGS_MUNLOCKED",
6268            VmstatCounters::VmstatUnevictablePgsCleared => "VMSTAT_UNEVICTABLE_PGS_CLEARED",
6269            VmstatCounters::VmstatUnevictablePgsStranded => "VMSTAT_UNEVICTABLE_PGS_STRANDED",
6270            VmstatCounters::VmstatNrZspages => "VMSTAT_NR_ZSPAGES",
6271            VmstatCounters::VmstatNrIonHeap => "VMSTAT_NR_ION_HEAP",
6272            VmstatCounters::VmstatNrGpuHeap => "VMSTAT_NR_GPU_HEAP",
6273            VmstatCounters::VmstatAllocstallDma => "VMSTAT_ALLOCSTALL_DMA",
6274            VmstatCounters::VmstatAllocstallMovable => "VMSTAT_ALLOCSTALL_MOVABLE",
6275            VmstatCounters::VmstatAllocstallNormal => "VMSTAT_ALLOCSTALL_NORMAL",
6276            VmstatCounters::VmstatCompactDaemonFreeScanned => "VMSTAT_COMPACT_DAEMON_FREE_SCANNED",
6277            VmstatCounters::VmstatCompactDaemonMigrateScanned => "VMSTAT_COMPACT_DAEMON_MIGRATE_SCANNED",
6278            VmstatCounters::VmstatNrFastrpc => "VMSTAT_NR_FASTRPC",
6279            VmstatCounters::VmstatNrIndirectlyReclaimable => "VMSTAT_NR_INDIRECTLY_RECLAIMABLE",
6280            VmstatCounters::VmstatNrIonHeapPool => "VMSTAT_NR_ION_HEAP_POOL",
6281            VmstatCounters::VmstatNrKernelMiscReclaimable => "VMSTAT_NR_KERNEL_MISC_RECLAIMABLE",
6282            VmstatCounters::VmstatNrShadowCallStackBytes => "VMSTAT_NR_SHADOW_CALL_STACK_BYTES",
6283            VmstatCounters::VmstatNrShmemHugepages => "VMSTAT_NR_SHMEM_HUGEPAGES",
6284            VmstatCounters::VmstatNrShmemPmdmapped => "VMSTAT_NR_SHMEM_PMDMAPPED",
6285            VmstatCounters::VmstatNrUnreclaimablePages => "VMSTAT_NR_UNRECLAIMABLE_PAGES",
6286            VmstatCounters::VmstatNrZoneActiveAnon => "VMSTAT_NR_ZONE_ACTIVE_ANON",
6287            VmstatCounters::VmstatNrZoneActiveFile => "VMSTAT_NR_ZONE_ACTIVE_FILE",
6288            VmstatCounters::VmstatNrZoneInactiveAnon => "VMSTAT_NR_ZONE_INACTIVE_ANON",
6289            VmstatCounters::VmstatNrZoneInactiveFile => "VMSTAT_NR_ZONE_INACTIVE_FILE",
6290            VmstatCounters::VmstatNrZoneUnevictable => "VMSTAT_NR_ZONE_UNEVICTABLE",
6291            VmstatCounters::VmstatNrZoneWritePending => "VMSTAT_NR_ZONE_WRITE_PENDING",
6292            VmstatCounters::VmstatOomKill => "VMSTAT_OOM_KILL",
6293            VmstatCounters::VmstatPglazyfree => "VMSTAT_PGLAZYFREE",
6294            VmstatCounters::VmstatPglazyfreed => "VMSTAT_PGLAZYFREED",
6295            VmstatCounters::VmstatPgrefill => "VMSTAT_PGREFILL",
6296            VmstatCounters::VmstatPgscanDirect => "VMSTAT_PGSCAN_DIRECT",
6297            VmstatCounters::VmstatPgscanKswapd => "VMSTAT_PGSCAN_KSWAPD",
6298            VmstatCounters::VmstatPgskipDma => "VMSTAT_PGSKIP_DMA",
6299            VmstatCounters::VmstatPgskipMovable => "VMSTAT_PGSKIP_MOVABLE",
6300            VmstatCounters::VmstatPgskipNormal => "VMSTAT_PGSKIP_NORMAL",
6301            VmstatCounters::VmstatPgstealDirect => "VMSTAT_PGSTEAL_DIRECT",
6302            VmstatCounters::VmstatPgstealKswapd => "VMSTAT_PGSTEAL_KSWAPD",
6303            VmstatCounters::VmstatSwapRa => "VMSTAT_SWAP_RA",
6304            VmstatCounters::VmstatSwapRaHit => "VMSTAT_SWAP_RA_HIT",
6305            VmstatCounters::VmstatWorkingsetRestore => "VMSTAT_WORKINGSET_RESTORE",
6306            VmstatCounters::VmstatAllocstallDevice => "VMSTAT_ALLOCSTALL_DEVICE",
6307            VmstatCounters::VmstatAllocstallDma32 => "VMSTAT_ALLOCSTALL_DMA32",
6308            VmstatCounters::VmstatBalloonDeflate => "VMSTAT_BALLOON_DEFLATE",
6309            VmstatCounters::VmstatBalloonInflate => "VMSTAT_BALLOON_INFLATE",
6310            VmstatCounters::VmstatBalloonMigrate => "VMSTAT_BALLOON_MIGRATE",
6311            VmstatCounters::VmstatCmaAllocFail => "VMSTAT_CMA_ALLOC_FAIL",
6312            VmstatCounters::VmstatCmaAllocSuccess => "VMSTAT_CMA_ALLOC_SUCCESS",
6313            VmstatCounters::VmstatNrFileHugepages => "VMSTAT_NR_FILE_HUGEPAGES",
6314            VmstatCounters::VmstatNrFilePmdmapped => "VMSTAT_NR_FILE_PMDMAPPED",
6315            VmstatCounters::VmstatNrFollPinAcquired => "VMSTAT_NR_FOLL_PIN_ACQUIRED",
6316            VmstatCounters::VmstatNrFollPinReleased => "VMSTAT_NR_FOLL_PIN_RELEASED",
6317            VmstatCounters::VmstatNrSecPageTablePages => "VMSTAT_NR_SEC_PAGE_TABLE_PAGES",
6318            VmstatCounters::VmstatNrShadowCallStack => "VMSTAT_NR_SHADOW_CALL_STACK",
6319            VmstatCounters::VmstatNrSwapcached => "VMSTAT_NR_SWAPCACHED",
6320            VmstatCounters::VmstatNrThrottledWritten => "VMSTAT_NR_THROTTLED_WRITTEN",
6321            VmstatCounters::VmstatPgallocDevice => "VMSTAT_PGALLOC_DEVICE",
6322            VmstatCounters::VmstatPgallocDma32 => "VMSTAT_PGALLOC_DMA32",
6323            VmstatCounters::VmstatPgdemoteDirect => "VMSTAT_PGDEMOTE_DIRECT",
6324            VmstatCounters::VmstatPgdemoteKswapd => "VMSTAT_PGDEMOTE_KSWAPD",
6325            VmstatCounters::VmstatPgreuse => "VMSTAT_PGREUSE",
6326            VmstatCounters::VmstatPgscanAnon => "VMSTAT_PGSCAN_ANON",
6327            VmstatCounters::VmstatPgscanFile => "VMSTAT_PGSCAN_FILE",
6328            VmstatCounters::VmstatPgskipDevice => "VMSTAT_PGSKIP_DEVICE",
6329            VmstatCounters::VmstatPgskipDma32 => "VMSTAT_PGSKIP_DMA32",
6330            VmstatCounters::VmstatPgstealAnon => "VMSTAT_PGSTEAL_ANON",
6331            VmstatCounters::VmstatPgstealFile => "VMSTAT_PGSTEAL_FILE",
6332            VmstatCounters::VmstatThpCollapseAlloc => "VMSTAT_THP_COLLAPSE_ALLOC",
6333            VmstatCounters::VmstatThpCollapseAllocFailed => "VMSTAT_THP_COLLAPSE_ALLOC_FAILED",
6334            VmstatCounters::VmstatThpDeferredSplitPage => "VMSTAT_THP_DEFERRED_SPLIT_PAGE",
6335            VmstatCounters::VmstatThpFaultAlloc => "VMSTAT_THP_FAULT_ALLOC",
6336            VmstatCounters::VmstatThpFaultFallback => "VMSTAT_THP_FAULT_FALLBACK",
6337            VmstatCounters::VmstatThpFaultFallbackCharge => "VMSTAT_THP_FAULT_FALLBACK_CHARGE",
6338            VmstatCounters::VmstatThpFileAlloc => "VMSTAT_THP_FILE_ALLOC",
6339            VmstatCounters::VmstatThpFileFallback => "VMSTAT_THP_FILE_FALLBACK",
6340            VmstatCounters::VmstatThpFileFallbackCharge => "VMSTAT_THP_FILE_FALLBACK_CHARGE",
6341            VmstatCounters::VmstatThpFileMapped => "VMSTAT_THP_FILE_MAPPED",
6342            VmstatCounters::VmstatThpMigrationFail => "VMSTAT_THP_MIGRATION_FAIL",
6343            VmstatCounters::VmstatThpMigrationSplit => "VMSTAT_THP_MIGRATION_SPLIT",
6344            VmstatCounters::VmstatThpMigrationSuccess => "VMSTAT_THP_MIGRATION_SUCCESS",
6345            VmstatCounters::VmstatThpScanExceedNonePte => "VMSTAT_THP_SCAN_EXCEED_NONE_PTE",
6346            VmstatCounters::VmstatThpScanExceedSharePte => "VMSTAT_THP_SCAN_EXCEED_SHARE_PTE",
6347            VmstatCounters::VmstatThpScanExceedSwapPte => "VMSTAT_THP_SCAN_EXCEED_SWAP_PTE",
6348            VmstatCounters::VmstatThpSplitPage => "VMSTAT_THP_SPLIT_PAGE",
6349            VmstatCounters::VmstatThpSplitPageFailed => "VMSTAT_THP_SPLIT_PAGE_FAILED",
6350            VmstatCounters::VmstatThpSplitPmd => "VMSTAT_THP_SPLIT_PMD",
6351            VmstatCounters::VmstatThpSwpout => "VMSTAT_THP_SWPOUT",
6352            VmstatCounters::VmstatThpSwpoutFallback => "VMSTAT_THP_SWPOUT_FALLBACK",
6353            VmstatCounters::VmstatThpZeroPageAlloc => "VMSTAT_THP_ZERO_PAGE_ALLOC",
6354            VmstatCounters::VmstatThpZeroPageAllocFailed => "VMSTAT_THP_ZERO_PAGE_ALLOC_FAILED",
6355            VmstatCounters::VmstatVmaLockAbort => "VMSTAT_VMA_LOCK_ABORT",
6356            VmstatCounters::VmstatVmaLockMiss => "VMSTAT_VMA_LOCK_MISS",
6357            VmstatCounters::VmstatVmaLockRetry => "VMSTAT_VMA_LOCK_RETRY",
6358            VmstatCounters::VmstatVmaLockSuccess => "VMSTAT_VMA_LOCK_SUCCESS",
6359            VmstatCounters::VmstatWorkingsetActivateAnon => "VMSTAT_WORKINGSET_ACTIVATE_ANON",
6360            VmstatCounters::VmstatWorkingsetActivateFile => "VMSTAT_WORKINGSET_ACTIVATE_FILE",
6361            VmstatCounters::VmstatWorkingsetNodes => "VMSTAT_WORKINGSET_NODES",
6362            VmstatCounters::VmstatWorkingsetRefaultAnon => "VMSTAT_WORKINGSET_REFAULT_ANON",
6363            VmstatCounters::VmstatWorkingsetRefaultFile => "VMSTAT_WORKINGSET_REFAULT_FILE",
6364            VmstatCounters::VmstatWorkingsetRestoreAnon => "VMSTAT_WORKINGSET_RESTORE_ANON",
6365            VmstatCounters::VmstatWorkingsetRestoreFile => "VMSTAT_WORKINGSET_RESTORE_FILE",
6366        }
6367    }
6368}
6369/// This file defines the configuration for the Linux /proc poller data source,
6370/// which injects counters in the trace.
6371/// Counters that are needed in the trace must be explicitly listed in the
6372/// *_counters fields. This is to avoid spamming the trace with all counters
6373/// at all times.
6374/// The sampling rate is configurable. All polling rates (*_period_ms) need
6375/// to be integer multiples of each other.
6376/// OK:     [10ms, 10ms, 10ms],  [10ms, 20ms, 10ms],  [10ms, 20ms, 60ms]
6377/// Not OK: [10ms, 10ms, 11ms],  [10ms, 15ms, 20ms]
6378#[derive(Clone, PartialEq, ::prost::Message)]
6379pub struct SysStatsConfig {
6380    /// Polls /proc/meminfo every X ms, if non-zero.
6381    /// This is required to be > 10ms to avoid excessive CPU usage.
6382    /// Cost: 0.3 ms \[read\] + 0.07 ms [parse + trace injection]
6383    #[prost(uint32, optional, tag="1")]
6384    pub meminfo_period_ms: ::core::option::Option<u32>,
6385    /// If empty all known counters are reported. Otherwise, only the counters
6386    /// specified below are reported.
6387    #[prost(enumeration="MeminfoCounters", repeated, packed="false", tag="2")]
6388    pub meminfo_counters: ::prost::alloc::vec::Vec<i32>,
6389    /// Polls /proc/vmstat every X ms, if non-zero.
6390    /// This is required to be > 10ms to avoid excessive CPU usage.
6391    /// Cost: 0.2 ms \[read\] + 0.3 ms [parse + trace injection]
6392    #[prost(uint32, optional, tag="3")]
6393    pub vmstat_period_ms: ::core::option::Option<u32>,
6394    #[prost(enumeration="VmstatCounters", repeated, packed="false", tag="4")]
6395    pub vmstat_counters: ::prost::alloc::vec::Vec<i32>,
6396    /// Pols /proc/stat every X ms, if non-zero.
6397    /// This is required to be > 10ms to avoid excessive CPU usage.
6398    /// Cost: 4.1 ms \[read\] + 1.9 ms [parse + trace injection]
6399    #[prost(uint32, optional, tag="5")]
6400    pub stat_period_ms: ::core::option::Option<u32>,
6401    #[prost(enumeration="sys_stats_config::StatCounters", repeated, packed="false", tag="6")]
6402    pub stat_counters: ::prost::alloc::vec::Vec<i32>,
6403    /// Polls /sys/devfreq/*/curfreq every X ms, if non-zero.
6404    /// This is required to be > 10ms to avoid excessive CPU usage.
6405    /// This option can be used to record unchanging values.
6406    /// Updates from frequency changes can come from ftrace/set_clock_rate.
6407    #[prost(uint32, optional, tag="7")]
6408    pub devfreq_period_ms: ::core::option::Option<u32>,
6409    /// Polls /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq every X ms.
6410    /// This is required to be > 10ms to avoid excessive CPU usage.
6411    #[prost(uint32, optional, tag="8")]
6412    pub cpufreq_period_ms: ::core::option::Option<u32>,
6413    /// Polls /proc/buddyinfo every X ms, if non-zero.
6414    /// This is required to be > 10ms to avoid excessive CPU usage.
6415    #[prost(uint32, optional, tag="9")]
6416    pub buddyinfo_period_ms: ::core::option::Option<u32>,
6417    /// Polls /proc/diskstats every X ms, if non-zero.
6418    /// This is required to be > 10ms to avoid excessive CPU usage.
6419    #[prost(uint32, optional, tag="10")]
6420    pub diskstat_period_ms: ::core::option::Option<u32>,
6421    /// Polls /proc/pressure/* every X ms, if non-zero.
6422    /// This is required to be > 10ms to avoid excessive CPU usage.
6423    #[prost(uint32, optional, tag="11")]
6424    pub psi_period_ms: ::core::option::Option<u32>,
6425    /// Polls /sys/class/thermal/* every X ms, if non-zero.
6426    /// This is required to be > 10ms to avoid excessive CPU usage.
6427    #[prost(uint32, optional, tag="12")]
6428    pub thermal_period_ms: ::core::option::Option<u32>,
6429    /// Polls /sys/devices/system/cpu/cpu*/cpuidle/state* every X ms, if non-zero.
6430    /// This is required to be > 10ms to avoid excessive CPU usage.
6431    #[prost(uint32, optional, tag="13")]
6432    pub cpuidle_period_ms: ::core::option::Option<u32>,
6433    /// Polls device-specific GPU frequency info every X ms, if non-zero.
6434    /// This is required to be > 10ms to avoid excessive CPU usage.
6435    #[prost(uint32, optional, tag="14")]
6436    pub gpufreq_period_ms: ::core::option::Option<u32>,
6437}
6438/// Nested message and enum types in `SysStatsConfig`.
6439pub mod sys_stats_config {
6440    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6441    #[repr(i32)]
6442    pub enum StatCounters {
6443        StatUnspecified = 0,
6444        StatCpuTimes = 1,
6445        StatIrqCounts = 2,
6446        StatSoftirqCounts = 3,
6447        StatForkCount = 4,
6448    }
6449    impl StatCounters {
6450        /// String value of the enum field names used in the ProtoBuf definition.
6451        ///
6452        /// The values are not transformed in any way and thus are considered stable
6453        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6454        pub fn as_str_name(&self) -> &'static str {
6455            match self {
6456                StatCounters::StatUnspecified => "STAT_UNSPECIFIED",
6457                StatCounters::StatCpuTimes => "STAT_CPU_TIMES",
6458                StatCounters::StatIrqCounts => "STAT_IRQ_COUNTS",
6459                StatCounters::StatSoftirqCounts => "STAT_SOFTIRQ_COUNTS",
6460                StatCounters::StatForkCount => "STAT_FORK_COUNT",
6461            }
6462        }
6463    }
6464}
6465/// The configuration for a fake producer used in tests.
6466#[derive(Clone, PartialEq, ::prost::Message)]
6467pub struct TestConfig {
6468    /// The number of messages the fake producer should send.
6469    #[prost(uint32, optional, tag="1")]
6470    pub message_count: ::core::option::Option<u32>,
6471    /// The maximum number of messages which should be sent each second.
6472    /// The actual obserced speed may be lower if the producer is unable to
6473    /// work fast enough.
6474    /// If this is zero or unset, the producer will send as fast as possible.
6475    #[prost(uint32, optional, tag="2")]
6476    pub max_messages_per_second: ::core::option::Option<u32>,
6477    /// The seed value for a simple multiplicative congruential pseudo-random
6478    /// number sequence.
6479    #[prost(uint32, optional, tag="3")]
6480    pub seed: ::core::option::Option<u32>,
6481    /// The size of each message in bytes. Should be greater than or equal 5 to
6482    /// account for the number of bytes needed to encode the random number and a
6483    /// null byte for the string.
6484    #[prost(uint32, optional, tag="4")]
6485    pub message_size: ::core::option::Option<u32>,
6486    /// Whether the producer should send a event batch when the data source is
6487    /// is initially registered.
6488    #[prost(bool, optional, tag="5")]
6489    pub send_batch_on_register: ::core::option::Option<bool>,
6490    #[prost(message, optional, tag="6")]
6491    pub dummy_fields: ::core::option::Option<test_config::DummyFields>,
6492}
6493/// Nested message and enum types in `TestConfig`.
6494pub mod test_config {
6495    #[derive(Clone, PartialEq, ::prost::Message)]
6496    pub struct DummyFields {
6497        #[prost(uint32, optional, tag="1")]
6498        pub field_uint32: ::core::option::Option<u32>,
6499        #[prost(int32, optional, tag="2")]
6500        pub field_int32: ::core::option::Option<i32>,
6501        #[prost(uint64, optional, tag="3")]
6502        pub field_uint64: ::core::option::Option<u64>,
6503        #[prost(int64, optional, tag="4")]
6504        pub field_int64: ::core::option::Option<i64>,
6505        #[prost(fixed64, optional, tag="5")]
6506        pub field_fixed64: ::core::option::Option<u64>,
6507        #[prost(sfixed64, optional, tag="6")]
6508        pub field_sfixed64: ::core::option::Option<i64>,
6509        #[prost(fixed32, optional, tag="7")]
6510        pub field_fixed32: ::core::option::Option<u32>,
6511        #[prost(sfixed32, optional, tag="8")]
6512        pub field_sfixed32: ::core::option::Option<i32>,
6513        #[prost(double, optional, tag="9")]
6514        pub field_double: ::core::option::Option<f64>,
6515        #[prost(float, optional, tag="10")]
6516        pub field_float: ::core::option::Option<f32>,
6517        #[prost(sint64, optional, tag="11")]
6518        pub field_sint64: ::core::option::Option<i64>,
6519        #[prost(sint32, optional, tag="12")]
6520        pub field_sint32: ::core::option::Option<i32>,
6521        #[prost(string, optional, tag="13")]
6522        pub field_string: ::core::option::Option<::prost::alloc::string::String>,
6523        #[prost(bytes="vec", optional, tag="14")]
6524        pub field_bytes: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
6525    }
6526}
6527/// The following fields define the set of enabled trace categories. Each list
6528/// item is a glob.
6529///
6530/// To determine if category is enabled, it is checked against the filters in
6531/// the following order:
6532///
6533///    1. Exact matches in enabled categories.
6534///    2. Exact matches in enabled tags.
6535///    3. Exact matches in disabled categories.
6536///    4. Exact matches in disabled tags.
6537///    5. Pattern matches in enabled categories.
6538///    6. Pattern matches in enabled tags.
6539///    7. Pattern matches in disabled categories.
6540///    8. Pattern matches in disabled tags.
6541///
6542/// If none of the steps produced a match:
6543///   - In the C++ SDK (`perfetto::Category`), categories are enabled by
6544///   default.
6545///   - In the C SDK (`PerfettoTeCategory`), categories are disabled by default.
6546///
6547/// Examples:
6548///
6549///   - To enable all non-slow/debug categories:
6550///
6551///        enabled_categories: "*"
6552///
6553///   - To enable specific categories:
6554///
6555///        disabled_categories: "*"
6556///        enabled_categories: "my_category"
6557///        enabled_categories: "my_category2"
6558///
6559///   - To enable only categories with a specific tag:
6560///
6561///        disabled_tags: "*"
6562///        enabled_tags: "my_tag"
6563///
6564#[derive(Clone, PartialEq, ::prost::Message)]
6565pub struct TrackEventConfig {
6566    /// Default: []
6567    #[prost(string, repeated, tag="1")]
6568    pub disabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6569    /// Default: []
6570    #[prost(string, repeated, tag="2")]
6571    pub enabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6572    /// Default: ["slow", "debug"]
6573    #[prost(string, repeated, tag="3")]
6574    pub disabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6575    /// Default: []
6576    #[prost(string, repeated, tag="4")]
6577    pub enabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6578    /// Default: false (i.e. enabled by default)
6579    #[prost(bool, optional, tag="5")]
6580    pub disable_incremental_timestamps: ::core::option::Option<bool>,
6581    /// Allows to specify a custom unit different than the default (ns).
6582    /// Also affects thread timestamps if enable_thread_time_sampling = true.
6583    /// A multiplier of 1000 means that a timestamp = 3 should be interpreted as
6584    /// 3000 ns = 3 us.
6585    /// Default: 1 (if unset, it should be read as 1).
6586    #[prost(uint64, optional, tag="6")]
6587    pub timestamp_unit_multiplier: ::core::option::Option<u64>,
6588    /// Default: false (i.e. debug_annotations is NOT filtered out by default)
6589    /// When true, any debug annotations provided as arguments to the
6590    /// TRACE_EVENT macros are not written into the trace. Typed arguments will
6591    /// still be emitted even if set to true.
6592    #[prost(bool, optional, tag="7")]
6593    pub filter_debug_annotations: ::core::option::Option<bool>,
6594    /// Default: false (i.e. disabled)
6595    /// When true, the SDK samples and emits the current thread time counter value
6596    /// for each event on the current thread's track. This value represents the
6597    /// total CPU time consumed by that thread since its creation.
6598    /// Learn more: "CLOCK_THREAD_CPUTIME_ID" flag at
6599    /// <https://man7.org/linux/man-pages/man3/clock_gettime.3.html>
6600    #[prost(bool, optional, tag="8")]
6601    pub enable_thread_time_sampling: ::core::option::Option<bool>,
6602    /// When enable_thread_time_sampling is true, and this is specified, thread
6603    /// time is sampled only if the elapsed wall time >
6604    /// `thread_time_subsampling_ns`. Otherwise, thread time is considered nil.
6605    /// Effectively, this means thread time will have a leeway of
6606    /// `thread_time_subsampling_ns` and won't be emitted for shorter events.
6607    #[prost(uint64, optional, tag="10")]
6608    pub thread_time_subsampling_ns: ::core::option::Option<u64>,
6609    /// Default: false (i.e. dynamic event names are NOT filtered out by default)
6610    /// When true, event_names wrapped in perfetto::DynamicString will be filtered
6611    /// out.
6612    #[prost(bool, optional, tag="9")]
6613    pub filter_dynamic_event_names: ::core::option::Option<bool>,
6614}
6615/// This data-source does a one-off recording of system information when
6616/// the trace starts.
6617/// Currently this includes:
6618/// - Values of
6619/// /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies This
6620/// datasource has no configuration options at present.
6621#[derive(Clone, PartialEq, ::prost::Message)]
6622pub struct SystemInfoConfig {
6623}
6624#[derive(Clone, PartialEq, ::prost::Message)]
6625pub struct ChromiumHistogramSamplesConfig {
6626    /// List of histograms to record. If no histogram is specified, all histograms
6627    /// are recorded.
6628    #[prost(message, repeated, tag="1")]
6629    pub histograms: ::prost::alloc::vec::Vec<chromium_histogram_samples_config::HistogramSample>,
6630    /// Default: false (i.e. histogram names are NOT filtered out by default)
6631    /// When true, histogram_name will be filtered out.
6632    #[prost(bool, optional, tag="2")]
6633    pub filter_histogram_names: ::core::option::Option<bool>,
6634}
6635/// Nested message and enum types in `ChromiumHistogramSamplesConfig`.
6636pub mod chromium_histogram_samples_config {
6637    /// Records when a value within the specified bounds [min_value, max_value] is
6638    /// emitted into a Chrome histogram.
6639    #[derive(Clone, PartialEq, ::prost::Message)]
6640    pub struct HistogramSample {
6641        #[prost(string, optional, tag="1")]
6642        pub histogram_name: ::core::option::Option<::prost::alloc::string::String>,
6643        #[prost(int64, optional, tag="2")]
6644        pub min_value: ::core::option::Option<i64>,
6645        #[prost(int64, optional, tag="3")]
6646        pub max_value: ::core::option::Option<i64>,
6647    }
6648}
6649/// QnxConfig is used with trace_qnx_probes build from
6650/// <https://github.com/qnx-ports/perfetto>
6651#[derive(Clone, PartialEq, ::prost::Message)]
6652pub struct QnxConfig {
6653    /// The number of buffers that tracelog will init for the QNX trace.
6654    #[prost(uint32, optional, tag="1")]
6655    pub qnx_kernel_buffers: ::core::option::Option<u32>,
6656    /// The number of kernel buffers that tracelog will init for the QNX trace.
6657    #[prost(uint32, optional, tag="2")]
6658    pub qnx_kernel_kbuffers: ::core::option::Option<u32>,
6659    /// Flag indicating whether the QNX kernel tracing should produce wide
6660    /// events which contain additional data or fast events which are most
6661    /// concise. In fast mode we lose the priority information
6662    #[prost(bool, optional, tag="3")]
6663    pub qnx_kernel_wide_events: ::core::option::Option<bool>,
6664    /// The number of pages initialized by default the parser's page cache.
6665    #[prost(uint32, optional, tag="4")]
6666    pub qnx_cache_pages: ::core::option::Option<u32>,
6667    /// The max pages the page cache should allocate (must be at least as big)
6668    /// as the qnx_cache_pages value. Using -1 will allow the cache to grow
6669    /// unbounded. The cache will prefer to re-use existing pages so growth will
6670    /// only happen when needed (when parser is not keeping up).
6671    #[prost(int32, optional, tag="5")]
6672    pub qnx_cache_max_pages: ::core::option::Option<i32>,
6673    /// The initial size of the the buffer used to hold the trace header values
6674    /// this dynamic buffer will grow as needed but reallocs can be avoided by
6675    /// selecting an initial size large enough to hold all the initial header
6676    /// data.
6677    #[prost(uint32, optional, tag="6")]
6678    pub qnx_trace_buffer_init_bytes: ::core::option::Option<u32>,
6679}
6680/// The configuration that is passed to each data source when starting tracing.
6681/// Next id: 141
6682#[derive(Clone, PartialEq, ::prost::Message)]
6683pub struct DataSourceConfig {
6684    /// Data source unique name, e.g., "linux.ftrace". This must match
6685    /// the name passed by the data source when it registers (see
6686    /// RegisterDataSource()).
6687    #[prost(string, optional, tag="1")]
6688    pub name: ::core::option::Option<::prost::alloc::string::String>,
6689    /// The index of the logging buffer where TracePacket(s) will be stored.
6690    /// This field is quite subtle as it has a double semantic:
6691    /// 1) When the config is passed, this field is a 0-based index relative to the
6692    ///     buffer array in the TraceConfig and defines the mapping between data
6693    ///     sources and config. From v54 this is optional because the user can
6694    ///     instead use target_buffer_name.
6695    /// 2) When the TracingService issues a SetupDataSource/StartDataSource to the
6696    ///     producer, it overwrites this field with the global buffer index (which
6697    ///     depends on other tracing sessions active). This tells the producer which
6698    ///     buffer id should be passed to CreateTraceWriter. In this case, the trace
6699    ///     service always sets the resolved global id, even when using
6700    ///     `target_buffer_name`.
6701    /// In hindsight we should have used two different fields given even in v0 they
6702    /// had a different semantic. But now it's too late as this would be a major
6703    /// protocol breaking change.
6704    #[prost(uint32, optional, tag="2")]
6705    pub target_buffer: ::core::option::Option<u32>,
6706    /// Alternative to |target_buffer|. References a buffer by name (as specified
6707    /// in TraceConfig.BufferConfig.name) rather than by index. This is more
6708    /// readable and less error-prone than using buffer indices.
6709    /// If both |target_buffer| and |target_buffer_name| are specified, they must
6710    /// refer to the same buffer, otherwise the service will reject the config.
6711    /// Using both fields allows configs to work with both old and new versions
6712    /// of the tracing service. Introduced in v54.
6713    #[prost(string, optional, tag="11")]
6714    pub target_buffer_name: ::core::option::Option<::prost::alloc::string::String>,
6715    /// Set by the service to indicate the duration of the trace.
6716    /// DO NOT SET in consumer as this will be overridden by the service.
6717    #[prost(uint32, optional, tag="3")]
6718    pub trace_duration_ms: ::core::option::Option<u32>,
6719    /// If true, |trace_duration_ms| should count also time in suspend. This
6720    /// is propagated from TraceConfig.prefer_suspend_clock_for_duration.
6721    #[prost(bool, optional, tag="122")]
6722    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
6723    /// Set by the service to indicate how long it waits after StopDataSource.
6724    /// DO NOT SET in consumer as this will be overridden by the service.
6725    #[prost(uint32, optional, tag="7")]
6726    pub stop_timeout_ms: ::core::option::Option<u32>,
6727    /// Set by the service to indicate whether this tracing session has extra
6728    /// guardrails.
6729    /// DO NOT SET in consumer as this will be overridden by the service.
6730    #[prost(bool, optional, tag="6")]
6731    pub enable_extra_guardrails: ::core::option::Option<bool>,
6732    /// Set by the service to indicate which user initiated this trace.
6733    /// DO NOT SET in consumer as this will be overridden by the service.
6734    #[prost(enumeration="data_source_config::SessionInitiator", optional, tag="8")]
6735    pub session_initiator: ::core::option::Option<i32>,
6736    /// Set by the service to indicate which tracing session the data source
6737    /// belongs to. The intended use case for this is checking if two data sources,
6738    /// one of which produces metadata for the other one, belong to the same trace
6739    /// session and hence should be linked together.
6740    /// This field was introduced in Aug 2018 after Android P.
6741    /// DO NOT SET in consumer as this will be overridden by the service.
6742    #[prost(uint64, optional, tag="4")]
6743    pub tracing_session_id: ::core::option::Option<u64>,
6744    /// How to behave when the producer runs out of space in the shared memory
6745    /// buffer. This is only honored by some data sources (in the SDK, the data
6746    /// sources registered with a configurable buffer exhausted policy).
6747    #[prost(enumeration="data_source_config::BufferExhaustedPolicy", optional, tag="9")]
6748    pub buffer_exhausted_policy: ::core::option::Option<i32>,
6749    #[prost(message, optional, tag="10")]
6750    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
6751    // If specified, the data source requires the tracing service to process
6752    // overwritten packets (patches) using a ProtoVM instance with this config.
6753    // The ProtoVM program is specified at data source registration time through
6754    // the descriptor.
6755
6756    /// TODO(primiano): today when we enable a protovm_config, we actually accept
6757    /// that if N producers advertise M different versions of the same program we
6758    /// will create M instances of that program.
6759    /// To overcome this, we could move the program to the TraceConfig. But doing
6760    /// so would bloat the trace config size too big and create problems to statsd.
6761    /// Once the config store (b/482305876) exists we should move protovm programs
6762    /// onto that.
6763    #[prost(message, optional, tag="12")]
6764    pub protovm_config: ::core::option::Option<ProtoVmConfig>,
6765    // Keep the lower IDs (up to 99) for fields that are *not* specific to
6766    // data-sources and needs to be processed by the traced daemon.
6767
6768    // All data source config fields must be marked as \[lazy=true\]. This prevents
6769    // the proto-to-cpp generator from recursing into those when generating the
6770    // cpp classes and polluting tracing/core with data-source-specific classes.
6771    // Instead they are treated as opaque strings containing raw proto bytes.
6772
6773    /// Data source name: linux.ftrace
6774    #[prost(message, optional, tag="100")]
6775    pub ftrace_config: ::core::option::Option<FtraceConfig>,
6776    /// Data source name: linux.inode_file_map
6777    #[prost(message, optional, tag="102")]
6778    pub inode_file_config: ::core::option::Option<InodeFileConfig>,
6779    /// Data source name: linux.process_stats
6780    #[prost(message, optional, tag="103")]
6781    pub process_stats_config: ::core::option::Option<ProcessStatsConfig>,
6782    /// Data source name: linux.sys_stats
6783    #[prost(message, optional, tag="104")]
6784    pub sys_stats_config: ::core::option::Option<SysStatsConfig>,
6785    /// Data source name: android.heapprofd
6786    /// Introduced in Android 10.
6787    #[prost(message, optional, tag="105")]
6788    pub heapprofd_config: ::core::option::Option<HeapprofdConfig>,
6789    /// Data source name: android.java_hprof
6790    /// Introduced in Android 11.
6791    #[prost(message, optional, tag="110")]
6792    pub java_hprof_config: ::core::option::Option<JavaHprofConfig>,
6793    /// Data source name: android.power
6794    #[prost(message, optional, tag="106")]
6795    pub android_power_config: ::core::option::Option<AndroidPowerConfig>,
6796    /// Data source name: android.log
6797    #[prost(message, optional, tag="107")]
6798    pub android_log_config: ::core::option::Option<AndroidLogConfig>,
6799    /// Data source name: gpu.counters
6800    #[prost(message, optional, tag="108")]
6801    pub gpu_counter_config: ::core::option::Option<GpuCounterConfig>,
6802    /// Data source name: android.game_interventions
6803    #[prost(message, optional, tag="116")]
6804    pub android_game_intervention_list_config: ::core::option::Option<AndroidGameInterventionListConfig>,
6805    /// Data source name: android.packages_list
6806    #[prost(message, optional, tag="109")]
6807    pub packages_list_config: ::core::option::Option<PackagesListConfig>,
6808    /// Data source name: linux.perf
6809    #[prost(message, optional, tag="111")]
6810    pub perf_event_config: ::core::option::Option<PerfEventConfig>,
6811    /// Data source name: vulkan.memory_tracker
6812    #[prost(message, optional, tag="112")]
6813    pub vulkan_memory_config: ::core::option::Option<VulkanMemoryConfig>,
6814    /// Data source name: track_event
6815    #[prost(message, optional, tag="113")]
6816    pub track_event_config: ::core::option::Option<TrackEventConfig>,
6817    /// Data source name: android.polled_state
6818    #[prost(message, optional, tag="114")]
6819    pub android_polled_state_config: ::core::option::Option<AndroidPolledStateConfig>,
6820    /// Data source name: android.system_property
6821    #[prost(message, optional, tag="118")]
6822    pub android_system_property_config: ::core::option::Option<AndroidSystemPropertyConfig>,
6823    /// Data source name: android.statsd
6824    #[prost(message, optional, tag="117")]
6825    pub statsd_tracing_config: ::core::option::Option<StatsdTracingConfig>,
6826    /// Data source name: linux.system_info
6827    #[prost(message, optional, tag="119")]
6828    pub system_info_config: ::core::option::Option<SystemInfoConfig>,
6829    /// Data source name: linux.frozen_ftrace
6830    #[prost(message, optional, tag="136")]
6831    pub frozen_ftrace_config: ::core::option::Option<FrozenFtraceConfig>,
6832    /// Chrome is special as it doesn't use the perfetto IPC layer. We want to
6833    /// avoid proto serialization and de-serialization there because that would
6834    /// just add extra hops on top of the Mojo ser/des. Instead we auto-generate a
6835    /// C++ class for it so it can pass around plain C++ objets.
6836    #[prost(message, optional, tag="101")]
6837    pub chrome_config: ::core::option::Option<ChromeConfig>,
6838    /// Data source name: code.v8.dev
6839    #[prost(message, optional, tag="127")]
6840    pub v8_config: ::core::option::Option<V8Config>,
6841    /// If an interceptor is specified here, packets for this data source will be
6842    /// rerouted to the interceptor instead of the main trace buffer. This can be
6843    /// used, for example, to write trace data into ETW or for logging trace points
6844    /// to the console.
6845    ///
6846    /// Note that interceptors are only supported by data sources registered
6847    /// through the Perfetto SDK API. Data sources that don't use that API (e.g.,
6848    /// traced_probes) may not support interception.
6849    #[prost(message, optional, tag="115")]
6850    pub interceptor_config: ::core::option::Option<InterceptorConfig>,
6851    /// Data source name: android.network_packets.
6852    /// Introduced in Android 14 (U).
6853    #[prost(message, optional, tag="120")]
6854    pub network_packet_trace_config: ::core::option::Option<NetworkPacketTraceConfig>,
6855    /// Data source name: android.surfaceflinger.layers
6856    #[prost(message, optional, tag="121")]
6857    pub surfaceflinger_layers_config: ::core::option::Option<SurfaceFlingerLayersConfig>,
6858    /// Data source name: android.surfaceflinger.transactions
6859    #[prost(message, optional, tag="123")]
6860    pub surfaceflinger_transactions_config: ::core::option::Option<SurfaceFlingerTransactionsConfig>,
6861    /// Data source name: android.sdk_sysprop_guard
6862    /// Introduced in Android 14 (U) QPR1.
6863    #[prost(message, optional, tag="124")]
6864    pub android_sdk_sysprop_guard_config: ::core::option::Option<AndroidSdkSyspropGuardConfig>,
6865    /// Data source name: windows.etw
6866    #[prost(message, optional, tag="125")]
6867    pub etw_config: ::core::option::Option<EtwConfig>,
6868    /// Data source name: android.protolog
6869    #[prost(message, optional, tag="126")]
6870    pub protolog_config: ::core::option::Option<ProtoLogConfig>,
6871    /// Data source name: android.input.inputevent
6872    #[prost(message, optional, tag="128")]
6873    pub android_input_event_config: ::core::option::Option<AndroidInputEventConfig>,
6874    /// Data source name: android.pixel.modem
6875    #[prost(message, optional, tag="129")]
6876    pub pixel_modem_config: ::core::option::Option<PixelModemConfig>,
6877    /// Data source name: android.windowmanager
6878    #[prost(message, optional, tag="130")]
6879    pub windowmanager_config: ::core::option::Option<WindowManagerConfig>,
6880    /// Data source name: org.chromium.system_metrics
6881    #[prost(message, optional, tag="131")]
6882    pub chromium_system_metrics: ::core::option::Option<ChromiumSystemMetricsConfig>,
6883    /// Data source name: android.kernel_wakelocks
6884    #[prost(message, optional, tag="132")]
6885    pub kernel_wakelocks_config: ::core::option::Option<KernelWakelocksConfig>,
6886    /// Data source name: gpu.renderstages
6887    #[prost(message, optional, tag="133")]
6888    pub gpu_renderstages_config: ::core::option::Option<GpuRenderStagesConfig>,
6889    /// Data source name: org.chromium.histogram_samples
6890    #[prost(message, optional, tag="134")]
6891    pub chromium_histogram_samples: ::core::option::Option<ChromiumHistogramSamplesConfig>,
6892    /// Data source name: android.app_wakelocks
6893    #[prost(message, optional, tag="135")]
6894    pub app_wakelocks_config: ::core::option::Option<AppWakelocksConfig>,
6895    /// Data source name: android.cpu_per_uid
6896    #[prost(message, optional, tag="137")]
6897    pub cpu_per_uid_config: ::core::option::Option<CpuPerUidConfig>,
6898    /// Data source name: android.user_list
6899    #[prost(message, optional, tag="138")]
6900    pub user_list_config: ::core::option::Option<AndroidUserListConfig>,
6901    /// Data source name: android.inputmethod
6902    #[prost(message, optional, tag="139")]
6903    pub inputmethod_config: ::core::option::Option<InputMethodConfig>,
6904    /// Data source name: android.aflags
6905    #[prost(message, optional, tag="140")]
6906    pub android_aflags_config: ::core::option::Option<AndroidAflagsConfig>,
6907    /// Data source name: qnx.kernel
6908    #[prost(message, optional, tag="150")]
6909    pub qnx_config: ::core::option::Option<QnxConfig>,
6910    /// This is a fallback mechanism to send a free-form text config to the
6911    /// producer. In theory this should never be needed. All the code that
6912    /// is part of the platform (i.e. traced service) is supposed to *not* truncate
6913    /// the trace config proto and propagate unknown fields. However, if anything
6914    /// in the pipeline (client or backend) ends up breaking this forward compat
6915    /// plan, this field will become the escape hatch to allow future data sources
6916    /// to get some meaningful configuration.
6917    #[prost(string, optional, tag="1000")]
6918    pub legacy_config: ::core::option::Option<::prost::alloc::string::String>,
6919    /// This field is only used for testing.
6920    #[prost(message, optional, tag="1001")]
6921    pub for_testing: ::core::option::Option<TestConfig>,
6922}
6923/// Nested message and enum types in `DataSourceConfig`.
6924pub mod data_source_config {
6925    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6926    #[repr(i32)]
6927    pub enum SessionInitiator {
6928        Unspecified = 0,
6929        /// This trace was initiated from a trusted system app has DUMP and
6930        /// USAGE_STATS permission. This system app is expected to not expose the
6931        /// trace to the user of the device.
6932        /// This is determined by checking the UID initiating the trace.
6933        TrustedSystem = 1,
6934    }
6935    impl SessionInitiator {
6936        /// String value of the enum field names used in the ProtoBuf definition.
6937        ///
6938        /// The values are not transformed in any way and thus are considered stable
6939        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6940        pub fn as_str_name(&self) -> &'static str {
6941            match self {
6942                SessionInitiator::Unspecified => "SESSION_INITIATOR_UNSPECIFIED",
6943                SessionInitiator::TrustedSystem => "SESSION_INITIATOR_TRUSTED_SYSTEM",
6944            }
6945        }
6946    }
6947    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6948    #[repr(i32)]
6949    pub enum BufferExhaustedPolicy {
6950        /// The data source will use its default buffer exhausted policy, specified
6951        /// by the code when the data source is registered.
6952        BufferExhaustedUnspecified = 0,
6953        /// The data source will drop packets when there's no space in the shared
6954        /// memory buffer.
6955        BufferExhaustedDrop = 1,
6956        /// The data source will wait when there's no space in the shared memory
6957        /// buffer. If there's still not space, after a few seconds, the whole
6958        /// producer process will be aborted.
6959        BufferExhaustedStallThenAbort = 2,
6960        /// The data source will wait when there's no space in the shared memory
6961        /// buffer.  If there's still not space, after a few seconds, the data source
6962        /// will drop packets.
6963        BufferExhaustedStallThenDrop = 3,
6964    }
6965    impl BufferExhaustedPolicy {
6966        /// String value of the enum field names used in the ProtoBuf definition.
6967        ///
6968        /// The values are not transformed in any way and thus are considered stable
6969        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6970        pub fn as_str_name(&self) -> &'static str {
6971            match self {
6972                BufferExhaustedPolicy::BufferExhaustedUnspecified => "BUFFER_EXHAUSTED_UNSPECIFIED",
6973                BufferExhaustedPolicy::BufferExhaustedDrop => "BUFFER_EXHAUSTED_DROP",
6974                BufferExhaustedPolicy::BufferExhaustedStallThenAbort => "BUFFER_EXHAUSTED_STALL_THEN_ABORT",
6975                BufferExhaustedPolicy::BufferExhaustedStallThenDrop => "BUFFER_EXHAUSTED_STALL_THEN_DROP",
6976            }
6977        }
6978    }
6979}
6980/// The overall config that is used when starting a new tracing session through
6981/// ProducerPort::StartTracing().
6982/// It contains the general config for the logging buffer(s) and the configs for
6983/// all the data source being enabled.
6984///
6985/// Next id: 47.
6986#[derive(Clone, PartialEq, ::prost::Message)]
6987pub struct TraceConfig {
6988    #[prost(message, repeated, tag="1")]
6989    pub buffers: ::prost::alloc::vec::Vec<trace_config::BufferConfig>,
6990    #[prost(message, repeated, tag="2")]
6991    pub data_sources: ::prost::alloc::vec::Vec<trace_config::DataSource>,
6992    #[prost(message, optional, tag="20")]
6993    pub builtin_data_sources: ::core::option::Option<trace_config::BuiltinDataSource>,
6994    /// If specified, the trace will be stopped |duration_ms| after starting.
6995    /// This does *not* count the time the system is suspended, so we will run
6996    /// for duration_ms of system activity, not wall time.
6997    ///
6998    /// However in case of traces with triggers, see
6999    /// TriggerConfig.trigger_timeout_ms instead.
7000    #[prost(uint32, optional, tag="3")]
7001    pub duration_ms: ::core::option::Option<u32>,
7002    /// If true, tries to use CLOCK_BOOTTIME for duration_ms rather than
7003    /// CLOCK_MONOTONIC (which doesn't count time in suspend). Supported only on
7004    /// Linux/Android, no-op on other platforms. This is used when dealing with
7005    /// long (e.g. 24h) traces, where suspend can inflate them to weeks of
7006    /// wall-time, making them more likely to hit device reboots (and hence loss).
7007    /// This option also changes consistently the semantic of
7008    /// TriggerConfig.stop_delay_ms.
7009    #[prost(bool, optional, tag="36")]
7010    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
7011    /// This is set when --dropbox is passed to the Perfetto command line client
7012    /// and enables guardrails that limit resource usage for traces requested
7013    /// by statsd.
7014    #[prost(bool, optional, tag="4")]
7015    pub enable_extra_guardrails: ::core::option::Option<bool>,
7016    /// Reject producers that are not running under the same UID as the tracing
7017    /// service.
7018    #[prost(enumeration="trace_config::LockdownModeOperation", optional, tag="5")]
7019    pub lockdown_mode: ::core::option::Option<i32>,
7020    #[prost(message, repeated, tag="6")]
7021    pub producers: ::prost::alloc::vec::Vec<trace_config::ProducerConfig>,
7022    /// Statsd-specific metadata.
7023    #[prost(message, optional, tag="7")]
7024    pub statsd_metadata: ::core::option::Option<trace_config::StatsdMetadata>,
7025    /// When true && |output_path| is empty, the EnableTracing() request must
7026    /// provide a file descriptor. The service will then periodically read packets
7027    /// out of the trace buffer and store it into the passed file.
7028    /// If |output_path| is not empty no fd should be passed, the service
7029    /// will create a new file and write into that (see comment below).
7030    #[prost(bool, optional, tag="8")]
7031    pub write_into_file: ::core::option::Option<bool>,
7032    /// This must point to a non-existing file. If the file exists the service
7033    /// will NOT overwrite and will fail instead as a security precaution.
7034    /// On Android, when this is used with the system traced, the path must be
7035    /// within /data/misc/perfetto-traces/ or the trace will fail.
7036    /// This option has been introduced in Android R. Before R write_into_file
7037    /// can be used only with the "pass a file descriptor over IPC" mode.
7038    #[prost(string, optional, tag="29")]
7039    pub output_path: ::core::option::Option<::prost::alloc::string::String>,
7040    /// Optional. If non-zero tunes the write period. A min value of 100ms is
7041    /// enforced (i.e. smaller values are ignored).
7042    #[prost(uint32, optional, tag="9")]
7043    pub file_write_period_ms: ::core::option::Option<u32>,
7044    /// Optional. When non zero the periodic write stops once at most X bytes
7045    /// have been written into the file. Tracing is disabled when this limit is
7046    /// reached, even if |duration_ms| has not been reached yet.
7047    #[prost(uint64, optional, tag="10")]
7048    pub max_file_size_bytes: ::core::option::Option<u64>,
7049    #[prost(message, optional, tag="11")]
7050    pub guardrail_overrides: ::core::option::Option<trace_config::GuardrailOverrides>,
7051    /// When true, data sources are not started until an explicit call to
7052    /// StartTracing() on the consumer port. This is to support early
7053    /// initialization and fast trace triggering. This can be used only when the
7054    /// Consumer explicitly triggers the StartTracing() method.
7055    /// This should not be used in a remote trace config via statsd, doing so will
7056    /// result in a hung trace session.
7057    #[prost(bool, optional, tag="12")]
7058    pub deferred_start: ::core::option::Option<bool>,
7059    /// When set, it periodically issues a Flush() to all data source, forcing them
7060    /// to commit their data into the tracing service. This can be used for
7061    /// quasi-real-time streaming mode and to guarantee some partial ordering of
7062    /// events in the trace in windows of X ms.
7063    ///
7064    /// Warning: Perfetto automatically handles periodic flushing so in most
7065    /// scenarios setting this field is not needed. High frequency flushing can
7066    /// significantly impact performance.
7067    #[prost(uint32, optional, tag="13")]
7068    pub flush_period_ms: ::core::option::Option<u32>,
7069    /// Wait for this long for producers to acknowledge flush requests.
7070    /// Default 5s.
7071    #[prost(uint32, optional, tag="14")]
7072    pub flush_timeout_ms: ::core::option::Option<u32>,
7073    /// Wait for this long for producers to acknowledge stop requests.
7074    /// Default 5s.
7075    #[prost(uint32, optional, tag="23")]
7076    pub data_source_stop_timeout_ms: ::core::option::Option<u32>,
7077    /// Android-only. If set, sends an intent to the Traceur system app when the
7078    /// trace ends to notify it about the trace readiness.
7079    #[prost(bool, optional, tag="16")]
7080    pub notify_traceur: ::core::option::Option<bool>,
7081    /// This field was introduced in Android S.
7082    /// Android-only. If set to a value > 0, marks the trace session as a candidate
7083    /// for being attached to a bugreport. This field effectively acts as a z-index
7084    /// for bugreports. When Android's dumpstate runs perfetto
7085    /// --save-for-bugreport, traced will pick the tracing session with the highest
7086    /// score (score <= 0 is ignored) and:
7087    /// On Android S, T:  will steal its contents, save the trace into
7088    ///      a known path and stop prematurely.
7089    /// On Android U+: will create a read-only snapshot and save that into a known
7090    ///      path, without stoppin the original tracing session.
7091    /// When this field is set the tracing session becomes eligible to be cloned
7092    /// by other UIDs.
7093    #[prost(int32, optional, tag="30")]
7094    pub bugreport_score: ::core::option::Option<i32>,
7095    /// When set, defines name of the file that will be saved under
7096    /// /data/misc/perfetto-traces/bugreport/ when using --save-all-for-bugreport.
7097    /// If omitted, traces will be named systrace.pftrace, systrace_1.pftrace, etc,
7098    /// starting from the highest `bugreport_score`.
7099    /// Introduced in v42 / Android V.
7100    #[prost(string, optional, tag="38")]
7101    pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
7102    #[prost(message, optional, tag="17")]
7103    pub trigger_config: ::core::option::Option<trace_config::TriggerConfig>,
7104    /// When this is non-empty the perfetto command line tool will ignore the rest
7105    /// of this TraceConfig and instead connect to the perfetto service as a
7106    /// producer and send these triggers, potentially stopping or starting traces
7107    /// that were previous configured to use a TriggerConfig.
7108    #[prost(string, repeated, tag="18")]
7109    pub activate_triggers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7110    #[prost(message, optional, tag="21")]
7111    pub incremental_state_config: ::core::option::Option<trace_config::IncrementalStateConfig>,
7112    /// No longer needed as we unconditionally allow tracing on user builds.
7113    #[deprecated]
7114    #[prost(bool, optional, tag="19")]
7115    pub allow_user_build_tracing: ::core::option::Option<bool>,
7116    /// If set the tracing service will ensure there is at most one tracing session
7117    /// with this key.
7118    #[prost(string, optional, tag="22")]
7119    pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
7120    #[prost(enumeration="trace_config::CompressionType", optional, tag="24")]
7121    pub compression_type: ::core::option::Option<i32>,
7122    #[prost(message, optional, tag="25")]
7123    pub incident_report_config: ::core::option::Option<trace_config::IncidentReportConfig>,
7124    /// Android-only. Not for general use. If specified, sets the logging to statsd
7125    /// of guardrails and checkpoints in the tracing service. perfetto_cmd sets
7126    /// this to enabled (if not explicitly set in the config) when specifying
7127    /// --upload.
7128    #[prost(enumeration="trace_config::StatsdLogging", optional, tag="31")]
7129    pub statsd_logging: ::core::option::Option<i32>,
7130    /// An identifier clients can use to tie this trace to other logging.
7131    /// DEPRECATED as per v32. See TracePacket.trace_uuid for the authoritative
7132    /// Trace UUID. If this field is set, the tracing service will respect the
7133    /// requested UUID (i.e. TracePacket.trace_uuid == this field) but only if
7134    /// gap-less snapshotting is not used.
7135    #[deprecated]
7136    #[prost(int64, optional, tag="27")]
7137    pub trace_uuid_msb: ::core::option::Option<i64>,
7138    #[deprecated]
7139    #[prost(int64, optional, tag="28")]
7140    pub trace_uuid_lsb: ::core::option::Option<i64>,
7141    #[prost(message, optional, tag="33")]
7142    pub trace_filter: ::core::option::Option<trace_config::TraceFilter>,
7143    #[prost(message, optional, tag="34")]
7144    pub android_report_config: ::core::option::Option<trace_config::AndroidReportConfig>,
7145    #[prost(message, optional, tag="35")]
7146    pub cmd_trace_start_delay: ::core::option::Option<trace_config::CmdTraceStartDelay>,
7147    #[prost(message, repeated, tag="39")]
7148    pub session_semaphores: ::prost::alloc::vec::Vec<trace_config::SessionSemaphore>,
7149    /// Priority boost to be applied to the traced process, when the session is
7150    /// running.
7151    #[prost(message, optional, tag="40")]
7152    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
7153    /// When set to a value > 0, this tracing session will be started in
7154    /// "exclusive mode". This has the following semantics:
7155    /// - It can only be set by shell or root users.
7156    /// - A new exclusive session will only be started if its priority is strictly
7157    ///    higher than any other active tracing session.
7158    /// - If a new exclusive session is started, all other existing tracing
7159    ///    sessions (exclusive or not) are aborted.
7160    /// - While an exclusive session is active, any new non-exclusive session (or
7161    ///    any exclusive session with a lower or equal priority) will be rejected.
7162    ///
7163    /// Introduced in: perfetto v52.
7164    /// Supported on: Android 25Q3+.
7165    #[prost(uint32, optional, tag="41")]
7166    pub exclusive_prio: ::core::option::Option<u32>,
7167    /// Configures how the service should handle flushing data from producers
7168    /// before periodically writing the trace into the output file.
7169    /// Only applicable when |write_into_file| is true.
7170    ///
7171    /// By default, if |write_into_file| is set, the service periodically issues
7172    /// a Flush() to all data sources before writing buffers into the file.
7173    /// This ensures the file always contains the latest available data.
7174    ///
7175    /// Introduced in: perfetto v54.
7176    /// Supported on: Android 26Q1+.
7177    #[prost(enumeration="trace_config::WriteFlushMode", optional, tag="44")]
7178    pub write_flush_mode: ::core::option::Option<i32>,
7179    /// Whether to sync the output file to storage after each periodic write pass.
7180    /// Only applicable when |write_into_file| is true.
7181    ///
7182    /// By default, no fflush is invoked. FFLUSH_ENABLED must be set to explicitly
7183    /// sync to storage on every write.
7184    ///
7185    /// Introduced in: perfetto v54.
7186    /// Supported on: Android 26Q1+.
7187    #[prost(enumeration="trace_config::FFlushMode", optional, tag="45")]
7188    pub fflush_post_write: ::core::option::Option<i32>,
7189    /// When true, data sources in remote producers (machines connected via
7190    /// traced_relay) will be matched by default. When false (the default), data
7191    /// sources only match the host machine. In either case, an explicit
7192    /// |DataSource.machine_name_filter| takes priority.
7193    ///
7194    /// NB: perfetto versions before v54 do not have this option and match across
7195    /// machines by default. To be compatible across this version boundary, either
7196    /// set this field to true, or set an explicit machine_name_filter on all data
7197    /// sources.
7198    ///
7199    /// Introduced in: perfetto v54.
7200    #[prost(bool, optional, tag="43")]
7201    pub trace_all_machines: ::core::option::Option<bool>,
7202    #[prost(message, repeated, tag="46")]
7203    pub notes: ::prost::alloc::vec::Vec<trace_config::Note>,
7204}
7205/// Nested message and enum types in `TraceConfig`.
7206pub mod trace_config {
7207    #[derive(Clone, PartialEq, ::prost::Message)]
7208    pub struct BufferConfig {
7209        #[prost(uint32, optional, tag="1")]
7210        pub size_kb: ::core::option::Option<u32>,
7211        #[prost(enumeration="buffer_config::FillPolicy", optional, tag="4")]
7212        pub fill_policy: ::core::option::Option<i32>,
7213        /// When true the buffer is moved (rather than copied) onto the cloned
7214        /// session, and an empty buffer of the same size is allocated in the source
7215        /// tracing session. This feature will likely get deprecated in the future.
7216        /// It been introduced mainly to support the surfaceflinger snapshot dump
7217        /// for bugreports, where SF can dumps O(400MB) into the bugreport trace. In
7218        /// that case we don't want to retain another in-memory copy of the buffer.
7219        #[prost(bool, optional, tag="5")]
7220        pub transfer_on_clone: ::core::option::Option<bool>,
7221        /// Used in conjunction with transfer_on_clone. When true the buffer is
7222        /// cleared before issuing the Flush(reason=kTraceClone). This is to ensure
7223        /// that if the data source took too long to write the data in a previous
7224        /// clone-related flush, we don't end up with a mixture of leftovers from
7225        /// the previous write and new data.
7226        #[prost(bool, optional, tag="6")]
7227        pub clear_before_clone: ::core::option::Option<bool>,
7228        /// Optional name for this buffer. If set, data sources can reference this
7229        /// buffer by name using |target_buffer_name| in DataSourceConfig instead of
7230        /// using the buffer index. Buffer names must be unique within a tracing
7231        /// session. This provides a more human-readable and less error-prone way to
7232        /// configure which buffer a data source writes to.
7233        #[prost(string, optional, tag="7")]
7234        pub name: ::core::option::Option<::prost::alloc::string::String>,
7235        #[prost(enumeration="buffer_config::ExperimentalMode", optional, tag="8")]
7236        pub experimental_mode: ::core::option::Option<i32>,
7237    }
7238    /// Nested message and enum types in `BufferConfig`.
7239    pub mod buffer_config {
7240        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7241        #[repr(i32)]
7242        pub enum FillPolicy {
7243            Unspecified = 0,
7244            /// Default behavior. The buffer operates as a conventional ring buffer.
7245            /// If the writer is faster than the reader (or if the reader reads only
7246            /// after tracing is stopped) newly written packets will overwrite old
7247            /// packets.
7248            RingBuffer = 1,
7249            /// Behaves like RING_BUFFER as long as there is space in the buffer or
7250            /// the reader catches up with the writer. As soon as the writer hits
7251            /// an unread chunk, it stops accepting new data in the buffer.
7252            Discard = 2,
7253        }
7254        impl FillPolicy {
7255            /// String value of the enum field names used in the ProtoBuf definition.
7256            ///
7257            /// The values are not transformed in any way and thus are considered stable
7258            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7259            pub fn as_str_name(&self) -> &'static str {
7260                match self {
7261                    FillPolicy::Unspecified => "UNSPECIFIED",
7262                    FillPolicy::RingBuffer => "RING_BUFFER",
7263                    FillPolicy::Discard => "DISCARD",
7264                }
7265            }
7266        }
7267        /// When true, uses the experimental TraceBufferV2 implementation for this
7268        /// buffer. This is for testing purposes only and may be removed in future
7269        /// versions.
7270        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7271        #[repr(i32)]
7272        pub enum ExperimentalMode {
7273            /// Use the default V1 implementation.
7274            ModeUnspecified = 0,
7275            /// Use TraceBufferV2.
7276            TraceBufferV2 = 1,
7277            /// Use both V1 and V2 in shadow mode. Data is written to both buffers,
7278            /// but only V1 data is returned. Comparison stats are reported to
7279            /// validate V2 returns equivalent data.
7280            TraceBufferV2ShadowMode = 2,
7281        }
7282        impl ExperimentalMode {
7283            /// String value of the enum field names used in the ProtoBuf definition.
7284            ///
7285            /// The values are not transformed in any way and thus are considered stable
7286            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7287            pub fn as_str_name(&self) -> &'static str {
7288                match self {
7289                    ExperimentalMode::ModeUnspecified => "MODE_UNSPECIFIED",
7290                    ExperimentalMode::TraceBufferV2 => "TRACE_BUFFER_V2",
7291                    ExperimentalMode::TraceBufferV2ShadowMode => "TRACE_BUFFER_V2_SHADOW_MODE",
7292                }
7293            }
7294        }
7295    }
7296    #[derive(Clone, PartialEq, ::prost::Message)]
7297    pub struct DataSource {
7298        /// Filters and data-source specific config. It contains also the unique name
7299        /// of the data source, the one passed in the  DataSourceDescriptor when they
7300        /// register on the service.
7301        #[prost(message, optional, tag="1")]
7302        pub config: ::core::option::Option<super::DataSourceConfig>,
7303        /// Optional. If multiple producers (~processes) expose the same data source
7304        /// and either |producer_name_filter| or |producer_name_regex_filter| is set,
7305        /// the data source is enabled only for producers whose names match any of
7306        /// the filters.
7307        /// |producer_name_filter| has to be an exact match, while
7308        /// |producer_name_regex_filter| is a regular expression.
7309        /// This allows to enable a data source only for specific processes.
7310        /// The "repeated" fields have OR semantics: specifying a filter ["foo",
7311        /// "bar"] will enable data sources on both "foo" and "bar" (if they exist).
7312        #[prost(string, repeated, tag="2")]
7313        pub producer_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7314        #[prost(string, repeated, tag="3")]
7315        pub producer_name_regex_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7316        /// Filter by machine names. The name of a machine is determined by the
7317        /// PERFETTO_MACHINE_NAME env variable. In Android systems, if the env
7318        /// variable is not set then the
7319        /// persist.traced_relay.machine_name system property is used. If the
7320        /// sysprop isn't set or not in an Android system, then the machine name by
7321        /// default is set to the utsname sysname (e.g. Linux), which can be obtained
7322        /// via the 'uname -s' command. As a convenience, one can use "host" to refer
7323        /// to the host machine, which is the machine running traced.
7324        #[prost(string, repeated, tag="4")]
7325        pub machine_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7326    }
7327    /// Config for disabling builtin data sources in the tracing service.
7328    #[derive(Clone, PartialEq, ::prost::Message)]
7329    pub struct BuiltinDataSource {
7330        /// Disable emitting clock timestamps into the trace.
7331        #[prost(bool, optional, tag="1")]
7332        pub disable_clock_snapshotting: ::core::option::Option<bool>,
7333        /// Disable echoing the original trace config in the trace.
7334        #[prost(bool, optional, tag="2")]
7335        pub disable_trace_config: ::core::option::Option<bool>,
7336        /// Disable emitting system info (build fingerprint, cpuinfo, etc).
7337        #[prost(bool, optional, tag="3")]
7338        pub disable_system_info: ::core::option::Option<bool>,
7339        /// Disable emitting events for data-source state changes (e.g. the marker
7340        /// for all data sources having ACKed the start of the trace).
7341        #[prost(bool, optional, tag="4")]
7342        pub disable_service_events: ::core::option::Option<bool>,
7343        /// The authoritative clock domain for the trace. Defaults to BOOTTIME. See
7344        /// also ClockSnapshot's primary_trace_clock. The configured value is written
7345        /// into the trace as part of the ClockSnapshots emitted by the service.
7346        /// Trace processor will attempt to translate packet/event timestamps from
7347        /// various data sources (and their chosen clock domains) to this domain
7348        /// during import. Added in Android R.
7349        #[prost(enumeration="super::BuiltinClock", optional, tag="5")]
7350        pub primary_trace_clock: ::core::option::Option<i32>,
7351        /// Time interval in between snapshotting of sync markers, clock snapshots,
7352        /// stats, and other periodic service-emitted events. Note that the service
7353        /// only keeps track of the first and the most recent snapshot until
7354        /// ReadBuffers() is called.
7355        #[prost(uint32, optional, tag="6")]
7356        pub snapshot_interval_ms: ::core::option::Option<u32>,
7357        /// Hints to the service that a suspend-aware (i.e. counting time in suspend)
7358        /// clock should be used for periodic snapshots of service-emitted events.
7359        /// This means, if a snapshot *should* have happened during suspend, it will
7360        /// happen immediately after the device resumes.
7361        ///
7362        /// Choosing a clock like this is done on best-effort basis; not all
7363        /// platforms (e.g. Windows) expose a clock which can be used for periodic
7364        /// tasks counting suspend. If such a clock is not available, the service
7365        /// falls back to the best-available alternative.
7366        ///
7367        /// Introduced in Android S.
7368        /// TODO(lalitm): deprecate this in T and make this the default if nothing
7369        /// crashes in S.
7370        #[prost(bool, optional, tag="7")]
7371        pub prefer_suspend_clock_for_snapshot: ::core::option::Option<bool>,
7372        /// Disables the reporting of per-trace-writer histograms in TraceStats.
7373        #[prost(bool, optional, tag="8")]
7374        pub disable_chunk_usage_histograms: ::core::option::Option<bool>,
7375        /// Disable emitting extension descriptors into the trace.
7376        #[prost(bool, optional, tag="9")]
7377        pub disable_extension_descriptors: ::core::option::Option<bool>,
7378    }
7379    #[derive(Clone, PartialEq, ::prost::Message)]
7380    pub struct ProducerConfig {
7381        /// Identifies the producer for which this config is for.
7382        #[prost(string, optional, tag="1")]
7383        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
7384        /// Specifies the preferred size of the shared memory buffer. If the size is
7385        /// larger than the max size, the max will be used. If it is smaller than
7386        /// the page size or doesn't fit pages evenly into it, it will fall back to
7387        /// the size specified by the producer or finally the default shared memory
7388        /// size.
7389        #[prost(uint32, optional, tag="2")]
7390        pub shm_size_kb: ::core::option::Option<u32>,
7391        /// Specifies the preferred size of each page in the shared memory buffer.
7392        /// Must be an integer multiple of 4K.
7393        #[prost(uint32, optional, tag="3")]
7394        pub page_size_kb: ::core::option::Option<u32>,
7395    }
7396    /// Contains statsd-specific metadata about an alert associated with the trace.
7397    #[derive(Clone, PartialEq, ::prost::Message)]
7398    pub struct StatsdMetadata {
7399        /// The identifier of the alert which triggered this trace.
7400        #[prost(int64, optional, tag="1")]
7401        pub triggering_alert_id: ::core::option::Option<i64>,
7402        /// The uid which registered the triggering configuration with statsd.
7403        #[prost(int32, optional, tag="2")]
7404        pub triggering_config_uid: ::core::option::Option<i32>,
7405        /// The identifier of the config which triggered the alert.
7406        #[prost(int64, optional, tag="3")]
7407        pub triggering_config_id: ::core::option::Option<i64>,
7408        /// The identifier of the subscription which triggered this trace.
7409        #[prost(int64, optional, tag="4")]
7410        pub triggering_subscription_id: ::core::option::Option<i64>,
7411    }
7412    /// Contains flags which override the default values of the guardrails inside
7413    /// Perfetto.
7414    #[derive(Clone, PartialEq, ::prost::Message)]
7415    pub struct GuardrailOverrides {
7416        /// Override the default limit (in bytes) for uploading data to server within
7417        /// a 24 hour period.
7418        /// On R-, this override only affected userdebug builds. Since S, it also
7419        /// affects user builds.
7420        /// In 24Q3+ (V+), this override is a noop because upload guardrail logic
7421        /// was removed from Perfetto.
7422        #[deprecated]
7423        #[prost(uint64, optional, tag="1")]
7424        pub max_upload_per_day_bytes: ::core::option::Option<u64>,
7425        /// Overrides the guardrail for maximum trace buffer size.
7426        /// Available on U+
7427        #[prost(uint32, optional, tag="2")]
7428        pub max_tracing_buffer_size_kb: ::core::option::Option<u32>,
7429    }
7430    /// Triggers allow producers to start or stop the tracing session when an event
7431    /// occurs.
7432    ///
7433    /// For example if we are tracing probabilistically, most traces will be
7434    /// uninteresting. Triggers allow us to keep only the interesting ones such as
7435    /// those traces during which the device temperature reached a certain
7436    /// threshold. In this case the producer can activate a trigger to keep
7437    /// (STOP_TRACING) the trace, otherwise it can also begin a trace
7438    /// (START_TRACING) because it knows something is about to happen.
7439    #[derive(Clone, PartialEq, ::prost::Message)]
7440    pub struct TriggerConfig {
7441        #[prost(enumeration="trigger_config::TriggerMode", optional, tag="1")]
7442        pub trigger_mode: ::core::option::Option<i32>,
7443        /// This flag is really a workaround for b/274931668. This is needed only
7444        /// when deploying configs to different versions of the tracing service.
7445        /// When this is set to true this has the same effect of setting trigger_mode
7446        /// to CLONE_SNAPSHOT on newer versions of the service. This boolean has been
7447        /// introduced to allow to have configs that use CLONE_SNAPSHOT on newer
7448        /// versions of Android and fall back to STOP_TRACING on older versions where
7449        /// CLONE_SNAPSHOT did not exist.
7450        /// When using this flag, trigger_mode must be set to STOP_TRACING.
7451        #[prost(bool, optional, tag="5")]
7452        pub use_clone_snapshot_if_available: ::core::option::Option<bool>,
7453        /// A list of triggers which are related to this configuration. If ANY
7454        /// trigger is seen then an action will be performed based on |trigger_mode|.
7455        #[prost(message, repeated, tag="2")]
7456        pub triggers: ::prost::alloc::vec::Vec<trigger_config::Trigger>,
7457        /// Required and must be positive if a TriggerConfig is specified. This is
7458        /// how long this TraceConfig should wait for a trigger to arrive. After this
7459        /// period of time if no trigger is seen the TracingSession will be cleaned
7460        /// up.
7461        #[prost(uint32, optional, tag="3")]
7462        pub trigger_timeout_ms: ::core::option::Option<u32>,
7463    }
7464    /// Nested message and enum types in `TriggerConfig`.
7465    pub mod trigger_config {
7466        #[derive(Clone, PartialEq, ::prost::Message)]
7467        pub struct Trigger {
7468            /// The producer must specify this name to activate the trigger.
7469            #[prost(string, optional, tag="1")]
7470            pub name: ::core::option::Option<::prost::alloc::string::String>,
7471            /// An std::regex that will match the producer that can activate this
7472            /// trigger. This is optional. If unset any producers can activate this
7473            /// trigger.
7474            #[prost(string, optional, tag="2")]
7475            pub producer_name_regex: ::core::option::Option<::prost::alloc::string::String>,
7476            /// After a trigger is received either in START_TRACING or STOP_TRACING
7477            /// mode then the trace will end |stop_delay_ms| after triggering.
7478            /// In CLONE_SNAPSHOT mode, this is the delay between the trigger and the
7479            /// snapshot.
7480            /// If |prefer_suspend_clock_for_duration| is set, the duration will be
7481            /// based on wall-clock, counting also time in suspend.
7482            #[prost(uint32, optional, tag="3")]
7483            pub stop_delay_ms: ::core::option::Option<u32>,
7484            /// Limits the number of traces this trigger can start/stop in a rolling
7485            /// 24 hour window. If this field is unset or zero, no limit is applied and
7486            /// activiation of this trigger *always* starts/stops the trace.
7487            #[prost(uint32, optional, tag="4")]
7488            pub max_per_24_h: ::core::option::Option<u32>,
7489            /// A value between 0 and 1 which encodes the probability of skipping a
7490            /// trigger with this name. This is useful for reducing the probability
7491            /// of high-frequency triggers from dominating trace finaization. If this
7492            /// field is unset or zero, the trigger will *never* be skipped. If this
7493            /// field is greater than or equal to 1, this trigger will *always* be
7494            /// skipped i.e. it will be as if this trigger was never included in the
7495            /// first place.
7496            /// This probability check is applied *before* any other limits. For
7497            /// example, if |max_per_24_h| is also set, first we will check if the
7498            /// probability bar is met and only then will we check the |max_per_24_h|
7499            /// limit.
7500            #[prost(double, optional, tag="5")]
7501            pub skip_probability: ::core::option::Option<f64>,
7502        }
7503        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7504        #[repr(i32)]
7505        pub enum TriggerMode {
7506            Unspecified = 0,
7507            /// When this mode is chosen, data sources are not started until one of the
7508            /// |triggers| are received. This supports early initialization and fast
7509            /// starting of the tracing system. On triggering, the session will then
7510            /// record for |stop_delay_ms|. However if no trigger is seen
7511            /// after |trigger_timeout_ms| the session will be stopped and no data will
7512            /// be returned.
7513            StartTracing = 1,
7514            /// When this mode is chosen, the session will be started via the normal
7515            /// EnableTracing() & StartTracing(). If no trigger is ever seen
7516            /// the session will be stopped after |trigger_timeout_ms| and no data will
7517            /// be returned. However if triggered the trace will stop after
7518            /// |stop_delay_ms| and any data in the buffer will be returned to the
7519            /// consumer.
7520            StopTracing = 2,
7521            /// When this mode is chosen, this causes a snapshot of the current tracing
7522            /// session to be created after |stop_delay_ms| while the current tracing
7523            /// session continues undisturbed (% an extra flush). This mode can be
7524            /// used only when the tracing session is handled by the "perfetto" cmdline
7525            /// client (which is true in 90% of cases). Part of the business logic
7526            /// necessary for this behavior, and ensuing file handling, lives in
7527            /// perfetto_cmd.cc . On other consumers, this causes only a notification
7528            /// of the trigger through a CloneTriggerHit ObservableEvent. The custom
7529            /// consumer is supposed to call CloneSession() itself after the event.
7530            /// Use use_clone_snapshot_if_available=true when targeting older versions
7531            /// of perfetto.
7532            CloneSnapshot = 4,
7533        }
7534        impl TriggerMode {
7535            /// String value of the enum field names used in the ProtoBuf definition.
7536            ///
7537            /// The values are not transformed in any way and thus are considered stable
7538            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7539            pub fn as_str_name(&self) -> &'static str {
7540                match self {
7541                    TriggerMode::Unspecified => "UNSPECIFIED",
7542                    TriggerMode::StartTracing => "START_TRACING",
7543                    TriggerMode::StopTracing => "STOP_TRACING",
7544                    TriggerMode::CloneSnapshot => "CLONE_SNAPSHOT",
7545                }
7546            }
7547        }
7548    }
7549    /// Configuration for trace contents that reference earlier trace data. For
7550    /// example, a data source might intern strings, and emit packets containing
7551    /// {interned id : string} pairs. Future packets from that data source can then
7552    /// use the interned ids instead of duplicating the raw string contents. The
7553    /// trace parser will then need to use that interning table to fully interpret
7554    /// the rest of the trace.
7555    #[derive(Clone, PartialEq, ::prost::Message)]
7556    pub struct IncrementalStateConfig {
7557        /// If nonzero, notify eligible data sources to clear their incremental state
7558        /// periodically, with the given period. The notification is sent only to
7559        /// data sources that have |handles_incremental_state_clear| set in their
7560        /// DataSourceDescriptor. The notification requests that the data source
7561        /// stops referring to past trace contents. This is particularly useful when
7562        /// tracing in ring buffer mode, where it is not exceptional to overwrite old
7563        /// trace data.
7564        ///
7565        /// Warning: this time-based global clearing is likely to be removed in the
7566        /// future, to be replaced with a smarter way of sending the notifications
7567        /// only when necessary.
7568        #[prost(uint32, optional, tag="1")]
7569        pub clear_period_ms: ::core::option::Option<u32>,
7570    }
7571    /// Android-only. Not for general use. If set, saves the trace into an
7572    /// incident. This field is read by perfetto_cmd, rather than the tracing
7573    /// service. This field must be set when passing the --upload flag to
7574    /// perfetto_cmd.
7575    ///
7576    /// In this message, either:
7577    ///   * all of |destination_package|, |destination_class| and |privacy_level|
7578    ///     must be set.
7579    ///   * |skip_incidentd| must be explicitly set to true.
7580    #[derive(Clone, PartialEq, ::prost::Message)]
7581    pub struct IncidentReportConfig {
7582        #[prost(string, optional, tag="1")]
7583        pub destination_package: ::core::option::Option<::prost::alloc::string::String>,
7584        #[prost(string, optional, tag="2")]
7585        pub destination_class: ::core::option::Option<::prost::alloc::string::String>,
7586        /// Level of filtering in the requested incident. See |Destination| in
7587        /// frameworks/base/core/proto/android/privacy.proto.
7588        #[prost(int32, optional, tag="3")]
7589        pub privacy_level: ::core::option::Option<i32>,
7590        /// If true, then skips saving the trace to incidentd.
7591        ///
7592        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
7593        /// or when we explicitly don't want traces to go to incidentd even when they
7594        /// usually would (e.g. configs deployed using statsd but only used for
7595        /// inclusion in bugreports using |bugreport_score|).
7596        ///
7597        /// The motivation for having this flag, instead of just not setting
7598        /// |incident_report_config|, is prevent accidents where
7599        /// |incident_report_config| is omitted by mistake.
7600        #[prost(bool, optional, tag="5")]
7601        pub skip_incidentd: ::core::option::Option<bool>,
7602        /// If true, do not write the trace into dropbox (i.e. incident only).
7603        /// Otherwise, write to both dropbox and incident.
7604        /// TODO(lalitm): remove this field as we no longer use Dropbox.
7605        #[deprecated]
7606        #[prost(bool, optional, tag="4")]
7607        pub skip_dropbox: ::core::option::Option<bool>,
7608    }
7609    /// When set applies a post-filter to the trace contents using the filter
7610    /// provided. The filter is applied at ReadBuffers() time and works both in the
7611    /// case of IPC readback and write_into_file. This filter can be generated
7612    /// using `tools/proto_filter -s schema.proto -F filter_out.bytes` or
7613    /// `-T filter_out.escaped_string` (for .pbtx). See go/trace-filtering for
7614    /// design.
7615    ///
7616    /// Introduced in Android S, but it was broken (b/195065199). Reintroduced in
7617    /// Android T with a different field number. Updated in Android U with a new
7618    /// bytecode version which supports string filtering.
7619    ///
7620    /// =========================
7621    /// Filter bytecode.
7622    /// =========================
7623    #[derive(Clone, PartialEq, ::prost::Message)]
7624    pub struct TraceFilter {
7625        /// The bytecode as implemented in Android T.
7626        #[prost(bytes="vec", optional, tag="1")]
7627        pub bytecode: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7628        /// The bytecode as implemented in Android U. Adds support for string
7629        /// filtering.
7630        #[prost(bytes="vec", optional, tag="2")]
7631        pub bytecode_v2: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7632        #[prost(message, optional, tag="3")]
7633        pub string_filter_chain: ::core::option::Option<trace_filter::StringFilterChain>,
7634        /// Bytecode overlay for Perfetto v54+. This overlay is applied on top of
7635        /// bytecode_v2 to upgrade specific simple fields to new values. Old Perfetto
7636        /// versions ignore this field; new versions apply it.
7637        ///
7638        /// The motivation for this is that adding new opcodes in a backwards
7639        /// compatible way while also minimizing config size is hard. Instead, the
7640        /// overlay mechanism allows us to "patch" specific fields in the original
7641        /// bytecode_v2 with new semantics.
7642        ///
7643        /// See RFC 0011-subset-string-filter-rules.md for more info.
7644        ///
7645        /// Note:
7646        /// Unlike bytecode_v2 (which uses implicit message indices via EndOfMessage
7647        /// markers), this overlay uses a triplet format with explicit indices:
7648        ///    [msg_index, field_id << 3 | opcode, argument] ... \[checksum\]
7649        /// Each entry is exactly 3 varints. The argument is 0 when not needed.
7650        /// Entries must be sorted by (msg_index, field_id).
7651        ///
7652        /// The parser processes bytecode_v2 and this overlay simultaneously:
7653        ///   - any field not mentioned in the overlay is parsed as usual
7654        ///   - any field in the overlay but *not* in the bytecode_v2 is added
7655        ///     with its overlay value
7656        ///   - any field in both the overlay and bytecode_v2 takes the value in the
7657        ///     overlay, the bytecode_v2 value is ignored.
7658        ///
7659        /// Note: despite the name, this was broken in v54 (the overlay was not
7660        /// passed through to the bytecode parser). Only works in v55+.
7661        #[prost(bytes="vec", optional, tag="4")]
7662        pub bytecode_overlay_v54: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7663        /// String filter chain for Perfetto v54+. Rules in this chain either
7664        /// overwrite rules in string_filter_chain (if the name matches) or are
7665        /// appended (if the name doesn't match). This allows modifying existing
7666        /// rules (e.g., changing policy) without duplicating the entire chain.
7667        /// Rules without a name are always appended.
7668        /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7669        /// Introduced in: Perfetto v54.
7670        #[prost(message, optional, tag="5")]
7671        pub string_filter_chain_v54: ::core::option::Option<trace_filter::StringFilterChain>,
7672    }
7673    /// Nested message and enum types in `TraceFilter`.
7674    pub mod trace_filter {
7675        /// A rule specifies how strings should be filtered.
7676        #[derive(Clone, PartialEq, ::prost::Message)]
7677        pub struct StringFilterRule {
7678            /// The policy (i.e. algorithm) dictating how strings matching this rule
7679            /// should be handled.
7680            #[prost(enumeration="StringFilterPolicy", optional, tag="1")]
7681            pub policy: ::core::option::Option<i32>,
7682            /// The regex pattern used to match against each string.
7683            #[prost(string, optional, tag="2")]
7684            pub regex_pattern: ::core::option::Option<::prost::alloc::string::String>,
7685            /// The string which should appear after the tgid in atrace tracepoint
7686            /// strings.
7687            #[prost(string, optional, tag="3")]
7688            pub atrace_payload_starts_with: ::core::option::Option<::prost::alloc::string::String>,
7689            /// Optional name for the rule. When merging chains (e.g. via
7690            /// string_filter_chain_v54), rules with matching names in the newer chain
7691            /// will overwrite rules in the base chain. Rules without a name (empty or
7692            /// unset) are always treated as distinct and will be appended.
7693            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7694            /// Introduced in: Perfetto v54.
7695            #[prost(string, optional, tag="4")]
7696            pub name: ::core::option::Option<::prost::alloc::string::String>,
7697            /// The semantic types this rule applies to.
7698            ///
7699            /// SEMANTIC_TYPE_UNSPECIFIED (0) is treated as its own distinct category:
7700            /// - If empty, the rule applies only to fields with UNSPECIFIED type.
7701            /// - If non-empty, the rule applies only to fields whose semantic type
7702            ///    is explicitly listed. To match UNSPECIFIED fields, you must include
7703            ///    SEMANTIC_TYPE_UNSPECIFIED in the list.
7704            ///
7705            /// Examples:
7706            ///    semantic_type: []           -> matches only UNSPECIFIED fields
7707            ///    semantic_type: \[ATRACE\]     -> matches only ATRACE fields
7708            ///    semantic_type: [UNSPECIFIED, ATRACE] -> matches both
7709            ///
7710            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7711            /// Introduced in: Perfetto v54.
7712            #[prost(enumeration="super::super::SemanticType", repeated, packed="false", tag="5")]
7713            pub semantic_type: ::prost::alloc::vec::Vec<i32>,
7714        }
7715        /// A chain is a list of rules which string will be sequentially checked
7716        /// against.
7717        #[derive(Clone, PartialEq, ::prost::Message)]
7718        pub struct StringFilterChain {
7719            #[prost(message, repeated, tag="1")]
7720            pub rules: ::prost::alloc::vec::Vec<StringFilterRule>,
7721        }
7722        // =========================
7723        // String filtering
7724        // =========================
7725
7726        // The principles and terminology of string filtering is heavily inspired by
7727        // iptables. A "rule" decide how strings should be filtered. Each rule
7728        // contains a "policy" which indicates the algorithm to use for filtering.
7729        // A "chain" is a list of rules which will be sequentially checked against
7730        // each string.
7731        //
7732        // The first rule which applies to the string terminates filtering for that
7733        // string. If no rules apply, the string is left unchanged.
7734
7735        /// A policy specifies which algorithm should be used for filtering the
7736        /// string.
7737        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7738        #[repr(i32)]
7739        pub enum StringFilterPolicy {
7740            SfpUnspecified = 0,
7741            /// Tries to match the string field against |regex_pattern|. If it
7742            /// matches, all matching groups are "redacted" (i.e. replaced with a
7743            /// constant string) and filtering is terminated (i.e. no further rules are
7744            /// checked). If it doesn't match, the string is left unchanged and the
7745            /// next rule in chain is considered.
7746            SfpMatchRedactGroups = 1,
7747            /// Like |SFP_MATCH_REDACT_GROUPS| but tries to do some pre-work before
7748            /// checking the regex. Specifically, it tries to parse the string field as
7749            /// an atrace tracepoint and checks if the post-tgid field starts with
7750            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
7751            /// this check succeeds.
7752            SfpAtraceMatchRedactGroups = 2,
7753            /// Tries to match the string field against |regex_pattern|. If it
7754            /// matches, filtering is terminated (i.e. no further rules are checked).
7755            /// If it doesn't match, the string is left unchanged and the next rule in
7756            /// chain is considered.
7757            SfpMatchBreak = 3,
7758            /// Like |SFP_MATCH_BREAK| but tries to do some pre-work before checking
7759            /// the regex. Specifically, it tries to parse the string field as an
7760            /// atrace tracepoint and checks if the post-tgid field starts with
7761            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
7762            /// this check succeeds.
7763            SfpAtraceMatchBreak = 4,
7764            /// Tries to repeatedly search (i.e. find substrings of) the string field
7765            /// with |regex_pattern|. For each match, redacts any matching groups (i.e.
7766            /// replaced with a constant string). Once there are no further matches,
7767            /// filtering is terminated (i.e. no further rules are checked).
7768            ///
7769            /// Note that this is policy is a "search" policy not a "match" policy
7770            /// unlike the above policies:
7771            ///   * Match policies require matching the full string i.e. there is an
7772            ///     implicit leading `^` and trailing `$`.
7773            ///   * Search policies perform repeated partial matching of the string
7774            ///     e.g.
7775            ///       - String: `foo=aaa,bar=123,foo=bbb,baz=456`
7776            ///       - Pattern: `foo=(\d+)`
7777            ///       - Output: `foo=P6O,bar=123,foo=P6O,baz=456`
7778            ///     where P6O is the redaction string
7779            ///
7780            /// All of this is only performed after some pre-work where we try to parse
7781            /// the string field as an atrace tracepoint and check if the post-tgid
7782            /// field starts with |atrace_post_tgid_starts_with|.
7783            ///
7784            /// If there are no partial matches, the string is left unchanged and the
7785            /// next rule in chain is considered.
7786            SfpAtraceRepeatedSearchRedactGroups = 5,
7787        }
7788        impl StringFilterPolicy {
7789            /// String value of the enum field names used in the ProtoBuf definition.
7790            ///
7791            /// The values are not transformed in any way and thus are considered stable
7792            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7793            pub fn as_str_name(&self) -> &'static str {
7794                match self {
7795                    StringFilterPolicy::SfpUnspecified => "SFP_UNSPECIFIED",
7796                    StringFilterPolicy::SfpMatchRedactGroups => "SFP_MATCH_REDACT_GROUPS",
7797                    StringFilterPolicy::SfpAtraceMatchRedactGroups => "SFP_ATRACE_MATCH_REDACT_GROUPS",
7798                    StringFilterPolicy::SfpMatchBreak => "SFP_MATCH_BREAK",
7799                    StringFilterPolicy::SfpAtraceMatchBreak => "SFP_ATRACE_MATCH_BREAK",
7800                    StringFilterPolicy::SfpAtraceRepeatedSearchRedactGroups => "SFP_ATRACE_REPEATED_SEARCH_REDACT_GROUPS",
7801                }
7802            }
7803        }
7804    }
7805    /// Android-only. Not for general use. If set, reports the trace to the
7806    /// Android framework. This field is read by perfetto_cmd, rather than the
7807    /// tracing service. This field must be set when passing the --upload flag to
7808    /// perfetto_cmd.
7809    ///
7810    /// In this message, either:
7811    ///   * |reporter_service_package| and |reporter_service_class| must be set.
7812    ///   * |skip_reporting| must be explicitly set to true.
7813    #[derive(Clone, PartialEq, ::prost::Message)]
7814    pub struct AndroidReportConfig {
7815        #[prost(string, optional, tag="1")]
7816        pub reporter_service_package: ::core::option::Option<::prost::alloc::string::String>,
7817        #[prost(string, optional, tag="2")]
7818        pub reporter_service_class: ::core::option::Option<::prost::alloc::string::String>,
7819        /// If true, then skips reporting the trace to Android framework.
7820        ///
7821        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
7822        /// or when we explicitly don't want to report traces to the framework even
7823        /// when they usually would (e.g. configs deployed using statsd but only
7824        /// used for inclusion in bugreports using |bugreport_score|).
7825        ///
7826        /// The motivation for having this flag, instead of just not setting
7827        /// |framework_report_config|, is prevent accidents where
7828        /// |framework_report_config| is omitted by mistake.
7829        #[prost(bool, optional, tag="3")]
7830        pub skip_report: ::core::option::Option<bool>,
7831        /// If true, will direct the Android framework to read the data in trace
7832        /// file and pass it to the reporter class over a pipe instead of passing
7833        /// the file descriptor directly.
7834        ///
7835        /// This flag is needed because the Android test framework does not
7836        /// currently support priv-app helper apps (in terms of SELinux) and we
7837        /// really don't want to add an allow rule for untrusted_app to receive
7838        /// trace fds.
7839        ///
7840        /// Because of this, we instead will direct the framework to create a new
7841        /// pipe and pass this to the reporter process instead. As the pipe is
7842        /// created by the framework, we won't have any problems with SELinux
7843        /// (system_server is already allowed to pass pipe fds, even
7844        /// to untrusted apps).
7845        ///
7846        /// As the name suggests this option *MUST* only be used for testing.
7847        /// Note that the framework will reject (and drop) files which are too
7848        /// large both for simplicity and to be minimize the amount of data we
7849        /// pass to a non-priv app (note that the framework will still check
7850        /// manifest permissions even though SELinux permissions are worked around).
7851        #[prost(bool, optional, tag="4")]
7852        pub use_pipe_in_framework_for_testing: ::core::option::Option<bool>,
7853    }
7854    /// If set, delays the start of tracing by a random duration. The duration is
7855    /// chosen from a uniform distribution between the specified minimum and
7856    /// maximum.
7857    /// Note: this delay is implemented by perfetto_cmd *not* by traced so will
7858    /// not work if you communicate with traced directly over the consumer API.
7859    /// Introduced in Android T.
7860    #[derive(Clone, PartialEq, ::prost::Message)]
7861    pub struct CmdTraceStartDelay {
7862        #[prost(uint32, optional, tag="1")]
7863        pub min_delay_ms: ::core::option::Option<u32>,
7864        #[prost(uint32, optional, tag="2")]
7865        pub max_delay_ms: ::core::option::Option<u32>,
7866    }
7867    /// When non-empty, ensures that for a each semaphore named `name at most
7868    /// `max_other_session_count`` *other* sessions (whose value is taken of the
7869    /// minimum of all values specified by this config or any already-running
7870    /// session) can be be running.
7871    ///
7872    /// If a semaphore "acquisition" fails, EnableTracing will return an error
7873    /// and the tracing session will not be started (or elgible to start in
7874    /// the case of deferred sessions).
7875    ///
7876    /// This is easiest to explain with an example. Suppose the tracing service has
7877    /// the following active tracing sessions:
7878    ///    S1 = [{name=foo, max_other_session_count=2},
7879    ///          {name=bar, max_other_session_count=0}]
7880    ///    S2 = [{name=foo, max_other_session_count=1},
7881    ///          {name=baz, max_other_session_count=1}]
7882    ///
7883    /// Then, for a new session, the following would be the expected behaviour of
7884    /// EnableSession given the state of `session_semaphores`.
7885    ///    Q: session_semaphores = []
7886    ///    A: Allowed because it does not specify any semaphores. Will be allowed
7887    ///       no matter the state of any other tracing session.
7888    ///    Q: session_semaphores = [{name=baz, max_other_session_count=1}]
7889    ///    A: Allowed because both S2 and this config specify
7890    ///       max_other_session_count=1 for baz.
7891    ///    Q: session_semaphores = [{name=foo, max_other_session_count=3}]
7892    ///    A: Denied because S2 specified max_other_session_count=1 for foo and S1
7893    ///       takes that slot.
7894    ///    Q: session_semaphores = [{name=bar, max_other_session_count=0}]
7895    ///    A: Denied because S1 takes the the slot specified by both S1 and
7896    ///       this config.
7897    ///
7898    /// Introduced in 24Q3 (Android V).
7899    #[derive(Clone, PartialEq, ::prost::Message)]
7900    pub struct SessionSemaphore {
7901        /// The name of the semaphore. Acts as a unique identifier across all
7902        /// tracing sessions (including the one being started).
7903        #[prost(string, optional, tag="1")]
7904        pub name: ::core::option::Option<::prost::alloc::string::String>,
7905        /// The maximum number of *other* sesssions which specify the same semaphore
7906        /// which can be active. The minimum of this value across all tracing
7907        /// sessions and the value specified by the config is used when deciding
7908        /// whether the tracing session can be started.
7909        #[prost(uint64, optional, tag="2")]
7910        pub max_other_session_count: ::core::option::Option<u64>,
7911    }
7912    /// Allow key, value pairs to save arbitrary data about trace.
7913    #[derive(Clone, PartialEq, ::prost::Message)]
7914    pub struct Note {
7915        /// Required.
7916        #[prost(string, optional, tag="1")]
7917        pub key: ::core::option::Option<::prost::alloc::string::String>,
7918        /// Required.
7919        #[prost(string, optional, tag="2")]
7920        pub value: ::core::option::Option<::prost::alloc::string::String>,
7921    }
7922    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7923    #[repr(i32)]
7924    pub enum LockdownModeOperation {
7925        LockdownUnchanged = 0,
7926        LockdownClear = 1,
7927        LockdownSet = 2,
7928    }
7929    impl LockdownModeOperation {
7930        /// String value of the enum field names used in the ProtoBuf definition.
7931        ///
7932        /// The values are not transformed in any way and thus are considered stable
7933        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7934        pub fn as_str_name(&self) -> &'static str {
7935            match self {
7936                LockdownModeOperation::LockdownUnchanged => "LOCKDOWN_UNCHANGED",
7937                LockdownModeOperation::LockdownClear => "LOCKDOWN_CLEAR",
7938                LockdownModeOperation::LockdownSet => "LOCKDOWN_SET",
7939            }
7940        }
7941    }
7942    /// Compress trace with the given method. Best effort.
7943    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7944    #[repr(i32)]
7945    pub enum CompressionType {
7946        Unspecified = 0,
7947        Deflate = 1,
7948    }
7949    impl CompressionType {
7950        /// String value of the enum field names used in the ProtoBuf definition.
7951        ///
7952        /// The values are not transformed in any way and thus are considered stable
7953        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7954        pub fn as_str_name(&self) -> &'static str {
7955            match self {
7956                CompressionType::Unspecified => "COMPRESSION_TYPE_UNSPECIFIED",
7957                CompressionType::Deflate => "COMPRESSION_TYPE_DEFLATE",
7958            }
7959        }
7960    }
7961    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7962    #[repr(i32)]
7963    pub enum StatsdLogging {
7964        Unspecified = 0,
7965        Enabled = 1,
7966        Disabled = 2,
7967    }
7968    impl StatsdLogging {
7969        /// String value of the enum field names used in the ProtoBuf definition.
7970        ///
7971        /// The values are not transformed in any way and thus are considered stable
7972        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7973        pub fn as_str_name(&self) -> &'static str {
7974            match self {
7975                StatsdLogging::Unspecified => "STATSD_LOGGING_UNSPECIFIED",
7976                StatsdLogging::Enabled => "STATSD_LOGGING_ENABLED",
7977                StatsdLogging::Disabled => "STATSD_LOGGING_DISABLED",
7978            }
7979        }
7980    }
7981    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7982    #[repr(i32)]
7983    pub enum WriteFlushMode {
7984        /// Same as WRITE_FLUSH_AUTO.
7985        WriteFlushUnspecified = 0,
7986        /// Default mode. The service automatically determines the flush frequency
7987        /// to balance performance and data freshness:
7988        /// 1) If file_write_period_ms <= 5s (kDefaultWriteIntoFilePeriodMs):
7989        ///     Flushes are NOT issued on every write. Instead, a periodic flush is
7990        ///     issued every 5s.
7991        /// 2) If file_write_period_ms > 5s:
7992        ///     A flush is issued before every periodic write into the file.
7993        WriteFlushAuto = 1,
7994        // The following modes are intended for advanced usage and not recommended
7995        // for general use.
7996
7997        /// Do not flush buffers before periodic writes into the file.
7998        /// Use this mode if you want to minimize the performance impact of flushes
7999        /// and can tolerate potentially missing the most recent data in the trace
8000        /// file until the end of the session or an explicit flush.
8001        /// When this mode is selected, |flush_period_ms| is respected.
8002        WriteFlushDisabled = 2,
8003        /// Issue a flush before every periodic write into the file.
8004        /// This ensures that each write into the file contains the most up-to-date
8005        /// data from all data sources, but may have a higher performance overhead.
8006        WriteFlushEnabled = 3,
8007    }
8008    impl WriteFlushMode {
8009        /// String value of the enum field names used in the ProtoBuf definition.
8010        ///
8011        /// The values are not transformed in any way and thus are considered stable
8012        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8013        pub fn as_str_name(&self) -> &'static str {
8014            match self {
8015                WriteFlushMode::WriteFlushUnspecified => "WRITE_FLUSH_UNSPECIFIED",
8016                WriteFlushMode::WriteFlushAuto => "WRITE_FLUSH_AUTO",
8017                WriteFlushMode::WriteFlushDisabled => "WRITE_FLUSH_DISABLED",
8018                WriteFlushMode::WriteFlushEnabled => "WRITE_FLUSH_ENABLED",
8019            }
8020        }
8021    }
8022    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8023    #[repr(i32)]
8024    pub enum FFlushMode {
8025        /// Default: same as FFLUSH_DISABLED.
8026        FflushUnspecified = 0,
8027        /// Do not explicitly sync the file to storage after each write pass.
8028        FflushDisabled = 1,
8029        /// Explicitly sync the file to storage (via fdatasync) after each periodic
8030        /// write pass. Increases data durability at the cost of higher disk I/O
8031        /// overhead.
8032        FflushEnabled = 2,
8033    }
8034    impl FFlushMode {
8035        /// String value of the enum field names used in the ProtoBuf definition.
8036        ///
8037        /// The values are not transformed in any way and thus are considered stable
8038        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8039        pub fn as_str_name(&self) -> &'static str {
8040            match self {
8041                FFlushMode::FflushUnspecified => "FFLUSH_UNSPECIFIED",
8042                FFlushMode::FflushDisabled => "FFLUSH_DISABLED",
8043                FFlushMode::FflushEnabled => "FFLUSH_ENABLED",
8044            }
8045        }
8046    }
8047}
8048/// Arguments for rpc EnableTracing().
8049#[derive(Clone, PartialEq, ::prost::Message)]
8050pub struct EnableTracingRequest {
8051    #[prost(message, optional, tag="1")]
8052    pub trace_config: ::core::option::Option<TraceConfig>,
8053    /// Introduced in Android Q. This is used for re-attaching to the end-of-trace
8054    /// EnableTracingResponse notification after a Detach+Attach request.
8055    /// When this flag is set the |trace_config| is ignored and no method is called
8056    /// on the tracing service.
8057    #[prost(bool, optional, tag="2")]
8058    pub attach_notification_only: ::core::option::Option<bool>,
8059}
8060#[derive(Clone, PartialEq, ::prost::Message)]
8061pub struct EnableTracingResponse {
8062    /// If present and non-empty tracing was disabled because of an error.
8063    /// Introduced in Android S.
8064    #[prost(string, optional, tag="3")]
8065    pub error: ::core::option::Option<::prost::alloc::string::String>,
8066    #[prost(oneof="enable_tracing_response::State", tags="1")]
8067    pub state: ::core::option::Option<enable_tracing_response::State>,
8068}
8069/// Nested message and enum types in `EnableTracingResponse`.
8070pub mod enable_tracing_response {
8071    #[derive(Clone, PartialEq, ::prost::Oneof)]
8072    pub enum State {
8073        #[prost(bool, tag="1")]
8074        Disabled(bool),
8075    }
8076}
8077/// Arguments for rpc StartTracing().
8078#[derive(Clone, PartialEq, ::prost::Message)]
8079pub struct StartTracingRequest {
8080}
8081#[derive(Clone, PartialEq, ::prost::Message)]
8082pub struct StartTracingResponse {
8083}
8084/// Arguments for rpc ChangeTraceConfig().
8085#[derive(Clone, PartialEq, ::prost::Message)]
8086pub struct ChangeTraceConfigRequest {
8087    #[prost(message, optional, tag="1")]
8088    pub trace_config: ::core::option::Option<TraceConfig>,
8089}
8090#[derive(Clone, PartialEq, ::prost::Message)]
8091pub struct ChangeTraceConfigResponse {
8092}
8093/// Arguments for rpc DisableTracing().
8094///
8095/// TODO: not supported yet, selectively disable only some data sources.
8096/// repeated string data_source_name;
8097#[derive(Clone, PartialEq, ::prost::Message)]
8098pub struct DisableTracingRequest {
8099}
8100#[derive(Clone, PartialEq, ::prost::Message)]
8101pub struct DisableTracingResponse {
8102}
8103/// Arguments for rpc ReadBuffers().
8104///
8105/// The |id|s of the buffer, as passed to CreateBuffers().
8106/// TODO: repeated uint32 buffer_ids = 1;
8107#[derive(Clone, PartialEq, ::prost::Message)]
8108pub struct ReadBuffersRequest {
8109}
8110/// TODO: uint32 buffer_id = 1;
8111#[derive(Clone, PartialEq, ::prost::Message)]
8112pub struct ReadBuffersResponse {
8113    #[prost(message, repeated, tag="2")]
8114    pub slices: ::prost::alloc::vec::Vec<read_buffers_response::Slice>,
8115}
8116/// Nested message and enum types in `ReadBuffersResponse`.
8117pub mod read_buffers_response {
8118    /// Each streaming reply returns one or more slices for one or more trace
8119    /// packets, or even just a portion of it (if it's too big to fit within one
8120    /// IPC). The returned slices are ordered and contiguous: packets' slices are
8121    /// not interleaved and slices are sent only once all slices for a packet are
8122    /// available (i.e. the consumer will never see any gap).
8123    #[derive(Clone, PartialEq, ::prost::Message)]
8124    pub struct Slice {
8125        #[prost(bytes="vec", optional, tag="1")]
8126        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8127        /// When true, this is the last slice for the packet. A ReadBufferResponse
8128        /// might have no slices marked as |last_slice_for_packet|==true, in the case
8129        /// of a very large packet that gets chunked into several IPCs (in which case
8130        /// only the last IPC for the packet will have this flag set).
8131        #[prost(bool, optional, tag="2")]
8132        pub last_slice_for_packet: ::core::option::Option<bool>,
8133    }
8134}
8135/// Arguments for rpc FreeBuffers().
8136#[derive(Clone, PartialEq, ::prost::Message)]
8137pub struct FreeBuffersRequest {
8138    /// The |id|s of the buffer, as passed to CreateBuffers().
8139    #[prost(uint32, repeated, packed="false", tag="1")]
8140    pub buffer_ids: ::prost::alloc::vec::Vec<u32>,
8141}
8142#[derive(Clone, PartialEq, ::prost::Message)]
8143pub struct FreeBuffersResponse {
8144}
8145/// Arguments for rpc Flush().
8146#[derive(Clone, PartialEq, ::prost::Message)]
8147pub struct FlushRequest {
8148    #[prost(uint32, optional, tag="1")]
8149    pub timeout_ms: ::core::option::Option<u32>,
8150    /// More details such as flush reason and originator. Introduced in v38 / V.
8151    /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8152    #[prost(uint64, optional, tag="2")]
8153    pub flags: ::core::option::Option<u64>,
8154}
8155#[derive(Clone, PartialEq, ::prost::Message)]
8156pub struct FlushResponse {
8157}
8158/// Arguments for rpc Detach
8159#[derive(Clone, PartialEq, ::prost::Message)]
8160pub struct DetachRequest {
8161    #[prost(string, optional, tag="1")]
8162    pub key: ::core::option::Option<::prost::alloc::string::String>,
8163}
8164#[derive(Clone, PartialEq, ::prost::Message)]
8165pub struct DetachResponse {
8166}
8167/// Arguments for rpc Attach.
8168#[derive(Clone, PartialEq, ::prost::Message)]
8169pub struct AttachRequest {
8170    #[prost(string, optional, tag="1")]
8171    pub key: ::core::option::Option<::prost::alloc::string::String>,
8172}
8173#[derive(Clone, PartialEq, ::prost::Message)]
8174pub struct AttachResponse {
8175    #[prost(message, optional, tag="1")]
8176    pub trace_config: ::core::option::Option<TraceConfig>,
8177}
8178// Arguments for rpc GetTraceStats.
8179
8180#[derive(Clone, PartialEq, ::prost::Message)]
8181pub struct GetTraceStatsRequest {
8182}
8183#[derive(Clone, PartialEq, ::prost::Message)]
8184pub struct GetTraceStatsResponse {
8185    #[prost(message, optional, tag="1")]
8186    pub trace_stats: ::core::option::Option<TraceStats>,
8187}
8188// Arguments for rpc ObserveEvents.
8189
8190/// To stop observing events of a certain type, send a request with the remaining
8191/// types. To stop observing completely, send an empty request.
8192#[derive(Clone, PartialEq, ::prost::Message)]
8193pub struct ObserveEventsRequest {
8194    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="1")]
8195    pub events_to_observe: ::prost::alloc::vec::Vec<i32>,
8196}
8197#[derive(Clone, PartialEq, ::prost::Message)]
8198pub struct ObserveEventsResponse {
8199    #[prost(message, optional, tag="1")]
8200    pub events: ::core::option::Option<ObservableEvents>,
8201}
8202/// Arguments for rpc QueryServiceState.
8203#[derive(Clone, PartialEq, ::prost::Message)]
8204pub struct QueryServiceStateRequest {
8205    /// If set, only the TracingServiceState.tracing_sessions is filled. Producers
8206    /// and data sources are omitted.
8207    #[prost(bool, optional, tag="1")]
8208    pub sessions_only: ::core::option::Option<bool>,
8209}
8210#[derive(Clone, PartialEq, ::prost::Message)]
8211pub struct QueryServiceStateResponse {
8212    /// In order to avoid hitting IPC message size limitations, the service will
8213    /// return >1 replies for each query, chunking the TracingServiceState. The
8214    /// receiver is expected to merge replies together and parse that when the
8215    /// last reply is received (i.e. when IPC's |has_more| == false).
8216    #[prost(message, optional, tag="1")]
8217    pub service_state: ::core::option::Option<TracingServiceState>,
8218}
8219/// Arguments for rpc QueryCapabilities.
8220#[derive(Clone, PartialEq, ::prost::Message)]
8221pub struct QueryCapabilitiesRequest {
8222}
8223#[derive(Clone, PartialEq, ::prost::Message)]
8224pub struct QueryCapabilitiesResponse {
8225    #[prost(message, optional, tag="1")]
8226    pub capabilities: ::core::option::Option<TracingServiceCapabilities>,
8227}
8228/// Arguments for rpc SaveTraceForBugreport.
8229#[derive(Clone, PartialEq, ::prost::Message)]
8230pub struct SaveTraceForBugreportRequest {
8231}
8232/// This response is sent only after the trace was saved into file (if succeeded)
8233/// or something failed.
8234#[derive(Clone, PartialEq, ::prost::Message)]
8235pub struct SaveTraceForBugreportResponse {
8236    /// If true, an eligible the trace was saved into a known location (on Android
8237    /// /data/misc/perfetto-traces, see GetBugreportTracePath()).
8238    /// If false no trace with bugreport_score > 0 was found or an error occurred.
8239    /// see |msg| in that case for details about the failure.
8240    #[prost(bool, optional, tag="1")]
8241    pub success: ::core::option::Option<bool>,
8242    #[prost(string, optional, tag="2")]
8243    pub msg: ::core::option::Option<::prost::alloc::string::String>,
8244}
8245/// Arguments for rpc CloneSession.
8246#[derive(Clone, PartialEq, ::prost::Message)]
8247pub struct CloneSessionRequest {
8248    /// If set, the trace filter will not have effect on the cloned session.
8249    /// Used for bugreports.
8250    #[prost(bool, optional, tag="2")]
8251    pub skip_trace_filter: ::core::option::Option<bool>,
8252    /// If set, affects the generation of the FlushFlags::CloneTarget to be set
8253    /// to kBugreport when requesting the flush to the producers.
8254    #[prost(bool, optional, tag="3")]
8255    pub for_bugreport: ::core::option::Option<bool>,
8256    /// If set, this is stored in the trace as name of the trigger that caused the
8257    /// clone.
8258    #[prost(string, optional, tag="5")]
8259    pub clone_trigger_name: ::core::option::Option<::prost::alloc::string::String>,
8260    /// If set, this is stored in the trace as name of the producer that triggered
8261    /// the clone.
8262    #[prost(string, optional, tag="6")]
8263    pub clone_trigger_producer_name: ::core::option::Option<::prost::alloc::string::String>,
8264    /// If set, this is stored in the trace as uid of the producer that triggered
8265    /// the clone.
8266    #[prost(int32, optional, tag="7")]
8267    pub clone_trigger_trusted_producer_uid: ::core::option::Option<i32>,
8268    /// If set, this is stored in the trace as timestamp of the trigger that caused
8269    /// the clone.
8270    #[prost(uint64, optional, tag="8")]
8271    pub clone_trigger_boot_time_ns: ::core::option::Option<u64>,
8272    /// If set, this is stored in the trace as the configured delay of the trigger
8273    /// that caused the clone.
8274    ///
8275    /// Consumer may also send a file descriptor with this rpc message. If the
8276    /// descriptor is valid, and the session that should be cloned is
8277    /// 'write_into_file' session, traced writes the cloned session content to that
8278    /// file descriptor, instead of writing it in the cloned session buffers.
8279    #[prost(uint64, optional, tag="9")]
8280    pub clone_trigger_delay_ms: ::core::option::Option<u64>,
8281    #[prost(oneof="clone_session_request::Selector", tags="1, 4")]
8282    pub selector: ::core::option::Option<clone_session_request::Selector>,
8283}
8284/// Nested message and enum types in `CloneSessionRequest`.
8285pub mod clone_session_request {
8286    #[derive(Clone, PartialEq, ::prost::Oneof)]
8287    pub enum Selector {
8288        /// The session ID to clone. If session_id == kBugreportSessionId (0xff...ff)
8289        /// the session with the highest bugreport score is cloned (if any exists).
8290        #[prost(uint64, tag="1")]
8291        SessionId(u64),
8292        /// The unique_session_name of the tracing session to clone. Tracing sessions
8293        /// that are clones of other tracing sessions are ignored.
8294        #[prost(string, tag="4")]
8295        UniqueSessionName(::prost::alloc::string::String),
8296    }
8297}
8298#[derive(Clone, PartialEq, ::prost::Message)]
8299pub struct CloneSessionResponse {
8300    /// If true, the clone was successful. If false it failed and |error| contains
8301    /// the details about the failure.
8302    #[prost(bool, optional, tag="1")]
8303    pub success: ::core::option::Option<bool>,
8304    #[prost(string, optional, tag="2")]
8305    pub error: ::core::option::Option<::prost::alloc::string::String>,
8306    /// The UUID of the cloned session.
8307    #[prost(int64, optional, tag="3")]
8308    pub uuid_msb: ::core::option::Option<i64>,
8309    #[prost(int64, optional, tag="4")]
8310    pub uuid_lsb: ::core::option::Option<i64>,
8311    /// TracingService sets this when the cloned session was write_into_file=true.
8312    /// The consumer cannot know upfront if a session is WIF or not.
8313    /// Introduced in v53.
8314    #[prost(bool, optional, tag="5")]
8315    pub was_write_into_file: ::core::option::Option<bool>,
8316}
8317#[derive(Clone, PartialEq, ::prost::Message)]
8318pub struct CommitDataRequest {
8319    #[prost(message, repeated, tag="1")]
8320    pub chunks_to_move: ::prost::alloc::vec::Vec<commit_data_request::ChunksToMove>,
8321    #[prost(message, repeated, tag="2")]
8322    pub chunks_to_patch: ::prost::alloc::vec::Vec<commit_data_request::ChunkToPatch>,
8323    /// Optional. If this commit is made in response to a Flush(id) request coming
8324    /// from the service, copy back the id of the request so the service can tell
8325    /// when the flush happened.
8326    #[prost(uint64, optional, tag="3")]
8327    pub flush_request_id: ::core::option::Option<u64>,
8328}
8329/// Nested message and enum types in `CommitDataRequest`.
8330pub mod commit_data_request {
8331    /// When |chunks_to_move| is present, the producer is requesting the service to
8332    /// move the given chunks form the share memory buffer into the central
8333    /// trace buffer(s).
8334    #[derive(Clone, PartialEq, ::prost::Message)]
8335    pub struct ChunksToMove {
8336        /// The 0-based index of the page in the Shared Memory Buffer.
8337        #[prost(uint32, optional, tag="1")]
8338        pub page: ::core::option::Option<u32>,
8339        /// The 0-based chunk index \[0..13\] within the page.
8340        #[prost(uint32, optional, tag="2")]
8341        pub chunk: ::core::option::Option<u32>,
8342        /// The target buffer it should be moved onto. The service will check that
8343        /// the producer is allowed to write into that buffer before the move.
8344        #[prost(uint32, optional, tag="3")]
8345        pub target_buffer: ::core::option::Option<u32>,
8346        /// Sending the chunk data over the wire. Used for transports that don't
8347        /// support shared memory (e.g. vsock or TCP sockets). In the default case
8348        /// (tracing protocol over a Unix socket), this field is not used and tracing
8349        /// data is stored in the shmem buffer and referenced by the fields above.
8350        /// See |use_shemem_emulation| in the codebase for reference.
8351        #[prost(bytes="vec", optional, tag="4")]
8352        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8353        /// Set to true when scraping data in shmem emulation (aka commits-over-ipc)
8354        /// AND the chunk was still in kChunkBeingWritten. This is necessary because
8355        /// in emulation mode, the service cannot tell whether this is a complete
8356        /// chunk coming from a regular TraceWriter commit, or a scraped one.
8357        /// This field is only set when `data` is present. It is never set (and is
8358        /// ignored by the service) for the regular case of doing commits over
8359        /// shmem. Introduced in Perfetto v54.
8360        /// See /rfcs/0010-smb-scraping-remote-producers.md .
8361        #[prost(bool, optional, tag="5")]
8362        pub chunk_incomplete: ::core::option::Option<bool>,
8363    }
8364    /// Used to patch chunks that have already been sent to the service. The chunk
8365    /// might not be in the shared memory buffer anymore as it could have been
8366    /// moved by the service in response to a prior CommitDataRequest.
8367    /// It is perfectly valid to patch a chunk that is being notified in the same
8368    /// message (a chunk can show up both in the |changed_pages| and |patches|
8369    /// field within the same CommitDataRequest message).
8370    /// In other words, |chunks_to_patch| is always processed after
8371    /// |chunks_to_move|.
8372    #[derive(Clone, PartialEq, ::prost::Message)]
8373    pub struct ChunkToPatch {
8374        #[prost(uint32, optional, tag="1")]
8375        pub target_buffer: ::core::option::Option<u32>,
8376        /// {WriterID, ChunkID} uniquely identify a chunk for the current producer.
8377        #[prost(uint32, optional, tag="2")]
8378        pub writer_id: ::core::option::Option<u32>,
8379        #[prost(uint32, optional, tag="3")]
8380        pub chunk_id: ::core::option::Option<u32>,
8381        /// List of patches to apply to the given chunk.
8382        #[prost(message, repeated, tag="4")]
8383        pub patches: ::prost::alloc::vec::Vec<chunk_to_patch::Patch>,
8384        /// When true more patches will follow in future requests and the chunk
8385        /// should be still considered as patch-pending. When false the chunk becomes
8386        /// eligible for reading.
8387        #[prost(bool, optional, tag="5")]
8388        pub has_more_patches: ::core::option::Option<bool>,
8389    }
8390    /// Nested message and enum types in `ChunkToPatch`.
8391    pub mod chunk_to_patch {
8392        #[derive(Clone, PartialEq, ::prost::Message)]
8393        pub struct Patch {
8394            /// Offset in bytes from the start of the chunk payload. e.g., offset == 0
8395            /// corresponds to the first byte of the first packet (or fragment) in the
8396            /// chunk.
8397            #[prost(uint32, optional, tag="1")]
8398            pub offset: ::core::option::Option<u32>,
8399            /// Bytes to patch at the given offset.
8400            #[prost(bytes="vec", optional, tag="2")]
8401            pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8402        }
8403    }
8404}
8405/// Arguments for rpc InitializeConnection().
8406#[derive(Clone, PartialEq, ::prost::Message)]
8407pub struct InitializeConnectionRequest {
8408    /// Optional. Provides a hint to the tracing service about the suggested size
8409    /// of the shared memory buffer pages. The service is not required to respect
8410    /// this if it has already another value in the configuration or if the hint
8411    /// is unreasonably large. Must be an integer multiple of 4096. See tradeoff
8412    /// considerations in shared_memory_abi.h.
8413    #[prost(uint32, optional, tag="1")]
8414    pub shared_memory_page_size_hint_bytes: ::core::option::Option<u32>,
8415    /// Optional. Provides a hint to the tracing service about the suggested size
8416    /// of the shared memory buffer. The service is not required to respect this
8417    /// and might return a smaller buffer.
8418    #[prost(uint32, optional, tag="2")]
8419    pub shared_memory_size_hint_bytes: ::core::option::Option<u32>,
8420    /// Required to match the producer config set by the service to the correct
8421    /// producer.
8422    #[prost(string, optional, tag="3")]
8423    pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
8424    /// If provided, overrides the service's SMB scraping setting for the producer.
8425    #[prost(enumeration="initialize_connection_request::ProducerSmbScrapingMode", optional, tag="4")]
8426    pub smb_scraping_mode: ::core::option::Option<i32>,
8427    // ---------------------------------------------------
8428    // All fields below have been introduced in Android R.
8429    // ---------------------------------------------------
8430
8431    /// Since Android R, this request can also transport an FD for the producer's
8432    /// shared memory buffer, if allocated by the producer (e.g. for startup
8433    /// tracing). In this case, |shared_memory_page_size_hint_bytes| is a required
8434    /// field, and describes the SMB's page size. Note that the service may not
8435    /// accept this SMB (e.g. because it is too old or its size / page size are
8436    /// invalid) and instead allocate a new SMB which is provided in the
8437    /// SetupTracing response. See TracingService::ConnectProducer() and
8438    /// |using_shmem_provided_by_producer| in InitializeConnectionResponse.
8439    #[prost(bool, optional, tag="6")]
8440    pub producer_provided_shmem: ::core::option::Option<bool>,
8441    // ---------------------------------------------------
8442    // All fields below have been introduced in Android S.
8443    // ---------------------------------------------------
8444
8445    /// The version of the client library used by the producer.
8446    /// This is a human readable string with and its format varies depending on
8447    /// the build system that is used to build the code and the repo (standalone
8448    /// vs AOSP). This is intended for human debugging only.
8449    #[prost(string, optional, tag="8")]
8450    pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
8451    /// On Windows, when producer_provided_shmem = true, the client creates a named
8452    /// SHM region and passes the name (an unguessable token) back to the service.
8453    /// Introduced in v13.
8454    #[prost(string, optional, tag="7")]
8455    pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
8456}
8457/// Nested message and enum types in `InitializeConnectionRequest`.
8458pub mod initialize_connection_request {
8459    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8460    #[repr(i32)]
8461    pub enum ProducerSmbScrapingMode {
8462        /// Use the service's default setting for SMB scraping.
8463        SmbScrapingUnspecified = 0,
8464        /// Enable scraping of uncommitted chunks from the producer's shared memory
8465        /// buffer.
8466        SmbScrapingEnabled = 1,
8467        /// Disable scraping of uncommitted chunks from the producer's shared memory
8468        /// buffer.
8469        SmbScrapingDisabled = 2,
8470    }
8471    impl ProducerSmbScrapingMode {
8472        /// String value of the enum field names used in the ProtoBuf definition.
8473        ///
8474        /// The values are not transformed in any way and thus are considered stable
8475        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8476        pub fn as_str_name(&self) -> &'static str {
8477            match self {
8478                ProducerSmbScrapingMode::SmbScrapingUnspecified => "SMB_SCRAPING_UNSPECIFIED",
8479                ProducerSmbScrapingMode::SmbScrapingEnabled => "SMB_SCRAPING_ENABLED",
8480                ProducerSmbScrapingMode::SmbScrapingDisabled => "SMB_SCRAPING_DISABLED",
8481            }
8482        }
8483    }
8484}
8485#[derive(Clone, PartialEq, ::prost::Message)]
8486pub struct InitializeConnectionResponse {
8487    /// Indicates whether the service accepted the SMB provided by the producer in
8488    /// InitializeConnectionRequest (if any). If false, the shared memory buffer FD
8489    /// will provided by the service via the SetupTracing async command.
8490    #[prost(bool, optional, tag="1")]
8491    pub using_shmem_provided_by_producer: ::core::option::Option<bool>,
8492    /// Indicates to the producer that the service allows direct SMB patching of
8493    /// chunks that have not yet been committed to it.
8494    /// This field has been introduced in Android S.
8495    #[prost(bool, optional, tag="2")]
8496    pub direct_smb_patching_supported: ::core::option::Option<bool>,
8497    /// Indicates whether the service would like to use SMB emulation for the
8498    /// connection, and request the client to send chunk data over the socket e.g.
8499    /// for remote connection from a VM guest.
8500    #[prost(bool, optional, tag="3")]
8501    pub use_shmem_emulation: ::core::option::Option<bool>,
8502}
8503// Arguments for rpc RegisterDataSource().
8504
8505#[derive(Clone, PartialEq, ::prost::Message)]
8506pub struct RegisterDataSourceRequest {
8507    #[prost(message, optional, tag="1")]
8508    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
8509}
8510#[derive(Clone, PartialEq, ::prost::Message)]
8511pub struct RegisterDataSourceResponse {
8512    /// Only set in case of errors, when |data_source_id| == 0.
8513    #[prost(string, optional, tag="1")]
8514    pub error: ::core::option::Option<::prost::alloc::string::String>,
8515}
8516// Arguments for rpc UpdateDataSource().
8517
8518#[derive(Clone, PartialEq, ::prost::Message)]
8519pub struct UpdateDataSourceRequest {
8520    /// The new data_source_descriptor.{id, name} must match {id, name} of a
8521    /// data source previously registered via RegisterDataSource().
8522    #[prost(message, optional, tag="1")]
8523    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
8524}
8525#[derive(Clone, PartialEq, ::prost::Message)]
8526pub struct UpdateDataSourceResponse {
8527}
8528// Arguments for rpc UnregisterDataSource().
8529
8530#[derive(Clone, PartialEq, ::prost::Message)]
8531pub struct UnregisterDataSourceRequest {
8532    /// The name of the data source to unregister, as previously passed in
8533    /// |RegisterDataSourceRequest.name|.
8534    #[prost(string, optional, tag="1")]
8535    pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
8536}
8537#[derive(Clone, PartialEq, ::prost::Message)]
8538pub struct UnregisterDataSourceResponse {
8539}
8540// Arguments for rpc RegisterTraceWriter().
8541
8542#[derive(Clone, PartialEq, ::prost::Message)]
8543pub struct RegisterTraceWriterRequest {
8544    /// The ID of a producer's trace writer.
8545    #[prost(uint32, optional, tag="1")]
8546    pub trace_writer_id: ::core::option::Option<u32>,
8547    /// The ID of the target buffer that the trace writer commits its chunks to.
8548    #[prost(uint32, optional, tag="2")]
8549    pub target_buffer: ::core::option::Option<u32>,
8550}
8551#[derive(Clone, PartialEq, ::prost::Message)]
8552pub struct RegisterTraceWriterResponse {
8553}
8554// Arguments for rpc UnregisterTraceWriter().
8555
8556#[derive(Clone, PartialEq, ::prost::Message)]
8557pub struct UnregisterTraceWriterRequest {
8558    /// The ID of a producer's trace writer.
8559    #[prost(uint32, optional, tag="1")]
8560    pub trace_writer_id: ::core::option::Option<u32>,
8561}
8562#[derive(Clone, PartialEq, ::prost::Message)]
8563pub struct UnregisterTraceWriterResponse {
8564}
8565// Arguments for rpc CommitData().
8566// See commit_data_request.proto for CommitDataRequest. That has its own file
8567// because it is used also as input to generate C++ classes (xxx.gen.h).
8568
8569#[derive(Clone, PartialEq, ::prost::Message)]
8570pub struct CommitDataResponse {
8571}
8572// Arguments for rpc NotifyDataSourceStarted().
8573
8574#[derive(Clone, PartialEq, ::prost::Message)]
8575pub struct NotifyDataSourceStartedRequest {
8576    /// ID of the data source that has successfully started.
8577    #[prost(uint64, optional, tag="1")]
8578    pub data_source_id: ::core::option::Option<u64>,
8579}
8580#[derive(Clone, PartialEq, ::prost::Message)]
8581pub struct NotifyDataSourceStartedResponse {
8582}
8583// Arguments for rpc NotifyDataSourceStopped().
8584
8585#[derive(Clone, PartialEq, ::prost::Message)]
8586pub struct NotifyDataSourceStoppedRequest {
8587    /// ID of the data source that has successfully stopped.
8588    #[prost(uint64, optional, tag="1")]
8589    pub data_source_id: ::core::option::Option<u64>,
8590}
8591#[derive(Clone, PartialEq, ::prost::Message)]
8592pub struct NotifyDataSourceStoppedResponse {
8593}
8594// Arguments for rpc ActivateTriggersRequest().
8595
8596#[derive(Clone, PartialEq, ::prost::Message)]
8597pub struct ActivateTriggersRequest {
8598    #[prost(string, repeated, tag="1")]
8599    pub trigger_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
8600}
8601#[derive(Clone, PartialEq, ::prost::Message)]
8602pub struct ActivateTriggersResponse {
8603}
8604// Arguments for rpc GetAsyncCommand().
8605
8606#[derive(Clone, PartialEq, ::prost::Message)]
8607pub struct GetAsyncCommandRequest {
8608}
8609#[derive(Clone, PartialEq, ::prost::Message)]
8610pub struct GetAsyncCommandResponse {
8611    /// Next id: 8.
8612    #[prost(oneof="get_async_command_response::Cmd", tags="3, 6, 1, 2, 5, 7")]
8613    pub cmd: ::core::option::Option<get_async_command_response::Cmd>,
8614}
8615/// Nested message and enum types in `GetAsyncCommandResponse`.
8616pub mod get_async_command_response {
8617    /// Called after SetupTracing and before StartDataSource.
8618    /// This message was introduced in Android Q.
8619    #[derive(Clone, PartialEq, ::prost::Message)]
8620    pub struct SetupDataSource {
8621        #[prost(uint64, optional, tag="1")]
8622        pub new_instance_id: ::core::option::Option<u64>,
8623        #[prost(message, optional, tag="2")]
8624        pub config: ::core::option::Option<super::DataSourceConfig>,
8625    }
8626    #[derive(Clone, PartialEq, ::prost::Message)]
8627    pub struct StartDataSource {
8628        #[prost(uint64, optional, tag="1")]
8629        pub new_instance_id: ::core::option::Option<u64>,
8630        /// For backwards compat reasons (with Android P), the config passed here
8631        /// is identical to the one passed to SetupDataSource.config.
8632        #[prost(message, optional, tag="2")]
8633        pub config: ::core::option::Option<super::DataSourceConfig>,
8634    }
8635    #[derive(Clone, PartialEq, ::prost::Message)]
8636    pub struct StopDataSource {
8637        #[prost(uint64, optional, tag="1")]
8638        pub instance_id: ::core::option::Option<u64>,
8639    }
8640    /// On Android/Linux/Mac this message also transports the file descriptor for
8641    /// the shared memory buffer (not a proto field).
8642    #[derive(Clone, PartialEq, ::prost::Message)]
8643    pub struct SetupTracing {
8644        #[prost(uint32, optional, tag="1")]
8645        pub shared_buffer_page_size_kb: ::core::option::Option<u32>,
8646        /// On Windows, instead, we pass the name (an unguessable token) of a shared
8647        /// memory region that can be attached by the other process by name.
8648        /// Introduced in v13.
8649        #[prost(string, optional, tag="2")]
8650        pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
8651    }
8652    #[derive(Clone, PartialEq, ::prost::Message)]
8653    pub struct Flush {
8654        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8655        /// sources to flush.
8656        #[prost(uint64, repeated, packed="false", tag="1")]
8657        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8658        /// A monotonic counter generated by the service. The producer is simply
8659        /// expected to copy this value back into the CommitDataRequest, so the
8660        /// service can tell when the data for this flush has been committed.
8661        #[prost(uint64, optional, tag="2")]
8662        pub request_id: ::core::option::Option<u64>,
8663        /// More details such as flush reason and originator. Introduced in v38 / V.
8664        /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8665        #[prost(uint64, optional, tag="3")]
8666        pub flags: ::core::option::Option<u64>,
8667    }
8668    /// Instructs the given data sources to stop referring to any trace contents
8669    /// emitted so far. Sent only to active data sources that set
8670    /// |handles_incremental_state_clear| in their DataSourceDescriptor.
8671    ///
8672    /// Added to perfetto tree in May 2019.
8673    #[derive(Clone, PartialEq, ::prost::Message)]
8674    pub struct ClearIncrementalState {
8675        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8676        /// sources that should clear their incremental state.
8677        #[prost(uint64, repeated, packed="false", tag="1")]
8678        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8679    }
8680    /// Next id: 8.
8681    #[derive(Clone, PartialEq, ::prost::Oneof)]
8682    pub enum Cmd {
8683        #[prost(message, tag="3")]
8684        SetupTracing(SetupTracing),
8685        #[prost(message, tag="6")]
8686        SetupDataSource(SetupDataSource),
8687        #[prost(message, tag="1")]
8688        StartDataSource(StartDataSource),
8689        #[prost(message, tag="2")]
8690        StopDataSource(StopDataSource),
8691        /// id == 4 was teardown_tracing, never implemented.
8692        #[prost(message, tag="5")]
8693        Flush(Flush),
8694        #[prost(message, tag="7")]
8695        ClearIncrementalState(ClearIncrementalState),
8696    }
8697}
8698/// Arguments for rpc Sync().
8699#[derive(Clone, PartialEq, ::prost::Message)]
8700pub struct SyncRequest {
8701}
8702#[derive(Clone, PartialEq, ::prost::Message)]
8703pub struct SyncResponse {
8704}
8705#[derive(Clone, PartialEq, ::prost::Message)]
8706pub struct IpcFrame {
8707    /// The client is expected to send requests with monotonically increasing
8708    /// request_id. The host will match the request_id sent from the client.
8709    /// In the case of a Streaming response (has_more = true) the host will send
8710    /// several InvokeMethodReply with the same request_id.
8711    #[prost(uint64, optional, tag="2")]
8712    pub request_id: ::core::option::Option<u64>,
8713    /// Used only in unittests to generate a parsable message of arbitrary size.
8714    #[prost(bytes="vec", repeated, tag="1")]
8715    pub data_for_testing: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
8716    #[prost(oneof="ipc_frame::Msg", tags="3, 4, 5, 6, 7, 8")]
8717    pub msg: ::core::option::Option<ipc_frame::Msg>,
8718}
8719/// Nested message and enum types in `IPCFrame`.
8720pub mod ipc_frame {
8721    /// Client -> Host.
8722    #[derive(Clone, PartialEq, ::prost::Message)]
8723    pub struct BindService {
8724        #[prost(string, optional, tag="1")]
8725        pub service_name: ::core::option::Option<::prost::alloc::string::String>,
8726    }
8727    /// Host -> Client.
8728    #[derive(Clone, PartialEq, ::prost::Message)]
8729    pub struct BindServiceReply {
8730        #[prost(bool, optional, tag="1")]
8731        pub success: ::core::option::Option<bool>,
8732        #[prost(uint32, optional, tag="2")]
8733        pub service_id: ::core::option::Option<u32>,
8734        #[prost(message, repeated, tag="3")]
8735        pub methods: ::prost::alloc::vec::Vec<bind_service_reply::MethodInfo>,
8736    }
8737    /// Nested message and enum types in `BindServiceReply`.
8738    pub mod bind_service_reply {
8739        #[derive(Clone, PartialEq, ::prost::Message)]
8740        pub struct MethodInfo {
8741            #[prost(uint32, optional, tag="1")]
8742            pub id: ::core::option::Option<u32>,
8743            #[prost(string, optional, tag="2")]
8744            pub name: ::core::option::Option<::prost::alloc::string::String>,
8745        }
8746    }
8747    /// Client -> Host.
8748    #[derive(Clone, PartialEq, ::prost::Message)]
8749    pub struct InvokeMethod {
8750        /// BindServiceReply.id.
8751        #[prost(uint32, optional, tag="1")]
8752        pub service_id: ::core::option::Option<u32>,
8753        /// BindServiceReply.method.id.
8754        #[prost(uint32, optional, tag="2")]
8755        pub method_id: ::core::option::Option<u32>,
8756        /// Proto-encoded request argument.
8757        #[prost(bytes="vec", optional, tag="3")]
8758        pub args_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8759        /// When true the client specifies that a reply is not needed. The use case
8760        /// is a method with an empty, where the client doesn't care about the
8761        /// success/failure of the method invocation and rather prefers avoiding the
8762        /// IPC roundtrip + context switch associated with the reply.
8763        #[prost(bool, optional, tag="4")]
8764        pub drop_reply: ::core::option::Option<bool>,
8765    }
8766    /// Host -> Client.
8767    #[derive(Clone, PartialEq, ::prost::Message)]
8768    pub struct InvokeMethodReply {
8769        #[prost(bool, optional, tag="1")]
8770        pub success: ::core::option::Option<bool>,
8771        /// only for streaming RPCs.
8772        #[prost(bool, optional, tag="2")]
8773        pub has_more: ::core::option::Option<bool>,
8774        /// proto-encoded response value.
8775        #[prost(bytes="vec", optional, tag="3")]
8776        pub reply_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8777    }
8778    /// Host -> Client.
8779    #[derive(Clone, PartialEq, ::prost::Message)]
8780    pub struct RequestError {
8781        #[prost(string, optional, tag="1")]
8782        pub error: ::core::option::Option<::prost::alloc::string::String>,
8783    }
8784    /// Client (relay service) -> Host. This is generated by the relay service to
8785    /// fill the producer identity in the guest. This message is sent to the host
8786    /// service *before* any IPCFrame is from a local producer is relayed. This is
8787    /// accepted only on AF_VSOCK and AF_INET sockets, where we cannot validate the
8788    /// endpoont of the connection. for AF_UNIX sockets, this is ignored and traced
8789    /// uses instead the SO_PEERCRED.
8790    #[derive(Clone, PartialEq, ::prost::Message)]
8791    pub struct SetPeerIdentity {
8792        /// The UID and PID of the producer process.
8793        #[prost(int32, optional, tag="1")]
8794        pub pid: ::core::option::Option<i32>,
8795        #[prost(int32, optional, tag="2")]
8796        pub uid: ::core::option::Option<i32>,
8797        /// The hint for the tracing service to infer the machine ID. This field
8798        /// should satisfy the requriement that different machines should have
8799        /// different values. In practice, this filed contains the Linux kernel
8800        /// boot_id, or a hash of kernel bootup timestamp and uname(2) if boot_id
8801        /// isn't available.
8802        #[prost(string, optional, tag="3")]
8803        pub machine_id_hint: ::core::option::Option<::prost::alloc::string::String>,
8804        /// Human-readable name associated to the producer's machine. Provides the
8805        /// tracing service a new dimension to filter data sources on. Given the
8806        /// perfetto machine name is provided by users, there is no expectation of
8807        /// uniqueness across machines in a tracing session.
8808        #[prost(string, optional, tag="4")]
8809        pub machine_name: ::core::option::Option<::prost::alloc::string::String>,
8810    }
8811    #[derive(Clone, PartialEq, ::prost::Oneof)]
8812    pub enum Msg {
8813        #[prost(message, tag="3")]
8814        MsgBindService(BindService),
8815        #[prost(message, tag="4")]
8816        MsgBindServiceReply(BindServiceReply),
8817        #[prost(message, tag="5")]
8818        MsgInvokeMethod(InvokeMethod),
8819        #[prost(message, tag="6")]
8820        MsgInvokeMethodReply(InvokeMethodReply),
8821        #[prost(message, tag="7")]
8822        MsgRequestError(RequestError),
8823        #[prost(message, tag="8")]
8824        SetPeerIdentity(SetPeerIdentity),
8825    }
8826}