Lines Matching refs:unsigned
43 return unsigned(proc.p_pid) if proc is not None else -1
84 unsigned(task.task_imp_base) != 0):
104 pid = unsigned(proc_ro.task_tokens.audit_token.val[5])
317 if hasattr(task, 'task_imp_base') and unsigned(task.task_imp_base):
329 if unsigned(proc_ro.t_flags_ro) & 0x20:
331 if unsigned(task.t_flags) & 0x40:
335 if showcorpse is True and unsigned(task.corpse_info) != 0:
352 addr = unsigned(uthread) - sizeof('struct thread')
359 addr = unsigned(thread) + sizeof('struct thread')
365 if unsigned(task) and unsigned(task.t_flags) & TF_HASPROC:
366 addr = unsigned(task) - kern.globals.proc_struct_size
375 if unsigned(proc) and unsigned(proc.p_lflag) & P_LHASTASK:
376 addr = unsigned(proc) + kern.globals.proc_struct_size
460 if (unsigned(thread.bound_processor) != 0):
464 if (unsigned(thread.sched_flags) & TH_SFLAG_THROTTLED):
500 wait_queue_str = '{:<#018x}'.format(unsigned(thread.waitq.wq_q))
501 wait_event_str = '{:<#018x}'.format(unsigned(thread.wait_event))
601 if verbose and unsigned(ledgerp) != 0:
628 if unsigned(coal.j.leader) == 0:
648 if unsigned(coal) == 0:
664 if unsigned(coal) == 0:
734 if unsigned(tg) == 0:
973 if unsigned(proc_ofiles) == 0:
979 for fd in range(0, unsigned(proc_filedesc.fd_afterlast)):
980 if unsigned(proc_ofiles[fd]) != 0:
986 out_str += "{0: <#18x} ".format(unsigned(proc_fd_fglob))
987 out_str += "0x{0:0>8x} ".format(unsigned(proc_fd_flags))
988 proc_fd_ftype = unsigned(proc_fd_fglob.fg_ops.fo_type)
993 out_str += "{0: <#18x} ".format(unsigned(proc_fd_fglob_fg_data))
1015 …print("Last input to raw queue: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_rawq.c_cs), tt…
1016 …print("Last input to canonical queue: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_canq.c_cs), tt…
1017 …print("Last output data: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_outq.c_cs), tt…
1046 tty_state = unsigned(tty.t_state)
1057 print("Flags: 0x{0:0>8x}".format(unsigned(tty.t_flags)))
1058 print("Foreground Process Group: 0x{0:0>16x}".format(unsigned(tty.t_pgrp)))
1059 print("Enclosing session: 0x{0:0>16x}".format(unsigned(tty.t_session)))
1061 print("\tInput Flags: 0x{0:0>8x}".format(unsigned(tty.t_termios.c_iflag)))
1062 print("\tOutput Flags: 0x{0:0>8x}".format(unsigned(tty.t_termios.c_oflag)))
1063 print("\tControl Flags: 0x{0:0>8x}".format(unsigned(tty.t_termios.c_cflag)))
1064 print("\tLocal Flags: 0x{0:0>8x}".format(unsigned(tty.t_termios.c_lflag)))
1083 while unsigned(tty_dev) != 0:
1139 unsigned(callentry), unsigned(callentry.param0), unsigned(callentry.param1),
1140 unsigned(callentry.deadline), unsigned(callentry.func)))
1205 if kern.GetValueFromAddress(unsigned(task.map.pmap), 'pmap_t') == pmap:
1351 if unsigned(uu_ref_info.upri_proc_ps[ref]) == unsigned(proc):
1358 bts = btlib.get_stack(unsigned(uu_ref_info.upri_proc_stacks[ref]))
1385 tlist = tmap.get(unsigned(task), [])
1392 tmap[unsigned(thr.t_tro.tro_task)].append(thr)
1599 time_since_off_abs = unsigned(most_recent_dispatch - last_off)
1634 wait_event_str = '{:<#018x}'.format(unsigned(th.wait_event))
1683 while unsigned(current_processor) > 0:
1686 if unsigned(active_thread) != 0:
1704 while unsigned(current_processor) > 0:
1707 if unsigned(active_thread) != 0 :
1729 pc_val = kern.StripKernelPAC(unsigned(dereference(pc_val)))
1734 if unsigned(frame_val) == 0:
1736 frame_ptr = unsigned(dereference(frame_val))
1760 if unsigned(active_thread) != 0 :
1773 print(GetFullBackTrace(unsigned(FramePtr), prefix="\t"))
1817 proc.p_ppid, GetProcName(proc.p_pptr), unsigned(proc.p_pptr))
1819 GetProcPID(proc), GetProcName(proc), unsigned(proc))
1835 GetProcPID(p), GetProcName(p), unsigned(p)))
1940 now = unsigned(kern.globals.sched_tick) // 20
1949 entry["credit"] = unsigned(les.les_credit)
1955 entry["credit"] = unsigned(le.le_credit)
1956 entry["debit"] = unsigned(le.le_debit)
1959 entry["interval_max"] = unsigned(le._le._le_max.le_interval_max)
1960 entry["lifetime_max"] = unsigned(le._le._le_max.le_lifetime_max)
1962 entry["limit"] = unsigned(le.le_limit)
1965 entry["refill_period"] = unsigned (le._le.le_refill.le_refill_period)
1967 if (unsigned(le.le_warn_percent) < 65535):
1968 entry["warn_percent"] = unsigned (le.le_warn_percent * 100 / 65536)
2003 if entry.get('limit', unsigned(ledger_limit_infinity)) != unsigned(ledger_limit_infinity):
2004 out_str += "{:12d} ".format(unsigned(entry["limit"]))
2051 thread["address"] = unsigned(thread_val)
2083 task["address"] = unsigned(task_val)
2183 task_val = unsigned(t)
2205 flags = unsigned(entry.flags)
2214 hashslots = unsigned(kern.globals.proc_uuid_policy_hash_mask)
2372 ShowActStack([unsigned(actp)], O=O)
2384 ShowTask([unsigned(taskp)])
2415 if unsigned(proc_ofiles[fd]) != 0:
2461 dyld_all_image_infos_address = unsigned(task.all_image_info_addr)