Home
last modified time | relevance | path

Searched refs:int (Results 1 – 25 of 99) sorted by relevance

1234

/xnu-11215/tools/lldbmacros/core/
H A Dcvalue.py155 return int(self) + int(other)
158 return int(self) + int(other)
161 return int(self) - int(other)
164 return int(other) - int(self)
167 return int(self) * int(other)
170 return int(self) * int(other)
179 return int(self) % int(other)
182 return int(other) % int(self)
200 return int(self) & int(other)
203 return int(other) & int(self)
[all …]
H A Dkernelcore.py295 if type(int(1)) != type(addr):
297 addr = int(addr, 16)
299 addr = int(addr)
369 return int(symbol.GetStartAddress().GetLoadAddress(target))
373 def GetValueFromAddress(self, addr: int, type_str: str = 'void *') -> value: argument
389 def CreateValueFromAddress(self, addr: int, type_str: str = 'void *') -> value: argument
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)))
/xnu-11215/tools/lldbmacros/
H A Dkevent.py16 if int(proc.p_fd.fd_wqkqueue) != 0:
56 if int(proc_filedesc.fd_kqhash) == 0:
88 if int(proc.p_fd.fd_knlist) != 0:
92 if int(proc.p_fd.fd_knhash) != 0:
120 qos_index = int(kn.kn_qos_index)
131 kq_ptr=int(GetKnoteKqueue(kn)),
165 return int(req.tr_thread)
188 state = int(kq.kq_state)
191 ptr=int(kq),
260 ptr=int(kqwl),
[all …]
H A Dnet.py482 if (int(tp) != 0):
617 …out_string += " s=" + str(int(so.so_snd.sb_cc)) + " r=" + str(int(so.so_rcv.sb_cc)) + " usecnt=" +…
693 …out_string += "total sockets " + str(int(sock_fd_seen)) + " snd_cc " + str(int(snd_cc)) + " rcv_cc…
1335 while (int(rtd) != 0):
1371 while (int(ifa) != 0):
1396 while (int(ifa) != 0):
1421 while (int(inm) != 0):
1446 while (int(in6m) != 0):
1471 while (int(ifma) != 0):
1769 …out_string += "lastport " + str(int(pcbi.ipi_lastport)) + " lastlow " + str(int(pcbi.ipi_lastlow))…
[all …]
H A Dmbufs.py66 total += int(mc.mc_full.bl_total) * int(mc.mc_cpu[0].cc_bktsize)
378 …format((x + 1), sl, sl.sl_next, obj, mca, int(ts), int(sl.sl_class), int(sl.sl_refcnt), int(sl.sl_…
410 out_string += chunk_string_format.format(int(obj), int(mca), int(ts))
467 flags = int(mhflags)
468 length = int(mhlen)
540 if (int(cl) == 0):
543 elif (int(cl) == 1):
546 elif (int(cl) == 2):
663 kgm_pc = mca.mca_trns[int(trn)].mca_stack[int(cnt)]
1132 if (int(len(cmd_args)) > 0 and int(cmd_args[0]) < 5):
[all …]
H A Dpmap.py20 paddr_in_kva = kern.PhysToKernelVirt(int(phys_addr))
618 assert(type(vaddr) in (int, int))
636 tte = int(unsigned(root_tte[root_tt_index]))
681 tte = int(unsigned(dereference(ttep)))
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)))
1062 …if paddr >= int(unsigned(kern.globals.sptm_first_phys)) or paddr < int(unsigned(kern.globals.sptm_…
1143 …return (int(unsigned(fte.cpu_page_table.mapping_refcnt._value)), int(unsigned(fte.cpu_page_table.l…
[all …]
H A Dmisc.py21 present[int(kern.globals.mca_MCA_present)],
22 present[int(kern.globals.mca_control_MSR_present)],
23 present[int(kern.globals.mca_threshold_status_present)]))
41 for i in range(int(kern.globals.mca_error_bank_count)):
126 flags = int(timer_call.tc_flags)
133 flags_str += timer_call_flags[int(flags & mask)]
293 cpu_id = int(processor.cpu_id)
496 lcpu = int(xnudefines.lcpu_self)
529 return int(tb.numer), int(tb.denom)
655 num_lbrs = int(metadata[lbr_size_offset])
[all …]
H A Dprocess.py132 flags = int(proc.p_flag)
159 if int(GetProcPID(p)) == int(pid):
276 state = int(ast)
321 if int(tib.iit_donor) == 1:
445 if int(thread.static_param):
482 state = int(thread.state)
489 if int(thread.inspection):
492 ast = int(thread.ast) | int(thread.reason)
533 return role_strs[int(role)]
804 pid = int(GetProcPID(proc))
[all …]
H A Dkdp.py44 data_addr = int(addressof(kern.globals.manual_pkt))
55 if ( WriteInt64ToMemoryAddress((header_value), int(addressof(pkt.hdr))) and
56 WriteInt32ToMemoryAddress(subcmd, int(addressof(pkt.type))) and
57 WriteStringToMemoryAddress(file_name, int(addressof(pkt.name))) and
58 WriteStringToMemoryAddress(dest_ip, int(addressof(pkt.destip))) and
59 WriteStringToMemoryAddress(router_ip, int(addressof(pkt.routerip)))
63 if not WriteInt32ToMemoryAddress(port, int(addressof(pkt.port))):
200 target_dump_type = int(dumpinfo.type)
222 if int(dumpinfo.name[0]) != 0:
H A Dmemory.py94 if isinstance(value, int):
1111 count = int(cmd_args[1])
1694 if int(vnode.v_flag) & 0x1 and int(hex(vnode.v_mount), 16) !=0:
1708 …if (int(vnode.v_flag) & 0x000001) and int(hex(vnode.v_mount), 16) != 0 and (int(vnode.v_mount.mnt_…
2084 vtype = int(vnode.v_type)
2193 while int(vp) != 0:
2208 while int(vp) != 0:
2223 if int(fdptr.fd_cdir) != 0:
2225 if int(fdptr.fd_rdir) != 0:
4502 if int(count) == 0:
[all …]
H A Dulock.py16 code = int(ull.ull_opcode)
24 if int(ulk.ulk_key_type) == 1:
26 elif int(ulk.ulk_key_type) == 2:
H A Dutils.py39 logfile_name = "/tmp/lldb.%d.log" % int(time.time())
83 return int(sbval.GetAddress())
85 def ArgumentStringToInt(arg_string) -> int:
96 return int(arg_string, 0)
242 addr = int(hex(addr).rstrip('L'), 16)
273 addr = int(hex(addr).rstrip('L'), 16)
289 addr = int(hex(addr).rstrip('L'), 16)
305 addr = int(hex(addr).rstrip('L'), 16)
389 key = int(value)
423 v = int(value)
/xnu-11215/tools/tests/perf_index/PerfIndex_COPS_Module/
H A DPITest.m36 self->setup_func = (int (*)(int, long long, int, void **))f;
39 self->execute_func = (int (*)(int, int, long long, int, void **))f;
44 self->cleanup_func = (void (*)(int, long long))f;
76 int retval;
105 for(int thread_index = 0; thread_index < self->numThreads; thread_index++) {
127 for(int thread_index = 0; thread_index < self->numThreads; thread_index++) {
142 int my_index = (int)[(NSNumber*)[(__bridge NSArray*)arg objectAtIndex:0] integerValue];
146 int work_remainder = test->length % test->numThreads;
/xnu-11215/osfmk/mach/
H A Dmach_types.defs112 * mach_port_seqno_t (1 int)
116 * msgh_ad (1 int)
117 * msg_labels_t (1 int)
300 type vm_purgable_t = int;
306 type vm_sync_t = int;
317 type thread_flavor_t = int;
352 type task_flavor_t = int;
438 type host_flavor_t = int;
505 * policy_t (1 int)
529 type policy_t = int;
[all …]
H A Dclock_types.defs56 type clock_flavor_t = int;
57 type clock_attr_t = array[*:1] of int;
58 type mach_timespec_t = struct[2] of int;
59 type time_t = int;
60 type sleep_type_t = int;
61 type alarm_type_t = int;
62 type clock_res_t = int;
63 type clock_id_t = int;
/xnu-11215/osfmk/console/art/
H A Dprogress.m26 unsigned int i;
49 for (int y = 0; y < height; y++)
52 for (int x = 0; x < width; x++)
60 int onefile(const char * filename, int w, int h)
62 int size;
78 size_t image_length = (int)imageSize.width * (int)imageSize.height;
87 for (int y = 0; y < imageSize.height; y++) {
88 for (int x = 0; x < imageSize.width; x++) {
134 int main (int argc, char * argv[])
/xnu-11215/tools/lldbmacros/tests/lldbmock/
H A Dmemorymock.py68 def serialize(self, value: typing.Any, size: int) -> bytes: argument
72 def deserialize(self, data: bytes, offs: int, size: int) -> typing.Any: argument
104 def serialize(self, value: typing.Any, size: int) -> bytes: argument
107 def deserialize(self, data: bytes, offs: int, size: int) -> typing.Any: argument
118 if isinstance(value, int):
123 def serialize(self, value: typing.Any, size: int) -> bytes: argument
126 def deserialize(self, data: bytes, offs: int, size: int) -> typing.Any: argument
400 def __init__(self, size: int): argument
462 def __init__(self, size: int, serializer=NoSerializer()): argument
534 idx = int(k)
[all …]
/xnu-11215/tests/vm/
H A Dtest_vm_no_pager.m37 static int verbose = 0;
48 static int
52 int ret;
67 static int
71 int total_corpse_count;
72 int ret;
108 int i = 0;
186 …%d) at 0x%016llx returning KERN_FAILURE", exception, mach_error_string((int)code[0]), (int)code[0],
196 int * flavor,
263 parse_args(int argc, char** argv)
[all …]
/xnu-11215/tests/
H A Dipsec.m222 int pfkey_socket = (int)dispatch_source_get_handle(pfkey_source);
235 int i;
399 static int
411 int bufsiz = 0;
438 static int
442 int i;
443 int fd = -1;
458 static int
467 static int
475 bpf_write(int fd)
[all …]
H A Dstackshot_block_owner_14362384.m71 int ret = 0;
245 static int kmutex_action(int action)
247 int ret = 0;
280 int ret = 0;
295 int ret;
325 int ret = 0;
352 static int
355 int ret = 0;
394 int ret = 0;
518 int ret = 0;
[all …]
/xnu-11215/libkdd/
H A Dkdd_main.m20 int main(int argc, char *const*argv) {
22 int c ;
23 int plist = 0;
76 int z = inflate(&stream, Z_NO_FLUSH);
/xnu-11215/config/
H A Dversion.c.template41 const int version_major = VERSION_MAJOR;
42 const int version_minor = VERSION_MINOR;
43 const int version_revision = VERSION_REVISION;
44 const int version_stage = VERSION_STAGE;
45 const int version_prerelease_level = VERSION_PRERELEASE_LEVEL;
/xnu-11215/tools/lldbmacros/usertaskdebugging/
H A Dgdbserver.py145 tid = int(query, 16)
162 regnum = int(args[0], 16)
164 threadid = int(args[1].split(':')[-1], 16)
175 regnum = int(query_index, 16)
184 mem_address = int(addr, 16)
185 mem_size = int(size, 16)
/xnu-11215/bsd/man/man2/
H A Dgetdirentriesattr.230 .Ft int
31 …int fd" "struct attrlist * attrList" "void * attrBuf" "size_t attrBufSize" "unsigned int * count" …
33 .Ft int
144 .Vt unsigned int
358 int err;
359 int junk;
360 int dirFD;
363 unsigned int index;
364 unsigned int count;
366 unsigned int oldState;
[all …]
/xnu-11215/tools/lldbmacros/tests/
H A Dlldb_test_process.py79 def add_mock(self, addr: int, mock: lldbmock.memorymock.BaseMock): argument
100 addr: int argument
107 addr: int, argument
108 size: int, argument
157 def get_process_id(self) -> int:

1234