Skip to main content

perfetto_protos/
perfetto.protos.rs

1#[derive(Clone, PartialEq, ::prost::Message)]
2pub struct ObservableEvents {
3    #[prost(message, repeated, tag="1")]
4    pub instance_state_changes: ::prost::alloc::vec::Vec<observable_events::DataSourceInstanceStateChange>,
5    #[prost(bool, optional, tag="2")]
6    pub all_data_sources_started: ::core::option::Option<bool>,
7    #[prost(message, optional, tag="3")]
8    pub clone_trigger_hit: ::core::option::Option<observable_events::CloneTriggerHit>,
9}
10/// Nested message and enum types in `ObservableEvents`.
11pub mod observable_events {
12    #[derive(Clone, PartialEq, ::prost::Message)]
13    pub struct DataSourceInstanceStateChange {
14        #[prost(string, optional, tag="1")]
15        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
16        #[prost(string, optional, tag="2")]
17        pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
18        #[prost(enumeration="DataSourceInstanceState", optional, tag="3")]
19        pub state: ::core::option::Option<i32>,
20    }
21    #[derive(Clone, PartialEq, ::prost::Message)]
22    pub struct CloneTriggerHit {
23        /// The TracingSessionID of the original tracing session which had a
24        /// CLONE_SNAPSHOT trigger defined. This is necessary just because the
25        /// consumer has no idea of what is the TSID of its own tracing session and
26        /// there is no other good way to plumb it.
27        #[prost(int64, optional, tag="1")]
28        pub tracing_session_id: ::core::option::Option<i64>,
29        /// The name of the CLONE_SNAPSHOT trigger which was hit.
30        #[prost(string, optional, tag="2")]
31        pub trigger_name: ::core::option::Option<::prost::alloc::string::String>,
32        /// The name of the producer that sent the CLONE_SNAPSHOT trigger.
33        #[prost(string, optional, tag="3")]
34        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
35        /// The uid of the producer that sent the CLONE_SNAPSHOT trigger.
36        #[prost(uint32, optional, tag="4")]
37        pub producer_uid: ::core::option::Option<u32>,
38        /// The timestamp of the CLONE_SNAPSHOT trigger which was hit.
39        #[prost(uint64, optional, tag="5")]
40        pub boot_time_ns: ::core::option::Option<u64>,
41        /// The configured delay of the CLONE_SNAPSHOT trigger which was hit. For
42        /// informational purposes only.
43        #[prost(uint64, optional, tag="6")]
44        pub trigger_delay_ms: ::core::option::Option<u64>,
45    }
46    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
47    #[repr(i32)]
48    pub enum Type {
49        Unspecified = 0,
50        /// State changes of data source instances associated with the consumer's
51        /// session. Note that not all data sources may support these notifications.
52        /// See |will_notify_on_start/stop| in DataSourceDescriptor.
53        DataSourcesInstances = 1,
54        /// State change triggered when all data sources are in the STARTED state.
55        /// For data sources that registered with |will_notify_on_start| this happens
56        /// only after the data source has acked the start. This allows the consumer
57        /// to synchronize with the data sources and to perform actions (e.g. start a
58        /// test binary) only after trace recording is actually started.
59        /// Introduced in Android 11 (R).
60        AllDataSourcesStarted = 2,
61        /// When a tracing session has one or more triggers of type CLONE_SNAPSHOT
62        /// and a matching trigger is hit, the service will send this notification to
63        /// the consumer after |stop_delay_ms|.
64        CloneTriggerHit = 4,
65    }
66    impl Type {
67        /// String value of the enum field names used in the ProtoBuf definition.
68        ///
69        /// The values are not transformed in any way and thus are considered stable
70        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
71        pub fn as_str_name(&self) -> &'static str {
72            match self {
73                Type::Unspecified => "TYPE_UNSPECIFIED",
74                Type::DataSourcesInstances => "TYPE_DATA_SOURCES_INSTANCES",
75                Type::AllDataSourcesStarted => "TYPE_ALL_DATA_SOURCES_STARTED",
76                Type::CloneTriggerHit => "TYPE_CLONE_TRIGGER_HIT",
77            }
78        }
79    }
80    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
81    #[repr(i32)]
82    pub enum DataSourceInstanceState {
83        /// A data source is created in stopped state.
84        Stopped = 1,
85        Started = 2,
86    }
87    impl DataSourceInstanceState {
88        /// String value of the enum field names used in the ProtoBuf definition.
89        ///
90        /// The values are not transformed in any way and thus are considered stable
91        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
92        pub fn as_str_name(&self) -> &'static str {
93            match self {
94                DataSourceInstanceState::Stopped => "DATA_SOURCE_INSTANCE_STATE_STOPPED",
95                DataSourceInstanceState::Started => "DATA_SOURCE_INSTANCE_STATE_STARTED",
96            }
97        }
98    }
99}
100#[derive(Clone, PartialEq, ::prost::Message)]
101pub struct FtraceDescriptor {
102    /// Report the available atrace categories.
103    ///
104    /// Used by Traceur via `perfetto --query`.
105    #[prost(message, repeated, tag="1")]
106    pub atrace_categories: ::prost::alloc::vec::Vec<ftrace_descriptor::AtraceCategory>,
107}
108/// Nested message and enum types in `FtraceDescriptor`.
109pub mod ftrace_descriptor {
110    #[derive(Clone, PartialEq, ::prost::Message)]
111    pub struct AtraceCategory {
112        #[prost(string, optional, tag="1")]
113        pub name: ::core::option::Option<::prost::alloc::string::String>,
114        #[prost(string, optional, tag="2")]
115        pub description: ::core::option::Option<::prost::alloc::string::String>,
116    }
117}
118/// Description of GPU counters.
119/// This message is sent by a GPU counter producer to specify the counters
120/// available in the hardware.
121#[derive(Clone, PartialEq, ::prost::Message)]
122pub struct GpuCounterDescriptor {
123    #[prost(message, repeated, tag="1")]
124    pub specs: ::prost::alloc::vec::Vec<gpu_counter_descriptor::GpuCounterSpec>,
125    #[prost(message, repeated, tag="2")]
126    pub blocks: ::prost::alloc::vec::Vec<gpu_counter_descriptor::GpuCounterBlock>,
127    /// optional.  Minimum sampling period supported by the producer in
128    /// nanoseconds.
129    #[prost(uint64, optional, tag="3")]
130    pub min_sampling_period_ns: ::core::option::Option<u64>,
131    /// optional.  Maximum sampling period supported by the producer in
132    /// nanoseconds.
133    #[prost(uint64, optional, tag="4")]
134    pub max_sampling_period_ns: ::core::option::Option<u64>,
135    /// optional.  The producer supports counter sampling by instrumenting the
136    /// command buffer.
137    #[prost(bool, optional, tag="5")]
138    pub supports_instrumented_sampling: ::core::option::Option<bool>,
139}
140/// Nested message and enum types in `GpuCounterDescriptor`.
141pub mod gpu_counter_descriptor {
142    #[derive(Clone, PartialEq, ::prost::Message)]
143    pub struct GpuCounterSpec {
144        #[prost(uint32, optional, tag="1")]
145        pub counter_id: ::core::option::Option<u32>,
146        #[prost(string, optional, tag="2")]
147        pub name: ::core::option::Option<::prost::alloc::string::String>,
148        #[prost(string, optional, tag="3")]
149        pub description: ::core::option::Option<::prost::alloc::string::String>,
150        #[prost(enumeration="MeasureUnit", repeated, packed="false", tag="7")]
151        pub numerator_units: ::prost::alloc::vec::Vec<i32>,
152        #[prost(enumeration="MeasureUnit", repeated, packed="false", tag="8")]
153        pub denominator_units: ::prost::alloc::vec::Vec<i32>,
154        #[prost(bool, optional, tag="9")]
155        pub select_by_default: ::core::option::Option<bool>,
156        #[prost(enumeration="GpuCounterGroup", repeated, packed="false", tag="10")]
157        pub groups: ::prost::alloc::vec::Vec<i32>,
158        #[prost(oneof="gpu_counter_spec::PeakValue", tags="5, 6")]
159        pub peak_value: ::core::option::Option<gpu_counter_spec::PeakValue>,
160    }
161    /// Nested message and enum types in `GpuCounterSpec`.
162    pub mod gpu_counter_spec {
163        #[derive(Clone, PartialEq, ::prost::Oneof)]
164        pub enum PeakValue {
165            #[prost(int64, tag="5")]
166            IntPeakValue(i64),
167            #[prost(double, tag="6")]
168            DoublePeakValue(f64),
169        }
170    }
171    /// Allow producer to group counters into block to represent counter islands.
172    /// A capacity may be specified to indicate the number of counters that can be
173    /// enable simultaneously in that block.
174    #[derive(Clone, PartialEq, ::prost::Message)]
175    pub struct GpuCounterBlock {
176        /// required. Unique ID for the counter group.
177        #[prost(uint32, optional, tag="1")]
178        pub block_id: ::core::option::Option<u32>,
179        /// optional. Number of counters supported by the block. No limit if unset.
180        #[prost(uint32, optional, tag="2")]
181        pub block_capacity: ::core::option::Option<u32>,
182        /// optional. Name of block.
183        #[prost(string, optional, tag="3")]
184        pub name: ::core::option::Option<::prost::alloc::string::String>,
185        /// optional. Description for the block.
186        #[prost(string, optional, tag="4")]
187        pub description: ::core::option::Option<::prost::alloc::string::String>,
188        /// list of counters that are part of the block.
189        #[prost(uint32, repeated, packed="false", tag="5")]
190        pub counter_ids: ::prost::alloc::vec::Vec<u32>,
191    }
192    /// Logical groups for a counter.  This is used in the UI to present the
193    /// related counters together.
194    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
195    #[repr(i32)]
196    pub enum GpuCounterGroup {
197        Unclassified = 0,
198        System = 1,
199        Vertices = 2,
200        Fragments = 3,
201        Primitives = 4,
202        /// Includes counters relating to caching and bandwidth.
203        Memory = 5,
204        Compute = 6,
205        RayTracing = 7,
206    }
207    impl GpuCounterGroup {
208        /// String value of the enum field names used in the ProtoBuf definition.
209        ///
210        /// The values are not transformed in any way and thus are considered stable
211        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
212        pub fn as_str_name(&self) -> &'static str {
213            match self {
214                GpuCounterGroup::Unclassified => "UNCLASSIFIED",
215                GpuCounterGroup::System => "SYSTEM",
216                GpuCounterGroup::Vertices => "VERTICES",
217                GpuCounterGroup::Fragments => "FRAGMENTS",
218                GpuCounterGroup::Primitives => "PRIMITIVES",
219                GpuCounterGroup::Memory => "MEMORY",
220                GpuCounterGroup::Compute => "COMPUTE",
221                GpuCounterGroup::RayTracing => "RAY_TRACING",
222            }
223        }
224    }
225    /// next id: 41
226    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
227    #[repr(i32)]
228    pub enum MeasureUnit {
229        None = 0,
230        Bit = 1,
231        Kilobit = 2,
232        Megabit = 3,
233        Gigabit = 4,
234        Terabit = 5,
235        Petabit = 6,
236        Byte = 7,
237        Kilobyte = 8,
238        Megabyte = 9,
239        Gigabyte = 10,
240        Terabyte = 11,
241        Petabyte = 12,
242        Hertz = 13,
243        Kilohertz = 14,
244        Megahertz = 15,
245        Gigahertz = 16,
246        Terahertz = 17,
247        Petahertz = 18,
248        Nanosecond = 19,
249        Microsecond = 20,
250        Millisecond = 21,
251        Second = 22,
252        Minute = 23,
253        Hour = 24,
254        Vertex = 25,
255        Pixel = 26,
256        Triangle = 27,
257        Primitive = 38,
258        Fragment = 39,
259        Milliwatt = 28,
260        Watt = 29,
261        Kilowatt = 30,
262        Joule = 31,
263        Volt = 32,
264        Ampere = 33,
265        Celsius = 34,
266        Fahrenheit = 35,
267        Kelvin = 36,
268        /// Values should be out of 100.
269        Percent = 37,
270        Instruction = 40,
271    }
272    impl MeasureUnit {
273        /// String value of the enum field names used in the ProtoBuf definition.
274        ///
275        /// The values are not transformed in any way and thus are considered stable
276        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
277        pub fn as_str_name(&self) -> &'static str {
278            match self {
279                MeasureUnit::None => "NONE",
280                MeasureUnit::Bit => "BIT",
281                MeasureUnit::Kilobit => "KILOBIT",
282                MeasureUnit::Megabit => "MEGABIT",
283                MeasureUnit::Gigabit => "GIGABIT",
284                MeasureUnit::Terabit => "TERABIT",
285                MeasureUnit::Petabit => "PETABIT",
286                MeasureUnit::Byte => "BYTE",
287                MeasureUnit::Kilobyte => "KILOBYTE",
288                MeasureUnit::Megabyte => "MEGABYTE",
289                MeasureUnit::Gigabyte => "GIGABYTE",
290                MeasureUnit::Terabyte => "TERABYTE",
291                MeasureUnit::Petabyte => "PETABYTE",
292                MeasureUnit::Hertz => "HERTZ",
293                MeasureUnit::Kilohertz => "KILOHERTZ",
294                MeasureUnit::Megahertz => "MEGAHERTZ",
295                MeasureUnit::Gigahertz => "GIGAHERTZ",
296                MeasureUnit::Terahertz => "TERAHERTZ",
297                MeasureUnit::Petahertz => "PETAHERTZ",
298                MeasureUnit::Nanosecond => "NANOSECOND",
299                MeasureUnit::Microsecond => "MICROSECOND",
300                MeasureUnit::Millisecond => "MILLISECOND",
301                MeasureUnit::Second => "SECOND",
302                MeasureUnit::Minute => "MINUTE",
303                MeasureUnit::Hour => "HOUR",
304                MeasureUnit::Vertex => "VERTEX",
305                MeasureUnit::Pixel => "PIXEL",
306                MeasureUnit::Triangle => "TRIANGLE",
307                MeasureUnit::Primitive => "PRIMITIVE",
308                MeasureUnit::Fragment => "FRAGMENT",
309                MeasureUnit::Milliwatt => "MILLIWATT",
310                MeasureUnit::Watt => "WATT",
311                MeasureUnit::Kilowatt => "KILOWATT",
312                MeasureUnit::Joule => "JOULE",
313                MeasureUnit::Volt => "VOLT",
314                MeasureUnit::Ampere => "AMPERE",
315                MeasureUnit::Celsius => "CELSIUS",
316                MeasureUnit::Fahrenheit => "FAHRENHEIT",
317                MeasureUnit::Kelvin => "KELVIN",
318                MeasureUnit::Percent => "PERCENT",
319                MeasureUnit::Instruction => "INSTRUCTION",
320            }
321        }
322    }
323}
324#[derive(Clone, PartialEq, ::prost::Message)]
325pub struct TrackEventCategory {
326    #[prost(string, optional, tag="1")]
327    pub name: ::core::option::Option<::prost::alloc::string::String>,
328    #[prost(string, optional, tag="2")]
329    pub description: ::core::option::Option<::prost::alloc::string::String>,
330    #[prost(string, repeated, tag="3")]
331    pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
332}
333#[derive(Clone, PartialEq, ::prost::Message)]
334pub struct TrackEventDescriptor {
335    #[prost(message, repeated, tag="1")]
336    pub available_categories: ::prost::alloc::vec::Vec<TrackEventCategory>,
337}
338#[derive(Clone, PartialEq, ::prost::Message)]
339pub struct VmProgram {
340    #[prost(uint32, optional, tag="1")]
341    pub version: ::core::option::Option<u32>,
342    #[prost(message, repeated, tag="2")]
343    pub instructions: ::prost::alloc::vec::Vec<VmInstruction>,
344}
345#[derive(Clone, PartialEq, ::prost::Message)]
346pub struct VmInstruction {
347    #[prost(enumeration="vm_instruction::AbortLevel", optional, tag="6")]
348    pub abort_level: ::core::option::Option<i32>,
349    /// Sub-instructions executed if the current instruction succeeds
350    #[prost(message, repeated, tag="7")]
351    pub nested_instructions: ::prost::alloc::vec::Vec<VmInstruction>,
352    #[prost(oneof="vm_instruction::Operation", tags="1, 2, 3, 4, 5")]
353    pub operation: ::core::option::Option<vm_instruction::Operation>,
354}
355/// Nested message and enum types in `VmInstruction`.
356pub mod vm_instruction {
357    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
358    #[repr(i32)]
359    pub enum AbortLevel {
360        /// Skip current instruction but execute following ones
361        SkipCurrentInstruction = 1,
362        /// Skip current instruction as well as following ones (default)
363        SkipCurrentInstructionAndBreakOuter = 2,
364        /// Abort whole program
365        Abort = 3,
366    }
367    impl AbortLevel {
368        /// String value of the enum field names used in the ProtoBuf definition.
369        ///
370        /// The values are not transformed in any way and thus are considered stable
371        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
372        pub fn as_str_name(&self) -> &'static str {
373            match self {
374                AbortLevel::SkipCurrentInstruction => "SKIP_CURRENT_INSTRUCTION",
375                AbortLevel::SkipCurrentInstructionAndBreakOuter => "SKIP_CURRENT_INSTRUCTION_AND_BREAK_OUTER",
376                AbortLevel::Abort => "ABORT",
377            }
378        }
379    }
380    #[derive(Clone, PartialEq, ::prost::Oneof)]
381    pub enum Operation {
382        #[prost(message, tag="1")]
383        Select(super::VmOpSelect),
384        #[prost(message, tag="2")]
385        RegLoad(super::VmOpRegLoad),
386        #[prost(message, tag="3")]
387        Merge(super::VmOpMerge),
388        #[prost(message, tag="4")]
389        Set(super::VmOpSet),
390        #[prost(message, tag="5")]
391        Del(super::VmOpDel),
392    }
393}
394#[derive(Clone, PartialEq, ::prost::Message)]
395pub struct VmOpSelect {
396    /// Enum SRC|DST|BOTH. Default=SRC.
397    #[prost(enumeration="VmCursorEnum", optional, tag="1")]
398    pub cursor: ::core::option::Option<i32>,
399    #[prost(message, repeated, tag="2")]
400    pub relative_path: ::prost::alloc::vec::Vec<vm_op_select::PathComponent>,
401    /// Creates the submessage if doesn't exist in the DST cursor
402    /// (think of mkdir -p). Only valid when cursor=DST|BOTH.
403    #[prost(bool, optional, tag="3")]
404    pub create_if_not_exist: ::core::option::Option<bool>,
405}
406/// Nested message and enum types in `VmOpSelect`.
407pub mod vm_op_select {
408    /// A path component is either: (1) a field id to descend into (common case);
409    /// (2) an array index (for repeated fields); (3) a map lookup operation (for
410    /// repeated fields, where we snoop a sub-field as a map key)
411    #[derive(Clone, PartialEq, ::prost::Message)]
412    pub struct PathComponent {
413        // When we are selecting a leaf field, tell what's the field type
414        // to disambiguate integer types. Using uint64 by default will likely
415        // do the right thing in 99% cases (so probably we don't need to impl
416        // this until much later if somebody does a map with a fixed64 key)
417        // enum ProtoFieldType field_type = 4;  // bool | int32 | fixed32 | ...
418
419        /// Only valid when using field_id. This makes select have foreach
420        /// semantics. This means that the body of nested_instructions is
421        /// executed several times, once per each repeated submessage.
422        #[prost(bool, optional, tag="5")]
423        pub is_repeated: ::core::option::Option<bool>,
424        /// Only valid when using map_key_field_id. This defines which
425        /// register (R1..R32) should be used to match the key of the dict
426        /// in a map lookup operation.
427        /// In other words:
428        /// foreach msg in repeated message {
429        ///    if msg\[map_key_field_id\] == R\[register_to_match\] {
430        ///       break;  // Lookup succeeded, PathComponent resolves here.
431        ///    }
432        /// }
433        #[prost(uint32, optional, tag="6")]
434        pub register_to_match: ::core::option::Option<u32>,
435        /// Only valid when using field_id and is_repeated=true. When iterating
436        /// over repeated fields, stores the current iteration index into the
437        /// the register R1..R32 defined below. This can be used to do complex
438        /// operations like "find the entry in the array that has width==100,
439        /// remember its offset in the SRC array and overwrite the matching
440        /// i-th element in the DST array. We will probably never implement
441        /// this but it's here for completeness.
442        #[prost(uint32, optional, tag="7")]
443        pub store_foreach_index_into_register: ::core::option::Option<u32>,
444        #[prost(oneof="path_component::Field", tags="1, 2, 3")]
445        pub field: ::core::option::Option<path_component::Field>,
446    }
447    /// Nested message and enum types in `PathComponent`.
448    pub mod path_component {
449        #[derive(Clone, PartialEq, ::prost::Oneof)]
450        pub enum Field {
451            #[prost(uint32, tag="1")]
452            FieldId(u32),
453            #[prost(uint32, tag="2")]
454            ArrayIndex(u32),
455            /// The ID of the field in the repeated submessage that we
456            /// use as a key (e.g. LayerState.layer_id). When setting this
457            /// register_to_match must also be set, to tell what's the
458            /// expected value of the key we are looking up.
459            #[prost(uint32, tag="3")]
460            MapKeyFieldId(u32),
461        }
462    }
463}
464#[derive(Clone, PartialEq, ::prost::Message)]
465pub struct VmOpRegLoad {
466    /// SRC(default) | DST.
467    #[prost(enumeration="VmCursorEnum", optional, tag="1")]
468    pub cursor: ::core::option::Option<i32>,
469    /// 1=R1, 2=R2... 32=R32
470    #[prost(uint32, optional, tag="2")]
471    pub dst_register: ::core::option::Option<u32>,
472}
473/// Merges SRC into DST. Both need to point to a message (not a field).
474#[derive(Clone, PartialEq, ::prost::Message)]
475pub struct VmOpMerge {
476}
477/// Copies SRC into DST. If a message, replaces the DST node, discarding any
478/// pre-existing field.
479#[derive(Clone, PartialEq, ::prost::Message)]
480pub struct VmOpSet {
481}
482/// Delete the field or message pointed by DST.
483#[derive(Clone, PartialEq, ::prost::Message)]
484pub struct VmOpDel {
485}
486#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
487#[repr(i32)]
488pub enum VmCursorEnum {
489    VmCursorUnspecified = 0,
490    VmCursorSrc = 1,
491    VmCursorDst = 2,
492    VmCursorBoth = 3,
493}
494impl VmCursorEnum {
495    /// String value of the enum field names used in the ProtoBuf definition.
496    ///
497    /// The values are not transformed in any way and thus are considered stable
498    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
499    pub fn as_str_name(&self) -> &'static str {
500        match self {
501            VmCursorEnum::VmCursorUnspecified => "VM_CURSOR_UNSPECIFIED",
502            VmCursorEnum::VmCursorSrc => "VM_CURSOR_SRC",
503            VmCursorEnum::VmCursorDst => "VM_CURSOR_DST",
504            VmCursorEnum::VmCursorBoth => "VM_CURSOR_BOTH",
505        }
506    }
507}
508/// This message is sent from Producer(s) to the tracing Service when registering
509/// to advertise their capabilities. It describes the structure of tracing
510/// protos that will be produced by the data source and the supported filters.
511#[derive(Clone, PartialEq, ::prost::Message)]
512pub struct DataSourceDescriptor {
513    /// e.g., "linux.ftrace", "chromium.tracing"
514    #[prost(string, optional, tag="1")]
515    pub name: ::core::option::Option<::prost::alloc::string::String>,
516    /// When non-zero, this is a unique ID within the scope of the Producer for
517    /// this data source (it is NOT globally unique). This is useful to
518    /// differentiate between data sources with matching names when calling
519    /// UpdateDataSource(). This field has been introduced in November 2021
520    /// (v22, Android T) and is not supported on older versions.
521    #[prost(uint64, optional, tag="7")]
522    pub id: ::core::option::Option<u64>,
523    /// When true the data source is expected to ack the stop request through the
524    /// NotifyDataSourceStopped() IPC. This field has been introduced after
525    /// Android P in Jul 2018 and is not supported on older versions.
526    #[prost(bool, optional, tag="2")]
527    pub will_notify_on_stop: ::core::option::Option<bool>,
528    /// When true the data source is expected to ack the start request through the
529    /// NotifyDataSourceStarted() IPC. This field has been introduced after
530    /// Android P in March 2019 and is not supported on older versions.
531    #[prost(bool, optional, tag="3")]
532    pub will_notify_on_start: ::core::option::Option<bool>,
533    /// If true, opt into receiving the ClearIncrementalState() IPC. This should be
534    /// set if the data source writes packets that refer to previous trace
535    /// contents, and knows how to stop referring to the already-emitted data.
536    #[prost(bool, optional, tag="4")]
537    pub handles_incremental_state_clear: ::core::option::Option<bool>,
538    /// If true, indicates that the data source does nothing upon Flush. This
539    /// allows the service to reduce the flush-related IPC traffic and better deal
540    /// with frozen producers (see go/perfetto-frozen). This is usually the case
541    /// for data sources like 'track_event' that don't have access to the various
542    /// thread task runners to post a flush task and rely purely on server-side
543    /// scraping.
544    /// Introduced in v39 / Android V.
545    #[prost(bool, optional, tag="9")]
546    pub no_flush: ::core::option::Option<bool>,
547    /// If present, the tracing service executes this program within a ProtoVM to
548    /// process overwritten packets (patches). The service computes a hash of the
549    /// program to detect and disambiguate between different versions; if multiple
550    /// versions (from different producers) are specified for the same data source,
551    /// the service instantiates a dedicated ProtoVM for each.
552    #[prost(message, optional, tag="10")]
553    pub protovm_program: ::core::option::Option<VmProgram>,
554    /// Optional specification about available GPU counters.
555    #[prost(message, optional, tag="5")]
556    pub gpu_counter_descriptor: ::core::option::Option<GpuCounterDescriptor>,
557    #[prost(message, optional, tag="6")]
558    pub track_event_descriptor: ::core::option::Option<TrackEventDescriptor>,
559    #[prost(message, optional, tag="8")]
560    pub ftrace_descriptor: ::core::option::Option<FtraceDescriptor>,
561}
562/// Reports the state of the tracing service. Used to gather details about the
563/// data sources connected.
564/// See ConsumerPort::QueryServiceState().
565#[derive(Clone, PartialEq, ::prost::Message)]
566pub struct TracingServiceState {
567    /// Lists all the producers connected.
568    #[prost(message, repeated, tag="1")]
569    pub producers: ::prost::alloc::vec::Vec<tracing_service_state::Producer>,
570    /// Lists the data sources available.
571    #[prost(message, repeated, tag="2")]
572    pub data_sources: ::prost::alloc::vec::Vec<tracing_service_state::DataSource>,
573    /// Lists the tracing sessions active AND owned by a consumer that has the same
574    /// UID of the caller (or all of them if the caller is root).
575    /// Introduced in v24 / Android T.
576    #[prost(message, repeated, tag="6")]
577    pub tracing_sessions: ::prost::alloc::vec::Vec<tracing_service_state::TracingSession>,
578    /// This is always set to true from v24 and beyond. This flag is only used to
579    /// tell the difference between: (1) talking to a recent service which happens
580    /// to have no tracing session active; (2) talking to an older version of the
581    /// service which will never report any tracing session.
582    #[prost(bool, optional, tag="7")]
583    pub supports_tracing_sessions: ::core::option::Option<bool>,
584    /// Total number of tracing sessions.
585    #[prost(int32, optional, tag="3")]
586    pub num_sessions: ::core::option::Option<i32>,
587    /// Number of tracing sessions in the started state. Always <= num_sessions.
588    #[prost(int32, optional, tag="4")]
589    pub num_sessions_started: ::core::option::Option<i32>,
590    /// The version of traced (the same returned by `traced --version`).
591    /// This is a human readable string with and its format varies depending on
592    /// the build system and the repo (standalone vs AOSP).
593    /// This is intended for human debugging only.
594    #[prost(string, optional, tag="5")]
595    pub tracing_service_version: ::core::option::Option<::prost::alloc::string::String>,
596}
597/// Nested message and enum types in `TracingServiceState`.
598pub mod tracing_service_state {
599    /// Describes a producer process.
600    #[derive(Clone, PartialEq, ::prost::Message)]
601    pub struct Producer {
602        /// Unique ID of the producer (monotonic counter).
603        #[prost(int32, optional, tag="1")]
604        pub id: ::core::option::Option<i32>,
605        /// Typically matches the process name.
606        #[prost(string, optional, tag="2")]
607        pub name: ::core::option::Option<::prost::alloc::string::String>,
608        /// Unix pid of the remote process. Supported only on Linux-based systems.
609        /// Introduced in v24 / Android T.
610        #[prost(int32, optional, tag="5")]
611        pub pid: ::core::option::Option<i32>,
612        /// Unix uid of the remote process.
613        #[prost(int32, optional, tag="3")]
614        pub uid: ::core::option::Option<i32>,
615        /// The version of the client library used by the producer.
616        /// This is a human readable string with and its format varies depending on
617        /// the build system and the repo (standalone vs AOSP).
618        /// This is intended for human debugging only.
619        #[prost(string, optional, tag="4")]
620        pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
621        /// Returns true if the process appears to be frozen (Android only).
622        /// Introduced in Perfetto V49 / Android 24Q4.
623        #[prost(bool, optional, tag="6")]
624        pub frozen: ::core::option::Option<bool>,
625    }
626    /// Describes a data source registered by a producer. Data sources are listed
627    /// regardless of the fact that they are being used or not.
628    #[derive(Clone, PartialEq, ::prost::Message)]
629    pub struct DataSource {
630        /// Descriptor passed by the data source when calling RegisterDataSource().
631        #[prost(message, optional, tag="1")]
632        pub ds_descriptor: ::core::option::Option<super::DataSourceDescriptor>,
633        /// ID of the producer, as per Producer.id.
634        #[prost(int32, optional, tag="2")]
635        pub producer_id: ::core::option::Option<i32>,
636    }
637    #[derive(Clone, PartialEq, ::prost::Message)]
638    pub struct TracingSession {
639        /// The TracingSessionID.
640        #[prost(uint64, optional, tag="1")]
641        pub id: ::core::option::Option<u64>,
642        /// The Unix uid of the consumer that started the session.
643        /// This is meaningful only if the caller is root. In all other cases only
644        /// tracing sessions that match the caller UID will be displayed.
645        #[prost(int32, optional, tag="2")]
646        pub consumer_uid: ::core::option::Option<i32>,
647        /// Internal state of the tracing session.
648        /// These strings are FYI only and subjected to change.
649        #[prost(string, optional, tag="3")]
650        pub state: ::core::option::Option<::prost::alloc::string::String>,
651        /// The unique_session_name as set in the trace config (might be empty).
652        #[prost(string, optional, tag="4")]
653        pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
654        /// The number and size of each buffer.
655        #[prost(uint32, repeated, packed="false", tag="5")]
656        pub buffer_size_kb: ::prost::alloc::vec::Vec<u32>,
657        /// Duration, as specified in the TraceConfig.duration_ms.
658        #[prost(uint32, optional, tag="6")]
659        pub duration_ms: ::core::option::Option<u32>,
660        /// Number of data sources involved in the session.
661        #[prost(uint32, optional, tag="7")]
662        pub num_data_sources: ::core::option::Option<u32>,
663        /// Time when the session was started, in the CLOCK_REALTIME domain.
664        /// Available only on Linux-based systems.
665        #[prost(int64, optional, tag="8")]
666        pub start_realtime_ns: ::core::option::Option<i64>,
667        // The fields below have been introduced in v42.
668
669        /// The bugreport_score, as set in TraceConfig.bugreport_score.
670        #[prost(int32, optional, tag="9")]
671        pub bugreport_score: ::core::option::Option<i32>,
672        /// As per TraceConfig.bugreport_filename.
673        #[prost(string, optional, tag="10")]
674        pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
675        /// If true, the session is in the STARTED state. If false the session is in
676        /// any other state (see `state` field).
677        #[prost(bool, optional, tag="11")]
678        pub is_started: ::core::option::Option<bool>,
679    }
680}
681#[derive(Clone, PartialEq, ::prost::Message)]
682pub struct TracingServiceCapabilities {
683    /// Whether the service supports QueryCapabilities() at all or not.
684    /// This is only used at the C++ level to distinguish the case of talking to
685    /// an older version of the service that doesn't support QueryCapabilities().
686    /// In that case the IPC layer will just reject the unknown call, and the
687    /// consumer_ipc_client_impl.cc will return an empty message where this field
688    /// is false. In all other cases, this is always set to true.
689    #[prost(bool, optional, tag="1")]
690    pub has_query_capabilities: ::core::option::Option<bool>,
691    /// The set of known events that can be passed to ConsumerPort.ObserveEvents().
692    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="2")]
693    pub observable_events: ::prost::alloc::vec::Vec<i32>,
694    /// Whether the service supports TraceConfig.output_path (for asking traced to
695    /// create the output file instead of passing a file descriptor).
696    #[prost(bool, optional, tag="3")]
697    pub has_trace_config_output_path: ::core::option::Option<bool>,
698    /// Whether the service supports CloneSession and CLONE_SNAPSHOT triggers.
699    #[prost(bool, optional, tag="4")]
700    pub has_clone_session: ::core::option::Option<bool>,
701}
702/// Statistics for the internals of the tracing service.
703///
704/// Next id: 19.
705#[derive(Clone, PartialEq, ::prost::Message)]
706pub struct TraceStats {
707    /// Stats for the TraceBuffer(s) of the current trace session.
708    #[prost(message, repeated, tag="1")]
709    pub buffer_stats: ::prost::alloc::vec::Vec<trace_stats::BufferStats>,
710    /// The thresholds of each the `writer_stats` histogram buckets. This is
711    /// emitted only once as all WriterStats share the same bucket layout.
712    /// This field has the same cardinality of the
713    /// `writer_stats.chunk_payload_histogram_{counts,sum}` - 1.
714    /// (The -1 is because the last overflow bucket is not reported in the _def).
715    /// An array of values [10, 100, 1000] in the _def array means that there are
716    /// four buckets (3 + the implicit overflow bucket):
717    /// \[0\]: x <= 10; \[1\]: 100 < x <= 1000; \[2\]: 1000 < x <= 1000; \[3\]: x > 1000.
718    #[prost(int64, repeated, packed="false", tag="17")]
719    pub chunk_payload_histogram_def: ::prost::alloc::vec::Vec<i64>,
720    #[prost(message, repeated, tag="18")]
721    pub writer_stats: ::prost::alloc::vec::Vec<trace_stats::WriterStats>,
722    /// Num. producers connected (whether they are involved in the current tracing
723    /// session or not).
724    #[prost(uint32, optional, tag="2")]
725    pub producers_connected: ::core::option::Option<u32>,
726    /// Num. producers ever seen for all trace sessions since startup (it's a good
727    /// proxy for inferring num. producers crashed / killed).
728    #[prost(uint64, optional, tag="3")]
729    pub producers_seen: ::core::option::Option<u64>,
730    /// Num. data sources registered for all trace sessions.
731    #[prost(uint32, optional, tag="4")]
732    pub data_sources_registered: ::core::option::Option<u32>,
733    /// Num. data sources ever seen for all trace sessions since startup.
734    #[prost(uint64, optional, tag="5")]
735    pub data_sources_seen: ::core::option::Option<u64>,
736    /// Num. concurrently active tracing sessions.
737    #[prost(uint32, optional, tag="6")]
738    pub tracing_sessions: ::core::option::Option<u32>,
739    /// Num. buffers for all tracing session (not just the current one). This will
740    /// be >= buffer_stats.size(), because the latter is only about the current
741    /// session.
742    #[prost(uint32, optional, tag="7")]
743    pub total_buffers: ::core::option::Option<u32>,
744    // The fields below have been introduced in Android Q.
745
746    /// Num. chunks that were discarded by the service before attempting to commit
747    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
748    #[prost(uint64, optional, tag="8")]
749    pub chunks_discarded: ::core::option::Option<u64>,
750    /// Num. patches that were discarded by the service before attempting to apply
751    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
752    #[prost(uint64, optional, tag="9")]
753    pub patches_discarded: ::core::option::Option<u64>,
754    /// Packets that failed validation of the TrustedPacket. If this is > 0, there
755    /// is a bug in the producer.
756    #[prost(uint64, optional, tag="10")]
757    pub invalid_packets: ::core::option::Option<u64>,
758    #[prost(message, optional, tag="11")]
759    pub filter_stats: ::core::option::Option<trace_stats::FilterStats>,
760    /// Count of Flush() requests (either from the Consumer, or self-induced
761    /// periodic flushes). The final Flush() is also included in the count.
762    #[prost(uint64, optional, tag="12")]
763    pub flushes_requested: ::core::option::Option<u64>,
764    /// The count of the Flush() requests that were completed successfully.
765    /// In a well behaving trace this should always be == `flush_requests`.
766    #[prost(uint64, optional, tag="13")]
767    pub flushes_succeeded: ::core::option::Option<u64>,
768    /// The count of the Flush() requests that failed (in most timed out).
769    /// In a well behaving trace this should always be == 0.
770    #[prost(uint64, optional, tag="14")]
771    pub flushes_failed: ::core::option::Option<u64>,
772    #[prost(enumeration="trace_stats::FinalFlushOutcome", optional, tag="15")]
773    pub final_flush_outcome: ::core::option::Option<i32>,
774}
775/// Nested message and enum types in `TraceStats`.
776pub mod trace_stats {
777    /// From TraceBuffer::Stats.
778    ///
779    /// Next id: 22.
780    #[derive(Clone, PartialEq, ::prost::Message)]
781    pub struct BufferStats {
782        /// Size of the circular buffer in bytes.
783        #[prost(uint64, optional, tag="12")]
784        pub buffer_size: ::core::option::Option<u64>,
785        /// Num. bytes written into the circular buffer, including chunk headers.
786        #[prost(uint64, optional, tag="1")]
787        pub bytes_written: ::core::option::Option<u64>,
788        /// Num. bytes overwritten before they have been read (i.e. loss of data).
789        #[prost(uint64, optional, tag="13")]
790        pub bytes_overwritten: ::core::option::Option<u64>,
791        /// Total size of chunks that were fully read from the circular buffer by the
792        /// consumer. This may not be equal to |bytes_written| either in the middle
793        /// of tracing, or if |chunks_overwritten| is non-zero. Note that this is the
794        /// size of the chunks read from the buffer, including chunk headers, which
795        /// will be different from the total size of packets returned to the
796        /// consumer.
797        ///
798        /// The current utilization of the trace buffer (mid-tracing) can be obtained
799        /// by subtracting |bytes_read| and |bytes_overwritten| from |bytes_written|,
800        /// adding the difference of |padding_bytes_written| and
801        /// |padding_bytes_cleared|, and comparing this sum to the |buffer_size|.
802        /// Note that this represents the total size of buffered data in the buffer,
803        /// yet this data may be spread non-contiguously through the buffer and may
804        /// be overridden before the utilization reaches 100%.
805        #[prost(uint64, optional, tag="14")]
806        pub bytes_read: ::core::option::Option<u64>,
807        /// Num. bytes that were allocated as padding between chunks in the circular
808        /// buffer.
809        #[prost(uint64, optional, tag="15")]
810        pub padding_bytes_written: ::core::option::Option<u64>,
811        /// Num. of padding bytes that were removed from the circular buffer when
812        /// they were overwritten.
813        ///
814        /// The difference between |padding_bytes_written| and
815        /// |padding_bytes_cleared| denotes the total size of padding currently
816        /// present in the buffer.
817        #[prost(uint64, optional, tag="16")]
818        pub padding_bytes_cleared: ::core::option::Option<u64>,
819        /// Num. chunks (!= packets) written into the buffer.
820        #[prost(uint64, optional, tag="2")]
821        pub chunks_written: ::core::option::Option<u64>,
822        /// Num. chunks (!= packets) rewritten into the buffer. This means we rewrote
823        /// the same chunk with additional packets appended to the end.
824        #[prost(uint64, optional, tag="10")]
825        pub chunks_rewritten: ::core::option::Option<u64>,
826        /// Num. chunks overwritten before they have been read (i.e. loss of data).
827        #[prost(uint64, optional, tag="3")]
828        pub chunks_overwritten: ::core::option::Option<u64>,
829        /// Num. chunks discarded (i.e. loss of data). Can be > 0 only when a buffer
830        /// is configured with FillPolicy == DISCARD.
831        #[prost(uint64, optional, tag="18")]
832        pub chunks_discarded: ::core::option::Option<u64>,
833        /// Num. chunks (!= packets) that were fully read from the circular buffer by
834        /// the consumer. This may not be equal to |chunks_written| either in the
835        /// middle of tracing, or if |chunks_overwritten| is non-zero.
836        #[prost(uint64, optional, tag="17")]
837        pub chunks_read: ::core::option::Option<u64>,
838        /// Num. chunks that were committed out of order.
839        #[prost(uint64, optional, tag="11")]
840        pub chunks_committed_out_of_order: ::core::option::Option<u64>,
841        /// Num. times the ring buffer wrapped around.
842        #[prost(uint64, optional, tag="4")]
843        pub write_wrap_count: ::core::option::Option<u64>,
844        /// Num. out-of-band (OOB) patches that succeeded.
845        #[prost(uint64, optional, tag="5")]
846        pub patches_succeeded: ::core::option::Option<u64>,
847        /// Num. OOB patches that failed (e.g., the chunk to patch was gone).
848        #[prost(uint64, optional, tag="6")]
849        pub patches_failed: ::core::option::Option<u64>,
850        /// Num. readaheads (for large multi-chunk packet reads) that ended up in a
851        /// successful packet read.
852        #[prost(uint64, optional, tag="7")]
853        pub readaheads_succeeded: ::core::option::Option<u64>,
854        /// Num. readaheads aborted because of missing chunks in the sequence stream.
855        /// Note that a small number > 0 is totally expected: occasionally, when
856        /// issuing a read, the very last packet in a sequence might be incomplete
857        /// (because the producer is still writing it while we read). The read will
858        /// stop at that point, for that sequence, increasing this counter.
859        #[prost(uint64, optional, tag="8")]
860        pub readaheads_failed: ::core::option::Option<u64>,
861        /// Num. of violations of the SharedMemoryABI found while writing or reading
862        /// the buffer. This is an indication of either a bug in the producer(s) or
863        /// malicious producer(s).
864        #[prost(uint64, optional, tag="9")]
865        pub abi_violations: ::core::option::Option<u64>,
866        // The fields below have been introduced in Android R.
867
868        /// Num. of times the service detected packet loss on a trace writer
869        /// sequence. This is usually caused by exhaustion of available chunks in the
870        /// writer process's SMB. Note that this relies on the client's TraceWriter
871        /// indicating this loss to the service -- packets lost for other reasons are
872        /// not reflected in this stat.
873        #[prost(uint64, optional, tag="19")]
874        pub trace_writer_packet_loss: ::core::option::Option<u64>,
875        #[prost(message, optional, tag="21")]
876        pub shadow_buffer_stats: ::core::option::Option<buffer_stats::ShadowBufferStats>,
877    }
878    /// Nested message and enum types in `BufferStats`.
879    pub mod buffer_stats {
880        /// Statistics for TRACE_BUFFER_V2_SHADOW_MODE comparison.
881        /// Only populated when the buffer is configured with shadow mode.
882        #[derive(Clone, PartialEq, ::prost::Message)]
883        pub struct ShadowBufferStats {
884            /// Total num. packets read. This is not affected by capping of the hasher
885            /// to 32K elements.
886            #[prost(uint64, optional, tag="1")]
887            pub packets_seen: ::core::option::Option<u64>,
888            // The stats below are keps only for 32k packets. After reading 32K
889            // packets hashes are randomly evicted and that might lead to slightly
890            // inconsistent results.
891
892            /// Num. packets found in both V1 and V2 buffers (matched by content hash).
893            #[prost(uint64, optional, tag="2")]
894            pub packets_in_both: ::core::option::Option<u64>,
895            /// Num. packets found only in V1 buffer but not in V2.
896            #[prost(uint64, optional, tag="3")]
897            pub packets_only_v1: ::core::option::Option<u64>,
898            /// Num. packets found only in V2 buffer but not in V1.
899            #[prost(uint64, optional, tag="4")]
900            pub packets_only_v2: ::core::option::Option<u64>,
901            /// Num. patch operations attempted.
902            #[prost(uint64, optional, tag="5")]
903            pub patches_attempted: ::core::option::Option<u64>,
904            /// Num. patches that succeeded on V1 buffer.
905            #[prost(uint64, optional, tag="6")]
906            pub v1_patches_succeeded: ::core::option::Option<u64>,
907            /// Num. patches that succeeded on V2 buffer.
908            #[prost(uint64, optional, tag="7")]
909            pub v2_patches_succeeded: ::core::option::Option<u64>,
910            /// This is to distinguish the updated calculations after fixing the
911            /// hashes. This field is either empty or "2"
912            #[prost(uint32, optional, tag="8")]
913            pub stats_version: ::core::option::Option<u32>,
914        }
915    }
916    /// Per TraceWriter stat. Each {producer, trace writer} tuple is publicly
917    /// visible as a unique sequence ID in the trace.
918    #[derive(Clone, PartialEq, ::prost::Message)]
919    pub struct WriterStats {
920        /// This matches the TracePacket.trusted_packet_sequence_id and is used to
921        /// correlate the stats with the actual packet types.
922        #[prost(uint64, optional, tag="1")]
923        pub sequence_id: ::core::option::Option<u64>,
924        /// The buffer index (0..N, as defined in the TraceConfig).
925        #[prost(uint32, optional, tag="4")]
926        pub buffer: ::core::option::Option<u32>,
927        /// These two arrays have the same cardinality and match the cardinality of
928        /// chunk_payload_histogram_def + 1 (for the overflow bucket, see below).
929        /// `sum` contains the SUM(entries) and `counts` contains the COUNT(entries)
930        /// for each bucket.
931        #[prost(uint64, repeated, tag="2")]
932        pub chunk_payload_histogram_counts: ::prost::alloc::vec::Vec<u64>,
933        #[prost(int64, repeated, tag="3")]
934        pub chunk_payload_histogram_sum: ::prost::alloc::vec::Vec<i64>,
935    }
936    /// This is set only when the TraceConfig specifies a TraceFilter.
937    #[derive(Clone, PartialEq, ::prost::Message)]
938    pub struct FilterStats {
939        #[prost(uint64, optional, tag="1")]
940        pub input_packets: ::core::option::Option<u64>,
941        #[prost(uint64, optional, tag="2")]
942        pub input_bytes: ::core::option::Option<u64>,
943        #[prost(uint64, optional, tag="3")]
944        pub output_bytes: ::core::option::Option<u64>,
945        #[prost(uint64, optional, tag="4")]
946        pub errors: ::core::option::Option<u64>,
947        #[prost(uint64, optional, tag="5")]
948        pub time_taken_ns: ::core::option::Option<u64>,
949        /// The number of bytes discarded by the filter (i.e. output - input).
950        /// The array has one entry for each buffer defined in the config (unless no
951        /// packets for that buffer were seen and hence filtered).
952        /// Note: the SUM(bytes_discarded_per_buffer) will be <= but not == the total
953        /// (output_bytes - input_bytes) because the filter might also discard
954        /// server-generated synthetic packets, that have no buffer index.
955        #[prost(uint64, repeated, packed="false", tag="20")]
956        pub bytes_discarded_per_buffer: ::prost::alloc::vec::Vec<u64>,
957    }
958    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
959    #[repr(i32)]
960    pub enum FinalFlushOutcome {
961        FinalFlushUnspecified = 0,
962        FinalFlushSucceeded = 1,
963        FinalFlushFailed = 2,
964    }
965    impl FinalFlushOutcome {
966        /// String value of the enum field names used in the ProtoBuf definition.
967        ///
968        /// The values are not transformed in any way and thus are considered stable
969        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
970        pub fn as_str_name(&self) -> &'static str {
971            match self {
972                FinalFlushOutcome::FinalFlushUnspecified => "FINAL_FLUSH_UNSPECIFIED",
973                FinalFlushOutcome::FinalFlushSucceeded => "FINAL_FLUSH_SUCCEEDED",
974                FinalFlushOutcome::FinalFlushFailed => "FINAL_FLUSH_FAILED",
975            }
976        }
977    }
978}
979/// Builtin clock domains used in Perfetto traces.
980///
981/// The default trace time clock is BUILTIN_CLOCK_TRACE_FILE: a synthetic clock
982/// representing the trace file's own timeline. Each trace file gets its own
983/// instance (scoped by trace file index).
984///
985/// For backwards compatibility, Perfetto proto traces register BOOTTIME as a
986/// fallback: if the first timestamp conversion uses a clock other than the
987/// trace file clock and no explicit clock snapshot data exists, the trace time
988/// is switched to BOOTTIME. This fallback does not fire for modern traces that
989/// include ClockSnapshots or that only use the trace file clock directly.
990///
991/// The `primary_trace_clock` field in ClockSnapshot can definitively override
992/// the trace time clock regardless of the above.
993#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
994#[repr(i32)]
995pub enum BuiltinClock {
996    Unknown = 0,
997    /// Corresponds to CLOCK_REALTIME. See clock_gettime(2).
998    Realtime = 1,
999    /// Corresponds to CLOCK_REALTIME_COARSE. See clock_gettime(2).
1000    RealtimeCoarse = 2,
1001    /// Corresponds to CLOCK_MONOTONIC. See clock_gettime(2).
1002    Monotonic = 3,
1003    /// Corresponds to CLOCK_MONOTONIC_COARSE. See clock_gettime(2).
1004    MonotonicCoarse = 4,
1005    /// Corresponds to CLOCK_MONOTONIC_RAW. See clock_gettime(2).
1006    MonotonicRaw = 5,
1007    /// Corresponds to CLOCK_BOOTTIME. See clock_gettime(2).
1008    /// For proto traces, this is used as a backwards-compatible fallback trace
1009    /// time clock when no explicit clock snapshots are present.
1010    Boottime = 6,
1011    /// TSC (Time Stamp Counter). Architecture-specific high-resolution counter.
1012    Tsc = 9,
1013    /// Corresponds to the perf event clock (PERF_CLOCK).
1014    Perf = 10,
1015    /// A synthetic clock representing the trace file's own timeline. Each trace
1016    /// file gets its own instance (scoped by trace file index). This is the
1017    /// default trace time clock before any clock snapshot or format-specific
1018    /// override takes effect.
1019    TraceFile = 11,
1020    MaxId = 63,
1021}
1022impl BuiltinClock {
1023    /// String value of the enum field names used in the ProtoBuf definition.
1024    ///
1025    /// The values are not transformed in any way and thus are considered stable
1026    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1027    pub fn as_str_name(&self) -> &'static str {
1028        match self {
1029            BuiltinClock::Unknown => "BUILTIN_CLOCK_UNKNOWN",
1030            BuiltinClock::Realtime => "BUILTIN_CLOCK_REALTIME",
1031            BuiltinClock::RealtimeCoarse => "BUILTIN_CLOCK_REALTIME_COARSE",
1032            BuiltinClock::Monotonic => "BUILTIN_CLOCK_MONOTONIC",
1033            BuiltinClock::MonotonicCoarse => "BUILTIN_CLOCK_MONOTONIC_COARSE",
1034            BuiltinClock::MonotonicRaw => "BUILTIN_CLOCK_MONOTONIC_RAW",
1035            BuiltinClock::Boottime => "BUILTIN_CLOCK_BOOTTIME",
1036            BuiltinClock::Tsc => "BUILTIN_CLOCK_TSC",
1037            BuiltinClock::Perf => "BUILTIN_CLOCK_PERF",
1038            BuiltinClock::TraceFile => "BUILTIN_CLOCK_TRACE_FILE",
1039            BuiltinClock::MaxId => "BUILTIN_CLOCK_MAX_ID",
1040        }
1041    }
1042}
1043/// Semantic types for string fields. This tells the filter what kind of
1044/// data the field contains, so it can apply the right filtering rules.
1045/// See /rfcs/0011-subset-string-filter-rules.md for design details.
1046/// Introduced in: Perfetto v54.
1047#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1048#[repr(i32)]
1049pub enum SemanticType {
1050    Unspecified = 0,
1051    Atrace = 1,
1052    Job = 2,
1053    Wakelock = 3,
1054}
1055impl SemanticType {
1056    /// String value of the enum field names used in the ProtoBuf definition.
1057    ///
1058    /// The values are not transformed in any way and thus are considered stable
1059    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1060    pub fn as_str_name(&self) -> &'static str {
1061        match self {
1062            SemanticType::Unspecified => "SEMANTIC_TYPE_UNSPECIFIED",
1063            SemanticType::Atrace => "SEMANTIC_TYPE_ATRACE",
1064            SemanticType::Job => "SEMANTIC_TYPE_JOB",
1065            SemanticType::Wakelock => "SEMANTIC_TYPE_WAKELOCK",
1066        }
1067    }
1068}
1069/// Data source that lists game modes and game interventions of games
1070/// on an Android device.
1071#[derive(Clone, PartialEq, ::prost::Message)]
1072pub struct AndroidGameInterventionListConfig {
1073    /// If not empty, emit info about only the following list of package names
1074    /// (exact match, no regex). Otherwise, emit info about all packages.
1075    #[prost(string, repeated, tag="1")]
1076    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1077}
1078/// Custom configuration for the "android.input.inputevent" data source.
1079///
1080/// NOTE: Input traces can only be taken on debuggable (userdebug/eng) builds!
1081///
1082/// Next ID: 5
1083#[derive(Clone, PartialEq, ::prost::Message)]
1084pub struct AndroidInputEventConfig {
1085    /// The tracing mode to use. If unspecified, it will default to
1086    /// TRACE_MODE_USE_RULES.
1087    #[prost(enumeration="android_input_event_config::TraceMode", optional, tag="1")]
1088    pub mode: ::core::option::Option<i32>,
1089    /// The list of rules to use to determine the trace level of events.
1090    /// Each event will be traced using the TraceLevel of the first rule that it
1091    /// triggers from this list. The rules are evaluated in the order in which they
1092    /// are specified. If an event does not match any of the rules,
1093    /// TRACE_LEVEL_NONE will be used by default.
1094    #[prost(message, repeated, tag="2")]
1095    pub rules: ::prost::alloc::vec::Vec<android_input_event_config::TraceRule>,
1096    // --- Control flags ---
1097
1098    /// Trace input events processed by the system as they are being dispatched
1099    /// to application windows. All trace rules will apply.
1100    ///    - If this flag is used without enabling trace_dispatcher_window_dispatch,
1101    ///    it will
1102    ///      trace InputDispatcher's inbound events (which does not include events
1103    ///      synthesized within InputDispatcher) that match the rules.
1104    ///    - If used with trace_dispatcher_window_dispatch, all inbound and outbound
1105    ///    events
1106    ///      matching the rules, including all events synthesized within
1107    ///      InputDispatcher, will be traced.
1108    #[prost(bool, optional, tag="3")]
1109    pub trace_dispatcher_input_events: ::core::option::Option<bool>,
1110    /// Trace details about which windows the system is sending each input event
1111    /// to. All trace rules will apply.
1112    #[prost(bool, optional, tag="4")]
1113    pub trace_dispatcher_window_dispatch: ::core::option::Option<bool>,
1114}
1115/// Nested message and enum types in `AndroidInputEventConfig`.
1116pub mod android_input_event_config {
1117    /// A rule that specifies the TraceLevel for an event based on matching
1118    /// conditions. All matchers in the rule are optional. To trigger this rule, an
1119    /// event must match all of its specified matchers (i.e. the matchers function
1120    /// like a series of conditions connected by a logical 'AND' operator). A rule
1121    /// with no specified matchers will match all events. Next ID: 6
1122    #[derive(Clone, PartialEq, ::prost::Message)]
1123    pub struct TraceRule {
1124        /// The trace level to be used for events that trigger this rule.
1125        /// If unspecified, TRACE_LEVEL_NONE will be used by default.
1126        #[prost(enumeration="TraceLevel", optional, tag="1")]
1127        pub trace_level: ::core::option::Option<i32>,
1128        // --- Optional Matchers ---
1129
1130        /// Package matchers
1131        ///
1132        /// Respectively matches if all or any of the target apps for this event are
1133        /// contained in the specified list of package names.
1134        ///
1135        /// Intended usage:
1136        ///    - Use match_all_packages to selectively allow tracing for the listed
1137        ///    packages.
1138        ///    - Use match_any_packages to selectively deny tracing for certain
1139        ///    packages.
1140        ///
1141        /// WARNING: Great care must be taken when designing rules for field tracing!
1142        ///           This is because each event is almost always sent to more than
1143        ///           one app.
1144        ///               For example, when allowing tracing for a package that has a
1145        ///               spy window
1146        ///           over the display (e.g. SystemUI) using match_any_packages,
1147        ///           essentially all input will be recorded on that display. This is
1148        ///           because the events will be sent to the spy as well as the
1149        ///           foreground app, and regardless of what the foreground app is,
1150        ///           the event will end up being traced.
1151        ///               Alternatively, when attempting to block tracing for specific
1152        ///               packages using
1153        ///           match_all_packages, no events will likely be blocked. This is
1154        ///           because the event will also be sent to other apps (such as, but
1155        ///           not limited to, ones with spy windows), so the matcher will not
1156        ///           match unless all other targets are also listed under the
1157        ///           match_all_packages list.
1158        #[prost(string, repeated, tag="2")]
1159        pub match_all_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1160        #[prost(string, repeated, tag="3")]
1161        pub match_any_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1162        /// Matches if the event is secure, which means that at least one of the
1163        /// targets of this event is using the window flag FLAG_SECURE.
1164        #[prost(bool, optional, tag="4")]
1165        pub match_secure: ::core::option::Option<bool>,
1166        /// Matches if there was an active IME connection while this event was being
1167        /// processed.
1168        #[prost(bool, optional, tag="5")]
1169        pub match_ime_connection_active: ::core::option::Option<bool>,
1170    }
1171    /// Trace modes are tracing presets that are included in the system.
1172    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1173    #[repr(i32)]
1174    pub enum TraceMode {
1175        /// Preset mode for maximal tracing.
1176        /// WARNING: This will bypass all privacy measures on debuggable builds, and
1177        /// will record all
1178        ///           input events processed by the system, regardless of the context
1179        ///           in which they were processed. It should only be used for tracing
1180        ///           on a local device or for tests. It should NEVER be used for
1181        ///           field tracing.
1182        TraceAll = 0,
1183        /// Use the tracing rules defined in this config to specify what events to
1184        /// trace.
1185        UseRules = 1,
1186    }
1187    impl TraceMode {
1188        /// String value of the enum field names used in the ProtoBuf definition.
1189        ///
1190        /// The values are not transformed in any way and thus are considered stable
1191        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1192        pub fn as_str_name(&self) -> &'static str {
1193            match self {
1194                TraceMode::TraceAll => "TRACE_MODE_TRACE_ALL",
1195                TraceMode::UseRules => "TRACE_MODE_USE_RULES",
1196            }
1197        }
1198    }
1199    /// The level of tracing that should be applied to an event.
1200    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1201    #[repr(i32)]
1202    pub enum TraceLevel {
1203        /// Do not trace the input event.
1204        None = 0,
1205        /// Trace the event as a redacted event, where certain sensitive fields are
1206        /// omitted from the trace, including the coordinates of pointer events and
1207        /// the key/scan codes of key events.
1208        Redacted = 1,
1209        /// Trace the complete event.
1210        Complete = 2,
1211    }
1212    impl TraceLevel {
1213        /// String value of the enum field names used in the ProtoBuf definition.
1214        ///
1215        /// The values are not transformed in any way and thus are considered stable
1216        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1217        pub fn as_str_name(&self) -> &'static str {
1218            match self {
1219                TraceLevel::None => "TRACE_LEVEL_NONE",
1220                TraceLevel::Redacted => "TRACE_LEVEL_REDACTED",
1221                TraceLevel::Complete => "TRACE_LEVEL_COMPLETE",
1222            }
1223        }
1224    }
1225}
1226/// Values from NDK's android/log.h.
1227#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1228#[repr(i32)]
1229pub enum AndroidLogId {
1230    /// MAIN.
1231    LidDefault = 0,
1232    LidRadio = 1,
1233    LidEvents = 2,
1234    LidSystem = 3,
1235    LidCrash = 4,
1236    LidStats = 5,
1237    LidSecurity = 6,
1238    LidKernel = 7,
1239}
1240impl AndroidLogId {
1241    /// String value of the enum field names used in the ProtoBuf definition.
1242    ///
1243    /// The values are not transformed in any way and thus are considered stable
1244    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1245    pub fn as_str_name(&self) -> &'static str {
1246        match self {
1247            AndroidLogId::LidDefault => "LID_DEFAULT",
1248            AndroidLogId::LidRadio => "LID_RADIO",
1249            AndroidLogId::LidEvents => "LID_EVENTS",
1250            AndroidLogId::LidSystem => "LID_SYSTEM",
1251            AndroidLogId::LidCrash => "LID_CRASH",
1252            AndroidLogId::LidStats => "LID_STATS",
1253            AndroidLogId::LidSecurity => "LID_SECURITY",
1254            AndroidLogId::LidKernel => "LID_KERNEL",
1255        }
1256    }
1257}
1258#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1259#[repr(i32)]
1260pub enum AndroidLogPriority {
1261    PrioUnspecified = 0,
1262    /// _DEFAULT, but should never be seen in logs.
1263    PrioUnused = 1,
1264    PrioVerbose = 2,
1265    PrioDebug = 3,
1266    PrioInfo = 4,
1267    PrioWarn = 5,
1268    PrioError = 6,
1269    PrioFatal = 7,
1270}
1271impl AndroidLogPriority {
1272    /// String value of the enum field names used in the ProtoBuf definition.
1273    ///
1274    /// The values are not transformed in any way and thus are considered stable
1275    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1276    pub fn as_str_name(&self) -> &'static str {
1277        match self {
1278            AndroidLogPriority::PrioUnspecified => "PRIO_UNSPECIFIED",
1279            AndroidLogPriority::PrioUnused => "PRIO_UNUSED",
1280            AndroidLogPriority::PrioVerbose => "PRIO_VERBOSE",
1281            AndroidLogPriority::PrioDebug => "PRIO_DEBUG",
1282            AndroidLogPriority::PrioInfo => "PRIO_INFO",
1283            AndroidLogPriority::PrioWarn => "PRIO_WARN",
1284            AndroidLogPriority::PrioError => "PRIO_ERROR",
1285            AndroidLogPriority::PrioFatal => "PRIO_FATAL",
1286        }
1287    }
1288}
1289#[derive(Clone, PartialEq, ::prost::Message)]
1290pub struct AndroidLogConfig {
1291    #[prost(enumeration="AndroidLogId", repeated, packed="false", tag="1")]
1292    pub log_ids: ::prost::alloc::vec::Vec<i32>,
1293    /// If set ignores all log messages whose prio is < the given value.
1294    #[prost(enumeration="AndroidLogPriority", optional, tag="3")]
1295    pub min_prio: ::core::option::Option<i32>,
1296    /// If non-empty ignores all log messages whose tag doesn't match one of the
1297    /// specified values.
1298    #[prost(string, repeated, tag="4")]
1299    pub filter_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1300    /// If true, includes the contents of the logcat buffers that were already
1301    /// present before the data source started. By default (false), only new
1302    /// log entries produced after the data source starts are recorded.
1303    /// Can be useful for boot traces or situations where logs from before
1304    /// traced started are important.
1305    #[prost(bool, optional, tag="5")]
1306    pub preserve_log_buffer: ::core::option::Option<bool>,
1307}
1308/// Data source that polls for display state. This should only be used for
1309/// backward-compatibility; AndroidSystemPropertyConfig should be preferred.
1310#[derive(Clone, PartialEq, ::prost::Message)]
1311pub struct AndroidPolledStateConfig {
1312    /// Frequency of polling. If absent the state will be recorded once, at the
1313    /// start of the trace.
1314    /// This is required to be > 100ms to avoid excessive CPU usage.
1315    #[prost(uint32, optional, tag="1")]
1316    pub poll_ms: ::core::option::Option<u32>,
1317}
1318/// Data source that polls for system properties.
1319#[derive(Clone, PartialEq, ::prost::Message)]
1320pub struct AndroidSystemPropertyConfig {
1321    /// Frequency of polling. If absent the state will be recorded once, at the
1322    /// start of the trace.
1323    /// This is required to be > 100ms to avoid excessive CPU usage.
1324    #[prost(uint32, optional, tag="1")]
1325    pub poll_ms: ::core::option::Option<u32>,
1326    /// Properties to poll. All property names must start with "debug.tracing.".
1327    #[prost(string, repeated, tag="2")]
1328    pub property_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1329}
1330/// Data source that controls the system properties used to guard initialization
1331/// of track_event producers (i.e. Skia) in apps using HWUI, and certain
1332/// processes like SurfaceFlinger.
1333///
1334/// This data source only tells Skia to initialized the Perfetto SDK and start
1335/// routing data to the Track Event system instead of ATrace. For those events
1336/// to actually show up in a trace, the track_event data source must be used as
1337/// well. The Perfetto SDK cannot be de-initialized, so some long-lived apps and
1338/// processes may need to be restarted for Skia to revert to using ATrace if
1339/// Track Events are no longer desired.
1340///
1341/// In addition to switching Skia to use Perfetto's track_event data source,
1342/// this "guard" also controls Skia's "broad tracing", which removes Skia's
1343/// internal tracing constraints and allows the track_event config to specify
1344/// which categories should be traced. Filtering to the "skia.always" category
1345/// *tag* in a track_event config can be used to re-enable the standard
1346/// constraints typically used with ATrace.
1347///
1348/// Data source name: android.sdk_sysprop_guard
1349/// Introduced in Android 14 (U) QPR1.
1350/// Next id: 4
1351#[derive(Clone, PartialEq, ::prost::Message)]
1352pub struct AndroidSdkSyspropGuardConfig {
1353    /// If true, configures SurfaceFlinger to initialize Skia's Perfetto
1354    /// integration with the track_event data source in RenderEngine.
1355    /// If false or omitted, the simpler ATrace fallback is used.
1356    ///
1357    /// NOTE: once enabled, Skia will only revert to ATrace if SurfaceFlinger is
1358    /// restarted.
1359    ///
1360    /// Specifically this sets the following system properties:
1361    ///    - debug.tracing.ctl.renderengine.skia_tracing_enabled
1362    ///    - debug.tracing.ctl.renderengine.skia_use_perfetto_track_events
1363    ///
1364    /// Does not affect actual track_event data *collection*, which must be
1365    /// configured separately.
1366    #[prost(bool, optional, tag="1")]
1367    pub surfaceflinger_skia_track_events: ::core::option::Option<bool>,
1368    /// If true, configures HWUI apps to initialize Skia's Perfetto integration
1369    /// with the track_event data source. hwui_package_name_filter
1370    /// can be used to control which apps are affected.
1371    /// If false or omitted, the simpler ATrace fallback is used.
1372    ///
1373    /// NOTE: once enabled, Skia will only revert to ATrace if the app is
1374    /// restarted.
1375    ///
1376    /// ATTENTION: affects ALL HWUI APPS if hwui_package_name_filter is not set!
1377    /// If filtering is NOT set, this controls these GLOBAL system properties:
1378    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled
1379    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events
1380    /// If filtering IS set, this controls these APP-SPECIFIC system properties,
1381    /// for each package listed in the filter:
1382    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled.<package.name>
1383    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events.<package.name>
1384    ///
1385    /// Does not affect actual track_event data *collection*, which must be
1386    /// configured separately.
1387    #[prost(bool, optional, tag="2")]
1388    pub hwui_skia_track_events: ::core::option::Option<bool>,
1389    /// If non-empty, hwui_skia_track_events applies to only the packages listed.
1390    /// Otherwise, hwui_skia_track_events applies globally to all HWUI apps.
1391    #[prost(string, repeated, tag="3")]
1392    pub hwui_package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1393}
1394/// Configuration for the android.app_wakelocks data source.
1395#[derive(Clone, PartialEq, ::prost::Message)]
1396pub struct AppWakelocksConfig {
1397    /// Specifies the delay (in milliseconds) after which the data source will
1398    /// attempt to write events. Writing less frequently reduces the trace size by
1399    /// making better use of the packed arrays and reducing the total number of
1400    /// TracePackets needed (which each have dozens of bytes of overhead). The
1401    /// suggested delay is 5000ms.
1402    #[prost(int32, optional, tag="1")]
1403    pub write_delay_ms: ::core::option::Option<i32>,
1404    /// When set, wakelocks held for less than this amount of time are filtered
1405    /// from the resulting trace. Note: duration is computed by matching wakelocks
1406    /// with identical attributes, not by tracking the underlying objects. The
1407    /// threshold should be < the trace's flush_period_ms.
1408    #[prost(int32, optional, tag="2")]
1409    pub filter_duration_below_ms: ::core::option::Option<i32>,
1410    /// When true, the owner_pid is dropped from the resulting output, reducing the
1411    /// size of the interning tables.
1412    #[prost(bool, optional, tag="3")]
1413    pub drop_owner_pid: ::core::option::Option<bool>,
1414}
1415/// Data source that records CPU per UID data.
1416#[derive(Clone, PartialEq, ::prost::Message)]
1417pub struct CpuPerUidConfig {
1418    /// Record at this frequency.
1419    #[prost(uint32, optional, tag="1")]
1420    pub poll_ms: ::core::option::Option<u32>,
1421}
1422/// Custom configuration for the "android.inputmethod" data source.
1423#[derive(Clone, PartialEq, ::prost::Message)]
1424pub struct InputMethodConfig {
1425    /// If true, enables tracing in the clients.
1426    #[prost(bool, optional, tag="1")]
1427    pub client: ::core::option::Option<bool>,
1428    /// If true, enables tracing in InputMethodService.
1429    #[prost(bool, optional, tag="2")]
1430    pub service: ::core::option::Option<bool>,
1431    /// If true, enables tracing in InputMethodManagerService.
1432    #[prost(bool, optional, tag="3")]
1433    pub manager_service: ::core::option::Option<bool>,
1434}
1435/// Data source that records kernel (and native) wakelock data.
1436#[derive(Clone, PartialEq, ::prost::Message)]
1437pub struct KernelWakelocksConfig {
1438    /// Record at this frequency.
1439    #[prost(uint32, optional, tag="1")]
1440    pub poll_ms: ::core::option::Option<u32>,
1441}
1442/// Network tracing data source that records details on all packets sent or
1443/// received by the network.
1444#[derive(Clone, PartialEq, ::prost::Message)]
1445pub struct NetworkPacketTraceConfig {
1446    /// Polling frequency in milliseconds. Network tracing writes to a fixed size
1447    /// ring buffer. The polling interval should be such that the ring buffer is
1448    /// unlikely to fill in that interval (or that filling is an acceptable risk).
1449    /// The minimum polling rate is 100ms (values below this are ignored).
1450    /// Introduced in Android 14 (U).
1451    #[prost(uint32, optional, tag="1")]
1452    pub poll_ms: ::core::option::Option<u32>,
1453    /// The aggregation_threshold is the number of packets at which an event will
1454    /// switch from per-packet details to aggregate details. For example, a value
1455    /// of 50 means that if a particular event (grouped by the unique combinations
1456    /// of metadata fields: {interface, direction, uid, etc}) has fewer than 50
1457    /// packets, the exact timestamp and length are recorded for each packet. If
1458    /// there were 50 or more packets in an event, it would only record the total
1459    /// duration, packets, and length. A value of zero or unspecified will always
1460    /// / record per-packet details. A value of 1 always records aggregate details.
1461    #[prost(uint32, optional, tag="2")]
1462    pub aggregation_threshold: ::core::option::Option<u32>,
1463    /// Specifies the maximum number of packet contexts to intern at a time. This
1464    /// prevents the interning table from growing too large and controls whether
1465    /// interning is enabled or disabled (a value of zero disables interning and
1466    /// is the default). When a data sources interning table reaches this amount,
1467    /// packet contexts will be inlined into NetworkPacketEvents.
1468    #[prost(uint32, optional, tag="3")]
1469    pub intern_limit: ::core::option::Option<u32>,
1470    /// The following fields specify whether certain fields should be dropped from
1471    /// the output. Dropping fields improves normalization results, reduces the
1472    /// size of the interning table, and slightly reduces event size.
1473    #[prost(bool, optional, tag="4")]
1474    pub drop_local_port: ::core::option::Option<bool>,
1475    #[prost(bool, optional, tag="5")]
1476    pub drop_remote_port: ::core::option::Option<bool>,
1477    #[prost(bool, optional, tag="6")]
1478    pub drop_tcp_flags: ::core::option::Option<bool>,
1479}
1480/// Data source that lists details (such as version code) about packages on an
1481/// Android device.
1482#[derive(Clone, PartialEq, ::prost::Message)]
1483pub struct PackagesListConfig {
1484    /// If not empty, emit info about only the following list of package names
1485    /// (exact match, no regex). Otherwise, emit info about all packages.
1486    #[prost(string, repeated, tag="1")]
1487    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1488    /// If present and non-zero, the data source will periodically poll for CPU
1489    /// use by packages and only emit results for those that it sees. If absent,
1490    /// the data source will emit results for all packages at startup. The package
1491    /// name filter applies either way.
1492    #[prost(uint32, optional, tag="2")]
1493    pub only_write_on_cpu_use_every_ms: ::core::option::Option<u32>,
1494}
1495/// Data source that records events from the modem.
1496#[derive(Clone, PartialEq, ::prost::Message)]
1497pub struct PixelModemConfig {
1498    #[prost(enumeration="pixel_modem_config::EventGroup", optional, tag="1")]
1499    pub event_group: ::core::option::Option<i32>,
1500    /// If set, record only events with these hashes.
1501    #[prost(int64, repeated, packed="false", tag="2")]
1502    pub pigweed_hash_allow_list: ::prost::alloc::vec::Vec<i64>,
1503    /// If set and allow_list is not set, deny events with these hashes.
1504    #[prost(int64, repeated, packed="false", tag="3")]
1505    pub pigweed_hash_deny_list: ::prost::alloc::vec::Vec<i64>,
1506}
1507/// Nested message and enum types in `PixelModemConfig`.
1508pub mod pixel_modem_config {
1509    /// Event group to record, as defined by the modem.
1510    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1511    #[repr(i32)]
1512    pub enum EventGroup {
1513        Unknown = 0,
1514        /// Events suitable for low bandwidth tracing only.
1515        LowBandwidth = 1,
1516        /// Events suitable for high and low bandwidth tracing.
1517        HighAndLowBandwidth = 2,
1518    }
1519    impl EventGroup {
1520        /// String value of the enum field names used in the ProtoBuf definition.
1521        ///
1522        /// The values are not transformed in any way and thus are considered stable
1523        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1524        pub fn as_str_name(&self) -> &'static str {
1525            match self {
1526                EventGroup::Unknown => "EVENT_GROUP_UNKNOWN",
1527                EventGroup::LowBandwidth => "EVENT_GROUP_LOW_BANDWIDTH",
1528                EventGroup::HighAndLowBandwidth => "EVENT_GROUP_HIGH_AND_LOW_BANDWIDTH",
1529            }
1530        }
1531    }
1532}
1533#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1534#[repr(i32)]
1535pub enum ProtoLogLevel {
1536    ProtologLevelUndefined = 0,
1537    ProtologLevelDebug = 1,
1538    ProtologLevelVerbose = 2,
1539    ProtologLevelInfo = 3,
1540    ProtologLevelWarn = 4,
1541    ProtologLevelError = 5,
1542    ProtologLevelWtf = 6,
1543}
1544impl ProtoLogLevel {
1545    /// String value of the enum field names used in the ProtoBuf definition.
1546    ///
1547    /// The values are not transformed in any way and thus are considered stable
1548    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1549    pub fn as_str_name(&self) -> &'static str {
1550        match self {
1551            ProtoLogLevel::ProtologLevelUndefined => "PROTOLOG_LEVEL_UNDEFINED",
1552            ProtoLogLevel::ProtologLevelDebug => "PROTOLOG_LEVEL_DEBUG",
1553            ProtoLogLevel::ProtologLevelVerbose => "PROTOLOG_LEVEL_VERBOSE",
1554            ProtoLogLevel::ProtologLevelInfo => "PROTOLOG_LEVEL_INFO",
1555            ProtoLogLevel::ProtologLevelWarn => "PROTOLOG_LEVEL_WARN",
1556            ProtoLogLevel::ProtologLevelError => "PROTOLOG_LEVEL_ERROR",
1557            ProtoLogLevel::ProtologLevelWtf => "PROTOLOG_LEVEL_WTF",
1558        }
1559    }
1560}
1561/// Custom configuration for the "android.protolog" data source.
1562/// ProtoLog is a logging mechanism that is intented to be more efficient than
1563/// logcat. This configures what logs to capture in the tracing instance.
1564#[derive(Clone, PartialEq, ::prost::Message)]
1565pub struct ProtoLogConfig {
1566    /// Specified the configurations for each of the logging groups. If none is
1567    /// specified for a group the defaults will be used.
1568    #[prost(message, repeated, tag="1")]
1569    pub group_overrides: ::prost::alloc::vec::Vec<ProtoLogGroup>,
1570    /// Specified what tracing mode to use for the tracing instance.
1571    #[prost(enumeration="proto_log_config::TracingMode", optional, tag="2")]
1572    pub tracing_mode: ::core::option::Option<i32>,
1573    /// If set, any message with log level higher than this level (inclusive) will
1574    /// be traced. Group overrides take precedence over this value.
1575    #[prost(enumeration="ProtoLogLevel", optional, tag="3")]
1576    pub default_log_from_level: ::core::option::Option<i32>,
1577}
1578/// Nested message and enum types in `ProtoLogConfig`.
1579pub mod proto_log_config {
1580    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1581    #[repr(i32)]
1582    pub enum TracingMode {
1583        /// When using the DEFAULT tracing mode, only log groups and levels specified
1584        /// in the group_overrides are traced.
1585        Default = 0,
1586        /// When using the ENABLE_ALL tracing mode, all log groups and levels are
1587        /// traced, unless specified in the group_overrides.
1588        EnableAll = 1,
1589    }
1590    impl TracingMode {
1591        /// String value of the enum field names used in the ProtoBuf definition.
1592        ///
1593        /// The values are not transformed in any way and thus are considered stable
1594        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1595        pub fn as_str_name(&self) -> &'static str {
1596            match self {
1597                TracingMode::Default => "DEFAULT",
1598                TracingMode::EnableAll => "ENABLE_ALL",
1599            }
1600        }
1601    }
1602}
1603#[derive(Clone, PartialEq, ::prost::Message)]
1604pub struct ProtoLogGroup {
1605    /// The ProtoLog group name this configuration entry applies to.
1606    #[prost(string, optional, tag="1")]
1607    pub group_name: ::core::option::Option<::prost::alloc::string::String>,
1608    /// Specify the level from which to start capturing protologs.
1609    /// e.g. if ProtoLogLevel.WARN is specified only warning, errors and fatal log
1610    /// message will be traced.
1611    #[prost(enumeration="ProtoLogLevel", optional, tag="2")]
1612    pub log_from: ::core::option::Option<i32>,
1613    /// When set to true we will collect the stacktrace for each protolog message
1614    /// in this group that we are tracing.
1615    #[prost(bool, optional, tag="3")]
1616    pub collect_stacktrace: ::core::option::Option<bool>,
1617}
1618/// Custom configuration for the "android.surfaceflinger.layers" data source.
1619#[derive(Clone, PartialEq, ::prost::Message)]
1620pub struct SurfaceFlingerLayersConfig {
1621    #[prost(enumeration="surface_flinger_layers_config::Mode", optional, tag="1")]
1622    pub mode: ::core::option::Option<i32>,
1623    #[prost(enumeration="surface_flinger_layers_config::TraceFlag", repeated, packed="false", tag="2")]
1624    pub trace_flags: ::prost::alloc::vec::Vec<i32>,
1625}
1626/// Nested message and enum types in `SurfaceFlingerLayersConfig`.
1627pub mod surface_flinger_layers_config {
1628    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1629    #[repr(i32)]
1630    pub enum Mode {
1631        Unspecified = 0,
1632        /// Trace layers snapshots. A snapshot is taken every time a layers change
1633        /// occurs.
1634        Active = 1,
1635        /// Generate layers snapshots from the transactions kept in the
1636        /// SurfaceFlinger's internal ring buffer.
1637        /// The layers snapshots generation occurs when this data source is flushed.
1638        Generated = 2,
1639        /// Trace a single layers snapshot.
1640        Dump = 3,
1641        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1642        /// Same as MODE_GENERATED, but triggers the layers snapshots generation only
1643        /// when a bugreport is taken.
1644        GeneratedBugreportOnly = 4,
1645    }
1646    impl Mode {
1647        /// String value of the enum field names used in the ProtoBuf definition.
1648        ///
1649        /// The values are not transformed in any way and thus are considered stable
1650        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1651        pub fn as_str_name(&self) -> &'static str {
1652            match self {
1653                Mode::Unspecified => "MODE_UNSPECIFIED",
1654                Mode::Active => "MODE_ACTIVE",
1655                Mode::Generated => "MODE_GENERATED",
1656                Mode::Dump => "MODE_DUMP",
1657                Mode::GeneratedBugreportOnly => "MODE_GENERATED_BUGREPORT_ONLY",
1658            }
1659        }
1660    }
1661    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1662    #[repr(i32)]
1663    pub enum TraceFlag {
1664        Unspecified = 0,
1665        Input = 2,
1666        Composition = 4,
1667        Extra = 8,
1668        Hwc = 16,
1669        Buffers = 32,
1670        VirtualDisplays = 64,
1671        /// INPUT | COMPOSITION | EXTRA
1672        All = 14,
1673    }
1674    impl TraceFlag {
1675        /// String value of the enum field names used in the ProtoBuf definition.
1676        ///
1677        /// The values are not transformed in any way and thus are considered stable
1678        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1679        pub fn as_str_name(&self) -> &'static str {
1680            match self {
1681                TraceFlag::Unspecified => "TRACE_FLAG_UNSPECIFIED",
1682                TraceFlag::Input => "TRACE_FLAG_INPUT",
1683                TraceFlag::Composition => "TRACE_FLAG_COMPOSITION",
1684                TraceFlag::Extra => "TRACE_FLAG_EXTRA",
1685                TraceFlag::Hwc => "TRACE_FLAG_HWC",
1686                TraceFlag::Buffers => "TRACE_FLAG_BUFFERS",
1687                TraceFlag::VirtualDisplays => "TRACE_FLAG_VIRTUAL_DISPLAYS",
1688                TraceFlag::All => "TRACE_FLAG_ALL",
1689            }
1690        }
1691    }
1692}
1693/// Custom configuration for the "android.surfaceflinger.transactions" data
1694/// source.
1695#[derive(Clone, PartialEq, ::prost::Message)]
1696pub struct SurfaceFlingerTransactionsConfig {
1697    #[prost(enumeration="surface_flinger_transactions_config::Mode", optional, tag="1")]
1698    pub mode: ::core::option::Option<i32>,
1699}
1700/// Nested message and enum types in `SurfaceFlingerTransactionsConfig`.
1701pub mod surface_flinger_transactions_config {
1702    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1703    #[repr(i32)]
1704    pub enum Mode {
1705        Unspecified = 0,
1706        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1707        /// SurfaceFlinger writes its internal ring buffer of transactions every time
1708        /// the data source is flushed. The ring buffer contains the SurfaceFlinger's
1709        /// initial state and the latest transactions.
1710        Continuous = 1,
1711        /// SurfaceFlinger writes the initial state and then each incoming
1712        /// transaction until the data source is stopped.
1713        Active = 2,
1714    }
1715    impl Mode {
1716        /// String value of the enum field names used in the ProtoBuf definition.
1717        ///
1718        /// The values are not transformed in any way and thus are considered stable
1719        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1720        pub fn as_str_name(&self) -> &'static str {
1721            match self {
1722                Mode::Unspecified => "MODE_UNSPECIFIED",
1723                Mode::Continuous => "MODE_CONTINUOUS",
1724                Mode::Active => "MODE_ACTIVE",
1725            }
1726        }
1727    }
1728}
1729/// Data source that lists details (such as version code) about users on an
1730/// Android device.
1731#[derive(Clone, PartialEq, ::prost::Message)]
1732pub struct AndroidUserListConfig {
1733    /// An allowlist of user type strings, used to control the granularity of
1734    /// user type information emitted in the trace. Exact, case-sensitive string
1735    /// matching is used.
1736    ///
1737    /// Any user type read from the device that is NOT present in the
1738    /// effective allowlist will have its type reported as
1739    /// "android.os.usertype.FILTERED".
1740    ///
1741    /// The effective allowlist is determined as follows:
1742    ///
1743    /// 1. If this 'user_type_filter' field is provided and non-empty:
1744    ///     This list itself is the effective allowlist.
1745    ///     Example TraceConfig:
1746    ///     --------------------
1747    ///     data_sources {
1748    ///         config {
1749    ///             name: "android.user_list"
1750    ///             target_buffer: 0
1751    ///             user_list_config {
1752    ///               # Only report these specific types, others become FILTERED.
1753    ///               user_type_filter: "android.os.usertype.full.SYSTEM"
1754    ///               user_type_filter: "android.os.usertype.system.HEADLESS"
1755    ///             }
1756    ///         }
1757    ///     }
1758    ///
1759    ///
1760    /// Note: This field does not support regular expressions.
1761    #[prost(string, repeated, tag="1")]
1762    pub user_type_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1763}
1764/// Custom configuration for the "android.windowmanager" data source.
1765#[derive(Clone, PartialEq, ::prost::Message)]
1766pub struct WindowManagerConfig {
1767    #[prost(enumeration="window_manager_config::LogFrequency", optional, tag="1")]
1768    pub log_frequency: ::core::option::Option<i32>,
1769    #[prost(enumeration="window_manager_config::LogLevel", optional, tag="2")]
1770    pub log_level: ::core::option::Option<i32>,
1771}
1772/// Nested message and enum types in `WindowManagerConfig`.
1773pub mod window_manager_config {
1774    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1775    #[repr(i32)]
1776    pub enum LogFrequency {
1777        Unspecified = 0,
1778        /// Trace state snapshots when a frame is committed.
1779        Frame = 1,
1780        /// Trace state snapshots every time a transaction is committed.
1781        Transaction = 2,
1782        /// Trace single state snapshots when the data source is started.
1783        SingleDump = 3,
1784    }
1785    impl LogFrequency {
1786        /// String value of the enum field names used in the ProtoBuf definition.
1787        ///
1788        /// The values are not transformed in any way and thus are considered stable
1789        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1790        pub fn as_str_name(&self) -> &'static str {
1791            match self {
1792                LogFrequency::Unspecified => "LOG_FREQUENCY_UNSPECIFIED",
1793                LogFrequency::Frame => "LOG_FREQUENCY_FRAME",
1794                LogFrequency::Transaction => "LOG_FREQUENCY_TRANSACTION",
1795                LogFrequency::SingleDump => "LOG_FREQUENCY_SINGLE_DUMP",
1796            }
1797        }
1798    }
1799    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1800    #[repr(i32)]
1801    pub enum LogLevel {
1802        Unspecified = 0,
1803        /// Logs all elements with maximum amount of information.
1804        Verbose = 1,
1805        /// Logs all elements but doesn't write all configuration data.
1806        Debug = 2,
1807        /// Logs only visible elements, with the minimum amount of performance
1808        /// overhead
1809        Critical = 3,
1810    }
1811    impl LogLevel {
1812        /// String value of the enum field names used in the ProtoBuf definition.
1813        ///
1814        /// The values are not transformed in any way and thus are considered stable
1815        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1816        pub fn as_str_name(&self) -> &'static str {
1817            match self {
1818                LogLevel::Unspecified => "LOG_LEVEL_UNSPECIFIED",
1819                LogLevel::Verbose => "LOG_LEVEL_VERBOSE",
1820                LogLevel::Debug => "LOG_LEVEL_DEBUG",
1821                LogLevel::Critical => "LOG_LEVEL_CRITICAL",
1822            }
1823        }
1824    }
1825}
1826#[derive(Clone, PartialEq, ::prost::Message)]
1827pub struct ChromeConfig {
1828    #[prost(string, optional, tag="1")]
1829    pub trace_config: ::core::option::Option<::prost::alloc::string::String>,
1830    /// When enabled, the data source should only fill in fields in the output that
1831    /// are not potentially privacy sensitive.
1832    #[prost(bool, optional, tag="2")]
1833    pub privacy_filtering_enabled: ::core::option::Option<bool>,
1834    /// Instead of emitting binary protobuf, convert the trace data to the legacy
1835    /// JSON format. Note that the trace data will still be returned as a series of
1836    /// TracePackets, but the embedded data will be JSON instead of serialized
1837    /// protobuf.
1838    #[prost(bool, optional, tag="3")]
1839    pub convert_to_legacy_json: ::core::option::Option<bool>,
1840    #[prost(enumeration="chrome_config::ClientPriority", optional, tag="4")]
1841    pub client_priority: ::core::option::Option<i32>,
1842    /// Applicable only when using legacy JSON format.
1843    /// If |json_agent_label_filter| is not empty, only data pertaining to
1844    /// the specified tracing agent label (e.g. "traceEvents") will be returned.
1845    #[prost(string, optional, tag="5")]
1846    pub json_agent_label_filter: ::core::option::Option<::prost::alloc::string::String>,
1847    ///   When enabled, event names should not contain package names.
1848    #[prost(bool, optional, tag="6")]
1849    pub event_package_name_filter_enabled: ::core::option::Option<bool>,
1850}
1851/// Nested message and enum types in `ChromeConfig`.
1852pub mod chrome_config {
1853    /// Priority of the tracing session client. A higher priority session may
1854    /// preempt a lower priority one in configurations where concurrent sessions
1855    /// aren't supported.
1856    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1857    #[repr(i32)]
1858    pub enum ClientPriority {
1859        Unknown = 0,
1860        Background = 1,
1861        UserInitiated = 2,
1862    }
1863    impl ClientPriority {
1864        /// String value of the enum field names used in the ProtoBuf definition.
1865        ///
1866        /// The values are not transformed in any way and thus are considered stable
1867        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1868        pub fn as_str_name(&self) -> &'static str {
1869            match self {
1870                ClientPriority::Unknown => "UNKNOWN",
1871                ClientPriority::Background => "BACKGROUND",
1872                ClientPriority::UserInitiated => "USER_INITIATED",
1873            }
1874        }
1875    }
1876}
1877#[derive(Clone, PartialEq, ::prost::Message)]
1878pub struct V8Config {
1879    /// Whether to log the actual content of scripts (e.g. content of the JS file
1880    /// that was compiled to generate code).
1881    /// ATTENTION: This could considerably increase the size of the resuling trace
1882    ///             file.
1883    #[prost(bool, optional, tag="1")]
1884    pub log_script_sources: ::core::option::Option<bool>,
1885    /// Whether to log the generated code for jitted functions (machine code or
1886    /// bytecode).
1887    /// ATTENTION: This could considerably increase the size of the resuling trace
1888    ///             file.
1889    #[prost(bool, optional, tag="2")]
1890    pub log_instructions: ::core::option::Option<bool>,
1891}
1892/// Proto definition based on the struct _EVENT_TRACE_PROPERTIES definition
1893/// See: <https://learn.microsoft.com/en-us/windows/win32/api/evntrace/>
1894/// ns-evntrace-event_trace_properties
1895#[derive(Clone, PartialEq, ::prost::Message)]
1896pub struct EtwConfig {
1897    /// The kernel_flags determines the flags that will be used by the etw tracing
1898    /// session. These kernel flags have been built to expose the useful events
1899    /// captured from the kernel mode only.
1900    #[prost(enumeration="etw_config::KernelFlag", repeated, packed="false", tag="1")]
1901    pub kernel_flags: ::prost::alloc::vec::Vec<i32>,
1902    // See the list of keywords for for individual providers.
1903    // <https://learn.microsoft.com/en-us/windows/win32/etw/system-providers>
1904
1905    /// Provides events relating to the scheduler.
1906    #[prost(string, repeated, tag="2")]
1907    pub scheduler_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1908    /// Provides events relating to the memory manager.
1909    #[prost(string, repeated, tag="3")]
1910    pub memory_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1911    /// Provides events relating to file I/O.
1912    #[prost(string, repeated, tag="4")]
1913    pub file_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1914}
1915/// Nested message and enum types in `EtwConfig`.
1916pub mod etw_config {
1917    /// The KernelFlag represent list of kernel flags that we are intrested in.
1918    /// To get a more extensive list run 'xperf -providers k'.
1919    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1920    #[repr(i32)]
1921    pub enum KernelFlag {
1922        Cswitch = 0,
1923        Dispatcher = 1,
1924    }
1925    impl KernelFlag {
1926        /// String value of the enum field names used in the ProtoBuf definition.
1927        ///
1928        /// The values are not transformed in any way and thus are considered stable
1929        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1930        pub fn as_str_name(&self) -> &'static str {
1931            match self {
1932                KernelFlag::Cswitch => "CSWITCH",
1933                KernelFlag::Dispatcher => "DISPATCHER",
1934            }
1935        }
1936    }
1937}
1938#[derive(Clone, PartialEq, ::prost::Message)]
1939pub struct ChromiumSystemMetricsConfig {
1940    /// Samples counters every X ms.
1941    #[prost(uint32, optional, tag="1")]
1942    pub sampling_interval_ms: ::core::option::Option<u32>,
1943}
1944/// Next id: 38
1945#[derive(Clone, PartialEq, ::prost::Message)]
1946pub struct FtraceConfig {
1947    /// Ftrace events to record, example: "sched/sched_switch".
1948    #[prost(string, repeated, tag="1")]
1949    pub ftrace_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1950    /// Android-specific event categories:
1951    #[prost(string, repeated, tag="2")]
1952    pub atrace_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1953    #[prost(string, repeated, tag="3")]
1954    pub atrace_apps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1955    /// Some processes can emit data through atrace or through the perfetto SDK via
1956    /// the "track_event" data source. For these categories, the SDK will be
1957    /// preferred, if possible, for this config.
1958    #[prost(string, repeated, tag="28")]
1959    pub atrace_categories_prefer_sdk: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1960    /// If true, do *not* add in extra ftrace events when |atrace_categories| are
1961    /// set. This skips the legacy "atrace" behaviour of adding hardcoded ftrace
1962    /// events for convenience (and the vendor-specific events on top).
1963    /// Introduced in: perfetto v52.
1964    #[prost(bool, optional, tag="34")]
1965    pub atrace_userspace_only: ::core::option::Option<bool>,
1966    /// Size of each per-cpu kernel ftrace ring buffer.
1967    /// Not guaranteed if there are multiple concurrent tracing sessions, as the
1968    /// buffers cannot be resized without pausing recording in the kernel.
1969    #[prost(uint32, optional, tag="10")]
1970    pub buffer_size_kb: ::core::option::Option<u32>,
1971    /// If true, |buffer_size_kb| is interpreted as a lower bound, allowing the
1972    /// implementation to choose a bigger buffer size.
1973    ///
1974    /// Most configs for perfetto v43+ should simply leave both fields unset.
1975    ///
1976    /// If you need a config compatible with a range of perfetto builds and you
1977    /// used to set a non-default buffer_size_kb, consider setting both fields.
1978    /// Example:
1979    ///    buffer_size_kb: 4096
1980    ///    buffer_size_lower_bound: true
1981    /// On older builds, the per-cpu buffers will be exactly 4 MB.
1982    /// On v43+, buffers will be at least 4 MB.
1983    /// In both cases, neither is guaranteed if there are other concurrent
1984    /// perfetto ftrace sessions, as the buffers cannot be resized without pausing
1985    /// the recording in the kernel.
1986    /// Introduced in: perfetto v43.
1987    #[prost(bool, optional, tag="27")]
1988    pub buffer_size_lower_bound: ::core::option::Option<bool>,
1989    /// If set, specifies how often the tracing daemon reads from the kernel ring
1990    /// buffer. Not guaranteed if there are multiple concurrent tracing sessions.
1991    /// Leave unset unless you're fine-tuning a local config.
1992    #[prost(uint32, optional, tag="11")]
1993    pub drain_period_ms: ::core::option::Option<u32>,
1994    /// If set, the tracing daemon will read kernel ring buffers as soon as
1995    /// they're filled past this percentage of occupancy. In other words, a value
1996    /// of 50 means that a read pass is triggered as soon as any per-cpu buffer is
1997    /// half-full. Not guaranteed if there are multiple concurrent tracing
1998    /// sessions.
1999    /// Currently does nothing on Linux kernels below v6.9.
2000    /// Introduced in: perfetto v48.
2001    #[prost(uint32, optional, tag="29")]
2002    pub drain_buffer_percent: ::core::option::Option<u32>,
2003    #[prost(message, optional, tag="12")]
2004    pub compact_sched: ::core::option::Option<ftrace_config::CompactSchedConfig>,
2005    #[prost(message, optional, tag="22")]
2006    pub print_filter: ::core::option::Option<ftrace_config::PrintFilter>,
2007    /// Enables symbol name resolution against /proc/kallsyms.
2008    /// It requires that either traced_probes is running as root or that
2009    /// kptr_restrict has been manually lowered.
2010    /// It does not disclose KASLR, symbol addresses are mangled.
2011    #[prost(bool, optional, tag="13")]
2012    pub symbolize_ksyms: ::core::option::Option<bool>,
2013    #[prost(enumeration="ftrace_config::KsymsMemPolicy", optional, tag="17")]
2014    pub ksyms_mem_policy: ::core::option::Option<i32>,
2015    /// When this boolean is true AND the ftrace_events contains "kmem/rss_stat",
2016    /// this option causes traced_probes to enable the "kmem/rss_stat_throttled"
2017    /// event instead if present, and fall back to "kmem/rss_stat" if not present.
2018    /// The historical context for this is the following:
2019    /// - Up to Android S (12), the rss_stat was internally throttled in its
2020    ///    kernel implementation.
2021    /// - A change introduced in the kernels after S has introduced a new
2022    ///    "rss_stat_throttled" making the original "rss_stat" event unthrottled
2023    ///    (hence very spammy).
2024    /// - Not all Android T/13 devices will receive a new kernel though, hence we
2025    ///    need to deal with both cases.
2026    /// For more context: go/rss-stat-throttled.
2027    #[prost(bool, optional, tag="15")]
2028    pub throttle_rss_stat: ::core::option::Option<bool>,
2029    /// If true, use self-describing proto messages when writing events not known
2030    /// at compile time (aka generic events). Each event bundle will have a set of
2031    /// serialised proto descriptors for events within that bundle.
2032    ///
2033    /// Default if unset:
2034    /// * v53+: true
2035    /// * before v53: false
2036    ///
2037    /// Added in: perfetto v50.
2038    #[prost(bool, optional, tag="32")]
2039    pub denser_generic_event_encoding: ::core::option::Option<bool>,
2040    /// If true, avoid enabling events that aren't statically known by
2041    /// traced_probes. Otherwise, the default is to emit such events as
2042    /// GenericFtraceEvent protos.
2043    /// Prefer to keep this flag at its default. This was added for Android
2044    /// tracing, where atrace categories and/or atrace HAL requested events can
2045    /// expand to events that aren't of interest to the tracing user.
2046    /// Introduced in: Android T.
2047    #[prost(bool, optional, tag="16")]
2048    pub disable_generic_events: ::core::option::Option<bool>,
2049    /// The subset of syscalls to record. To record all syscalls, leave this unset
2050    /// and add "ftrace_events: raw_syscalls/sys_{enter,exit}" to the config.
2051    /// * before perfetto v43, requires the config to also enable
2052    ///    raw_syscalls/sys_{enter,exit}.
2053    /// * perfetto v43+ does the right thing if you set only this field.
2054    /// Example: ["sys_read", "sys_open"].
2055    /// Introduced in: Android U.
2056    #[prost(string, repeated, tag="18")]
2057    pub syscall_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2058    /// If true, enable the "function_graph" kernel tracer that emits events
2059    /// whenever a kernel function is entered and exited
2060    /// (funcgraph_entry/funcgraph_exit).
2061    /// Notes on use:
2062    /// * Requires |symbolize_ksyms| for function name resolution.
2063    /// * Use |function_filters| or |function_graph_roots| to constrain the traced
2064    ///    set of functions, otherwise the event bandwidth will be too high for
2065    ///    practical use.
2066    /// * The data source might be rejected if there is already a concurrent
2067    ///    ftrace data source that does not use function graph itself, as we do not
2068    ///    support switching kernel tracers mid-trace.
2069    /// * Requires a kernel compiled with CONFIG_FUNCTION_GRAPH_TRACER. This is
2070    ///    enabled if "cat /sys/kernel/tracing/available_tracers" includes
2071    ///    "function_graph".
2072    /// Android:
2073    /// * Available only on debuggable builds.
2074    /// * Introduced in: Android U.
2075    #[prost(bool, optional, tag="19")]
2076    pub enable_function_graph: ::core::option::Option<bool>,
2077    /// Constrains the set of functions traced when |enable_function_graph| is
2078    /// true. Supports globs, e.g. "sched*". You can specify multiple filters,
2079    /// in which case all matching functions will be traced. See kernel
2080    /// documentation on ftrace "set_ftrace_filter" file for more details.
2081    /// Android:
2082    /// * Available only on debuggable builds.
2083    /// * Introduced in: Android U.
2084    #[prost(string, repeated, tag="20")]
2085    pub function_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2086    /// If |enable_function_graph| is true, trace this set of functions *and* all
2087    /// of its callees. Supports globs. Can be set together with
2088    /// |function_filters|, in which case only callees matching the filter will be
2089    /// traced. If setting both, you most likely want all roots to also be
2090    /// included in |function_filters|.
2091    /// Android:
2092    /// * Available only on debuggable builds.
2093    /// * Introduced in: Android U.
2094    #[prost(string, repeated, tag="21")]
2095    pub function_graph_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2096    /// If |enable_function_graph| is true, only trace the specified
2097    /// number of calls down the stack. Sets the max_graph_depth value
2098    /// in sys/kernel/tracing/
2099    ///
2100    /// Only respected for the first tracing session that enables
2101    /// function_graph tracing.
2102    ///
2103    /// Introduced in: perfetto v51.
2104    /// Supported on: Android 25Q3+.
2105    #[prost(uint32, optional, tag="33")]
2106    pub function_graph_max_depth: ::core::option::Option<u32>,
2107    /// Ftrace events to record, specific for kprobes and kretprobes
2108    #[prost(message, repeated, tag="30")]
2109    pub kprobe_events: ::prost::alloc::vec::Vec<ftrace_config::KprobeEvent>,
2110    /// If true, does not clear kernel ftrace buffers when starting the trace.
2111    /// This makes sense only if this is the first ftrace data source instance
2112    /// created after the daemon has been started. Can be useful for gathering boot
2113    /// traces, if ftrace has been separately configured (e.g. via kernel
2114    /// commandline).
2115    /// NB: when configuring the pre-perfetto ftrace, prefer to set
2116    /// "/sys/kernel/tracing/trace_clock" to "boot" if your trace will contain
2117    /// anything besides ftrace. Otherwise timestamps might be skewed.
2118    #[prost(bool, optional, tag="23")]
2119    pub preserve_ftrace_buffer: ::core::option::Option<bool>,
2120    /// If true, overrides the default timestamp clock and uses a raw hardware
2121    /// based monotonic clock for getting timestamps.
2122    /// * Introduced in: Android U.
2123    #[prost(bool, optional, tag="24")]
2124    pub use_monotonic_raw_clock: ::core::option::Option<bool>,
2125    /// If |instance_name| is not empty, then attempt to use that tracefs instance
2126    /// for event recording. Normally, this means
2127    /// `/sys/kernel/tracing/instances/$instance_name`.
2128    ///
2129    /// Names "hyp" and "hypervisor" are reserved.
2130    ///
2131    /// The instance must already exist, the tracing daemon *will not* create it
2132    /// for you as it typically doesn't have such permissions.
2133    /// Only a subset of features is guaranteed to work with non-default instances,
2134    /// at the time of writing:
2135    ///   * ftrace_events
2136    ///   * buffer_size_kb
2137    #[prost(string, optional, tag="25")]
2138    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2139    /// For perfetto developer use. If true and on a debuggable android build,
2140    /// serialise raw tracing pages that the implementation cannot parse.
2141    #[prost(bool, optional, tag="31")]
2142    pub debug_ftrace_abi: ::core::option::Option<bool>,
2143    // =================================================
2144    // Exclusive single-tenant features: HERE BE DRAGONS
2145    // =================================================
2146    // The features below are considered "advanced" and require an exclusive
2147    // tracing session (as of Android 25Q3+ and Perfetto v52).
2148    //
2149    // These features directly manipulate the kernel's global ftrace state and
2150    // are incompatible with concurrent ftrace sessions. They are only enabled
2151    // if included in the *first* ftrace data source configured. Subsequent
2152    // ftrace data sources (even those not using advanced features) will be
2153    // rejected while a session with these features is active.
2154    //
2155    // To run the session in exclusive mode, see:
2156    // <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2157
2158    /// Filter ftrace events by Thread ID (TID).
2159    /// This writes the TIDs to `/sys/kernel/tracing/set_event_pid`.
2160    ///
2161    /// Note: this is an exclusive feature, see:
2162    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2163    ///
2164    /// Introduced in: perfetto v52.
2165    /// Supported on: Android 25Q3+.
2166    #[prost(uint32, repeated, packed="false", tag="35")]
2167    pub tids_to_trace: ::prost::alloc::vec::Vec<u32>,
2168    #[prost(message, repeated, tag="36")]
2169    pub tracefs_options: ::prost::alloc::vec::Vec<ftrace_config::TracefsOption>,
2170    /// This mask restricts tracing to a specific set of CPUs using a
2171    /// comma-separated hex mask. Each hex number (up to 8 digits) represents a
2172    /// 32-bit chunk of the CPU mask.
2173    ///
2174    /// The chunks are ordered from high CPUs to low CPUs (left to right):
2175    ///    - Rightmost chunk: CPUs 0-31
2176    ///    - 2nd chunk from right: CPUs 32-63
2177    ///    - ...and so on.
2178    ///
2179    /// Example (assuming NR_CPUS=128, requiring 4 chunks):
2180    /// The full mask would be in the format: "chunk3,chunk2,chunk1,chunk0"
2181    /// where chunk3 maps to CPUs 96-127, chunk2 to 64-95, chunk1 to 32-63, and
2182    /// chunk0 to 0-31.
2183    ///    - "ffffffff,0,0,0": Enables CPUs 96-127 only.
2184    ///    - "f,ff": Enables CPUs 0-7 (from "ff") and CPUs 32-35 (from "f").
2185    ///
2186    /// Note: This is an exclusive feature, see:
2187    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2188    ///
2189    /// Introduced in: perfetto v52.
2190    /// Supported on: Android 25Q3+.
2191    #[prost(string, optional, tag="37")]
2192    pub tracing_cpumask: ::core::option::Option<::prost::alloc::string::String>,
2193    /// No-op in perfetto v28+. Name preserved because of existing references in
2194    /// textproto configs.
2195    #[deprecated]
2196    #[prost(bool, optional, tag="14")]
2197    pub initialize_ksyms_synchronously_for_testing: ::core::option::Option<bool>,
2198}
2199/// Nested message and enum types in `FtraceConfig`.
2200pub mod ftrace_config {
2201    /// Configuration for compact encoding of scheduler events. When enabled (and
2202    /// recording the relevant ftrace events), specific high-volume events are
2203    /// encoded in a denser format than normal.
2204    #[derive(Clone, PartialEq, ::prost::Message)]
2205    pub struct CompactSchedConfig {
2206        /// If true, and sched_switch or sched_waking ftrace events are enabled,
2207        /// record those events in the compact format.
2208        ///
2209        /// If the field is unset, the default is:
2210        /// * perfetto v42.0+: enabled
2211        /// * before: disabled
2212        #[prost(bool, optional, tag="1")]
2213        pub enabled: ::core::option::Option<bool>,
2214    }
2215    /// Optional filter for "ftrace/print" events.
2216    ///
2217    /// The filter consists of multiple rules. As soon as a rule matches (the rules
2218    /// are processed in order), its `allow` field will be used as the outcome: if
2219    /// `allow` is true, the event will be included in the trace, otherwise it will
2220    /// be discarded. If an event does not match any rule, it will be allowed by
2221    /// default (a rule with an empty prefix and allow=false, disallows everything
2222    /// by default).
2223    #[derive(Clone, PartialEq, ::prost::Message)]
2224    pub struct PrintFilter {
2225        #[prost(message, repeated, tag="1")]
2226        pub rules: ::prost::alloc::vec::Vec<print_filter::Rule>,
2227    }
2228    /// Nested message and enum types in `PrintFilter`.
2229    pub mod print_filter {
2230        #[derive(Clone, PartialEq, ::prost::Message)]
2231        pub struct Rule {
2232            #[prost(bool, optional, tag="2")]
2233            pub allow: ::core::option::Option<bool>,
2234            #[prost(oneof="rule::Match", tags="1, 3")]
2235            pub r#match: ::core::option::Option<rule::Match>,
2236        }
2237        /// Nested message and enum types in `Rule`.
2238        pub mod rule {
2239            /// Matches an atrace message of the form:
2240            /// <type>|pid|<prefix>...
2241            #[derive(Clone, PartialEq, ::prost::Message)]
2242            pub struct AtraceMessage {
2243                #[prost(string, optional, tag="1")]
2244                pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2245                #[prost(string, optional, tag="2")]
2246                pub prefix: ::core::option::Option<::prost::alloc::string::String>,
2247            }
2248            #[derive(Clone, PartialEq, ::prost::Oneof)]
2249            pub enum Match {
2250                /// This rule matches if `prefix` matches exactly with the beginning of
2251                /// the "ftrace/print" "buf" field.
2252                #[prost(string, tag="1")]
2253                Prefix(::prost::alloc::string::String),
2254                /// This rule matches if the "buf" field contains an atrace-style print
2255                /// message as specified in `atrace_msg`.
2256                #[prost(message, tag="3")]
2257                AtraceMsg(AtraceMessage),
2258            }
2259        }
2260    }
2261    #[derive(Clone, PartialEq, ::prost::Message)]
2262    pub struct KprobeEvent {
2263        /// Kernel function name to attach to, for example "fuse_file_write_iter"
2264        #[prost(string, optional, tag="1")]
2265        pub probe: ::core::option::Option<::prost::alloc::string::String>,
2266        #[prost(enumeration="kprobe_event::KprobeType", optional, tag="2")]
2267        pub r#type: ::core::option::Option<i32>,
2268    }
2269    /// Nested message and enum types in `KprobeEvent`.
2270    pub mod kprobe_event {
2271        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2272        #[repr(i32)]
2273        pub enum KprobeType {
2274            Unknown = 0,
2275            Kprobe = 1,
2276            Kretprobe = 2,
2277            Both = 3,
2278        }
2279        impl KprobeType {
2280            /// String value of the enum field names used in the ProtoBuf definition.
2281            ///
2282            /// The values are not transformed in any way and thus are considered stable
2283            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2284            pub fn as_str_name(&self) -> &'static str {
2285                match self {
2286                    KprobeType::Unknown => "KPROBE_TYPE_UNKNOWN",
2287                    KprobeType::Kprobe => "KPROBE_TYPE_KPROBE",
2288                    KprobeType::Kretprobe => "KPROBE_TYPE_KRETPROBE",
2289                    KprobeType::Both => "KPROBE_TYPE_BOTH",
2290                }
2291            }
2292        }
2293    }
2294    /// Tracefs options to set directly in the tracefs instance. This is a very
2295    /// niche feature since almost all of the options deal with formatting textual
2296    /// output (the /trace file), which perfetto doesn't use.
2297    ///
2298    /// The options with a known use-case:
2299    /// * event-fork: when using `tids_to_trace` above, the kernel will
2300    ///    automatically add newly spawned descendant threads to the set of TIDs.
2301    ///
2302    /// Full list of options is available at
2303    /// <https://docs.kernel.org/trace/ftrace.html#trace-options.>
2304    ///
2305    /// Note: this is an exclusive feature, see:
2306    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
2307    ///
2308    /// Introduced in: perfetto v52.
2309    /// Supported on: Android 25Q3+.
2310    #[derive(Clone, PartialEq, ::prost::Message)]
2311    pub struct TracefsOption {
2312        /// The name of the tracefs option as found in tracefs/trace_options (without
2313        /// the "no" prefix).
2314        #[prost(string, optional, tag="1")]
2315        pub name: ::core::option::Option<::prost::alloc::string::String>,
2316        #[prost(enumeration="tracefs_option::State", optional, tag="2")]
2317        pub state: ::core::option::Option<i32>,
2318    }
2319    /// Nested message and enum types in `TracefsOption`.
2320    pub mod tracefs_option {
2321        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2322        #[repr(i32)]
2323        pub enum State {
2324            Unknown = 0,
2325            Enabled = 1,
2326            Disabled = 2,
2327        }
2328        impl State {
2329            /// String value of the enum field names used in the ProtoBuf definition.
2330            ///
2331            /// The values are not transformed in any way and thus are considered stable
2332            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2333            pub fn as_str_name(&self) -> &'static str {
2334                match self {
2335                    State::Unknown => "STATE_UNKNOWN",
2336                    State::Enabled => "STATE_ENABLED",
2337                    State::Disabled => "STATE_DISABLED",
2338                }
2339            }
2340        }
2341    }
2342    /// When symbolize_ksyms=true, determines whether the traced_probes daemon
2343    /// should keep the symbol map in memory (and reuse it for future tracing
2344    /// sessions) or clear it (saving memory) and re-create it on each tracing
2345    /// session (wasting cpu and wall time).
2346    /// The tradeoff is roughly:
2347    ///   KSYMS_RETAIN: pay a fixed ~1.2 MB cost after the first trace.
2348    ///   KSYMS_CLEANUP_ON_STOP: pay a ~300-500ms cost when starting each trace.
2349    /// Default behavior: KSYMS_CLEANUP_ON_STOP.
2350    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2351    #[repr(i32)]
2352    pub enum KsymsMemPolicy {
2353        KsymsUnspecified = 0,
2354        KsymsCleanupOnStop = 1,
2355        KsymsRetain = 2,
2356    }
2357    impl KsymsMemPolicy {
2358        /// String value of the enum field names used in the ProtoBuf definition.
2359        ///
2360        /// The values are not transformed in any way and thus are considered stable
2361        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2362        pub fn as_str_name(&self) -> &'static str {
2363            match self {
2364                KsymsMemPolicy::KsymsUnspecified => "KSYMS_UNSPECIFIED",
2365                KsymsMemPolicy::KsymsCleanupOnStop => "KSYMS_CLEANUP_ON_STOP",
2366                KsymsMemPolicy::KsymsRetain => "KSYMS_RETAIN",
2367            }
2368        }
2369    }
2370}
2371#[derive(Clone, PartialEq, ::prost::Message)]
2372pub struct FrozenFtraceConfig {
2373    /// The instance name which stores the previous boot ftrace data. Required.
2374    #[prost(string, optional, tag="1")]
2375    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2376}
2377#[derive(Clone, PartialEq, ::prost::Message)]
2378pub struct GpuCounterConfig {
2379    /// Desired sampling interval for counters.
2380    #[prost(uint64, optional, tag="1")]
2381    pub counter_period_ns: ::core::option::Option<u64>,
2382    /// List of counters to be sampled. Counter IDs correspond to the ones
2383    /// described in GpuCounterSpec in the data source descriptor.
2384    #[prost(uint32, repeated, packed="false", tag="2")]
2385    pub counter_ids: ::prost::alloc::vec::Vec<u32>,
2386    /// Sample counters by instrumenting command buffers.
2387    #[prost(bool, optional, tag="3")]
2388    pub instrumented_sampling: ::core::option::Option<bool>,
2389    /// Fix gpu clock rate during trace session.
2390    #[prost(bool, optional, tag="4")]
2391    pub fix_gpu_clock: ::core::option::Option<bool>,
2392}
2393#[derive(Clone, PartialEq, ::prost::Message)]
2394pub struct VulkanMemoryConfig {
2395    /// Tracking driver memory usage events
2396    #[prost(bool, optional, tag="1")]
2397    pub track_driver_memory_usage: ::core::option::Option<bool>,
2398    /// Tracking device memory usage events
2399    #[prost(bool, optional, tag="2")]
2400    pub track_device_memory_usage: ::core::option::Option<bool>,
2401}
2402#[derive(Clone, PartialEq, ::prost::Message)]
2403pub struct GpuRenderStagesConfig {
2404    /// Enable to separate the color and depth/stencil load and store stages
2405    /// into a separate stages. If disabled, the depth/stencil load and store
2406    /// stages will be combined.  Disabled by default. This option has no effect if
2407    /// Low Overhead mode is enabled.
2408    #[prost(bool, optional, tag="1")]
2409    pub full_loadstore: ::core::option::Option<bool>,
2410    /// Use the low overhead mode for traces. In this mode render stages are
2411    /// combined into a single workload stage. This provides less granular data but
2412    /// induces minimal GPU overhead. Disabled by default.
2413    #[prost(bool, optional, tag="2")]
2414    pub low_overhead: ::core::option::Option<bool>,
2415    /// Trace metrics to capture for each render stage
2416    #[prost(string, repeated, tag="3")]
2417    pub trace_metrics: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2418}
2419/// WARNING: unmaintained and deprecated. Likely won't work at all on modern
2420/// systems.
2421#[derive(Clone, PartialEq, ::prost::Message)]
2422pub struct InodeFileConfig {
2423    /// How long to pause between batches.
2424    #[prost(uint32, optional, tag="1")]
2425    pub scan_interval_ms: ::core::option::Option<u32>,
2426    /// How long to wait before the first scan in order to accumulate inodes.
2427    #[prost(uint32, optional, tag="2")]
2428    pub scan_delay_ms: ::core::option::Option<u32>,
2429    /// How many inodes to scan in one batch.
2430    #[prost(uint32, optional, tag="3")]
2431    pub scan_batch_size: ::core::option::Option<u32>,
2432    /// Do not scan for inodes not found in the static map.
2433    #[prost(bool, optional, tag="4")]
2434    pub do_not_scan: ::core::option::Option<bool>,
2435    /// If non-empty, only scan inodes corresponding to block devices named in
2436    /// this list.
2437    #[prost(string, repeated, tag="5")]
2438    pub scan_mount_points: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2439    /// When encountering an inode belonging to a block device corresponding
2440    /// to one of the mount points in this map, scan its scan_roots instead.
2441    #[prost(message, repeated, tag="6")]
2442    pub mount_point_mapping: ::prost::alloc::vec::Vec<inode_file_config::MountPointMappingEntry>,
2443}
2444/// Nested message and enum types in `InodeFileConfig`.
2445pub mod inode_file_config {
2446    #[derive(Clone, PartialEq, ::prost::Message)]
2447    pub struct MountPointMappingEntry {
2448        #[prost(string, optional, tag="1")]
2449        pub mountpoint: ::core::option::Option<::prost::alloc::string::String>,
2450        #[prost(string, repeated, tag="2")]
2451        pub scan_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2452    }
2453}
2454#[derive(Clone, PartialEq, ::prost::Message)]
2455pub struct ConsoleConfig {
2456    #[prost(enumeration="console_config::Output", optional, tag="1")]
2457    pub output: ::core::option::Option<i32>,
2458    #[prost(bool, optional, tag="2")]
2459    pub enable_colors: ::core::option::Option<bool>,
2460}
2461/// Nested message and enum types in `ConsoleConfig`.
2462pub mod console_config {
2463    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2464    #[repr(i32)]
2465    pub enum Output {
2466        Unspecified = 0,
2467        Stdout = 1,
2468        Stderr = 2,
2469    }
2470    impl Output {
2471        /// String value of the enum field names used in the ProtoBuf definition.
2472        ///
2473        /// The values are not transformed in any way and thus are considered stable
2474        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2475        pub fn as_str_name(&self) -> &'static str {
2476            match self {
2477                Output::Unspecified => "OUTPUT_UNSPECIFIED",
2478                Output::Stdout => "OUTPUT_STDOUT",
2479                Output::Stderr => "OUTPUT_STDERR",
2480            }
2481        }
2482    }
2483}
2484/// Configuration for trace packet interception. Used for diverting trace data to
2485/// non-Perfetto sources (e.g., logging to the console, ETW) when using the
2486/// Perfetto SDK.
2487#[derive(Clone, PartialEq, ::prost::Message)]
2488pub struct InterceptorConfig {
2489    /// Matches the name given to RegisterInterceptor().
2490    #[prost(string, optional, tag="1")]
2491    pub name: ::core::option::Option<::prost::alloc::string::String>,
2492    #[prost(message, optional, tag="100")]
2493    pub console_config: ::core::option::Option<ConsoleConfig>,
2494}
2495#[derive(Clone, PartialEq, ::prost::Message)]
2496pub struct AndroidPowerConfig {
2497    #[prost(uint32, optional, tag="1")]
2498    pub battery_poll_ms: ::core::option::Option<u32>,
2499    #[prost(enumeration="android_power_config::BatteryCounters", repeated, packed="false", tag="2")]
2500    pub battery_counters: ::prost::alloc::vec::Vec<i32>,
2501    /// Where available enables per-power-rail measurements.
2502    #[prost(bool, optional, tag="3")]
2503    pub collect_power_rails: ::core::option::Option<bool>,
2504    /// Provides a breakdown of energy estimation for various subsystem (e.g. GPU).
2505    /// Available from Android S.
2506    #[prost(bool, optional, tag="4")]
2507    pub collect_energy_estimation_breakdown: ::core::option::Option<bool>,
2508    /// Provides a breakdown of time in state for various subsystems.
2509    /// Available from Android U.
2510    #[prost(bool, optional, tag="5")]
2511    pub collect_entity_state_residency: ::core::option::Option<bool>,
2512}
2513/// Nested message and enum types in `AndroidPowerConfig`.
2514pub mod android_power_config {
2515    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2516    #[repr(i32)]
2517    pub enum BatteryCounters {
2518        BatteryCounterUnspecified = 0,
2519        /// Coulomb counter.
2520        BatteryCounterCharge = 1,
2521        /// Charge (%).
2522        BatteryCounterCapacityPercent = 2,
2523        /// Instantaneous current.
2524        BatteryCounterCurrent = 3,
2525        /// Avg current.
2526        BatteryCounterCurrentAvg = 4,
2527        /// Instantaneous voltage.
2528        BatteryCounterVoltage = 5,
2529    }
2530    impl BatteryCounters {
2531        /// String value of the enum field names used in the ProtoBuf definition.
2532        ///
2533        /// The values are not transformed in any way and thus are considered stable
2534        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2535        pub fn as_str_name(&self) -> &'static str {
2536            match self {
2537                BatteryCounters::BatteryCounterUnspecified => "BATTERY_COUNTER_UNSPECIFIED",
2538                BatteryCounters::BatteryCounterCharge => "BATTERY_COUNTER_CHARGE",
2539                BatteryCounters::BatteryCounterCapacityPercent => "BATTERY_COUNTER_CAPACITY_PERCENT",
2540                BatteryCounters::BatteryCounterCurrent => "BATTERY_COUNTER_CURRENT",
2541                BatteryCounters::BatteryCounterCurrentAvg => "BATTERY_COUNTER_CURRENT_AVG",
2542                BatteryCounters::BatteryCounterVoltage => "BATTERY_COUNTER_VOLTAGE",
2543            }
2544        }
2545    }
2546}
2547#[derive(Clone, PartialEq, ::prost::Message)]
2548pub struct ProtoVmConfig {
2549    #[prost(uint32, optional, tag="1")]
2550    pub memory_limit_kb: ::core::option::Option<u32>,
2551}
2552/// This enum is obtained by post-processing
2553/// AOSP/frameworks/proto_logging/stats/atoms.proto through
2554/// AOSP/external/perfetto/tools/update-statsd-descriptor, which extracts one
2555/// enum value for each proto field defined in the upstream atoms.proto.
2556#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2557#[repr(i32)]
2558pub enum AtomId {
2559    AtomUnspecified = 0,
2560    AtomBleScanStateChanged = 2,
2561    AtomProcessStateChanged = 3,
2562    AtomBleScanResultReceived = 4,
2563    AtomSensorStateChanged = 5,
2564    AtomGpsScanStateChanged = 6,
2565    AtomSyncStateChanged = 7,
2566    AtomScheduledJobStateChanged = 8,
2567    AtomScreenBrightnessChanged = 9,
2568    AtomWakelockStateChanged = 10,
2569    AtomLongPartialWakelockStateChanged = 11,
2570    AtomMobileRadioPowerStateChanged = 12,
2571    AtomWifiRadioPowerStateChanged = 13,
2572    AtomActivityManagerSleepStateChanged = 14,
2573    AtomMemoryFactorStateChanged = 15,
2574    AtomExcessiveCpuUsageReported = 16,
2575    AtomCachedKillReported = 17,
2576    AtomProcessMemoryStatReported = 18,
2577    AtomLauncherEvent = 19,
2578    AtomBatterySaverModeStateChanged = 20,
2579    AtomDeviceIdleModeStateChanged = 21,
2580    AtomDeviceIdlingModeStateChanged = 22,
2581    AtomAudioStateChanged = 23,
2582    AtomMediaCodecStateChanged = 24,
2583    AtomCameraStateChanged = 25,
2584    AtomFlashlightStateChanged = 26,
2585    AtomUidProcessStateChanged = 27,
2586    AtomProcessLifeCycleStateChanged = 28,
2587    AtomScreenStateChanged = 29,
2588    AtomBatteryLevelChanged = 30,
2589    AtomChargingStateChanged = 31,
2590    AtomPluggedStateChanged = 32,
2591    AtomInteractiveStateChanged = 33,
2592    AtomTouchEventReported = 34,
2593    AtomWakeupAlarmOccurred = 35,
2594    AtomKernelWakeupReported = 36,
2595    AtomWifiLockStateChanged = 37,
2596    AtomWifiSignalStrengthChanged = 38,
2597    AtomWifiScanStateChanged = 39,
2598    AtomPhoneSignalStrengthChanged = 40,
2599    AtomSettingChanged = 41,
2600    AtomActivityForegroundStateChanged = 42,
2601    AtomIsolatedUidChanged = 43,
2602    AtomPacketWakeupOccurred = 44,
2603    AtomWallClockTimeShifted = 45,
2604    AtomAnomalyDetected = 46,
2605    AtomAppBreadcrumbReported = 47,
2606    AtomAppStartOccurred = 48,
2607    AtomAppStartCanceled = 49,
2608    AtomAppStartFullyDrawn = 50,
2609    AtomLmkKillOccurred = 51,
2610    AtomPictureInPictureStateChanged = 52,
2611    AtomWifiMulticastLockStateChanged = 53,
2612    AtomAppStartMemoryStateCaptured = 55,
2613    AtomShutdownSequenceReported = 56,
2614    AtomBootSequenceReported = 57,
2615    AtomOverlayStateChanged = 59,
2616    AtomForegroundServiceStateChanged = 60,
2617    AtomCallStateChanged = 61,
2618    AtomKeyguardStateChanged = 62,
2619    AtomKeyguardBouncerStateChanged = 63,
2620    AtomKeyguardBouncerPasswordEntered = 64,
2621    AtomAppDied = 65,
2622    AtomResourceConfigurationChanged = 66,
2623    AtomBluetoothEnabledStateChanged = 67,
2624    AtomBluetoothConnectionStateChanged = 68,
2625    AtomGpsSignalQualityChanged = 69,
2626    AtomUsbConnectorStateChanged = 70,
2627    AtomSpeakerImpedanceReported = 71,
2628    AtomHardwareFailed = 72,
2629    AtomPhysicalDropDetected = 73,
2630    AtomChargeCyclesReported = 74,
2631    AtomMobileConnectionStateChanged = 75,
2632    AtomMobileRadioTechnologyChanged = 76,
2633    AtomUsbDeviceAttached = 77,
2634    AtomAppCrashOccurred = 78,
2635    AtomAnrOccurred = 79,
2636    AtomWtfOccurred = 80,
2637    AtomLowMemReported = 81,
2638    AtomGenericAtom = 82,
2639    AtomVibratorStateChanged = 84,
2640    AtomDeferredJobStatsReported = 85,
2641    AtomThermalThrottling = 86,
2642    AtomBiometricAcquired = 87,
2643    AtomBiometricAuthenticated = 88,
2644    AtomBiometricErrorOccurred = 89,
2645    AtomUiEventReported = 90,
2646    AtomBatteryHealthSnapshot = 91,
2647    AtomSlowIo = 92,
2648    AtomBatteryCausedShutdown = 93,
2649    AtomPhoneServiceStateChanged = 94,
2650    AtomPhoneStateChanged = 95,
2651    AtomUserRestrictionChanged = 96,
2652    AtomSettingsUiChanged = 97,
2653    AtomConnectivityStateChanged = 98,
2654    AtomServiceStateChanged = 99,
2655    AtomServiceLaunchReported = 100,
2656    AtomFlagFlipUpdateOccurred = 101,
2657    AtomBinaryPushStateChanged = 102,
2658    AtomDevicePolicyEvent = 103,
2659    AtomDocsUiFileOpCanceled = 104,
2660    AtomDocsUiFileOpCopyMoveModeReported = 105,
2661    AtomDocsUiFileOpFailure = 106,
2662    AtomDocsUiProviderFileOp = 107,
2663    AtomDocsUiInvalidScopedAccessRequest = 108,
2664    AtomDocsUiLaunchReported = 109,
2665    AtomDocsUiRootVisited = 110,
2666    AtomDocsUiStartupMs = 111,
2667    AtomDocsUiUserActionReported = 112,
2668    AtomWifiEnabledStateChanged = 113,
2669    AtomWifiRunningStateChanged = 114,
2670    AtomAppCompacted = 115,
2671    AtomNetworkDnsEventReported = 116,
2672    AtomDocsUiPickerLaunchedFromReported = 117,
2673    AtomDocsUiPickResultReported = 118,
2674    AtomDocsUiSearchModeReported = 119,
2675    AtomDocsUiSearchTypeReported = 120,
2676    AtomDataStallEvent = 121,
2677    AtomRescuePartyResetReported = 122,
2678    AtomSignedConfigReported = 123,
2679    AtomGnssNiEventReported = 124,
2680    AtomBluetoothLinkLayerConnectionEvent = 125,
2681    AtomBluetoothAclConnectionStateChanged = 126,
2682    AtomBluetoothScoConnectionStateChanged = 127,
2683    AtomAppDowngraded = 128,
2684    AtomAppOptimizedAfterDowngraded = 129,
2685    AtomLowStorageStateChanged = 130,
2686    AtomGnssNfwNotificationReported = 131,
2687    AtomGnssConfigurationReported = 132,
2688    AtomUsbPortOverheatEventReported = 133,
2689    AtomNfcErrorOccurred = 134,
2690    AtomNfcStateChanged = 135,
2691    AtomNfcBeamOccurred = 136,
2692    AtomNfcCardemulationOccurred = 137,
2693    AtomNfcTagOccurred = 138,
2694    AtomNfcHceTransactionOccurred = 139,
2695    AtomSeStateChanged = 140,
2696    AtomSeOmapiReported = 141,
2697    AtomBroadcastDispatchLatencyReported = 142,
2698    AtomAttentionManagerServiceResultReported = 143,
2699    AtomAdbConnectionChanged = 144,
2700    AtomSpeechDspStatReported = 145,
2701    AtomUsbContaminantReported = 146,
2702    AtomWatchdogRollbackOccurred = 147,
2703    AtomBiometricSystemHealthIssueDetected = 148,
2704    AtomBubbleUiChanged = 149,
2705    AtomScheduledJobConstraintChanged = 150,
2706    AtomBluetoothActiveDeviceChanged = 151,
2707    AtomBluetoothA2dpPlaybackStateChanged = 152,
2708    AtomBluetoothA2dpCodecConfigChanged = 153,
2709    AtomBluetoothA2dpCodecCapabilityChanged = 154,
2710    AtomBluetoothA2dpAudioUnderrunReported = 155,
2711    AtomBluetoothA2dpAudioOverrunReported = 156,
2712    AtomBluetoothDeviceRssiReported = 157,
2713    AtomBluetoothDeviceFailedContactCounterReported = 158,
2714    AtomBluetoothDeviceTxPowerLevelReported = 159,
2715    AtomBluetoothHciTimeoutReported = 160,
2716    AtomBluetoothQualityReportReported = 161,
2717    AtomBluetoothDeviceInfoReported = 162,
2718    AtomBluetoothRemoteVersionInfoReported = 163,
2719    AtomBluetoothSdpAttributeReported = 164,
2720    AtomBluetoothBondStateChanged = 165,
2721    AtomBluetoothClassicPairingEventReported = 166,
2722    AtomBluetoothSmpPairingEventReported = 167,
2723    AtomScreenTimeoutExtensionReported = 168,
2724    AtomProcessStartTime = 169,
2725    AtomPermissionGrantRequestResultReported = 170,
2726    AtomBluetoothSocketConnectionStateChanged = 171,
2727    AtomDeviceIdentifierAccessDenied = 172,
2728    AtomBubbleDeveloperErrorReported = 173,
2729    AtomAssistGestureStageReported = 174,
2730    AtomAssistGestureFeedbackReported = 175,
2731    AtomAssistGestureProgressReported = 176,
2732    AtomTouchGestureClassified = 177,
2733    AtomHiddenApiUsed = 178,
2734    AtomStyleUiChanged = 179,
2735    AtomPrivacyIndicatorsInteracted = 180,
2736    AtomAppInstallOnExternalStorageReported = 181,
2737    AtomNetworkStackReported = 182,
2738    AtomAppMovedStorageReported = 183,
2739    AtomBiometricEnrolled = 184,
2740    AtomSystemServerWatchdogOccurred = 185,
2741    AtomTombStoneOccurred = 186,
2742    AtomBluetoothClassOfDeviceReported = 187,
2743    AtomIntelligenceEventReported = 188,
2744    AtomThermalThrottlingSeverityStateChanged = 189,
2745    AtomRoleRequestResultReported = 190,
2746    AtomMediametricsAudiopolicyReported = 191,
2747    AtomMediametricsAudiorecordReported = 192,
2748    AtomMediametricsAudiothreadReported = 193,
2749    AtomMediametricsAudiotrackReported = 194,
2750    AtomMediametricsCodecReported = 195,
2751    AtomMediametricsDrmWidevineReported = 196,
2752    AtomMediametricsExtractorReported = 197,
2753    AtomMediametricsMediadrmReported = 198,
2754    AtomMediametricsNuplayerReported = 199,
2755    AtomMediametricsRecorderReported = 200,
2756    AtomMediametricsDrmmanagerReported = 201,
2757    AtomCarPowerStateChanged = 203,
2758    AtomGarageModeInfo = 204,
2759    AtomTestAtomReported = 205,
2760    AtomContentCaptureCallerMismatchReported = 206,
2761    AtomContentCaptureServiceEvents = 207,
2762    AtomContentCaptureSessionEvents = 208,
2763    AtomContentCaptureFlushed = 209,
2764    AtomLocationManagerApiUsageReported = 210,
2765    AtomReviewPermissionsFragmentResultReported = 211,
2766    AtomRuntimePermissionsUpgradeResult = 212,
2767    AtomGrantPermissionsActivityButtonActions = 213,
2768    AtomLocationAccessCheckNotificationAction = 214,
2769    AtomAppPermissionFragmentActionReported = 215,
2770    AtomAppPermissionFragmentViewed = 216,
2771    AtomAppPermissionsFragmentViewed = 217,
2772    AtomPermissionAppsFragmentViewed = 218,
2773    AtomTextSelectionEvent = 219,
2774    AtomTextLinkifyEvent = 220,
2775    AtomConversationActionsEvent = 221,
2776    AtomLanguageDetectionEvent = 222,
2777    AtomExclusionRectStateChanged = 223,
2778    AtomBackGestureReportedReported = 224,
2779    AtomUpdateEngineUpdateAttemptReported = 225,
2780    AtomUpdateEngineSuccessfulUpdateReported = 226,
2781    AtomCameraActionEvent = 227,
2782    AtomAppCompatibilityChangeReported = 228,
2783    AtomPerfettoUploaded = 229,
2784    AtomVmsClientConnectionStateChanged = 230,
2785    AtomMediaProviderScanOccurred = 233,
2786    AtomMediaContentDeleted = 234,
2787    AtomMediaProviderPermissionRequested = 235,
2788    AtomMediaProviderSchemaChanged = 236,
2789    AtomMediaProviderIdleMaintenanceFinished = 237,
2790    AtomRebootEscrowRecoveryReported = 238,
2791    AtomBootTimeEventDurationReported = 239,
2792    AtomBootTimeEventElapsedTimeReported = 240,
2793    AtomBootTimeEventUtcTimeReported = 241,
2794    AtomBootTimeEventErrorCodeReported = 242,
2795    AtomUserspaceRebootReported = 243,
2796    AtomNotificationReported = 244,
2797    AtomNotificationPanelReported = 245,
2798    AtomNotificationChannelModified = 246,
2799    AtomIntegrityCheckResultReported = 247,
2800    AtomIntegrityRulesPushed = 248,
2801    AtomCbMessageReported = 249,
2802    AtomCbMessageError = 250,
2803    AtomWifiHealthStatReported = 251,
2804    AtomWifiFailureStatReported = 252,
2805    AtomWifiConnectionResultReported = 253,
2806    AtomAppFreezeChanged = 254,
2807    AtomSnapshotMergeReported = 255,
2808    AtomForegroundServiceAppOpSessionEnded = 256,
2809    AtomDisplayJankReported = 257,
2810    AtomAppStandbyBucketChanged = 258,
2811    AtomSharesheetStarted = 259,
2812    AtomRankingSelected = 260,
2813    AtomTvsettingsUiInteracted = 261,
2814    AtomLauncherSnapshot = 262,
2815    AtomPackageInstallerV2Reported = 263,
2816    AtomUserLifecycleJourneyReported = 264,
2817    AtomUserLifecycleEventOccurred = 265,
2818    AtomAccessibilityShortcutReported = 266,
2819    AtomAccessibilityServiceReported = 267,
2820    AtomDocsUiDragAndDropReported = 268,
2821    AtomAppUsageEventOccurred = 269,
2822    AtomAutoRevokeNotificationClicked = 270,
2823    AtomAutoRevokeFragmentAppViewed = 271,
2824    AtomAutoRevokedAppInteraction = 272,
2825    AtomAppPermissionGroupsFragmentAutoRevokeAction = 273,
2826    AtomEvsUsageStatsReported = 274,
2827    AtomAudioPowerUsageDataReported = 275,
2828    AtomTvTunerStateChanged = 276,
2829    AtomMediaoutputOpSwitchReported = 277,
2830    AtomCbMessageFiltered = 278,
2831    AtomTvTunerDvrStatus = 279,
2832    AtomTvCasSessionOpenStatus = 280,
2833    AtomAssistantInvocationReported = 281,
2834    AtomDisplayWakeReported = 282,
2835    AtomCarUserHalModifyUserRequestReported = 283,
2836    AtomCarUserHalModifyUserResponseReported = 284,
2837    AtomCarUserHalPostSwitchResponseReported = 285,
2838    AtomCarUserHalInitialUserInfoRequestReported = 286,
2839    AtomCarUserHalInitialUserInfoResponseReported = 287,
2840    AtomCarUserHalUserAssociationRequestReported = 288,
2841    AtomCarUserHalSetUserAssociationResponseReported = 289,
2842    AtomNetworkIpProvisioningReported = 290,
2843    AtomNetworkDhcpRenewReported = 291,
2844    AtomNetworkValidationReported = 292,
2845    AtomNetworkStackQuirkReported = 293,
2846    AtomMediametricsAudiorecorddeviceusageReported = 294,
2847    AtomMediametricsAudiothreaddeviceusageReported = 295,
2848    AtomMediametricsAudiotrackdeviceusageReported = 296,
2849    AtomMediametricsAudiodeviceconnectionReported = 297,
2850    AtomBlobCommitted = 298,
2851    AtomBlobLeased = 299,
2852    AtomBlobOpened = 300,
2853    AtomContactsProviderStatusReported = 301,
2854    AtomKeystoreKeyEventReported = 302,
2855    AtomNetworkTetheringReported = 303,
2856    AtomImeTouchReported = 304,
2857    AtomUiInteractionFrameInfoReported = 305,
2858    AtomUiActionLatencyReported = 306,
2859    AtomWifiDisconnectReported = 307,
2860    AtomWifiConnectionStateChanged = 308,
2861    AtomHdmiCecActiveSourceChanged = 309,
2862    AtomHdmiCecMessageReported = 310,
2863    AtomAirplaneMode = 311,
2864    AtomModemRestart = 312,
2865    AtomCarrierIdMismatchReported = 313,
2866    AtomCarrierIdTableUpdated = 314,
2867    AtomDataStallRecoveryReported = 315,
2868    AtomMediametricsMediaparserReported = 316,
2869    AtomTlsHandshakeReported = 317,
2870    AtomTextClassifierApiUsageReported = 318,
2871    AtomCarWatchdogKillStatsReported = 319,
2872    AtomMediametricsPlaybackReported = 320,
2873    AtomMediaNetworkInfoChanged = 321,
2874    AtomMediaPlaybackStateChanged = 322,
2875    AtomMediaPlaybackErrorReported = 323,
2876    AtomMediaPlaybackTrackChanged = 324,
2877    AtomWifiScanReported = 325,
2878    AtomWifiPnoScanReported = 326,
2879    AtomTifTuneChanged = 327,
2880    AtomAutoRotateReported = 328,
2881    AtomPerfettoTrigger = 329,
2882    AtomTranscodingData = 330,
2883    AtomImsServiceEntitlementUpdated = 331,
2884    AtomDeviceRotated = 333,
2885    AtomSimSpecificSettingsRestored = 334,
2886    AtomTextClassifierDownloadReported = 335,
2887    AtomPinStorageEvent = 336,
2888    AtomFaceDownReported = 337,
2889    AtomBluetoothHalCrashReasonReported = 338,
2890    AtomRebootEscrowPreparationReported = 339,
2891    AtomRebootEscrowLskfCaptureReported = 340,
2892    AtomRebootEscrowRebootReported = 341,
2893    AtomBinderLatencyReported = 342,
2894    AtomMediametricsAaudiostreamReported = 343,
2895    AtomMediaTranscodingSessionEnded = 344,
2896    AtomMagnificationUsageReported = 345,
2897    AtomMagnificationModeWithImeOnReported = 346,
2898    AtomAppSearchCallStatsReported = 347,
2899    AtomAppSearchPutDocumentStatsReported = 348,
2900    AtomDeviceControlChanged = 349,
2901    AtomDeviceStateChanged = 350,
2902    AtomInputdeviceRegistered = 351,
2903    AtomSmartspaceCardReported = 352,
2904    AtomAuthPromptAuthenticateInvoked = 353,
2905    AtomAuthManagerCanAuthenticateInvoked = 354,
2906    AtomAuthEnrollActionInvoked = 355,
2907    AtomAuthDeprecatedApiUsed = 356,
2908    AtomUnattendedRebootOccurred = 357,
2909    AtomLongRebootBlockingReported = 358,
2910    AtomLocationTimeZoneProviderStateChanged = 359,
2911    AtomFdtrackEventOccurred = 364,
2912    AtomTimeoutAutoExtendedReported = 365,
2913    AtomAlarmBatchDelivered = 367,
2914    AtomAlarmScheduled = 368,
2915    AtomCarWatchdogIoOveruseStatsReported = 369,
2916    AtomUserLevelHibernationStateChanged = 370,
2917    AtomAppSearchInitializeStatsReported = 371,
2918    AtomAppSearchQueryStatsReported = 372,
2919    AtomAppProcessDied = 373,
2920    AtomNetworkIpReachabilityMonitorReported = 374,
2921    AtomSlowInputEventReported = 375,
2922    AtomAnrOccurredProcessingStarted = 376,
2923    AtomAppSearchRemoveStatsReported = 377,
2924    AtomMediaCodecReported = 378,
2925    AtomPermissionUsageFragmentInteraction = 379,
2926    AtomPermissionDetailsInteraction = 380,
2927    AtomPrivacySensorToggleInteraction = 381,
2928    AtomPrivacyToggleDialogInteraction = 382,
2929    AtomAppSearchOptimizeStatsReported = 383,
2930    AtomNonA11yToolServiceWarningReport = 384,
2931    AtomAppCompatStateChanged = 386,
2932    AtomSizeCompatRestartButtonEventReported = 387,
2933    AtomSplitscreenUiChanged = 388,
2934    AtomNetworkDnsHandshakeReported = 389,
2935    AtomBluetoothCodePathCounter = 390,
2936    AtomBluetoothLeBatchScanReportDelay = 392,
2937    AtomAccessibilityFloatingMenuUiChanged = 393,
2938    AtomNeuralnetworksCompilationCompleted = 394,
2939    AtomNeuralnetworksExecutionCompleted = 395,
2940    AtomNeuralnetworksCompilationFailed = 396,
2941    AtomNeuralnetworksExecutionFailed = 397,
2942    AtomContextHubBooted = 398,
2943    AtomContextHubRestarted = 399,
2944    AtomContextHubLoadedNanoappSnapshotReported = 400,
2945    AtomChreCodeDownloadTransacted = 401,
2946    AtomUwbSessionInited = 402,
2947    AtomUwbSessionClosed = 403,
2948    AtomUwbFirstRangingReceived = 404,
2949    AtomUwbRangingMeasurementReceived = 405,
2950    AtomTextClassifierDownloadWorkScheduled = 406,
2951    AtomTextClassifierDownloadWorkCompleted = 407,
2952    AtomClipboardCleared = 408,
2953    AtomVmCreationRequested = 409,
2954    AtomNearbyDeviceScanStateChanged = 410,
2955    AtomApplicationLocalesChanged = 412,
2956    AtomMediametricsAudiotrackstatusReported = 413,
2957    AtomFoldStateDurationReported = 414,
2958    AtomLocationTimeZoneProviderControllerStateChanged = 415,
2959    AtomDisplayHbmStateChanged = 416,
2960    AtomDisplayHbmBrightnessChanged = 417,
2961    AtomPersistentUriPermissionsFlushed = 418,
2962    AtomEarlyBootCompOsArtifactsCheckReported = 419,
2963    AtomVbmetaDigestReported = 420,
2964    AtomApexInfoGathered = 421,
2965    AtomPvmInfoGathered = 422,
2966    AtomWearSettingsUiInteracted = 423,
2967    AtomTracingServiceReportEvent = 424,
2968    AtomMediametricsAudiorecordstatusReported = 425,
2969    AtomLauncherLatency = 426,
2970    AtomDropboxEntryDropped = 427,
2971    AtomWifiP2pConnectionReported = 428,
2972    AtomGameStateChanged = 429,
2973    AtomHotwordDetectorCreateRequested = 430,
2974    AtomHotwordDetectionServiceInitResultReported = 431,
2975    AtomHotwordDetectionServiceRestarted = 432,
2976    AtomHotwordDetectorKeyphraseTriggered = 433,
2977    AtomHotwordDetectorEvents = 434,
2978    AtomBootCompletedBroadcastCompletionLatencyReported = 437,
2979    AtomContactsIndexerUpdateStatsReported = 440,
2980    AtomAppBackgroundRestrictionsInfo = 441,
2981    AtomMmsSmsProviderGetThreadIdFailed = 442,
2982    AtomMmsSmsDatabaseHelperOnUpgradeFailed = 443,
2983    AtomPermissionReminderNotificationInteracted = 444,
2984    AtomRecentPermissionDecisionsInteracted = 445,
2985    AtomGnssPsdsDownloadReported = 446,
2986    AtomLeAudioConnectionSessionReported = 447,
2987    AtomLeAudioBroadcastSessionReported = 448,
2988    AtomDreamUiEventReported = 449,
2989    AtomTaskManagerEventReported = 450,
2990    AtomCdmAssociationAction = 451,
2991    AtomMagnificationTripleTapAndHoldActivatedSessionReported = 452,
2992    AtomMagnificationFollowTypingFocusActivatedSessionReported = 453,
2993    AtomAccessibilityTextReadingOptionsChanged = 454,
2994    AtomWifiSetupFailureCrashReported = 455,
2995    AtomUwbDeviceErrorReported = 456,
2996    AtomIsolatedCompilationScheduled = 457,
2997    AtomIsolatedCompilationEnded = 458,
2998    AtomOnsOpportunisticEsimProvisioningComplete = 459,
2999    AtomSystemServerPreWatchdogOccurred = 460,
3000    AtomTelephonyAnomalyDetected = 461,
3001    AtomLetterboxPositionChanged = 462,
3002    AtomRemoteKeyProvisioningAttempt = 463,
3003    AtomRemoteKeyProvisioningNetworkInfo = 464,
3004    AtomRemoteKeyProvisioningTiming = 465,
3005    AtomMediaoutputOpInteractionReport = 466,
3006    AtomSyncExemptionOccurred = 468,
3007    AtomAutofillPresentationEventReported = 469,
3008    AtomDockStateChanged = 470,
3009    AtomSafetySourceStateCollected = 471,
3010    AtomSafetyCenterSystemEventReported = 472,
3011    AtomSafetyCenterInteractionReported = 473,
3012    AtomSettingsProviderSettingChanged = 474,
3013    AtomBroadcastDeliveryEventReported = 475,
3014    AtomServiceRequestEventReported = 476,
3015    AtomProviderAcquisitionEventReported = 477,
3016    AtomBluetoothDeviceNameReported = 478,
3017    AtomCbConfigUpdated = 479,
3018    AtomCbModuleErrorReported = 480,
3019    AtomCbServiceFeatureChanged = 481,
3020    AtomCbReceiverFeatureChanged = 482,
3021    AtomPrivacySignalNotificationInteraction = 484,
3022    AtomPrivacySignalIssueCardInteraction = 485,
3023    AtomPrivacySignalsJobFailure = 486,
3024    AtomVibrationReported = 487,
3025    AtomUwbRangingStart = 489,
3026    AtomAppCompactedV2 = 491,
3027    AtomDisplayBrightnessChanged = 494,
3028    AtomActivityActionBlocked = 495,
3029    AtomNetworkDnsServerSupportReported = 504,
3030    AtomVmBooted = 505,
3031    AtomVmExited = 506,
3032    AtomAmbientBrightnessStatsReported = 507,
3033    AtomMediametricsSpatializercapabilitiesReported = 508,
3034    AtomMediametricsSpatializerdeviceenabledReported = 509,
3035    AtomMediametricsHeadtrackerdeviceenabledReported = 510,
3036    AtomMediametricsHeadtrackerdevicesupportedReported = 511,
3037    AtomHearingAidInfoReported = 513,
3038    AtomDeviceWideJobConstraintChanged = 514,
3039    AtomAmbientModeChanged = 515,
3040    AtomAnrLatencyReported = 516,
3041    AtomResourceApiInfo = 517,
3042    AtomSystemDefaultNetworkChanged = 518,
3043    AtomIwlanSetupDataCallResultReported = 519,
3044    AtomIwlanPdnDisconnectedReasonReported = 520,
3045    AtomAirplaneModeSessionReported = 521,
3046    AtomVmCpuStatusReported = 522,
3047    AtomVmMemStatusReported = 523,
3048    AtomPackageInstallationSessionReported = 524,
3049    AtomDefaultNetworkRematchInfo = 525,
3050    AtomNetworkSelectionPerformance = 526,
3051    AtomNetworkNsdReported = 527,
3052    AtomBluetoothDisconnectionReasonReported = 529,
3053    AtomBluetoothLocalVersionsReported = 530,
3054    AtomBluetoothRemoteSupportedFeaturesReported = 531,
3055    AtomBluetoothLocalSupportedFeaturesReported = 532,
3056    AtomBluetoothGattAppInfo = 533,
3057    AtomBrightnessConfigurationUpdated = 534,
3058    AtomWearMediaOutputSwitcherLaunched = 538,
3059    AtomWearMediaOutputSwitcherFinished = 539,
3060    AtomWearMediaOutputSwitcherConnectionReported = 540,
3061    AtomWearMediaOutputSwitcherDeviceScanTriggered = 541,
3062    AtomWearMediaOutputSwitcherFirstDeviceScanLatency = 542,
3063    AtomWearMediaOutputSwitcherConnectDeviceLatency = 543,
3064    AtomPackageManagerSnapshotReported = 544,
3065    AtomPackageManagerAppsFilterCacheBuildReported = 545,
3066    AtomPackageManagerAppsFilterCacheUpdateReported = 546,
3067    AtomLauncherImpressionEvent = 547,
3068    AtomWearMediaOutputSwitcherAllDevicesScanLatency = 549,
3069    AtomWsWatchFaceEdited = 551,
3070    AtomWsWatchFaceFavoriteActionReported = 552,
3071    AtomWsWatchFaceSetActionReported = 553,
3072    AtomPackageUninstallationReported = 554,
3073    AtomGameModeChanged = 555,
3074    AtomGameModeConfigurationChanged = 556,
3075    AtomBedtimeModeStateChanged = 557,
3076    AtomNetworkSliceSessionEnded = 558,
3077    AtomNetworkSliceDailyDataUsageReported = 559,
3078    AtomNfcTagTypeOccurred = 560,
3079    AtomNfcAidConflictOccurred = 561,
3080    AtomNfcReaderConflictOccurred = 562,
3081    AtomWsTileListChanged = 563,
3082    AtomGetTypeAccessedWithoutPermission = 564,
3083    AtomMobileBundledAppInfoGathered = 566,
3084    AtomWsWatchFaceComplicationSetChanged = 567,
3085    AtomMediaDrmCreated = 568,
3086    AtomMediaDrmErrored = 569,
3087    AtomMediaDrmSessionOpened = 570,
3088    AtomMediaDrmSessionClosed = 571,
3089    AtomUserSelectedResolution = 572,
3090    AtomUnsafeIntentEventReported = 573,
3091    AtomPerformanceHintSessionReported = 574,
3092    AtomMediametricsMidiDeviceCloseReported = 576,
3093    AtomBiometricTouchReported = 577,
3094    AtomHotwordAudioEgressEventReported = 578,
3095    AtomLocationEnabledStateChanged = 580,
3096    AtomImeRequestFinished = 581,
3097    AtomUsbComplianceWarningsReported = 582,
3098    AtomAppSupportedLocalesChanged = 583,
3099    AtomMediaProviderVolumeRecoveryReported = 586,
3100    AtomBiometricPropertiesCollected = 587,
3101    AtomKernelWakeupAttributed = 588,
3102    AtomScreenStateChangedV2 = 589,
3103    AtomWsBackupActionReported = 590,
3104    AtomWsRestoreActionReported = 591,
3105    AtomDeviceLogAccessEventReported = 592,
3106    AtomMediaSessionUpdated = 594,
3107    AtomWearOobeStateChanged = 595,
3108    AtomWsNotificationUpdated = 596,
3109    AtomNetworkValidationFailureStatsDailyReported = 601,
3110    AtomWsComplicationTapped = 602,
3111    AtomWsNotificationBlocking = 780,
3112    AtomWsNotificationBridgemodeUpdated = 822,
3113    AtomWsNotificationDismissalActioned = 823,
3114    AtomWsNotificationActioned = 824,
3115    AtomWsNotificationLatency = 880,
3116    AtomWifiBytesTransfer = 10000,
3117    AtomWifiBytesTransferByFgBg = 10001,
3118    AtomMobileBytesTransfer = 10002,
3119    AtomMobileBytesTransferByFgBg = 10003,
3120    AtomBluetoothBytesTransfer = 10006,
3121    AtomKernelWakelock = 10004,
3122    AtomSubsystemSleepState = 10005,
3123    AtomCpuTimePerUid = 10009,
3124    AtomCpuTimePerUidFreq = 10010,
3125    AtomWifiActivityInfo = 10011,
3126    AtomModemActivityInfo = 10012,
3127    AtomBluetoothActivityInfo = 10007,
3128    AtomProcessMemoryState = 10013,
3129    AtomSystemElapsedRealtime = 10014,
3130    AtomSystemUptime = 10015,
3131    AtomCpuActiveTime = 10016,
3132    AtomCpuClusterTime = 10017,
3133    AtomDiskSpace = 10018,
3134    AtomRemainingBatteryCapacity = 10019,
3135    AtomFullBatteryCapacity = 10020,
3136    AtomTemperature = 10021,
3137    AtomBinderCalls = 10022,
3138    AtomBinderCallsExceptions = 10023,
3139    AtomLooperStats = 10024,
3140    AtomDiskStats = 10025,
3141    AtomDirectoryUsage = 10026,
3142    AtomAppSize = 10027,
3143    AtomCategorySize = 10028,
3144    AtomProcStats = 10029,
3145    AtomBatteryVoltage = 10030,
3146    AtomNumFingerprintsEnrolled = 10031,
3147    AtomDiskIo = 10032,
3148    AtomPowerProfile = 10033,
3149    AtomProcStatsPkgProc = 10034,
3150    AtomProcessCpuTime = 10035,
3151    AtomCpuTimePerThreadFreq = 10037,
3152    AtomOnDevicePowerMeasurement = 10038,
3153    AtomDeviceCalculatedPowerUse = 10039,
3154    AtomProcessMemoryHighWaterMark = 10042,
3155    AtomBatteryLevel = 10043,
3156    AtomBuildInformation = 10044,
3157    AtomBatteryCycleCount = 10045,
3158    AtomDebugElapsedClock = 10046,
3159    AtomDebugFailingElapsedClock = 10047,
3160    AtomNumFacesEnrolled = 10048,
3161    AtomRoleHolder = 10049,
3162    AtomDangerousPermissionState = 10050,
3163    AtomTrainInfo = 10051,
3164    AtomTimeZoneDataInfo = 10052,
3165    AtomExternalStorageInfo = 10053,
3166    AtomGpuStatsGlobalInfo = 10054,
3167    AtomGpuStatsAppInfo = 10055,
3168    AtomSystemIonHeapSize = 10056,
3169    AtomAppsOnExternalStorageInfo = 10057,
3170    AtomFaceSettings = 10058,
3171    AtomCoolingDevice = 10059,
3172    AtomAppOps = 10060,
3173    AtomProcessSystemIonHeapSize = 10061,
3174    AtomSurfaceflingerStatsGlobalInfo = 10062,
3175    AtomSurfaceflingerStatsLayerInfo = 10063,
3176    AtomProcessMemorySnapshot = 10064,
3177    AtomVmsClientStats = 10065,
3178    AtomNotificationRemoteViews = 10066,
3179    AtomDangerousPermissionStateSampled = 10067,
3180    AtomGraphicsStats = 10068,
3181    AtomRuntimeAppOpAccess = 10069,
3182    AtomIonHeapSize = 10070,
3183    AtomPackageNotificationPreferences = 10071,
3184    AtomPackageNotificationChannelPreferences = 10072,
3185    AtomPackageNotificationChannelGroupPreferences = 10073,
3186    AtomGnssStats = 10074,
3187    AtomAttributedAppOps = 10075,
3188    AtomVoiceCallSession = 10076,
3189    AtomVoiceCallRatUsage = 10077,
3190    AtomSimSlotState = 10078,
3191    AtomSupportedRadioAccessFamily = 10079,
3192    AtomSettingSnapshot = 10080,
3193    AtomBlobInfo = 10081,
3194    AtomDataUsageBytesTransfer = 10082,
3195    AtomBytesTransferByTagAndMetered = 10083,
3196    AtomDndModeRule = 10084,
3197    AtomGeneralExternalStorageAccessStats = 10085,
3198    AtomIncomingSms = 10086,
3199    AtomOutgoingSms = 10087,
3200    AtomCarrierIdTableVersion = 10088,
3201    AtomDataCallSession = 10089,
3202    AtomCellularServiceState = 10090,
3203    AtomCellularDataServiceSwitch = 10091,
3204    AtomSystemMemory = 10092,
3205    AtomImsRegistrationTermination = 10093,
3206    AtomImsRegistrationStats = 10094,
3207    AtomCpuTimePerClusterFreq = 10095,
3208    AtomCpuCyclesPerUidCluster = 10096,
3209    AtomDeviceRotatedData = 10097,
3210    AtomCpuCyclesPerThreadGroupCluster = 10098,
3211    AtomMediaDrmActivityInfo = 10099,
3212    AtomOemManagedBytesTransfer = 10100,
3213    AtomGnssPowerStats = 10101,
3214    AtomTimeZoneDetectorState = 10102,
3215    AtomKeystore2StorageStats = 10103,
3216    AtomRkpPoolStats = 10104,
3217    AtomProcessDmabufMemory = 10105,
3218    AtomPendingAlarmInfo = 10106,
3219    AtomUserLevelHibernatedApps = 10107,
3220    AtomLauncherLayoutSnapshot = 10108,
3221    AtomGlobalHibernatedApps = 10109,
3222    AtomInputEventLatencySketch = 10110,
3223    AtomBatteryUsageStatsBeforeReset = 10111,
3224    AtomBatteryUsageStatsSinceReset = 10112,
3225    AtomBatteryUsageStatsSinceResetUsingPowerProfileModel = 10113,
3226    AtomInstalledIncrementalPackage = 10114,
3227    AtomTelephonyNetworkRequests = 10115,
3228    AtomAppSearchStorageInfo = 10116,
3229    AtomVmstat = 10117,
3230    AtomKeystore2KeyCreationWithGeneralInfo = 10118,
3231    AtomKeystore2KeyCreationWithAuthInfo = 10119,
3232    AtomKeystore2KeyCreationWithPurposeAndModesInfo = 10120,
3233    AtomKeystore2AtomWithOverflow = 10121,
3234    AtomKeystore2KeyOperationWithPurposeAndModesInfo = 10122,
3235    AtomKeystore2KeyOperationWithGeneralInfo = 10123,
3236    AtomRkpErrorStats = 10124,
3237    AtomKeystore2CrashStats = 10125,
3238    AtomVendorApexInfo = 10126,
3239    AtomAccessibilityShortcutStats = 10127,
3240    AtomAccessibilityFloatingMenuStats = 10128,
3241    AtomDataUsageBytesTransferV2 = 10129,
3242    AtomMediaCapabilities = 10130,
3243    AtomCarWatchdogSystemIoUsageSummary = 10131,
3244    AtomCarWatchdogUidIoUsageSummary = 10132,
3245    AtomImsRegistrationFeatureTagStats = 10133,
3246    AtomRcsClientProvisioningStats = 10134,
3247    AtomRcsAcsProvisioningStats = 10135,
3248    AtomSipDelegateStats = 10136,
3249    AtomSipTransportFeatureTagStats = 10137,
3250    AtomSipMessageResponse = 10138,
3251    AtomSipTransportSession = 10139,
3252    AtomImsDedicatedBearerListenerEvent = 10140,
3253    AtomImsDedicatedBearerEvent = 10141,
3254    AtomImsRegistrationServiceDescStats = 10142,
3255    AtomUceEventStats = 10143,
3256    AtomPresenceNotifyEvent = 10144,
3257    AtomGbaEvent = 10145,
3258    AtomPerSimStatus = 10146,
3259    AtomGpuWorkPerUid = 10147,
3260    AtomPersistentUriPermissionsAmountPerPackage = 10148,
3261    AtomSignedPartitionInfo = 10149,
3262    AtomPinnedFileSizesPerPackage = 10150,
3263    AtomPendingIntentsPerPackage = 10151,
3264    AtomUserInfo = 10152,
3265    AtomTelephonyNetworkRequestsV2 = 10153,
3266    AtomDeviceTelephonyProperties = 10154,
3267    AtomRemoteKeyProvisioningErrorCounts = 10155,
3268    AtomSafetyState = 10156,
3269    AtomIncomingMms = 10157,
3270    AtomOutgoingMms = 10158,
3271    AtomMultiUserInfo = 10160,
3272    AtomNetworkBpfMapInfo = 10161,
3273    AtomOutgoingShortCodeSms = 10162,
3274    AtomConnectivityStateSample = 10163,
3275    AtomNetworkSelectionRematchReasonsInfo = 10164,
3276    AtomGameModeInfo = 10165,
3277    AtomGameModeConfiguration = 10166,
3278    AtomGameModeListener = 10167,
3279    AtomNetworkSliceRequestCount = 10168,
3280    AtomWsTileSnapshot = 10169,
3281    AtomWsActiveWatchFaceComplicationSetSnapshot = 10170,
3282    AtomProcessState = 10171,
3283    AtomProcessAssociation = 10172,
3284    AtomAdpfSystemComponentInfo = 10173,
3285    AtomNotificationMemoryUse = 10174,
3286    AtomHdrCapabilities = 10175,
3287    AtomWsFavouriteWatchFaceListSnapshot = 10176,
3288    AtomAccessibilityCheckResultReported = 910,
3289    AtomAdaptiveAuthUnlockAfterLockReported = 820,
3290    AtomThermalStatusCalled = 772,
3291    AtomThermalHeadroomCalled = 773,
3292    AtomThermalHeadroomThresholdsCalled = 774,
3293    AtomAdpfHintSessionTidCleanup = 839,
3294    AtomThermalHeadroomThresholds = 10201,
3295    AtomAdpfSessionSnapshot = 10218,
3296    AtomJsscriptengineLatencyReported = 483,
3297    AtomAdServicesApiCalled = 435,
3298    AtomAdServicesMesurementReportsUploaded = 436,
3299    AtomMobileDataDownloadFileGroupStatusReported = 490,
3300    AtomMobileDataDownloadDownloadResultReported = 502,
3301    AtomAdServicesSettingsUsageReported = 493,
3302    AtomBackgroundFetchProcessReported = 496,
3303    AtomUpdateCustomAudienceProcessReported = 497,
3304    AtomRunAdBiddingProcessReported = 498,
3305    AtomRunAdScoringProcessReported = 499,
3306    AtomRunAdSelectionProcessReported = 500,
3307    AtomRunAdBiddingPerCaProcessReported = 501,
3308    AtomMobileDataDownloadFileGroupStorageStatsReported = 503,
3309    AtomAdServicesMeasurementRegistrations = 512,
3310    AtomAdServicesGetTopicsReported = 535,
3311    AtomAdServicesEpochComputationGetTopTopicsReported = 536,
3312    AtomAdServicesEpochComputationClassifierReported = 537,
3313    AtomAdServicesBackCompatGetTopicsReported = 598,
3314    AtomAdServicesBackCompatEpochComputationClassifierReported = 599,
3315    AtomAdServicesMeasurementDebugKeys = 640,
3316    AtomAdServicesErrorReported = 662,
3317    AtomAdServicesBackgroundJobsExecutionReported = 663,
3318    AtomAdServicesMeasurementDelayedSourceRegistration = 673,
3319    AtomAdServicesMeasurementAttribution = 674,
3320    AtomAdServicesMeasurementJobs = 675,
3321    AtomAdServicesMeasurementWipeout = 676,
3322    AtomAdServicesMeasurementAdIdMatchForDebugKeys = 695,
3323    AtomAdServicesEnrollmentDataStored = 697,
3324    AtomAdServicesEnrollmentFileDownloaded = 698,
3325    AtomAdServicesEnrollmentMatched = 699,
3326    AtomAdServicesConsentMigrated = 702,
3327    AtomAdServicesEnrollmentFailed = 714,
3328    AtomAdServicesMeasurementClickVerification = 756,
3329    AtomAdServicesEncryptionKeyFetched = 765,
3330    AtomAdServicesEncryptionKeyDbTransactionEnded = 766,
3331    AtomDestinationRegisteredBeacons = 767,
3332    AtomReportInteractionApiCalled = 768,
3333    AtomInteractionReportingTableCleared = 769,
3334    AtomAppManifestConfigHelperCalled = 788,
3335    AtomAdFilteringProcessJoinCaReported = 793,
3336    AtomAdFilteringProcessAdSelectionReported = 794,
3337    AtomAdCounterHistogramUpdaterReported = 795,
3338    AtomSignatureVerification = 807,
3339    AtomKAnonImmediateSignJoinStatusReported = 808,
3340    AtomKAnonBackgroundJobStatusReported = 809,
3341    AtomKAnonInitializeStatusReported = 810,
3342    AtomKAnonSignStatusReported = 811,
3343    AtomKAnonJoinStatusReported = 812,
3344    AtomKAnonKeyAttestationStatusReported = 813,
3345    AtomGetAdSelectionDataApiCalled = 814,
3346    AtomGetAdSelectionDataBuyerInputGenerated = 815,
3347    AtomBackgroundJobSchedulingReported = 834,
3348    AtomTopicsEncryptionEpochComputationReported = 840,
3349    AtomTopicsEncryptionGetTopicsReported = 841,
3350    AtomAdservicesShellCommandCalled = 842,
3351    AtomUpdateSignalsApiCalled = 843,
3352    AtomEncodingJobRun = 844,
3353    AtomEncodingJsFetch = 845,
3354    AtomEncodingJsExecution = 846,
3355    AtomPersistAdSelectionResultCalled = 847,
3356    AtomServerAuctionKeyFetchCalled = 848,
3357    AtomServerAuctionBackgroundKeyFetchEnabled = 849,
3358    AtomAdServicesMeasurementProcessOdpRegistration = 864,
3359    AtomAdServicesMeasurementNotifyRegistrationToOdp = 865,
3360    AtomSelectAdsFromOutcomesApiCalled = 876,
3361    AtomReportImpressionApiCalled = 877,
3362    AtomAdServicesEnrollmentTransactionStats = 885,
3363    AtomAdServicesCobaltLoggerEventReported = 902,
3364    AtomAdServicesCobaltPeriodicJobEventReported = 903,
3365    AtomUpdateSignalsProcessReported = 905,
3366    AtomTopicsScheduleEpochJobSettingReported = 930,
3367    AtomAiWallpapersButtonPressed = 706,
3368    AtomAiWallpapersTemplateSelected = 707,
3369    AtomAiWallpapersTermSelected = 708,
3370    AtomAiWallpapersWallpaperSet = 709,
3371    AtomAiWallpapersSessionSummary = 710,
3372    AtomApexInstallationRequested = 732,
3373    AtomApexInstallationStaged = 733,
3374    AtomApexInstallationEnded = 734,
3375    AtomAppSearchSetSchemaStatsReported = 385,
3376    AtomAppSearchSchemaMigrationStatsReported = 579,
3377    AtomAppSearchUsageSearchIntentStatsReported = 825,
3378    AtomAppSearchUsageSearchIntentRawQueryStatsReported = 826,
3379    AtomAppSearchAppsIndexerStatsReported = 909,
3380    AtomArtDatumReported = 332,
3381    AtomArtDeviceDatumReported = 550,
3382    AtomArtDatumDeltaReported = 565,
3383    AtomArtDex2oatReported = 929,
3384    AtomArtDeviceStatus = 10205,
3385    AtomBackgroundDexoptJobEnded = 467,
3386    AtomPrerebootDexoptJobEnded = 883,
3387    AtomOdrefreshReported = 366,
3388    AtomOdsignReported = 548,
3389    AtomAutofillUiEventReported = 603,
3390    AtomAutofillFillRequestReported = 604,
3391    AtomAutofillFillResponseReported = 605,
3392    AtomAutofillSaveEventReported = 606,
3393    AtomAutofillSessionCommitted = 607,
3394    AtomAutofillFieldClassificationEventReported = 659,
3395    AtomCarRecentsEventReported = 770,
3396    AtomCarCalmModeEventReported = 797,
3397    AtomCarWakeupFromSuspendReported = 852,
3398    AtomPluginInitialized = 655,
3399    AtomBluetoothHashedDeviceNameReported = 613,
3400    AtomBluetoothL2capCocClientConnection = 614,
3401    AtomBluetoothL2capCocServerConnection = 615,
3402    AtomBluetoothLeSessionConnected = 656,
3403    AtomRestrictedBluetoothDeviceNameReported = 666,
3404    AtomBluetoothProfileConnectionAttempted = 696,
3405    AtomBluetoothContentProfileErrorReported = 781,
3406    AtomBluetoothRfcommConnectionAttempted = 782,
3407    AtomRemoteDeviceInformationWithMetricId = 862,
3408    AtomLeAppScanStateChanged = 870,
3409    AtomLeRadioScanStopped = 871,
3410    AtomLeScanResultReceived = 872,
3411    AtomLeScanAbused = 873,
3412    AtomLeAdvStateChanged = 874,
3413    AtomLeAdvErrorReported = 875,
3414    AtomA2dpSessionReported = 904,
3415    AtomBluetoothCrossLayerEventReported = 916,
3416    AtomBroadcastAudioSessionReported = 927,
3417    AtomBroadcastAudioSyncReported = 928,
3418    AtomBluetoothRfcommConnectionReportedAtClose = 982,
3419    AtomBluetoothLeConnection = 988,
3420    AtomBroadcastSent = 922,
3421    AtomCameraFeatureCombinationQueryEvent = 900,
3422    AtomCertificateTransparencyLogListStateChanged = 934,
3423    AtomCertificateTransparencyLogListUpdateFailed = 972,
3424    AtomDailyKeepaliveInfoReported = 650,
3425    AtomNetworkRequestStateChanged = 779,
3426    AtomTetheringActiveSessionsReported = 925,
3427    AtomNetworkStatsRecorderFileOperated = 783,
3428    AtomCoreNetworkingTerribleErrorOccurred = 979,
3429    AtomApfSessionInfoReported = 777,
3430    AtomIpClientRaInfoReported = 778,
3431    AtomVpnConnectionStateChanged = 850,
3432    AtomVpnConnectionReported = 851,
3433    AtomCpuPolicy = 10199,
3434    AtomCredentialManagerApiCalled = 585,
3435    AtomCredentialManagerInitPhaseReported = 651,
3436    AtomCredentialManagerCandidatePhaseReported = 652,
3437    AtomCredentialManagerFinalPhaseReported = 653,
3438    AtomCredentialManagerTotalReported = 667,
3439    AtomCredentialManagerFinalnouidReported = 668,
3440    AtomCredentialManagerGetReported = 669,
3441    AtomCredentialManagerAuthClickReported = 670,
3442    AtomCredentialManagerApiv2Called = 671,
3443    AtomCronetEngineCreated = 703,
3444    AtomCronetTrafficReported = 704,
3445    AtomCronetEngineBuilderInitialized = 762,
3446    AtomCronetHttpFlagsInitialized = 763,
3447    AtomCronetInitialized = 764,
3448    AtomDesktopModeUiChanged = 818,
3449    AtomDesktopModeSessionTaskUpdate = 819,
3450    AtomDesktopModeTaskSizeUpdated = 935,
3451    AtomDeviceLockCheckInRequestReported = 726,
3452    AtomDeviceLockProvisioningCompleteReported = 727,
3453    AtomDeviceLockKioskAppRequestReported = 728,
3454    AtomDeviceLockCheckInRetryReported = 789,
3455    AtomDeviceLockProvisionFailureReported = 790,
3456    AtomDeviceLockLockUnlockDeviceFailureReported = 791,
3457    AtomDevicePolicyManagementMode = 10216,
3458    AtomDevicePolicyState = 10217,
3459    AtomDisplayModeDirectorVoteChanged = 792,
3460    AtomExternalDisplayStateChanged = 806,
3461    AtomDndStateChanged = 657,
3462    AtomDreamSettingChanged = 705,
3463    AtomDreamSettingSnapshot = 10192,
3464    AtomExpressEventReported = 528,
3465    AtomExpressHistogramSampleReported = 593,
3466    AtomExpressUidEventReported = 644,
3467    AtomExpressUidHistogramSampleReported = 658,
3468    AtomFederatedComputeApiCalled = 712,
3469    AtomFederatedComputeTrainingEventReported = 771,
3470    AtomExampleIteratorNextLatencyReported = 838,
3471    AtomFullScreenIntentLaunched = 631,
3472    AtomBalAllowed = 632,
3473    AtomInTaskActivityStarted = 685,
3474    AtomDeviceOrientationChanged = 906,
3475    AtomCachedAppsHighWatermark = 10189,
3476    AtomStylusPredictionMetricsReported = 718,
3477    AtomUserRiskEventReported = 725,
3478    AtomMediaProjectionStateChanged = 729,
3479    AtomMediaProjectionTargetChanged = 730,
3480    AtomExcessiveBinderProxyCountReported = 853,
3481    AtomProxyBytesTransferByFgBg = 10200,
3482    AtomMobileBytesTransferByProcState = 10204,
3483    AtomBiometricFrrNotification = 817,
3484    AtomSensitiveContentMediaProjectionSession = 830,
3485    AtomSensitiveNotificationAppProtectionSession = 831,
3486    AtomSensitiveNotificationAppProtectionApplied = 832,
3487    AtomSensitiveNotificationRedaction = 833,
3488    AtomSensitiveContentAppProtection = 835,
3489    AtomAppRestrictionStateChanged = 866,
3490    AtomBatteryUsageStatsPerUid = 10209,
3491    AtomPostgcMemorySnapshot = 924,
3492    AtomPowerSaveTempAllowlistChanged = 926,
3493    AtomAppOpAccessTracked = 931,
3494    AtomContentOrFileUriEventReported = 933,
3495    AtomApplicationGrammaticalInflectionChanged = 584,
3496    AtomSystemGrammaticalInflectionChanged = 816,
3497    AtomBatteryHealth = 10220,
3498    AtomHdmiEarcStatusReported = 701,
3499    AtomHdmiSoundbarModeStatusReported = 724,
3500    AtomHealthConnectApiCalled = 616,
3501    AtomHealthConnectUsageStats = 617,
3502    AtomHealthConnectStorageStats = 618,
3503    AtomHealthConnectApiInvoked = 643,
3504    AtomExerciseRouteApiCalled = 654,
3505    AtomHealthConnectExportInvoked = 907,
3506    AtomHealthConnectImportInvoked = 918,
3507    AtomHealthConnectExportImportStatsReported = 919,
3508    AtomHealthConnectUiImpression = 623,
3509    AtomHealthConnectUiInteraction = 624,
3510    AtomHealthConnectAppOpenedReported = 625,
3511    AtomHotwordEgressSizeAtomReported = 761,
3512    AtomIkeSessionTerminated = 678,
3513    AtomIkeLivenessCheckSessionValidated = 760,
3514    AtomNegotiatedSecurityAssociation = 821,
3515    AtomKeyboardConfigured = 682,
3516    AtomKeyboardSystemsEventReported = 683,
3517    AtomInputdeviceUsageReported = 686,
3518    AtomInputEventLatencyReported = 932,
3519    AtomTouchpadUsage = 10191,
3520    AtomKernelOomKillOccurred = 754,
3521    AtomEmergencyStateChanged = 633,
3522    AtomChreSignificantMotionStateChanged = 868,
3523    AtomPopulationDensityProviderLoadingReported = 1002,
3524    AtomDensityBasedCoarseLocationsUsageReported = 1003,
3525    AtomDensityBasedCoarseLocationsProviderQueryReported = 1004,
3526    AtomMediaCodecReclaimRequestCompleted = 600,
3527    AtomMediaCodecStarted = 641,
3528    AtomMediaCodecStopped = 642,
3529    AtomMediaCodecRendered = 684,
3530    AtomMediaEditingEndedReported = 798,
3531    AtomMteState = 10181,
3532    AtomMicroxrDeviceBootCompleteReported = 901,
3533    AtomNfcObserveModeStateChanged = 855,
3534    AtomNfcFieldChanged = 856,
3535    AtomNfcPollingLoopNotificationReported = 857,
3536    AtomNfcProprietaryCapabilitiesReported = 858,
3537    AtomOndevicepersonalizationApiCalled = 711,
3538    AtomComponentStateChangedReported = 863,
3539    AtomPdfLoadReported = 859,
3540    AtomPdfApiUsageReported = 860,
3541    AtomPdfSearchReported = 861,
3542    AtomPressureStallInformation = 10229,
3543    AtomPermissionRationaleDialogViewed = 645,
3544    AtomPermissionRationaleDialogActionReported = 646,
3545    AtomAppDataSharingUpdatesNotificationInteraction = 647,
3546    AtomAppDataSharingUpdatesFragmentViewed = 648,
3547    AtomAppDataSharingUpdatesFragmentActionReported = 649,
3548    AtomEnhancedConfirmationDialogResultReported = 827,
3549    AtomEnhancedConfirmationRestrictionCleared = 828,
3550    AtomPhotopickerSessionInfoReported = 886,
3551    AtomPhotopickerApiInfoReported = 887,
3552    AtomPhotopickerUiEventLogged = 888,
3553    AtomPhotopickerMediaItemStatusReported = 889,
3554    AtomPhotopickerPreviewInfoLogged = 890,
3555    AtomPhotopickerMenuInteractionLogged = 891,
3556    AtomPhotopickerBannerInteractionLogged = 892,
3557    AtomPhotopickerMediaLibraryInfoLogged = 893,
3558    AtomPhotopickerPageInfoLogged = 894,
3559    AtomPhotopickerMediaGridSyncInfoReported = 895,
3560    AtomPhotopickerAlbumSyncInfoReported = 896,
3561    AtomPhotopickerSearchInfoReported = 897,
3562    AtomSearchDataExtractionDetailsReported = 898,
3563    AtomEmbeddedPhotopickerInfoReported = 899,
3564    AtomAtom9999 = 9999,
3565    AtomAtom99999 = 99999,
3566    AtomScreenOffReported = 776,
3567    AtomScreenTimeoutOverrideReported = 836,
3568    AtomScreenInteractiveSessionReported = 837,
3569    AtomScreenDimReported = 867,
3570    AtomMediaProviderDatabaseRollbackReported = 784,
3571    AtomBackupSetupStatusReported = 785,
3572    AtomRangingSessionConfigured = 993,
3573    AtomRangingSessionStarted = 994,
3574    AtomRangingSessionClosed = 995,
3575    AtomRangingTechnologyStarted = 996,
3576    AtomRangingTechnologyStopped = 997,
3577    AtomRkpdPoolStats = 664,
3578    AtomRkpdClientOperation = 665,
3579    AtomSandboxApiCalled = 488,
3580    AtomSandboxActivityEventOccurred = 735,
3581    AtomSdkSandboxRestrictedAccessInSession = 796,
3582    AtomSandboxSdkStorage = 10159,
3583    AtomSelinuxAuditLog = 799,
3584    AtomSettingsSpaReported = 622,
3585    AtomTestExtensionAtomReported = 660,
3586    AtomTestRestrictedAtomReported = 672,
3587    AtomStatsSocketLossReported = 752,
3588    AtomLockscreenShortcutSelected = 611,
3589    AtomLockscreenShortcutTriggered = 612,
3590    AtomLauncherImpressionEventV2 = 716,
3591    AtomDisplaySwitchLatencyTracked = 753,
3592    AtomNotificationListenerService = 829,
3593    AtomNavHandleTouchPoints = 869,
3594    AtomCommunalHubWidgetEventReported = 908,
3595    AtomCommunalHubSnapshot = 10226,
3596    AtomEmergencyNumberDialed = 637,
3597    AtomCallStats = 10221,
3598    AtomCallAudioRouteStats = 10222,
3599    AtomTelecomApiStats = 10223,
3600    AtomTelecomErrorStats = 10224,
3601    AtomCellularRadioPowerStateChanged = 713,
3602    AtomEmergencyNumbersInfo = 10180,
3603    AtomDataNetworkValidation = 10207,
3604    AtomDataRatStateChanged = 854,
3605    AtomConnectedChannelChanged = 882,
3606    AtomIwlanUnderlyingNetworkValidationResultReported = 923,
3607    AtomQualifiedRatListChanged = 634,
3608    AtomQnsImsCallDropStats = 635,
3609    AtomQnsFallbackRestrictionChanged = 636,
3610    AtomQnsRatPreferenceMismatchInfo = 10177,
3611    AtomQnsHandoverTimeMillis = 10178,
3612    AtomQnsHandoverPingpong = 10179,
3613    AtomSatelliteController = 10182,
3614    AtomSatelliteSession = 10183,
3615    AtomSatelliteIncomingDatagram = 10184,
3616    AtomSatelliteOutgoingDatagram = 10185,
3617    AtomSatelliteProvision = 10186,
3618    AtomSatelliteSosMessageRecommender = 10187,
3619    AtomCarrierRoamingSatelliteSession = 10211,
3620    AtomCarrierRoamingSatelliteControllerStats = 10212,
3621    AtomControllerStatsPerPackage = 10213,
3622    AtomSatelliteEntitlement = 10214,
3623    AtomSatelliteConfigUpdater = 10215,
3624    AtomSatelliteAccessController = 10219,
3625    AtomCellularIdentifierDisclosed = 800,
3626    AtomThreadnetworkTelemetryDataReported = 738,
3627    AtomThreadnetworkTopoEntryRepeated = 739,
3628    AtomThreadnetworkDeviceInfoReported = 740,
3629    AtomBootIntegrityInfoReported = 775,
3630    AtomTvLowPowerStandbyPolicy = 679,
3631    AtomExternalTvInputEvent = 717,
3632    AtomTestUprobestatsAtomReported = 915,
3633    AtomUwbActivityInfo = 10188,
3634    AtomMediatorUpdated = 721,
3635    AtomSysproxyBluetoothBytesTransfer = 10196,
3636    AtomSysproxyConnectionUpdated = 786,
3637    AtomWearCompanionConnectionState = 921,
3638    AtomMediaActionReported = 608,
3639    AtomMediaControlsLaunched = 609,
3640    AtomMediaSessionStateChanged = 677,
3641    AtomWearMediaOutputSwitcherDeviceScanApiLatency = 757,
3642    AtomWearMediaOutputSwitcherSassDeviceUnavailable = 758,
3643    AtomWearMediaOutputSwitcherFastpairApiTimeout = 759,
3644    AtomWearModeStateChanged = 715,
3645    AtomRendererInitialized = 736,
3646    AtomSchemaVersionReceived = 737,
3647    AtomLayoutInspected = 741,
3648    AtomLayoutExpressionInspected = 742,
3649    AtomLayoutAnimationsInspected = 743,
3650    AtomMaterialComponentsInspected = 744,
3651    AtomTileRequested = 745,
3652    AtomStateResponseReceived = 746,
3653    AtomTileResponseReceived = 747,
3654    AtomInflationFinished = 748,
3655    AtomInflationFailed = 749,
3656    AtomIgnoredInflationFailuresReported = 750,
3657    AtomDrawableRendered = 751,
3658    AtomWearTimeSyncRequested = 911,
3659    AtomWearTimeUpdateStarted = 912,
3660    AtomWearTimeSyncAttemptCompleted = 913,
3661    AtomWearTimeChanged = 914,
3662    AtomWearAdaptiveSuspendStatsReported = 619,
3663    AtomWearPowerAnomalyServiceOperationalStatsReported = 620,
3664    AtomWearPowerAnomalyServiceEventStatsReported = 621,
3665    AtomWsWearTimeSession = 610,
3666    AtomWsIncomingCallActionReported = 626,
3667    AtomWsCallDisconnectionReported = 627,
3668    AtomWsCallDurationReported = 628,
3669    AtomWsCallUserExperienceLatencyReported = 629,
3670    AtomWsCallInteractionReported = 630,
3671    AtomWsOnBodyStateChanged = 787,
3672    AtomWsWatchFaceRestrictedComplicationsImpacted = 802,
3673    AtomWsWatchFaceDefaultRestrictedComplicationsRemoved = 803,
3674    AtomWsComplicationsImpactedNotificationEventReported = 804,
3675    AtomWsRemoteEventUsageReported = 920,
3676    AtomWsBugreportRequested = 936,
3677    AtomWsBugreportTriggered = 937,
3678    AtomWsBugreportFinished = 938,
3679    AtomWsBugreportResultReceived = 939,
3680    AtomWsStandaloneModeSnapshot = 10197,
3681    AtomWsFavoriteWatchFaceSnapshot = 10206,
3682    AtomWsPhotosWatchFaceFeatureSnapshot = 10225,
3683    AtomWsWatchFaceCustomizationSnapshot = 10227,
3684    AtomWearPowerMenuOpened = 731,
3685    AtomWearAssistantOpened = 755,
3686    AtomFirstOverlayStateChanged = 917,
3687    AtomWifiAwareNdpReported = 638,
3688    AtomWifiAwareAttachReported = 639,
3689    AtomWifiSelfRecoveryTriggered = 661,
3690    AtomSoftApStarted = 680,
3691    AtomSoftApStopped = 681,
3692    AtomWifiLockReleased = 687,
3693    AtomWifiLockDeactivated = 688,
3694    AtomWifiConfigSaved = 689,
3695    AtomWifiAwareResourceUsingChanged = 690,
3696    AtomWifiAwareHalApiCalled = 691,
3697    AtomWifiLocalOnlyRequestReceived = 692,
3698    AtomWifiLocalOnlyRequestScanTriggered = 693,
3699    AtomWifiThreadTaskExecuted = 694,
3700    AtomWifiStateChanged = 700,
3701    AtomPnoScanStarted = 719,
3702    AtomPnoScanStopped = 720,
3703    AtomWifiIsUnusableReported = 722,
3704    AtomWifiApCapabilitiesReported = 723,
3705    AtomSoftApStateChanged = 805,
3706    AtomScorerPredictionResultReported = 884,
3707    AtomWifiAwareCapabilities = 10190,
3708    AtomWifiModuleInfo = 10193,
3709    AtomWifiSettingInfo = 10194,
3710    AtomWifiComplexSettingInfo = 10195,
3711    AtomWifiConfiguredNetworkInfo = 10198,
3712}
3713impl AtomId {
3714    /// String value of the enum field names used in the ProtoBuf definition.
3715    ///
3716    /// The values are not transformed in any way and thus are considered stable
3717    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3718    pub fn as_str_name(&self) -> &'static str {
3719        match self {
3720            AtomId::AtomUnspecified => "ATOM_UNSPECIFIED",
3721            AtomId::AtomBleScanStateChanged => "ATOM_BLE_SCAN_STATE_CHANGED",
3722            AtomId::AtomProcessStateChanged => "ATOM_PROCESS_STATE_CHANGED",
3723            AtomId::AtomBleScanResultReceived => "ATOM_BLE_SCAN_RESULT_RECEIVED",
3724            AtomId::AtomSensorStateChanged => "ATOM_SENSOR_STATE_CHANGED",
3725            AtomId::AtomGpsScanStateChanged => "ATOM_GPS_SCAN_STATE_CHANGED",
3726            AtomId::AtomSyncStateChanged => "ATOM_SYNC_STATE_CHANGED",
3727            AtomId::AtomScheduledJobStateChanged => "ATOM_SCHEDULED_JOB_STATE_CHANGED",
3728            AtomId::AtomScreenBrightnessChanged => "ATOM_SCREEN_BRIGHTNESS_CHANGED",
3729            AtomId::AtomWakelockStateChanged => "ATOM_WAKELOCK_STATE_CHANGED",
3730            AtomId::AtomLongPartialWakelockStateChanged => "ATOM_LONG_PARTIAL_WAKELOCK_STATE_CHANGED",
3731            AtomId::AtomMobileRadioPowerStateChanged => "ATOM_MOBILE_RADIO_POWER_STATE_CHANGED",
3732            AtomId::AtomWifiRadioPowerStateChanged => "ATOM_WIFI_RADIO_POWER_STATE_CHANGED",
3733            AtomId::AtomActivityManagerSleepStateChanged => "ATOM_ACTIVITY_MANAGER_SLEEP_STATE_CHANGED",
3734            AtomId::AtomMemoryFactorStateChanged => "ATOM_MEMORY_FACTOR_STATE_CHANGED",
3735            AtomId::AtomExcessiveCpuUsageReported => "ATOM_EXCESSIVE_CPU_USAGE_REPORTED",
3736            AtomId::AtomCachedKillReported => "ATOM_CACHED_KILL_REPORTED",
3737            AtomId::AtomProcessMemoryStatReported => "ATOM_PROCESS_MEMORY_STAT_REPORTED",
3738            AtomId::AtomLauncherEvent => "ATOM_LAUNCHER_EVENT",
3739            AtomId::AtomBatterySaverModeStateChanged => "ATOM_BATTERY_SAVER_MODE_STATE_CHANGED",
3740            AtomId::AtomDeviceIdleModeStateChanged => "ATOM_DEVICE_IDLE_MODE_STATE_CHANGED",
3741            AtomId::AtomDeviceIdlingModeStateChanged => "ATOM_DEVICE_IDLING_MODE_STATE_CHANGED",
3742            AtomId::AtomAudioStateChanged => "ATOM_AUDIO_STATE_CHANGED",
3743            AtomId::AtomMediaCodecStateChanged => "ATOM_MEDIA_CODEC_STATE_CHANGED",
3744            AtomId::AtomCameraStateChanged => "ATOM_CAMERA_STATE_CHANGED",
3745            AtomId::AtomFlashlightStateChanged => "ATOM_FLASHLIGHT_STATE_CHANGED",
3746            AtomId::AtomUidProcessStateChanged => "ATOM_UID_PROCESS_STATE_CHANGED",
3747            AtomId::AtomProcessLifeCycleStateChanged => "ATOM_PROCESS_LIFE_CYCLE_STATE_CHANGED",
3748            AtomId::AtomScreenStateChanged => "ATOM_SCREEN_STATE_CHANGED",
3749            AtomId::AtomBatteryLevelChanged => "ATOM_BATTERY_LEVEL_CHANGED",
3750            AtomId::AtomChargingStateChanged => "ATOM_CHARGING_STATE_CHANGED",
3751            AtomId::AtomPluggedStateChanged => "ATOM_PLUGGED_STATE_CHANGED",
3752            AtomId::AtomInteractiveStateChanged => "ATOM_INTERACTIVE_STATE_CHANGED",
3753            AtomId::AtomTouchEventReported => "ATOM_TOUCH_EVENT_REPORTED",
3754            AtomId::AtomWakeupAlarmOccurred => "ATOM_WAKEUP_ALARM_OCCURRED",
3755            AtomId::AtomKernelWakeupReported => "ATOM_KERNEL_WAKEUP_REPORTED",
3756            AtomId::AtomWifiLockStateChanged => "ATOM_WIFI_LOCK_STATE_CHANGED",
3757            AtomId::AtomWifiSignalStrengthChanged => "ATOM_WIFI_SIGNAL_STRENGTH_CHANGED",
3758            AtomId::AtomWifiScanStateChanged => "ATOM_WIFI_SCAN_STATE_CHANGED",
3759            AtomId::AtomPhoneSignalStrengthChanged => "ATOM_PHONE_SIGNAL_STRENGTH_CHANGED",
3760            AtomId::AtomSettingChanged => "ATOM_SETTING_CHANGED",
3761            AtomId::AtomActivityForegroundStateChanged => "ATOM_ACTIVITY_FOREGROUND_STATE_CHANGED",
3762            AtomId::AtomIsolatedUidChanged => "ATOM_ISOLATED_UID_CHANGED",
3763            AtomId::AtomPacketWakeupOccurred => "ATOM_PACKET_WAKEUP_OCCURRED",
3764            AtomId::AtomWallClockTimeShifted => "ATOM_WALL_CLOCK_TIME_SHIFTED",
3765            AtomId::AtomAnomalyDetected => "ATOM_ANOMALY_DETECTED",
3766            AtomId::AtomAppBreadcrumbReported => "ATOM_APP_BREADCRUMB_REPORTED",
3767            AtomId::AtomAppStartOccurred => "ATOM_APP_START_OCCURRED",
3768            AtomId::AtomAppStartCanceled => "ATOM_APP_START_CANCELED",
3769            AtomId::AtomAppStartFullyDrawn => "ATOM_APP_START_FULLY_DRAWN",
3770            AtomId::AtomLmkKillOccurred => "ATOM_LMK_KILL_OCCURRED",
3771            AtomId::AtomPictureInPictureStateChanged => "ATOM_PICTURE_IN_PICTURE_STATE_CHANGED",
3772            AtomId::AtomWifiMulticastLockStateChanged => "ATOM_WIFI_MULTICAST_LOCK_STATE_CHANGED",
3773            AtomId::AtomAppStartMemoryStateCaptured => "ATOM_APP_START_MEMORY_STATE_CAPTURED",
3774            AtomId::AtomShutdownSequenceReported => "ATOM_SHUTDOWN_SEQUENCE_REPORTED",
3775            AtomId::AtomBootSequenceReported => "ATOM_BOOT_SEQUENCE_REPORTED",
3776            AtomId::AtomOverlayStateChanged => "ATOM_OVERLAY_STATE_CHANGED",
3777            AtomId::AtomForegroundServiceStateChanged => "ATOM_FOREGROUND_SERVICE_STATE_CHANGED",
3778            AtomId::AtomCallStateChanged => "ATOM_CALL_STATE_CHANGED",
3779            AtomId::AtomKeyguardStateChanged => "ATOM_KEYGUARD_STATE_CHANGED",
3780            AtomId::AtomKeyguardBouncerStateChanged => "ATOM_KEYGUARD_BOUNCER_STATE_CHANGED",
3781            AtomId::AtomKeyguardBouncerPasswordEntered => "ATOM_KEYGUARD_BOUNCER_PASSWORD_ENTERED",
3782            AtomId::AtomAppDied => "ATOM_APP_DIED",
3783            AtomId::AtomResourceConfigurationChanged => "ATOM_RESOURCE_CONFIGURATION_CHANGED",
3784            AtomId::AtomBluetoothEnabledStateChanged => "ATOM_BLUETOOTH_ENABLED_STATE_CHANGED",
3785            AtomId::AtomBluetoothConnectionStateChanged => "ATOM_BLUETOOTH_CONNECTION_STATE_CHANGED",
3786            AtomId::AtomGpsSignalQualityChanged => "ATOM_GPS_SIGNAL_QUALITY_CHANGED",
3787            AtomId::AtomUsbConnectorStateChanged => "ATOM_USB_CONNECTOR_STATE_CHANGED",
3788            AtomId::AtomSpeakerImpedanceReported => "ATOM_SPEAKER_IMPEDANCE_REPORTED",
3789            AtomId::AtomHardwareFailed => "ATOM_HARDWARE_FAILED",
3790            AtomId::AtomPhysicalDropDetected => "ATOM_PHYSICAL_DROP_DETECTED",
3791            AtomId::AtomChargeCyclesReported => "ATOM_CHARGE_CYCLES_REPORTED",
3792            AtomId::AtomMobileConnectionStateChanged => "ATOM_MOBILE_CONNECTION_STATE_CHANGED",
3793            AtomId::AtomMobileRadioTechnologyChanged => "ATOM_MOBILE_RADIO_TECHNOLOGY_CHANGED",
3794            AtomId::AtomUsbDeviceAttached => "ATOM_USB_DEVICE_ATTACHED",
3795            AtomId::AtomAppCrashOccurred => "ATOM_APP_CRASH_OCCURRED",
3796            AtomId::AtomAnrOccurred => "ATOM_ANR_OCCURRED",
3797            AtomId::AtomWtfOccurred => "ATOM_WTF_OCCURRED",
3798            AtomId::AtomLowMemReported => "ATOM_LOW_MEM_REPORTED",
3799            AtomId::AtomGenericAtom => "ATOM_GENERIC_ATOM",
3800            AtomId::AtomVibratorStateChanged => "ATOM_VIBRATOR_STATE_CHANGED",
3801            AtomId::AtomDeferredJobStatsReported => "ATOM_DEFERRED_JOB_STATS_REPORTED",
3802            AtomId::AtomThermalThrottling => "ATOM_THERMAL_THROTTLING",
3803            AtomId::AtomBiometricAcquired => "ATOM_BIOMETRIC_ACQUIRED",
3804            AtomId::AtomBiometricAuthenticated => "ATOM_BIOMETRIC_AUTHENTICATED",
3805            AtomId::AtomBiometricErrorOccurred => "ATOM_BIOMETRIC_ERROR_OCCURRED",
3806            AtomId::AtomUiEventReported => "ATOM_UI_EVENT_REPORTED",
3807            AtomId::AtomBatteryHealthSnapshot => "ATOM_BATTERY_HEALTH_SNAPSHOT",
3808            AtomId::AtomSlowIo => "ATOM_SLOW_IO",
3809            AtomId::AtomBatteryCausedShutdown => "ATOM_BATTERY_CAUSED_SHUTDOWN",
3810            AtomId::AtomPhoneServiceStateChanged => "ATOM_PHONE_SERVICE_STATE_CHANGED",
3811            AtomId::AtomPhoneStateChanged => "ATOM_PHONE_STATE_CHANGED",
3812            AtomId::AtomUserRestrictionChanged => "ATOM_USER_RESTRICTION_CHANGED",
3813            AtomId::AtomSettingsUiChanged => "ATOM_SETTINGS_UI_CHANGED",
3814            AtomId::AtomConnectivityStateChanged => "ATOM_CONNECTIVITY_STATE_CHANGED",
3815            AtomId::AtomServiceStateChanged => "ATOM_SERVICE_STATE_CHANGED",
3816            AtomId::AtomServiceLaunchReported => "ATOM_SERVICE_LAUNCH_REPORTED",
3817            AtomId::AtomFlagFlipUpdateOccurred => "ATOM_FLAG_FLIP_UPDATE_OCCURRED",
3818            AtomId::AtomBinaryPushStateChanged => "ATOM_BINARY_PUSH_STATE_CHANGED",
3819            AtomId::AtomDevicePolicyEvent => "ATOM_DEVICE_POLICY_EVENT",
3820            AtomId::AtomDocsUiFileOpCanceled => "ATOM_DOCS_UI_FILE_OP_CANCELED",
3821            AtomId::AtomDocsUiFileOpCopyMoveModeReported => "ATOM_DOCS_UI_FILE_OP_COPY_MOVE_MODE_REPORTED",
3822            AtomId::AtomDocsUiFileOpFailure => "ATOM_DOCS_UI_FILE_OP_FAILURE",
3823            AtomId::AtomDocsUiProviderFileOp => "ATOM_DOCS_UI_PROVIDER_FILE_OP",
3824            AtomId::AtomDocsUiInvalidScopedAccessRequest => "ATOM_DOCS_UI_INVALID_SCOPED_ACCESS_REQUEST",
3825            AtomId::AtomDocsUiLaunchReported => "ATOM_DOCS_UI_LAUNCH_REPORTED",
3826            AtomId::AtomDocsUiRootVisited => "ATOM_DOCS_UI_ROOT_VISITED",
3827            AtomId::AtomDocsUiStartupMs => "ATOM_DOCS_UI_STARTUP_MS",
3828            AtomId::AtomDocsUiUserActionReported => "ATOM_DOCS_UI_USER_ACTION_REPORTED",
3829            AtomId::AtomWifiEnabledStateChanged => "ATOM_WIFI_ENABLED_STATE_CHANGED",
3830            AtomId::AtomWifiRunningStateChanged => "ATOM_WIFI_RUNNING_STATE_CHANGED",
3831            AtomId::AtomAppCompacted => "ATOM_APP_COMPACTED",
3832            AtomId::AtomNetworkDnsEventReported => "ATOM_NETWORK_DNS_EVENT_REPORTED",
3833            AtomId::AtomDocsUiPickerLaunchedFromReported => "ATOM_DOCS_UI_PICKER_LAUNCHED_FROM_REPORTED",
3834            AtomId::AtomDocsUiPickResultReported => "ATOM_DOCS_UI_PICK_RESULT_REPORTED",
3835            AtomId::AtomDocsUiSearchModeReported => "ATOM_DOCS_UI_SEARCH_MODE_REPORTED",
3836            AtomId::AtomDocsUiSearchTypeReported => "ATOM_DOCS_UI_SEARCH_TYPE_REPORTED",
3837            AtomId::AtomDataStallEvent => "ATOM_DATA_STALL_EVENT",
3838            AtomId::AtomRescuePartyResetReported => "ATOM_RESCUE_PARTY_RESET_REPORTED",
3839            AtomId::AtomSignedConfigReported => "ATOM_SIGNED_CONFIG_REPORTED",
3840            AtomId::AtomGnssNiEventReported => "ATOM_GNSS_NI_EVENT_REPORTED",
3841            AtomId::AtomBluetoothLinkLayerConnectionEvent => "ATOM_BLUETOOTH_LINK_LAYER_CONNECTION_EVENT",
3842            AtomId::AtomBluetoothAclConnectionStateChanged => "ATOM_BLUETOOTH_ACL_CONNECTION_STATE_CHANGED",
3843            AtomId::AtomBluetoothScoConnectionStateChanged => "ATOM_BLUETOOTH_SCO_CONNECTION_STATE_CHANGED",
3844            AtomId::AtomAppDowngraded => "ATOM_APP_DOWNGRADED",
3845            AtomId::AtomAppOptimizedAfterDowngraded => "ATOM_APP_OPTIMIZED_AFTER_DOWNGRADED",
3846            AtomId::AtomLowStorageStateChanged => "ATOM_LOW_STORAGE_STATE_CHANGED",
3847            AtomId::AtomGnssNfwNotificationReported => "ATOM_GNSS_NFW_NOTIFICATION_REPORTED",
3848            AtomId::AtomGnssConfigurationReported => "ATOM_GNSS_CONFIGURATION_REPORTED",
3849            AtomId::AtomUsbPortOverheatEventReported => "ATOM_USB_PORT_OVERHEAT_EVENT_REPORTED",
3850            AtomId::AtomNfcErrorOccurred => "ATOM_NFC_ERROR_OCCURRED",
3851            AtomId::AtomNfcStateChanged => "ATOM_NFC_STATE_CHANGED",
3852            AtomId::AtomNfcBeamOccurred => "ATOM_NFC_BEAM_OCCURRED",
3853            AtomId::AtomNfcCardemulationOccurred => "ATOM_NFC_CARDEMULATION_OCCURRED",
3854            AtomId::AtomNfcTagOccurred => "ATOM_NFC_TAG_OCCURRED",
3855            AtomId::AtomNfcHceTransactionOccurred => "ATOM_NFC_HCE_TRANSACTION_OCCURRED",
3856            AtomId::AtomSeStateChanged => "ATOM_SE_STATE_CHANGED",
3857            AtomId::AtomSeOmapiReported => "ATOM_SE_OMAPI_REPORTED",
3858            AtomId::AtomBroadcastDispatchLatencyReported => "ATOM_BROADCAST_DISPATCH_LATENCY_REPORTED",
3859            AtomId::AtomAttentionManagerServiceResultReported => "ATOM_ATTENTION_MANAGER_SERVICE_RESULT_REPORTED",
3860            AtomId::AtomAdbConnectionChanged => "ATOM_ADB_CONNECTION_CHANGED",
3861            AtomId::AtomSpeechDspStatReported => "ATOM_SPEECH_DSP_STAT_REPORTED",
3862            AtomId::AtomUsbContaminantReported => "ATOM_USB_CONTAMINANT_REPORTED",
3863            AtomId::AtomWatchdogRollbackOccurred => "ATOM_WATCHDOG_ROLLBACK_OCCURRED",
3864            AtomId::AtomBiometricSystemHealthIssueDetected => "ATOM_BIOMETRIC_SYSTEM_HEALTH_ISSUE_DETECTED",
3865            AtomId::AtomBubbleUiChanged => "ATOM_BUBBLE_UI_CHANGED",
3866            AtomId::AtomScheduledJobConstraintChanged => "ATOM_SCHEDULED_JOB_CONSTRAINT_CHANGED",
3867            AtomId::AtomBluetoothActiveDeviceChanged => "ATOM_BLUETOOTH_ACTIVE_DEVICE_CHANGED",
3868            AtomId::AtomBluetoothA2dpPlaybackStateChanged => "ATOM_BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED",
3869            AtomId::AtomBluetoothA2dpCodecConfigChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CONFIG_CHANGED",
3870            AtomId::AtomBluetoothA2dpCodecCapabilityChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CAPABILITY_CHANGED",
3871            AtomId::AtomBluetoothA2dpAudioUnderrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_UNDERRUN_REPORTED",
3872            AtomId::AtomBluetoothA2dpAudioOverrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_OVERRUN_REPORTED",
3873            AtomId::AtomBluetoothDeviceRssiReported => "ATOM_BLUETOOTH_DEVICE_RSSI_REPORTED",
3874            AtomId::AtomBluetoothDeviceFailedContactCounterReported => "ATOM_BLUETOOTH_DEVICE_FAILED_CONTACT_COUNTER_REPORTED",
3875            AtomId::AtomBluetoothDeviceTxPowerLevelReported => "ATOM_BLUETOOTH_DEVICE_TX_POWER_LEVEL_REPORTED",
3876            AtomId::AtomBluetoothHciTimeoutReported => "ATOM_BLUETOOTH_HCI_TIMEOUT_REPORTED",
3877            AtomId::AtomBluetoothQualityReportReported => "ATOM_BLUETOOTH_QUALITY_REPORT_REPORTED",
3878            AtomId::AtomBluetoothDeviceInfoReported => "ATOM_BLUETOOTH_DEVICE_INFO_REPORTED",
3879            AtomId::AtomBluetoothRemoteVersionInfoReported => "ATOM_BLUETOOTH_REMOTE_VERSION_INFO_REPORTED",
3880            AtomId::AtomBluetoothSdpAttributeReported => "ATOM_BLUETOOTH_SDP_ATTRIBUTE_REPORTED",
3881            AtomId::AtomBluetoothBondStateChanged => "ATOM_BLUETOOTH_BOND_STATE_CHANGED",
3882            AtomId::AtomBluetoothClassicPairingEventReported => "ATOM_BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED",
3883            AtomId::AtomBluetoothSmpPairingEventReported => "ATOM_BLUETOOTH_SMP_PAIRING_EVENT_REPORTED",
3884            AtomId::AtomScreenTimeoutExtensionReported => "ATOM_SCREEN_TIMEOUT_EXTENSION_REPORTED",
3885            AtomId::AtomProcessStartTime => "ATOM_PROCESS_START_TIME",
3886            AtomId::AtomPermissionGrantRequestResultReported => "ATOM_PERMISSION_GRANT_REQUEST_RESULT_REPORTED",
3887            AtomId::AtomBluetoothSocketConnectionStateChanged => "ATOM_BLUETOOTH_SOCKET_CONNECTION_STATE_CHANGED",
3888            AtomId::AtomDeviceIdentifierAccessDenied => "ATOM_DEVICE_IDENTIFIER_ACCESS_DENIED",
3889            AtomId::AtomBubbleDeveloperErrorReported => "ATOM_BUBBLE_DEVELOPER_ERROR_REPORTED",
3890            AtomId::AtomAssistGestureStageReported => "ATOM_ASSIST_GESTURE_STAGE_REPORTED",
3891            AtomId::AtomAssistGestureFeedbackReported => "ATOM_ASSIST_GESTURE_FEEDBACK_REPORTED",
3892            AtomId::AtomAssistGestureProgressReported => "ATOM_ASSIST_GESTURE_PROGRESS_REPORTED",
3893            AtomId::AtomTouchGestureClassified => "ATOM_TOUCH_GESTURE_CLASSIFIED",
3894            AtomId::AtomHiddenApiUsed => "ATOM_HIDDEN_API_USED",
3895            AtomId::AtomStyleUiChanged => "ATOM_STYLE_UI_CHANGED",
3896            AtomId::AtomPrivacyIndicatorsInteracted => "ATOM_PRIVACY_INDICATORS_INTERACTED",
3897            AtomId::AtomAppInstallOnExternalStorageReported => "ATOM_APP_INSTALL_ON_EXTERNAL_STORAGE_REPORTED",
3898            AtomId::AtomNetworkStackReported => "ATOM_NETWORK_STACK_REPORTED",
3899            AtomId::AtomAppMovedStorageReported => "ATOM_APP_MOVED_STORAGE_REPORTED",
3900            AtomId::AtomBiometricEnrolled => "ATOM_BIOMETRIC_ENROLLED",
3901            AtomId::AtomSystemServerWatchdogOccurred => "ATOM_SYSTEM_SERVER_WATCHDOG_OCCURRED",
3902            AtomId::AtomTombStoneOccurred => "ATOM_TOMB_STONE_OCCURRED",
3903            AtomId::AtomBluetoothClassOfDeviceReported => "ATOM_BLUETOOTH_CLASS_OF_DEVICE_REPORTED",
3904            AtomId::AtomIntelligenceEventReported => "ATOM_INTELLIGENCE_EVENT_REPORTED",
3905            AtomId::AtomThermalThrottlingSeverityStateChanged => "ATOM_THERMAL_THROTTLING_SEVERITY_STATE_CHANGED",
3906            AtomId::AtomRoleRequestResultReported => "ATOM_ROLE_REQUEST_RESULT_REPORTED",
3907            AtomId::AtomMediametricsAudiopolicyReported => "ATOM_MEDIAMETRICS_AUDIOPOLICY_REPORTED",
3908            AtomId::AtomMediametricsAudiorecordReported => "ATOM_MEDIAMETRICS_AUDIORECORD_REPORTED",
3909            AtomId::AtomMediametricsAudiothreadReported => "ATOM_MEDIAMETRICS_AUDIOTHREAD_REPORTED",
3910            AtomId::AtomMediametricsAudiotrackReported => "ATOM_MEDIAMETRICS_AUDIOTRACK_REPORTED",
3911            AtomId::AtomMediametricsCodecReported => "ATOM_MEDIAMETRICS_CODEC_REPORTED",
3912            AtomId::AtomMediametricsDrmWidevineReported => "ATOM_MEDIAMETRICS_DRM_WIDEVINE_REPORTED",
3913            AtomId::AtomMediametricsExtractorReported => "ATOM_MEDIAMETRICS_EXTRACTOR_REPORTED",
3914            AtomId::AtomMediametricsMediadrmReported => "ATOM_MEDIAMETRICS_MEDIADRM_REPORTED",
3915            AtomId::AtomMediametricsNuplayerReported => "ATOM_MEDIAMETRICS_NUPLAYER_REPORTED",
3916            AtomId::AtomMediametricsRecorderReported => "ATOM_MEDIAMETRICS_RECORDER_REPORTED",
3917            AtomId::AtomMediametricsDrmmanagerReported => "ATOM_MEDIAMETRICS_DRMMANAGER_REPORTED",
3918            AtomId::AtomCarPowerStateChanged => "ATOM_CAR_POWER_STATE_CHANGED",
3919            AtomId::AtomGarageModeInfo => "ATOM_GARAGE_MODE_INFO",
3920            AtomId::AtomTestAtomReported => "ATOM_TEST_ATOM_REPORTED",
3921            AtomId::AtomContentCaptureCallerMismatchReported => "ATOM_CONTENT_CAPTURE_CALLER_MISMATCH_REPORTED",
3922            AtomId::AtomContentCaptureServiceEvents => "ATOM_CONTENT_CAPTURE_SERVICE_EVENTS",
3923            AtomId::AtomContentCaptureSessionEvents => "ATOM_CONTENT_CAPTURE_SESSION_EVENTS",
3924            AtomId::AtomContentCaptureFlushed => "ATOM_CONTENT_CAPTURE_FLUSHED",
3925            AtomId::AtomLocationManagerApiUsageReported => "ATOM_LOCATION_MANAGER_API_USAGE_REPORTED",
3926            AtomId::AtomReviewPermissionsFragmentResultReported => "ATOM_REVIEW_PERMISSIONS_FRAGMENT_RESULT_REPORTED",
3927            AtomId::AtomRuntimePermissionsUpgradeResult => "ATOM_RUNTIME_PERMISSIONS_UPGRADE_RESULT",
3928            AtomId::AtomGrantPermissionsActivityButtonActions => "ATOM_GRANT_PERMISSIONS_ACTIVITY_BUTTON_ACTIONS",
3929            AtomId::AtomLocationAccessCheckNotificationAction => "ATOM_LOCATION_ACCESS_CHECK_NOTIFICATION_ACTION",
3930            AtomId::AtomAppPermissionFragmentActionReported => "ATOM_APP_PERMISSION_FRAGMENT_ACTION_REPORTED",
3931            AtomId::AtomAppPermissionFragmentViewed => "ATOM_APP_PERMISSION_FRAGMENT_VIEWED",
3932            AtomId::AtomAppPermissionsFragmentViewed => "ATOM_APP_PERMISSIONS_FRAGMENT_VIEWED",
3933            AtomId::AtomPermissionAppsFragmentViewed => "ATOM_PERMISSION_APPS_FRAGMENT_VIEWED",
3934            AtomId::AtomTextSelectionEvent => "ATOM_TEXT_SELECTION_EVENT",
3935            AtomId::AtomTextLinkifyEvent => "ATOM_TEXT_LINKIFY_EVENT",
3936            AtomId::AtomConversationActionsEvent => "ATOM_CONVERSATION_ACTIONS_EVENT",
3937            AtomId::AtomLanguageDetectionEvent => "ATOM_LANGUAGE_DETECTION_EVENT",
3938            AtomId::AtomExclusionRectStateChanged => "ATOM_EXCLUSION_RECT_STATE_CHANGED",
3939            AtomId::AtomBackGestureReportedReported => "ATOM_BACK_GESTURE_REPORTED_REPORTED",
3940            AtomId::AtomUpdateEngineUpdateAttemptReported => "ATOM_UPDATE_ENGINE_UPDATE_ATTEMPT_REPORTED",
3941            AtomId::AtomUpdateEngineSuccessfulUpdateReported => "ATOM_UPDATE_ENGINE_SUCCESSFUL_UPDATE_REPORTED",
3942            AtomId::AtomCameraActionEvent => "ATOM_CAMERA_ACTION_EVENT",
3943            AtomId::AtomAppCompatibilityChangeReported => "ATOM_APP_COMPATIBILITY_CHANGE_REPORTED",
3944            AtomId::AtomPerfettoUploaded => "ATOM_PERFETTO_UPLOADED",
3945            AtomId::AtomVmsClientConnectionStateChanged => "ATOM_VMS_CLIENT_CONNECTION_STATE_CHANGED",
3946            AtomId::AtomMediaProviderScanOccurred => "ATOM_MEDIA_PROVIDER_SCAN_OCCURRED",
3947            AtomId::AtomMediaContentDeleted => "ATOM_MEDIA_CONTENT_DELETED",
3948            AtomId::AtomMediaProviderPermissionRequested => "ATOM_MEDIA_PROVIDER_PERMISSION_REQUESTED",
3949            AtomId::AtomMediaProviderSchemaChanged => "ATOM_MEDIA_PROVIDER_SCHEMA_CHANGED",
3950            AtomId::AtomMediaProviderIdleMaintenanceFinished => "ATOM_MEDIA_PROVIDER_IDLE_MAINTENANCE_FINISHED",
3951            AtomId::AtomRebootEscrowRecoveryReported => "ATOM_REBOOT_ESCROW_RECOVERY_REPORTED",
3952            AtomId::AtomBootTimeEventDurationReported => "ATOM_BOOT_TIME_EVENT_DURATION_REPORTED",
3953            AtomId::AtomBootTimeEventElapsedTimeReported => "ATOM_BOOT_TIME_EVENT_ELAPSED_TIME_REPORTED",
3954            AtomId::AtomBootTimeEventUtcTimeReported => "ATOM_BOOT_TIME_EVENT_UTC_TIME_REPORTED",
3955            AtomId::AtomBootTimeEventErrorCodeReported => "ATOM_BOOT_TIME_EVENT_ERROR_CODE_REPORTED",
3956            AtomId::AtomUserspaceRebootReported => "ATOM_USERSPACE_REBOOT_REPORTED",
3957            AtomId::AtomNotificationReported => "ATOM_NOTIFICATION_REPORTED",
3958            AtomId::AtomNotificationPanelReported => "ATOM_NOTIFICATION_PANEL_REPORTED",
3959            AtomId::AtomNotificationChannelModified => "ATOM_NOTIFICATION_CHANNEL_MODIFIED",
3960            AtomId::AtomIntegrityCheckResultReported => "ATOM_INTEGRITY_CHECK_RESULT_REPORTED",
3961            AtomId::AtomIntegrityRulesPushed => "ATOM_INTEGRITY_RULES_PUSHED",
3962            AtomId::AtomCbMessageReported => "ATOM_CB_MESSAGE_REPORTED",
3963            AtomId::AtomCbMessageError => "ATOM_CB_MESSAGE_ERROR",
3964            AtomId::AtomWifiHealthStatReported => "ATOM_WIFI_HEALTH_STAT_REPORTED",
3965            AtomId::AtomWifiFailureStatReported => "ATOM_WIFI_FAILURE_STAT_REPORTED",
3966            AtomId::AtomWifiConnectionResultReported => "ATOM_WIFI_CONNECTION_RESULT_REPORTED",
3967            AtomId::AtomAppFreezeChanged => "ATOM_APP_FREEZE_CHANGED",
3968            AtomId::AtomSnapshotMergeReported => "ATOM_SNAPSHOT_MERGE_REPORTED",
3969            AtomId::AtomForegroundServiceAppOpSessionEnded => "ATOM_FOREGROUND_SERVICE_APP_OP_SESSION_ENDED",
3970            AtomId::AtomDisplayJankReported => "ATOM_DISPLAY_JANK_REPORTED",
3971            AtomId::AtomAppStandbyBucketChanged => "ATOM_APP_STANDBY_BUCKET_CHANGED",
3972            AtomId::AtomSharesheetStarted => "ATOM_SHARESHEET_STARTED",
3973            AtomId::AtomRankingSelected => "ATOM_RANKING_SELECTED",
3974            AtomId::AtomTvsettingsUiInteracted => "ATOM_TVSETTINGS_UI_INTERACTED",
3975            AtomId::AtomLauncherSnapshot => "ATOM_LAUNCHER_SNAPSHOT",
3976            AtomId::AtomPackageInstallerV2Reported => "ATOM_PACKAGE_INSTALLER_V2_REPORTED",
3977            AtomId::AtomUserLifecycleJourneyReported => "ATOM_USER_LIFECYCLE_JOURNEY_REPORTED",
3978            AtomId::AtomUserLifecycleEventOccurred => "ATOM_USER_LIFECYCLE_EVENT_OCCURRED",
3979            AtomId::AtomAccessibilityShortcutReported => "ATOM_ACCESSIBILITY_SHORTCUT_REPORTED",
3980            AtomId::AtomAccessibilityServiceReported => "ATOM_ACCESSIBILITY_SERVICE_REPORTED",
3981            AtomId::AtomDocsUiDragAndDropReported => "ATOM_DOCS_UI_DRAG_AND_DROP_REPORTED",
3982            AtomId::AtomAppUsageEventOccurred => "ATOM_APP_USAGE_EVENT_OCCURRED",
3983            AtomId::AtomAutoRevokeNotificationClicked => "ATOM_AUTO_REVOKE_NOTIFICATION_CLICKED",
3984            AtomId::AtomAutoRevokeFragmentAppViewed => "ATOM_AUTO_REVOKE_FRAGMENT_APP_VIEWED",
3985            AtomId::AtomAutoRevokedAppInteraction => "ATOM_AUTO_REVOKED_APP_INTERACTION",
3986            AtomId::AtomAppPermissionGroupsFragmentAutoRevokeAction => "ATOM_APP_PERMISSION_GROUPS_FRAGMENT_AUTO_REVOKE_ACTION",
3987            AtomId::AtomEvsUsageStatsReported => "ATOM_EVS_USAGE_STATS_REPORTED",
3988            AtomId::AtomAudioPowerUsageDataReported => "ATOM_AUDIO_POWER_USAGE_DATA_REPORTED",
3989            AtomId::AtomTvTunerStateChanged => "ATOM_TV_TUNER_STATE_CHANGED",
3990            AtomId::AtomMediaoutputOpSwitchReported => "ATOM_MEDIAOUTPUT_OP_SWITCH_REPORTED",
3991            AtomId::AtomCbMessageFiltered => "ATOM_CB_MESSAGE_FILTERED",
3992            AtomId::AtomTvTunerDvrStatus => "ATOM_TV_TUNER_DVR_STATUS",
3993            AtomId::AtomTvCasSessionOpenStatus => "ATOM_TV_CAS_SESSION_OPEN_STATUS",
3994            AtomId::AtomAssistantInvocationReported => "ATOM_ASSISTANT_INVOCATION_REPORTED",
3995            AtomId::AtomDisplayWakeReported => "ATOM_DISPLAY_WAKE_REPORTED",
3996            AtomId::AtomCarUserHalModifyUserRequestReported => "ATOM_CAR_USER_HAL_MODIFY_USER_REQUEST_REPORTED",
3997            AtomId::AtomCarUserHalModifyUserResponseReported => "ATOM_CAR_USER_HAL_MODIFY_USER_RESPONSE_REPORTED",
3998            AtomId::AtomCarUserHalPostSwitchResponseReported => "ATOM_CAR_USER_HAL_POST_SWITCH_RESPONSE_REPORTED",
3999            AtomId::AtomCarUserHalInitialUserInfoRequestReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_REQUEST_REPORTED",
4000            AtomId::AtomCarUserHalInitialUserInfoResponseReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_RESPONSE_REPORTED",
4001            AtomId::AtomCarUserHalUserAssociationRequestReported => "ATOM_CAR_USER_HAL_USER_ASSOCIATION_REQUEST_REPORTED",
4002            AtomId::AtomCarUserHalSetUserAssociationResponseReported => "ATOM_CAR_USER_HAL_SET_USER_ASSOCIATION_RESPONSE_REPORTED",
4003            AtomId::AtomNetworkIpProvisioningReported => "ATOM_NETWORK_IP_PROVISIONING_REPORTED",
4004            AtomId::AtomNetworkDhcpRenewReported => "ATOM_NETWORK_DHCP_RENEW_REPORTED",
4005            AtomId::AtomNetworkValidationReported => "ATOM_NETWORK_VALIDATION_REPORTED",
4006            AtomId::AtomNetworkStackQuirkReported => "ATOM_NETWORK_STACK_QUIRK_REPORTED",
4007            AtomId::AtomMediametricsAudiorecorddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIORECORDDEVICEUSAGE_REPORTED",
4008            AtomId::AtomMediametricsAudiothreaddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTHREADDEVICEUSAGE_REPORTED",
4009            AtomId::AtomMediametricsAudiotrackdeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTRACKDEVICEUSAGE_REPORTED",
4010            AtomId::AtomMediametricsAudiodeviceconnectionReported => "ATOM_MEDIAMETRICS_AUDIODEVICECONNECTION_REPORTED",
4011            AtomId::AtomBlobCommitted => "ATOM_BLOB_COMMITTED",
4012            AtomId::AtomBlobLeased => "ATOM_BLOB_LEASED",
4013            AtomId::AtomBlobOpened => "ATOM_BLOB_OPENED",
4014            AtomId::AtomContactsProviderStatusReported => "ATOM_CONTACTS_PROVIDER_STATUS_REPORTED",
4015            AtomId::AtomKeystoreKeyEventReported => "ATOM_KEYSTORE_KEY_EVENT_REPORTED",
4016            AtomId::AtomNetworkTetheringReported => "ATOM_NETWORK_TETHERING_REPORTED",
4017            AtomId::AtomImeTouchReported => "ATOM_IME_TOUCH_REPORTED",
4018            AtomId::AtomUiInteractionFrameInfoReported => "ATOM_UI_INTERACTION_FRAME_INFO_REPORTED",
4019            AtomId::AtomUiActionLatencyReported => "ATOM_UI_ACTION_LATENCY_REPORTED",
4020            AtomId::AtomWifiDisconnectReported => "ATOM_WIFI_DISCONNECT_REPORTED",
4021            AtomId::AtomWifiConnectionStateChanged => "ATOM_WIFI_CONNECTION_STATE_CHANGED",
4022            AtomId::AtomHdmiCecActiveSourceChanged => "ATOM_HDMI_CEC_ACTIVE_SOURCE_CHANGED",
4023            AtomId::AtomHdmiCecMessageReported => "ATOM_HDMI_CEC_MESSAGE_REPORTED",
4024            AtomId::AtomAirplaneMode => "ATOM_AIRPLANE_MODE",
4025            AtomId::AtomModemRestart => "ATOM_MODEM_RESTART",
4026            AtomId::AtomCarrierIdMismatchReported => "ATOM_CARRIER_ID_MISMATCH_REPORTED",
4027            AtomId::AtomCarrierIdTableUpdated => "ATOM_CARRIER_ID_TABLE_UPDATED",
4028            AtomId::AtomDataStallRecoveryReported => "ATOM_DATA_STALL_RECOVERY_REPORTED",
4029            AtomId::AtomMediametricsMediaparserReported => "ATOM_MEDIAMETRICS_MEDIAPARSER_REPORTED",
4030            AtomId::AtomTlsHandshakeReported => "ATOM_TLS_HANDSHAKE_REPORTED",
4031            AtomId::AtomTextClassifierApiUsageReported => "ATOM_TEXT_CLASSIFIER_API_USAGE_REPORTED",
4032            AtomId::AtomCarWatchdogKillStatsReported => "ATOM_CAR_WATCHDOG_KILL_STATS_REPORTED",
4033            AtomId::AtomMediametricsPlaybackReported => "ATOM_MEDIAMETRICS_PLAYBACK_REPORTED",
4034            AtomId::AtomMediaNetworkInfoChanged => "ATOM_MEDIA_NETWORK_INFO_CHANGED",
4035            AtomId::AtomMediaPlaybackStateChanged => "ATOM_MEDIA_PLAYBACK_STATE_CHANGED",
4036            AtomId::AtomMediaPlaybackErrorReported => "ATOM_MEDIA_PLAYBACK_ERROR_REPORTED",
4037            AtomId::AtomMediaPlaybackTrackChanged => "ATOM_MEDIA_PLAYBACK_TRACK_CHANGED",
4038            AtomId::AtomWifiScanReported => "ATOM_WIFI_SCAN_REPORTED",
4039            AtomId::AtomWifiPnoScanReported => "ATOM_WIFI_PNO_SCAN_REPORTED",
4040            AtomId::AtomTifTuneChanged => "ATOM_TIF_TUNE_CHANGED",
4041            AtomId::AtomAutoRotateReported => "ATOM_AUTO_ROTATE_REPORTED",
4042            AtomId::AtomPerfettoTrigger => "ATOM_PERFETTO_TRIGGER",
4043            AtomId::AtomTranscodingData => "ATOM_TRANSCODING_DATA",
4044            AtomId::AtomImsServiceEntitlementUpdated => "ATOM_IMS_SERVICE_ENTITLEMENT_UPDATED",
4045            AtomId::AtomDeviceRotated => "ATOM_DEVICE_ROTATED",
4046            AtomId::AtomSimSpecificSettingsRestored => "ATOM_SIM_SPECIFIC_SETTINGS_RESTORED",
4047            AtomId::AtomTextClassifierDownloadReported => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_REPORTED",
4048            AtomId::AtomPinStorageEvent => "ATOM_PIN_STORAGE_EVENT",
4049            AtomId::AtomFaceDownReported => "ATOM_FACE_DOWN_REPORTED",
4050            AtomId::AtomBluetoothHalCrashReasonReported => "ATOM_BLUETOOTH_HAL_CRASH_REASON_REPORTED",
4051            AtomId::AtomRebootEscrowPreparationReported => "ATOM_REBOOT_ESCROW_PREPARATION_REPORTED",
4052            AtomId::AtomRebootEscrowLskfCaptureReported => "ATOM_REBOOT_ESCROW_LSKF_CAPTURE_REPORTED",
4053            AtomId::AtomRebootEscrowRebootReported => "ATOM_REBOOT_ESCROW_REBOOT_REPORTED",
4054            AtomId::AtomBinderLatencyReported => "ATOM_BINDER_LATENCY_REPORTED",
4055            AtomId::AtomMediametricsAaudiostreamReported => "ATOM_MEDIAMETRICS_AAUDIOSTREAM_REPORTED",
4056            AtomId::AtomMediaTranscodingSessionEnded => "ATOM_MEDIA_TRANSCODING_SESSION_ENDED",
4057            AtomId::AtomMagnificationUsageReported => "ATOM_MAGNIFICATION_USAGE_REPORTED",
4058            AtomId::AtomMagnificationModeWithImeOnReported => "ATOM_MAGNIFICATION_MODE_WITH_IME_ON_REPORTED",
4059            AtomId::AtomAppSearchCallStatsReported => "ATOM_APP_SEARCH_CALL_STATS_REPORTED",
4060            AtomId::AtomAppSearchPutDocumentStatsReported => "ATOM_APP_SEARCH_PUT_DOCUMENT_STATS_REPORTED",
4061            AtomId::AtomDeviceControlChanged => "ATOM_DEVICE_CONTROL_CHANGED",
4062            AtomId::AtomDeviceStateChanged => "ATOM_DEVICE_STATE_CHANGED",
4063            AtomId::AtomInputdeviceRegistered => "ATOM_INPUTDEVICE_REGISTERED",
4064            AtomId::AtomSmartspaceCardReported => "ATOM_SMARTSPACE_CARD_REPORTED",
4065            AtomId::AtomAuthPromptAuthenticateInvoked => "ATOM_AUTH_PROMPT_AUTHENTICATE_INVOKED",
4066            AtomId::AtomAuthManagerCanAuthenticateInvoked => "ATOM_AUTH_MANAGER_CAN_AUTHENTICATE_INVOKED",
4067            AtomId::AtomAuthEnrollActionInvoked => "ATOM_AUTH_ENROLL_ACTION_INVOKED",
4068            AtomId::AtomAuthDeprecatedApiUsed => "ATOM_AUTH_DEPRECATED_API_USED",
4069            AtomId::AtomUnattendedRebootOccurred => "ATOM_UNATTENDED_REBOOT_OCCURRED",
4070            AtomId::AtomLongRebootBlockingReported => "ATOM_LONG_REBOOT_BLOCKING_REPORTED",
4071            AtomId::AtomLocationTimeZoneProviderStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_STATE_CHANGED",
4072            AtomId::AtomFdtrackEventOccurred => "ATOM_FDTRACK_EVENT_OCCURRED",
4073            AtomId::AtomTimeoutAutoExtendedReported => "ATOM_TIMEOUT_AUTO_EXTENDED_REPORTED",
4074            AtomId::AtomAlarmBatchDelivered => "ATOM_ALARM_BATCH_DELIVERED",
4075            AtomId::AtomAlarmScheduled => "ATOM_ALARM_SCHEDULED",
4076            AtomId::AtomCarWatchdogIoOveruseStatsReported => "ATOM_CAR_WATCHDOG_IO_OVERUSE_STATS_REPORTED",
4077            AtomId::AtomUserLevelHibernationStateChanged => "ATOM_USER_LEVEL_HIBERNATION_STATE_CHANGED",
4078            AtomId::AtomAppSearchInitializeStatsReported => "ATOM_APP_SEARCH_INITIALIZE_STATS_REPORTED",
4079            AtomId::AtomAppSearchQueryStatsReported => "ATOM_APP_SEARCH_QUERY_STATS_REPORTED",
4080            AtomId::AtomAppProcessDied => "ATOM_APP_PROCESS_DIED",
4081            AtomId::AtomNetworkIpReachabilityMonitorReported => "ATOM_NETWORK_IP_REACHABILITY_MONITOR_REPORTED",
4082            AtomId::AtomSlowInputEventReported => "ATOM_SLOW_INPUT_EVENT_REPORTED",
4083            AtomId::AtomAnrOccurredProcessingStarted => "ATOM_ANR_OCCURRED_PROCESSING_STARTED",
4084            AtomId::AtomAppSearchRemoveStatsReported => "ATOM_APP_SEARCH_REMOVE_STATS_REPORTED",
4085            AtomId::AtomMediaCodecReported => "ATOM_MEDIA_CODEC_REPORTED",
4086            AtomId::AtomPermissionUsageFragmentInteraction => "ATOM_PERMISSION_USAGE_FRAGMENT_INTERACTION",
4087            AtomId::AtomPermissionDetailsInteraction => "ATOM_PERMISSION_DETAILS_INTERACTION",
4088            AtomId::AtomPrivacySensorToggleInteraction => "ATOM_PRIVACY_SENSOR_TOGGLE_INTERACTION",
4089            AtomId::AtomPrivacyToggleDialogInteraction => "ATOM_PRIVACY_TOGGLE_DIALOG_INTERACTION",
4090            AtomId::AtomAppSearchOptimizeStatsReported => "ATOM_APP_SEARCH_OPTIMIZE_STATS_REPORTED",
4091            AtomId::AtomNonA11yToolServiceWarningReport => "ATOM_NON_A11Y_TOOL_SERVICE_WARNING_REPORT",
4092            AtomId::AtomAppCompatStateChanged => "ATOM_APP_COMPAT_STATE_CHANGED",
4093            AtomId::AtomSizeCompatRestartButtonEventReported => "ATOM_SIZE_COMPAT_RESTART_BUTTON_EVENT_REPORTED",
4094            AtomId::AtomSplitscreenUiChanged => "ATOM_SPLITSCREEN_UI_CHANGED",
4095            AtomId::AtomNetworkDnsHandshakeReported => "ATOM_NETWORK_DNS_HANDSHAKE_REPORTED",
4096            AtomId::AtomBluetoothCodePathCounter => "ATOM_BLUETOOTH_CODE_PATH_COUNTER",
4097            AtomId::AtomBluetoothLeBatchScanReportDelay => "ATOM_BLUETOOTH_LE_BATCH_SCAN_REPORT_DELAY",
4098            AtomId::AtomAccessibilityFloatingMenuUiChanged => "ATOM_ACCESSIBILITY_FLOATING_MENU_UI_CHANGED",
4099            AtomId::AtomNeuralnetworksCompilationCompleted => "ATOM_NEURALNETWORKS_COMPILATION_COMPLETED",
4100            AtomId::AtomNeuralnetworksExecutionCompleted => "ATOM_NEURALNETWORKS_EXECUTION_COMPLETED",
4101            AtomId::AtomNeuralnetworksCompilationFailed => "ATOM_NEURALNETWORKS_COMPILATION_FAILED",
4102            AtomId::AtomNeuralnetworksExecutionFailed => "ATOM_NEURALNETWORKS_EXECUTION_FAILED",
4103            AtomId::AtomContextHubBooted => "ATOM_CONTEXT_HUB_BOOTED",
4104            AtomId::AtomContextHubRestarted => "ATOM_CONTEXT_HUB_RESTARTED",
4105            AtomId::AtomContextHubLoadedNanoappSnapshotReported => "ATOM_CONTEXT_HUB_LOADED_NANOAPP_SNAPSHOT_REPORTED",
4106            AtomId::AtomChreCodeDownloadTransacted => "ATOM_CHRE_CODE_DOWNLOAD_TRANSACTED",
4107            AtomId::AtomUwbSessionInited => "ATOM_UWB_SESSION_INITED",
4108            AtomId::AtomUwbSessionClosed => "ATOM_UWB_SESSION_CLOSED",
4109            AtomId::AtomUwbFirstRangingReceived => "ATOM_UWB_FIRST_RANGING_RECEIVED",
4110            AtomId::AtomUwbRangingMeasurementReceived => "ATOM_UWB_RANGING_MEASUREMENT_RECEIVED",
4111            AtomId::AtomTextClassifierDownloadWorkScheduled => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_SCHEDULED",
4112            AtomId::AtomTextClassifierDownloadWorkCompleted => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_COMPLETED",
4113            AtomId::AtomClipboardCleared => "ATOM_CLIPBOARD_CLEARED",
4114            AtomId::AtomVmCreationRequested => "ATOM_VM_CREATION_REQUESTED",
4115            AtomId::AtomNearbyDeviceScanStateChanged => "ATOM_NEARBY_DEVICE_SCAN_STATE_CHANGED",
4116            AtomId::AtomApplicationLocalesChanged => "ATOM_APPLICATION_LOCALES_CHANGED",
4117            AtomId::AtomMediametricsAudiotrackstatusReported => "ATOM_MEDIAMETRICS_AUDIOTRACKSTATUS_REPORTED",
4118            AtomId::AtomFoldStateDurationReported => "ATOM_FOLD_STATE_DURATION_REPORTED",
4119            AtomId::AtomLocationTimeZoneProviderControllerStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_CONTROLLER_STATE_CHANGED",
4120            AtomId::AtomDisplayHbmStateChanged => "ATOM_DISPLAY_HBM_STATE_CHANGED",
4121            AtomId::AtomDisplayHbmBrightnessChanged => "ATOM_DISPLAY_HBM_BRIGHTNESS_CHANGED",
4122            AtomId::AtomPersistentUriPermissionsFlushed => "ATOM_PERSISTENT_URI_PERMISSIONS_FLUSHED",
4123            AtomId::AtomEarlyBootCompOsArtifactsCheckReported => "ATOM_EARLY_BOOT_COMP_OS_ARTIFACTS_CHECK_REPORTED",
4124            AtomId::AtomVbmetaDigestReported => "ATOM_VBMETA_DIGEST_REPORTED",
4125            AtomId::AtomApexInfoGathered => "ATOM_APEX_INFO_GATHERED",
4126            AtomId::AtomPvmInfoGathered => "ATOM_PVM_INFO_GATHERED",
4127            AtomId::AtomWearSettingsUiInteracted => "ATOM_WEAR_SETTINGS_UI_INTERACTED",
4128            AtomId::AtomTracingServiceReportEvent => "ATOM_TRACING_SERVICE_REPORT_EVENT",
4129            AtomId::AtomMediametricsAudiorecordstatusReported => "ATOM_MEDIAMETRICS_AUDIORECORDSTATUS_REPORTED",
4130            AtomId::AtomLauncherLatency => "ATOM_LAUNCHER_LATENCY",
4131            AtomId::AtomDropboxEntryDropped => "ATOM_DROPBOX_ENTRY_DROPPED",
4132            AtomId::AtomWifiP2pConnectionReported => "ATOM_WIFI_P2P_CONNECTION_REPORTED",
4133            AtomId::AtomGameStateChanged => "ATOM_GAME_STATE_CHANGED",
4134            AtomId::AtomHotwordDetectorCreateRequested => "ATOM_HOTWORD_DETECTOR_CREATE_REQUESTED",
4135            AtomId::AtomHotwordDetectionServiceInitResultReported => "ATOM_HOTWORD_DETECTION_SERVICE_INIT_RESULT_REPORTED",
4136            AtomId::AtomHotwordDetectionServiceRestarted => "ATOM_HOTWORD_DETECTION_SERVICE_RESTARTED",
4137            AtomId::AtomHotwordDetectorKeyphraseTriggered => "ATOM_HOTWORD_DETECTOR_KEYPHRASE_TRIGGERED",
4138            AtomId::AtomHotwordDetectorEvents => "ATOM_HOTWORD_DETECTOR_EVENTS",
4139            AtomId::AtomBootCompletedBroadcastCompletionLatencyReported => "ATOM_BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED",
4140            AtomId::AtomContactsIndexerUpdateStatsReported => "ATOM_CONTACTS_INDEXER_UPDATE_STATS_REPORTED",
4141            AtomId::AtomAppBackgroundRestrictionsInfo => "ATOM_APP_BACKGROUND_RESTRICTIONS_INFO",
4142            AtomId::AtomMmsSmsProviderGetThreadIdFailed => "ATOM_MMS_SMS_PROVIDER_GET_THREAD_ID_FAILED",
4143            AtomId::AtomMmsSmsDatabaseHelperOnUpgradeFailed => "ATOM_MMS_SMS_DATABASE_HELPER_ON_UPGRADE_FAILED",
4144            AtomId::AtomPermissionReminderNotificationInteracted => "ATOM_PERMISSION_REMINDER_NOTIFICATION_INTERACTED",
4145            AtomId::AtomRecentPermissionDecisionsInteracted => "ATOM_RECENT_PERMISSION_DECISIONS_INTERACTED",
4146            AtomId::AtomGnssPsdsDownloadReported => "ATOM_GNSS_PSDS_DOWNLOAD_REPORTED",
4147            AtomId::AtomLeAudioConnectionSessionReported => "ATOM_LE_AUDIO_CONNECTION_SESSION_REPORTED",
4148            AtomId::AtomLeAudioBroadcastSessionReported => "ATOM_LE_AUDIO_BROADCAST_SESSION_REPORTED",
4149            AtomId::AtomDreamUiEventReported => "ATOM_DREAM_UI_EVENT_REPORTED",
4150            AtomId::AtomTaskManagerEventReported => "ATOM_TASK_MANAGER_EVENT_REPORTED",
4151            AtomId::AtomCdmAssociationAction => "ATOM_CDM_ASSOCIATION_ACTION",
4152            AtomId::AtomMagnificationTripleTapAndHoldActivatedSessionReported => "ATOM_MAGNIFICATION_TRIPLE_TAP_AND_HOLD_ACTIVATED_SESSION_REPORTED",
4153            AtomId::AtomMagnificationFollowTypingFocusActivatedSessionReported => "ATOM_MAGNIFICATION_FOLLOW_TYPING_FOCUS_ACTIVATED_SESSION_REPORTED",
4154            AtomId::AtomAccessibilityTextReadingOptionsChanged => "ATOM_ACCESSIBILITY_TEXT_READING_OPTIONS_CHANGED",
4155            AtomId::AtomWifiSetupFailureCrashReported => "ATOM_WIFI_SETUP_FAILURE_CRASH_REPORTED",
4156            AtomId::AtomUwbDeviceErrorReported => "ATOM_UWB_DEVICE_ERROR_REPORTED",
4157            AtomId::AtomIsolatedCompilationScheduled => "ATOM_ISOLATED_COMPILATION_SCHEDULED",
4158            AtomId::AtomIsolatedCompilationEnded => "ATOM_ISOLATED_COMPILATION_ENDED",
4159            AtomId::AtomOnsOpportunisticEsimProvisioningComplete => "ATOM_ONS_OPPORTUNISTIC_ESIM_PROVISIONING_COMPLETE",
4160            AtomId::AtomSystemServerPreWatchdogOccurred => "ATOM_SYSTEM_SERVER_PRE_WATCHDOG_OCCURRED",
4161            AtomId::AtomTelephonyAnomalyDetected => "ATOM_TELEPHONY_ANOMALY_DETECTED",
4162            AtomId::AtomLetterboxPositionChanged => "ATOM_LETTERBOX_POSITION_CHANGED",
4163            AtomId::AtomRemoteKeyProvisioningAttempt => "ATOM_REMOTE_KEY_PROVISIONING_ATTEMPT",
4164            AtomId::AtomRemoteKeyProvisioningNetworkInfo => "ATOM_REMOTE_KEY_PROVISIONING_NETWORK_INFO",
4165            AtomId::AtomRemoteKeyProvisioningTiming => "ATOM_REMOTE_KEY_PROVISIONING_TIMING",
4166            AtomId::AtomMediaoutputOpInteractionReport => "ATOM_MEDIAOUTPUT_OP_INTERACTION_REPORT",
4167            AtomId::AtomSyncExemptionOccurred => "ATOM_SYNC_EXEMPTION_OCCURRED",
4168            AtomId::AtomAutofillPresentationEventReported => "ATOM_AUTOFILL_PRESENTATION_EVENT_REPORTED",
4169            AtomId::AtomDockStateChanged => "ATOM_DOCK_STATE_CHANGED",
4170            AtomId::AtomSafetySourceStateCollected => "ATOM_SAFETY_SOURCE_STATE_COLLECTED",
4171            AtomId::AtomSafetyCenterSystemEventReported => "ATOM_SAFETY_CENTER_SYSTEM_EVENT_REPORTED",
4172            AtomId::AtomSafetyCenterInteractionReported => "ATOM_SAFETY_CENTER_INTERACTION_REPORTED",
4173            AtomId::AtomSettingsProviderSettingChanged => "ATOM_SETTINGS_PROVIDER_SETTING_CHANGED",
4174            AtomId::AtomBroadcastDeliveryEventReported => "ATOM_BROADCAST_DELIVERY_EVENT_REPORTED",
4175            AtomId::AtomServiceRequestEventReported => "ATOM_SERVICE_REQUEST_EVENT_REPORTED",
4176            AtomId::AtomProviderAcquisitionEventReported => "ATOM_PROVIDER_ACQUISITION_EVENT_REPORTED",
4177            AtomId::AtomBluetoothDeviceNameReported => "ATOM_BLUETOOTH_DEVICE_NAME_REPORTED",
4178            AtomId::AtomCbConfigUpdated => "ATOM_CB_CONFIG_UPDATED",
4179            AtomId::AtomCbModuleErrorReported => "ATOM_CB_MODULE_ERROR_REPORTED",
4180            AtomId::AtomCbServiceFeatureChanged => "ATOM_CB_SERVICE_FEATURE_CHANGED",
4181            AtomId::AtomCbReceiverFeatureChanged => "ATOM_CB_RECEIVER_FEATURE_CHANGED",
4182            AtomId::AtomPrivacySignalNotificationInteraction => "ATOM_PRIVACY_SIGNAL_NOTIFICATION_INTERACTION",
4183            AtomId::AtomPrivacySignalIssueCardInteraction => "ATOM_PRIVACY_SIGNAL_ISSUE_CARD_INTERACTION",
4184            AtomId::AtomPrivacySignalsJobFailure => "ATOM_PRIVACY_SIGNALS_JOB_FAILURE",
4185            AtomId::AtomVibrationReported => "ATOM_VIBRATION_REPORTED",
4186            AtomId::AtomUwbRangingStart => "ATOM_UWB_RANGING_START",
4187            AtomId::AtomAppCompactedV2 => "ATOM_APP_COMPACTED_V2",
4188            AtomId::AtomDisplayBrightnessChanged => "ATOM_DISPLAY_BRIGHTNESS_CHANGED",
4189            AtomId::AtomActivityActionBlocked => "ATOM_ACTIVITY_ACTION_BLOCKED",
4190            AtomId::AtomNetworkDnsServerSupportReported => "ATOM_NETWORK_DNS_SERVER_SUPPORT_REPORTED",
4191            AtomId::AtomVmBooted => "ATOM_VM_BOOTED",
4192            AtomId::AtomVmExited => "ATOM_VM_EXITED",
4193            AtomId::AtomAmbientBrightnessStatsReported => "ATOM_AMBIENT_BRIGHTNESS_STATS_REPORTED",
4194            AtomId::AtomMediametricsSpatializercapabilitiesReported => "ATOM_MEDIAMETRICS_SPATIALIZERCAPABILITIES_REPORTED",
4195            AtomId::AtomMediametricsSpatializerdeviceenabledReported => "ATOM_MEDIAMETRICS_SPATIALIZERDEVICEENABLED_REPORTED",
4196            AtomId::AtomMediametricsHeadtrackerdeviceenabledReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICEENABLED_REPORTED",
4197            AtomId::AtomMediametricsHeadtrackerdevicesupportedReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICESUPPORTED_REPORTED",
4198            AtomId::AtomHearingAidInfoReported => "ATOM_HEARING_AID_INFO_REPORTED",
4199            AtomId::AtomDeviceWideJobConstraintChanged => "ATOM_DEVICE_WIDE_JOB_CONSTRAINT_CHANGED",
4200            AtomId::AtomAmbientModeChanged => "ATOM_AMBIENT_MODE_CHANGED",
4201            AtomId::AtomAnrLatencyReported => "ATOM_ANR_LATENCY_REPORTED",
4202            AtomId::AtomResourceApiInfo => "ATOM_RESOURCE_API_INFO",
4203            AtomId::AtomSystemDefaultNetworkChanged => "ATOM_SYSTEM_DEFAULT_NETWORK_CHANGED",
4204            AtomId::AtomIwlanSetupDataCallResultReported => "ATOM_IWLAN_SETUP_DATA_CALL_RESULT_REPORTED",
4205            AtomId::AtomIwlanPdnDisconnectedReasonReported => "ATOM_IWLAN_PDN_DISCONNECTED_REASON_REPORTED",
4206            AtomId::AtomAirplaneModeSessionReported => "ATOM_AIRPLANE_MODE_SESSION_REPORTED",
4207            AtomId::AtomVmCpuStatusReported => "ATOM_VM_CPU_STATUS_REPORTED",
4208            AtomId::AtomVmMemStatusReported => "ATOM_VM_MEM_STATUS_REPORTED",
4209            AtomId::AtomPackageInstallationSessionReported => "ATOM_PACKAGE_INSTALLATION_SESSION_REPORTED",
4210            AtomId::AtomDefaultNetworkRematchInfo => "ATOM_DEFAULT_NETWORK_REMATCH_INFO",
4211            AtomId::AtomNetworkSelectionPerformance => "ATOM_NETWORK_SELECTION_PERFORMANCE",
4212            AtomId::AtomNetworkNsdReported => "ATOM_NETWORK_NSD_REPORTED",
4213            AtomId::AtomBluetoothDisconnectionReasonReported => "ATOM_BLUETOOTH_DISCONNECTION_REASON_REPORTED",
4214            AtomId::AtomBluetoothLocalVersionsReported => "ATOM_BLUETOOTH_LOCAL_VERSIONS_REPORTED",
4215            AtomId::AtomBluetoothRemoteSupportedFeaturesReported => "ATOM_BLUETOOTH_REMOTE_SUPPORTED_FEATURES_REPORTED",
4216            AtomId::AtomBluetoothLocalSupportedFeaturesReported => "ATOM_BLUETOOTH_LOCAL_SUPPORTED_FEATURES_REPORTED",
4217            AtomId::AtomBluetoothGattAppInfo => "ATOM_BLUETOOTH_GATT_APP_INFO",
4218            AtomId::AtomBrightnessConfigurationUpdated => "ATOM_BRIGHTNESS_CONFIGURATION_UPDATED",
4219            AtomId::AtomWearMediaOutputSwitcherLaunched => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_LAUNCHED",
4220            AtomId::AtomWearMediaOutputSwitcherFinished => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FINISHED",
4221            AtomId::AtomWearMediaOutputSwitcherConnectionReported => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECTION_REPORTED",
4222            AtomId::AtomWearMediaOutputSwitcherDeviceScanTriggered => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_TRIGGERED",
4223            AtomId::AtomWearMediaOutputSwitcherFirstDeviceScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FIRST_DEVICE_SCAN_LATENCY",
4224            AtomId::AtomWearMediaOutputSwitcherConnectDeviceLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECT_DEVICE_LATENCY",
4225            AtomId::AtomPackageManagerSnapshotReported => "ATOM_PACKAGE_MANAGER_SNAPSHOT_REPORTED",
4226            AtomId::AtomPackageManagerAppsFilterCacheBuildReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_BUILD_REPORTED",
4227            AtomId::AtomPackageManagerAppsFilterCacheUpdateReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_UPDATE_REPORTED",
4228            AtomId::AtomLauncherImpressionEvent => "ATOM_LAUNCHER_IMPRESSION_EVENT",
4229            AtomId::AtomWearMediaOutputSwitcherAllDevicesScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_ALL_DEVICES_SCAN_LATENCY",
4230            AtomId::AtomWsWatchFaceEdited => "ATOM_WS_WATCH_FACE_EDITED",
4231            AtomId::AtomWsWatchFaceFavoriteActionReported => "ATOM_WS_WATCH_FACE_FAVORITE_ACTION_REPORTED",
4232            AtomId::AtomWsWatchFaceSetActionReported => "ATOM_WS_WATCH_FACE_SET_ACTION_REPORTED",
4233            AtomId::AtomPackageUninstallationReported => "ATOM_PACKAGE_UNINSTALLATION_REPORTED",
4234            AtomId::AtomGameModeChanged => "ATOM_GAME_MODE_CHANGED",
4235            AtomId::AtomGameModeConfigurationChanged => "ATOM_GAME_MODE_CONFIGURATION_CHANGED",
4236            AtomId::AtomBedtimeModeStateChanged => "ATOM_BEDTIME_MODE_STATE_CHANGED",
4237            AtomId::AtomNetworkSliceSessionEnded => "ATOM_NETWORK_SLICE_SESSION_ENDED",
4238            AtomId::AtomNetworkSliceDailyDataUsageReported => "ATOM_NETWORK_SLICE_DAILY_DATA_USAGE_REPORTED",
4239            AtomId::AtomNfcTagTypeOccurred => "ATOM_NFC_TAG_TYPE_OCCURRED",
4240            AtomId::AtomNfcAidConflictOccurred => "ATOM_NFC_AID_CONFLICT_OCCURRED",
4241            AtomId::AtomNfcReaderConflictOccurred => "ATOM_NFC_READER_CONFLICT_OCCURRED",
4242            AtomId::AtomWsTileListChanged => "ATOM_WS_TILE_LIST_CHANGED",
4243            AtomId::AtomGetTypeAccessedWithoutPermission => "ATOM_GET_TYPE_ACCESSED_WITHOUT_PERMISSION",
4244            AtomId::AtomMobileBundledAppInfoGathered => "ATOM_MOBILE_BUNDLED_APP_INFO_GATHERED",
4245            AtomId::AtomWsWatchFaceComplicationSetChanged => "ATOM_WS_WATCH_FACE_COMPLICATION_SET_CHANGED",
4246            AtomId::AtomMediaDrmCreated => "ATOM_MEDIA_DRM_CREATED",
4247            AtomId::AtomMediaDrmErrored => "ATOM_MEDIA_DRM_ERRORED",
4248            AtomId::AtomMediaDrmSessionOpened => "ATOM_MEDIA_DRM_SESSION_OPENED",
4249            AtomId::AtomMediaDrmSessionClosed => "ATOM_MEDIA_DRM_SESSION_CLOSED",
4250            AtomId::AtomUserSelectedResolution => "ATOM_USER_SELECTED_RESOLUTION",
4251            AtomId::AtomUnsafeIntentEventReported => "ATOM_UNSAFE_INTENT_EVENT_REPORTED",
4252            AtomId::AtomPerformanceHintSessionReported => "ATOM_PERFORMANCE_HINT_SESSION_REPORTED",
4253            AtomId::AtomMediametricsMidiDeviceCloseReported => "ATOM_MEDIAMETRICS_MIDI_DEVICE_CLOSE_REPORTED",
4254            AtomId::AtomBiometricTouchReported => "ATOM_BIOMETRIC_TOUCH_REPORTED",
4255            AtomId::AtomHotwordAudioEgressEventReported => "ATOM_HOTWORD_AUDIO_EGRESS_EVENT_REPORTED",
4256            AtomId::AtomLocationEnabledStateChanged => "ATOM_LOCATION_ENABLED_STATE_CHANGED",
4257            AtomId::AtomImeRequestFinished => "ATOM_IME_REQUEST_FINISHED",
4258            AtomId::AtomUsbComplianceWarningsReported => "ATOM_USB_COMPLIANCE_WARNINGS_REPORTED",
4259            AtomId::AtomAppSupportedLocalesChanged => "ATOM_APP_SUPPORTED_LOCALES_CHANGED",
4260            AtomId::AtomMediaProviderVolumeRecoveryReported => "ATOM_MEDIA_PROVIDER_VOLUME_RECOVERY_REPORTED",
4261            AtomId::AtomBiometricPropertiesCollected => "ATOM_BIOMETRIC_PROPERTIES_COLLECTED",
4262            AtomId::AtomKernelWakeupAttributed => "ATOM_KERNEL_WAKEUP_ATTRIBUTED",
4263            AtomId::AtomScreenStateChangedV2 => "ATOM_SCREEN_STATE_CHANGED_V2",
4264            AtomId::AtomWsBackupActionReported => "ATOM_WS_BACKUP_ACTION_REPORTED",
4265            AtomId::AtomWsRestoreActionReported => "ATOM_WS_RESTORE_ACTION_REPORTED",
4266            AtomId::AtomDeviceLogAccessEventReported => "ATOM_DEVICE_LOG_ACCESS_EVENT_REPORTED",
4267            AtomId::AtomMediaSessionUpdated => "ATOM_MEDIA_SESSION_UPDATED",
4268            AtomId::AtomWearOobeStateChanged => "ATOM_WEAR_OOBE_STATE_CHANGED",
4269            AtomId::AtomWsNotificationUpdated => "ATOM_WS_NOTIFICATION_UPDATED",
4270            AtomId::AtomNetworkValidationFailureStatsDailyReported => "ATOM_NETWORK_VALIDATION_FAILURE_STATS_DAILY_REPORTED",
4271            AtomId::AtomWsComplicationTapped => "ATOM_WS_COMPLICATION_TAPPED",
4272            AtomId::AtomWsNotificationBlocking => "ATOM_WS_NOTIFICATION_BLOCKING",
4273            AtomId::AtomWsNotificationBridgemodeUpdated => "ATOM_WS_NOTIFICATION_BRIDGEMODE_UPDATED",
4274            AtomId::AtomWsNotificationDismissalActioned => "ATOM_WS_NOTIFICATION_DISMISSAL_ACTIONED",
4275            AtomId::AtomWsNotificationActioned => "ATOM_WS_NOTIFICATION_ACTIONED",
4276            AtomId::AtomWsNotificationLatency => "ATOM_WS_NOTIFICATION_LATENCY",
4277            AtomId::AtomWifiBytesTransfer => "ATOM_WIFI_BYTES_TRANSFER",
4278            AtomId::AtomWifiBytesTransferByFgBg => "ATOM_WIFI_BYTES_TRANSFER_BY_FG_BG",
4279            AtomId::AtomMobileBytesTransfer => "ATOM_MOBILE_BYTES_TRANSFER",
4280            AtomId::AtomMobileBytesTransferByFgBg => "ATOM_MOBILE_BYTES_TRANSFER_BY_FG_BG",
4281            AtomId::AtomBluetoothBytesTransfer => "ATOM_BLUETOOTH_BYTES_TRANSFER",
4282            AtomId::AtomKernelWakelock => "ATOM_KERNEL_WAKELOCK",
4283            AtomId::AtomSubsystemSleepState => "ATOM_SUBSYSTEM_SLEEP_STATE",
4284            AtomId::AtomCpuTimePerUid => "ATOM_CPU_TIME_PER_UID",
4285            AtomId::AtomCpuTimePerUidFreq => "ATOM_CPU_TIME_PER_UID_FREQ",
4286            AtomId::AtomWifiActivityInfo => "ATOM_WIFI_ACTIVITY_INFO",
4287            AtomId::AtomModemActivityInfo => "ATOM_MODEM_ACTIVITY_INFO",
4288            AtomId::AtomBluetoothActivityInfo => "ATOM_BLUETOOTH_ACTIVITY_INFO",
4289            AtomId::AtomProcessMemoryState => "ATOM_PROCESS_MEMORY_STATE",
4290            AtomId::AtomSystemElapsedRealtime => "ATOM_SYSTEM_ELAPSED_REALTIME",
4291            AtomId::AtomSystemUptime => "ATOM_SYSTEM_UPTIME",
4292            AtomId::AtomCpuActiveTime => "ATOM_CPU_ACTIVE_TIME",
4293            AtomId::AtomCpuClusterTime => "ATOM_CPU_CLUSTER_TIME",
4294            AtomId::AtomDiskSpace => "ATOM_DISK_SPACE",
4295            AtomId::AtomRemainingBatteryCapacity => "ATOM_REMAINING_BATTERY_CAPACITY",
4296            AtomId::AtomFullBatteryCapacity => "ATOM_FULL_BATTERY_CAPACITY",
4297            AtomId::AtomTemperature => "ATOM_TEMPERATURE",
4298            AtomId::AtomBinderCalls => "ATOM_BINDER_CALLS",
4299            AtomId::AtomBinderCallsExceptions => "ATOM_BINDER_CALLS_EXCEPTIONS",
4300            AtomId::AtomLooperStats => "ATOM_LOOPER_STATS",
4301            AtomId::AtomDiskStats => "ATOM_DISK_STATS",
4302            AtomId::AtomDirectoryUsage => "ATOM_DIRECTORY_USAGE",
4303            AtomId::AtomAppSize => "ATOM_APP_SIZE",
4304            AtomId::AtomCategorySize => "ATOM_CATEGORY_SIZE",
4305            AtomId::AtomProcStats => "ATOM_PROC_STATS",
4306            AtomId::AtomBatteryVoltage => "ATOM_BATTERY_VOLTAGE",
4307            AtomId::AtomNumFingerprintsEnrolled => "ATOM_NUM_FINGERPRINTS_ENROLLED",
4308            AtomId::AtomDiskIo => "ATOM_DISK_IO",
4309            AtomId::AtomPowerProfile => "ATOM_POWER_PROFILE",
4310            AtomId::AtomProcStatsPkgProc => "ATOM_PROC_STATS_PKG_PROC",
4311            AtomId::AtomProcessCpuTime => "ATOM_PROCESS_CPU_TIME",
4312            AtomId::AtomCpuTimePerThreadFreq => "ATOM_CPU_TIME_PER_THREAD_FREQ",
4313            AtomId::AtomOnDevicePowerMeasurement => "ATOM_ON_DEVICE_POWER_MEASUREMENT",
4314            AtomId::AtomDeviceCalculatedPowerUse => "ATOM_DEVICE_CALCULATED_POWER_USE",
4315            AtomId::AtomProcessMemoryHighWaterMark => "ATOM_PROCESS_MEMORY_HIGH_WATER_MARK",
4316            AtomId::AtomBatteryLevel => "ATOM_BATTERY_LEVEL",
4317            AtomId::AtomBuildInformation => "ATOM_BUILD_INFORMATION",
4318            AtomId::AtomBatteryCycleCount => "ATOM_BATTERY_CYCLE_COUNT",
4319            AtomId::AtomDebugElapsedClock => "ATOM_DEBUG_ELAPSED_CLOCK",
4320            AtomId::AtomDebugFailingElapsedClock => "ATOM_DEBUG_FAILING_ELAPSED_CLOCK",
4321            AtomId::AtomNumFacesEnrolled => "ATOM_NUM_FACES_ENROLLED",
4322            AtomId::AtomRoleHolder => "ATOM_ROLE_HOLDER",
4323            AtomId::AtomDangerousPermissionState => "ATOM_DANGEROUS_PERMISSION_STATE",
4324            AtomId::AtomTrainInfo => "ATOM_TRAIN_INFO",
4325            AtomId::AtomTimeZoneDataInfo => "ATOM_TIME_ZONE_DATA_INFO",
4326            AtomId::AtomExternalStorageInfo => "ATOM_EXTERNAL_STORAGE_INFO",
4327            AtomId::AtomGpuStatsGlobalInfo => "ATOM_GPU_STATS_GLOBAL_INFO",
4328            AtomId::AtomGpuStatsAppInfo => "ATOM_GPU_STATS_APP_INFO",
4329            AtomId::AtomSystemIonHeapSize => "ATOM_SYSTEM_ION_HEAP_SIZE",
4330            AtomId::AtomAppsOnExternalStorageInfo => "ATOM_APPS_ON_EXTERNAL_STORAGE_INFO",
4331            AtomId::AtomFaceSettings => "ATOM_FACE_SETTINGS",
4332            AtomId::AtomCoolingDevice => "ATOM_COOLING_DEVICE",
4333            AtomId::AtomAppOps => "ATOM_APP_OPS",
4334            AtomId::AtomProcessSystemIonHeapSize => "ATOM_PROCESS_SYSTEM_ION_HEAP_SIZE",
4335            AtomId::AtomSurfaceflingerStatsGlobalInfo => "ATOM_SURFACEFLINGER_STATS_GLOBAL_INFO",
4336            AtomId::AtomSurfaceflingerStatsLayerInfo => "ATOM_SURFACEFLINGER_STATS_LAYER_INFO",
4337            AtomId::AtomProcessMemorySnapshot => "ATOM_PROCESS_MEMORY_SNAPSHOT",
4338            AtomId::AtomVmsClientStats => "ATOM_VMS_CLIENT_STATS",
4339            AtomId::AtomNotificationRemoteViews => "ATOM_NOTIFICATION_REMOTE_VIEWS",
4340            AtomId::AtomDangerousPermissionStateSampled => "ATOM_DANGEROUS_PERMISSION_STATE_SAMPLED",
4341            AtomId::AtomGraphicsStats => "ATOM_GRAPHICS_STATS",
4342            AtomId::AtomRuntimeAppOpAccess => "ATOM_RUNTIME_APP_OP_ACCESS",
4343            AtomId::AtomIonHeapSize => "ATOM_ION_HEAP_SIZE",
4344            AtomId::AtomPackageNotificationPreferences => "ATOM_PACKAGE_NOTIFICATION_PREFERENCES",
4345            AtomId::AtomPackageNotificationChannelPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_PREFERENCES",
4346            AtomId::AtomPackageNotificationChannelGroupPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_GROUP_PREFERENCES",
4347            AtomId::AtomGnssStats => "ATOM_GNSS_STATS",
4348            AtomId::AtomAttributedAppOps => "ATOM_ATTRIBUTED_APP_OPS",
4349            AtomId::AtomVoiceCallSession => "ATOM_VOICE_CALL_SESSION",
4350            AtomId::AtomVoiceCallRatUsage => "ATOM_VOICE_CALL_RAT_USAGE",
4351            AtomId::AtomSimSlotState => "ATOM_SIM_SLOT_STATE",
4352            AtomId::AtomSupportedRadioAccessFamily => "ATOM_SUPPORTED_RADIO_ACCESS_FAMILY",
4353            AtomId::AtomSettingSnapshot => "ATOM_SETTING_SNAPSHOT",
4354            AtomId::AtomBlobInfo => "ATOM_BLOB_INFO",
4355            AtomId::AtomDataUsageBytesTransfer => "ATOM_DATA_USAGE_BYTES_TRANSFER",
4356            AtomId::AtomBytesTransferByTagAndMetered => "ATOM_BYTES_TRANSFER_BY_TAG_AND_METERED",
4357            AtomId::AtomDndModeRule => "ATOM_DND_MODE_RULE",
4358            AtomId::AtomGeneralExternalStorageAccessStats => "ATOM_GENERAL_EXTERNAL_STORAGE_ACCESS_STATS",
4359            AtomId::AtomIncomingSms => "ATOM_INCOMING_SMS",
4360            AtomId::AtomOutgoingSms => "ATOM_OUTGOING_SMS",
4361            AtomId::AtomCarrierIdTableVersion => "ATOM_CARRIER_ID_TABLE_VERSION",
4362            AtomId::AtomDataCallSession => "ATOM_DATA_CALL_SESSION",
4363            AtomId::AtomCellularServiceState => "ATOM_CELLULAR_SERVICE_STATE",
4364            AtomId::AtomCellularDataServiceSwitch => "ATOM_CELLULAR_DATA_SERVICE_SWITCH",
4365            AtomId::AtomSystemMemory => "ATOM_SYSTEM_MEMORY",
4366            AtomId::AtomImsRegistrationTermination => "ATOM_IMS_REGISTRATION_TERMINATION",
4367            AtomId::AtomImsRegistrationStats => "ATOM_IMS_REGISTRATION_STATS",
4368            AtomId::AtomCpuTimePerClusterFreq => "ATOM_CPU_TIME_PER_CLUSTER_FREQ",
4369            AtomId::AtomCpuCyclesPerUidCluster => "ATOM_CPU_CYCLES_PER_UID_CLUSTER",
4370            AtomId::AtomDeviceRotatedData => "ATOM_DEVICE_ROTATED_DATA",
4371            AtomId::AtomCpuCyclesPerThreadGroupCluster => "ATOM_CPU_CYCLES_PER_THREAD_GROUP_CLUSTER",
4372            AtomId::AtomMediaDrmActivityInfo => "ATOM_MEDIA_DRM_ACTIVITY_INFO",
4373            AtomId::AtomOemManagedBytesTransfer => "ATOM_OEM_MANAGED_BYTES_TRANSFER",
4374            AtomId::AtomGnssPowerStats => "ATOM_GNSS_POWER_STATS",
4375            AtomId::AtomTimeZoneDetectorState => "ATOM_TIME_ZONE_DETECTOR_STATE",
4376            AtomId::AtomKeystore2StorageStats => "ATOM_KEYSTORE2_STORAGE_STATS",
4377            AtomId::AtomRkpPoolStats => "ATOM_RKP_POOL_STATS",
4378            AtomId::AtomProcessDmabufMemory => "ATOM_PROCESS_DMABUF_MEMORY",
4379            AtomId::AtomPendingAlarmInfo => "ATOM_PENDING_ALARM_INFO",
4380            AtomId::AtomUserLevelHibernatedApps => "ATOM_USER_LEVEL_HIBERNATED_APPS",
4381            AtomId::AtomLauncherLayoutSnapshot => "ATOM_LAUNCHER_LAYOUT_SNAPSHOT",
4382            AtomId::AtomGlobalHibernatedApps => "ATOM_GLOBAL_HIBERNATED_APPS",
4383            AtomId::AtomInputEventLatencySketch => "ATOM_INPUT_EVENT_LATENCY_SKETCH",
4384            AtomId::AtomBatteryUsageStatsBeforeReset => "ATOM_BATTERY_USAGE_STATS_BEFORE_RESET",
4385            AtomId::AtomBatteryUsageStatsSinceReset => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET",
4386            AtomId::AtomBatteryUsageStatsSinceResetUsingPowerProfileModel => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET_USING_POWER_PROFILE_MODEL",
4387            AtomId::AtomInstalledIncrementalPackage => "ATOM_INSTALLED_INCREMENTAL_PACKAGE",
4388            AtomId::AtomTelephonyNetworkRequests => "ATOM_TELEPHONY_NETWORK_REQUESTS",
4389            AtomId::AtomAppSearchStorageInfo => "ATOM_APP_SEARCH_STORAGE_INFO",
4390            AtomId::AtomVmstat => "ATOM_VMSTAT",
4391            AtomId::AtomKeystore2KeyCreationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_GENERAL_INFO",
4392            AtomId::AtomKeystore2KeyCreationWithAuthInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_AUTH_INFO",
4393            AtomId::AtomKeystore2KeyCreationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_PURPOSE_AND_MODES_INFO",
4394            AtomId::AtomKeystore2AtomWithOverflow => "ATOM_KEYSTORE2_ATOM_WITH_OVERFLOW",
4395            AtomId::AtomKeystore2KeyOperationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_PURPOSE_AND_MODES_INFO",
4396            AtomId::AtomKeystore2KeyOperationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_GENERAL_INFO",
4397            AtomId::AtomRkpErrorStats => "ATOM_RKP_ERROR_STATS",
4398            AtomId::AtomKeystore2CrashStats => "ATOM_KEYSTORE2_CRASH_STATS",
4399            AtomId::AtomVendorApexInfo => "ATOM_VENDOR_APEX_INFO",
4400            AtomId::AtomAccessibilityShortcutStats => "ATOM_ACCESSIBILITY_SHORTCUT_STATS",
4401            AtomId::AtomAccessibilityFloatingMenuStats => "ATOM_ACCESSIBILITY_FLOATING_MENU_STATS",
4402            AtomId::AtomDataUsageBytesTransferV2 => "ATOM_DATA_USAGE_BYTES_TRANSFER_V2",
4403            AtomId::AtomMediaCapabilities => "ATOM_MEDIA_CAPABILITIES",
4404            AtomId::AtomCarWatchdogSystemIoUsageSummary => "ATOM_CAR_WATCHDOG_SYSTEM_IO_USAGE_SUMMARY",
4405            AtomId::AtomCarWatchdogUidIoUsageSummary => "ATOM_CAR_WATCHDOG_UID_IO_USAGE_SUMMARY",
4406            AtomId::AtomImsRegistrationFeatureTagStats => "ATOM_IMS_REGISTRATION_FEATURE_TAG_STATS",
4407            AtomId::AtomRcsClientProvisioningStats => "ATOM_RCS_CLIENT_PROVISIONING_STATS",
4408            AtomId::AtomRcsAcsProvisioningStats => "ATOM_RCS_ACS_PROVISIONING_STATS",
4409            AtomId::AtomSipDelegateStats => "ATOM_SIP_DELEGATE_STATS",
4410            AtomId::AtomSipTransportFeatureTagStats => "ATOM_SIP_TRANSPORT_FEATURE_TAG_STATS",
4411            AtomId::AtomSipMessageResponse => "ATOM_SIP_MESSAGE_RESPONSE",
4412            AtomId::AtomSipTransportSession => "ATOM_SIP_TRANSPORT_SESSION",
4413            AtomId::AtomImsDedicatedBearerListenerEvent => "ATOM_IMS_DEDICATED_BEARER_LISTENER_EVENT",
4414            AtomId::AtomImsDedicatedBearerEvent => "ATOM_IMS_DEDICATED_BEARER_EVENT",
4415            AtomId::AtomImsRegistrationServiceDescStats => "ATOM_IMS_REGISTRATION_SERVICE_DESC_STATS",
4416            AtomId::AtomUceEventStats => "ATOM_UCE_EVENT_STATS",
4417            AtomId::AtomPresenceNotifyEvent => "ATOM_PRESENCE_NOTIFY_EVENT",
4418            AtomId::AtomGbaEvent => "ATOM_GBA_EVENT",
4419            AtomId::AtomPerSimStatus => "ATOM_PER_SIM_STATUS",
4420            AtomId::AtomGpuWorkPerUid => "ATOM_GPU_WORK_PER_UID",
4421            AtomId::AtomPersistentUriPermissionsAmountPerPackage => "ATOM_PERSISTENT_URI_PERMISSIONS_AMOUNT_PER_PACKAGE",
4422            AtomId::AtomSignedPartitionInfo => "ATOM_SIGNED_PARTITION_INFO",
4423            AtomId::AtomPinnedFileSizesPerPackage => "ATOM_PINNED_FILE_SIZES_PER_PACKAGE",
4424            AtomId::AtomPendingIntentsPerPackage => "ATOM_PENDING_INTENTS_PER_PACKAGE",
4425            AtomId::AtomUserInfo => "ATOM_USER_INFO",
4426            AtomId::AtomTelephonyNetworkRequestsV2 => "ATOM_TELEPHONY_NETWORK_REQUESTS_V2",
4427            AtomId::AtomDeviceTelephonyProperties => "ATOM_DEVICE_TELEPHONY_PROPERTIES",
4428            AtomId::AtomRemoteKeyProvisioningErrorCounts => "ATOM_REMOTE_KEY_PROVISIONING_ERROR_COUNTS",
4429            AtomId::AtomSafetyState => "ATOM_SAFETY_STATE",
4430            AtomId::AtomIncomingMms => "ATOM_INCOMING_MMS",
4431            AtomId::AtomOutgoingMms => "ATOM_OUTGOING_MMS",
4432            AtomId::AtomMultiUserInfo => "ATOM_MULTI_USER_INFO",
4433            AtomId::AtomNetworkBpfMapInfo => "ATOM_NETWORK_BPF_MAP_INFO",
4434            AtomId::AtomOutgoingShortCodeSms => "ATOM_OUTGOING_SHORT_CODE_SMS",
4435            AtomId::AtomConnectivityStateSample => "ATOM_CONNECTIVITY_STATE_SAMPLE",
4436            AtomId::AtomNetworkSelectionRematchReasonsInfo => "ATOM_NETWORK_SELECTION_REMATCH_REASONS_INFO",
4437            AtomId::AtomGameModeInfo => "ATOM_GAME_MODE_INFO",
4438            AtomId::AtomGameModeConfiguration => "ATOM_GAME_MODE_CONFIGURATION",
4439            AtomId::AtomGameModeListener => "ATOM_GAME_MODE_LISTENER",
4440            AtomId::AtomNetworkSliceRequestCount => "ATOM_NETWORK_SLICE_REQUEST_COUNT",
4441            AtomId::AtomWsTileSnapshot => "ATOM_WS_TILE_SNAPSHOT",
4442            AtomId::AtomWsActiveWatchFaceComplicationSetSnapshot => "ATOM_WS_ACTIVE_WATCH_FACE_COMPLICATION_SET_SNAPSHOT",
4443            AtomId::AtomProcessState => "ATOM_PROCESS_STATE",
4444            AtomId::AtomProcessAssociation => "ATOM_PROCESS_ASSOCIATION",
4445            AtomId::AtomAdpfSystemComponentInfo => "ATOM_ADPF_SYSTEM_COMPONENT_INFO",
4446            AtomId::AtomNotificationMemoryUse => "ATOM_NOTIFICATION_MEMORY_USE",
4447            AtomId::AtomHdrCapabilities => "ATOM_HDR_CAPABILITIES",
4448            AtomId::AtomWsFavouriteWatchFaceListSnapshot => "ATOM_WS_FAVOURITE_WATCH_FACE_LIST_SNAPSHOT",
4449            AtomId::AtomAccessibilityCheckResultReported => "ATOM_ACCESSIBILITY_CHECK_RESULT_REPORTED",
4450            AtomId::AtomAdaptiveAuthUnlockAfterLockReported => "ATOM_ADAPTIVE_AUTH_UNLOCK_AFTER_LOCK_REPORTED",
4451            AtomId::AtomThermalStatusCalled => "ATOM_THERMAL_STATUS_CALLED",
4452            AtomId::AtomThermalHeadroomCalled => "ATOM_THERMAL_HEADROOM_CALLED",
4453            AtomId::AtomThermalHeadroomThresholdsCalled => "ATOM_THERMAL_HEADROOM_THRESHOLDS_CALLED",
4454            AtomId::AtomAdpfHintSessionTidCleanup => "ATOM_ADPF_HINT_SESSION_TID_CLEANUP",
4455            AtomId::AtomThermalHeadroomThresholds => "ATOM_THERMAL_HEADROOM_THRESHOLDS",
4456            AtomId::AtomAdpfSessionSnapshot => "ATOM_ADPF_SESSION_SNAPSHOT",
4457            AtomId::AtomJsscriptengineLatencyReported => "ATOM_JSSCRIPTENGINE_LATENCY_REPORTED",
4458            AtomId::AtomAdServicesApiCalled => "ATOM_AD_SERVICES_API_CALLED",
4459            AtomId::AtomAdServicesMesurementReportsUploaded => "ATOM_AD_SERVICES_MESUREMENT_REPORTS_UPLOADED",
4460            AtomId::AtomMobileDataDownloadFileGroupStatusReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STATUS_REPORTED",
4461            AtomId::AtomMobileDataDownloadDownloadResultReported => "ATOM_MOBILE_DATA_DOWNLOAD_DOWNLOAD_RESULT_REPORTED",
4462            AtomId::AtomAdServicesSettingsUsageReported => "ATOM_AD_SERVICES_SETTINGS_USAGE_REPORTED",
4463            AtomId::AtomBackgroundFetchProcessReported => "ATOM_BACKGROUND_FETCH_PROCESS_REPORTED",
4464            AtomId::AtomUpdateCustomAudienceProcessReported => "ATOM_UPDATE_CUSTOM_AUDIENCE_PROCESS_REPORTED",
4465            AtomId::AtomRunAdBiddingProcessReported => "ATOM_RUN_AD_BIDDING_PROCESS_REPORTED",
4466            AtomId::AtomRunAdScoringProcessReported => "ATOM_RUN_AD_SCORING_PROCESS_REPORTED",
4467            AtomId::AtomRunAdSelectionProcessReported => "ATOM_RUN_AD_SELECTION_PROCESS_REPORTED",
4468            AtomId::AtomRunAdBiddingPerCaProcessReported => "ATOM_RUN_AD_BIDDING_PER_CA_PROCESS_REPORTED",
4469            AtomId::AtomMobileDataDownloadFileGroupStorageStatsReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STORAGE_STATS_REPORTED",
4470            AtomId::AtomAdServicesMeasurementRegistrations => "ATOM_AD_SERVICES_MEASUREMENT_REGISTRATIONS",
4471            AtomId::AtomAdServicesGetTopicsReported => "ATOM_AD_SERVICES_GET_TOPICS_REPORTED",
4472            AtomId::AtomAdServicesEpochComputationGetTopTopicsReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_GET_TOP_TOPICS_REPORTED",
4473            AtomId::AtomAdServicesEpochComputationClassifierReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4474            AtomId::AtomAdServicesBackCompatGetTopicsReported => "ATOM_AD_SERVICES_BACK_COMPAT_GET_TOPICS_REPORTED",
4475            AtomId::AtomAdServicesBackCompatEpochComputationClassifierReported => "ATOM_AD_SERVICES_BACK_COMPAT_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4476            AtomId::AtomAdServicesMeasurementDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_DEBUG_KEYS",
4477            AtomId::AtomAdServicesErrorReported => "ATOM_AD_SERVICES_ERROR_REPORTED",
4478            AtomId::AtomAdServicesBackgroundJobsExecutionReported => "ATOM_AD_SERVICES_BACKGROUND_JOBS_EXECUTION_REPORTED",
4479            AtomId::AtomAdServicesMeasurementDelayedSourceRegistration => "ATOM_AD_SERVICES_MEASUREMENT_DELAYED_SOURCE_REGISTRATION",
4480            AtomId::AtomAdServicesMeasurementAttribution => "ATOM_AD_SERVICES_MEASUREMENT_ATTRIBUTION",
4481            AtomId::AtomAdServicesMeasurementJobs => "ATOM_AD_SERVICES_MEASUREMENT_JOBS",
4482            AtomId::AtomAdServicesMeasurementWipeout => "ATOM_AD_SERVICES_MEASUREMENT_WIPEOUT",
4483            AtomId::AtomAdServicesMeasurementAdIdMatchForDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_AD_ID_MATCH_FOR_DEBUG_KEYS",
4484            AtomId::AtomAdServicesEnrollmentDataStored => "ATOM_AD_SERVICES_ENROLLMENT_DATA_STORED",
4485            AtomId::AtomAdServicesEnrollmentFileDownloaded => "ATOM_AD_SERVICES_ENROLLMENT_FILE_DOWNLOADED",
4486            AtomId::AtomAdServicesEnrollmentMatched => "ATOM_AD_SERVICES_ENROLLMENT_MATCHED",
4487            AtomId::AtomAdServicesConsentMigrated => "ATOM_AD_SERVICES_CONSENT_MIGRATED",
4488            AtomId::AtomAdServicesEnrollmentFailed => "ATOM_AD_SERVICES_ENROLLMENT_FAILED",
4489            AtomId::AtomAdServicesMeasurementClickVerification => "ATOM_AD_SERVICES_MEASUREMENT_CLICK_VERIFICATION",
4490            AtomId::AtomAdServicesEncryptionKeyFetched => "ATOM_AD_SERVICES_ENCRYPTION_KEY_FETCHED",
4491            AtomId::AtomAdServicesEncryptionKeyDbTransactionEnded => "ATOM_AD_SERVICES_ENCRYPTION_KEY_DB_TRANSACTION_ENDED",
4492            AtomId::AtomDestinationRegisteredBeacons => "ATOM_DESTINATION_REGISTERED_BEACONS",
4493            AtomId::AtomReportInteractionApiCalled => "ATOM_REPORT_INTERACTION_API_CALLED",
4494            AtomId::AtomInteractionReportingTableCleared => "ATOM_INTERACTION_REPORTING_TABLE_CLEARED",
4495            AtomId::AtomAppManifestConfigHelperCalled => "ATOM_APP_MANIFEST_CONFIG_HELPER_CALLED",
4496            AtomId::AtomAdFilteringProcessJoinCaReported => "ATOM_AD_FILTERING_PROCESS_JOIN_CA_REPORTED",
4497            AtomId::AtomAdFilteringProcessAdSelectionReported => "ATOM_AD_FILTERING_PROCESS_AD_SELECTION_REPORTED",
4498            AtomId::AtomAdCounterHistogramUpdaterReported => "ATOM_AD_COUNTER_HISTOGRAM_UPDATER_REPORTED",
4499            AtomId::AtomSignatureVerification => "ATOM_SIGNATURE_VERIFICATION",
4500            AtomId::AtomKAnonImmediateSignJoinStatusReported => "ATOM_K_ANON_IMMEDIATE_SIGN_JOIN_STATUS_REPORTED",
4501            AtomId::AtomKAnonBackgroundJobStatusReported => "ATOM_K_ANON_BACKGROUND_JOB_STATUS_REPORTED",
4502            AtomId::AtomKAnonInitializeStatusReported => "ATOM_K_ANON_INITIALIZE_STATUS_REPORTED",
4503            AtomId::AtomKAnonSignStatusReported => "ATOM_K_ANON_SIGN_STATUS_REPORTED",
4504            AtomId::AtomKAnonJoinStatusReported => "ATOM_K_ANON_JOIN_STATUS_REPORTED",
4505            AtomId::AtomKAnonKeyAttestationStatusReported => "ATOM_K_ANON_KEY_ATTESTATION_STATUS_REPORTED",
4506            AtomId::AtomGetAdSelectionDataApiCalled => "ATOM_GET_AD_SELECTION_DATA_API_CALLED",
4507            AtomId::AtomGetAdSelectionDataBuyerInputGenerated => "ATOM_GET_AD_SELECTION_DATA_BUYER_INPUT_GENERATED",
4508            AtomId::AtomBackgroundJobSchedulingReported => "ATOM_BACKGROUND_JOB_SCHEDULING_REPORTED",
4509            AtomId::AtomTopicsEncryptionEpochComputationReported => "ATOM_TOPICS_ENCRYPTION_EPOCH_COMPUTATION_REPORTED",
4510            AtomId::AtomTopicsEncryptionGetTopicsReported => "ATOM_TOPICS_ENCRYPTION_GET_TOPICS_REPORTED",
4511            AtomId::AtomAdservicesShellCommandCalled => "ATOM_ADSERVICES_SHELL_COMMAND_CALLED",
4512            AtomId::AtomUpdateSignalsApiCalled => "ATOM_UPDATE_SIGNALS_API_CALLED",
4513            AtomId::AtomEncodingJobRun => "ATOM_ENCODING_JOB_RUN",
4514            AtomId::AtomEncodingJsFetch => "ATOM_ENCODING_JS_FETCH",
4515            AtomId::AtomEncodingJsExecution => "ATOM_ENCODING_JS_EXECUTION",
4516            AtomId::AtomPersistAdSelectionResultCalled => "ATOM_PERSIST_AD_SELECTION_RESULT_CALLED",
4517            AtomId::AtomServerAuctionKeyFetchCalled => "ATOM_SERVER_AUCTION_KEY_FETCH_CALLED",
4518            AtomId::AtomServerAuctionBackgroundKeyFetchEnabled => "ATOM_SERVER_AUCTION_BACKGROUND_KEY_FETCH_ENABLED",
4519            AtomId::AtomAdServicesMeasurementProcessOdpRegistration => "ATOM_AD_SERVICES_MEASUREMENT_PROCESS_ODP_REGISTRATION",
4520            AtomId::AtomAdServicesMeasurementNotifyRegistrationToOdp => "ATOM_AD_SERVICES_MEASUREMENT_NOTIFY_REGISTRATION_TO_ODP",
4521            AtomId::AtomSelectAdsFromOutcomesApiCalled => "ATOM_SELECT_ADS_FROM_OUTCOMES_API_CALLED",
4522            AtomId::AtomReportImpressionApiCalled => "ATOM_REPORT_IMPRESSION_API_CALLED",
4523            AtomId::AtomAdServicesEnrollmentTransactionStats => "ATOM_AD_SERVICES_ENROLLMENT_TRANSACTION_STATS",
4524            AtomId::AtomAdServicesCobaltLoggerEventReported => "ATOM_AD_SERVICES_COBALT_LOGGER_EVENT_REPORTED",
4525            AtomId::AtomAdServicesCobaltPeriodicJobEventReported => "ATOM_AD_SERVICES_COBALT_PERIODIC_JOB_EVENT_REPORTED",
4526            AtomId::AtomUpdateSignalsProcessReported => "ATOM_UPDATE_SIGNALS_PROCESS_REPORTED",
4527            AtomId::AtomTopicsScheduleEpochJobSettingReported => "ATOM_TOPICS_SCHEDULE_EPOCH_JOB_SETTING_REPORTED",
4528            AtomId::AtomAiWallpapersButtonPressed => "ATOM_AI_WALLPAPERS_BUTTON_PRESSED",
4529            AtomId::AtomAiWallpapersTemplateSelected => "ATOM_AI_WALLPAPERS_TEMPLATE_SELECTED",
4530            AtomId::AtomAiWallpapersTermSelected => "ATOM_AI_WALLPAPERS_TERM_SELECTED",
4531            AtomId::AtomAiWallpapersWallpaperSet => "ATOM_AI_WALLPAPERS_WALLPAPER_SET",
4532            AtomId::AtomAiWallpapersSessionSummary => "ATOM_AI_WALLPAPERS_SESSION_SUMMARY",
4533            AtomId::AtomApexInstallationRequested => "ATOM_APEX_INSTALLATION_REQUESTED",
4534            AtomId::AtomApexInstallationStaged => "ATOM_APEX_INSTALLATION_STAGED",
4535            AtomId::AtomApexInstallationEnded => "ATOM_APEX_INSTALLATION_ENDED",
4536            AtomId::AtomAppSearchSetSchemaStatsReported => "ATOM_APP_SEARCH_SET_SCHEMA_STATS_REPORTED",
4537            AtomId::AtomAppSearchSchemaMigrationStatsReported => "ATOM_APP_SEARCH_SCHEMA_MIGRATION_STATS_REPORTED",
4538            AtomId::AtomAppSearchUsageSearchIntentStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_STATS_REPORTED",
4539            AtomId::AtomAppSearchUsageSearchIntentRawQueryStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_RAW_QUERY_STATS_REPORTED",
4540            AtomId::AtomAppSearchAppsIndexerStatsReported => "ATOM_APP_SEARCH_APPS_INDEXER_STATS_REPORTED",
4541            AtomId::AtomArtDatumReported => "ATOM_ART_DATUM_REPORTED",
4542            AtomId::AtomArtDeviceDatumReported => "ATOM_ART_DEVICE_DATUM_REPORTED",
4543            AtomId::AtomArtDatumDeltaReported => "ATOM_ART_DATUM_DELTA_REPORTED",
4544            AtomId::AtomArtDex2oatReported => "ATOM_ART_DEX2OAT_REPORTED",
4545            AtomId::AtomArtDeviceStatus => "ATOM_ART_DEVICE_STATUS",
4546            AtomId::AtomBackgroundDexoptJobEnded => "ATOM_BACKGROUND_DEXOPT_JOB_ENDED",
4547            AtomId::AtomPrerebootDexoptJobEnded => "ATOM_PREREBOOT_DEXOPT_JOB_ENDED",
4548            AtomId::AtomOdrefreshReported => "ATOM_ODREFRESH_REPORTED",
4549            AtomId::AtomOdsignReported => "ATOM_ODSIGN_REPORTED",
4550            AtomId::AtomAutofillUiEventReported => "ATOM_AUTOFILL_UI_EVENT_REPORTED",
4551            AtomId::AtomAutofillFillRequestReported => "ATOM_AUTOFILL_FILL_REQUEST_REPORTED",
4552            AtomId::AtomAutofillFillResponseReported => "ATOM_AUTOFILL_FILL_RESPONSE_REPORTED",
4553            AtomId::AtomAutofillSaveEventReported => "ATOM_AUTOFILL_SAVE_EVENT_REPORTED",
4554            AtomId::AtomAutofillSessionCommitted => "ATOM_AUTOFILL_SESSION_COMMITTED",
4555            AtomId::AtomAutofillFieldClassificationEventReported => "ATOM_AUTOFILL_FIELD_CLASSIFICATION_EVENT_REPORTED",
4556            AtomId::AtomCarRecentsEventReported => "ATOM_CAR_RECENTS_EVENT_REPORTED",
4557            AtomId::AtomCarCalmModeEventReported => "ATOM_CAR_CALM_MODE_EVENT_REPORTED",
4558            AtomId::AtomCarWakeupFromSuspendReported => "ATOM_CAR_WAKEUP_FROM_SUSPEND_REPORTED",
4559            AtomId::AtomPluginInitialized => "ATOM_PLUGIN_INITIALIZED",
4560            AtomId::AtomBluetoothHashedDeviceNameReported => "ATOM_BLUETOOTH_HASHED_DEVICE_NAME_REPORTED",
4561            AtomId::AtomBluetoothL2capCocClientConnection => "ATOM_BLUETOOTH_L2CAP_COC_CLIENT_CONNECTION",
4562            AtomId::AtomBluetoothL2capCocServerConnection => "ATOM_BLUETOOTH_L2CAP_COC_SERVER_CONNECTION",
4563            AtomId::AtomBluetoothLeSessionConnected => "ATOM_BLUETOOTH_LE_SESSION_CONNECTED",
4564            AtomId::AtomRestrictedBluetoothDeviceNameReported => "ATOM_RESTRICTED_BLUETOOTH_DEVICE_NAME_REPORTED",
4565            AtomId::AtomBluetoothProfileConnectionAttempted => "ATOM_BLUETOOTH_PROFILE_CONNECTION_ATTEMPTED",
4566            AtomId::AtomBluetoothContentProfileErrorReported => "ATOM_BLUETOOTH_CONTENT_PROFILE_ERROR_REPORTED",
4567            AtomId::AtomBluetoothRfcommConnectionAttempted => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_ATTEMPTED",
4568            AtomId::AtomRemoteDeviceInformationWithMetricId => "ATOM_REMOTE_DEVICE_INFORMATION_WITH_METRIC_ID",
4569            AtomId::AtomLeAppScanStateChanged => "ATOM_LE_APP_SCAN_STATE_CHANGED",
4570            AtomId::AtomLeRadioScanStopped => "ATOM_LE_RADIO_SCAN_STOPPED",
4571            AtomId::AtomLeScanResultReceived => "ATOM_LE_SCAN_RESULT_RECEIVED",
4572            AtomId::AtomLeScanAbused => "ATOM_LE_SCAN_ABUSED",
4573            AtomId::AtomLeAdvStateChanged => "ATOM_LE_ADV_STATE_CHANGED",
4574            AtomId::AtomLeAdvErrorReported => "ATOM_LE_ADV_ERROR_REPORTED",
4575            AtomId::AtomA2dpSessionReported => "ATOM_A2DP_SESSION_REPORTED",
4576            AtomId::AtomBluetoothCrossLayerEventReported => "ATOM_BLUETOOTH_CROSS_LAYER_EVENT_REPORTED",
4577            AtomId::AtomBroadcastAudioSessionReported => "ATOM_BROADCAST_AUDIO_SESSION_REPORTED",
4578            AtomId::AtomBroadcastAudioSyncReported => "ATOM_BROADCAST_AUDIO_SYNC_REPORTED",
4579            AtomId::AtomBluetoothRfcommConnectionReportedAtClose => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_REPORTED_AT_CLOSE",
4580            AtomId::AtomBluetoothLeConnection => "ATOM_BLUETOOTH_LE_CONNECTION",
4581            AtomId::AtomBroadcastSent => "ATOM_BROADCAST_SENT",
4582            AtomId::AtomCameraFeatureCombinationQueryEvent => "ATOM_CAMERA_FEATURE_COMBINATION_QUERY_EVENT",
4583            AtomId::AtomCertificateTransparencyLogListStateChanged => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_STATE_CHANGED",
4584            AtomId::AtomCertificateTransparencyLogListUpdateFailed => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_UPDATE_FAILED",
4585            AtomId::AtomDailyKeepaliveInfoReported => "ATOM_DAILY_KEEPALIVE_INFO_REPORTED",
4586            AtomId::AtomNetworkRequestStateChanged => "ATOM_NETWORK_REQUEST_STATE_CHANGED",
4587            AtomId::AtomTetheringActiveSessionsReported => "ATOM_TETHERING_ACTIVE_SESSIONS_REPORTED",
4588            AtomId::AtomNetworkStatsRecorderFileOperated => "ATOM_NETWORK_STATS_RECORDER_FILE_OPERATED",
4589            AtomId::AtomCoreNetworkingTerribleErrorOccurred => "ATOM_CORE_NETWORKING_TERRIBLE_ERROR_OCCURRED",
4590            AtomId::AtomApfSessionInfoReported => "ATOM_APF_SESSION_INFO_REPORTED",
4591            AtomId::AtomIpClientRaInfoReported => "ATOM_IP_CLIENT_RA_INFO_REPORTED",
4592            AtomId::AtomVpnConnectionStateChanged => "ATOM_VPN_CONNECTION_STATE_CHANGED",
4593            AtomId::AtomVpnConnectionReported => "ATOM_VPN_CONNECTION_REPORTED",
4594            AtomId::AtomCpuPolicy => "ATOM_CPU_POLICY",
4595            AtomId::AtomCredentialManagerApiCalled => "ATOM_CREDENTIAL_MANAGER_API_CALLED",
4596            AtomId::AtomCredentialManagerInitPhaseReported => "ATOM_CREDENTIAL_MANAGER_INIT_PHASE_REPORTED",
4597            AtomId::AtomCredentialManagerCandidatePhaseReported => "ATOM_CREDENTIAL_MANAGER_CANDIDATE_PHASE_REPORTED",
4598            AtomId::AtomCredentialManagerFinalPhaseReported => "ATOM_CREDENTIAL_MANAGER_FINAL_PHASE_REPORTED",
4599            AtomId::AtomCredentialManagerTotalReported => "ATOM_CREDENTIAL_MANAGER_TOTAL_REPORTED",
4600            AtomId::AtomCredentialManagerFinalnouidReported => "ATOM_CREDENTIAL_MANAGER_FINALNOUID_REPORTED",
4601            AtomId::AtomCredentialManagerGetReported => "ATOM_CREDENTIAL_MANAGER_GET_REPORTED",
4602            AtomId::AtomCredentialManagerAuthClickReported => "ATOM_CREDENTIAL_MANAGER_AUTH_CLICK_REPORTED",
4603            AtomId::AtomCredentialManagerApiv2Called => "ATOM_CREDENTIAL_MANAGER_APIV2_CALLED",
4604            AtomId::AtomCronetEngineCreated => "ATOM_CRONET_ENGINE_CREATED",
4605            AtomId::AtomCronetTrafficReported => "ATOM_CRONET_TRAFFIC_REPORTED",
4606            AtomId::AtomCronetEngineBuilderInitialized => "ATOM_CRONET_ENGINE_BUILDER_INITIALIZED",
4607            AtomId::AtomCronetHttpFlagsInitialized => "ATOM_CRONET_HTTP_FLAGS_INITIALIZED",
4608            AtomId::AtomCronetInitialized => "ATOM_CRONET_INITIALIZED",
4609            AtomId::AtomDesktopModeUiChanged => "ATOM_DESKTOP_MODE_UI_CHANGED",
4610            AtomId::AtomDesktopModeSessionTaskUpdate => "ATOM_DESKTOP_MODE_SESSION_TASK_UPDATE",
4611            AtomId::AtomDesktopModeTaskSizeUpdated => "ATOM_DESKTOP_MODE_TASK_SIZE_UPDATED",
4612            AtomId::AtomDeviceLockCheckInRequestReported => "ATOM_DEVICE_LOCK_CHECK_IN_REQUEST_REPORTED",
4613            AtomId::AtomDeviceLockProvisioningCompleteReported => "ATOM_DEVICE_LOCK_PROVISIONING_COMPLETE_REPORTED",
4614            AtomId::AtomDeviceLockKioskAppRequestReported => "ATOM_DEVICE_LOCK_KIOSK_APP_REQUEST_REPORTED",
4615            AtomId::AtomDeviceLockCheckInRetryReported => "ATOM_DEVICE_LOCK_CHECK_IN_RETRY_REPORTED",
4616            AtomId::AtomDeviceLockProvisionFailureReported => "ATOM_DEVICE_LOCK_PROVISION_FAILURE_REPORTED",
4617            AtomId::AtomDeviceLockLockUnlockDeviceFailureReported => "ATOM_DEVICE_LOCK_LOCK_UNLOCK_DEVICE_FAILURE_REPORTED",
4618            AtomId::AtomDevicePolicyManagementMode => "ATOM_DEVICE_POLICY_MANAGEMENT_MODE",
4619            AtomId::AtomDevicePolicyState => "ATOM_DEVICE_POLICY_STATE",
4620            AtomId::AtomDisplayModeDirectorVoteChanged => "ATOM_DISPLAY_MODE_DIRECTOR_VOTE_CHANGED",
4621            AtomId::AtomExternalDisplayStateChanged => "ATOM_EXTERNAL_DISPLAY_STATE_CHANGED",
4622            AtomId::AtomDndStateChanged => "ATOM_DND_STATE_CHANGED",
4623            AtomId::AtomDreamSettingChanged => "ATOM_DREAM_SETTING_CHANGED",
4624            AtomId::AtomDreamSettingSnapshot => "ATOM_DREAM_SETTING_SNAPSHOT",
4625            AtomId::AtomExpressEventReported => "ATOM_EXPRESS_EVENT_REPORTED",
4626            AtomId::AtomExpressHistogramSampleReported => "ATOM_EXPRESS_HISTOGRAM_SAMPLE_REPORTED",
4627            AtomId::AtomExpressUidEventReported => "ATOM_EXPRESS_UID_EVENT_REPORTED",
4628            AtomId::AtomExpressUidHistogramSampleReported => "ATOM_EXPRESS_UID_HISTOGRAM_SAMPLE_REPORTED",
4629            AtomId::AtomFederatedComputeApiCalled => "ATOM_FEDERATED_COMPUTE_API_CALLED",
4630            AtomId::AtomFederatedComputeTrainingEventReported => "ATOM_FEDERATED_COMPUTE_TRAINING_EVENT_REPORTED",
4631            AtomId::AtomExampleIteratorNextLatencyReported => "ATOM_EXAMPLE_ITERATOR_NEXT_LATENCY_REPORTED",
4632            AtomId::AtomFullScreenIntentLaunched => "ATOM_FULL_SCREEN_INTENT_LAUNCHED",
4633            AtomId::AtomBalAllowed => "ATOM_BAL_ALLOWED",
4634            AtomId::AtomInTaskActivityStarted => "ATOM_IN_TASK_ACTIVITY_STARTED",
4635            AtomId::AtomDeviceOrientationChanged => "ATOM_DEVICE_ORIENTATION_CHANGED",
4636            AtomId::AtomCachedAppsHighWatermark => "ATOM_CACHED_APPS_HIGH_WATERMARK",
4637            AtomId::AtomStylusPredictionMetricsReported => "ATOM_STYLUS_PREDICTION_METRICS_REPORTED",
4638            AtomId::AtomUserRiskEventReported => "ATOM_USER_RISK_EVENT_REPORTED",
4639            AtomId::AtomMediaProjectionStateChanged => "ATOM_MEDIA_PROJECTION_STATE_CHANGED",
4640            AtomId::AtomMediaProjectionTargetChanged => "ATOM_MEDIA_PROJECTION_TARGET_CHANGED",
4641            AtomId::AtomExcessiveBinderProxyCountReported => "ATOM_EXCESSIVE_BINDER_PROXY_COUNT_REPORTED",
4642            AtomId::AtomProxyBytesTransferByFgBg => "ATOM_PROXY_BYTES_TRANSFER_BY_FG_BG",
4643            AtomId::AtomMobileBytesTransferByProcState => "ATOM_MOBILE_BYTES_TRANSFER_BY_PROC_STATE",
4644            AtomId::AtomBiometricFrrNotification => "ATOM_BIOMETRIC_FRR_NOTIFICATION",
4645            AtomId::AtomSensitiveContentMediaProjectionSession => "ATOM_SENSITIVE_CONTENT_MEDIA_PROJECTION_SESSION",
4646            AtomId::AtomSensitiveNotificationAppProtectionSession => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_SESSION",
4647            AtomId::AtomSensitiveNotificationAppProtectionApplied => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_APPLIED",
4648            AtomId::AtomSensitiveNotificationRedaction => "ATOM_SENSITIVE_NOTIFICATION_REDACTION",
4649            AtomId::AtomSensitiveContentAppProtection => "ATOM_SENSITIVE_CONTENT_APP_PROTECTION",
4650            AtomId::AtomAppRestrictionStateChanged => "ATOM_APP_RESTRICTION_STATE_CHANGED",
4651            AtomId::AtomBatteryUsageStatsPerUid => "ATOM_BATTERY_USAGE_STATS_PER_UID",
4652            AtomId::AtomPostgcMemorySnapshot => "ATOM_POSTGC_MEMORY_SNAPSHOT",
4653            AtomId::AtomPowerSaveTempAllowlistChanged => "ATOM_POWER_SAVE_TEMP_ALLOWLIST_CHANGED",
4654            AtomId::AtomAppOpAccessTracked => "ATOM_APP_OP_ACCESS_TRACKED",
4655            AtomId::AtomContentOrFileUriEventReported => "ATOM_CONTENT_OR_FILE_URI_EVENT_REPORTED",
4656            AtomId::AtomApplicationGrammaticalInflectionChanged => "ATOM_APPLICATION_GRAMMATICAL_INFLECTION_CHANGED",
4657            AtomId::AtomSystemGrammaticalInflectionChanged => "ATOM_SYSTEM_GRAMMATICAL_INFLECTION_CHANGED",
4658            AtomId::AtomBatteryHealth => "ATOM_BATTERY_HEALTH",
4659            AtomId::AtomHdmiEarcStatusReported => "ATOM_HDMI_EARC_STATUS_REPORTED",
4660            AtomId::AtomHdmiSoundbarModeStatusReported => "ATOM_HDMI_SOUNDBAR_MODE_STATUS_REPORTED",
4661            AtomId::AtomHealthConnectApiCalled => "ATOM_HEALTH_CONNECT_API_CALLED",
4662            AtomId::AtomHealthConnectUsageStats => "ATOM_HEALTH_CONNECT_USAGE_STATS",
4663            AtomId::AtomHealthConnectStorageStats => "ATOM_HEALTH_CONNECT_STORAGE_STATS",
4664            AtomId::AtomHealthConnectApiInvoked => "ATOM_HEALTH_CONNECT_API_INVOKED",
4665            AtomId::AtomExerciseRouteApiCalled => "ATOM_EXERCISE_ROUTE_API_CALLED",
4666            AtomId::AtomHealthConnectExportInvoked => "ATOM_HEALTH_CONNECT_EXPORT_INVOKED",
4667            AtomId::AtomHealthConnectImportInvoked => "ATOM_HEALTH_CONNECT_IMPORT_INVOKED",
4668            AtomId::AtomHealthConnectExportImportStatsReported => "ATOM_HEALTH_CONNECT_EXPORT_IMPORT_STATS_REPORTED",
4669            AtomId::AtomHealthConnectUiImpression => "ATOM_HEALTH_CONNECT_UI_IMPRESSION",
4670            AtomId::AtomHealthConnectUiInteraction => "ATOM_HEALTH_CONNECT_UI_INTERACTION",
4671            AtomId::AtomHealthConnectAppOpenedReported => "ATOM_HEALTH_CONNECT_APP_OPENED_REPORTED",
4672            AtomId::AtomHotwordEgressSizeAtomReported => "ATOM_HOTWORD_EGRESS_SIZE_ATOM_REPORTED",
4673            AtomId::AtomIkeSessionTerminated => "ATOM_IKE_SESSION_TERMINATED",
4674            AtomId::AtomIkeLivenessCheckSessionValidated => "ATOM_IKE_LIVENESS_CHECK_SESSION_VALIDATED",
4675            AtomId::AtomNegotiatedSecurityAssociation => "ATOM_NEGOTIATED_SECURITY_ASSOCIATION",
4676            AtomId::AtomKeyboardConfigured => "ATOM_KEYBOARD_CONFIGURED",
4677            AtomId::AtomKeyboardSystemsEventReported => "ATOM_KEYBOARD_SYSTEMS_EVENT_REPORTED",
4678            AtomId::AtomInputdeviceUsageReported => "ATOM_INPUTDEVICE_USAGE_REPORTED",
4679            AtomId::AtomInputEventLatencyReported => "ATOM_INPUT_EVENT_LATENCY_REPORTED",
4680            AtomId::AtomTouchpadUsage => "ATOM_TOUCHPAD_USAGE",
4681            AtomId::AtomKernelOomKillOccurred => "ATOM_KERNEL_OOM_KILL_OCCURRED",
4682            AtomId::AtomEmergencyStateChanged => "ATOM_EMERGENCY_STATE_CHANGED",
4683            AtomId::AtomChreSignificantMotionStateChanged => "ATOM_CHRE_SIGNIFICANT_MOTION_STATE_CHANGED",
4684            AtomId::AtomPopulationDensityProviderLoadingReported => "ATOM_POPULATION_DENSITY_PROVIDER_LOADING_REPORTED",
4685            AtomId::AtomDensityBasedCoarseLocationsUsageReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_USAGE_REPORTED",
4686            AtomId::AtomDensityBasedCoarseLocationsProviderQueryReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_PROVIDER_QUERY_REPORTED",
4687            AtomId::AtomMediaCodecReclaimRequestCompleted => "ATOM_MEDIA_CODEC_RECLAIM_REQUEST_COMPLETED",
4688            AtomId::AtomMediaCodecStarted => "ATOM_MEDIA_CODEC_STARTED",
4689            AtomId::AtomMediaCodecStopped => "ATOM_MEDIA_CODEC_STOPPED",
4690            AtomId::AtomMediaCodecRendered => "ATOM_MEDIA_CODEC_RENDERED",
4691            AtomId::AtomMediaEditingEndedReported => "ATOM_MEDIA_EDITING_ENDED_REPORTED",
4692            AtomId::AtomMteState => "ATOM_MTE_STATE",
4693            AtomId::AtomMicroxrDeviceBootCompleteReported => "ATOM_MICROXR_DEVICE_BOOT_COMPLETE_REPORTED",
4694            AtomId::AtomNfcObserveModeStateChanged => "ATOM_NFC_OBSERVE_MODE_STATE_CHANGED",
4695            AtomId::AtomNfcFieldChanged => "ATOM_NFC_FIELD_CHANGED",
4696            AtomId::AtomNfcPollingLoopNotificationReported => "ATOM_NFC_POLLING_LOOP_NOTIFICATION_REPORTED",
4697            AtomId::AtomNfcProprietaryCapabilitiesReported => "ATOM_NFC_PROPRIETARY_CAPABILITIES_REPORTED",
4698            AtomId::AtomOndevicepersonalizationApiCalled => "ATOM_ONDEVICEPERSONALIZATION_API_CALLED",
4699            AtomId::AtomComponentStateChangedReported => "ATOM_COMPONENT_STATE_CHANGED_REPORTED",
4700            AtomId::AtomPdfLoadReported => "ATOM_PDF_LOAD_REPORTED",
4701            AtomId::AtomPdfApiUsageReported => "ATOM_PDF_API_USAGE_REPORTED",
4702            AtomId::AtomPdfSearchReported => "ATOM_PDF_SEARCH_REPORTED",
4703            AtomId::AtomPressureStallInformation => "ATOM_PRESSURE_STALL_INFORMATION",
4704            AtomId::AtomPermissionRationaleDialogViewed => "ATOM_PERMISSION_RATIONALE_DIALOG_VIEWED",
4705            AtomId::AtomPermissionRationaleDialogActionReported => "ATOM_PERMISSION_RATIONALE_DIALOG_ACTION_REPORTED",
4706            AtomId::AtomAppDataSharingUpdatesNotificationInteraction => "ATOM_APP_DATA_SHARING_UPDATES_NOTIFICATION_INTERACTION",
4707            AtomId::AtomAppDataSharingUpdatesFragmentViewed => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_VIEWED",
4708            AtomId::AtomAppDataSharingUpdatesFragmentActionReported => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_ACTION_REPORTED",
4709            AtomId::AtomEnhancedConfirmationDialogResultReported => "ATOM_ENHANCED_CONFIRMATION_DIALOG_RESULT_REPORTED",
4710            AtomId::AtomEnhancedConfirmationRestrictionCleared => "ATOM_ENHANCED_CONFIRMATION_RESTRICTION_CLEARED",
4711            AtomId::AtomPhotopickerSessionInfoReported => "ATOM_PHOTOPICKER_SESSION_INFO_REPORTED",
4712            AtomId::AtomPhotopickerApiInfoReported => "ATOM_PHOTOPICKER_API_INFO_REPORTED",
4713            AtomId::AtomPhotopickerUiEventLogged => "ATOM_PHOTOPICKER_UI_EVENT_LOGGED",
4714            AtomId::AtomPhotopickerMediaItemStatusReported => "ATOM_PHOTOPICKER_MEDIA_ITEM_STATUS_REPORTED",
4715            AtomId::AtomPhotopickerPreviewInfoLogged => "ATOM_PHOTOPICKER_PREVIEW_INFO_LOGGED",
4716            AtomId::AtomPhotopickerMenuInteractionLogged => "ATOM_PHOTOPICKER_MENU_INTERACTION_LOGGED",
4717            AtomId::AtomPhotopickerBannerInteractionLogged => "ATOM_PHOTOPICKER_BANNER_INTERACTION_LOGGED",
4718            AtomId::AtomPhotopickerMediaLibraryInfoLogged => "ATOM_PHOTOPICKER_MEDIA_LIBRARY_INFO_LOGGED",
4719            AtomId::AtomPhotopickerPageInfoLogged => "ATOM_PHOTOPICKER_PAGE_INFO_LOGGED",
4720            AtomId::AtomPhotopickerMediaGridSyncInfoReported => "ATOM_PHOTOPICKER_MEDIA_GRID_SYNC_INFO_REPORTED",
4721            AtomId::AtomPhotopickerAlbumSyncInfoReported => "ATOM_PHOTOPICKER_ALBUM_SYNC_INFO_REPORTED",
4722            AtomId::AtomPhotopickerSearchInfoReported => "ATOM_PHOTOPICKER_SEARCH_INFO_REPORTED",
4723            AtomId::AtomSearchDataExtractionDetailsReported => "ATOM_SEARCH_DATA_EXTRACTION_DETAILS_REPORTED",
4724            AtomId::AtomEmbeddedPhotopickerInfoReported => "ATOM_EMBEDDED_PHOTOPICKER_INFO_REPORTED",
4725            AtomId::AtomAtom9999 => "ATOM_ATOM_9999",
4726            AtomId::AtomAtom99999 => "ATOM_ATOM_99999",
4727            AtomId::AtomScreenOffReported => "ATOM_SCREEN_OFF_REPORTED",
4728            AtomId::AtomScreenTimeoutOverrideReported => "ATOM_SCREEN_TIMEOUT_OVERRIDE_REPORTED",
4729            AtomId::AtomScreenInteractiveSessionReported => "ATOM_SCREEN_INTERACTIVE_SESSION_REPORTED",
4730            AtomId::AtomScreenDimReported => "ATOM_SCREEN_DIM_REPORTED",
4731            AtomId::AtomMediaProviderDatabaseRollbackReported => "ATOM_MEDIA_PROVIDER_DATABASE_ROLLBACK_REPORTED",
4732            AtomId::AtomBackupSetupStatusReported => "ATOM_BACKUP_SETUP_STATUS_REPORTED",
4733            AtomId::AtomRangingSessionConfigured => "ATOM_RANGING_SESSION_CONFIGURED",
4734            AtomId::AtomRangingSessionStarted => "ATOM_RANGING_SESSION_STARTED",
4735            AtomId::AtomRangingSessionClosed => "ATOM_RANGING_SESSION_CLOSED",
4736            AtomId::AtomRangingTechnologyStarted => "ATOM_RANGING_TECHNOLOGY_STARTED",
4737            AtomId::AtomRangingTechnologyStopped => "ATOM_RANGING_TECHNOLOGY_STOPPED",
4738            AtomId::AtomRkpdPoolStats => "ATOM_RKPD_POOL_STATS",
4739            AtomId::AtomRkpdClientOperation => "ATOM_RKPD_CLIENT_OPERATION",
4740            AtomId::AtomSandboxApiCalled => "ATOM_SANDBOX_API_CALLED",
4741            AtomId::AtomSandboxActivityEventOccurred => "ATOM_SANDBOX_ACTIVITY_EVENT_OCCURRED",
4742            AtomId::AtomSdkSandboxRestrictedAccessInSession => "ATOM_SDK_SANDBOX_RESTRICTED_ACCESS_IN_SESSION",
4743            AtomId::AtomSandboxSdkStorage => "ATOM_SANDBOX_SDK_STORAGE",
4744            AtomId::AtomSelinuxAuditLog => "ATOM_SELINUX_AUDIT_LOG",
4745            AtomId::AtomSettingsSpaReported => "ATOM_SETTINGS_SPA_REPORTED",
4746            AtomId::AtomTestExtensionAtomReported => "ATOM_TEST_EXTENSION_ATOM_REPORTED",
4747            AtomId::AtomTestRestrictedAtomReported => "ATOM_TEST_RESTRICTED_ATOM_REPORTED",
4748            AtomId::AtomStatsSocketLossReported => "ATOM_STATS_SOCKET_LOSS_REPORTED",
4749            AtomId::AtomLockscreenShortcutSelected => "ATOM_LOCKSCREEN_SHORTCUT_SELECTED",
4750            AtomId::AtomLockscreenShortcutTriggered => "ATOM_LOCKSCREEN_SHORTCUT_TRIGGERED",
4751            AtomId::AtomLauncherImpressionEventV2 => "ATOM_LAUNCHER_IMPRESSION_EVENT_V2",
4752            AtomId::AtomDisplaySwitchLatencyTracked => "ATOM_DISPLAY_SWITCH_LATENCY_TRACKED",
4753            AtomId::AtomNotificationListenerService => "ATOM_NOTIFICATION_LISTENER_SERVICE",
4754            AtomId::AtomNavHandleTouchPoints => "ATOM_NAV_HANDLE_TOUCH_POINTS",
4755            AtomId::AtomCommunalHubWidgetEventReported => "ATOM_COMMUNAL_HUB_WIDGET_EVENT_REPORTED",
4756            AtomId::AtomCommunalHubSnapshot => "ATOM_COMMUNAL_HUB_SNAPSHOT",
4757            AtomId::AtomEmergencyNumberDialed => "ATOM_EMERGENCY_NUMBER_DIALED",
4758            AtomId::AtomCallStats => "ATOM_CALL_STATS",
4759            AtomId::AtomCallAudioRouteStats => "ATOM_CALL_AUDIO_ROUTE_STATS",
4760            AtomId::AtomTelecomApiStats => "ATOM_TELECOM_API_STATS",
4761            AtomId::AtomTelecomErrorStats => "ATOM_TELECOM_ERROR_STATS",
4762            AtomId::AtomCellularRadioPowerStateChanged => "ATOM_CELLULAR_RADIO_POWER_STATE_CHANGED",
4763            AtomId::AtomEmergencyNumbersInfo => "ATOM_EMERGENCY_NUMBERS_INFO",
4764            AtomId::AtomDataNetworkValidation => "ATOM_DATA_NETWORK_VALIDATION",
4765            AtomId::AtomDataRatStateChanged => "ATOM_DATA_RAT_STATE_CHANGED",
4766            AtomId::AtomConnectedChannelChanged => "ATOM_CONNECTED_CHANNEL_CHANGED",
4767            AtomId::AtomIwlanUnderlyingNetworkValidationResultReported => "ATOM_IWLAN_UNDERLYING_NETWORK_VALIDATION_RESULT_REPORTED",
4768            AtomId::AtomQualifiedRatListChanged => "ATOM_QUALIFIED_RAT_LIST_CHANGED",
4769            AtomId::AtomQnsImsCallDropStats => "ATOM_QNS_IMS_CALL_DROP_STATS",
4770            AtomId::AtomQnsFallbackRestrictionChanged => "ATOM_QNS_FALLBACK_RESTRICTION_CHANGED",
4771            AtomId::AtomQnsRatPreferenceMismatchInfo => "ATOM_QNS_RAT_PREFERENCE_MISMATCH_INFO",
4772            AtomId::AtomQnsHandoverTimeMillis => "ATOM_QNS_HANDOVER_TIME_MILLIS",
4773            AtomId::AtomQnsHandoverPingpong => "ATOM_QNS_HANDOVER_PINGPONG",
4774            AtomId::AtomSatelliteController => "ATOM_SATELLITE_CONTROLLER",
4775            AtomId::AtomSatelliteSession => "ATOM_SATELLITE_SESSION",
4776            AtomId::AtomSatelliteIncomingDatagram => "ATOM_SATELLITE_INCOMING_DATAGRAM",
4777            AtomId::AtomSatelliteOutgoingDatagram => "ATOM_SATELLITE_OUTGOING_DATAGRAM",
4778            AtomId::AtomSatelliteProvision => "ATOM_SATELLITE_PROVISION",
4779            AtomId::AtomSatelliteSosMessageRecommender => "ATOM_SATELLITE_SOS_MESSAGE_RECOMMENDER",
4780            AtomId::AtomCarrierRoamingSatelliteSession => "ATOM_CARRIER_ROAMING_SATELLITE_SESSION",
4781            AtomId::AtomCarrierRoamingSatelliteControllerStats => "ATOM_CARRIER_ROAMING_SATELLITE_CONTROLLER_STATS",
4782            AtomId::AtomControllerStatsPerPackage => "ATOM_CONTROLLER_STATS_PER_PACKAGE",
4783            AtomId::AtomSatelliteEntitlement => "ATOM_SATELLITE_ENTITLEMENT",
4784            AtomId::AtomSatelliteConfigUpdater => "ATOM_SATELLITE_CONFIG_UPDATER",
4785            AtomId::AtomSatelliteAccessController => "ATOM_SATELLITE_ACCESS_CONTROLLER",
4786            AtomId::AtomCellularIdentifierDisclosed => "ATOM_CELLULAR_IDENTIFIER_DISCLOSED",
4787            AtomId::AtomThreadnetworkTelemetryDataReported => "ATOM_THREADNETWORK_TELEMETRY_DATA_REPORTED",
4788            AtomId::AtomThreadnetworkTopoEntryRepeated => "ATOM_THREADNETWORK_TOPO_ENTRY_REPEATED",
4789            AtomId::AtomThreadnetworkDeviceInfoReported => "ATOM_THREADNETWORK_DEVICE_INFO_REPORTED",
4790            AtomId::AtomBootIntegrityInfoReported => "ATOM_BOOT_INTEGRITY_INFO_REPORTED",
4791            AtomId::AtomTvLowPowerStandbyPolicy => "ATOM_TV_LOW_POWER_STANDBY_POLICY",
4792            AtomId::AtomExternalTvInputEvent => "ATOM_EXTERNAL_TV_INPUT_EVENT",
4793            AtomId::AtomTestUprobestatsAtomReported => "ATOM_TEST_UPROBESTATS_ATOM_REPORTED",
4794            AtomId::AtomUwbActivityInfo => "ATOM_UWB_ACTIVITY_INFO",
4795            AtomId::AtomMediatorUpdated => "ATOM_MEDIATOR_UPDATED",
4796            AtomId::AtomSysproxyBluetoothBytesTransfer => "ATOM_SYSPROXY_BLUETOOTH_BYTES_TRANSFER",
4797            AtomId::AtomSysproxyConnectionUpdated => "ATOM_SYSPROXY_CONNECTION_UPDATED",
4798            AtomId::AtomWearCompanionConnectionState => "ATOM_WEAR_COMPANION_CONNECTION_STATE",
4799            AtomId::AtomMediaActionReported => "ATOM_MEDIA_ACTION_REPORTED",
4800            AtomId::AtomMediaControlsLaunched => "ATOM_MEDIA_CONTROLS_LAUNCHED",
4801            AtomId::AtomMediaSessionStateChanged => "ATOM_MEDIA_SESSION_STATE_CHANGED",
4802            AtomId::AtomWearMediaOutputSwitcherDeviceScanApiLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_API_LATENCY",
4803            AtomId::AtomWearMediaOutputSwitcherSassDeviceUnavailable => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_SASS_DEVICE_UNAVAILABLE",
4804            AtomId::AtomWearMediaOutputSwitcherFastpairApiTimeout => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FASTPAIR_API_TIMEOUT",
4805            AtomId::AtomWearModeStateChanged => "ATOM_WEAR_MODE_STATE_CHANGED",
4806            AtomId::AtomRendererInitialized => "ATOM_RENDERER_INITIALIZED",
4807            AtomId::AtomSchemaVersionReceived => "ATOM_SCHEMA_VERSION_RECEIVED",
4808            AtomId::AtomLayoutInspected => "ATOM_LAYOUT_INSPECTED",
4809            AtomId::AtomLayoutExpressionInspected => "ATOM_LAYOUT_EXPRESSION_INSPECTED",
4810            AtomId::AtomLayoutAnimationsInspected => "ATOM_LAYOUT_ANIMATIONS_INSPECTED",
4811            AtomId::AtomMaterialComponentsInspected => "ATOM_MATERIAL_COMPONENTS_INSPECTED",
4812            AtomId::AtomTileRequested => "ATOM_TILE_REQUESTED",
4813            AtomId::AtomStateResponseReceived => "ATOM_STATE_RESPONSE_RECEIVED",
4814            AtomId::AtomTileResponseReceived => "ATOM_TILE_RESPONSE_RECEIVED",
4815            AtomId::AtomInflationFinished => "ATOM_INFLATION_FINISHED",
4816            AtomId::AtomInflationFailed => "ATOM_INFLATION_FAILED",
4817            AtomId::AtomIgnoredInflationFailuresReported => "ATOM_IGNORED_INFLATION_FAILURES_REPORTED",
4818            AtomId::AtomDrawableRendered => "ATOM_DRAWABLE_RENDERED",
4819            AtomId::AtomWearTimeSyncRequested => "ATOM_WEAR_TIME_SYNC_REQUESTED",
4820            AtomId::AtomWearTimeUpdateStarted => "ATOM_WEAR_TIME_UPDATE_STARTED",
4821            AtomId::AtomWearTimeSyncAttemptCompleted => "ATOM_WEAR_TIME_SYNC_ATTEMPT_COMPLETED",
4822            AtomId::AtomWearTimeChanged => "ATOM_WEAR_TIME_CHANGED",
4823            AtomId::AtomWearAdaptiveSuspendStatsReported => "ATOM_WEAR_ADAPTIVE_SUSPEND_STATS_REPORTED",
4824            AtomId::AtomWearPowerAnomalyServiceOperationalStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_OPERATIONAL_STATS_REPORTED",
4825            AtomId::AtomWearPowerAnomalyServiceEventStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_EVENT_STATS_REPORTED",
4826            AtomId::AtomWsWearTimeSession => "ATOM_WS_WEAR_TIME_SESSION",
4827            AtomId::AtomWsIncomingCallActionReported => "ATOM_WS_INCOMING_CALL_ACTION_REPORTED",
4828            AtomId::AtomWsCallDisconnectionReported => "ATOM_WS_CALL_DISCONNECTION_REPORTED",
4829            AtomId::AtomWsCallDurationReported => "ATOM_WS_CALL_DURATION_REPORTED",
4830            AtomId::AtomWsCallUserExperienceLatencyReported => "ATOM_WS_CALL_USER_EXPERIENCE_LATENCY_REPORTED",
4831            AtomId::AtomWsCallInteractionReported => "ATOM_WS_CALL_INTERACTION_REPORTED",
4832            AtomId::AtomWsOnBodyStateChanged => "ATOM_WS_ON_BODY_STATE_CHANGED",
4833            AtomId::AtomWsWatchFaceRestrictedComplicationsImpacted => "ATOM_WS_WATCH_FACE_RESTRICTED_COMPLICATIONS_IMPACTED",
4834            AtomId::AtomWsWatchFaceDefaultRestrictedComplicationsRemoved => "ATOM_WS_WATCH_FACE_DEFAULT_RESTRICTED_COMPLICATIONS_REMOVED",
4835            AtomId::AtomWsComplicationsImpactedNotificationEventReported => "ATOM_WS_COMPLICATIONS_IMPACTED_NOTIFICATION_EVENT_REPORTED",
4836            AtomId::AtomWsRemoteEventUsageReported => "ATOM_WS_REMOTE_EVENT_USAGE_REPORTED",
4837            AtomId::AtomWsBugreportRequested => "ATOM_WS_BUGREPORT_REQUESTED",
4838            AtomId::AtomWsBugreportTriggered => "ATOM_WS_BUGREPORT_TRIGGERED",
4839            AtomId::AtomWsBugreportFinished => "ATOM_WS_BUGREPORT_FINISHED",
4840            AtomId::AtomWsBugreportResultReceived => "ATOM_WS_BUGREPORT_RESULT_RECEIVED",
4841            AtomId::AtomWsStandaloneModeSnapshot => "ATOM_WS_STANDALONE_MODE_SNAPSHOT",
4842            AtomId::AtomWsFavoriteWatchFaceSnapshot => "ATOM_WS_FAVORITE_WATCH_FACE_SNAPSHOT",
4843            AtomId::AtomWsPhotosWatchFaceFeatureSnapshot => "ATOM_WS_PHOTOS_WATCH_FACE_FEATURE_SNAPSHOT",
4844            AtomId::AtomWsWatchFaceCustomizationSnapshot => "ATOM_WS_WATCH_FACE_CUSTOMIZATION_SNAPSHOT",
4845            AtomId::AtomWearPowerMenuOpened => "ATOM_WEAR_POWER_MENU_OPENED",
4846            AtomId::AtomWearAssistantOpened => "ATOM_WEAR_ASSISTANT_OPENED",
4847            AtomId::AtomFirstOverlayStateChanged => "ATOM_FIRST_OVERLAY_STATE_CHANGED",
4848            AtomId::AtomWifiAwareNdpReported => "ATOM_WIFI_AWARE_NDP_REPORTED",
4849            AtomId::AtomWifiAwareAttachReported => "ATOM_WIFI_AWARE_ATTACH_REPORTED",
4850            AtomId::AtomWifiSelfRecoveryTriggered => "ATOM_WIFI_SELF_RECOVERY_TRIGGERED",
4851            AtomId::AtomSoftApStarted => "ATOM_SOFT_AP_STARTED",
4852            AtomId::AtomSoftApStopped => "ATOM_SOFT_AP_STOPPED",
4853            AtomId::AtomWifiLockReleased => "ATOM_WIFI_LOCK_RELEASED",
4854            AtomId::AtomWifiLockDeactivated => "ATOM_WIFI_LOCK_DEACTIVATED",
4855            AtomId::AtomWifiConfigSaved => "ATOM_WIFI_CONFIG_SAVED",
4856            AtomId::AtomWifiAwareResourceUsingChanged => "ATOM_WIFI_AWARE_RESOURCE_USING_CHANGED",
4857            AtomId::AtomWifiAwareHalApiCalled => "ATOM_WIFI_AWARE_HAL_API_CALLED",
4858            AtomId::AtomWifiLocalOnlyRequestReceived => "ATOM_WIFI_LOCAL_ONLY_REQUEST_RECEIVED",
4859            AtomId::AtomWifiLocalOnlyRequestScanTriggered => "ATOM_WIFI_LOCAL_ONLY_REQUEST_SCAN_TRIGGERED",
4860            AtomId::AtomWifiThreadTaskExecuted => "ATOM_WIFI_THREAD_TASK_EXECUTED",
4861            AtomId::AtomWifiStateChanged => "ATOM_WIFI_STATE_CHANGED",
4862            AtomId::AtomPnoScanStarted => "ATOM_PNO_SCAN_STARTED",
4863            AtomId::AtomPnoScanStopped => "ATOM_PNO_SCAN_STOPPED",
4864            AtomId::AtomWifiIsUnusableReported => "ATOM_WIFI_IS_UNUSABLE_REPORTED",
4865            AtomId::AtomWifiApCapabilitiesReported => "ATOM_WIFI_AP_CAPABILITIES_REPORTED",
4866            AtomId::AtomSoftApStateChanged => "ATOM_SOFT_AP_STATE_CHANGED",
4867            AtomId::AtomScorerPredictionResultReported => "ATOM_SCORER_PREDICTION_RESULT_REPORTED",
4868            AtomId::AtomWifiAwareCapabilities => "ATOM_WIFI_AWARE_CAPABILITIES",
4869            AtomId::AtomWifiModuleInfo => "ATOM_WIFI_MODULE_INFO",
4870            AtomId::AtomWifiSettingInfo => "ATOM_WIFI_SETTING_INFO",
4871            AtomId::AtomWifiComplexSettingInfo => "ATOM_WIFI_COMPLEX_SETTING_INFO",
4872            AtomId::AtomWifiConfiguredNetworkInfo => "ATOM_WIFI_CONFIGURED_NETWORK_INFO",
4873        }
4874    }
4875}
4876/// This file is named 'statsd_tracing_config.proto' rather than
4877/// 'statsd_config.proto' (which would be more consistent with the other
4878/// config protos) so it doesn't show up and confuse folks looking for
4879/// the existing statsd_config.proto for configuring statsd itself.
4880/// Same for the config proto itself.
4881#[derive(Clone, PartialEq, ::prost::Message)]
4882pub struct StatsdTracingConfig {
4883    /// This is for the common case of the atom id being known in the enum AtomId.
4884    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
4885    pub push_atom_id: ::prost::alloc::vec::Vec<i32>,
4886    /// Escape hatch for Atom IDs that are not yet in the AtomId enum
4887    /// (e.g. non-upstream atoms that don't exist in AOSP).
4888    #[prost(int32, repeated, packed="false", tag="2")]
4889    pub raw_push_atom_id: ::prost::alloc::vec::Vec<i32>,
4890    #[prost(message, repeated, tag="3")]
4891    pub pull_config: ::prost::alloc::vec::Vec<StatsdPullAtomConfig>,
4892}
4893#[derive(Clone, PartialEq, ::prost::Message)]
4894pub struct StatsdPullAtomConfig {
4895    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
4896    pub pull_atom_id: ::prost::alloc::vec::Vec<i32>,
4897    #[prost(int32, repeated, packed="false", tag="2")]
4898    pub raw_pull_atom_id: ::prost::alloc::vec::Vec<i32>,
4899    #[prost(int32, optional, tag="3")]
4900    pub pull_frequency_ms: ::core::option::Option<i32>,
4901    #[prost(string, repeated, tag="4")]
4902    pub packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4903}
4904/// Configuration that allows to boost the priority of the 'traced' or
4905/// 'traced_probs' processes, by changing the scheduler configuration.
4906/// Only supported on Linux and Android the boosted process must have
4907/// 'CAP_SYS_NICE' capability.
4908#[derive(Clone, PartialEq, ::prost::Message)]
4909pub struct PriorityBoostConfig {
4910    #[prost(enumeration="priority_boost_config::BoostPolicy", optional, tag="1")]
4911    pub policy: ::core::option::Option<i32>,
4912    #[prost(uint32, optional, tag="2")]
4913    pub priority: ::core::option::Option<u32>,
4914}
4915/// Nested message and enum types in `PriorityBoostConfig`.
4916pub mod priority_boost_config {
4917    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
4918    #[repr(i32)]
4919    pub enum BoostPolicy {
4920        PolicyUnspecified = 0,
4921        /// The default policy (e.g., CFS on Linux). Priority range: [0; 20]
4922        /// priority is interpreted as -(nice), i.e., 1 is slightly higher prio
4923        /// than default 0, 20 is the highest priority.
4924        /// Note: this is the opposite semantic of the cmdline nice, and is done for
4925        /// consistency with POLICY_SCHED_FIFO, so higher number == higher prio.
4926        PolicySchedOther = 1,
4927        /// The Real-time policy, Priority range: [1; 99]
4928        PolicySchedFifo = 2,
4929    }
4930    impl BoostPolicy {
4931        /// String value of the enum field names used in the ProtoBuf definition.
4932        ///
4933        /// The values are not transformed in any way and thus are considered stable
4934        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
4935        pub fn as_str_name(&self) -> &'static str {
4936            match self {
4937                BoostPolicy::PolicyUnspecified => "POLICY_UNSPECIFIED",
4938                BoostPolicy::PolicySchedOther => "POLICY_SCHED_OTHER",
4939                BoostPolicy::PolicySchedFifo => "POLICY_SCHED_FIFO",
4940            }
4941        }
4942    }
4943}
4944/// Config for polling process-related information from /proc/pid/status and
4945/// related files on Linux.
4946///
4947/// Data source name: "linux.process_stats".
4948#[derive(Clone, PartialEq, ::prost::Message)]
4949pub struct ProcessStatsConfig {
4950    #[prost(enumeration="process_stats_config::Quirks", repeated, packed="false", tag="1")]
4951    pub quirks: ::prost::alloc::vec::Vec<i32>,
4952    /// If enabled all processes will be scanned and dumped when the trace starts.
4953    #[prost(bool, optional, tag="2")]
4954    pub scan_all_processes_on_start: ::core::option::Option<bool>,
4955    /// If enabled thread names are also recoded (this is redundant if sched_switch
4956    /// is enabled).
4957    #[prost(bool, optional, tag="3")]
4958    pub record_thread_names: ::core::option::Option<bool>,
4959    /// If > 0 samples counters (see process_stats.proto) from
4960    /// /proc/pid/status and oom_score_adj every X ms.
4961    /// This is required to be > 100ms to avoid excessive CPU usage.
4962    #[prost(uint32, optional, tag="4")]
4963    pub proc_stats_poll_ms: ::core::option::Option<u32>,
4964    // id 5 never used
4965
4966    /// Explicit caching period during which the polling won't re-emit identical
4967    /// counter values. This is required to be either = 0 or a multiple of
4968    /// |proc_stats_poll_ms| (default: |proc_stats_poll_ms|). Non-multiples will be
4969    /// rounded down to the nearest multiple.
4970    #[prost(uint32, optional, tag="6")]
4971    pub proc_stats_cache_ttl_ms: ::core::option::Option<u32>,
4972    /// If true and |proc_stats_poll_ms| is set, sample memory stats from
4973    /// /proc/pid/smaps_rollup.
4974    ///
4975    /// Android: does NOT work with the system daemons by default, as it requires
4976    /// running the recording process (traced_probes or tracebox) as root. It is
4977    /// possible to avoid the root requirement, but the exact steps depend on the
4978    /// Linux distibution. The proc file requires passing a PTRACE_MODE_READ
4979    /// check, and might be further covered by the procfs "hidepid" mount option.
4980    #[prost(bool, optional, tag="10")]
4981    pub scan_smaps_rollup: ::core::option::Option<bool>,
4982    /// If true: process descriptions will include process age (starttime in
4983    /// /proc/pid/stat).
4984    /// Introduced in: perfetto v44.
4985    #[prost(bool, optional, tag="11")]
4986    pub record_process_age: ::core::option::Option<bool>,
4987    /// If true and |proc_stats_poll_ms| is set, process stats will include time
4988    /// spent running in user/kernel mode (utime/stime in /proc/pid/stat).
4989    /// Introduced in: perfetto v44.
4990    #[prost(bool, optional, tag="12")]
4991    pub record_process_runtime: ::core::option::Option<bool>,
4992    /// If true obtain per-process dmabuf resident set size from
4993    /// /proc/pid/dmabuf_rss.
4994    /// This feature is not in upstream linux, and is available only on some
4995    /// Android kernels.
4996    #[prost(bool, optional, tag="13")]
4997    pub record_process_dmabuf_rss: ::core::option::Option<bool>,
4998    /// WARNING: unmaintained and deprecated. If true this will resolve file
4999    /// descriptors for each process so these can be mapped to their actual device
5000    /// or file. Requires raw_syscalls/sys_{enter,exit} ftrace events to be enabled
5001    /// or new fds opened after initially scanning a process will not be
5002    /// recognized.
5003    #[prost(bool, optional, tag="9")]
5004    pub resolve_process_fds: ::core::option::Option<bool>,
5005}
5006/// Nested message and enum types in `ProcessStatsConfig`.
5007pub mod process_stats_config {
5008    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5009    #[repr(i32)]
5010    pub enum Quirks {
5011        Unspecified = 0,
5012        /// This has been deprecated and ignored as per 2018-05-01. Full scan at
5013        /// startup is now disabled by default and can be re-enabled using the
5014        /// |scan_all_processes_on_start| arg.
5015        DisableInitialDump = 1,
5016        /// If set, disables the special interaction with "linux.ftrace" data source,
5017        /// where the process stats rescrapes any thread id seen in the ftrace
5018        /// stream.
5019        DisableOnDemand = 2,
5020    }
5021    impl Quirks {
5022        /// String value of the enum field names used in the ProtoBuf definition.
5023        ///
5024        /// The values are not transformed in any way and thus are considered stable
5025        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5026        pub fn as_str_name(&self) -> &'static str {
5027            match self {
5028                Quirks::Unspecified => "QUIRKS_UNSPECIFIED",
5029                Quirks::DisableInitialDump => "DISABLE_INITIAL_DUMP",
5030                Quirks::DisableOnDemand => "DISABLE_ON_DEMAND",
5031            }
5032        }
5033    }
5034}
5035/// Configuration for go/heapprofd.
5036/// Next id: 28
5037#[derive(Clone, PartialEq, ::prost::Message)]
5038pub struct HeapprofdConfig {
5039    /// Sampling rate for all heaps not specified via heap_sampling_intervals.
5040    ///
5041    /// These are:
5042    /// * All heaps if heap_sampling_intervals is empty.
5043    /// * Those profiled due to all_heaps and not named in heaps if
5044    ///    heap_sampling_intervals is not empty.
5045    /// * The implicit libc.malloc heap if heaps is empty.
5046    ///
5047    /// Set to 1 for perfect accuracy.
5048    /// Otherwise, sample every sample_interval_bytes on average.
5049    ///
5050    /// See
5051    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#sampling-interval>
5052    /// for more details.
5053    ///
5054    /// BUGS
5055    /// Before Android 12, setting this to 0 would crash the target process.
5056    ///
5057    /// N.B. This must be explicitly set to a non-zero value for all heaps (with
5058    /// this field or with heap_sampling_intervals), otherwise the producer will
5059    /// not start.
5060    #[prost(uint64, optional, tag="1")]
5061    pub sampling_interval_bytes: ::core::option::Option<u64>,
5062    /// If less than the given numbers of bytes are left free in the shared
5063    /// memory buffer, increase sampling interval by a factor of two.
5064    /// Adaptive sampling is disabled when set to 0.
5065    #[prost(uint64, optional, tag="24")]
5066    pub adaptive_sampling_shmem_threshold: ::core::option::Option<u64>,
5067    /// Stop doubling the sampling_interval once the sampling interval has reached
5068    /// this value.
5069    #[prost(uint64, optional, tag="25")]
5070    pub adaptive_sampling_max_sampling_interval_bytes: ::core::option::Option<u64>,
5071    /// E.g. surfaceflinger, com.android.phone
5072    /// This input is normalized in the following way: if it contains slashes,
5073    /// everything up to the last slash is discarded. If it contains "@",
5074    /// everything after the first @ is discared.
5075    /// E.g. /system/bin/surfaceflinger@1.0 normalizes to surfaceflinger.
5076    /// This transformation is also applied to the processes' command lines when
5077    /// matching.
5078    #[prost(string, repeated, tag="2")]
5079    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5080    /// For watermark based triggering or local debugging.
5081    #[prost(uint64, repeated, packed="false", tag="4")]
5082    pub pid: ::prost::alloc::vec::Vec<u64>,
5083    /// Only profile target if it was installed by one of the packages given.
5084    /// Special values are:
5085    /// * @system: installed on the system partition
5086    /// * @product: installed on the product partition
5087    /// * @null: sideloaded
5088    /// Supported on Android 12+.
5089    #[prost(string, repeated, tag="26")]
5090    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5091    /// Which heaps to sample, e.g. "libc.malloc". If left empty, only samples
5092    /// "malloc".
5093    ///
5094    /// Introduced in Android 12.
5095    #[prost(string, repeated, tag="20")]
5096    pub heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5097    /// Which heaps not to sample, e.g. "libc.malloc". This is useful when used in
5098    /// combination with all_heaps;
5099    ///
5100    /// Introduced in Android 12.
5101    #[prost(string, repeated, tag="27")]
5102    pub exclude_heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5103    #[prost(bool, optional, tag="23")]
5104    pub stream_allocations: ::core::option::Option<bool>,
5105    /// If given, needs to be the same length as heaps and gives the sampling
5106    /// interval for the respective entry in heaps.
5107    ///
5108    /// Otherwise, sampling_interval_bytes is used.
5109    ///
5110    /// It is recommended to set sampling_interval_bytes to a reasonable default
5111    /// value when using this, as a value of 0 for sampling_interval_bytes will
5112    /// crash the target process before Android 12.
5113    ///
5114    /// Introduced in Android 12.
5115    ///
5116    /// All values must be non-zero or the producer will not start.
5117    #[prost(uint64, repeated, packed="false", tag="22")]
5118    pub heap_sampling_intervals: ::prost::alloc::vec::Vec<u64>,
5119    /// Sample all heaps registered by target process. Introduced in Android 12.
5120    #[prost(bool, optional, tag="21")]
5121    pub all_heaps: ::core::option::Option<bool>,
5122    /// Profile all processes eligible for profiling on the system.
5123    /// See
5124    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#heapprofd-targets>
5125    /// for which processes are eligible.
5126    ///
5127    /// On unmodified userdebug builds, this will lead to system crashes. Zygote
5128    /// will crash when trying to launch a new process as it will have an
5129    /// unexpected open socket to heapprofd.
5130    ///
5131    /// heapprofd will likely be overloaded by the amount of data for low
5132    /// sampling intervals.
5133    #[prost(bool, optional, tag="5")]
5134    pub all: ::core::option::Option<bool>,
5135    /// Do not profile processes whose anon RSS + swap < given value.
5136    /// Introduced in Android 11.
5137    #[prost(uint32, optional, tag="15")]
5138    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
5139    /// Stop profile if heapprofd memory usage goes beyond the given value.
5140    /// Introduced in Android 11.
5141    #[prost(uint32, optional, tag="16")]
5142    pub max_heapprofd_memory_kb: ::core::option::Option<u32>,
5143    /// Stop profile if heapprofd CPU time since start of this data-source
5144    /// goes beyond given value.
5145    /// Introduced in Android 11.
5146    #[prost(uint64, optional, tag="17")]
5147    pub max_heapprofd_cpu_secs: ::core::option::Option<u64>,
5148    /// Do not emit function names for mappings starting with this prefix.
5149    /// E.g. /system to not emit symbols for any system libraries.
5150    #[prost(string, repeated, tag="7")]
5151    pub skip_symbol_prefix: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5152    /// Dump at a predefined interval.
5153    #[prost(message, optional, tag="6")]
5154    pub continuous_dump_config: ::core::option::Option<heapprofd_config::ContinuousDumpConfig>,
5155    /// Size of the shared memory buffer between the profiled processes and
5156    /// heapprofd. Defaults to 8 MiB. If larger than 500 MiB, truncated to 500
5157    /// MiB.
5158    ///
5159    /// Needs to be:
5160    /// * at least 8192,
5161    /// * a power of two,
5162    /// * a multiple of 4096.
5163    #[prost(uint64, optional, tag="8")]
5164    pub shmem_size_bytes: ::core::option::Option<u64>,
5165    /// When the shmem buffer is full, block the client instead of ending the
5166    /// trace. Use with caution as this will significantly slow down the target
5167    /// process.
5168    #[prost(bool, optional, tag="9")]
5169    pub block_client: ::core::option::Option<bool>,
5170    /// If set, stop the trace session after blocking the client for this
5171    /// timeout. Needs to be larger than 100 us, otherwise no retries are done.
5172    /// Introduced in Android 11.
5173    #[prost(uint32, optional, tag="14")]
5174    pub block_client_timeout_us: ::core::option::Option<u32>,
5175    /// Do not profile processes from startup, only match already running
5176    /// processes.
5177    ///
5178    /// Can not be set at the same time as no_running.
5179    /// Introduced in Android 11.
5180    #[prost(bool, optional, tag="10")]
5181    pub no_startup: ::core::option::Option<bool>,
5182    /// Do not profile running processes. Only match processes on startup.
5183    ///
5184    /// Can not be set at the same time as no_startup.
5185    /// Introduced in Android 11.
5186    #[prost(bool, optional, tag="11")]
5187    pub no_running: ::core::option::Option<bool>,
5188    /// Cause heapprofd to emit a single dump at the end, showing the memory usage
5189    /// at the point in time when the sampled heap usage of the process was at its
5190    /// maximum. This causes ProfilePacket.HeapSample.self_max to be set, and
5191    /// self_allocated and self_freed to not be set.
5192    /// Introduced in Android 11.
5193    #[prost(bool, optional, tag="13")]
5194    pub dump_at_max: ::core::option::Option<bool>,
5195    // FEATURE FLAGS. THERE BE DRAGONS.
5196
5197    /// Escape hatch if the session is being torn down because of a forked child
5198    /// that shares memory space, but is not correctly identified as a vforked
5199    /// child.
5200    /// Introduced in Android 11.
5201    #[prost(bool, optional, tag="18")]
5202    pub disable_fork_teardown: ::core::option::Option<bool>,
5203    /// We try to automatically detect when a target applicatation vforks but then
5204    /// does a memory allocation (or free). This auto-detection can be disabled
5205    /// with this.
5206    /// Introduced in Android 11.
5207    #[prost(bool, optional, tag="19")]
5208    pub disable_vfork_detection: ::core::option::Option<bool>,
5209}
5210/// Nested message and enum types in `HeapprofdConfig`.
5211pub mod heapprofd_config {
5212    #[derive(Clone, PartialEq, ::prost::Message)]
5213    pub struct ContinuousDumpConfig {
5214        /// ms to wait before first dump.
5215        #[prost(uint32, optional, tag="5")]
5216        pub dump_phase_ms: ::core::option::Option<u32>,
5217        /// ms to wait between following dumps.
5218        #[prost(uint32, optional, tag="6")]
5219        pub dump_interval_ms: ::core::option::Option<u32>,
5220    }
5221}
5222/// Configuration for managed app heap graph snapshots.
5223#[derive(Clone, PartialEq, ::prost::Message)]
5224pub struct JavaHprofConfig {
5225    /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
5226    /// comm string). The semantics of this field were changed since its original
5227    /// introduction.
5228    ///
5229    /// On Android T+ (13+), this field can specify a single wildcard (*), and
5230    /// the profiler will attempt to match it in two possible ways:
5231    /// * if the pattern starts with a '/', then it is matched against the first
5232    ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
5233    ///    "/bin/echo".
5234    /// * otherwise the pattern is matched against the part of argv0
5235    ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
5236    ///    For example "echo" would match "/bin/echo".
5237    ///
5238    /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
5239    /// normalized prior to an exact string comparison. Normalization is as
5240    /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
5241    /// the string contains forward slashes, trim everything up to and including
5242    /// the last one.
5243    ///
5244    /// Implementation note: in either case, at most 511 characters of cmdline
5245    /// are considered.
5246    #[prost(string, repeated, tag="1")]
5247    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5248    /// For watermark based triggering or local debugging.
5249    #[prost(uint64, repeated, packed="false", tag="2")]
5250    pub pid: ::prost::alloc::vec::Vec<u64>,
5251    /// Only profile target if it was installed by one of the packages given.
5252    /// Special values are:
5253    /// * @system: installed on the system partition
5254    /// * @product: installed on the product partition
5255    /// * @null: sideloaded
5256    /// Supported on Android 12+.
5257    #[prost(string, repeated, tag="7")]
5258    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5259    /// Dump at a predefined interval.
5260    #[prost(message, optional, tag="3")]
5261    pub continuous_dump_config: ::core::option::Option<java_hprof_config::ContinuousDumpConfig>,
5262    /// Do not profile processes whose anon RSS + swap < given value.
5263    #[prost(uint32, optional, tag="4")]
5264    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
5265    /// Include the process' /proc/self/smaps.
5266    /// This only shows maps that:
5267    /// * start with /system
5268    /// * start with /vendor
5269    /// * start with /data/app
5270    /// * contain "extracted in memory from Y", where Y matches any of the above
5271    #[prost(bool, optional, tag="5")]
5272    pub dump_smaps: ::core::option::Option<bool>,
5273    /// Exclude objects of the following types from the profile. This can be
5274    /// useful if lots of uninteresting objects, e.g. "sun.misc.Cleaner".
5275    #[prost(string, repeated, tag="6")]
5276    pub ignored_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5277}
5278/// Nested message and enum types in `JavaHprofConfig`.
5279pub mod java_hprof_config {
5280    /// If dump_interval_ms != 0, the following configuration is used.
5281    #[derive(Clone, PartialEq, ::prost::Message)]
5282    pub struct ContinuousDumpConfig {
5283        /// ms to wait before first continuous dump.
5284        /// A dump is always created at the beginning of the trace.
5285        #[prost(uint32, optional, tag="1")]
5286        pub dump_phase_ms: ::core::option::Option<u32>,
5287        /// ms to wait between following dumps.
5288        #[prost(uint32, optional, tag="2")]
5289        pub dump_interval_ms: ::core::option::Option<u32>,
5290        /// If true, scans all the processes to find `process_cmdline` and filter by
5291        /// `min_anonymous_memory_kb` only at data source start. Default on Android
5292        /// S-.
5293        ///
5294        /// If false, rescans all the processes to find on every dump. Default on
5295        /// Android T+.
5296        #[prost(bool, optional, tag="3")]
5297        pub scan_pids_only_on_start: ::core::option::Option<bool>,
5298    }
5299}
5300#[derive(Clone, PartialEq, ::prost::Message)]
5301pub struct PerfEvents {
5302}
5303/// Nested message and enum types in `PerfEvents`.
5304pub mod perf_events {
5305    /// The primary event to count. If recording multiple events, this
5306    /// counter is the "group leader".
5307    /// Commented from the perspective of its use in |PerfEventConfig|.
5308    /// Next id: 13
5309    #[derive(Clone, PartialEq, ::prost::Message)]
5310    pub struct Timebase {
5311        /// Optional modifiers for the event. Modelled after the perftool's
5312        /// <https://man7.org/linux/man-pages/man1/perf-list.1.html#EVENT_MODIFIERS>
5313        /// Currently supported: count scoping such as :u, :k, :uk, ...
5314        /// Modifiers can differ between the timebase and followers.
5315        #[prost(enumeration="EventModifier", repeated, packed="false", tag="12")]
5316        pub modifiers: ::prost::alloc::vec::Vec<i32>,
5317        /// If set, samples will be timestamped with the given clock.
5318        /// If unset, the clock is chosen by the implementation.
5319        /// For software events, prefer PERF_CLOCK_BOOTTIME. However it cannot be
5320        /// used for hardware events (due to interrupt safety), for which the
5321        /// recommendation is to use one of the monotonic clocks.
5322        #[prost(enumeration="PerfClock", optional, tag="11")]
5323        pub timestamp_clock: ::core::option::Option<i32>,
5324        /// Optional arbitrary name for the event, to identify it in the parsed
5325        /// trace. Does *not* affect the profiling itself. If unset, the trace
5326        /// parser will choose a suitable name.
5327        #[prost(string, optional, tag="10")]
5328        pub name: ::core::option::Option<::prost::alloc::string::String>,
5329        /// How often to snapshot the counter, along with any follower events and
5330        /// any additional sampled data such as callstacks.
5331        ///
5332        /// This choice also controls how the readings are taken:
5333        /// * With |frequency| or |period|, samples are taken by the kernel
5334        ///    into a ring buffer. Analogous to `perf record`.
5335        /// * With |poll_period_ms|, the userspace periodically snapshots
5336        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5337        /// Prefer the sampling options unless you're recording PMUs whose
5338        /// perf drivers only support the reading mode.
5339        ///
5340        /// If unset, an implementation-defined sampling default is used.
5341        #[prost(oneof="timebase::Interval", tags="2, 1, 6")]
5342        pub interval: ::core::option::Option<timebase::Interval>,
5343        /// Counting event to use as the timebase.
5344        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5345        /// which is what you usually want.
5346        #[prost(oneof="timebase::Event", tags="4, 3, 5")]
5347        pub event: ::core::option::Option<timebase::Event>,
5348    }
5349    /// Nested message and enum types in `Timebase`.
5350    pub mod timebase {
5351        /// How often to snapshot the counter, along with any follower events and
5352        /// any additional sampled data such as callstacks.
5353        ///
5354        /// This choice also controls how the readings are taken:
5355        /// * With |frequency| or |period|, samples are taken by the kernel
5356        ///    into a ring buffer. Analogous to `perf record`.
5357        /// * With |poll_period_ms|, the userspace periodically snapshots
5358        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5359        /// Prefer the sampling options unless you're recording PMUs whose
5360        /// perf drivers only support the reading mode.
5361        ///
5362        /// If unset, an implementation-defined sampling default is used.
5363        #[derive(Clone, PartialEq, ::prost::Oneof)]
5364        pub enum Interval {
5365            /// Per-cpu sampling frequency in Hz, as requested from the kernel. Not the
5366            /// same as 1/period.
5367            /// Details: the actual sampling will still be based on a period, but the
5368            /// kernel will dynamically adjust it based on the observed event rate, to
5369            /// approximate this frequency. Works best with steady-rate events like
5370            /// timers.
5371            /// Not guaranteed to be honored as the kernel can throttle the sampling
5372            /// rate if it's too high.
5373            #[prost(uint64, tag="2")]
5374            Frequency(u64),
5375            /// Per-cpu sampling will occur every |period| counts of |event|.
5376            /// Prefer |frequency| by default, as it's easier to oversample with a
5377            /// fixed period.
5378            /// Not guaranteed to be honored as the kernel can throttle the sampling
5379            /// rate if it's too high.
5380            #[prost(uint64, tag="1")]
5381            Period(u64),
5382            /// Per-cpu values are read by the userspace every interval. If using this
5383            /// mode, only follower events are supported. Options such as
5384            /// |PerfEventConfig.CallstackSampling| are incompatible.
5385            /// The period can't be guaranteed to be exact since the readings are taken
5386            /// by userspace.
5387            #[prost(uint32, tag="6")]
5388            PollPeriodMs(u32),
5389        }
5390        /// Counting event to use as the timebase.
5391        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5392        /// which is what you usually want.
5393        #[derive(Clone, PartialEq, ::prost::Oneof)]
5394        pub enum Event {
5395            #[prost(enumeration="super::Counter", tag="4")]
5396            Counter(i32),
5397            #[prost(message, tag="3")]
5398            Tracepoint(super::Tracepoint),
5399            #[prost(message, tag="5")]
5400            RawEvent(super::RawEvent),
5401        }
5402    }
5403    #[derive(Clone, PartialEq, ::prost::Message)]
5404    pub struct Tracepoint {
5405        /// Group and name for the tracepoint, acceptable forms:
5406        /// * "sched/sched_switch"
5407        /// * "sched:sched_switch"
5408        #[prost(string, optional, tag="1")]
5409        pub name: ::core::option::Option<::prost::alloc::string::String>,
5410        /// Optional field-level filter for the tracepoint. Only events matching this
5411        /// filter will be counted (and therefore contribute to the sampling period).
5412        /// Example: "prev_pid >= 42 && next_pid == 0".
5413        /// For full syntax, see kernel documentation on "Event filtering":
5414        /// <https://www.kernel.org/doc/Documentation/trace/events.txt>
5415        #[prost(string, optional, tag="2")]
5416        pub filter: ::core::option::Option<::prost::alloc::string::String>,
5417    }
5418    /// Syscall-level description of the event, propagated to the perf_event_attr
5419    /// struct. Primarily for local use-cases, since the event availability and
5420    /// encoding is hardware-specific.
5421    #[derive(Clone, PartialEq, ::prost::Message)]
5422    pub struct RawEvent {
5423        #[prost(uint32, optional, tag="1")]
5424        pub r#type: ::core::option::Option<u32>,
5425        #[prost(uint64, optional, tag="2")]
5426        pub config: ::core::option::Option<u64>,
5427        #[prost(uint64, optional, tag="3")]
5428        pub config1: ::core::option::Option<u64>,
5429        #[prost(uint64, optional, tag="4")]
5430        pub config2: ::core::option::Option<u64>,
5431    }
5432    /// Builtin counter names from the uapi header. Commented with their perf tool
5433    /// aliases.
5434    /// TODO(rsavitski): consider generating enums for cache events (should be
5435    /// finite), and generally make this list as extensive as possible. Excluding
5436    /// things like dynamic PMUs since those don't fit into a static enum.
5437    /// Next id: 21
5438    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5439    #[repr(i32)]
5440    pub enum Counter {
5441        UnknownCounter = 0,
5442        /// cpu-clock
5443        SwCpuClock = 1,
5444        /// page-faults, faults
5445        SwPageFaults = 2,
5446        /// task-clock
5447        SwTaskClock = 3,
5448        /// context-switches, cs
5449        SwContextSwitches = 4,
5450        /// cpu-migrations, migrations
5451        SwCpuMigrations = 5,
5452        /// minor-faults
5453        SwPageFaultsMin = 6,
5454        /// major-faults
5455        SwPageFaultsMaj = 7,
5456        /// alignment-faults
5457        SwAlignmentFaults = 8,
5458        /// emulation-faults
5459        SwEmulationFaults = 9,
5460        /// dummy
5461        SwDummy = 20,
5462        /// cpu-cycles, cycles
5463        HwCpuCycles = 10,
5464        /// instructions
5465        HwInstructions = 11,
5466        /// cache-references
5467        HwCacheReferences = 12,
5468        /// cache-misses
5469        HwCacheMisses = 13,
5470        /// branch-instructions, branches
5471        HwBranchInstructions = 14,
5472        /// branch-misses
5473        HwBranchMisses = 15,
5474        /// bus-cycles
5475        HwBusCycles = 16,
5476        /// stalled-cycles-frontend, idle-cycles-frontend
5477        HwStalledCyclesFrontend = 17,
5478        /// stalled-cycles-backend, idle-cycles-backend
5479        HwStalledCyclesBackend = 18,
5480        /// ref-cycles
5481        HwRefCpuCycles = 19,
5482    }
5483    impl Counter {
5484        /// String value of the enum field names used in the ProtoBuf definition.
5485        ///
5486        /// The values are not transformed in any way and thus are considered stable
5487        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5488        pub fn as_str_name(&self) -> &'static str {
5489            match self {
5490                Counter::UnknownCounter => "UNKNOWN_COUNTER",
5491                Counter::SwCpuClock => "SW_CPU_CLOCK",
5492                Counter::SwPageFaults => "SW_PAGE_FAULTS",
5493                Counter::SwTaskClock => "SW_TASK_CLOCK",
5494                Counter::SwContextSwitches => "SW_CONTEXT_SWITCHES",
5495                Counter::SwCpuMigrations => "SW_CPU_MIGRATIONS",
5496                Counter::SwPageFaultsMin => "SW_PAGE_FAULTS_MIN",
5497                Counter::SwPageFaultsMaj => "SW_PAGE_FAULTS_MAJ",
5498                Counter::SwAlignmentFaults => "SW_ALIGNMENT_FAULTS",
5499                Counter::SwEmulationFaults => "SW_EMULATION_FAULTS",
5500                Counter::SwDummy => "SW_DUMMY",
5501                Counter::HwCpuCycles => "HW_CPU_CYCLES",
5502                Counter::HwInstructions => "HW_INSTRUCTIONS",
5503                Counter::HwCacheReferences => "HW_CACHE_REFERENCES",
5504                Counter::HwCacheMisses => "HW_CACHE_MISSES",
5505                Counter::HwBranchInstructions => "HW_BRANCH_INSTRUCTIONS",
5506                Counter::HwBranchMisses => "HW_BRANCH_MISSES",
5507                Counter::HwBusCycles => "HW_BUS_CYCLES",
5508                Counter::HwStalledCyclesFrontend => "HW_STALLED_CYCLES_FRONTEND",
5509                Counter::HwStalledCyclesBackend => "HW_STALLED_CYCLES_BACKEND",
5510                Counter::HwRefCpuCycles => "HW_REF_CPU_CYCLES",
5511            }
5512        }
5513    }
5514    /// Subset of clocks that is supported by perf timestamping.
5515    /// CLOCK_TAI is excluded since it's not expected to be used in practice, but
5516    /// would require additions to the trace clock synchronisation logic.
5517    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5518    #[repr(i32)]
5519    pub enum PerfClock {
5520        UnknownPerfClock = 0,
5521        Realtime = 1,
5522        Monotonic = 2,
5523        MonotonicRaw = 3,
5524        Boottime = 4,
5525    }
5526    impl PerfClock {
5527        /// String value of the enum field names used in the ProtoBuf definition.
5528        ///
5529        /// The values are not transformed in any way and thus are considered stable
5530        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5531        pub fn as_str_name(&self) -> &'static str {
5532            match self {
5533                PerfClock::UnknownPerfClock => "UNKNOWN_PERF_CLOCK",
5534                PerfClock::Realtime => "PERF_CLOCK_REALTIME",
5535                PerfClock::Monotonic => "PERF_CLOCK_MONOTONIC",
5536                PerfClock::MonotonicRaw => "PERF_CLOCK_MONOTONIC_RAW",
5537                PerfClock::Boottime => "PERF_CLOCK_BOOTTIME",
5538            }
5539        }
5540    }
5541    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5542    #[repr(i32)]
5543    pub enum EventModifier {
5544        UnknownEventModifier = 0,
5545        /// count only while in userspace
5546        CountUserspace = 1,
5547        /// count only while in kernel
5548        CountKernel = 2,
5549        /// count only while in hypervisor
5550        CountHypervisor = 3,
5551    }
5552    impl EventModifier {
5553        /// String value of the enum field names used in the ProtoBuf definition.
5554        ///
5555        /// The values are not transformed in any way and thus are considered stable
5556        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5557        pub fn as_str_name(&self) -> &'static str {
5558            match self {
5559                EventModifier::UnknownEventModifier => "UNKNOWN_EVENT_MODIFIER",
5560                EventModifier::CountUserspace => "EVENT_MODIFIER_COUNT_USERSPACE",
5561                EventModifier::CountKernel => "EVENT_MODIFIER_COUNT_KERNEL",
5562                EventModifier::CountHypervisor => "EVENT_MODIFIER_COUNT_HYPERVISOR",
5563            }
5564        }
5565    }
5566}
5567/// Additional events associated with a leader.
5568/// See <https://man7.org/linux/man-pages/man1/perf-list.1.html#LEADER_SAMPLING>
5569#[derive(Clone, PartialEq, ::prost::Message)]
5570pub struct FollowerEvent {
5571    /// Modifiers can differ between the timebase and followers.
5572    #[prost(enumeration="perf_events::EventModifier", repeated, packed="false", tag="5")]
5573    pub modifiers: ::prost::alloc::vec::Vec<i32>,
5574    /// Optional arbitrary name for the event, to identify it in the parsed
5575    /// trace. Does *not* affect the profiling itself. If unset, the trace
5576    /// parser will choose a suitable name.
5577    #[prost(string, optional, tag="4")]
5578    pub name: ::core::option::Option<::prost::alloc::string::String>,
5579    #[prost(oneof="follower_event::Event", tags="1, 2, 3")]
5580    pub event: ::core::option::Option<follower_event::Event>,
5581}
5582/// Nested message and enum types in `FollowerEvent`.
5583pub mod follower_event {
5584    #[derive(Clone, PartialEq, ::prost::Oneof)]
5585    pub enum Event {
5586        #[prost(enumeration="super::perf_events::Counter", tag="1")]
5587        Counter(i32),
5588        #[prost(message, tag="2")]
5589        Tracepoint(super::perf_events::Tracepoint),
5590        #[prost(message, tag="3")]
5591        RawEvent(super::perf_events::RawEvent),
5592    }
5593}
5594/// Configuration for the traced_perf profiler.
5595///
5596/// Example config for basic cpu profiling:
5597///    perf_event_config {
5598///      timebase {
5599///        frequency: 80
5600///      }
5601///      callstack_sampling {
5602///        scope {
5603///          target_cmdline: "surfaceflinger"
5604///          target_cmdline: "system_server"
5605///        }
5606///        kernel_frames: true
5607///      }
5608///    }
5609///
5610/// Next id: 21
5611#[derive(Clone, PartialEq, ::prost::Message)]
5612pub struct PerfEventConfig {
5613    /// What event to sample on, and how often.
5614    /// Defined in common/perf_events.proto.
5615    #[prost(message, optional, tag="15")]
5616    pub timebase: ::core::option::Option<perf_events::Timebase>,
5617    /// Other events associated with the leader described in the timebase.
5618    #[prost(message, repeated, tag="19")]
5619    pub followers: ::prost::alloc::vec::Vec<FollowerEvent>,
5620    /// If set, the profiler will sample userspace processes' callstacks at the
5621    /// interval specified by the |timebase|.
5622    /// If unset, the profiler will record only the event counts.
5623    #[prost(message, optional, tag="16")]
5624    pub callstack_sampling: ::core::option::Option<perf_event_config::CallstackSampling>,
5625    /// List of cpu indices for counting. If empty, the default is all cpus.
5626    ///
5627    /// Note: this is not inside |callstack_sampling.scope| as it also applies to
5628    /// counter-only traces. A future change will likely reorganise the options,
5629    /// but this field will continue to be supported.
5630    ///
5631    /// Available since: perfetto v50.
5632    #[prost(uint32, repeated, packed="false", tag="20")]
5633    pub target_cpu: ::prost::alloc::vec::Vec<u32>,
5634    //
5635    // Kernel <-> userspace ring buffer options:
5636    //
5637
5638    /// How often the per-cpu ring buffers are read by the producer.
5639    /// If unset, an implementation-defined default is used.
5640    #[prost(uint32, optional, tag="8")]
5641    pub ring_buffer_read_period_ms: ::core::option::Option<u32>,
5642    /// Size (in 4k pages) of each per-cpu ring buffer that is filled by the
5643    /// kernel. If set, must be a power of two.
5644    /// If unset, an implementation-defined default is used.
5645    #[prost(uint32, optional, tag="3")]
5646    pub ring_buffer_pages: ::core::option::Option<u32>,
5647    //
5648    // Daemon's resource usage limits:
5649    //
5650
5651    /// Drop samples if the heap memory held by the samples in the unwinder queue
5652    /// is above the given limit. This counts the memory across all concurrent data
5653    /// sources (not just this one's), and there is no fairness guarantee - the
5654    /// whole quota might be used up by a concurrent source.
5655    #[prost(uint64, optional, tag="17")]
5656    pub max_enqueued_footprint_kb: ::core::option::Option<u64>,
5657    /// Stop the data source if traced_perf's combined {RssAnon + Swap} memory
5658    /// footprint exceeds this value.
5659    #[prost(uint32, optional, tag="13")]
5660    pub max_daemon_memory_kb: ::core::option::Option<u32>,
5661    //
5662    // Niche options:
5663    //
5664
5665    /// Timeout for the remote /proc/<pid>/{maps,mem} file descriptors for a
5666    /// sampled process. This is primarily for Android, where this lookup is
5667    /// asynchronous. As long as the producer is waiting, the associated samples
5668    /// will be kept enqueued (putting pressure on the capacity of the shared
5669    /// unwinding queue). Once a lookup for a process expires, all associated
5670    /// samples are discarded. However, if the lookup still succeeds after the
5671    /// timeout, future samples will be handled normally.
5672    /// If unset, an implementation-defined default is used.
5673    #[prost(uint32, optional, tag="9")]
5674    pub remote_descriptor_timeout_ms: ::core::option::Option<u32>,
5675    /// Optional period for clearing state cached by the userspace unwinder. This
5676    /// is a heavy operation that is only necessary for traces that target a wide
5677    /// set of processes, and require the memory footprint to be reset
5678    /// periodically. To effectively disable the cache clearing, set to a value
5679    /// greater than your trace duration.
5680    ///
5681    /// Relevant only if |callstack_sampling.user_frames| is set to UNWIND_DWARF.
5682    ///
5683    /// If zero or unset:
5684    /// * before perfetto v52: no cache clearing.
5685    /// * perfetto v52+: implementation chooses an infrequent default.
5686    #[prost(uint32, optional, tag="10")]
5687    pub unwind_state_clear_period_ms: ::core::option::Option<u32>,
5688    /// If set, only profile target if it was installed by a package with one of
5689    /// these names. Special values:
5690    /// * "@system": installed on the system partition
5691    /// * "@product": installed on the product partition
5692    /// * "@null": sideloaded
5693    /// Supported on Android 12+.
5694    #[prost(string, repeated, tag="18")]
5695    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5696    //
5697    // Deprecated (superseded by options above):
5698    //
5699    // Do not set *any* of these fields in new configs.
5700    //
5701
5702    /// Note: legacy configs had to set |all_cpus| to true to pass parsing.
5703    /// We rely on this to detect such configs.
5704    #[prost(bool, optional, tag="1")]
5705    pub all_cpus: ::core::option::Option<bool>,
5706    #[prost(uint32, optional, tag="2")]
5707    pub sampling_frequency: ::core::option::Option<u32>,
5708    #[prost(bool, optional, tag="12")]
5709    pub kernel_frames: ::core::option::Option<bool>,
5710    #[prost(int32, repeated, packed="false", tag="4")]
5711    pub target_pid: ::prost::alloc::vec::Vec<i32>,
5712    #[prost(string, repeated, tag="5")]
5713    pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5714    #[prost(int32, repeated, packed="false", tag="6")]
5715    pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
5716    #[prost(string, repeated, tag="7")]
5717    pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5718    #[prost(uint32, optional, tag="11")]
5719    pub additional_cmdline_count: ::core::option::Option<u32>,
5720}
5721/// Nested message and enum types in `PerfEventConfig`.
5722pub mod perf_event_config {
5723    //
5724    // Sub-messages (nested for generated code namespacing).
5725    //
5726
5727    #[derive(Clone, PartialEq, ::prost::Message)]
5728    pub struct CallstackSampling {
5729        /// Defines a set of processes for which samples are retained/skipped. If
5730        /// unset, all samples are kept, but beware that it will be very heavy on the
5731        /// stack unwinder, which might start dropping samples due to overload.
5732        #[prost(message, optional, tag="1")]
5733        pub scope: ::core::option::Option<Scope>,
5734        /// If true, callstacks will include the kernel-space frames. Such frames can
5735        /// be identified by a magical "kernel" string as their mapping name.
5736        /// Requires traced_perf to be running as root, or kptr_restrict to have been
5737        /// manually unrestricted. On Android, the platform should do the right thing
5738        /// on debug builds.
5739        /// This does *not* disclose KASLR, as only the function names are emitted.
5740        #[prost(bool, optional, tag="2")]
5741        pub kernel_frames: ::core::option::Option<bool>,
5742        /// Whether to record and unwind userspace callstacks. If unset, defaults to
5743        /// including userspace (UNWIND_DWARF) both for backwards compatibility and
5744        /// as the most common default (this defaulting is only applicable if the
5745        /// outer CallstackSampling message is explicitly set).
5746        #[prost(enumeration="UnwindMode", optional, tag="3")]
5747        pub user_frames: ::core::option::Option<i32>,
5748    }
5749    #[derive(Clone, PartialEq, ::prost::Message)]
5750    pub struct Scope {
5751        /// Process ID (TGID) allowlist. If this list is not empty, only matching
5752        /// samples will be retained. If multiple allow/deny-lists are
5753        /// specified by the config, then all of them are evaluated for each sampled
5754        /// process.
5755        #[prost(int32, repeated, packed="false", tag="1")]
5756        pub target_pid: ::prost::alloc::vec::Vec<i32>,
5757        /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
5758        /// comm string). The semantics of this field were changed since its original
5759        /// introduction.
5760        ///
5761        /// On Android T+ (13+), this field can specify a single wildcard (*), and
5762        /// the profiler will attempt to match it in two possible ways:
5763        /// * if the pattern starts with a '/', then it is matched against the first
5764        ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
5765        ///    "/bin/echo".
5766        /// * otherwise the pattern is matched against the part of argv0
5767        ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
5768        ///    For example "echo" would match "/bin/echo".
5769        ///
5770        /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
5771        /// normalized prior to an exact string comparison. Normalization is as
5772        /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
5773        /// the string contains forward slashes, trim everything up to and including
5774        /// the last one.
5775        ///
5776        /// Implementation note: in either case, at most 511 characters of cmdline
5777        /// are considered.
5778        #[prost(string, repeated, tag="2")]
5779        pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5780        /// List of excluded pids.
5781        #[prost(int32, repeated, packed="false", tag="3")]
5782        pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
5783        /// List of excluded cmdlines. See description of |target_cmdline| for how
5784        /// this is handled.
5785        #[prost(string, repeated, tag="4")]
5786        pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5787        // Niche features for systemwide callstacks:
5788
5789        /// Number of additional command lines to sample. Only those which are
5790        /// neither explicitly included nor excluded will be considered. Processes
5791        /// are accepted on a first come, first served basis.
5792        #[prost(uint32, optional, tag="5")]
5793        pub additional_cmdline_count: ::core::option::Option<u32>,
5794        /// If set to N, all encountered processes will be put into one of the N
5795        /// possible bins, and only one randomly-chosen bin will be selected for
5796        /// unwinding. The binning is simply "pid % N", under the assumption that
5797        /// low-order bits of pids are roughly uniformly distributed. Other explicit
5798        /// inclusions/exclusions in this |Scope| message are still respected.
5799        ///
5800        /// The profiler will report the chosen shard in PerfSampleDefaults, and the
5801        /// values will be queryable in trace processor under the "stats" table as
5802        /// "perf_process_shard_count" and "perf_chosen_process_shard".
5803        ///
5804        /// NB: all data sources in a config that set |process_shard_count| must set
5805        /// it to the same value. The profiler will choose one bin for all those data
5806        /// sources.
5807        #[prost(uint32, optional, tag="6")]
5808        pub process_shard_count: ::core::option::Option<u32>,
5809    }
5810    /// Userspace unwinding mode. A possible future addition is kernel-unwound
5811    /// callchains for frame pointer based systems.
5812    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5813    #[repr(i32)]
5814    pub enum UnwindMode {
5815        UnwindUnknown = 0,
5816        /// Do not unwind userspace:
5817        UnwindSkip = 1,
5818        /// Use libunwindstack (default):
5819        UnwindDwarf = 2,
5820        /// Use userspace frame pointer unwinder:
5821        UnwindFramePointer = 3,
5822    }
5823    impl UnwindMode {
5824        /// String value of the enum field names used in the ProtoBuf definition.
5825        ///
5826        /// The values are not transformed in any way and thus are considered stable
5827        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5828        pub fn as_str_name(&self) -> &'static str {
5829            match self {
5830                UnwindMode::UnwindUnknown => "UNWIND_UNKNOWN",
5831                UnwindMode::UnwindSkip => "UNWIND_SKIP",
5832                UnwindMode::UnwindDwarf => "UNWIND_DWARF",
5833                UnwindMode::UnwindFramePointer => "UNWIND_FRAME_POINTER",
5834            }
5835        }
5836    }
5837}
5838// When editing entries here remember also to update "sys_stats_counters.h" with
5839// the corresponding string definitions for the actual /proc files parser.
5840
5841/// Counter definitions for Linux's /proc/meminfo.
5842#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5843#[repr(i32)]
5844pub enum MeminfoCounters {
5845    MeminfoUnspecified = 0,
5846    MeminfoMemTotal = 1,
5847    MeminfoMemFree = 2,
5848    MeminfoMemAvailable = 3,
5849    MeminfoBuffers = 4,
5850    MeminfoCached = 5,
5851    MeminfoSwapCached = 6,
5852    MeminfoActive = 7,
5853    MeminfoInactive = 8,
5854    MeminfoActiveAnon = 9,
5855    MeminfoInactiveAnon = 10,
5856    MeminfoActiveFile = 11,
5857    MeminfoInactiveFile = 12,
5858    MeminfoUnevictable = 13,
5859    MeminfoMlocked = 14,
5860    MeminfoSwapTotal = 15,
5861    MeminfoSwapFree = 16,
5862    MeminfoDirty = 17,
5863    MeminfoWriteback = 18,
5864    MeminfoAnonPages = 19,
5865    MeminfoMapped = 20,
5866    MeminfoShmem = 21,
5867    MeminfoSlab = 22,
5868    MeminfoSlabReclaimable = 23,
5869    MeminfoSlabUnreclaimable = 24,
5870    MeminfoKernelStack = 25,
5871    MeminfoPageTables = 26,
5872    MeminfoCommitLimit = 27,
5873    MeminfoCommitedAs = 28,
5874    MeminfoVmallocTotal = 29,
5875    MeminfoVmallocUsed = 30,
5876    MeminfoVmallocChunk = 31,
5877    MeminfoCmaTotal = 32,
5878    MeminfoCmaFree = 33,
5879    MeminfoGpu = 34,
5880    MeminfoZram = 35,
5881    MeminfoMisc = 36,
5882    MeminfoIonHeap = 37,
5883    MeminfoIonHeapPool = 38,
5884}
5885impl MeminfoCounters {
5886    /// String value of the enum field names used in the ProtoBuf definition.
5887    ///
5888    /// The values are not transformed in any way and thus are considered stable
5889    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5890    pub fn as_str_name(&self) -> &'static str {
5891        match self {
5892            MeminfoCounters::MeminfoUnspecified => "MEMINFO_UNSPECIFIED",
5893            MeminfoCounters::MeminfoMemTotal => "MEMINFO_MEM_TOTAL",
5894            MeminfoCounters::MeminfoMemFree => "MEMINFO_MEM_FREE",
5895            MeminfoCounters::MeminfoMemAvailable => "MEMINFO_MEM_AVAILABLE",
5896            MeminfoCounters::MeminfoBuffers => "MEMINFO_BUFFERS",
5897            MeminfoCounters::MeminfoCached => "MEMINFO_CACHED",
5898            MeminfoCounters::MeminfoSwapCached => "MEMINFO_SWAP_CACHED",
5899            MeminfoCounters::MeminfoActive => "MEMINFO_ACTIVE",
5900            MeminfoCounters::MeminfoInactive => "MEMINFO_INACTIVE",
5901            MeminfoCounters::MeminfoActiveAnon => "MEMINFO_ACTIVE_ANON",
5902            MeminfoCounters::MeminfoInactiveAnon => "MEMINFO_INACTIVE_ANON",
5903            MeminfoCounters::MeminfoActiveFile => "MEMINFO_ACTIVE_FILE",
5904            MeminfoCounters::MeminfoInactiveFile => "MEMINFO_INACTIVE_FILE",
5905            MeminfoCounters::MeminfoUnevictable => "MEMINFO_UNEVICTABLE",
5906            MeminfoCounters::MeminfoMlocked => "MEMINFO_MLOCKED",
5907            MeminfoCounters::MeminfoSwapTotal => "MEMINFO_SWAP_TOTAL",
5908            MeminfoCounters::MeminfoSwapFree => "MEMINFO_SWAP_FREE",
5909            MeminfoCounters::MeminfoDirty => "MEMINFO_DIRTY",
5910            MeminfoCounters::MeminfoWriteback => "MEMINFO_WRITEBACK",
5911            MeminfoCounters::MeminfoAnonPages => "MEMINFO_ANON_PAGES",
5912            MeminfoCounters::MeminfoMapped => "MEMINFO_MAPPED",
5913            MeminfoCounters::MeminfoShmem => "MEMINFO_SHMEM",
5914            MeminfoCounters::MeminfoSlab => "MEMINFO_SLAB",
5915            MeminfoCounters::MeminfoSlabReclaimable => "MEMINFO_SLAB_RECLAIMABLE",
5916            MeminfoCounters::MeminfoSlabUnreclaimable => "MEMINFO_SLAB_UNRECLAIMABLE",
5917            MeminfoCounters::MeminfoKernelStack => "MEMINFO_KERNEL_STACK",
5918            MeminfoCounters::MeminfoPageTables => "MEMINFO_PAGE_TABLES",
5919            MeminfoCounters::MeminfoCommitLimit => "MEMINFO_COMMIT_LIMIT",
5920            MeminfoCounters::MeminfoCommitedAs => "MEMINFO_COMMITED_AS",
5921            MeminfoCounters::MeminfoVmallocTotal => "MEMINFO_VMALLOC_TOTAL",
5922            MeminfoCounters::MeminfoVmallocUsed => "MEMINFO_VMALLOC_USED",
5923            MeminfoCounters::MeminfoVmallocChunk => "MEMINFO_VMALLOC_CHUNK",
5924            MeminfoCounters::MeminfoCmaTotal => "MEMINFO_CMA_TOTAL",
5925            MeminfoCounters::MeminfoCmaFree => "MEMINFO_CMA_FREE",
5926            MeminfoCounters::MeminfoGpu => "MEMINFO_GPU",
5927            MeminfoCounters::MeminfoZram => "MEMINFO_ZRAM",
5928            MeminfoCounters::MeminfoMisc => "MEMINFO_MISC",
5929            MeminfoCounters::MeminfoIonHeap => "MEMINFO_ION_HEAP",
5930            MeminfoCounters::MeminfoIonHeapPool => "MEMINFO_ION_HEAP_POOL",
5931        }
5932    }
5933}
5934/// Counter definitions for Linux's /proc/vmstat.
5935#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5936#[repr(i32)]
5937pub enum VmstatCounters {
5938    VmstatUnspecified = 0,
5939    VmstatNrFreePages = 1,
5940    VmstatNrAllocBatch = 2,
5941    VmstatNrInactiveAnon = 3,
5942    VmstatNrActiveAnon = 4,
5943    VmstatNrInactiveFile = 5,
5944    VmstatNrActiveFile = 6,
5945    VmstatNrUnevictable = 7,
5946    VmstatNrMlock = 8,
5947    VmstatNrAnonPages = 9,
5948    VmstatNrMapped = 10,
5949    VmstatNrFilePages = 11,
5950    VmstatNrDirty = 12,
5951    VmstatNrWriteback = 13,
5952    VmstatNrSlabReclaimable = 14,
5953    VmstatNrSlabUnreclaimable = 15,
5954    VmstatNrPageTablePages = 16,
5955    VmstatNrKernelStack = 17,
5956    VmstatNrOverhead = 18,
5957    VmstatNrUnstable = 19,
5958    VmstatNrBounce = 20,
5959    VmstatNrVmscanWrite = 21,
5960    VmstatNrVmscanImmediateReclaim = 22,
5961    VmstatNrWritebackTemp = 23,
5962    VmstatNrIsolatedAnon = 24,
5963    VmstatNrIsolatedFile = 25,
5964    VmstatNrShmem = 26,
5965    VmstatNrDirtied = 27,
5966    VmstatNrWritten = 28,
5967    VmstatNrPagesScanned = 29,
5968    VmstatWorkingsetRefault = 30,
5969    VmstatWorkingsetActivate = 31,
5970    VmstatWorkingsetNodereclaim = 32,
5971    VmstatNrAnonTransparentHugepages = 33,
5972    VmstatNrFreeCma = 34,
5973    VmstatNrSwapcache = 35,
5974    VmstatNrDirtyThreshold = 36,
5975    VmstatNrDirtyBackgroundThreshold = 37,
5976    VmstatPgpgin = 38,
5977    VmstatPgpgout = 39,
5978    VmstatPgpgoutclean = 40,
5979    VmstatPswpin = 41,
5980    VmstatPswpout = 42,
5981    VmstatPgallocDma = 43,
5982    VmstatPgallocNormal = 44,
5983    VmstatPgallocMovable = 45,
5984    VmstatPgfree = 46,
5985    VmstatPgactivate = 47,
5986    VmstatPgdeactivate = 48,
5987    VmstatPgfault = 49,
5988    VmstatPgmajfault = 50,
5989    VmstatPgrefillDma = 51,
5990    VmstatPgrefillNormal = 52,
5991    VmstatPgrefillMovable = 53,
5992    VmstatPgstealKswapdDma = 54,
5993    VmstatPgstealKswapdNormal = 55,
5994    VmstatPgstealKswapdMovable = 56,
5995    VmstatPgstealDirectDma = 57,
5996    VmstatPgstealDirectNormal = 58,
5997    VmstatPgstealDirectMovable = 59,
5998    VmstatPgscanKswapdDma = 60,
5999    VmstatPgscanKswapdNormal = 61,
6000    VmstatPgscanKswapdMovable = 62,
6001    VmstatPgscanDirectDma = 63,
6002    VmstatPgscanDirectNormal = 64,
6003    VmstatPgscanDirectMovable = 65,
6004    VmstatPgscanDirectThrottle = 66,
6005    VmstatPginodesteal = 67,
6006    VmstatSlabsScanned = 68,
6007    VmstatKswapdInodesteal = 69,
6008    VmstatKswapdLowWmarkHitQuickly = 70,
6009    VmstatKswapdHighWmarkHitQuickly = 71,
6010    VmstatPageoutrun = 72,
6011    VmstatAllocstall = 73,
6012    VmstatPgrotated = 74,
6013    VmstatDropPagecache = 75,
6014    VmstatDropSlab = 76,
6015    VmstatPgmigrateSuccess = 77,
6016    VmstatPgmigrateFail = 78,
6017    VmstatCompactMigrateScanned = 79,
6018    VmstatCompactFreeScanned = 80,
6019    VmstatCompactIsolated = 81,
6020    VmstatCompactStall = 82,
6021    VmstatCompactFail = 83,
6022    VmstatCompactSuccess = 84,
6023    VmstatCompactDaemonWake = 85,
6024    VmstatUnevictablePgsCulled = 86,
6025    VmstatUnevictablePgsScanned = 87,
6026    VmstatUnevictablePgsRescued = 88,
6027    VmstatUnevictablePgsMlocked = 89,
6028    VmstatUnevictablePgsMunlocked = 90,
6029    VmstatUnevictablePgsCleared = 91,
6030    VmstatUnevictablePgsStranded = 92,
6031    VmstatNrZspages = 93,
6032    VmstatNrIonHeap = 94,
6033    VmstatNrGpuHeap = 95,
6034    VmstatAllocstallDma = 96,
6035    VmstatAllocstallMovable = 97,
6036    VmstatAllocstallNormal = 98,
6037    VmstatCompactDaemonFreeScanned = 99,
6038    VmstatCompactDaemonMigrateScanned = 100,
6039    VmstatNrFastrpc = 101,
6040    VmstatNrIndirectlyReclaimable = 102,
6041    VmstatNrIonHeapPool = 103,
6042    VmstatNrKernelMiscReclaimable = 104,
6043    VmstatNrShadowCallStackBytes = 105,
6044    VmstatNrShmemHugepages = 106,
6045    VmstatNrShmemPmdmapped = 107,
6046    VmstatNrUnreclaimablePages = 108,
6047    VmstatNrZoneActiveAnon = 109,
6048    VmstatNrZoneActiveFile = 110,
6049    VmstatNrZoneInactiveAnon = 111,
6050    VmstatNrZoneInactiveFile = 112,
6051    VmstatNrZoneUnevictable = 113,
6052    VmstatNrZoneWritePending = 114,
6053    VmstatOomKill = 115,
6054    VmstatPglazyfree = 116,
6055    VmstatPglazyfreed = 117,
6056    VmstatPgrefill = 118,
6057    VmstatPgscanDirect = 119,
6058    VmstatPgscanKswapd = 120,
6059    VmstatPgskipDma = 121,
6060    VmstatPgskipMovable = 122,
6061    VmstatPgskipNormal = 123,
6062    VmstatPgstealDirect = 124,
6063    VmstatPgstealKswapd = 125,
6064    VmstatSwapRa = 126,
6065    VmstatSwapRaHit = 127,
6066    VmstatWorkingsetRestore = 128,
6067    VmstatAllocstallDevice = 129,
6068    VmstatAllocstallDma32 = 130,
6069    VmstatBalloonDeflate = 131,
6070    VmstatBalloonInflate = 132,
6071    VmstatBalloonMigrate = 133,
6072    VmstatCmaAllocFail = 134,
6073    VmstatCmaAllocSuccess = 135,
6074    VmstatNrFileHugepages = 136,
6075    VmstatNrFilePmdmapped = 137,
6076    VmstatNrFollPinAcquired = 138,
6077    VmstatNrFollPinReleased = 139,
6078    VmstatNrSecPageTablePages = 140,
6079    VmstatNrShadowCallStack = 141,
6080    VmstatNrSwapcached = 142,
6081    VmstatNrThrottledWritten = 143,
6082    VmstatPgallocDevice = 144,
6083    VmstatPgallocDma32 = 145,
6084    VmstatPgdemoteDirect = 146,
6085    VmstatPgdemoteKswapd = 147,
6086    VmstatPgreuse = 148,
6087    VmstatPgscanAnon = 149,
6088    VmstatPgscanFile = 150,
6089    VmstatPgskipDevice = 151,
6090    VmstatPgskipDma32 = 152,
6091    VmstatPgstealAnon = 153,
6092    VmstatPgstealFile = 154,
6093    VmstatThpCollapseAlloc = 155,
6094    VmstatThpCollapseAllocFailed = 156,
6095    VmstatThpDeferredSplitPage = 157,
6096    VmstatThpFaultAlloc = 158,
6097    VmstatThpFaultFallback = 159,
6098    VmstatThpFaultFallbackCharge = 160,
6099    VmstatThpFileAlloc = 161,
6100    VmstatThpFileFallback = 162,
6101    VmstatThpFileFallbackCharge = 163,
6102    VmstatThpFileMapped = 164,
6103    VmstatThpMigrationFail = 165,
6104    VmstatThpMigrationSplit = 166,
6105    VmstatThpMigrationSuccess = 167,
6106    VmstatThpScanExceedNonePte = 168,
6107    VmstatThpScanExceedSharePte = 169,
6108    VmstatThpScanExceedSwapPte = 170,
6109    VmstatThpSplitPage = 171,
6110    VmstatThpSplitPageFailed = 172,
6111    VmstatThpSplitPmd = 173,
6112    VmstatThpSwpout = 174,
6113    VmstatThpSwpoutFallback = 175,
6114    VmstatThpZeroPageAlloc = 176,
6115    VmstatThpZeroPageAllocFailed = 177,
6116    VmstatVmaLockAbort = 178,
6117    VmstatVmaLockMiss = 179,
6118    VmstatVmaLockRetry = 180,
6119    VmstatVmaLockSuccess = 181,
6120    VmstatWorkingsetActivateAnon = 182,
6121    VmstatWorkingsetActivateFile = 183,
6122    VmstatWorkingsetNodes = 184,
6123    VmstatWorkingsetRefaultAnon = 185,
6124    VmstatWorkingsetRefaultFile = 186,
6125    VmstatWorkingsetRestoreAnon = 187,
6126    VmstatWorkingsetRestoreFile = 188,
6127}
6128impl VmstatCounters {
6129    /// String value of the enum field names used in the ProtoBuf definition.
6130    ///
6131    /// The values are not transformed in any way and thus are considered stable
6132    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6133    pub fn as_str_name(&self) -> &'static str {
6134        match self {
6135            VmstatCounters::VmstatUnspecified => "VMSTAT_UNSPECIFIED",
6136            VmstatCounters::VmstatNrFreePages => "VMSTAT_NR_FREE_PAGES",
6137            VmstatCounters::VmstatNrAllocBatch => "VMSTAT_NR_ALLOC_BATCH",
6138            VmstatCounters::VmstatNrInactiveAnon => "VMSTAT_NR_INACTIVE_ANON",
6139            VmstatCounters::VmstatNrActiveAnon => "VMSTAT_NR_ACTIVE_ANON",
6140            VmstatCounters::VmstatNrInactiveFile => "VMSTAT_NR_INACTIVE_FILE",
6141            VmstatCounters::VmstatNrActiveFile => "VMSTAT_NR_ACTIVE_FILE",
6142            VmstatCounters::VmstatNrUnevictable => "VMSTAT_NR_UNEVICTABLE",
6143            VmstatCounters::VmstatNrMlock => "VMSTAT_NR_MLOCK",
6144            VmstatCounters::VmstatNrAnonPages => "VMSTAT_NR_ANON_PAGES",
6145            VmstatCounters::VmstatNrMapped => "VMSTAT_NR_MAPPED",
6146            VmstatCounters::VmstatNrFilePages => "VMSTAT_NR_FILE_PAGES",
6147            VmstatCounters::VmstatNrDirty => "VMSTAT_NR_DIRTY",
6148            VmstatCounters::VmstatNrWriteback => "VMSTAT_NR_WRITEBACK",
6149            VmstatCounters::VmstatNrSlabReclaimable => "VMSTAT_NR_SLAB_RECLAIMABLE",
6150            VmstatCounters::VmstatNrSlabUnreclaimable => "VMSTAT_NR_SLAB_UNRECLAIMABLE",
6151            VmstatCounters::VmstatNrPageTablePages => "VMSTAT_NR_PAGE_TABLE_PAGES",
6152            VmstatCounters::VmstatNrKernelStack => "VMSTAT_NR_KERNEL_STACK",
6153            VmstatCounters::VmstatNrOverhead => "VMSTAT_NR_OVERHEAD",
6154            VmstatCounters::VmstatNrUnstable => "VMSTAT_NR_UNSTABLE",
6155            VmstatCounters::VmstatNrBounce => "VMSTAT_NR_BOUNCE",
6156            VmstatCounters::VmstatNrVmscanWrite => "VMSTAT_NR_VMSCAN_WRITE",
6157            VmstatCounters::VmstatNrVmscanImmediateReclaim => "VMSTAT_NR_VMSCAN_IMMEDIATE_RECLAIM",
6158            VmstatCounters::VmstatNrWritebackTemp => "VMSTAT_NR_WRITEBACK_TEMP",
6159            VmstatCounters::VmstatNrIsolatedAnon => "VMSTAT_NR_ISOLATED_ANON",
6160            VmstatCounters::VmstatNrIsolatedFile => "VMSTAT_NR_ISOLATED_FILE",
6161            VmstatCounters::VmstatNrShmem => "VMSTAT_NR_SHMEM",
6162            VmstatCounters::VmstatNrDirtied => "VMSTAT_NR_DIRTIED",
6163            VmstatCounters::VmstatNrWritten => "VMSTAT_NR_WRITTEN",
6164            VmstatCounters::VmstatNrPagesScanned => "VMSTAT_NR_PAGES_SCANNED",
6165            VmstatCounters::VmstatWorkingsetRefault => "VMSTAT_WORKINGSET_REFAULT",
6166            VmstatCounters::VmstatWorkingsetActivate => "VMSTAT_WORKINGSET_ACTIVATE",
6167            VmstatCounters::VmstatWorkingsetNodereclaim => "VMSTAT_WORKINGSET_NODERECLAIM",
6168            VmstatCounters::VmstatNrAnonTransparentHugepages => "VMSTAT_NR_ANON_TRANSPARENT_HUGEPAGES",
6169            VmstatCounters::VmstatNrFreeCma => "VMSTAT_NR_FREE_CMA",
6170            VmstatCounters::VmstatNrSwapcache => "VMSTAT_NR_SWAPCACHE",
6171            VmstatCounters::VmstatNrDirtyThreshold => "VMSTAT_NR_DIRTY_THRESHOLD",
6172            VmstatCounters::VmstatNrDirtyBackgroundThreshold => "VMSTAT_NR_DIRTY_BACKGROUND_THRESHOLD",
6173            VmstatCounters::VmstatPgpgin => "VMSTAT_PGPGIN",
6174            VmstatCounters::VmstatPgpgout => "VMSTAT_PGPGOUT",
6175            VmstatCounters::VmstatPgpgoutclean => "VMSTAT_PGPGOUTCLEAN",
6176            VmstatCounters::VmstatPswpin => "VMSTAT_PSWPIN",
6177            VmstatCounters::VmstatPswpout => "VMSTAT_PSWPOUT",
6178            VmstatCounters::VmstatPgallocDma => "VMSTAT_PGALLOC_DMA",
6179            VmstatCounters::VmstatPgallocNormal => "VMSTAT_PGALLOC_NORMAL",
6180            VmstatCounters::VmstatPgallocMovable => "VMSTAT_PGALLOC_MOVABLE",
6181            VmstatCounters::VmstatPgfree => "VMSTAT_PGFREE",
6182            VmstatCounters::VmstatPgactivate => "VMSTAT_PGACTIVATE",
6183            VmstatCounters::VmstatPgdeactivate => "VMSTAT_PGDEACTIVATE",
6184            VmstatCounters::VmstatPgfault => "VMSTAT_PGFAULT",
6185            VmstatCounters::VmstatPgmajfault => "VMSTAT_PGMAJFAULT",
6186            VmstatCounters::VmstatPgrefillDma => "VMSTAT_PGREFILL_DMA",
6187            VmstatCounters::VmstatPgrefillNormal => "VMSTAT_PGREFILL_NORMAL",
6188            VmstatCounters::VmstatPgrefillMovable => "VMSTAT_PGREFILL_MOVABLE",
6189            VmstatCounters::VmstatPgstealKswapdDma => "VMSTAT_PGSTEAL_KSWAPD_DMA",
6190            VmstatCounters::VmstatPgstealKswapdNormal => "VMSTAT_PGSTEAL_KSWAPD_NORMAL",
6191            VmstatCounters::VmstatPgstealKswapdMovable => "VMSTAT_PGSTEAL_KSWAPD_MOVABLE",
6192            VmstatCounters::VmstatPgstealDirectDma => "VMSTAT_PGSTEAL_DIRECT_DMA",
6193            VmstatCounters::VmstatPgstealDirectNormal => "VMSTAT_PGSTEAL_DIRECT_NORMAL",
6194            VmstatCounters::VmstatPgstealDirectMovable => "VMSTAT_PGSTEAL_DIRECT_MOVABLE",
6195            VmstatCounters::VmstatPgscanKswapdDma => "VMSTAT_PGSCAN_KSWAPD_DMA",
6196            VmstatCounters::VmstatPgscanKswapdNormal => "VMSTAT_PGSCAN_KSWAPD_NORMAL",
6197            VmstatCounters::VmstatPgscanKswapdMovable => "VMSTAT_PGSCAN_KSWAPD_MOVABLE",
6198            VmstatCounters::VmstatPgscanDirectDma => "VMSTAT_PGSCAN_DIRECT_DMA",
6199            VmstatCounters::VmstatPgscanDirectNormal => "VMSTAT_PGSCAN_DIRECT_NORMAL",
6200            VmstatCounters::VmstatPgscanDirectMovable => "VMSTAT_PGSCAN_DIRECT_MOVABLE",
6201            VmstatCounters::VmstatPgscanDirectThrottle => "VMSTAT_PGSCAN_DIRECT_THROTTLE",
6202            VmstatCounters::VmstatPginodesteal => "VMSTAT_PGINODESTEAL",
6203            VmstatCounters::VmstatSlabsScanned => "VMSTAT_SLABS_SCANNED",
6204            VmstatCounters::VmstatKswapdInodesteal => "VMSTAT_KSWAPD_INODESTEAL",
6205            VmstatCounters::VmstatKswapdLowWmarkHitQuickly => "VMSTAT_KSWAPD_LOW_WMARK_HIT_QUICKLY",
6206            VmstatCounters::VmstatKswapdHighWmarkHitQuickly => "VMSTAT_KSWAPD_HIGH_WMARK_HIT_QUICKLY",
6207            VmstatCounters::VmstatPageoutrun => "VMSTAT_PAGEOUTRUN",
6208            VmstatCounters::VmstatAllocstall => "VMSTAT_ALLOCSTALL",
6209            VmstatCounters::VmstatPgrotated => "VMSTAT_PGROTATED",
6210            VmstatCounters::VmstatDropPagecache => "VMSTAT_DROP_PAGECACHE",
6211            VmstatCounters::VmstatDropSlab => "VMSTAT_DROP_SLAB",
6212            VmstatCounters::VmstatPgmigrateSuccess => "VMSTAT_PGMIGRATE_SUCCESS",
6213            VmstatCounters::VmstatPgmigrateFail => "VMSTAT_PGMIGRATE_FAIL",
6214            VmstatCounters::VmstatCompactMigrateScanned => "VMSTAT_COMPACT_MIGRATE_SCANNED",
6215            VmstatCounters::VmstatCompactFreeScanned => "VMSTAT_COMPACT_FREE_SCANNED",
6216            VmstatCounters::VmstatCompactIsolated => "VMSTAT_COMPACT_ISOLATED",
6217            VmstatCounters::VmstatCompactStall => "VMSTAT_COMPACT_STALL",
6218            VmstatCounters::VmstatCompactFail => "VMSTAT_COMPACT_FAIL",
6219            VmstatCounters::VmstatCompactSuccess => "VMSTAT_COMPACT_SUCCESS",
6220            VmstatCounters::VmstatCompactDaemonWake => "VMSTAT_COMPACT_DAEMON_WAKE",
6221            VmstatCounters::VmstatUnevictablePgsCulled => "VMSTAT_UNEVICTABLE_PGS_CULLED",
6222            VmstatCounters::VmstatUnevictablePgsScanned => "VMSTAT_UNEVICTABLE_PGS_SCANNED",
6223            VmstatCounters::VmstatUnevictablePgsRescued => "VMSTAT_UNEVICTABLE_PGS_RESCUED",
6224            VmstatCounters::VmstatUnevictablePgsMlocked => "VMSTAT_UNEVICTABLE_PGS_MLOCKED",
6225            VmstatCounters::VmstatUnevictablePgsMunlocked => "VMSTAT_UNEVICTABLE_PGS_MUNLOCKED",
6226            VmstatCounters::VmstatUnevictablePgsCleared => "VMSTAT_UNEVICTABLE_PGS_CLEARED",
6227            VmstatCounters::VmstatUnevictablePgsStranded => "VMSTAT_UNEVICTABLE_PGS_STRANDED",
6228            VmstatCounters::VmstatNrZspages => "VMSTAT_NR_ZSPAGES",
6229            VmstatCounters::VmstatNrIonHeap => "VMSTAT_NR_ION_HEAP",
6230            VmstatCounters::VmstatNrGpuHeap => "VMSTAT_NR_GPU_HEAP",
6231            VmstatCounters::VmstatAllocstallDma => "VMSTAT_ALLOCSTALL_DMA",
6232            VmstatCounters::VmstatAllocstallMovable => "VMSTAT_ALLOCSTALL_MOVABLE",
6233            VmstatCounters::VmstatAllocstallNormal => "VMSTAT_ALLOCSTALL_NORMAL",
6234            VmstatCounters::VmstatCompactDaemonFreeScanned => "VMSTAT_COMPACT_DAEMON_FREE_SCANNED",
6235            VmstatCounters::VmstatCompactDaemonMigrateScanned => "VMSTAT_COMPACT_DAEMON_MIGRATE_SCANNED",
6236            VmstatCounters::VmstatNrFastrpc => "VMSTAT_NR_FASTRPC",
6237            VmstatCounters::VmstatNrIndirectlyReclaimable => "VMSTAT_NR_INDIRECTLY_RECLAIMABLE",
6238            VmstatCounters::VmstatNrIonHeapPool => "VMSTAT_NR_ION_HEAP_POOL",
6239            VmstatCounters::VmstatNrKernelMiscReclaimable => "VMSTAT_NR_KERNEL_MISC_RECLAIMABLE",
6240            VmstatCounters::VmstatNrShadowCallStackBytes => "VMSTAT_NR_SHADOW_CALL_STACK_BYTES",
6241            VmstatCounters::VmstatNrShmemHugepages => "VMSTAT_NR_SHMEM_HUGEPAGES",
6242            VmstatCounters::VmstatNrShmemPmdmapped => "VMSTAT_NR_SHMEM_PMDMAPPED",
6243            VmstatCounters::VmstatNrUnreclaimablePages => "VMSTAT_NR_UNRECLAIMABLE_PAGES",
6244            VmstatCounters::VmstatNrZoneActiveAnon => "VMSTAT_NR_ZONE_ACTIVE_ANON",
6245            VmstatCounters::VmstatNrZoneActiveFile => "VMSTAT_NR_ZONE_ACTIVE_FILE",
6246            VmstatCounters::VmstatNrZoneInactiveAnon => "VMSTAT_NR_ZONE_INACTIVE_ANON",
6247            VmstatCounters::VmstatNrZoneInactiveFile => "VMSTAT_NR_ZONE_INACTIVE_FILE",
6248            VmstatCounters::VmstatNrZoneUnevictable => "VMSTAT_NR_ZONE_UNEVICTABLE",
6249            VmstatCounters::VmstatNrZoneWritePending => "VMSTAT_NR_ZONE_WRITE_PENDING",
6250            VmstatCounters::VmstatOomKill => "VMSTAT_OOM_KILL",
6251            VmstatCounters::VmstatPglazyfree => "VMSTAT_PGLAZYFREE",
6252            VmstatCounters::VmstatPglazyfreed => "VMSTAT_PGLAZYFREED",
6253            VmstatCounters::VmstatPgrefill => "VMSTAT_PGREFILL",
6254            VmstatCounters::VmstatPgscanDirect => "VMSTAT_PGSCAN_DIRECT",
6255            VmstatCounters::VmstatPgscanKswapd => "VMSTAT_PGSCAN_KSWAPD",
6256            VmstatCounters::VmstatPgskipDma => "VMSTAT_PGSKIP_DMA",
6257            VmstatCounters::VmstatPgskipMovable => "VMSTAT_PGSKIP_MOVABLE",
6258            VmstatCounters::VmstatPgskipNormal => "VMSTAT_PGSKIP_NORMAL",
6259            VmstatCounters::VmstatPgstealDirect => "VMSTAT_PGSTEAL_DIRECT",
6260            VmstatCounters::VmstatPgstealKswapd => "VMSTAT_PGSTEAL_KSWAPD",
6261            VmstatCounters::VmstatSwapRa => "VMSTAT_SWAP_RA",
6262            VmstatCounters::VmstatSwapRaHit => "VMSTAT_SWAP_RA_HIT",
6263            VmstatCounters::VmstatWorkingsetRestore => "VMSTAT_WORKINGSET_RESTORE",
6264            VmstatCounters::VmstatAllocstallDevice => "VMSTAT_ALLOCSTALL_DEVICE",
6265            VmstatCounters::VmstatAllocstallDma32 => "VMSTAT_ALLOCSTALL_DMA32",
6266            VmstatCounters::VmstatBalloonDeflate => "VMSTAT_BALLOON_DEFLATE",
6267            VmstatCounters::VmstatBalloonInflate => "VMSTAT_BALLOON_INFLATE",
6268            VmstatCounters::VmstatBalloonMigrate => "VMSTAT_BALLOON_MIGRATE",
6269            VmstatCounters::VmstatCmaAllocFail => "VMSTAT_CMA_ALLOC_FAIL",
6270            VmstatCounters::VmstatCmaAllocSuccess => "VMSTAT_CMA_ALLOC_SUCCESS",
6271            VmstatCounters::VmstatNrFileHugepages => "VMSTAT_NR_FILE_HUGEPAGES",
6272            VmstatCounters::VmstatNrFilePmdmapped => "VMSTAT_NR_FILE_PMDMAPPED",
6273            VmstatCounters::VmstatNrFollPinAcquired => "VMSTAT_NR_FOLL_PIN_ACQUIRED",
6274            VmstatCounters::VmstatNrFollPinReleased => "VMSTAT_NR_FOLL_PIN_RELEASED",
6275            VmstatCounters::VmstatNrSecPageTablePages => "VMSTAT_NR_SEC_PAGE_TABLE_PAGES",
6276            VmstatCounters::VmstatNrShadowCallStack => "VMSTAT_NR_SHADOW_CALL_STACK",
6277            VmstatCounters::VmstatNrSwapcached => "VMSTAT_NR_SWAPCACHED",
6278            VmstatCounters::VmstatNrThrottledWritten => "VMSTAT_NR_THROTTLED_WRITTEN",
6279            VmstatCounters::VmstatPgallocDevice => "VMSTAT_PGALLOC_DEVICE",
6280            VmstatCounters::VmstatPgallocDma32 => "VMSTAT_PGALLOC_DMA32",
6281            VmstatCounters::VmstatPgdemoteDirect => "VMSTAT_PGDEMOTE_DIRECT",
6282            VmstatCounters::VmstatPgdemoteKswapd => "VMSTAT_PGDEMOTE_KSWAPD",
6283            VmstatCounters::VmstatPgreuse => "VMSTAT_PGREUSE",
6284            VmstatCounters::VmstatPgscanAnon => "VMSTAT_PGSCAN_ANON",
6285            VmstatCounters::VmstatPgscanFile => "VMSTAT_PGSCAN_FILE",
6286            VmstatCounters::VmstatPgskipDevice => "VMSTAT_PGSKIP_DEVICE",
6287            VmstatCounters::VmstatPgskipDma32 => "VMSTAT_PGSKIP_DMA32",
6288            VmstatCounters::VmstatPgstealAnon => "VMSTAT_PGSTEAL_ANON",
6289            VmstatCounters::VmstatPgstealFile => "VMSTAT_PGSTEAL_FILE",
6290            VmstatCounters::VmstatThpCollapseAlloc => "VMSTAT_THP_COLLAPSE_ALLOC",
6291            VmstatCounters::VmstatThpCollapseAllocFailed => "VMSTAT_THP_COLLAPSE_ALLOC_FAILED",
6292            VmstatCounters::VmstatThpDeferredSplitPage => "VMSTAT_THP_DEFERRED_SPLIT_PAGE",
6293            VmstatCounters::VmstatThpFaultAlloc => "VMSTAT_THP_FAULT_ALLOC",
6294            VmstatCounters::VmstatThpFaultFallback => "VMSTAT_THP_FAULT_FALLBACK",
6295            VmstatCounters::VmstatThpFaultFallbackCharge => "VMSTAT_THP_FAULT_FALLBACK_CHARGE",
6296            VmstatCounters::VmstatThpFileAlloc => "VMSTAT_THP_FILE_ALLOC",
6297            VmstatCounters::VmstatThpFileFallback => "VMSTAT_THP_FILE_FALLBACK",
6298            VmstatCounters::VmstatThpFileFallbackCharge => "VMSTAT_THP_FILE_FALLBACK_CHARGE",
6299            VmstatCounters::VmstatThpFileMapped => "VMSTAT_THP_FILE_MAPPED",
6300            VmstatCounters::VmstatThpMigrationFail => "VMSTAT_THP_MIGRATION_FAIL",
6301            VmstatCounters::VmstatThpMigrationSplit => "VMSTAT_THP_MIGRATION_SPLIT",
6302            VmstatCounters::VmstatThpMigrationSuccess => "VMSTAT_THP_MIGRATION_SUCCESS",
6303            VmstatCounters::VmstatThpScanExceedNonePte => "VMSTAT_THP_SCAN_EXCEED_NONE_PTE",
6304            VmstatCounters::VmstatThpScanExceedSharePte => "VMSTAT_THP_SCAN_EXCEED_SHARE_PTE",
6305            VmstatCounters::VmstatThpScanExceedSwapPte => "VMSTAT_THP_SCAN_EXCEED_SWAP_PTE",
6306            VmstatCounters::VmstatThpSplitPage => "VMSTAT_THP_SPLIT_PAGE",
6307            VmstatCounters::VmstatThpSplitPageFailed => "VMSTAT_THP_SPLIT_PAGE_FAILED",
6308            VmstatCounters::VmstatThpSplitPmd => "VMSTAT_THP_SPLIT_PMD",
6309            VmstatCounters::VmstatThpSwpout => "VMSTAT_THP_SWPOUT",
6310            VmstatCounters::VmstatThpSwpoutFallback => "VMSTAT_THP_SWPOUT_FALLBACK",
6311            VmstatCounters::VmstatThpZeroPageAlloc => "VMSTAT_THP_ZERO_PAGE_ALLOC",
6312            VmstatCounters::VmstatThpZeroPageAllocFailed => "VMSTAT_THP_ZERO_PAGE_ALLOC_FAILED",
6313            VmstatCounters::VmstatVmaLockAbort => "VMSTAT_VMA_LOCK_ABORT",
6314            VmstatCounters::VmstatVmaLockMiss => "VMSTAT_VMA_LOCK_MISS",
6315            VmstatCounters::VmstatVmaLockRetry => "VMSTAT_VMA_LOCK_RETRY",
6316            VmstatCounters::VmstatVmaLockSuccess => "VMSTAT_VMA_LOCK_SUCCESS",
6317            VmstatCounters::VmstatWorkingsetActivateAnon => "VMSTAT_WORKINGSET_ACTIVATE_ANON",
6318            VmstatCounters::VmstatWorkingsetActivateFile => "VMSTAT_WORKINGSET_ACTIVATE_FILE",
6319            VmstatCounters::VmstatWorkingsetNodes => "VMSTAT_WORKINGSET_NODES",
6320            VmstatCounters::VmstatWorkingsetRefaultAnon => "VMSTAT_WORKINGSET_REFAULT_ANON",
6321            VmstatCounters::VmstatWorkingsetRefaultFile => "VMSTAT_WORKINGSET_REFAULT_FILE",
6322            VmstatCounters::VmstatWorkingsetRestoreAnon => "VMSTAT_WORKINGSET_RESTORE_ANON",
6323            VmstatCounters::VmstatWorkingsetRestoreFile => "VMSTAT_WORKINGSET_RESTORE_FILE",
6324        }
6325    }
6326}
6327/// This file defines the configuration for the Linux /proc poller data source,
6328/// which injects counters in the trace.
6329/// Counters that are needed in the trace must be explicitly listed in the
6330/// *_counters fields. This is to avoid spamming the trace with all counters
6331/// at all times.
6332/// The sampling rate is configurable. All polling rates (*_period_ms) need
6333/// to be integer multiples of each other.
6334/// OK:     [10ms, 10ms, 10ms],  [10ms, 20ms, 10ms],  [10ms, 20ms, 60ms]
6335/// Not OK: [10ms, 10ms, 11ms],  [10ms, 15ms, 20ms]
6336#[derive(Clone, PartialEq, ::prost::Message)]
6337pub struct SysStatsConfig {
6338    /// Polls /proc/meminfo every X ms, if non-zero.
6339    /// This is required to be > 10ms to avoid excessive CPU usage.
6340    /// Cost: 0.3 ms \[read\] + 0.07 ms [parse + trace injection]
6341    #[prost(uint32, optional, tag="1")]
6342    pub meminfo_period_ms: ::core::option::Option<u32>,
6343    /// If empty all known counters are reported. Otherwise, only the counters
6344    /// specified below are reported.
6345    #[prost(enumeration="MeminfoCounters", repeated, packed="false", tag="2")]
6346    pub meminfo_counters: ::prost::alloc::vec::Vec<i32>,
6347    /// Polls /proc/vmstat every X ms, if non-zero.
6348    /// This is required to be > 10ms to avoid excessive CPU usage.
6349    /// Cost: 0.2 ms \[read\] + 0.3 ms [parse + trace injection]
6350    #[prost(uint32, optional, tag="3")]
6351    pub vmstat_period_ms: ::core::option::Option<u32>,
6352    #[prost(enumeration="VmstatCounters", repeated, packed="false", tag="4")]
6353    pub vmstat_counters: ::prost::alloc::vec::Vec<i32>,
6354    /// Pols /proc/stat every X ms, if non-zero.
6355    /// This is required to be > 10ms to avoid excessive CPU usage.
6356    /// Cost: 4.1 ms \[read\] + 1.9 ms [parse + trace injection]
6357    #[prost(uint32, optional, tag="5")]
6358    pub stat_period_ms: ::core::option::Option<u32>,
6359    #[prost(enumeration="sys_stats_config::StatCounters", repeated, packed="false", tag="6")]
6360    pub stat_counters: ::prost::alloc::vec::Vec<i32>,
6361    /// Polls /sys/devfreq/*/curfreq every X ms, if non-zero.
6362    /// This is required to be > 10ms to avoid excessive CPU usage.
6363    /// This option can be used to record unchanging values.
6364    /// Updates from frequency changes can come from ftrace/set_clock_rate.
6365    #[prost(uint32, optional, tag="7")]
6366    pub devfreq_period_ms: ::core::option::Option<u32>,
6367    /// Polls /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq every X ms.
6368    /// This is required to be > 10ms to avoid excessive CPU usage.
6369    #[prost(uint32, optional, tag="8")]
6370    pub cpufreq_period_ms: ::core::option::Option<u32>,
6371    /// Polls /proc/buddyinfo every X ms, if non-zero.
6372    /// This is required to be > 10ms to avoid excessive CPU usage.
6373    #[prost(uint32, optional, tag="9")]
6374    pub buddyinfo_period_ms: ::core::option::Option<u32>,
6375    /// Polls /proc/diskstats every X ms, if non-zero.
6376    /// This is required to be > 10ms to avoid excessive CPU usage.
6377    #[prost(uint32, optional, tag="10")]
6378    pub diskstat_period_ms: ::core::option::Option<u32>,
6379    /// Polls /proc/pressure/* every X ms, if non-zero.
6380    /// This is required to be > 10ms to avoid excessive CPU usage.
6381    #[prost(uint32, optional, tag="11")]
6382    pub psi_period_ms: ::core::option::Option<u32>,
6383    /// Polls /sys/class/thermal/* every X ms, if non-zero.
6384    /// This is required to be > 10ms to avoid excessive CPU usage.
6385    #[prost(uint32, optional, tag="12")]
6386    pub thermal_period_ms: ::core::option::Option<u32>,
6387    /// Polls /sys/devices/system/cpu/cpu*/cpuidle/state* every X ms, if non-zero.
6388    /// This is required to be > 10ms to avoid excessive CPU usage.
6389    #[prost(uint32, optional, tag="13")]
6390    pub cpuidle_period_ms: ::core::option::Option<u32>,
6391    /// Polls device-specific GPU frequency info every X ms, if non-zero.
6392    /// This is required to be > 10ms to avoid excessive CPU usage.
6393    #[prost(uint32, optional, tag="14")]
6394    pub gpufreq_period_ms: ::core::option::Option<u32>,
6395}
6396/// Nested message and enum types in `SysStatsConfig`.
6397pub mod sys_stats_config {
6398    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6399    #[repr(i32)]
6400    pub enum StatCounters {
6401        StatUnspecified = 0,
6402        StatCpuTimes = 1,
6403        StatIrqCounts = 2,
6404        StatSoftirqCounts = 3,
6405        StatForkCount = 4,
6406    }
6407    impl StatCounters {
6408        /// String value of the enum field names used in the ProtoBuf definition.
6409        ///
6410        /// The values are not transformed in any way and thus are considered stable
6411        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6412        pub fn as_str_name(&self) -> &'static str {
6413            match self {
6414                StatCounters::StatUnspecified => "STAT_UNSPECIFIED",
6415                StatCounters::StatCpuTimes => "STAT_CPU_TIMES",
6416                StatCounters::StatIrqCounts => "STAT_IRQ_COUNTS",
6417                StatCounters::StatSoftirqCounts => "STAT_SOFTIRQ_COUNTS",
6418                StatCounters::StatForkCount => "STAT_FORK_COUNT",
6419            }
6420        }
6421    }
6422}
6423/// The configuration for a fake producer used in tests.
6424#[derive(Clone, PartialEq, ::prost::Message)]
6425pub struct TestConfig {
6426    /// The number of messages the fake producer should send.
6427    #[prost(uint32, optional, tag="1")]
6428    pub message_count: ::core::option::Option<u32>,
6429    /// The maximum number of messages which should be sent each second.
6430    /// The actual obserced speed may be lower if the producer is unable to
6431    /// work fast enough.
6432    /// If this is zero or unset, the producer will send as fast as possible.
6433    #[prost(uint32, optional, tag="2")]
6434    pub max_messages_per_second: ::core::option::Option<u32>,
6435    /// The seed value for a simple multiplicative congruential pseudo-random
6436    /// number sequence.
6437    #[prost(uint32, optional, tag="3")]
6438    pub seed: ::core::option::Option<u32>,
6439    /// The size of each message in bytes. Should be greater than or equal 5 to
6440    /// account for the number of bytes needed to encode the random number and a
6441    /// null byte for the string.
6442    #[prost(uint32, optional, tag="4")]
6443    pub message_size: ::core::option::Option<u32>,
6444    /// Whether the producer should send a event batch when the data source is
6445    /// is initially registered.
6446    #[prost(bool, optional, tag="5")]
6447    pub send_batch_on_register: ::core::option::Option<bool>,
6448    #[prost(message, optional, tag="6")]
6449    pub dummy_fields: ::core::option::Option<test_config::DummyFields>,
6450}
6451/// Nested message and enum types in `TestConfig`.
6452pub mod test_config {
6453    #[derive(Clone, PartialEq, ::prost::Message)]
6454    pub struct DummyFields {
6455        #[prost(uint32, optional, tag="1")]
6456        pub field_uint32: ::core::option::Option<u32>,
6457        #[prost(int32, optional, tag="2")]
6458        pub field_int32: ::core::option::Option<i32>,
6459        #[prost(uint64, optional, tag="3")]
6460        pub field_uint64: ::core::option::Option<u64>,
6461        #[prost(int64, optional, tag="4")]
6462        pub field_int64: ::core::option::Option<i64>,
6463        #[prost(fixed64, optional, tag="5")]
6464        pub field_fixed64: ::core::option::Option<u64>,
6465        #[prost(sfixed64, optional, tag="6")]
6466        pub field_sfixed64: ::core::option::Option<i64>,
6467        #[prost(fixed32, optional, tag="7")]
6468        pub field_fixed32: ::core::option::Option<u32>,
6469        #[prost(sfixed32, optional, tag="8")]
6470        pub field_sfixed32: ::core::option::Option<i32>,
6471        #[prost(double, optional, tag="9")]
6472        pub field_double: ::core::option::Option<f64>,
6473        #[prost(float, optional, tag="10")]
6474        pub field_float: ::core::option::Option<f32>,
6475        #[prost(sint64, optional, tag="11")]
6476        pub field_sint64: ::core::option::Option<i64>,
6477        #[prost(sint32, optional, tag="12")]
6478        pub field_sint32: ::core::option::Option<i32>,
6479        #[prost(string, optional, tag="13")]
6480        pub field_string: ::core::option::Option<::prost::alloc::string::String>,
6481        #[prost(bytes="vec", optional, tag="14")]
6482        pub field_bytes: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
6483    }
6484}
6485/// The following fields define the set of enabled trace categories. Each list
6486/// item is a glob.
6487///
6488/// To determine if category is enabled, it is checked against the filters in
6489/// the following order:
6490///
6491///    1. Exact matches in enabled categories.
6492///    2. Exact matches in enabled tags.
6493///    3. Exact matches in disabled categories.
6494///    4. Exact matches in disabled tags.
6495///    5. Pattern matches in enabled categories.
6496///    6. Pattern matches in enabled tags.
6497///    7. Pattern matches in disabled categories.
6498///    8. Pattern matches in disabled tags.
6499///
6500/// If none of the steps produced a match:
6501///   - In the C++ SDK (`perfetto::Category`), categories are enabled by
6502///   default.
6503///   - In the C SDK (`PerfettoTeCategory`), categories are disabled by default.
6504///
6505/// Examples:
6506///
6507///   - To enable all non-slow/debug categories:
6508///
6509///        enabled_categories: "*"
6510///
6511///   - To enable specific categories:
6512///
6513///        disabled_categories: "*"
6514///        enabled_categories: "my_category"
6515///        enabled_categories: "my_category2"
6516///
6517///   - To enable only categories with a specific tag:
6518///
6519///        disabled_tags: "*"
6520///        enabled_tags: "my_tag"
6521///
6522#[derive(Clone, PartialEq, ::prost::Message)]
6523pub struct TrackEventConfig {
6524    /// Default: []
6525    #[prost(string, repeated, tag="1")]
6526    pub disabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6527    /// Default: []
6528    #[prost(string, repeated, tag="2")]
6529    pub enabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6530    /// Default: ["slow", "debug"]
6531    #[prost(string, repeated, tag="3")]
6532    pub disabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6533    /// Default: []
6534    #[prost(string, repeated, tag="4")]
6535    pub enabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6536    /// Default: false (i.e. enabled by default)
6537    #[prost(bool, optional, tag="5")]
6538    pub disable_incremental_timestamps: ::core::option::Option<bool>,
6539    /// Allows to specify a custom unit different than the default (ns).
6540    /// Also affects thread timestamps if enable_thread_time_sampling = true.
6541    /// A multiplier of 1000 means that a timestamp = 3 should be interpreted as
6542    /// 3000 ns = 3 us.
6543    /// Default: 1 (if unset, it should be read as 1).
6544    #[prost(uint64, optional, tag="6")]
6545    pub timestamp_unit_multiplier: ::core::option::Option<u64>,
6546    /// Default: false (i.e. debug_annotations is NOT filtered out by default)
6547    /// When true, any debug annotations provided as arguments to the
6548    /// TRACE_EVENT macros are not written into the trace. Typed arguments will
6549    /// still be emitted even if set to true.
6550    #[prost(bool, optional, tag="7")]
6551    pub filter_debug_annotations: ::core::option::Option<bool>,
6552    /// Default: false (i.e. disabled)
6553    /// When true, the SDK samples and emits the current thread time counter value
6554    /// for each event on the current thread's track. This value represents the
6555    /// total CPU time consumed by that thread since its creation.
6556    /// Learn more: "CLOCK_THREAD_CPUTIME_ID" flag at
6557    /// <https://man7.org/linux/man-pages/man3/clock_gettime.3.html>
6558    #[prost(bool, optional, tag="8")]
6559    pub enable_thread_time_sampling: ::core::option::Option<bool>,
6560    /// When enable_thread_time_sampling is true, and this is specified, thread
6561    /// time is sampled only if the elapsed wall time >
6562    /// `thread_time_subsampling_ns`. Otherwise, thread time is considered nil.
6563    /// Effectively, this means thread time will have a leeway of
6564    /// `thread_time_subsampling_ns` and won't be emitted for shorter events.
6565    #[prost(uint64, optional, tag="10")]
6566    pub thread_time_subsampling_ns: ::core::option::Option<u64>,
6567    /// Default: false (i.e. dynamic event names are NOT filtered out by default)
6568    /// When true, event_names wrapped in perfetto::DynamicString will be filtered
6569    /// out.
6570    #[prost(bool, optional, tag="9")]
6571    pub filter_dynamic_event_names: ::core::option::Option<bool>,
6572}
6573/// This data-source does a one-off recording of system information when
6574/// the trace starts.
6575/// Currently this includes:
6576/// - Values of
6577/// /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies This
6578/// datasource has no configuration options at present.
6579#[derive(Clone, PartialEq, ::prost::Message)]
6580pub struct SystemInfoConfig {
6581}
6582#[derive(Clone, PartialEq, ::prost::Message)]
6583pub struct ChromiumHistogramSamplesConfig {
6584    /// List of histograms to record. If no histogram is specified, all histograms
6585    /// are recorded.
6586    #[prost(message, repeated, tag="1")]
6587    pub histograms: ::prost::alloc::vec::Vec<chromium_histogram_samples_config::HistogramSample>,
6588    /// Default: false (i.e. histogram names are NOT filtered out by default)
6589    /// When true, histogram_name will be filtered out.
6590    #[prost(bool, optional, tag="2")]
6591    pub filter_histogram_names: ::core::option::Option<bool>,
6592}
6593/// Nested message and enum types in `ChromiumHistogramSamplesConfig`.
6594pub mod chromium_histogram_samples_config {
6595    /// Records when a value within the specified bounds [min_value, max_value] is
6596    /// emitted into a Chrome histogram.
6597    #[derive(Clone, PartialEq, ::prost::Message)]
6598    pub struct HistogramSample {
6599        #[prost(string, optional, tag="1")]
6600        pub histogram_name: ::core::option::Option<::prost::alloc::string::String>,
6601        #[prost(int64, optional, tag="2")]
6602        pub min_value: ::core::option::Option<i64>,
6603        #[prost(int64, optional, tag="3")]
6604        pub max_value: ::core::option::Option<i64>,
6605    }
6606}
6607/// QnxConfig is used with trace_qnx_probes build from
6608/// <https://github.com/qnx-ports/perfetto>
6609#[derive(Clone, PartialEq, ::prost::Message)]
6610pub struct QnxConfig {
6611    /// The number of buffers that tracelog will init for the QNX trace.
6612    #[prost(uint32, optional, tag="1")]
6613    pub qnx_kernel_buffers: ::core::option::Option<u32>,
6614    /// The number of kernel buffers that tracelog will init for the QNX trace.
6615    #[prost(uint32, optional, tag="2")]
6616    pub qnx_kernel_kbuffers: ::core::option::Option<u32>,
6617    /// Flag indicating whether the QNX kernel tracing should produce wide
6618    /// events which contain additional data or fast events which are most
6619    /// concise. In fast mode we lose the priority information
6620    #[prost(bool, optional, tag="3")]
6621    pub qnx_kernel_wide_events: ::core::option::Option<bool>,
6622    /// The number of pages initialized by default the parser's page cache.
6623    #[prost(uint32, optional, tag="4")]
6624    pub qnx_cache_pages: ::core::option::Option<u32>,
6625    /// The max pages the page cache should allocate (must be at least as big)
6626    /// as the qnx_cache_pages value. Using -1 will allow the cache to grow
6627    /// unbounded. The cache will prefer to re-use existing pages so growth will
6628    /// only happen when needed (when parser is not keeping up).
6629    #[prost(int32, optional, tag="5")]
6630    pub qnx_cache_max_pages: ::core::option::Option<i32>,
6631    /// The initial size of the the buffer used to hold the trace header values
6632    /// this dynamic buffer will grow as needed but reallocs can be avoided by
6633    /// selecting an initial size large enough to hold all the initial header
6634    /// data.
6635    #[prost(uint32, optional, tag="6")]
6636    pub qnx_trace_buffer_init_bytes: ::core::option::Option<u32>,
6637}
6638/// The configuration that is passed to each data source when starting tracing.
6639/// Next id: 140
6640#[derive(Clone, PartialEq, ::prost::Message)]
6641pub struct DataSourceConfig {
6642    /// Data source unique name, e.g., "linux.ftrace". This must match
6643    /// the name passed by the data source when it registers (see
6644    /// RegisterDataSource()).
6645    #[prost(string, optional, tag="1")]
6646    pub name: ::core::option::Option<::prost::alloc::string::String>,
6647    /// The index of the logging buffer where TracePacket(s) will be stored.
6648    /// This field is quite subtle as it has a double semantic:
6649    /// 1) When the config is passed, this field is a 0-based index relative to the
6650    ///     buffer array in the TraceConfig and defines the mapping between data
6651    ///     sources and config. From v54 this is optional because the user can
6652    ///     instead use target_buffer_name.
6653    /// 2) When the TracingService issues a SetupDataSource/StartDataSource to the
6654    ///     producer, it overwrites this field with the global buffer index (which
6655    ///     depends on other tracing sessions active). This tells the producer which
6656    ///     buffer id should be passed to CreateTraceWriter. In this case, the trace
6657    ///     service always sets the resolved global id, even when using
6658    ///     `target_buffer_name`.
6659    /// In hindsight we should have used two different fields given even in v0 they
6660    /// had a different semantic. But now it's too late as this would be a major
6661    /// protocol breaking change.
6662    #[prost(uint32, optional, tag="2")]
6663    pub target_buffer: ::core::option::Option<u32>,
6664    /// Alternative to |target_buffer|. References a buffer by name (as specified
6665    /// in TraceConfig.BufferConfig.name) rather than by index. This is more
6666    /// readable and less error-prone than using buffer indices.
6667    /// If both |target_buffer| and |target_buffer_name| are specified, they must
6668    /// refer to the same buffer, otherwise the service will reject the config.
6669    /// Using both fields allows configs to work with both old and new versions
6670    /// of the tracing service. Introduced in v54.
6671    #[prost(string, optional, tag="11")]
6672    pub target_buffer_name: ::core::option::Option<::prost::alloc::string::String>,
6673    /// Set by the service to indicate the duration of the trace.
6674    /// DO NOT SET in consumer as this will be overridden by the service.
6675    #[prost(uint32, optional, tag="3")]
6676    pub trace_duration_ms: ::core::option::Option<u32>,
6677    /// If true, |trace_duration_ms| should count also time in suspend. This
6678    /// is propagated from TraceConfig.prefer_suspend_clock_for_duration.
6679    #[prost(bool, optional, tag="122")]
6680    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
6681    /// Set by the service to indicate how long it waits after StopDataSource.
6682    /// DO NOT SET in consumer as this will be overridden by the service.
6683    #[prost(uint32, optional, tag="7")]
6684    pub stop_timeout_ms: ::core::option::Option<u32>,
6685    /// Set by the service to indicate whether this tracing session has extra
6686    /// guardrails.
6687    /// DO NOT SET in consumer as this will be overridden by the service.
6688    #[prost(bool, optional, tag="6")]
6689    pub enable_extra_guardrails: ::core::option::Option<bool>,
6690    /// Set by the service to indicate which user initiated this trace.
6691    /// DO NOT SET in consumer as this will be overridden by the service.
6692    #[prost(enumeration="data_source_config::SessionInitiator", optional, tag="8")]
6693    pub session_initiator: ::core::option::Option<i32>,
6694    /// Set by the service to indicate which tracing session the data source
6695    /// belongs to. The intended use case for this is checking if two data sources,
6696    /// one of which produces metadata for the other one, belong to the same trace
6697    /// session and hence should be linked together.
6698    /// This field was introduced in Aug 2018 after Android P.
6699    /// DO NOT SET in consumer as this will be overridden by the service.
6700    #[prost(uint64, optional, tag="4")]
6701    pub tracing_session_id: ::core::option::Option<u64>,
6702    /// How to behave when the producer runs out of space in the shared memory
6703    /// buffer. This is only honored by some data sources (in the SDK, the data
6704    /// sources registered with a configurable buffer exhausted policy).
6705    #[prost(enumeration="data_source_config::BufferExhaustedPolicy", optional, tag="9")]
6706    pub buffer_exhausted_policy: ::core::option::Option<i32>,
6707    #[prost(message, optional, tag="10")]
6708    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
6709    // If specified, the data source requires the tracing service to process
6710    // overwritten packets (patches) using a ProtoVM instance with this config.
6711    // The ProtoVM program is specified at data source registration time through
6712    // the descriptor.
6713
6714    /// TODO(primiano): today when we enable a protovm_config, we actually accept
6715    /// that if N producers advertise M different versions of the same program we
6716    /// will create M instances of that program.
6717    /// To overcome this, we could move the program to the TraceConfig. But doing
6718    /// so would bloat the trace config size too big and create problems to statsd.
6719    /// Once the config store (b/482305876) exists we should move protovm programs
6720    /// onto that.
6721    #[prost(message, optional, tag="12")]
6722    pub protovm_config: ::core::option::Option<ProtoVmConfig>,
6723    // Keep the lower IDs (up to 99) for fields that are *not* specific to
6724    // data-sources and needs to be processed by the traced daemon.
6725
6726    // All data source config fields must be marked as \[lazy=true\]. This prevents
6727    // the proto-to-cpp generator from recursing into those when generating the
6728    // cpp classes and polluting tracing/core with data-source-specific classes.
6729    // Instead they are treated as opaque strings containing raw proto bytes.
6730
6731    /// Data source name: linux.ftrace
6732    #[prost(message, optional, tag="100")]
6733    pub ftrace_config: ::core::option::Option<FtraceConfig>,
6734    /// Data source name: linux.inode_file_map
6735    #[prost(message, optional, tag="102")]
6736    pub inode_file_config: ::core::option::Option<InodeFileConfig>,
6737    /// Data source name: linux.process_stats
6738    #[prost(message, optional, tag="103")]
6739    pub process_stats_config: ::core::option::Option<ProcessStatsConfig>,
6740    /// Data source name: linux.sys_stats
6741    #[prost(message, optional, tag="104")]
6742    pub sys_stats_config: ::core::option::Option<SysStatsConfig>,
6743    /// Data source name: android.heapprofd
6744    /// Introduced in Android 10.
6745    #[prost(message, optional, tag="105")]
6746    pub heapprofd_config: ::core::option::Option<HeapprofdConfig>,
6747    /// Data source name: android.java_hprof
6748    /// Introduced in Android 11.
6749    #[prost(message, optional, tag="110")]
6750    pub java_hprof_config: ::core::option::Option<JavaHprofConfig>,
6751    /// Data source name: android.power
6752    #[prost(message, optional, tag="106")]
6753    pub android_power_config: ::core::option::Option<AndroidPowerConfig>,
6754    /// Data source name: android.log
6755    #[prost(message, optional, tag="107")]
6756    pub android_log_config: ::core::option::Option<AndroidLogConfig>,
6757    /// Data source name: gpu.counters
6758    #[prost(message, optional, tag="108")]
6759    pub gpu_counter_config: ::core::option::Option<GpuCounterConfig>,
6760    /// Data source name: android.game_interventions
6761    #[prost(message, optional, tag="116")]
6762    pub android_game_intervention_list_config: ::core::option::Option<AndroidGameInterventionListConfig>,
6763    /// Data source name: android.packages_list
6764    #[prost(message, optional, tag="109")]
6765    pub packages_list_config: ::core::option::Option<PackagesListConfig>,
6766    /// Data source name: linux.perf
6767    #[prost(message, optional, tag="111")]
6768    pub perf_event_config: ::core::option::Option<PerfEventConfig>,
6769    /// Data source name: vulkan.memory_tracker
6770    #[prost(message, optional, tag="112")]
6771    pub vulkan_memory_config: ::core::option::Option<VulkanMemoryConfig>,
6772    /// Data source name: track_event
6773    #[prost(message, optional, tag="113")]
6774    pub track_event_config: ::core::option::Option<TrackEventConfig>,
6775    /// Data source name: android.polled_state
6776    #[prost(message, optional, tag="114")]
6777    pub android_polled_state_config: ::core::option::Option<AndroidPolledStateConfig>,
6778    /// Data source name: android.system_property
6779    #[prost(message, optional, tag="118")]
6780    pub android_system_property_config: ::core::option::Option<AndroidSystemPropertyConfig>,
6781    /// Data source name: android.statsd
6782    #[prost(message, optional, tag="117")]
6783    pub statsd_tracing_config: ::core::option::Option<StatsdTracingConfig>,
6784    /// Data source name: linux.system_info
6785    #[prost(message, optional, tag="119")]
6786    pub system_info_config: ::core::option::Option<SystemInfoConfig>,
6787    /// Data source name: linux.frozen_ftrace
6788    #[prost(message, optional, tag="136")]
6789    pub frozen_ftrace_config: ::core::option::Option<FrozenFtraceConfig>,
6790    /// Chrome is special as it doesn't use the perfetto IPC layer. We want to
6791    /// avoid proto serialization and de-serialization there because that would
6792    /// just add extra hops on top of the Mojo ser/des. Instead we auto-generate a
6793    /// C++ class for it so it can pass around plain C++ objets.
6794    #[prost(message, optional, tag="101")]
6795    pub chrome_config: ::core::option::Option<ChromeConfig>,
6796    /// Data source name: code.v8.dev
6797    #[prost(message, optional, tag="127")]
6798    pub v8_config: ::core::option::Option<V8Config>,
6799    /// If an interceptor is specified here, packets for this data source will be
6800    /// rerouted to the interceptor instead of the main trace buffer. This can be
6801    /// used, for example, to write trace data into ETW or for logging trace points
6802    /// to the console.
6803    ///
6804    /// Note that interceptors are only supported by data sources registered
6805    /// through the Perfetto SDK API. Data sources that don't use that API (e.g.,
6806    /// traced_probes) may not support interception.
6807    #[prost(message, optional, tag="115")]
6808    pub interceptor_config: ::core::option::Option<InterceptorConfig>,
6809    /// Data source name: android.network_packets.
6810    /// Introduced in Android 14 (U).
6811    #[prost(message, optional, tag="120")]
6812    pub network_packet_trace_config: ::core::option::Option<NetworkPacketTraceConfig>,
6813    /// Data source name: android.surfaceflinger.layers
6814    #[prost(message, optional, tag="121")]
6815    pub surfaceflinger_layers_config: ::core::option::Option<SurfaceFlingerLayersConfig>,
6816    /// Data source name: android.surfaceflinger.transactions
6817    #[prost(message, optional, tag="123")]
6818    pub surfaceflinger_transactions_config: ::core::option::Option<SurfaceFlingerTransactionsConfig>,
6819    /// Data source name: android.sdk_sysprop_guard
6820    /// Introduced in Android 14 (U) QPR1.
6821    #[prost(message, optional, tag="124")]
6822    pub android_sdk_sysprop_guard_config: ::core::option::Option<AndroidSdkSyspropGuardConfig>,
6823    /// Data source name: windows.etw
6824    #[prost(message, optional, tag="125")]
6825    pub etw_config: ::core::option::Option<EtwConfig>,
6826    /// Data source name: android.protolog
6827    #[prost(message, optional, tag="126")]
6828    pub protolog_config: ::core::option::Option<ProtoLogConfig>,
6829    /// Data source name: android.input.inputevent
6830    #[prost(message, optional, tag="128")]
6831    pub android_input_event_config: ::core::option::Option<AndroidInputEventConfig>,
6832    /// Data source name: android.pixel.modem
6833    #[prost(message, optional, tag="129")]
6834    pub pixel_modem_config: ::core::option::Option<PixelModemConfig>,
6835    /// Data source name: android.windowmanager
6836    #[prost(message, optional, tag="130")]
6837    pub windowmanager_config: ::core::option::Option<WindowManagerConfig>,
6838    /// Data source name: org.chromium.system_metrics
6839    #[prost(message, optional, tag="131")]
6840    pub chromium_system_metrics: ::core::option::Option<ChromiumSystemMetricsConfig>,
6841    /// Data source name: android.kernel_wakelocks
6842    #[prost(message, optional, tag="132")]
6843    pub kernel_wakelocks_config: ::core::option::Option<KernelWakelocksConfig>,
6844    /// Data source name: gpu.renderstages
6845    #[prost(message, optional, tag="133")]
6846    pub gpu_renderstages_config: ::core::option::Option<GpuRenderStagesConfig>,
6847    /// Data source name: org.chromium.histogram_samples
6848    #[prost(message, optional, tag="134")]
6849    pub chromium_histogram_samples: ::core::option::Option<ChromiumHistogramSamplesConfig>,
6850    /// Data source name: android.app_wakelocks
6851    #[prost(message, optional, tag="135")]
6852    pub app_wakelocks_config: ::core::option::Option<AppWakelocksConfig>,
6853    /// Data source name: android.cpu_per_uid
6854    #[prost(message, optional, tag="137")]
6855    pub cpu_per_uid_config: ::core::option::Option<CpuPerUidConfig>,
6856    /// Data source name: android.user_list
6857    #[prost(message, optional, tag="138")]
6858    pub user_list_config: ::core::option::Option<AndroidUserListConfig>,
6859    /// Data source name: android.inputmethod
6860    #[prost(message, optional, tag="139")]
6861    pub inputmethod_config: ::core::option::Option<InputMethodConfig>,
6862    /// Data source name: qnx.kernel
6863    #[prost(message, optional, tag="150")]
6864    pub qnx_config: ::core::option::Option<QnxConfig>,
6865    /// This is a fallback mechanism to send a free-form text config to the
6866    /// producer. In theory this should never be needed. All the code that
6867    /// is part of the platform (i.e. traced service) is supposed to *not* truncate
6868    /// the trace config proto and propagate unknown fields. However, if anything
6869    /// in the pipeline (client or backend) ends up breaking this forward compat
6870    /// plan, this field will become the escape hatch to allow future data sources
6871    /// to get some meaningful configuration.
6872    #[prost(string, optional, tag="1000")]
6873    pub legacy_config: ::core::option::Option<::prost::alloc::string::String>,
6874    /// This field is only used for testing.
6875    #[prost(message, optional, tag="1001")]
6876    pub for_testing: ::core::option::Option<TestConfig>,
6877}
6878/// Nested message and enum types in `DataSourceConfig`.
6879pub mod data_source_config {
6880    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6881    #[repr(i32)]
6882    pub enum SessionInitiator {
6883        Unspecified = 0,
6884        /// This trace was initiated from a trusted system app has DUMP and
6885        /// USAGE_STATS permission. This system app is expected to not expose the
6886        /// trace to the user of the device.
6887        /// This is determined by checking the UID initiating the trace.
6888        TrustedSystem = 1,
6889    }
6890    impl SessionInitiator {
6891        /// String value of the enum field names used in the ProtoBuf definition.
6892        ///
6893        /// The values are not transformed in any way and thus are considered stable
6894        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6895        pub fn as_str_name(&self) -> &'static str {
6896            match self {
6897                SessionInitiator::Unspecified => "SESSION_INITIATOR_UNSPECIFIED",
6898                SessionInitiator::TrustedSystem => "SESSION_INITIATOR_TRUSTED_SYSTEM",
6899            }
6900        }
6901    }
6902    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6903    #[repr(i32)]
6904    pub enum BufferExhaustedPolicy {
6905        /// The data source will use its default buffer exhausted policy, specified
6906        /// by the code when the data source is registered.
6907        BufferExhaustedUnspecified = 0,
6908        /// The data source will drop packets when there's no space in the shared
6909        /// memory buffer.
6910        BufferExhaustedDrop = 1,
6911        /// The data source will wait when there's no space in the shared memory
6912        /// buffer. If there's still not space, after a few seconds, the whole
6913        /// producer process will be aborted.
6914        BufferExhaustedStallThenAbort = 2,
6915        /// The data source will wait when there's no space in the shared memory
6916        /// buffer.  If there's still not space, after a few seconds, the data source
6917        /// will drop packets.
6918        BufferExhaustedStallThenDrop = 3,
6919    }
6920    impl BufferExhaustedPolicy {
6921        /// String value of the enum field names used in the ProtoBuf definition.
6922        ///
6923        /// The values are not transformed in any way and thus are considered stable
6924        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6925        pub fn as_str_name(&self) -> &'static str {
6926            match self {
6927                BufferExhaustedPolicy::BufferExhaustedUnspecified => "BUFFER_EXHAUSTED_UNSPECIFIED",
6928                BufferExhaustedPolicy::BufferExhaustedDrop => "BUFFER_EXHAUSTED_DROP",
6929                BufferExhaustedPolicy::BufferExhaustedStallThenAbort => "BUFFER_EXHAUSTED_STALL_THEN_ABORT",
6930                BufferExhaustedPolicy::BufferExhaustedStallThenDrop => "BUFFER_EXHAUSTED_STALL_THEN_DROP",
6931            }
6932        }
6933    }
6934}
6935/// The overall config that is used when starting a new tracing session through
6936/// ProducerPort::StartTracing().
6937/// It contains the general config for the logging buffer(s) and the configs for
6938/// all the data source being enabled.
6939///
6940/// Next id: 47.
6941#[derive(Clone, PartialEq, ::prost::Message)]
6942pub struct TraceConfig {
6943    #[prost(message, repeated, tag="1")]
6944    pub buffers: ::prost::alloc::vec::Vec<trace_config::BufferConfig>,
6945    #[prost(message, repeated, tag="2")]
6946    pub data_sources: ::prost::alloc::vec::Vec<trace_config::DataSource>,
6947    #[prost(message, optional, tag="20")]
6948    pub builtin_data_sources: ::core::option::Option<trace_config::BuiltinDataSource>,
6949    /// If specified, the trace will be stopped |duration_ms| after starting.
6950    /// This does *not* count the time the system is suspended, so we will run
6951    /// for duration_ms of system activity, not wall time.
6952    ///
6953    /// However in case of traces with triggers, see
6954    /// TriggerConfig.trigger_timeout_ms instead.
6955    #[prost(uint32, optional, tag="3")]
6956    pub duration_ms: ::core::option::Option<u32>,
6957    /// If true, tries to use CLOCK_BOOTTIME for duration_ms rather than
6958    /// CLOCK_MONOTONIC (which doesn't count time in suspend). Supported only on
6959    /// Linux/Android, no-op on other platforms. This is used when dealing with
6960    /// long (e.g. 24h) traces, where suspend can inflate them to weeks of
6961    /// wall-time, making them more likely to hit device reboots (and hence loss).
6962    /// This option also changes consistently the semantic of
6963    /// TriggerConfig.stop_delay_ms.
6964    #[prost(bool, optional, tag="36")]
6965    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
6966    /// This is set when --dropbox is passed to the Perfetto command line client
6967    /// and enables guardrails that limit resource usage for traces requested
6968    /// by statsd.
6969    #[prost(bool, optional, tag="4")]
6970    pub enable_extra_guardrails: ::core::option::Option<bool>,
6971    /// Reject producers that are not running under the same UID as the tracing
6972    /// service.
6973    #[prost(enumeration="trace_config::LockdownModeOperation", optional, tag="5")]
6974    pub lockdown_mode: ::core::option::Option<i32>,
6975    #[prost(message, repeated, tag="6")]
6976    pub producers: ::prost::alloc::vec::Vec<trace_config::ProducerConfig>,
6977    /// Statsd-specific metadata.
6978    #[prost(message, optional, tag="7")]
6979    pub statsd_metadata: ::core::option::Option<trace_config::StatsdMetadata>,
6980    /// When true && |output_path| is empty, the EnableTracing() request must
6981    /// provide a file descriptor. The service will then periodically read packets
6982    /// out of the trace buffer and store it into the passed file.
6983    /// If |output_path| is not empty no fd should be passed, the service
6984    /// will create a new file and write into that (see comment below).
6985    #[prost(bool, optional, tag="8")]
6986    pub write_into_file: ::core::option::Option<bool>,
6987    /// This must point to a non-existing file. If the file exists the service
6988    /// will NOT overwrite and will fail instead as a security precaution.
6989    /// On Android, when this is used with the system traced, the path must be
6990    /// within /data/misc/perfetto-traces/ or the trace will fail.
6991    /// This option has been introduced in Android R. Before R write_into_file
6992    /// can be used only with the "pass a file descriptor over IPC" mode.
6993    #[prost(string, optional, tag="29")]
6994    pub output_path: ::core::option::Option<::prost::alloc::string::String>,
6995    /// Optional. If non-zero tunes the write period. A min value of 100ms is
6996    /// enforced (i.e. smaller values are ignored).
6997    #[prost(uint32, optional, tag="9")]
6998    pub file_write_period_ms: ::core::option::Option<u32>,
6999    /// Optional. When non zero the periodic write stops once at most X bytes
7000    /// have been written into the file. Tracing is disabled when this limit is
7001    /// reached, even if |duration_ms| has not been reached yet.
7002    #[prost(uint64, optional, tag="10")]
7003    pub max_file_size_bytes: ::core::option::Option<u64>,
7004    #[prost(message, optional, tag="11")]
7005    pub guardrail_overrides: ::core::option::Option<trace_config::GuardrailOverrides>,
7006    /// When true, data sources are not started until an explicit call to
7007    /// StartTracing() on the consumer port. This is to support early
7008    /// initialization and fast trace triggering. This can be used only when the
7009    /// Consumer explicitly triggers the StartTracing() method.
7010    /// This should not be used in a remote trace config via statsd, doing so will
7011    /// result in a hung trace session.
7012    #[prost(bool, optional, tag="12")]
7013    pub deferred_start: ::core::option::Option<bool>,
7014    /// When set, it periodically issues a Flush() to all data source, forcing them
7015    /// to commit their data into the tracing service. This can be used for
7016    /// quasi-real-time streaming mode and to guarantee some partial ordering of
7017    /// events in the trace in windows of X ms.
7018    ///
7019    /// Warning: Perfetto automatically handles periodic flushing so in most
7020    /// scenarios setting this field is not needed. High frequency flushing can
7021    /// significantly impact performance.
7022    #[prost(uint32, optional, tag="13")]
7023    pub flush_period_ms: ::core::option::Option<u32>,
7024    /// Wait for this long for producers to acknowledge flush requests.
7025    /// Default 5s.
7026    #[prost(uint32, optional, tag="14")]
7027    pub flush_timeout_ms: ::core::option::Option<u32>,
7028    /// Wait for this long for producers to acknowledge stop requests.
7029    /// Default 5s.
7030    #[prost(uint32, optional, tag="23")]
7031    pub data_source_stop_timeout_ms: ::core::option::Option<u32>,
7032    /// Android-only. If set, sends an intent to the Traceur system app when the
7033    /// trace ends to notify it about the trace readiness.
7034    #[prost(bool, optional, tag="16")]
7035    pub notify_traceur: ::core::option::Option<bool>,
7036    /// This field was introduced in Android S.
7037    /// Android-only. If set to a value > 0, marks the trace session as a candidate
7038    /// for being attached to a bugreport. This field effectively acts as a z-index
7039    /// for bugreports. When Android's dumpstate runs perfetto
7040    /// --save-for-bugreport, traced will pick the tracing session with the highest
7041    /// score (score <= 0 is ignored) and:
7042    /// On Android S, T:  will steal its contents, save the trace into
7043    ///      a known path and stop prematurely.
7044    /// On Android U+: will create a read-only snapshot and save that into a known
7045    ///      path, without stoppin the original tracing session.
7046    /// When this field is set the tracing session becomes eligible to be cloned
7047    /// by other UIDs.
7048    #[prost(int32, optional, tag="30")]
7049    pub bugreport_score: ::core::option::Option<i32>,
7050    /// When set, defines name of the file that will be saved under
7051    /// /data/misc/perfetto-traces/bugreport/ when using --save-all-for-bugreport.
7052    /// If omitted, traces will be named systrace.pftrace, systrace_1.pftrace, etc,
7053    /// starting from the highest `bugreport_score`.
7054    /// Introduced in v42 / Android V.
7055    #[prost(string, optional, tag="38")]
7056    pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
7057    #[prost(message, optional, tag="17")]
7058    pub trigger_config: ::core::option::Option<trace_config::TriggerConfig>,
7059    /// When this is non-empty the perfetto command line tool will ignore the rest
7060    /// of this TraceConfig and instead connect to the perfetto service as a
7061    /// producer and send these triggers, potentially stopping or starting traces
7062    /// that were previous configured to use a TriggerConfig.
7063    #[prost(string, repeated, tag="18")]
7064    pub activate_triggers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7065    #[prost(message, optional, tag="21")]
7066    pub incremental_state_config: ::core::option::Option<trace_config::IncrementalStateConfig>,
7067    /// No longer needed as we unconditionally allow tracing on user builds.
7068    #[deprecated]
7069    #[prost(bool, optional, tag="19")]
7070    pub allow_user_build_tracing: ::core::option::Option<bool>,
7071    /// If set the tracing service will ensure there is at most one tracing session
7072    /// with this key.
7073    #[prost(string, optional, tag="22")]
7074    pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
7075    #[prost(enumeration="trace_config::CompressionType", optional, tag="24")]
7076    pub compression_type: ::core::option::Option<i32>,
7077    #[prost(message, optional, tag="25")]
7078    pub incident_report_config: ::core::option::Option<trace_config::IncidentReportConfig>,
7079    /// Android-only. Not for general use. If specified, sets the logging to statsd
7080    /// of guardrails and checkpoints in the tracing service. perfetto_cmd sets
7081    /// this to enabled (if not explicitly set in the config) when specifying
7082    /// --upload.
7083    #[prost(enumeration="trace_config::StatsdLogging", optional, tag="31")]
7084    pub statsd_logging: ::core::option::Option<i32>,
7085    /// An identifier clients can use to tie this trace to other logging.
7086    /// DEPRECATED as per v32. See TracePacket.trace_uuid for the authoritative
7087    /// Trace UUID. If this field is set, the tracing service will respect the
7088    /// requested UUID (i.e. TracePacket.trace_uuid == this field) but only if
7089    /// gap-less snapshotting is not used.
7090    #[deprecated]
7091    #[prost(int64, optional, tag="27")]
7092    pub trace_uuid_msb: ::core::option::Option<i64>,
7093    #[deprecated]
7094    #[prost(int64, optional, tag="28")]
7095    pub trace_uuid_lsb: ::core::option::Option<i64>,
7096    #[prost(message, optional, tag="33")]
7097    pub trace_filter: ::core::option::Option<trace_config::TraceFilter>,
7098    #[prost(message, optional, tag="34")]
7099    pub android_report_config: ::core::option::Option<trace_config::AndroidReportConfig>,
7100    #[prost(message, optional, tag="35")]
7101    pub cmd_trace_start_delay: ::core::option::Option<trace_config::CmdTraceStartDelay>,
7102    #[prost(message, repeated, tag="39")]
7103    pub session_semaphores: ::prost::alloc::vec::Vec<trace_config::SessionSemaphore>,
7104    /// Priority boost to be applied to the traced process, when the session is
7105    /// running.
7106    #[prost(message, optional, tag="40")]
7107    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
7108    /// When set to a value > 0, this tracing session will be started in
7109    /// "exclusive mode". This has the following semantics:
7110    /// - It can only be set by shell or root users.
7111    /// - A new exclusive session will only be started if its priority is strictly
7112    ///    higher than any other active tracing session.
7113    /// - If a new exclusive session is started, all other existing tracing
7114    ///    sessions (exclusive or not) are aborted.
7115    /// - While an exclusive session is active, any new non-exclusive session (or
7116    ///    any exclusive session with a lower or equal priority) will be rejected.
7117    ///
7118    /// Introduced in: perfetto v52.
7119    /// Supported on: Android 25Q3+.
7120    #[prost(uint32, optional, tag="41")]
7121    pub exclusive_prio: ::core::option::Option<u32>,
7122    /// Configures how the service should handle flushing data from producers
7123    /// before periodically writing the trace into the output file.
7124    /// Only applicable when |write_into_file| is true.
7125    ///
7126    /// By default, if |write_into_file| is set, the service periodically issues
7127    /// a Flush() to all data sources before writing buffers into the file.
7128    /// This ensures the file always contains the latest available data.
7129    ///
7130    /// Introduced in: perfetto v54.
7131    /// Supported on: Android 26Q1+.
7132    #[prost(enumeration="trace_config::WriteFlushMode", optional, tag="44")]
7133    pub write_flush_mode: ::core::option::Option<i32>,
7134    /// Whether to sync the output file to storage after each periodic write pass.
7135    /// Only applicable when |write_into_file| is true.
7136    ///
7137    /// By default, no fflush is invoked. FFLUSH_ENABLED must be set to explicitly
7138    /// sync to storage on every write.
7139    ///
7140    /// Introduced in: perfetto v54.
7141    /// Supported on: Android 26Q1+.
7142    #[prost(enumeration="trace_config::FFlushMode", optional, tag="45")]
7143    pub fflush_post_write: ::core::option::Option<i32>,
7144    /// When true, data sources in remote producers (machines connected via
7145    /// traced_relay) will be matched by default. When false (the default), data
7146    /// sources only match the host machine. In either case, an explicit
7147    /// |DataSource.machine_name_filter| takes priority.
7148    ///
7149    /// NB: perfetto versions before v54 do not have this option and match across
7150    /// machines by default. To be compatible across this version boundary, either
7151    /// set this field to true, or set an explicit machine_name_filter on all data
7152    /// sources.
7153    ///
7154    /// Introduced in: perfetto v54.
7155    #[prost(bool, optional, tag="43")]
7156    pub trace_all_machines: ::core::option::Option<bool>,
7157    #[prost(message, repeated, tag="46")]
7158    pub notes: ::prost::alloc::vec::Vec<trace_config::Note>,
7159}
7160/// Nested message and enum types in `TraceConfig`.
7161pub mod trace_config {
7162    #[derive(Clone, PartialEq, ::prost::Message)]
7163    pub struct BufferConfig {
7164        #[prost(uint32, optional, tag="1")]
7165        pub size_kb: ::core::option::Option<u32>,
7166        #[prost(enumeration="buffer_config::FillPolicy", optional, tag="4")]
7167        pub fill_policy: ::core::option::Option<i32>,
7168        /// When true the buffer is moved (rather than copied) onto the cloned
7169        /// session, and an empty buffer of the same size is allocated in the source
7170        /// tracing session. This feature will likely get deprecated in the future.
7171        /// It been introduced mainly to support the surfaceflinger snapshot dump
7172        /// for bugreports, where SF can dumps O(400MB) into the bugreport trace. In
7173        /// that case we don't want to retain another in-memory copy of the buffer.
7174        #[prost(bool, optional, tag="5")]
7175        pub transfer_on_clone: ::core::option::Option<bool>,
7176        /// Used in conjunction with transfer_on_clone. When true the buffer is
7177        /// cleared before issuing the Flush(reason=kTraceClone). This is to ensure
7178        /// that if the data source took too long to write the data in a previous
7179        /// clone-related flush, we don't end up with a mixture of leftovers from
7180        /// the previous write and new data.
7181        #[prost(bool, optional, tag="6")]
7182        pub clear_before_clone: ::core::option::Option<bool>,
7183        /// Optional name for this buffer. If set, data sources can reference this
7184        /// buffer by name using |target_buffer_name| in DataSourceConfig instead of
7185        /// using the buffer index. Buffer names must be unique within a tracing
7186        /// session. This provides a more human-readable and less error-prone way to
7187        /// configure which buffer a data source writes to.
7188        #[prost(string, optional, tag="7")]
7189        pub name: ::core::option::Option<::prost::alloc::string::String>,
7190        #[prost(enumeration="buffer_config::ExperimentalMode", optional, tag="8")]
7191        pub experimental_mode: ::core::option::Option<i32>,
7192    }
7193    /// Nested message and enum types in `BufferConfig`.
7194    pub mod buffer_config {
7195        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7196        #[repr(i32)]
7197        pub enum FillPolicy {
7198            Unspecified = 0,
7199            /// Default behavior. The buffer operates as a conventional ring buffer.
7200            /// If the writer is faster than the reader (or if the reader reads only
7201            /// after tracing is stopped) newly written packets will overwrite old
7202            /// packets.
7203            RingBuffer = 1,
7204            /// Behaves like RING_BUFFER as long as there is space in the buffer or
7205            /// the reader catches up with the writer. As soon as the writer hits
7206            /// an unread chunk, it stops accepting new data in the buffer.
7207            Discard = 2,
7208        }
7209        impl FillPolicy {
7210            /// String value of the enum field names used in the ProtoBuf definition.
7211            ///
7212            /// The values are not transformed in any way and thus are considered stable
7213            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7214            pub fn as_str_name(&self) -> &'static str {
7215                match self {
7216                    FillPolicy::Unspecified => "UNSPECIFIED",
7217                    FillPolicy::RingBuffer => "RING_BUFFER",
7218                    FillPolicy::Discard => "DISCARD",
7219                }
7220            }
7221        }
7222        /// When true, uses the experimental TraceBufferV2 implementation for this
7223        /// buffer. This is for testing purposes only and may be removed in future
7224        /// versions.
7225        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7226        #[repr(i32)]
7227        pub enum ExperimentalMode {
7228            /// Use the default V1 implementation.
7229            ModeUnspecified = 0,
7230            /// Use TraceBufferV2.
7231            TraceBufferV2 = 1,
7232            /// Use both V1 and V2 in shadow mode. Data is written to both buffers,
7233            /// but only V1 data is returned. Comparison stats are reported to
7234            /// validate V2 returns equivalent data.
7235            TraceBufferV2ShadowMode = 2,
7236        }
7237        impl ExperimentalMode {
7238            /// String value of the enum field names used in the ProtoBuf definition.
7239            ///
7240            /// The values are not transformed in any way and thus are considered stable
7241            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7242            pub fn as_str_name(&self) -> &'static str {
7243                match self {
7244                    ExperimentalMode::ModeUnspecified => "MODE_UNSPECIFIED",
7245                    ExperimentalMode::TraceBufferV2 => "TRACE_BUFFER_V2",
7246                    ExperimentalMode::TraceBufferV2ShadowMode => "TRACE_BUFFER_V2_SHADOW_MODE",
7247                }
7248            }
7249        }
7250    }
7251    #[derive(Clone, PartialEq, ::prost::Message)]
7252    pub struct DataSource {
7253        /// Filters and data-source specific config. It contains also the unique name
7254        /// of the data source, the one passed in the  DataSourceDescriptor when they
7255        /// register on the service.
7256        #[prost(message, optional, tag="1")]
7257        pub config: ::core::option::Option<super::DataSourceConfig>,
7258        /// Optional. If multiple producers (~processes) expose the same data source
7259        /// and either |producer_name_filter| or |producer_name_regex_filter| is set,
7260        /// the data source is enabled only for producers whose names match any of
7261        /// the filters.
7262        /// |producer_name_filter| has to be an exact match, while
7263        /// |producer_name_regex_filter| is a regular expression.
7264        /// This allows to enable a data source only for specific processes.
7265        /// The "repeated" fields have OR semantics: specifying a filter ["foo",
7266        /// "bar"] will enable data sources on both "foo" and "bar" (if they exist).
7267        #[prost(string, repeated, tag="2")]
7268        pub producer_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7269        #[prost(string, repeated, tag="3")]
7270        pub producer_name_regex_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7271        /// Filter by machine names. The name of a machine is determined by the
7272        /// PERFETTO_MACHINE_NAME env variable. In Android systems, if the env
7273        /// variable is not set then the
7274        /// persist.traced_relay.machine_name system property is used. If the
7275        /// sysprop isn't set or not in an Android system, then the machine name by
7276        /// default is set to the utsname sysname (e.g. Linux), which can be obtained
7277        /// via the 'uname -s' command. As a convenience, one can use "host" to refer
7278        /// to the host machine, which is the machine running traced.
7279        #[prost(string, repeated, tag="4")]
7280        pub machine_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7281    }
7282    /// Config for disabling builtin data sources in the tracing service.
7283    #[derive(Clone, PartialEq, ::prost::Message)]
7284    pub struct BuiltinDataSource {
7285        /// Disable emitting clock timestamps into the trace.
7286        #[prost(bool, optional, tag="1")]
7287        pub disable_clock_snapshotting: ::core::option::Option<bool>,
7288        /// Disable echoing the original trace config in the trace.
7289        #[prost(bool, optional, tag="2")]
7290        pub disable_trace_config: ::core::option::Option<bool>,
7291        /// Disable emitting system info (build fingerprint, cpuinfo, etc).
7292        #[prost(bool, optional, tag="3")]
7293        pub disable_system_info: ::core::option::Option<bool>,
7294        /// Disable emitting events for data-source state changes (e.g. the marker
7295        /// for all data sources having ACKed the start of the trace).
7296        #[prost(bool, optional, tag="4")]
7297        pub disable_service_events: ::core::option::Option<bool>,
7298        /// The authoritative clock domain for the trace. Defaults to BOOTTIME. See
7299        /// also ClockSnapshot's primary_trace_clock. The configured value is written
7300        /// into the trace as part of the ClockSnapshots emitted by the service.
7301        /// Trace processor will attempt to translate packet/event timestamps from
7302        /// various data sources (and their chosen clock domains) to this domain
7303        /// during import. Added in Android R.
7304        #[prost(enumeration="super::BuiltinClock", optional, tag="5")]
7305        pub primary_trace_clock: ::core::option::Option<i32>,
7306        /// Time interval in between snapshotting of sync markers, clock snapshots,
7307        /// stats, and other periodic service-emitted events. Note that the service
7308        /// only keeps track of the first and the most recent snapshot until
7309        /// ReadBuffers() is called.
7310        #[prost(uint32, optional, tag="6")]
7311        pub snapshot_interval_ms: ::core::option::Option<u32>,
7312        /// Hints to the service that a suspend-aware (i.e. counting time in suspend)
7313        /// clock should be used for periodic snapshots of service-emitted events.
7314        /// This means, if a snapshot *should* have happened during suspend, it will
7315        /// happen immediately after the device resumes.
7316        ///
7317        /// Choosing a clock like this is done on best-effort basis; not all
7318        /// platforms (e.g. Windows) expose a clock which can be used for periodic
7319        /// tasks counting suspend. If such a clock is not available, the service
7320        /// falls back to the best-available alternative.
7321        ///
7322        /// Introduced in Android S.
7323        /// TODO(lalitm): deprecate this in T and make this the default if nothing
7324        /// crashes in S.
7325        #[prost(bool, optional, tag="7")]
7326        pub prefer_suspend_clock_for_snapshot: ::core::option::Option<bool>,
7327        /// Disables the reporting of per-trace-writer histograms in TraceStats.
7328        #[prost(bool, optional, tag="8")]
7329        pub disable_chunk_usage_histograms: ::core::option::Option<bool>,
7330    }
7331    #[derive(Clone, PartialEq, ::prost::Message)]
7332    pub struct ProducerConfig {
7333        /// Identifies the producer for which this config is for.
7334        #[prost(string, optional, tag="1")]
7335        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
7336        /// Specifies the preferred size of the shared memory buffer. If the size is
7337        /// larger than the max size, the max will be used. If it is smaller than
7338        /// the page size or doesn't fit pages evenly into it, it will fall back to
7339        /// the size specified by the producer or finally the default shared memory
7340        /// size.
7341        #[prost(uint32, optional, tag="2")]
7342        pub shm_size_kb: ::core::option::Option<u32>,
7343        /// Specifies the preferred size of each page in the shared memory buffer.
7344        /// Must be an integer multiple of 4K.
7345        #[prost(uint32, optional, tag="3")]
7346        pub page_size_kb: ::core::option::Option<u32>,
7347    }
7348    /// Contains statsd-specific metadata about an alert associated with the trace.
7349    #[derive(Clone, PartialEq, ::prost::Message)]
7350    pub struct StatsdMetadata {
7351        /// The identifier of the alert which triggered this trace.
7352        #[prost(int64, optional, tag="1")]
7353        pub triggering_alert_id: ::core::option::Option<i64>,
7354        /// The uid which registered the triggering configuration with statsd.
7355        #[prost(int32, optional, tag="2")]
7356        pub triggering_config_uid: ::core::option::Option<i32>,
7357        /// The identifier of the config which triggered the alert.
7358        #[prost(int64, optional, tag="3")]
7359        pub triggering_config_id: ::core::option::Option<i64>,
7360        /// The identifier of the subscription which triggered this trace.
7361        #[prost(int64, optional, tag="4")]
7362        pub triggering_subscription_id: ::core::option::Option<i64>,
7363    }
7364    /// Contains flags which override the default values of the guardrails inside
7365    /// Perfetto.
7366    #[derive(Clone, PartialEq, ::prost::Message)]
7367    pub struct GuardrailOverrides {
7368        /// Override the default limit (in bytes) for uploading data to server within
7369        /// a 24 hour period.
7370        /// On R-, this override only affected userdebug builds. Since S, it also
7371        /// affects user builds.
7372        /// In 24Q3+ (V+), this override is a noop because upload guardrail logic
7373        /// was removed from Perfetto.
7374        #[deprecated]
7375        #[prost(uint64, optional, tag="1")]
7376        pub max_upload_per_day_bytes: ::core::option::Option<u64>,
7377        /// Overrides the guardrail for maximum trace buffer size.
7378        /// Available on U+
7379        #[prost(uint32, optional, tag="2")]
7380        pub max_tracing_buffer_size_kb: ::core::option::Option<u32>,
7381    }
7382    /// Triggers allow producers to start or stop the tracing session when an event
7383    /// occurs.
7384    ///
7385    /// For example if we are tracing probabilistically, most traces will be
7386    /// uninteresting. Triggers allow us to keep only the interesting ones such as
7387    /// those traces during which the device temperature reached a certain
7388    /// threshold. In this case the producer can activate a trigger to keep
7389    /// (STOP_TRACING) the trace, otherwise it can also begin a trace
7390    /// (START_TRACING) because it knows something is about to happen.
7391    #[derive(Clone, PartialEq, ::prost::Message)]
7392    pub struct TriggerConfig {
7393        #[prost(enumeration="trigger_config::TriggerMode", optional, tag="1")]
7394        pub trigger_mode: ::core::option::Option<i32>,
7395        /// This flag is really a workaround for b/274931668. This is needed only
7396        /// when deploying configs to different versions of the tracing service.
7397        /// When this is set to true this has the same effect of setting trigger_mode
7398        /// to CLONE_SNAPSHOT on newer versions of the service. This boolean has been
7399        /// introduced to allow to have configs that use CLONE_SNAPSHOT on newer
7400        /// versions of Android and fall back to STOP_TRACING on older versions where
7401        /// CLONE_SNAPSHOT did not exist.
7402        /// When using this flag, trigger_mode must be set to STOP_TRACING.
7403        #[prost(bool, optional, tag="5")]
7404        pub use_clone_snapshot_if_available: ::core::option::Option<bool>,
7405        /// A list of triggers which are related to this configuration. If ANY
7406        /// trigger is seen then an action will be performed based on |trigger_mode|.
7407        #[prost(message, repeated, tag="2")]
7408        pub triggers: ::prost::alloc::vec::Vec<trigger_config::Trigger>,
7409        /// Required and must be positive if a TriggerConfig is specified. This is
7410        /// how long this TraceConfig should wait for a trigger to arrive. After this
7411        /// period of time if no trigger is seen the TracingSession will be cleaned
7412        /// up.
7413        #[prost(uint32, optional, tag="3")]
7414        pub trigger_timeout_ms: ::core::option::Option<u32>,
7415    }
7416    /// Nested message and enum types in `TriggerConfig`.
7417    pub mod trigger_config {
7418        #[derive(Clone, PartialEq, ::prost::Message)]
7419        pub struct Trigger {
7420            /// The producer must specify this name to activate the trigger.
7421            #[prost(string, optional, tag="1")]
7422            pub name: ::core::option::Option<::prost::alloc::string::String>,
7423            /// An std::regex that will match the producer that can activate this
7424            /// trigger. This is optional. If unset any producers can activate this
7425            /// trigger.
7426            #[prost(string, optional, tag="2")]
7427            pub producer_name_regex: ::core::option::Option<::prost::alloc::string::String>,
7428            /// After a trigger is received either in START_TRACING or STOP_TRACING
7429            /// mode then the trace will end |stop_delay_ms| after triggering.
7430            /// In CLONE_SNAPSHOT mode, this is the delay between the trigger and the
7431            /// snapshot.
7432            /// If |prefer_suspend_clock_for_duration| is set, the duration will be
7433            /// based on wall-clock, counting also time in suspend.
7434            #[prost(uint32, optional, tag="3")]
7435            pub stop_delay_ms: ::core::option::Option<u32>,
7436            /// Limits the number of traces this trigger can start/stop in a rolling
7437            /// 24 hour window. If this field is unset or zero, no limit is applied and
7438            /// activiation of this trigger *always* starts/stops the trace.
7439            #[prost(uint32, optional, tag="4")]
7440            pub max_per_24_h: ::core::option::Option<u32>,
7441            /// A value between 0 and 1 which encodes the probability of skipping a
7442            /// trigger with this name. This is useful for reducing the probability
7443            /// of high-frequency triggers from dominating trace finaization. If this
7444            /// field is unset or zero, the trigger will *never* be skipped. If this
7445            /// field is greater than or equal to 1, this trigger will *always* be
7446            /// skipped i.e. it will be as if this trigger was never included in the
7447            /// first place.
7448            /// This probability check is applied *before* any other limits. For
7449            /// example, if |max_per_24_h| is also set, first we will check if the
7450            /// probability bar is met and only then will we check the |max_per_24_h|
7451            /// limit.
7452            #[prost(double, optional, tag="5")]
7453            pub skip_probability: ::core::option::Option<f64>,
7454        }
7455        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7456        #[repr(i32)]
7457        pub enum TriggerMode {
7458            Unspecified = 0,
7459            /// When this mode is chosen, data sources are not started until one of the
7460            /// |triggers| are received. This supports early initialization and fast
7461            /// starting of the tracing system. On triggering, the session will then
7462            /// record for |stop_delay_ms|. However if no trigger is seen
7463            /// after |trigger_timeout_ms| the session will be stopped and no data will
7464            /// be returned.
7465            StartTracing = 1,
7466            /// When this mode is chosen, the session will be started via the normal
7467            /// EnableTracing() & StartTracing(). If no trigger is ever seen
7468            /// the session will be stopped after |trigger_timeout_ms| and no data will
7469            /// be returned. However if triggered the trace will stop after
7470            /// |stop_delay_ms| and any data in the buffer will be returned to the
7471            /// consumer.
7472            StopTracing = 2,
7473            /// When this mode is chosen, this causes a snapshot of the current tracing
7474            /// session to be created after |stop_delay_ms| while the current tracing
7475            /// session continues undisturbed (% an extra flush). This mode can be
7476            /// used only when the tracing session is handled by the "perfetto" cmdline
7477            /// client (which is true in 90% of cases). Part of the business logic
7478            /// necessary for this behavior, and ensuing file handling, lives in
7479            /// perfetto_cmd.cc . On other consumers, this causes only a notification
7480            /// of the trigger through a CloneTriggerHit ObservableEvent. The custom
7481            /// consumer is supposed to call CloneSession() itself after the event.
7482            /// Use use_clone_snapshot_if_available=true when targeting older versions
7483            /// of perfetto.
7484            CloneSnapshot = 4,
7485        }
7486        impl TriggerMode {
7487            /// String value of the enum field names used in the ProtoBuf definition.
7488            ///
7489            /// The values are not transformed in any way and thus are considered stable
7490            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7491            pub fn as_str_name(&self) -> &'static str {
7492                match self {
7493                    TriggerMode::Unspecified => "UNSPECIFIED",
7494                    TriggerMode::StartTracing => "START_TRACING",
7495                    TriggerMode::StopTracing => "STOP_TRACING",
7496                    TriggerMode::CloneSnapshot => "CLONE_SNAPSHOT",
7497                }
7498            }
7499        }
7500    }
7501    /// Configuration for trace contents that reference earlier trace data. For
7502    /// example, a data source might intern strings, and emit packets containing
7503    /// {interned id : string} pairs. Future packets from that data source can then
7504    /// use the interned ids instead of duplicating the raw string contents. The
7505    /// trace parser will then need to use that interning table to fully interpret
7506    /// the rest of the trace.
7507    #[derive(Clone, PartialEq, ::prost::Message)]
7508    pub struct IncrementalStateConfig {
7509        /// If nonzero, notify eligible data sources to clear their incremental state
7510        /// periodically, with the given period. The notification is sent only to
7511        /// data sources that have |handles_incremental_state_clear| set in their
7512        /// DataSourceDescriptor. The notification requests that the data source
7513        /// stops referring to past trace contents. This is particularly useful when
7514        /// tracing in ring buffer mode, where it is not exceptional to overwrite old
7515        /// trace data.
7516        ///
7517        /// Warning: this time-based global clearing is likely to be removed in the
7518        /// future, to be replaced with a smarter way of sending the notifications
7519        /// only when necessary.
7520        #[prost(uint32, optional, tag="1")]
7521        pub clear_period_ms: ::core::option::Option<u32>,
7522    }
7523    /// Android-only. Not for general use. If set, saves the trace into an
7524    /// incident. This field is read by perfetto_cmd, rather than the tracing
7525    /// service. This field must be set when passing the --upload flag to
7526    /// perfetto_cmd.
7527    ///
7528    /// In this message, either:
7529    ///   * all of |destination_package|, |destination_class| and |privacy_level|
7530    ///     must be set.
7531    ///   * |skip_incidentd| must be explicitly set to true.
7532    #[derive(Clone, PartialEq, ::prost::Message)]
7533    pub struct IncidentReportConfig {
7534        #[prost(string, optional, tag="1")]
7535        pub destination_package: ::core::option::Option<::prost::alloc::string::String>,
7536        #[prost(string, optional, tag="2")]
7537        pub destination_class: ::core::option::Option<::prost::alloc::string::String>,
7538        /// Level of filtering in the requested incident. See |Destination| in
7539        /// frameworks/base/core/proto/android/privacy.proto.
7540        #[prost(int32, optional, tag="3")]
7541        pub privacy_level: ::core::option::Option<i32>,
7542        /// If true, then skips saving the trace to incidentd.
7543        ///
7544        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
7545        /// or when we explicitly don't want traces to go to incidentd even when they
7546        /// usually would (e.g. configs deployed using statsd but only used for
7547        /// inclusion in bugreports using |bugreport_score|).
7548        ///
7549        /// The motivation for having this flag, instead of just not setting
7550        /// |incident_report_config|, is prevent accidents where
7551        /// |incident_report_config| is omitted by mistake.
7552        #[prost(bool, optional, tag="5")]
7553        pub skip_incidentd: ::core::option::Option<bool>,
7554        /// If true, do not write the trace into dropbox (i.e. incident only).
7555        /// Otherwise, write to both dropbox and incident.
7556        /// TODO(lalitm): remove this field as we no longer use Dropbox.
7557        #[deprecated]
7558        #[prost(bool, optional, tag="4")]
7559        pub skip_dropbox: ::core::option::Option<bool>,
7560    }
7561    /// When set applies a post-filter to the trace contents using the filter
7562    /// provided. The filter is applied at ReadBuffers() time and works both in the
7563    /// case of IPC readback and write_into_file. This filter can be generated
7564    /// using `tools/proto_filter -s schema.proto -F filter_out.bytes` or
7565    /// `-T filter_out.escaped_string` (for .pbtx). See go/trace-filtering for
7566    /// design.
7567    ///
7568    /// Introduced in Android S, but it was broken (b/195065199). Reintroduced in
7569    /// Android T with a different field number. Updated in Android U with a new
7570    /// bytecode version which supports string filtering.
7571    ///
7572    /// =========================
7573    /// Filter bytecode.
7574    /// =========================
7575    #[derive(Clone, PartialEq, ::prost::Message)]
7576    pub struct TraceFilter {
7577        /// The bytecode as implemented in Android T.
7578        #[prost(bytes="vec", optional, tag="1")]
7579        pub bytecode: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7580        /// The bytecode as implemented in Android U. Adds support for string
7581        /// filtering.
7582        #[prost(bytes="vec", optional, tag="2")]
7583        pub bytecode_v2: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7584        #[prost(message, optional, tag="3")]
7585        pub string_filter_chain: ::core::option::Option<trace_filter::StringFilterChain>,
7586        /// Bytecode overlay for Perfetto v54+. This overlay is applied on top of
7587        /// bytecode_v2 to upgrade specific simple fields to new values. Old Perfetto
7588        /// versions ignore this field; new versions apply it.
7589        ///
7590        /// The motivation for this is that adding new opcodes in a backwards
7591        /// compatible way while also minimizing config size is hard. Instead, the
7592        /// overlay mechanism allows us to "patch" specific fields in the original
7593        /// bytecode_v2 with new semantics.
7594        ///
7595        /// See RFC 0011-subset-string-filter-rules.md for more info.
7596        ///
7597        /// Note:
7598        /// Unlike bytecode_v2 (which uses implicit message indices via EndOfMessage
7599        /// markers), this overlay uses a triplet format with explicit indices:
7600        ///    [msg_index, field_id << 3 | opcode, argument] ... \[checksum\]
7601        /// Each entry is exactly 3 varints. The argument is 0 when not needed.
7602        /// Entries must be sorted by (msg_index, field_id).
7603        ///
7604        /// The parser processes bytecode_v2 and this overlay simultaneously:
7605        ///   - any field not mentioned in the overlay is parsed as usual
7606        ///   - any field in the overlay but *not* in the bytecode_v2 is added
7607        ///     with its overlay value
7608        ///   - any field in both the overlay and bytecode_v2 takes the value in the
7609        ///     overlay, the bytecode_v2 value is ignored.
7610        ///
7611        /// Introduced in: Perfetto v54.
7612        #[prost(bytes="vec", optional, tag="4")]
7613        pub bytecode_overlay_v54: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7614        /// String filter chain for Perfetto v54+. Rules in this chain either
7615        /// overwrite rules in string_filter_chain (if the name matches) or are
7616        /// appended (if the name doesn't match). This allows modifying existing
7617        /// rules (e.g., changing policy) without duplicating the entire chain.
7618        /// Rules without a name are always appended.
7619        /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7620        /// Introduced in: Perfetto v54.
7621        #[prost(message, optional, tag="5")]
7622        pub string_filter_chain_v54: ::core::option::Option<trace_filter::StringFilterChain>,
7623    }
7624    /// Nested message and enum types in `TraceFilter`.
7625    pub mod trace_filter {
7626        /// A rule specifies how strings should be filtered.
7627        #[derive(Clone, PartialEq, ::prost::Message)]
7628        pub struct StringFilterRule {
7629            /// The policy (i.e. algorithm) dictating how strings matching this rule
7630            /// should be handled.
7631            #[prost(enumeration="StringFilterPolicy", optional, tag="1")]
7632            pub policy: ::core::option::Option<i32>,
7633            /// The regex pattern used to match against each string.
7634            #[prost(string, optional, tag="2")]
7635            pub regex_pattern: ::core::option::Option<::prost::alloc::string::String>,
7636            /// The string which should appear after the tgid in atrace tracepoint
7637            /// strings.
7638            #[prost(string, optional, tag="3")]
7639            pub atrace_payload_starts_with: ::core::option::Option<::prost::alloc::string::String>,
7640            /// Optional name for the rule. When merging chains (e.g. via
7641            /// string_filter_chain_v54), rules with matching names in the newer chain
7642            /// will overwrite rules in the base chain. Rules without a name (empty or
7643            /// unset) are always treated as distinct and will be appended.
7644            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7645            /// Introduced in: Perfetto v54.
7646            #[prost(string, optional, tag="4")]
7647            pub name: ::core::option::Option<::prost::alloc::string::String>,
7648            /// The semantic types this rule applies to.
7649            ///
7650            /// SEMANTIC_TYPE_UNSPECIFIED (0) is treated as its own distinct category:
7651            /// - If empty, the rule applies only to fields with UNSPECIFIED type.
7652            /// - If non-empty, the rule applies only to fields whose semantic type
7653            ///    is explicitly listed. To match UNSPECIFIED fields, you must include
7654            ///    SEMANTIC_TYPE_UNSPECIFIED in the list.
7655            ///
7656            /// Examples:
7657            ///    semantic_type: []           -> matches only UNSPECIFIED fields
7658            ///    semantic_type: \[ATRACE\]     -> matches only ATRACE fields
7659            ///    semantic_type: [UNSPECIFIED, ATRACE] -> matches both
7660            ///
7661            /// See /rfcs/0011-subset-string-filter-rules.md for design details.
7662            /// Introduced in: Perfetto v54.
7663            #[prost(enumeration="super::super::SemanticType", repeated, packed="false", tag="5")]
7664            pub semantic_type: ::prost::alloc::vec::Vec<i32>,
7665        }
7666        /// A chain is a list of rules which string will be sequentially checked
7667        /// against.
7668        #[derive(Clone, PartialEq, ::prost::Message)]
7669        pub struct StringFilterChain {
7670            #[prost(message, repeated, tag="1")]
7671            pub rules: ::prost::alloc::vec::Vec<StringFilterRule>,
7672        }
7673        // =========================
7674        // String filtering
7675        // =========================
7676
7677        // The principles and terminology of string filtering is heavily inspired by
7678        // iptables. A "rule" decide how strings should be filtered. Each rule
7679        // contains a "policy" which indicates the algorithm to use for filtering.
7680        // A "chain" is a list of rules which will be sequentially checked against
7681        // each string.
7682        //
7683        // The first rule which applies to the string terminates filtering for that
7684        // string. If no rules apply, the string is left unchanged.
7685
7686        /// A policy specifies which algorithm should be used for filtering the
7687        /// string.
7688        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7689        #[repr(i32)]
7690        pub enum StringFilterPolicy {
7691            SfpUnspecified = 0,
7692            /// Tries to match the string field against |regex_pattern|. If it
7693            /// matches, all matching groups are "redacted" (i.e. replaced with a
7694            /// constant string) and filtering is terminated (i.e. no further rules are
7695            /// checked). If it doesn't match, the string is left unchanged and the
7696            /// next rule in chain is considered.
7697            SfpMatchRedactGroups = 1,
7698            /// Like |SFP_MATCH_REDACT_GROUPS| but tries to do some pre-work before
7699            /// checking the regex. Specifically, it tries to parse the string field as
7700            /// an atrace tracepoint and checks if the post-tgid field starts with
7701            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
7702            /// this check succeeds.
7703            SfpAtraceMatchRedactGroups = 2,
7704            /// Tries to match the string field against |regex_pattern|. If it
7705            /// matches, filtering is terminated (i.e. no further rules are checked).
7706            /// If it doesn't match, the string is left unchanged and the next rule in
7707            /// chain is considered.
7708            SfpMatchBreak = 3,
7709            /// Like |SFP_MATCH_BREAK| but tries to do some pre-work before checking
7710            /// the regex. Specifically, it tries to parse the string field as an
7711            /// atrace tracepoint and checks if the post-tgid field starts with
7712            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
7713            /// this check succeeds.
7714            SfpAtraceMatchBreak = 4,
7715            /// Tries to repeatedly search (i.e. find substrings of) the string field
7716            /// with |regex_pattern|. For each match, redacts any matching groups (i.e.
7717            /// replaced with a constant string). Once there are no further matches,
7718            /// filtering is terminated (i.e. no further rules are checked).
7719            ///
7720            /// Note that this is policy is a "search" policy not a "match" policy
7721            /// unlike the above policies:
7722            ///   * Match policies require matching the full string i.e. there is an
7723            ///     implicit leading `^` and trailing `$`.
7724            ///   * Search policies perform repeated partial matching of the string
7725            ///     e.g.
7726            ///       - String: `foo=aaa,bar=123,foo=bbb,baz=456`
7727            ///       - Pattern: `foo=(\d+)`
7728            ///       - Output: `foo=P6O,bar=123,foo=P6O,baz=456`
7729            ///     where P6O is the redaction string
7730            ///
7731            /// All of this is only performed after some pre-work where we try to parse
7732            /// the string field as an atrace tracepoint and check if the post-tgid
7733            /// field starts with |atrace_post_tgid_starts_with|.
7734            ///
7735            /// If there are no partial matches, the string is left unchanged and the
7736            /// next rule in chain is considered.
7737            SfpAtraceRepeatedSearchRedactGroups = 5,
7738        }
7739        impl StringFilterPolicy {
7740            /// String value of the enum field names used in the ProtoBuf definition.
7741            ///
7742            /// The values are not transformed in any way and thus are considered stable
7743            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7744            pub fn as_str_name(&self) -> &'static str {
7745                match self {
7746                    StringFilterPolicy::SfpUnspecified => "SFP_UNSPECIFIED",
7747                    StringFilterPolicy::SfpMatchRedactGroups => "SFP_MATCH_REDACT_GROUPS",
7748                    StringFilterPolicy::SfpAtraceMatchRedactGroups => "SFP_ATRACE_MATCH_REDACT_GROUPS",
7749                    StringFilterPolicy::SfpMatchBreak => "SFP_MATCH_BREAK",
7750                    StringFilterPolicy::SfpAtraceMatchBreak => "SFP_ATRACE_MATCH_BREAK",
7751                    StringFilterPolicy::SfpAtraceRepeatedSearchRedactGroups => "SFP_ATRACE_REPEATED_SEARCH_REDACT_GROUPS",
7752                }
7753            }
7754        }
7755    }
7756    /// Android-only. Not for general use. If set, reports the trace to the
7757    /// Android framework. This field is read by perfetto_cmd, rather than the
7758    /// tracing service. This field must be set when passing the --upload flag to
7759    /// perfetto_cmd.
7760    ///
7761    /// In this message, either:
7762    ///   * |reporter_service_package| and |reporter_service_class| must be set.
7763    ///   * |skip_reporting| must be explicitly set to true.
7764    #[derive(Clone, PartialEq, ::prost::Message)]
7765    pub struct AndroidReportConfig {
7766        #[prost(string, optional, tag="1")]
7767        pub reporter_service_package: ::core::option::Option<::prost::alloc::string::String>,
7768        #[prost(string, optional, tag="2")]
7769        pub reporter_service_class: ::core::option::Option<::prost::alloc::string::String>,
7770        /// If true, then skips reporting the trace to Android framework.
7771        ///
7772        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
7773        /// or when we explicitly don't want to report traces to the framework even
7774        /// when they usually would (e.g. configs deployed using statsd but only
7775        /// used for inclusion in bugreports using |bugreport_score|).
7776        ///
7777        /// The motivation for having this flag, instead of just not setting
7778        /// |framework_report_config|, is prevent accidents where
7779        /// |framework_report_config| is omitted by mistake.
7780        #[prost(bool, optional, tag="3")]
7781        pub skip_report: ::core::option::Option<bool>,
7782        /// If true, will direct the Android framework to read the data in trace
7783        /// file and pass it to the reporter class over a pipe instead of passing
7784        /// the file descriptor directly.
7785        ///
7786        /// This flag is needed because the Android test framework does not
7787        /// currently support priv-app helper apps (in terms of SELinux) and we
7788        /// really don't want to add an allow rule for untrusted_app to receive
7789        /// trace fds.
7790        ///
7791        /// Because of this, we instead will direct the framework to create a new
7792        /// pipe and pass this to the reporter process instead. As the pipe is
7793        /// created by the framework, we won't have any problems with SELinux
7794        /// (system_server is already allowed to pass pipe fds, even
7795        /// to untrusted apps).
7796        ///
7797        /// As the name suggests this option *MUST* only be used for testing.
7798        /// Note that the framework will reject (and drop) files which are too
7799        /// large both for simplicity and to be minimize the amount of data we
7800        /// pass to a non-priv app (note that the framework will still check
7801        /// manifest permissions even though SELinux permissions are worked around).
7802        #[prost(bool, optional, tag="4")]
7803        pub use_pipe_in_framework_for_testing: ::core::option::Option<bool>,
7804    }
7805    /// If set, delays the start of tracing by a random duration. The duration is
7806    /// chosen from a uniform distribution between the specified minimum and
7807    /// maximum.
7808    /// Note: this delay is implemented by perfetto_cmd *not* by traced so will
7809    /// not work if you communicate with traced directly over the consumer API.
7810    /// Introduced in Android T.
7811    #[derive(Clone, PartialEq, ::prost::Message)]
7812    pub struct CmdTraceStartDelay {
7813        #[prost(uint32, optional, tag="1")]
7814        pub min_delay_ms: ::core::option::Option<u32>,
7815        #[prost(uint32, optional, tag="2")]
7816        pub max_delay_ms: ::core::option::Option<u32>,
7817    }
7818    /// When non-empty, ensures that for a each semaphore named `name at most
7819    /// `max_other_session_count`` *other* sessions (whose value is taken of the
7820    /// minimum of all values specified by this config or any already-running
7821    /// session) can be be running.
7822    ///
7823    /// If a semaphore "acquisition" fails, EnableTracing will return an error
7824    /// and the tracing session will not be started (or elgible to start in
7825    /// the case of deferred sessions).
7826    ///
7827    /// This is easiest to explain with an example. Suppose the tracing service has
7828    /// the following active tracing sessions:
7829    ///    S1 = [{name=foo, max_other_session_count=2},
7830    ///          {name=bar, max_other_session_count=0}]
7831    ///    S2 = [{name=foo, max_other_session_count=1},
7832    ///          {name=baz, max_other_session_count=1}]
7833    ///
7834    /// Then, for a new session, the following would be the expected behaviour of
7835    /// EnableSession given the state of `session_semaphores`.
7836    ///    Q: session_semaphores = []
7837    ///    A: Allowed because it does not specify any semaphores. Will be allowed
7838    ///       no matter the state of any other tracing session.
7839    ///    Q: session_semaphores = [{name=baz, max_other_session_count=1}]
7840    ///    A: Allowed because both S2 and this config specify
7841    ///       max_other_session_count=1 for baz.
7842    ///    Q: session_semaphores = [{name=foo, max_other_session_count=3}]
7843    ///    A: Denied because S2 specified max_other_session_count=1 for foo and S1
7844    ///       takes that slot.
7845    ///    Q: session_semaphores = [{name=bar, max_other_session_count=0}]
7846    ///    A: Denied because S1 takes the the slot specified by both S1 and
7847    ///       this config.
7848    ///
7849    /// Introduced in 24Q3 (Android V).
7850    #[derive(Clone, PartialEq, ::prost::Message)]
7851    pub struct SessionSemaphore {
7852        /// The name of the semaphore. Acts as a unique identifier across all
7853        /// tracing sessions (including the one being started).
7854        #[prost(string, optional, tag="1")]
7855        pub name: ::core::option::Option<::prost::alloc::string::String>,
7856        /// The maximum number of *other* sesssions which specify the same semaphore
7857        /// which can be active. The minimum of this value across all tracing
7858        /// sessions and the value specified by the config is used when deciding
7859        /// whether the tracing session can be started.
7860        #[prost(uint64, optional, tag="2")]
7861        pub max_other_session_count: ::core::option::Option<u64>,
7862    }
7863    /// Allow key, value pairs to save arbitrary data about trace.
7864    #[derive(Clone, PartialEq, ::prost::Message)]
7865    pub struct Note {
7866        /// Required.
7867        #[prost(string, optional, tag="1")]
7868        pub key: ::core::option::Option<::prost::alloc::string::String>,
7869        /// Required.
7870        #[prost(string, optional, tag="2")]
7871        pub value: ::core::option::Option<::prost::alloc::string::String>,
7872    }
7873    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7874    #[repr(i32)]
7875    pub enum LockdownModeOperation {
7876        LockdownUnchanged = 0,
7877        LockdownClear = 1,
7878        LockdownSet = 2,
7879    }
7880    impl LockdownModeOperation {
7881        /// String value of the enum field names used in the ProtoBuf definition.
7882        ///
7883        /// The values are not transformed in any way and thus are considered stable
7884        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7885        pub fn as_str_name(&self) -> &'static str {
7886            match self {
7887                LockdownModeOperation::LockdownUnchanged => "LOCKDOWN_UNCHANGED",
7888                LockdownModeOperation::LockdownClear => "LOCKDOWN_CLEAR",
7889                LockdownModeOperation::LockdownSet => "LOCKDOWN_SET",
7890            }
7891        }
7892    }
7893    /// Compress trace with the given method. Best effort.
7894    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7895    #[repr(i32)]
7896    pub enum CompressionType {
7897        Unspecified = 0,
7898        Deflate = 1,
7899    }
7900    impl CompressionType {
7901        /// String value of the enum field names used in the ProtoBuf definition.
7902        ///
7903        /// The values are not transformed in any way and thus are considered stable
7904        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7905        pub fn as_str_name(&self) -> &'static str {
7906            match self {
7907                CompressionType::Unspecified => "COMPRESSION_TYPE_UNSPECIFIED",
7908                CompressionType::Deflate => "COMPRESSION_TYPE_DEFLATE",
7909            }
7910        }
7911    }
7912    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7913    #[repr(i32)]
7914    pub enum StatsdLogging {
7915        Unspecified = 0,
7916        Enabled = 1,
7917        Disabled = 2,
7918    }
7919    impl StatsdLogging {
7920        /// String value of the enum field names used in the ProtoBuf definition.
7921        ///
7922        /// The values are not transformed in any way and thus are considered stable
7923        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7924        pub fn as_str_name(&self) -> &'static str {
7925            match self {
7926                StatsdLogging::Unspecified => "STATSD_LOGGING_UNSPECIFIED",
7927                StatsdLogging::Enabled => "STATSD_LOGGING_ENABLED",
7928                StatsdLogging::Disabled => "STATSD_LOGGING_DISABLED",
7929            }
7930        }
7931    }
7932    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7933    #[repr(i32)]
7934    pub enum WriteFlushMode {
7935        /// Same as WRITE_FLUSH_AUTO.
7936        WriteFlushUnspecified = 0,
7937        /// Default mode. The service automatically determines the flush frequency
7938        /// to balance performance and data freshness:
7939        /// 1) If file_write_period_ms <= 5s (kDefaultWriteIntoFilePeriodMs):
7940        ///     Flushes are NOT issued on every write. Instead, a periodic flush is
7941        ///     issued every 5s.
7942        /// 2) If file_write_period_ms > 5s:
7943        ///     A flush is issued before every periodic write into the file.
7944        WriteFlushAuto = 1,
7945        // The following modes are intended for advanced usage and not recommended
7946        // for general use.
7947
7948        /// Do not flush buffers before periodic writes into the file.
7949        /// Use this mode if you want to minimize the performance impact of flushes
7950        /// and can tolerate potentially missing the most recent data in the trace
7951        /// file until the end of the session or an explicit flush.
7952        /// When this mode is selected, |flush_period_ms| is respected.
7953        WriteFlushDisabled = 2,
7954        /// Issue a flush before every periodic write into the file.
7955        /// This ensures that each write into the file contains the most up-to-date
7956        /// data from all data sources, but may have a higher performance overhead.
7957        WriteFlushEnabled = 3,
7958    }
7959    impl WriteFlushMode {
7960        /// String value of the enum field names used in the ProtoBuf definition.
7961        ///
7962        /// The values are not transformed in any way and thus are considered stable
7963        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7964        pub fn as_str_name(&self) -> &'static str {
7965            match self {
7966                WriteFlushMode::WriteFlushUnspecified => "WRITE_FLUSH_UNSPECIFIED",
7967                WriteFlushMode::WriteFlushAuto => "WRITE_FLUSH_AUTO",
7968                WriteFlushMode::WriteFlushDisabled => "WRITE_FLUSH_DISABLED",
7969                WriteFlushMode::WriteFlushEnabled => "WRITE_FLUSH_ENABLED",
7970            }
7971        }
7972    }
7973    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7974    #[repr(i32)]
7975    pub enum FFlushMode {
7976        /// Default: same as FFLUSH_DISABLED.
7977        FflushUnspecified = 0,
7978        /// Do not explicitly sync the file to storage after each write pass.
7979        FflushDisabled = 1,
7980        /// Explicitly sync the file to storage (via fdatasync) after each periodic
7981        /// write pass. Increases data durability at the cost of higher disk I/O
7982        /// overhead.
7983        FflushEnabled = 2,
7984    }
7985    impl FFlushMode {
7986        /// String value of the enum field names used in the ProtoBuf definition.
7987        ///
7988        /// The values are not transformed in any way and thus are considered stable
7989        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7990        pub fn as_str_name(&self) -> &'static str {
7991            match self {
7992                FFlushMode::FflushUnspecified => "FFLUSH_UNSPECIFIED",
7993                FFlushMode::FflushDisabled => "FFLUSH_DISABLED",
7994                FFlushMode::FflushEnabled => "FFLUSH_ENABLED",
7995            }
7996        }
7997    }
7998}
7999/// Arguments for rpc EnableTracing().
8000#[derive(Clone, PartialEq, ::prost::Message)]
8001pub struct EnableTracingRequest {
8002    #[prost(message, optional, tag="1")]
8003    pub trace_config: ::core::option::Option<TraceConfig>,
8004    /// Introduced in Android Q. This is used for re-attaching to the end-of-trace
8005    /// EnableTracingResponse notification after a Detach+Attach request.
8006    /// When this flag is set the |trace_config| is ignored and no method is called
8007    /// on the tracing service.
8008    #[prost(bool, optional, tag="2")]
8009    pub attach_notification_only: ::core::option::Option<bool>,
8010}
8011#[derive(Clone, PartialEq, ::prost::Message)]
8012pub struct EnableTracingResponse {
8013    /// If present and non-empty tracing was disabled because of an error.
8014    /// Introduced in Android S.
8015    #[prost(string, optional, tag="3")]
8016    pub error: ::core::option::Option<::prost::alloc::string::String>,
8017    #[prost(oneof="enable_tracing_response::State", tags="1")]
8018    pub state: ::core::option::Option<enable_tracing_response::State>,
8019}
8020/// Nested message and enum types in `EnableTracingResponse`.
8021pub mod enable_tracing_response {
8022    #[derive(Clone, PartialEq, ::prost::Oneof)]
8023    pub enum State {
8024        #[prost(bool, tag="1")]
8025        Disabled(bool),
8026    }
8027}
8028/// Arguments for rpc StartTracing().
8029#[derive(Clone, PartialEq, ::prost::Message)]
8030pub struct StartTracingRequest {
8031}
8032#[derive(Clone, PartialEq, ::prost::Message)]
8033pub struct StartTracingResponse {
8034}
8035/// Arguments for rpc ChangeTraceConfig().
8036#[derive(Clone, PartialEq, ::prost::Message)]
8037pub struct ChangeTraceConfigRequest {
8038    #[prost(message, optional, tag="1")]
8039    pub trace_config: ::core::option::Option<TraceConfig>,
8040}
8041#[derive(Clone, PartialEq, ::prost::Message)]
8042pub struct ChangeTraceConfigResponse {
8043}
8044/// Arguments for rpc DisableTracing().
8045///
8046/// TODO: not supported yet, selectively disable only some data sources.
8047/// repeated string data_source_name;
8048#[derive(Clone, PartialEq, ::prost::Message)]
8049pub struct DisableTracingRequest {
8050}
8051#[derive(Clone, PartialEq, ::prost::Message)]
8052pub struct DisableTracingResponse {
8053}
8054/// Arguments for rpc ReadBuffers().
8055///
8056/// The |id|s of the buffer, as passed to CreateBuffers().
8057/// TODO: repeated uint32 buffer_ids = 1;
8058#[derive(Clone, PartialEq, ::prost::Message)]
8059pub struct ReadBuffersRequest {
8060}
8061/// TODO: uint32 buffer_id = 1;
8062#[derive(Clone, PartialEq, ::prost::Message)]
8063pub struct ReadBuffersResponse {
8064    #[prost(message, repeated, tag="2")]
8065    pub slices: ::prost::alloc::vec::Vec<read_buffers_response::Slice>,
8066}
8067/// Nested message and enum types in `ReadBuffersResponse`.
8068pub mod read_buffers_response {
8069    /// Each streaming reply returns one or more slices for one or more trace
8070    /// packets, or even just a portion of it (if it's too big to fit within one
8071    /// IPC). The returned slices are ordered and contiguous: packets' slices are
8072    /// not interleaved and slices are sent only once all slices for a packet are
8073    /// available (i.e. the consumer will never see any gap).
8074    #[derive(Clone, PartialEq, ::prost::Message)]
8075    pub struct Slice {
8076        #[prost(bytes="vec", optional, tag="1")]
8077        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8078        /// When true, this is the last slice for the packet. A ReadBufferResponse
8079        /// might have no slices marked as |last_slice_for_packet|==true, in the case
8080        /// of a very large packet that gets chunked into several IPCs (in which case
8081        /// only the last IPC for the packet will have this flag set).
8082        #[prost(bool, optional, tag="2")]
8083        pub last_slice_for_packet: ::core::option::Option<bool>,
8084    }
8085}
8086/// Arguments for rpc FreeBuffers().
8087#[derive(Clone, PartialEq, ::prost::Message)]
8088pub struct FreeBuffersRequest {
8089    /// The |id|s of the buffer, as passed to CreateBuffers().
8090    #[prost(uint32, repeated, packed="false", tag="1")]
8091    pub buffer_ids: ::prost::alloc::vec::Vec<u32>,
8092}
8093#[derive(Clone, PartialEq, ::prost::Message)]
8094pub struct FreeBuffersResponse {
8095}
8096/// Arguments for rpc Flush().
8097#[derive(Clone, PartialEq, ::prost::Message)]
8098pub struct FlushRequest {
8099    #[prost(uint32, optional, tag="1")]
8100    pub timeout_ms: ::core::option::Option<u32>,
8101    /// More details such as flush reason and originator. Introduced in v38 / V.
8102    /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8103    #[prost(uint64, optional, tag="2")]
8104    pub flags: ::core::option::Option<u64>,
8105}
8106#[derive(Clone, PartialEq, ::prost::Message)]
8107pub struct FlushResponse {
8108}
8109/// Arguments for rpc Detach
8110#[derive(Clone, PartialEq, ::prost::Message)]
8111pub struct DetachRequest {
8112    #[prost(string, optional, tag="1")]
8113    pub key: ::core::option::Option<::prost::alloc::string::String>,
8114}
8115#[derive(Clone, PartialEq, ::prost::Message)]
8116pub struct DetachResponse {
8117}
8118/// Arguments for rpc Attach.
8119#[derive(Clone, PartialEq, ::prost::Message)]
8120pub struct AttachRequest {
8121    #[prost(string, optional, tag="1")]
8122    pub key: ::core::option::Option<::prost::alloc::string::String>,
8123}
8124#[derive(Clone, PartialEq, ::prost::Message)]
8125pub struct AttachResponse {
8126    #[prost(message, optional, tag="1")]
8127    pub trace_config: ::core::option::Option<TraceConfig>,
8128}
8129// Arguments for rpc GetTraceStats.
8130
8131#[derive(Clone, PartialEq, ::prost::Message)]
8132pub struct GetTraceStatsRequest {
8133}
8134#[derive(Clone, PartialEq, ::prost::Message)]
8135pub struct GetTraceStatsResponse {
8136    #[prost(message, optional, tag="1")]
8137    pub trace_stats: ::core::option::Option<TraceStats>,
8138}
8139// Arguments for rpc ObserveEvents.
8140
8141/// To stop observing events of a certain type, send a request with the remaining
8142/// types. To stop observing completely, send an empty request.
8143#[derive(Clone, PartialEq, ::prost::Message)]
8144pub struct ObserveEventsRequest {
8145    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="1")]
8146    pub events_to_observe: ::prost::alloc::vec::Vec<i32>,
8147}
8148#[derive(Clone, PartialEq, ::prost::Message)]
8149pub struct ObserveEventsResponse {
8150    #[prost(message, optional, tag="1")]
8151    pub events: ::core::option::Option<ObservableEvents>,
8152}
8153/// Arguments for rpc QueryServiceState.
8154#[derive(Clone, PartialEq, ::prost::Message)]
8155pub struct QueryServiceStateRequest {
8156    /// If set, only the TracingServiceState.tracing_sessions is filled. Producers
8157    /// and data sources are omitted.
8158    #[prost(bool, optional, tag="1")]
8159    pub sessions_only: ::core::option::Option<bool>,
8160}
8161#[derive(Clone, PartialEq, ::prost::Message)]
8162pub struct QueryServiceStateResponse {
8163    /// In order to avoid hitting IPC message size limitations, the service will
8164    /// return >1 replies for each query, chunking the TracingServiceState. The
8165    /// receiver is expected to merge replies together and parse that when the
8166    /// last reply is received (i.e. when IPC's |has_more| == false).
8167    #[prost(message, optional, tag="1")]
8168    pub service_state: ::core::option::Option<TracingServiceState>,
8169}
8170/// Arguments for rpc QueryCapabilities.
8171#[derive(Clone, PartialEq, ::prost::Message)]
8172pub struct QueryCapabilitiesRequest {
8173}
8174#[derive(Clone, PartialEq, ::prost::Message)]
8175pub struct QueryCapabilitiesResponse {
8176    #[prost(message, optional, tag="1")]
8177    pub capabilities: ::core::option::Option<TracingServiceCapabilities>,
8178}
8179/// Arguments for rpc SaveTraceForBugreport.
8180#[derive(Clone, PartialEq, ::prost::Message)]
8181pub struct SaveTraceForBugreportRequest {
8182}
8183/// This response is sent only after the trace was saved into file (if succeeded)
8184/// or something failed.
8185#[derive(Clone, PartialEq, ::prost::Message)]
8186pub struct SaveTraceForBugreportResponse {
8187    /// If true, an eligible the trace was saved into a known location (on Android
8188    /// /data/misc/perfetto-traces, see GetBugreportTracePath()).
8189    /// If false no trace with bugreport_score > 0 was found or an error occurred.
8190    /// see |msg| in that case for details about the failure.
8191    #[prost(bool, optional, tag="1")]
8192    pub success: ::core::option::Option<bool>,
8193    #[prost(string, optional, tag="2")]
8194    pub msg: ::core::option::Option<::prost::alloc::string::String>,
8195}
8196/// Arguments for rpc CloneSession.
8197#[derive(Clone, PartialEq, ::prost::Message)]
8198pub struct CloneSessionRequest {
8199    /// If set, the trace filter will not have effect on the cloned session.
8200    /// Used for bugreports.
8201    #[prost(bool, optional, tag="2")]
8202    pub skip_trace_filter: ::core::option::Option<bool>,
8203    /// If set, affects the generation of the FlushFlags::CloneTarget to be set
8204    /// to kBugreport when requesting the flush to the producers.
8205    #[prost(bool, optional, tag="3")]
8206    pub for_bugreport: ::core::option::Option<bool>,
8207    /// If set, this is stored in the trace as name of the trigger that caused the
8208    /// clone.
8209    #[prost(string, optional, tag="5")]
8210    pub clone_trigger_name: ::core::option::Option<::prost::alloc::string::String>,
8211    /// If set, this is stored in the trace as name of the producer that triggered
8212    /// the clone.
8213    #[prost(string, optional, tag="6")]
8214    pub clone_trigger_producer_name: ::core::option::Option<::prost::alloc::string::String>,
8215    /// If set, this is stored in the trace as uid of the producer that triggered
8216    /// the clone.
8217    #[prost(int32, optional, tag="7")]
8218    pub clone_trigger_trusted_producer_uid: ::core::option::Option<i32>,
8219    /// If set, this is stored in the trace as timestamp of the trigger that caused
8220    /// the clone.
8221    #[prost(uint64, optional, tag="8")]
8222    pub clone_trigger_boot_time_ns: ::core::option::Option<u64>,
8223    /// If set, this is stored in the trace as the configured delay of the trigger
8224    /// that caused the clone.
8225    ///
8226    /// Consumer may also send a file descriptor with this rpc message. If the
8227    /// descriptor is valid, and the session that should be cloned is
8228    /// 'write_into_file' session, traced writes the cloned session content to that
8229    /// file descriptor, instead of writing it in the cloned session buffers.
8230    #[prost(uint64, optional, tag="9")]
8231    pub clone_trigger_delay_ms: ::core::option::Option<u64>,
8232    #[prost(oneof="clone_session_request::Selector", tags="1, 4")]
8233    pub selector: ::core::option::Option<clone_session_request::Selector>,
8234}
8235/// Nested message and enum types in `CloneSessionRequest`.
8236pub mod clone_session_request {
8237    #[derive(Clone, PartialEq, ::prost::Oneof)]
8238    pub enum Selector {
8239        /// The session ID to clone. If session_id == kBugreportSessionId (0xff...ff)
8240        /// the session with the highest bugreport score is cloned (if any exists).
8241        #[prost(uint64, tag="1")]
8242        SessionId(u64),
8243        /// The unique_session_name of the tracing session to clone. Tracing sessions
8244        /// that are clones of other tracing sessions are ignored.
8245        #[prost(string, tag="4")]
8246        UniqueSessionName(::prost::alloc::string::String),
8247    }
8248}
8249#[derive(Clone, PartialEq, ::prost::Message)]
8250pub struct CloneSessionResponse {
8251    /// If true, the clone was successful. If false it failed and |error| contains
8252    /// the details about the failure.
8253    #[prost(bool, optional, tag="1")]
8254    pub success: ::core::option::Option<bool>,
8255    #[prost(string, optional, tag="2")]
8256    pub error: ::core::option::Option<::prost::alloc::string::String>,
8257    /// The UUID of the cloned session.
8258    #[prost(int64, optional, tag="3")]
8259    pub uuid_msb: ::core::option::Option<i64>,
8260    #[prost(int64, optional, tag="4")]
8261    pub uuid_lsb: ::core::option::Option<i64>,
8262    /// TracingService sets this when the cloned session was write_into_file=true.
8263    /// The consumer cannot know upfront if a session is WIF or not.
8264    /// Introduced in v53.
8265    #[prost(bool, optional, tag="5")]
8266    pub was_write_into_file: ::core::option::Option<bool>,
8267}
8268#[derive(Clone, PartialEq, ::prost::Message)]
8269pub struct CommitDataRequest {
8270    #[prost(message, repeated, tag="1")]
8271    pub chunks_to_move: ::prost::alloc::vec::Vec<commit_data_request::ChunksToMove>,
8272    #[prost(message, repeated, tag="2")]
8273    pub chunks_to_patch: ::prost::alloc::vec::Vec<commit_data_request::ChunkToPatch>,
8274    /// Optional. If this commit is made in response to a Flush(id) request coming
8275    /// from the service, copy back the id of the request so the service can tell
8276    /// when the flush happened.
8277    #[prost(uint64, optional, tag="3")]
8278    pub flush_request_id: ::core::option::Option<u64>,
8279}
8280/// Nested message and enum types in `CommitDataRequest`.
8281pub mod commit_data_request {
8282    /// When |chunks_to_move| is present, the producer is requesting the service to
8283    /// move the given chunks form the share memory buffer into the central
8284    /// trace buffer(s).
8285    #[derive(Clone, PartialEq, ::prost::Message)]
8286    pub struct ChunksToMove {
8287        /// The 0-based index of the page in the Shared Memory Buffer.
8288        #[prost(uint32, optional, tag="1")]
8289        pub page: ::core::option::Option<u32>,
8290        /// The 0-based chunk index \[0..13\] within the page.
8291        #[prost(uint32, optional, tag="2")]
8292        pub chunk: ::core::option::Option<u32>,
8293        /// The target buffer it should be moved onto. The service will check that
8294        /// the producer is allowed to write into that buffer before the move.
8295        #[prost(uint32, optional, tag="3")]
8296        pub target_buffer: ::core::option::Option<u32>,
8297        /// Sending the chunk data over the wire. Used for transports that don't
8298        /// support shared memory (e.g. vsock or TCP sockets). In the default case
8299        /// (tracing protocol over a Unix socket), this field is not used and tracing
8300        /// data is stored in the shmem buffer and referenced by the fields above.
8301        /// See |use_shemem_emulation| in the codebase for reference.
8302        #[prost(bytes="vec", optional, tag="4")]
8303        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8304        /// Set to true when scraping data in shmem emulation (aka commits-over-ipc)
8305        /// AND the chunk was still in kChunkBeingWritten. This is necessary because
8306        /// in emulation mode, the service cannot tell whether this is a complete
8307        /// chunk coming from a regular TraceWriter commit, or a scraped one.
8308        /// This field is only set when `data` is present. It is never set (and is
8309        /// ignored by the service) for the regular case of doing commits over
8310        /// shmem. Introduced in Perfetto v54.
8311        /// See /rfcs/0010-smb-scraping-remote-producers.md .
8312        #[prost(bool, optional, tag="5")]
8313        pub chunk_incomplete: ::core::option::Option<bool>,
8314    }
8315    /// Used to patch chunks that have already been sent to the service. The chunk
8316    /// might not be in the shared memory buffer anymore as it could have been
8317    /// moved by the service in response to a prior CommitDataRequest.
8318    /// It is perfectly valid to patch a chunk that is being notified in the same
8319    /// message (a chunk can show up both in the |changed_pages| and |patches|
8320    /// field within the same CommitDataRequest message).
8321    /// In other words, |chunks_to_patch| is always processed after
8322    /// |chunks_to_move|.
8323    #[derive(Clone, PartialEq, ::prost::Message)]
8324    pub struct ChunkToPatch {
8325        #[prost(uint32, optional, tag="1")]
8326        pub target_buffer: ::core::option::Option<u32>,
8327        /// {WriterID, ChunkID} uniquely identify a chunk for the current producer.
8328        #[prost(uint32, optional, tag="2")]
8329        pub writer_id: ::core::option::Option<u32>,
8330        #[prost(uint32, optional, tag="3")]
8331        pub chunk_id: ::core::option::Option<u32>,
8332        /// List of patches to apply to the given chunk.
8333        #[prost(message, repeated, tag="4")]
8334        pub patches: ::prost::alloc::vec::Vec<chunk_to_patch::Patch>,
8335        /// When true more patches will follow in future requests and the chunk
8336        /// should be still considered as patch-pending. When false the chunk becomes
8337        /// eligible for reading.
8338        #[prost(bool, optional, tag="5")]
8339        pub has_more_patches: ::core::option::Option<bool>,
8340    }
8341    /// Nested message and enum types in `ChunkToPatch`.
8342    pub mod chunk_to_patch {
8343        #[derive(Clone, PartialEq, ::prost::Message)]
8344        pub struct Patch {
8345            /// Offset in bytes from the start of the chunk payload. e.g., offset == 0
8346            /// corresponds to the first byte of the first packet (or fragment) in the
8347            /// chunk.
8348            #[prost(uint32, optional, tag="1")]
8349            pub offset: ::core::option::Option<u32>,
8350            /// Bytes to patch at the given offset.
8351            #[prost(bytes="vec", optional, tag="2")]
8352            pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8353        }
8354    }
8355}
8356/// Arguments for rpc InitializeConnection().
8357#[derive(Clone, PartialEq, ::prost::Message)]
8358pub struct InitializeConnectionRequest {
8359    /// Optional. Provides a hint to the tracing service about the suggested size
8360    /// of the shared memory buffer pages. The service is not required to respect
8361    /// this if it has already another value in the configuration or if the hint
8362    /// is unreasonably large. Must be an integer multiple of 4096. See tradeoff
8363    /// considerations in shared_memory_abi.h.
8364    #[prost(uint32, optional, tag="1")]
8365    pub shared_memory_page_size_hint_bytes: ::core::option::Option<u32>,
8366    /// Optional. Provides a hint to the tracing service about the suggested size
8367    /// of the shared memory buffer. The service is not required to respect this
8368    /// and might return a smaller buffer.
8369    #[prost(uint32, optional, tag="2")]
8370    pub shared_memory_size_hint_bytes: ::core::option::Option<u32>,
8371    /// Required to match the producer config set by the service to the correct
8372    /// producer.
8373    #[prost(string, optional, tag="3")]
8374    pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
8375    /// If provided, overrides the service's SMB scraping setting for the producer.
8376    #[prost(enumeration="initialize_connection_request::ProducerSmbScrapingMode", optional, tag="4")]
8377    pub smb_scraping_mode: ::core::option::Option<i32>,
8378    // ---------------------------------------------------
8379    // All fields below have been introduced in Android R.
8380    // ---------------------------------------------------
8381
8382    /// Since Android R, this request can also transport an FD for the producer's
8383    /// shared memory buffer, if allocated by the producer (e.g. for startup
8384    /// tracing). In this case, |shared_memory_page_size_hint_bytes| is a required
8385    /// field, and describes the SMB's page size. Note that the service may not
8386    /// accept this SMB (e.g. because it is too old or its size / page size are
8387    /// invalid) and instead allocate a new SMB which is provided in the
8388    /// SetupTracing response. See TracingService::ConnectProducer() and
8389    /// |using_shmem_provided_by_producer| in InitializeConnectionResponse.
8390    #[prost(bool, optional, tag="6")]
8391    pub producer_provided_shmem: ::core::option::Option<bool>,
8392    // ---------------------------------------------------
8393    // All fields below have been introduced in Android S.
8394    // ---------------------------------------------------
8395
8396    /// The version of the client library used by the producer.
8397    /// This is a human readable string with and its format varies depending on
8398    /// the build system that is used to build the code and the repo (standalone
8399    /// vs AOSP). This is intended for human debugging only.
8400    #[prost(string, optional, tag="8")]
8401    pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
8402    /// On Windows, when producer_provided_shmem = true, the client creates a named
8403    /// SHM region and passes the name (an unguessable token) back to the service.
8404    /// Introduced in v13.
8405    #[prost(string, optional, tag="7")]
8406    pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
8407}
8408/// Nested message and enum types in `InitializeConnectionRequest`.
8409pub mod initialize_connection_request {
8410    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
8411    #[repr(i32)]
8412    pub enum ProducerSmbScrapingMode {
8413        /// Use the service's default setting for SMB scraping.
8414        SmbScrapingUnspecified = 0,
8415        /// Enable scraping of uncommitted chunks from the producer's shared memory
8416        /// buffer.
8417        SmbScrapingEnabled = 1,
8418        /// Disable scraping of uncommitted chunks from the producer's shared memory
8419        /// buffer.
8420        SmbScrapingDisabled = 2,
8421    }
8422    impl ProducerSmbScrapingMode {
8423        /// String value of the enum field names used in the ProtoBuf definition.
8424        ///
8425        /// The values are not transformed in any way and thus are considered stable
8426        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
8427        pub fn as_str_name(&self) -> &'static str {
8428            match self {
8429                ProducerSmbScrapingMode::SmbScrapingUnspecified => "SMB_SCRAPING_UNSPECIFIED",
8430                ProducerSmbScrapingMode::SmbScrapingEnabled => "SMB_SCRAPING_ENABLED",
8431                ProducerSmbScrapingMode::SmbScrapingDisabled => "SMB_SCRAPING_DISABLED",
8432            }
8433        }
8434    }
8435}
8436#[derive(Clone, PartialEq, ::prost::Message)]
8437pub struct InitializeConnectionResponse {
8438    /// Indicates whether the service accepted the SMB provided by the producer in
8439    /// InitializeConnectionRequest (if any). If false, the shared memory buffer FD
8440    /// will provided by the service via the SetupTracing async command.
8441    #[prost(bool, optional, tag="1")]
8442    pub using_shmem_provided_by_producer: ::core::option::Option<bool>,
8443    /// Indicates to the producer that the service allows direct SMB patching of
8444    /// chunks that have not yet been committed to it.
8445    /// This field has been introduced in Android S.
8446    #[prost(bool, optional, tag="2")]
8447    pub direct_smb_patching_supported: ::core::option::Option<bool>,
8448    /// Indicates whether the service would like to use SMB emulation for the
8449    /// connection, and request the client to send chunk data over the socket e.g.
8450    /// for remote connection from a VM guest.
8451    #[prost(bool, optional, tag="3")]
8452    pub use_shmem_emulation: ::core::option::Option<bool>,
8453}
8454// Arguments for rpc RegisterDataSource().
8455
8456#[derive(Clone, PartialEq, ::prost::Message)]
8457pub struct RegisterDataSourceRequest {
8458    #[prost(message, optional, tag="1")]
8459    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
8460}
8461#[derive(Clone, PartialEq, ::prost::Message)]
8462pub struct RegisterDataSourceResponse {
8463    /// Only set in case of errors, when |data_source_id| == 0.
8464    #[prost(string, optional, tag="1")]
8465    pub error: ::core::option::Option<::prost::alloc::string::String>,
8466}
8467// Arguments for rpc UpdateDataSource().
8468
8469#[derive(Clone, PartialEq, ::prost::Message)]
8470pub struct UpdateDataSourceRequest {
8471    /// The new data_source_descriptor.{id, name} must match {id, name} of a
8472    /// data source previously registered via RegisterDataSource().
8473    #[prost(message, optional, tag="1")]
8474    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
8475}
8476#[derive(Clone, PartialEq, ::prost::Message)]
8477pub struct UpdateDataSourceResponse {
8478}
8479// Arguments for rpc UnregisterDataSource().
8480
8481#[derive(Clone, PartialEq, ::prost::Message)]
8482pub struct UnregisterDataSourceRequest {
8483    /// The name of the data source to unregister, as previously passed in
8484    /// |RegisterDataSourceRequest.name|.
8485    #[prost(string, optional, tag="1")]
8486    pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
8487}
8488#[derive(Clone, PartialEq, ::prost::Message)]
8489pub struct UnregisterDataSourceResponse {
8490}
8491// Arguments for rpc RegisterTraceWriter().
8492
8493#[derive(Clone, PartialEq, ::prost::Message)]
8494pub struct RegisterTraceWriterRequest {
8495    /// The ID of a producer's trace writer.
8496    #[prost(uint32, optional, tag="1")]
8497    pub trace_writer_id: ::core::option::Option<u32>,
8498    /// The ID of the target buffer that the trace writer commits its chunks to.
8499    #[prost(uint32, optional, tag="2")]
8500    pub target_buffer: ::core::option::Option<u32>,
8501}
8502#[derive(Clone, PartialEq, ::prost::Message)]
8503pub struct RegisterTraceWriterResponse {
8504}
8505// Arguments for rpc UnregisterTraceWriter().
8506
8507#[derive(Clone, PartialEq, ::prost::Message)]
8508pub struct UnregisterTraceWriterRequest {
8509    /// The ID of a producer's trace writer.
8510    #[prost(uint32, optional, tag="1")]
8511    pub trace_writer_id: ::core::option::Option<u32>,
8512}
8513#[derive(Clone, PartialEq, ::prost::Message)]
8514pub struct UnregisterTraceWriterResponse {
8515}
8516// Arguments for rpc CommitData().
8517// See commit_data_request.proto for CommitDataRequest. That has its own file
8518// because it is used also as input to generate C++ classes (xxx.gen.h).
8519
8520#[derive(Clone, PartialEq, ::prost::Message)]
8521pub struct CommitDataResponse {
8522}
8523// Arguments for rpc NotifyDataSourceStarted().
8524
8525#[derive(Clone, PartialEq, ::prost::Message)]
8526pub struct NotifyDataSourceStartedRequest {
8527    /// ID of the data source that has successfully started.
8528    #[prost(uint64, optional, tag="1")]
8529    pub data_source_id: ::core::option::Option<u64>,
8530}
8531#[derive(Clone, PartialEq, ::prost::Message)]
8532pub struct NotifyDataSourceStartedResponse {
8533}
8534// Arguments for rpc NotifyDataSourceStopped().
8535
8536#[derive(Clone, PartialEq, ::prost::Message)]
8537pub struct NotifyDataSourceStoppedRequest {
8538    /// ID of the data source that has successfully stopped.
8539    #[prost(uint64, optional, tag="1")]
8540    pub data_source_id: ::core::option::Option<u64>,
8541}
8542#[derive(Clone, PartialEq, ::prost::Message)]
8543pub struct NotifyDataSourceStoppedResponse {
8544}
8545// Arguments for rpc ActivateTriggersRequest().
8546
8547#[derive(Clone, PartialEq, ::prost::Message)]
8548pub struct ActivateTriggersRequest {
8549    #[prost(string, repeated, tag="1")]
8550    pub trigger_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
8551}
8552#[derive(Clone, PartialEq, ::prost::Message)]
8553pub struct ActivateTriggersResponse {
8554}
8555// Arguments for rpc GetAsyncCommand().
8556
8557#[derive(Clone, PartialEq, ::prost::Message)]
8558pub struct GetAsyncCommandRequest {
8559}
8560#[derive(Clone, PartialEq, ::prost::Message)]
8561pub struct GetAsyncCommandResponse {
8562    /// Next id: 8.
8563    #[prost(oneof="get_async_command_response::Cmd", tags="3, 6, 1, 2, 5, 7")]
8564    pub cmd: ::core::option::Option<get_async_command_response::Cmd>,
8565}
8566/// Nested message and enum types in `GetAsyncCommandResponse`.
8567pub mod get_async_command_response {
8568    /// Called after SetupTracing and before StartDataSource.
8569    /// This message was introduced in Android Q.
8570    #[derive(Clone, PartialEq, ::prost::Message)]
8571    pub struct SetupDataSource {
8572        #[prost(uint64, optional, tag="1")]
8573        pub new_instance_id: ::core::option::Option<u64>,
8574        #[prost(message, optional, tag="2")]
8575        pub config: ::core::option::Option<super::DataSourceConfig>,
8576    }
8577    #[derive(Clone, PartialEq, ::prost::Message)]
8578    pub struct StartDataSource {
8579        #[prost(uint64, optional, tag="1")]
8580        pub new_instance_id: ::core::option::Option<u64>,
8581        /// For backwards compat reasons (with Android P), the config passed here
8582        /// is identical to the one passed to SetupDataSource.config.
8583        #[prost(message, optional, tag="2")]
8584        pub config: ::core::option::Option<super::DataSourceConfig>,
8585    }
8586    #[derive(Clone, PartialEq, ::prost::Message)]
8587    pub struct StopDataSource {
8588        #[prost(uint64, optional, tag="1")]
8589        pub instance_id: ::core::option::Option<u64>,
8590    }
8591    /// On Android/Linux/Mac this message also transports the file descriptor for
8592    /// the shared memory buffer (not a proto field).
8593    #[derive(Clone, PartialEq, ::prost::Message)]
8594    pub struct SetupTracing {
8595        #[prost(uint32, optional, tag="1")]
8596        pub shared_buffer_page_size_kb: ::core::option::Option<u32>,
8597        /// On Windows, instead, we pass the name (an unguessable token) of a shared
8598        /// memory region that can be attached by the other process by name.
8599        /// Introduced in v13.
8600        #[prost(string, optional, tag="2")]
8601        pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
8602    }
8603    #[derive(Clone, PartialEq, ::prost::Message)]
8604    pub struct Flush {
8605        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8606        /// sources to flush.
8607        #[prost(uint64, repeated, packed="false", tag="1")]
8608        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8609        /// A monotonic counter generated by the service. The producer is simply
8610        /// expected to copy this value back into the CommitDataRequest, so the
8611        /// service can tell when the data for this flush has been committed.
8612        #[prost(uint64, optional, tag="2")]
8613        pub request_id: ::core::option::Option<u64>,
8614        /// More details such as flush reason and originator. Introduced in v38 / V.
8615        /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8616        #[prost(uint64, optional, tag="3")]
8617        pub flags: ::core::option::Option<u64>,
8618    }
8619    /// Instructs the given data sources to stop referring to any trace contents
8620    /// emitted so far. Sent only to active data sources that set
8621    /// |handles_incremental_state_clear| in their DataSourceDescriptor.
8622    ///
8623    /// Added to perfetto tree in May 2019.
8624    #[derive(Clone, PartialEq, ::prost::Message)]
8625    pub struct ClearIncrementalState {
8626        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8627        /// sources that should clear their incremental state.
8628        #[prost(uint64, repeated, packed="false", tag="1")]
8629        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8630    }
8631    /// Next id: 8.
8632    #[derive(Clone, PartialEq, ::prost::Oneof)]
8633    pub enum Cmd {
8634        #[prost(message, tag="3")]
8635        SetupTracing(SetupTracing),
8636        #[prost(message, tag="6")]
8637        SetupDataSource(SetupDataSource),
8638        #[prost(message, tag="1")]
8639        StartDataSource(StartDataSource),
8640        #[prost(message, tag="2")]
8641        StopDataSource(StopDataSource),
8642        /// id == 4 was teardown_tracing, never implemented.
8643        #[prost(message, tag="5")]
8644        Flush(Flush),
8645        #[prost(message, tag="7")]
8646        ClearIncrementalState(ClearIncrementalState),
8647    }
8648}
8649/// Arguments for rpc Sync().
8650#[derive(Clone, PartialEq, ::prost::Message)]
8651pub struct SyncRequest {
8652}
8653#[derive(Clone, PartialEq, ::prost::Message)]
8654pub struct SyncResponse {
8655}
8656#[derive(Clone, PartialEq, ::prost::Message)]
8657pub struct IpcFrame {
8658    /// The client is expected to send requests with monotonically increasing
8659    /// request_id. The host will match the request_id sent from the client.
8660    /// In the case of a Streaming response (has_more = true) the host will send
8661    /// several InvokeMethodReply with the same request_id.
8662    #[prost(uint64, optional, tag="2")]
8663    pub request_id: ::core::option::Option<u64>,
8664    /// Used only in unittests to generate a parsable message of arbitrary size.
8665    #[prost(bytes="vec", repeated, tag="1")]
8666    pub data_for_testing: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
8667    #[prost(oneof="ipc_frame::Msg", tags="3, 4, 5, 6, 7, 8")]
8668    pub msg: ::core::option::Option<ipc_frame::Msg>,
8669}
8670/// Nested message and enum types in `IPCFrame`.
8671pub mod ipc_frame {
8672    /// Client -> Host.
8673    #[derive(Clone, PartialEq, ::prost::Message)]
8674    pub struct BindService {
8675        #[prost(string, optional, tag="1")]
8676        pub service_name: ::core::option::Option<::prost::alloc::string::String>,
8677    }
8678    /// Host -> Client.
8679    #[derive(Clone, PartialEq, ::prost::Message)]
8680    pub struct BindServiceReply {
8681        #[prost(bool, optional, tag="1")]
8682        pub success: ::core::option::Option<bool>,
8683        #[prost(uint32, optional, tag="2")]
8684        pub service_id: ::core::option::Option<u32>,
8685        #[prost(message, repeated, tag="3")]
8686        pub methods: ::prost::alloc::vec::Vec<bind_service_reply::MethodInfo>,
8687    }
8688    /// Nested message and enum types in `BindServiceReply`.
8689    pub mod bind_service_reply {
8690        #[derive(Clone, PartialEq, ::prost::Message)]
8691        pub struct MethodInfo {
8692            #[prost(uint32, optional, tag="1")]
8693            pub id: ::core::option::Option<u32>,
8694            #[prost(string, optional, tag="2")]
8695            pub name: ::core::option::Option<::prost::alloc::string::String>,
8696        }
8697    }
8698    /// Client -> Host.
8699    #[derive(Clone, PartialEq, ::prost::Message)]
8700    pub struct InvokeMethod {
8701        /// BindServiceReply.id.
8702        #[prost(uint32, optional, tag="1")]
8703        pub service_id: ::core::option::Option<u32>,
8704        /// BindServiceReply.method.id.
8705        #[prost(uint32, optional, tag="2")]
8706        pub method_id: ::core::option::Option<u32>,
8707        /// Proto-encoded request argument.
8708        #[prost(bytes="vec", optional, tag="3")]
8709        pub args_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8710        /// When true the client specifies that a reply is not needed. The use case
8711        /// is a method with an empty, where the client doesn't care about the
8712        /// success/failure of the method invocation and rather prefers avoiding the
8713        /// IPC roundtrip + context switch associated with the reply.
8714        #[prost(bool, optional, tag="4")]
8715        pub drop_reply: ::core::option::Option<bool>,
8716    }
8717    /// Host -> Client.
8718    #[derive(Clone, PartialEq, ::prost::Message)]
8719    pub struct InvokeMethodReply {
8720        #[prost(bool, optional, tag="1")]
8721        pub success: ::core::option::Option<bool>,
8722        /// only for streaming RPCs.
8723        #[prost(bool, optional, tag="2")]
8724        pub has_more: ::core::option::Option<bool>,
8725        /// proto-encoded response value.
8726        #[prost(bytes="vec", optional, tag="3")]
8727        pub reply_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8728    }
8729    /// Host -> Client.
8730    #[derive(Clone, PartialEq, ::prost::Message)]
8731    pub struct RequestError {
8732        #[prost(string, optional, tag="1")]
8733        pub error: ::core::option::Option<::prost::alloc::string::String>,
8734    }
8735    /// Client (relay service) -> Host. This is generated by the relay service to
8736    /// fill the producer identity in the guest. This message is sent to the host
8737    /// service *before* any IPCFrame is from a local producer is relayed. This is
8738    /// accepted only on AF_VSOCK and AF_INET sockets, where we cannot validate the
8739    /// endpoont of the connection. for AF_UNIX sockets, this is ignored and traced
8740    /// uses instead the SO_PEERCRED.
8741    #[derive(Clone, PartialEq, ::prost::Message)]
8742    pub struct SetPeerIdentity {
8743        /// The UID and PID of the producer process.
8744        #[prost(int32, optional, tag="1")]
8745        pub pid: ::core::option::Option<i32>,
8746        #[prost(int32, optional, tag="2")]
8747        pub uid: ::core::option::Option<i32>,
8748        /// The hint for the tracing service to infer the machine ID. This field
8749        /// should satisfy the requriement that different machines should have
8750        /// different values. In practice, this filed contains the Linux kernel
8751        /// boot_id, or a hash of kernel bootup timestamp and uname(2) if boot_id
8752        /// isn't available.
8753        #[prost(string, optional, tag="3")]
8754        pub machine_id_hint: ::core::option::Option<::prost::alloc::string::String>,
8755        /// Human-readable name associated to the producer's machine. Provides the
8756        /// tracing service a new dimension to filter data sources on. Given the
8757        /// perfetto machine name is provided by users, there is no expectation of
8758        /// uniqueness across machines in a tracing session.
8759        #[prost(string, optional, tag="4")]
8760        pub machine_name: ::core::option::Option<::prost::alloc::string::String>,
8761    }
8762    #[derive(Clone, PartialEq, ::prost::Oneof)]
8763    pub enum Msg {
8764        #[prost(message, tag="3")]
8765        MsgBindService(BindService),
8766        #[prost(message, tag="4")]
8767        MsgBindServiceReply(BindServiceReply),
8768        #[prost(message, tag="5")]
8769        MsgInvokeMethod(InvokeMethod),
8770        #[prost(message, tag="6")]
8771        MsgInvokeMethodReply(InvokeMethodReply),
8772        #[prost(message, tag="7")]
8773        MsgRequestError(RequestError),
8774        #[prost(message, tag="8")]
8775        SetPeerIdentity(SetPeerIdentity),
8776    }
8777}