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