• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 // Autogenerated by the ProtoZero C compiler plugin.
18 // Invoked by tools/gen_c_protos
19 // DO NOT EDIT.
20 #ifndef INCLUDE_PERFETTO_PUBLIC_PROTOS_TRACE_TRACK_EVENT_TRACK_DESCRIPTOR_PZC_H_
21 #define INCLUDE_PERFETTO_PUBLIC_PROTOS_TRACE_TRACK_EVENT_TRACK_DESCRIPTOR_PZC_H_
22 
23 #include <stdbool.h>
24 #include <stdint.h>
25 
26 #include "perfetto/public/pb_macros.h"
27 
28 PERFETTO_PB_MSG_DECL(perfetto_protos_ChromeProcessDescriptor);
29 PERFETTO_PB_MSG_DECL(perfetto_protos_ChromeThreadDescriptor);
30 PERFETTO_PB_MSG_DECL(perfetto_protos_CounterDescriptor);
31 PERFETTO_PB_MSG_DECL(perfetto_protos_ProcessDescriptor);
32 PERFETTO_PB_MSG_DECL(perfetto_protos_ThreadDescriptor);
33 
PERFETTO_PB_ENUM_IN_MSG(perfetto_protos_TrackDescriptor,ChildTracksOrdering)34 PERFETTO_PB_ENUM_IN_MSG(perfetto_protos_TrackDescriptor, ChildTracksOrdering){
35     PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_TrackDescriptor, UNKNOWN) = 0,
36     PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_TrackDescriptor,
37                                   LEXICOGRAPHIC) = 1,
38     PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_TrackDescriptor,
39                                   CHRONOLOGICAL) = 2,
40     PERFETTO_PB_ENUM_IN_MSG_ENTRY(perfetto_protos_TrackDescriptor,
41                                   EXPLICIT) = 3,
42 };
43 
44 PERFETTO_PB_MSG(perfetto_protos_TrackDescriptor);
45 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor, VARINT, uint64_t, uuid, 1);
46 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
47                   VARINT,
48                   uint64_t,
49                   parent_uuid,
50                   5);
51 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
52                   STRING,
53                   const char*,
54                   name,
55                   2);
56 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
57                   STRING,
58                   const char*,
59                   static_name,
60                   10);
61 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
62                   STRING,
63                   const char*,
64                   atrace_name,
65                   13);
66 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
67                   MSG,
68                   perfetto_protos_ProcessDescriptor,
69                   process,
70                   3);
71 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
72                   MSG,
73                   perfetto_protos_ChromeProcessDescriptor,
74                   chrome_process,
75                   6);
76 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
77                   MSG,
78                   perfetto_protos_ThreadDescriptor,
79                   thread,
80                   4);
81 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
82                   MSG,
83                   perfetto_protos_ChromeThreadDescriptor,
84                   chrome_thread,
85                   7);
86 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
87                   MSG,
88                   perfetto_protos_CounterDescriptor,
89                   counter,
90                   8);
91 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
92                   VARINT,
93                   bool,
94                   disallow_merging_with_system_tracks,
95                   9);
96 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
97                   VARINT,
98                   enum perfetto_protos_TrackDescriptor_ChildTracksOrdering,
99                   child_ordering,
100                   11);
101 PERFETTO_PB_FIELD(perfetto_protos_TrackDescriptor,
102                   VARINT,
103                   int32_t,
104                   sibling_order_rank,
105                   12);
106 
107 #endif  // INCLUDE_PERFETTO_PUBLIC_PROTOS_TRACE_TRACK_EVENT_TRACK_DESCRIPTOR_PZC_H_
108