Lines Matching refs:t

22     t, s = kalloc_array_decode(array, 'struct ipc_entry')
23 return "ptr = {:#x}, size = {:d}, elem_type = struct ipc_entry".format(unsigned(t), s)
27 t, s = kalloc_array_decode(array, 'struct ipc_port_requests')
28 return "ptr = {:#x}, size = {:d}, elem_type = struct ipc_port_requests".format(unsigned(t), s)
526 for t in kern.tasks:
528 pval = GetProcFromTask(t)
529 print(GetTaskSummary(t) + " " + GetProcSummary(pval))
531 PrintIPCInformation(t.itk_space, False, False)
545 l = [ GetTaskIPCSummary(t) for t in kern.tasks ]
552 for t in kern.terminated_tasks:
553 ipc_table_size += GetTaskIPCSummary(t)[1]
904 def GetTaskVoucherCount(t): argument
905 is_tableval, num_entries = GetSpaceTable(t.itk_space)
919 pval = GetProcFromTask(t)
920 return format_str.format(t, GetProcPID(pval), GetProcNameForTask(t), count)
930 for t in kern.tasks:
931 print(GetTaskVoucherCount(t))
1003 for t in kern.tasks:
1005 pval = GetProcFromTask(t)
1006 print(GetTaskSummary(t) + " " + GetProcSummary(pval))
1009 PrintIPCInformation(t.itk_space, True, False, rights_type) + "\n\n"
1249 for t in tasklist:
1255 if not t.active:
1257 if t.halting:
1259 procname += GetProcNameForTask(t)
1264 space = t.itk_space
1289 func(t, space, ctx, idx, entry_val, eport, entry_disp)
1297 CollectKmsgPortRefs(t, eport, kmsgp, p_refs)
1299 func(t, space, ctx, intransit_idx, None, port, pdisp)
1303 if getattr(t, 'itk_settable_self', 0) > 0:
1304 func(t, space, ctx, taskports_idx, 0, t.itk_settable_self, 17)
1305 if unsigned(t.itk_host) > 0:
1306 func(t, space, ctx, taskports_idx, 0, t.itk_host, 17)
1307 if unsigned(t.itk_bootstrap) > 0:
1308 func(t, space, ctx, taskports_idx, 0, t.itk_bootstrap, 17)
1309 if unsigned(t.itk_debug_control) > 0:
1310 func(t, space, ctx, taskports_idx, 0, t.itk_debug_control, 17)
1311 if unsigned(t.itk_task_access) > 0:
1312 func(t, space, ctx, taskports_idx, 0, t.itk_task_access, 17)
1313 if unsigned(t.itk_task_ports[1]) > 0: ## task read port
1314 func(t, space, ctx, taskports_idx, 0, t.itk_task_ports[1], 17)
1315 if unsigned(t.itk_task_ports[2]) > 0: ## task inspect port
1316 func(t, space, ctx, taskports_idx, 0, t.itk_task_ports[2], 17)
1319 if unsigned(t.itk_task_ports[3]) > 0:
1320 func(t, space, ctx, taskports_idx, 0, t.itk_task_ports[3], 0)
1323 if unsigned(t.itk_resume) > 0:
1324 func(t, space, ctx, taskports_idx, 0, t.itk_resume, 16)
1328 tr_max = sizeof(t.itk_registered) // sizeof(t.itk_registered[0])
1330 tport = t.itk_registered[tr_idx]
1333 func(t, space, ctx, registeredport_idx, 0, tport, 17)
1335 … print("\texception looking through registered port {:d}/{:d} in {:s}".format(tr_idx,tr_max,t))
1341 exmax = sizeof(t.exc_actions) // sizeof(t.exc_actions[0])
1343 export = t.exc_actions[exidx].port ## send right
1346 func(t, space, ctx, excports_idx, 0, export, 17)
1348 … print("\texception looking through exception port {:d}/{:d} in {:s}".format(exidx,exmax,t))
1354 for thval in IterateQueue(t.threads, 'thread *', 'task_threads'):
1360 func(t, space, ctx, thports_idx, 0, thport, 17) ## see: osfmk/mach/message.h
1364 func(t, space, ctx, thports_idx, 0, thport, 18) ## see: osfmk/mach/message.h
1370 func(t, space, ctx, thports_idx, 0, vport, vdisp)
1378 func(t, space, ctx, excports_idx, 0, export, 17)
1380 … print("\texception looking through exception port {:d}/{:d} in {:s}".format(exidx,exmax,t))
1849 for t in kern.tasks:
1851 if unsigned(t.task_imp_base):
1852 s += ' ' + GetIPCImportantTaskSummary(t.task_imp_base)
1853 s += ' ' + GetIPCImportanceElemSummary(addressof(t.task_imp_base.iit_elem))