Home
last modified time | relevance | path

Searched refs:unsigned (Results 1 – 25 of 52) sorted by relevance

123

/xnu-11417.140.69/tools/lldbmacros/
H A Dpmap.py99 input_address = unsigned(addressof(kern.globals.manual_pkt.input))
100 len_address = unsigned(addressof(kern.globals.manual_pkt.len))
101 data_address = unsigned(addressof(kern.globals.manual_pkt.data))
123 …data_address = unsigned(addressof(kern.GetValueFromAddress(int(addressof(kern.globals.manual_pkt.d…
181 input_address = unsigned(addressof(kern.globals.manual_pkt.input))
182 len_address = unsigned(addressof(kern.globals.manual_pkt.len))
183 data_address = unsigned(addressof(kern.globals.manual_pkt.data))
451 pt_paddr = unsigned(pmap_addr_val)
452 pt_valid = (unsigned(pmap_addr_val) != 0)
612 pta_max_level = unsigned(pmap_pt_attr.pta_max_level)
[all …]
H A Dipc.py23 return "ptr = {:#x}, size = {:d}, elem_type = struct ipc_entry".format(unsigned(t), s)
28 return "ptr = {:#x}, size = {:d}, elem_type = struct ipc_port_requests".format(unsigned(t), s)
128 space = unsigned(port.ip_receiver)
142 print(prefix + format_string.format(unsigned(port), addressof(ip_waitq),
143 unsigned(receiver_name), ip_object.io_references, space,
234 return kern.GetValueFromAddress(unsigned(kmsgp.ikm_kdata), 'mach_msg_header_t *')
249 '', unsigned(kmsgp), unsigned(kmsghp), kmsgh=kmsghp)
378 dsc_type = unsigned(dsc.type.type)
385 elif unsigned(dsc.type.type) in (1,3):
405 … return kern.GetValueFromAddress(unsigned(kmsghp) + kmsgh.msgh_size, 'mach_msg_max_trailer_t *')
[all …]
H A Dmemory.py24 return unsigned(vme.vme_offset) << 12
35 packed = unsigned(vme.vme_object_or_delta)
199 slots = unsigned(kern.GetGlobalVariable('pgz_slots'))
200 uses = unsigned(kern.GetGlobalVariable('pgz_uses'))
201 pgzbt = unsigned(kern.GetGlobalVariable('pgz_backtraces'))
202 guards = unsigned(kern.GetGlobalVariable('zone_guard_pages'))
213 page_size = unsigned(kern.globals.page_size)
214 pgz_min = unsigned(zi.zi_pgz_range.min_address) + page_size
215 pgz_max = unsigned(zi.zi_pgz_range.max_address)
284 mag_capacity = unsigned(kern.GetGlobalVariable('_zc_mag_size'))
[all …]
H A Dscheduler.py38 while x < unsigned(kern.globals.machine_info.physical_cpu):
68 aic_base = unsigned(aic._aicBaseAddress)
104 while x < unsigned(kern.globals.machine_info.physical_cpu):
360 if unsigned(active_thread) != 0 :
363 proc_name = "<unknown>" if unsigned(proc_val) == 0 else GetProcName(proc_val)
366 last_dispatch = unsigned(current_processor.last_dispatch)
372 time_since_dispatch = unsigned(cpu_debugger_time - last_dispatch)
374 time_since_debugger = unsigned(cpu_debugger_time - kern.globals.debugger_entry_time)
399 if unsigned(uthread.pth_name) != 0 :
419 if (unsigned(thread.bound_processor) != 0):
[all …]
H A Dprocess.py43 return unsigned(proc.p_pid) if proc is not None else -1
84 unsigned(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):
327 if unsigned(proc_ro) != 0:
329 if unsigned(proc_ro.t_flags_ro) & 0x20:
332 if unsigned(task.t_flags) & 0x40:
336 if showcorpse is True and unsigned(task.corpse_info) != 0:
353 addr = unsigned(uthread) - sizeof('struct thread')
360 addr = unsigned(thread) + sizeof('struct thread')
[all …]
H A Drecount.py4 unsigned,
111 self._times_mach[level] += unsigned(metrics.rm_time_mach)
113 self._instructions[level] += unsigned(metrics.rm_instructions)
114 self._cycles[level] += unsigned(metrics.rm_cycles)
115 if unsigned(metrics.rm_cycles) != 0:
118 self._energy_nj += unsigned(usage.ru_energy_nj)
204 self._group_count = unsigned(kern.globals.real_ncpus)
281 time = unsigned(metrics.rm_time_mach)
288 cycles = unsigned(metrics.rm_cycles)
291 insns = unsigned(metrics.rm_instructions)
[all …]
H A Dipcimportancedetail.py19 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:
103 if (iii_to_task_unsigned := unsigned(iii.iii_to_task)) not in seen:
112 key = hex(unsigned(task_kobj))
126 if unsigned(task.task_imp_base):
H A Dioreg.py151 if vt >= unsigned(kval.address) and vt <= (unsigned(kval.address) + unsigned(kval.size)):
152 return "kmod:{:s}+{:#0x}".format(kval.name, vt - unsigned(kval.address))
219 count = unsigned(kern.globals.sAllClassesDict.count)
516 powerstate = unsigned(iopmpriv.MachineState)
526 unsigned(iopmpriv.DriverTimer),
527 unsigned(iopmpriv.SettleTimeUS),
528 unsigned(iopmpriv.HeadNoteChangeFlags),
529 unsigned(iopmpriv.HeadNotePendingAcks))
532 unsigned(iopmpriv.DriverTimer),
533 unsigned(iopmpriv.HeadNoteChangeFlags),
[all …]
H A Dbank.py15 …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 Dktrace.py83 element = unsigned(cur_typefilter[i * elements_per_class + j])
94 bytes = [unsigned((element >> i) & 0xff) for i in (0, 8, 16, 24, 32, 40, 48, 56)]
111 if unsigned(typefilter) == 0:
121 if unsigned(typefilter) == 0:
144 if unsigned(typefilter) != 0:
288 out += 'owned by: {:<s} [{}]\n'.format(owner, unsigned(owner_pid))
306 unsigned(kern.globals.kperf_status) ==
316 action_samplers.append(unsigned(action.sample))
317 action_user_datas.append(unsigned(action.userdata))
318 action_pid_filters.append(unsigned(action.pid_filter))
[all …]
H A Dxnu.py502 tid = unsigned(thread_obj.thread_id)
509 lldb_process.CreateOSPluginThread(tid, unsigned(thread_obj))
530 if load_addr >= unsigned(kval.address) and \
531 load_addr <= (unsigned(kval.address) + unsigned(kval.size)):
533 symbol_offset = load_addr - unsigned(kval.address)
561 kernel_stack = unsigned(thread_obj.kernel_stack)
565 reserved_stack = unsigned(thread_obj.reserved_stack)
892 panic_log_magic = unsigned(panic_header.eph_magic)
893 panic_log_begin_offset = unsigned(panic_header.eph_panic_log_offset)
894 panic_log_len = unsigned(panic_header.eph_panic_log_len)
[all …]
H A Dmisc.py77 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))
544 print("[{:4d}] ({:s}){:#x}".format(i, elem_type, unsigned(elem)))
[all …]
H A Dntstat.py57 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 Dwaitq.py11 g_cnt = unsigned(kern.GetGlobalVariable('g_num_waitqs'))
21 self._wq = kern.CreateTypedPointerFromAddress(unsigned(addr), 'struct waitq')
22 self._ty = unsigned(self._wq.waitq_type) & 0x7
146 wqs = kern.CreateTypedPointerFromAddress(unsigned(self._wq), 'struct waitq_set')
265 last_waitstr = GetSourceInformationForAddress(unsigned(stats.last_wait[0]))
267 last_wakestr = GetSourceInformationForAddress(unsigned(stats.last_wakeup[0]))
269 fw_str = GetSourceInformationForAddress(unsigned(stats.last_failed_wakeup[0]))
275 …last_waitstr = "{0}->{1}".format(GetSourceInformationForAddress(unsigned(stats.last_wait[f])), las…
277 …last_wakestr = "{0}->{1}".format(GetSourceInformationForAddress(unsigned(stats.last_wakeup[f])), l…
279 …fw_str = "{0}->{1}".format(GetSourceInformationForAddress(unsigned(stats.last_failed_wakeup[f])), …
H A Dkasan.py59 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)
68 pages_used = unsigned(kern.globals.shadow_pages_used)
69 pages_total = unsigned(kern.globals.shadow_pages_total)
83 return unsigned(kern.GetValueFromAddress(shaddr, 'uint8_t *')[0])
212 self._lrz = unsigned(self._meta.zone.z_kasan_redzone)
258 return unsigned(hdr.user_size)
283 start = unsigned(self._vme.links.start)
[all …]
H A Dxnutriage.py19 a = unsigned(cmd_args[0])
29 symbol_str = "{:#018x} <{:s}>".format(unsigned(a), cmd_out3[0])
66 address = OutputAddress([unsigned(link_register)])
68 address = '{:#018x} <???>'.format(unsigned(link_register))
70 a = dereference(kern.GetValueFromAddress(unsigned(a), 'uintptr_t *'))
H A Dkevent.py35 if unsigned(proc_ofiles) == 0:
38 for fd in range(0, unsigned(proc_filedesc.fd_afterlast)):
40 if unsigned(fd_fileproc) != 0:
43 proc_fd_ftype = unsigned(proc_fd_fglob.fg_ops.fo_type)
107 addr = kmem.kn_kq_packing.unpack(unsigned(kn.kn_kq_packed))
119 state = unsigned(kn.kn_status)
120 fops_str = kern.Symbolicate(kern.globals.sysfilt_ops[unsigned(kn.kn_kevent.kei_filtid)])
158 if unsigned(GetKnoteKqueue(kn)) != unsigned(addressof(kq)):
372 proc = kern.GetValueFromAddress(unsigned(proc), 'proc_t')
H A Dskywalk.py24 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:
520 if (unsigned(proc_fd_fglob.fg_ops.fo_type) == 9):
676 return inet_ntoa(struct.pack("I", unsigned(in_addr.s_addr)))
680 addr_raw_string = ":".join(["{0:02x}{1:02x}".format(unsigned(addr[i]),
681 unsigned(addr[i+1])) for i in range(0, 16, 2)])
[all …]
H A Dkext.py10 unsigned,
72 kmod = GetKmodWithAddr(unsigned(self.address))
149 mobj = LoadMachO(unsigned(kext.address), unsigned(kext.size))
156 address=unsigned(kext.address),
204 mobj = LoadMachO(unsigned(kext.kmod.address), unsigned(kext.kmod.size))
223 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))))
360 sum = FindKextSummary(unsigned(kmod.address))
[all …]
H A Dmbufs.py110 mlen = unsigned(mp.m_hdr.mh_len)
117 mlen = unsigned(mp.M_hdr_common.M_hdr.mh_len)
366 nslabspmb = int((1 << MBSHIFT) >> unsigned(kern.globals.page_shift))
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_…
438 nslabspmb = int(((1 << MBSHIFT) >> unsigned(kern.globals.page_shift)))
439 while (x < unsigned(kern.globals.maxslabgrp)):
505 nslabspmb = int(((1 << MBSHIFT) >> unsigned(kern.globals.page_shift)))
507 x = unsigned(kern.globals.maxslabgrp)
589 nslabspmb = unsigned((1 << MBSHIFT) >> unsigned(kern.globals.page_shift))
[all …]
H A Duserspace.py70 … frame = GetUserDataAsString(thread.t_tro.tro_task, unsigned(cur_frame), user_abi_ret_offset*2)
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])
118 raise RuntimeError("Thread {0} has an invalid flavor {1}".format(unsigned(thread), flavor))
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)
678 dyld_all_image_infos_address = unsigned(task.all_image_info_addr)
[all …]
/xnu-11417.140.69/tools/lldbmacros/core/
H A Dkernelcore.py352 return unsigned(self.globals.cpu_data_ptr[cpu].cpu_pcpu_base)
356 return unsigned(data_entries[cpu].cpu_data_vaddr) - unsigned(BootCpuData)
368 addr = unsigned(var) + self.PERCPU_BASE(cpu)
478 return (addr & ~(unsigned(self.GetGlobalVariable("page_size")) - 1))
481 return trunc_page(addr + unsigned(self.GetGlobalVariable("page_size")) - 1)
484 if size > unsigned(self.GetGlobalVariable("page_size")):
486 val = ((addr + size) & (unsigned(self.GetGlobalVariable("page_size"))-1))
509 …if (addr >= int(unsigned(ptov_table[i].pa))) and (addr < (int(unsigned(ptov_table[i].pa)) + int(un…
510 … return (addr - int(unsigned(ptov_table[i].pa)) + int(unsigned(ptov_table[i].va)))
515 …if (addr >= int(unsigned(papt_table[i].paddr_start))) and (addr < (int(unsigned(papt_table[i].padd…
[all …]
/xnu-11417.140.69/tools/lldbmacros/usertaskdebugging/
H A Duserprocess.py39 self.thread_id = unsigned(self.thread.thread_id)
66 return unsigned(getattr(self.saved_state, 'x')[int(name.strip('x'))])
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))
77 retval = unsigned(getattr(self.saved_state, 'r')[int(name.strip('r'))])
79 retval = unsigned(getattr(self.saved_state, name))
111 self.cputype = unsigned(self.proc.p_cputype)
112 self.cpusubtype = unsigned(self.proc.p_cpusubtype)
138 … self.threads[unsigned(thval.thread_id)] = UserThreadObject(thval, self.cputype, self.cpusubtype)
[all …]
/xnu-11417.140.69/osfmk/console/art/
H A Dprogress.m26 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-11417.140.69/bsd/man/man2/
H A Dgetdirentriesattr.231 …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;
365 unsigned int junkBaseP;
366 unsigned int oldState;
367 unsigned int newState;
369 unsigned long index;
[all …]

123