perfetto_protos/
perfetto.protos.rs

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