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