| /xnu-11215/tools/lldbmacros/ |
| H A D | pmap.py | 449 pt_paddr = unsigned(pmap_addr_val) 842 if unsigned(iommu.name) != 0: 880 pvh_raw = unsigned(pv_head_table[pai]) 1036 …if (addr >= int(unsigned(ptov_table[i].va))) and (addr < (int(unsigned(ptov_table[i].va)) + int(un… 1037 return (addr - int(unsigned(ptov_table[i].va)) + int(unsigned(ptov_table[i].pa))) 1042 …if (addr >= int(unsigned(papt_table[i].papt_start))) and (addr < (int(unsigned(papt_table[i].papt_… 1043 … return (addr - int(unsigned(papt_table[i].papt_start)) + int(unsigned(papt_table[i].paddr_start))) 1045 return (addr - unsigned(kern.globals.gVirtBase) + unsigned(kern.globals.gPhysBase)) 1175 pteval = int(unsigned(dereference(kern.GetValueFromAddress(unsigned(pte), 'pt_entry_t *')))) 1224 paddr = unsigned(tte) & unsigned(page_base_mask) [all …]
|
| H A D | ipc.py | 247 '', unsigned(kmsgp), unsigned(kmsghp), kmsgh=kmsghp) 1028 …r = format_str.format(unsigned(port), 'in-transit', disp_str, 0, 0, port.ip_messages.imq_msgcount,… 1059 if unsigned(th_vport) > 0: 1140 if kmsgh.msgh_remote_port and unsigned(kmsgh.msgh_remote_port) != unsigned(task_port): 1144 if kmsgh.msgh_local_port and unsigned(kmsgh.msgh_local_port) != unsigned(task_port) \ 1145 and unsigned(kmsgh.msgh_local_port) != unsigned(kmsgh.msgh_remote_port): 1205 if unsigned(p) == unsigned(qport): 1399 if unsigned(ipc_entry) != 0: 1911 if unsigned(ivam) == 0 : 1953 if unsigned(ivam) == 0: [all …]
|
| H A D | memory.py | 2324 if unsigned(mcs.lmm_ilk_current) != unsigned(mtx): 2356 idx = unsigned(mcs_ilk_next_map.get(unsigned(mcs), 0)) 3379 size = unsigned(vme.links.end) - unsigned(vme.links.start) 3732 … retval.append((vme, unsigned(vme.links.start), unsigned(vme.links.end), unsigned(vme.protection))) 3860 if unsigned(page) & unsigned(ptr_mask): 4224 if (unsigned(vmp) != unsigned(hash_page_t)): 4408 idx = ((unsigned(cr.read_ptr) - unsigned(cr.buffer)) + i) % unsigned(cr.len) 4702 … if unsigned(m_object) != unsigned(object) or unsigned(m.vmp_offset) != unsigned(trunc_offset): 4848 if unsigned(slot_ptr) != unsigned(c_slot_unpacked_ptr): 5176 if unsigned(Cast(owner, 'int')) == unsigned(int(0xffffffff)): [all …]
|
| H A D | scheduler.py | 72 aic_base = unsigned(aic._aicBaseAddress) 364 if unsigned(active_thread) != 0 : 403 if unsigned(uthread.pth_name) != 0 : 602 if unsigned(runq_queue_p): 853 if unsigned(queue_head) == 0: 878 …if unsigned(queue_head.next) == unsigned(queue_head) and unsigned(queue_head.prev) != unsigned(que… 889 if not circleQueue and unsigned(queue_head) == unsigned(link): 896 if unsigned(last_link) != unsigned(link.prev): 900 addr = unsigned(link) - unsigned(elem_ofst) 907 if circleQueue and unsigned(queue_head) == unsigned(link): [all …]
|
| H A D | process.py | 365 if unsigned(task) and unsigned(task.t_flags) & TF_HASPROC: 375 if unsigned(proc) and unsigned(proc.p_lflag) & P_LHASTASK: 648 if unsigned(coal) == 0: 664 if unsigned(coal) == 0: 734 if unsigned(tg) == 0: 1083 while unsigned(tty_dev) != 0: 1139 unsigned(callentry), unsigned(callentry.param0), unsigned(callentry.param1), 1140 unsigned(callentry.deadline), unsigned(callentry.func))) 1351 if unsigned(uu_ref_info.upri_proc_ps[ref]) == unsigned(proc): 2003 if entry.get('limit', unsigned(ledger_limit_infinity)) != unsigned(ledger_limit_infinity): [all …]
|
| H A D | recount.py | 94 if unsigned(metrics.rm_cycles) != 0: 236 time = unsigned(metrics.rm_time_mach) 243 cycles = unsigned(metrics.rm_cycles) 259 energy_nj = unsigned(usage.ru_energy_nj) 403 unsigned(task), task_name)) 413 print('coalition 0x{:x} {}'.format(unsigned(coal), unsigned(coal.id))) 419 ptr_or_id = unsigned(ptr_or_id) 423 while unsigned(current_processor) > 0: 437 while unsigned(current_processor) > 0: 469 if unsigned(pset.pset_cluster_type) != 0: [all …]
|
| H A D | ioreg.py | 151 if vt >= unsigned(kval.address) and vt <= (unsigned(kval.address) + unsigned(kval.size)): 604 if unsigned(iopm) == 0: 617 while unsigned(next) != 0: 775 count = unsigned(ca.count) 822 count = unsigned(ca.count) 1206 count = unsigned(ca.count) 1362 count = unsigned(osdict.count) 1437 count = unsigned(arr.count) 1454 count = unsigned(d.count) 1895 paddr = unsigned(data[0]) [all …]
|
| H A D | bank.py | 15 …t_string = format_str.format(bank_element, "BANK_TASK", unsigned(bank_element.be_refs), unsigned(b… 17 …tring = format_str.format(bank_element, "BANK_ACCOUNT", unsigned(bank_element.be_refs), unsigned(b… 37 …, bank_task.bt_proc_persona.pid, bank_task.bt_ledger, unsigned(bank_task.bt_elem.be_refs), unsigne… 56 …teprocess.bt_proc_persona.pid,bank_account.ba_bill, unsigned(bank_account.ba_elem.be_refs), unsign…
|
| H A D | ktrace.py | 111 if unsigned(typefilter) == 0: 121 if unsigned(typefilter) == 0: 144 if unsigned(typefilter) != 0: 307 unsigned(kern.globals.kperf_status) == 317 action_samplers.append(unsigned(action.sample)) 573 start_timestamp = unsigned(now - duration) 671 'hw_memsize': unsigned(kern.globals.max_mem), 679 'cpu_type': unsigned(master_cpu_data.cpu_type), 744 limit_nevents = unsigned(cmd_options['-N']) 849 kcdata_addr = unsigned(kcdata.kcd_addr_begin) [all …]
|
| H A D | xnu.py | 490 tid = unsigned(thread_obj.thread_id) 518 if load_addr >= unsigned(kval.address) and \ 519 load_addr <= (unsigned(kval.address) + unsigned(kval.size)): 552 kernel_stack = unsigned(thread_obj.kernel_stack) 878 panic_log_magic = unsigned(panic_header.eph_magic) 884 panic_stackshot_addr = unsigned(panic_header) + unsigned(panic_header.eph_stackshot_offset) 927 panic_log_magic = unsigned(panic_header.mph_magic) 932 cur_debug_buf_ptr_offset = (unsigned(kern.globals.debug_buf_ptr) - unsigned(panic_header)) 942 panic_stackshot_addr = unsigned(panic_header) + unsigned(panic_header.mph_stackshot_offset) 1149 ext_paniclog_addr = unsigned(panic_header) + unsigned(panic_header.eph_ext_paniclog_offset) [all …]
|
| H A D | ipcimportancedetail.py | 19 if unsigned(self.task) != 0: 43 if unsigned(self.elem.iii_elem.iie_bits) & xnudefines.IIE_TYPE_MASK: 50 if unsigned(self.elem.iii_elem.iie_bits) & xnudefines.IIE_TYPE_MASK: 63 if unsigned(self.elem.iii_elem.iie_bits) & xnudefines.IIE_TYPE_MASK: 79 …while (unsigned(from_elem.iii_elem.iie_bits) & xnudefines.IIE_TYPE_MASK) == xnudefines.IIE_TYPE_IN… 83 … if (unsigned(from_elem.iii_elem.iie_bits) & xnudefines.IIE_TYPE_MASK) == xnudefines.IIE_TYPE_TASK: 101 if unsigned(iii.iii_elem.iie_bits) & xnudefines.IIE_TYPE_MASK: 110 key = hex(unsigned(task_kobj)) 124 if unsigned(task.task_imp_base):
|
| H A D | waitq.py | 13 g_cnt = unsigned(kern.GetGlobalVariable('g_num_waitqs')) 15 q_hash = unsigned(queue) 29 self._wq = kern.CreateTypedPointerFromAddress(unsigned(addr), 'struct waitq') 30 self._ty = unsigned(self._wq.waitq_type) & 0x7 154 wqs = kern.CreateTypedPointerFromAddress(unsigned(self._wq), 'struct waitq_set') 184 print("{:<#20x} {:<#20x}".format(unsigned(thread), thread.wait_event)) 271 last_waitstr = GetSourceInformationForAddress(unsigned(stats.last_wait[0])) 273 last_wakestr = GetSourceInformationForAddress(unsigned(stats.last_wakeup[0])) 275 fw_str = GetSourceInformationForAddress(unsigned(stats.last_failed_wakeup[0])) 281 …last_waitstr = "{0}->{1}".format(GetSourceInformationForAddress(unsigned(stats.last_wait[f])), las… [all …]
|
| H A D | misc.py | 76 strip_func = kern.StripKernelPAC(unsigned(timer_call.tc_func)) 366 quantum = unsigned(processor.running_timers[0].tc_pqlink.deadline) 370 kperf = unsigned(processor.running_timers[1].tc_pqlink.deadline) 391 input_address = unsigned(addressof(kern.globals.manual_pkt.input)) 392 len_address = unsigned(addressof(kern.globals.manual_pkt.len)) 393 data_address = unsigned(addressof(kern.globals.manual_pkt.data)) 442 input_address = unsigned(addressof(kern.globals.manual_pkt.input)) 443 len_address = unsigned(addressof(kern.globals.manual_pkt.len)) 444 data_address = unsigned(addressof(kern.globals.manual_pkt.data)) 649 if not (unsigned(metadata_hdr[0]) == LBRMagic): [all …]
|
| H A D | ntstat.py | 57 while (unsigned(iter_val) != unsigned(head_first_addr)) and (unsigned(iter_val) != 0) : 75 magic = unsigned(shad.shad_magic) 84 procmagic = unsigned(procdetails.pdet_magic) 110 magic = unsigned(gshad.gshad_magic) 119 procmagic = unsigned(procdetails.pdet_magic) 139 procmagic = unsigned(procdetails.pdet_magic) 175 magic = unsigned(shad.shad_magic) 206 magic = unsigned(gshad.gshad_magic) 247 return providers.get(unsigned(provider), "unknown")
|
| H A D | kevent.py | 35 if unsigned(proc_ofiles) == 0: 38 for fd in range(0, unsigned(proc_filedesc.fd_afterlast)): 39 if unsigned(proc_ofiles[fd]) != 0: 42 proc_fd_ftype = unsigned(proc_fd_fglob.fg_ops.fo_type) 74 proc = kern.GetValueFromAddress(unsigned(proc), 'proc_t') 106 addr = kmem.kn_kq_packing.unpack(unsigned(kn.kn_kq_packed)) 118 state = unsigned(kn.kn_status) 119 fops_str = kern.Symbolicate(kern.globals.sysfilt_ops[unsigned(kn.kn_kevent.kei_filtid)]) 157 if unsigned(GetKnoteKqueue(kn)) != unsigned(addressof(kq)): 370 proc = kern.GetValueFromAddress(unsigned(proc), 'proc_t')
|
| H A D | kasan.py | 59 return unsigned(kern.globals.kexts_loaded) 62 pbase = unsigned(kern.globals.shadow_pbase) 63 ptop = unsigned(kern.globals.shadow_ptop) 64 pnext = unsigned(kern.globals.shadow_pnext) 258 return unsigned(hdr.user_size) 283 start = unsigned(self._vme.links.start) 284 end = unsigned(self._vme.links.end) 292 page_size = unsigned(kern.globals.page_size) 310 page_size = unsigned(kern.globals.page_size) 333 if addr < unsigned(vme.links.end) [all …]
|
| H A D | xnutriage.py | 20 a = unsigned(cmd_args[0]) 30 symbol_str = "{:#018x} <{:s}>".format(unsigned(a), cmd_out3[0]) 69 address = OutputAddress([unsigned(link_register)]) 71 address = '{:#018x} <???>'.format(unsigned(link_register)) 73 a = dereference(kern.GetValueFromAddress(unsigned(a), 'uintptr_t *'))
|
| H A D | skywalk.py | 24 for fd in range(0, unsigned(proc_filedesc.fd_afterlast)): 25 if unsigned(proc_ofiles[fd]) != 0: 27 if (unsigned(proc_fd_fglob.fg_ops.fo_type) == 10): 476 while unsigned(iter_val) != 0 : 517 for fd in range(0, unsigned(proc_filedesc.fd_afterlast)): 518 if unsigned(proc_ofiles[fd]) != 0: 681 unsigned(addr[i+1])) for i in range(0, 16, 2)]) 751 if unsigned(b._inuse) == 0: 755 if unsigned(s._node) != 0: 760 if unsigned(s._node) == 0: [all …]
|
| H A D | kext.py | 10 unsigned, 71 kmod = GetKmodWithAddr(unsigned(self.address)) 148 mobj = LoadMachO(unsigned(kext.address), unsigned(kext.size)) 155 address=unsigned(kext.address), 203 mobj = LoadMachO(unsigned(kext.kmod.address), unsigned(kext.kmod.size)) 222 addr = unsigned(addressof(uuid)) 249 summary = FindKextSummary(unsigned(kmod.address)) 265 if addr == unsigned(kmod.address): 345 if (any(seg_contains(mod.segments, unsigned(addr)))) 358 sum = FindKextSummary(unsigned(kmod.address)) [all …]
|
| H A D | mbufs.py | 110 mlen = unsigned(mp.m_hdr.mh_len) 375 …trn = (mca.mca_next_trn + unsigned(kern.globals.mca_trn_max) - 1) % unsigned(kern.globals.mca_trn_… 402 …trn = (mca.mca_next_trn + unsigned(kern.globals.mca_trn_max) - 1) % unsigned(kern.globals.mca_trn_… 439 while (x < unsigned(kern.globals.maxslabgrp)): 507 x = unsigned(kern.globals.maxslabgrp) 589 nslabspmb = unsigned((1 << MBSHIFT) >> unsigned(kern.globals.page_shift)) 590 while (x < unsigned(kern.globals.slabgrp)): 684 flags = (unsigned)(mbuf_flags & 0xff) 745 flags = (unsigned)(mbuf_crumbs & 0xffff) 783 mca_class = unsigned(cp.mc_private) [all …]
|
| H A D | userspace.py | 104 cur_pc = unsigned(upcb.uss.ss_64.pc) 105 cur_fp = unsigned(upcb.uss.ss_64.fp) 111 cur_pc = unsigned(upcb.uss.ss_32.pc) 112 cur_fp = unsigned(upcb.uss.ss_32.r[7]) 379 kdp_pmap_addr = unsigned(addressof(kern.globals.kdp_pmap)) 380 if not WriteInt64ToMemoryAddress(unsigned(task.map.pmap), kdp_pmap_addr): 574 dyld_all_image_infos_address = unsigned(task.all_image_info_addr) 680 dyld_all_image_infos_address = unsigned(task.all_image_info_addr) 866 memory_begin_address = unsigned(kcdata.kcd_addr_begin) 867 memory_size = 16 + unsigned(kcdata.kcd_addr_end) - memory_begin_address [all …]
|
| /xnu-11215/tools/lldbmacros/core/ |
| H A D | kernelcore.py | 337 return unsigned(self.globals.cpu_data_ptr[cpu].cpu_pcpu_base) 341 return unsigned(data_entries[cpu].cpu_data_vaddr) - unsigned(BootCpuData) 353 addr = unsigned(var) + self.PERCPU_BASE(cpu) 469 if size > unsigned(self.GetGlobalVariable("page_size")): 494 …if (addr >= int(unsigned(ptov_table[i].pa))) and (addr < (int(unsigned(ptov_table[i].pa)) + int(un… 495 … return (addr - int(unsigned(ptov_table[i].pa)) + int(unsigned(ptov_table[i].va))) 500 …if (addr >= int(unsigned(papt_table[i].paddr_start))) and (addr < (int(unsigned(papt_table[i].padd… 501 … return (addr - int(unsigned(papt_table[i].paddr_start)) + int(unsigned(papt_table[i].papt_start))) 503 return (addr - unsigned(self.globals.gPhysBase) + unsigned(self.globals.gVirtBase)) 511 …return (addr - unsigned(self.GetGlobalVariable("gPhysBase")) + unsigned(self.GetGlobalVariable("gV… [all …]
|
| /xnu-11215/tools/lldbmacros/usertaskdebugging/ |
| H A D | userprocess.py | 39 self.thread_id = unsigned(self.thread.thread_id) 68 return unsigned(getattr(self.saved_state, name)) 72 return unsigned(getattr(self.saved_state.isf, name)) 73 return unsigned(getattr(self.saved_state, name)) 79 retval = unsigned(getattr(self.saved_state, name)) 111 self.cputype = unsigned(self.proc.p_cputype) 112 self.cpusubtype = unsigned(self.proc.p_cpusubtype) 196 pinfo['parent-pid'] = "%x" % (unsigned(self.proc.p_ppid)) 201 pinfo['real-uid'] = "%x" % (unsigned(self.proc.p_ruid)) 202 pinfo['real-gid'] = "%x" % (unsigned(self.proc.p_rgid)) [all …]
|
| /xnu-11215/osfmk/console/art/ |
| H A D | progress.m | 26 unsigned int i; 139 printf("\nstatic const unsigned char progressmeter_leftcap1x[2][%d * %d] = {", 9, 18); 145 printf("\nstatic const unsigned char progressmeter_leftcap2x[2][4 * %d * %d] = {", 9, 18); 151 printf("\nstatic const unsigned char progressmeter_middle1x[2][%d * %d] = {", 1, 18); 157 printf("\nstatic const unsigned char progressmeter_middle2x[2][2 * %d * %d] = {", 1, 18); 163 printf("\nstatic const unsigned char progressmeter_rightcap1x[2][%d * %d] = {", 9, 18); 169 printf("\nstatic const unsigned char progressmeter_rightcap2x[2][4 * %d * %d] = {", 9, 18);
|
| /xnu-11215/bsd/man/man2/ |
| H A D | getdirentriesattr.2 | 31 …id * attrBuf" "size_t attrBufSize" "unsigned int * count" "unsigned int * basep" "unsigned int * n… 34 …d * attrBuf" "size_t attrBufSize" "unsigned long * count" "unsigned long * basep" "unsigned long *… 142 .Vt unsigned long 144 .Vt unsigned int 363 unsigned int index; 364 unsigned int count; 366 unsigned int oldState; 367 unsigned int newState; 369 unsigned long index; 370 unsigned long count; [all …]
|