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