• Home
  • Raw
  • Download

Lines Matching refs:ct

24 import ctypes as ct  namespace
36 return ct.cast(p, ct.c_void_p).value is None
51 class SampleStruct(ct.Structure):
65 _fields_ = [('ip', ct.c_uint64),
66 ('pid', ct.c_uint32),
67 ('tid', ct.c_uint32),
68 ('_thread_comm', ct.c_char_p),
69 ('time', ct.c_uint64),
70 ('in_kernel', ct.c_uint32),
71 ('cpu', ct.c_uint32),
72 ('period', ct.c_uint64)]
79 class TracingFieldFormatStruct(ct.Structure):
87 _fields_ = [('_name', ct.c_char_p),
88 ('offset', ct.c_uint32),
89 ('elem_size', ct.c_uint32),
90 ('elem_count', ct.c_uint32),
91 ('is_signed', ct.c_uint32)]
129 class TracingDataFormatStruct(ct.Structure):
136 _fields_ = [('size', ct.c_uint32),
137 ('field_count', ct.c_uint32),
138 ('fields', ct.POINTER(TracingFieldFormatStruct))]
141 class EventStruct(ct.Structure):
146 _fields_ = [('_name', ct.c_char_p),
154 class MappingStruct(ct.Structure):
160 _fields_ = [('start', ct.c_uint64),
161 ('end', ct.c_uint64),
162 ('pgoff', ct.c_uint64)]
165 class SymbolStruct(ct.Structure):
174 _fields_ = [('_dso_name', ct.c_char_p),
175 ('vaddr_in_file', ct.c_uint64),
176 ('_symbol_name', ct.c_char_p),
177 ('symbol_addr', ct.c_uint64),
178 ('symbol_len', ct.c_uint64),
179 ('mapping', ct.POINTER(MappingStruct))]
190 class CallChainEntryStructure(ct.Structure):
195 _fields_ = [('ip', ct.c_uint64),
199 class CallChainStructure(ct.Structure):
208 _fields_ = [('nr', ct.c_uint32),
209 ('entries', ct.POINTER(CallChainEntryStructure))]
212 class FeatureSectionStructure(ct.Structure):
217 _fields_ = [('data', ct.POINTER(ct.c_char)),
218 ('data_size', ct.c_uint32)]
221 class ReportLibStructure(ct.Structure):
233 self._lib = ct.CDLL(native_lib_path)
235 self._CreateReportLibFunc.restype = ct.POINTER(ReportLibStructure)
244 self._GetNextSampleFunc.restype = ct.POINTER(SampleStruct)
246 self._GetEventOfCurrentSampleFunc.restype = ct.POINTER(EventStruct)
248 self._GetSymbolOfCurrentSampleFunc.restype = ct.POINTER(SymbolStruct)
250 self._GetCallChainOfCurrentSampleFunc.restype = ct.POINTER(CallChainStructure)
252 self._GetTracingDataOfCurrentSampleFunc.restype = ct.POINTER(ct.c_char)
254 self._GetBuildIdForPathFunc.restype = ct.c_char_p
256 self._GetFeatureSection.restype = ct.POINTER(FeatureSectionStructure)
267 self._libwinpthread = ct.CDLL(get_host_binary_path('libwinpthread-1.dll'))
350 void_p = ct.cast(feature_data[0].data, ct.c_void_p)
351 arg_count = ct.cast(void_p, ct.POINTER(ct.c_uint32)).contents.value
355 str_len = ct.cast(void_p, ct.POINTER(ct.c_uint32)).contents.value
357 char_p = ct.cast(void_p, ct.POINTER(ct.c_char))
374 void_p = ct.cast(feature_data[0].data, ct.c_void_p)
375 str_len = ct.cast(void_p, ct.POINTER(ct.c_uint32)).contents.value
377 char_p = ct.cast(void_p, ct.POINTER(ct.c_char))