Home
last modified time | relevance | path

Searched refs:printf (Results 1 – 25 of 470) sorted by relevance

12345678910>>...19

/xnu-8019.80.24/bsd/netkey/
H A Dkey_debug.c72 #define panic(param) { printf(param); exit(-1); }
90 printf("sadb_msg{ version=%u type=%u errno=%u satype=%u\n",
93 printf(" len=%u reserved=%u seq=%u pid=%u\n",
101 printf("sadb_ext{ len=%u type=%u }\n",
105 printf("kdebug_sadb: invalid ext_len=0 was passed.\n");
109 printf("kdebug_sadb: ext_len exceeds end of buffer.\n");
160 printf("kdebug_sadb: invalid ext_type %u was passed.\n",
189 printf("sadb_prop{ replay=%u\n", prop->sadb_prop_replay);
192 printf("sadb_comb{ auth=%u encrypt=%u "
197 printf(" auth_minbits=%u auth_maxbits=%u "
[all …]
/xnu-8019.80.24/tools/
H A Dcred_dump_creds.c52 printf( "sysctl failed \n" ); in main()
53 printf( "\terrno %d - \"%s\" \n", errno, strerror( errno )); in main()
60 printf( "malloc error %d - \"%s\" \n", errno, strerror( errno )); in main()
65 printf( "sysctl 2 failed \n" ); in main()
66 printf( "\terrno %d - \"%s\" \n", errno, strerror( errno )); in main()
79 printf("\n\t dumping credential hash table - total creds %d \n", in dump_cred_hash_table()
82 printf("[%02d] ", i); in dump_cred_hash_table()
93 printf("%p ", credp->credp); in dump_cred()
94 printf("%lu ", credp->cr_ref); in dump_cred()
95 printf("%d ", credp->cr_uid); in dump_cred()
[all …]
H A Dcred_dump_backtraces.c48 printf( "sysctl failed \n" ); in main()
49 printf( "\terrno %d - \"%s\" \n", errno, strerror( errno )); in main()
56 printf( "malloc error %d - \"%s\" \n", errno, strerror( errno )); in main()
61 printf( "sysctl 2 failed \n" ); in main()
62 printf( "\terrno %d - \"%s\" \n", errno, strerror( errno )); in main()
69 printf("number of traces %d \n", bt_buffp->next_slot); in main()
71 printf("[%d] ", i); in main()
73 printf("%p ", btp->stack[j]); in main()
75 printf("\n"); in main()
/xnu-8019.80.24/tools/trace/
H A Dwqtrace.lua8 printf("WARNING: Cannot locate debugid for '%s'\n", codename)
112 printf("%s\tprocess is exiting\n",prefix)
114 printf("%s\tworkqueue marked as exiting and timer is complete\n",prefix)
121 printf("%s\tall threads have exited, cleaning up\n",prefix)
123 printf("%s\tclean up complete\n",prefix)
129 printf("%s\tarming timer to fire in %d us (flags: %x, reqcount: %d)\n",
136 printf("%s\tadd_timer fired (flags: %x, nthreads: %d, thidlecount: %d)\n",
139 printf("%s\tadd_timer completed (start_timer: %x, nthreads: %d, thidlecount: %d)\n",
147 printf("%s\tSelection failed: process exiting\n", prefix)
149 printf("%s\tSelection failed: no request\n", prefix)
[all …]
H A Dbridgetime.lua8 printf("WARNING: Cannot locate debugid for '%s'\n", codename)
52 printf("%s %-15s ( %-10s %-10s ) ----------------------------------------\n",
69 printf("%s %30s( %-10s %-10s ) rate = %f\n",
77 printf("%s ( %-10s %-10s ) @ %-20s\n",
85 printf("%s ( %-10s Sleep )\n",
88 printf("%s ( %-10s Wake )\n",
91 printf("%s ( %-10s Reset )\n",
98 printf("%s ( %-10s %-10s ) %s\n",
108 printf("%s SKIP_RESET:%3d (Cur: %-10s Prev:%-10s) %-10s\n",
112 printf("%s SKIP_DISTANCE: (Cur: %-10s Prev: %-10s) %-10s\n",
[all …]
H A Dkqtrace.lua8 printf("WARNING: Cannot locate debugid for '%s'\n", codename)
222 printf("%s QoS = %s\n", prefix, qos_string(qos))
224 printf("%s request thread = 0x%x, kqrequest state = %s\n", prefix,
242 printf("%s QoS = %s\n", event_prefix_string(buf, workq), qos_string(qos))
251 printf("%s thread = 0x%x, QoS = %s, kqrequest state = %s\n",
257 printf("%s thread = 0x%x, QoS = %s\n", event_prefix_string(buf, true),
267 printf("%s thread = 0x%x, QoS = %s, override QoS delta = %d, kqrequest state = %s%s\n",
278 printf("%s thread = 0x%x, QoS = %s, flags = 0x%x\n", event_prefix_string(buf, false),
284 printf("%s QoS = %s, kqrequest state = %s, override QoS delta = %d\n",
297printf("%s thread = 0x%x, old/new QoS = %s/%s, old/new override QoS delta = %d/%d, kqrequest state…
[all …]
/xnu-8019.80.24/libkern/kxld/
H A DWKdmDecompress.c141 printf("\nIn DECOMPRESSOR\n"); in WKdm_decompress()
142 printf("tempTagsArray is at %p\n", tempTagsArray); in WKdm_decompress()
143 printf("tempQPosArray is at %p\n", tempQPosArray); in WKdm_decompress()
144 printf("tempLowBitsArray is at %p\n", tempLowBitsArray); in WKdm_decompress()
146 printf(" first four words of source buffer are:\n"); in WKdm_decompress()
147 printf(" %u\n %u\n %u\n %u\n", in WKdm_decompress()
153 printf(" first 20 full patterns are: \n"); in WKdm_decompress()
155 printf(" %d", arr[i]); in WKdm_decompress()
157 printf("\n");} in WKdm_decompress()
168 printf(" first 200 tags are: \n"); in WKdm_decompress()
[all …]
H A DWKdmCompress.c132 printf("\nIn WKdm_compress\n"); in WKdm_compress()
133 printf("About to actually compress, src_buf is %u\n", src_buf); in WKdm_compress()
134 printf("dictionary is at %u\n", dictionary); in WKdm_compress()
135 printf("dest_buf is %u next_full_patt is %u\n", dest_buf, next_full_patt); in WKdm_compress()
172 printf("AFTER MODELING in WKdm_compress()\n"); fflush(stdout); in WKdm_compress()
173 printf("tempTagsArray holds %u bytes\n", in WKdm_compress()
175 printf("tempQPosArray holds %u bytes\n", in WKdm_compress()
177 printf("tempLowBitsArray holds %u bytes\n", in WKdm_compress()
180 printf("next_full_patt is %p\n", in WKdm_compress()
183 printf(" i.e., there are %u full patterns\n", in WKdm_compress()
[all …]
/xnu-8019.80.24/tests/
H A Dimm_pinned_control_port_crasher.c56 printf("[Crasher]: Mod refs main thread's self port to 0\n"); in pinned_test_main_thread_mod_ref()
60printf("[Crasher pinned_test_main_thread_mod_ref] mach_port_mod_refs returned %s \n.", mach_error_… in pinned_test_main_thread_mod_ref()
66 printf("[Crasher]: Deallocate pthread_self\n"); in pthread_run()
70printf("[Crasher pinned_test_pthread_dealloc] mach_port_deallocate returned %s \n.", mach_error_st… in pthread_run()
77 printf("[Crasher]: Create a pthread and deallocate its self port\n"); in pinned_test_pthread_dealloc()
88 printf("[Crasher]: Deallocate mach_task_self twice\n"); in pinned_test_task_self_dealloc()
94printf("[Crasher pinned_test_task_self_dealloc] mach_port_deallocate returned %s \n.", mach_error_… in pinned_test_task_self_dealloc()
100 printf("[Crasher]: Mod refs mach_task_self() to 0\n"); in pinned_test_task_self_mod_ref()
103printf("[Crasher pinned_test_task_self_mod_ref] mach_port_mod_refs returned %s \n.", mach_error_st… in pinned_test_task_self_mod_ref()
109 printf("[Crasher]: task_threads should return pinned thread ports. Mod refs them to 0\n"); in pinned_test_task_threads_mod_ref()
[all …]
H A Dprioritize_process_launch_helper.c45 printf("thread info failed to get current priority of the thread\n"); in get_pri()
114 printf("mach_msg_send failed with error %d\n", ret); in send()
140 printf("Client: Starting sync receive\n"); in receive()
151 printf("mach msg rcv returned %d\n", ret); in receive()
156 printf("Did not receive a service port in mach msg %d\n", rcv_msg.body.msgh_descriptor_count); in receive()
173 printf("The priority of child is %d\n", priority); in main()
176 printf("Helper process exiting\n"); in main()
181 printf("Helper process execing\n"); in main()
194 printf("posix_spawnattr_init failed \n"); in main()
199 printf("posix_spawnattr_setflags failed \n"); in main()
[all …]
H A Dfd_table_limits_client.c71 printf("client: Look up bootstrap service port\n"); in connect_to_server()
79 printf("client: Set service port as the resource notify port\n"); in connect_to_server()
102 printf("Usage: ./fd_table_limits_client <soft limit> <hard limit> <test_num>\n"); in main()
106printf("client: soft limit = %d, hard limit = %d, test_num = %d\n", soft_limit, hard_limit, test_n… in main()
118 printf("client: getrlimit failed with err = %d\n", errno); in main()
124 printf("client: raising file open limit from %llu (max %llu) to %d\n", in main()
130 printf("client: setrlimit failed with err = %d\n", errno); in main()
136 printf("client: Starting the fd allocation loop\n"); in main()
141 printf("open(/bin/ls) FD #%d failed with err = %d ", i, errno); in main()
147 printf("client: FD #%d\n", i); in main()
[all …]
H A Dport_table_limits_client.c69 printf("client: Look up bootstrap service port\n"); in connect_to_server()
77 printf("client: Allocate reply port\n"); in connect_to_server()
89 printf("client: Allocate dummy port\n"); in connect_to_server()
113 printf("client: Sending request\n"); in connect_to_server()
122 printf("client: Received reply\n"); in connect_to_server()
152 printf("Usage: ./port_table_limits_client <soft limit> <hard limit> <test_num>\n"); in main()
159 printf("client: Wait for a reply message from server before continuing port allocation\n"); in main()
166 printf("client: Starting the receive right allocation loop\n"); in main()
174 printf("client: Port #%d\n", i); in main()
178 printf("client: Hitting the hard limit\n"); in main()
[all …]
H A Dtext_corruption_helper.c13 printf("In foo()\n"); in foo()
34 printf("Test not running as root\n"); in main()
41 printf("Warm up call to foo()\n"); in main()
47 printf("atan(0) is %g\n", atan(zero)); in main()
49 printf("Warmup call to atan(0) is %g\n", atan(zero)); in main()
52 printf("atan(0) is %g\n", atan(zero)); in main()
/xnu-8019.80.24/osfmk/vm/
H A Dvm_tests.c78 printf("VM_TEST_COLLAPSE_COMPRESSOR:\n"); in vm_test_collapse_compressor()
84 printf("VM_TEST_COLLAPSE_COMPRESSOR: created backing object %p\n", in vm_test_collapse_compressor()
94 printf("VM_TEST_COLLAPSE_COMPRESSOR: " in vm_test_collapse_compressor()
103 printf("VM_TEST_COLLAPSE_COMPRESSOR: " in vm_test_collapse_compressor()
108 printf("VM_TEST_COLLAPSE_COMPRESSOR: compressing backing_object %p\n", in vm_test_collapse_compressor()
114 printf("VM_TEST_COLLAPSE_COMPRESSOR: backing_object %p compressed\n", in vm_test_collapse_compressor()
122 printf("VM_TEST_COLLAPSE_COMPRESSOR: " in vm_test_collapse_compressor()
134 printf("VM_TEST_COLLAPSE_COMPRESSOR: created top object %p\n", in vm_test_collapse_compressor()
144 printf("VM_TEST_COLLAPSE_COMPRESSOR: " in vm_test_collapse_compressor()
151 printf("VM_TEST_COLLAPSE_COMPRESSOR: " in vm_test_collapse_compressor()
[all …]
/xnu-8019.80.24/osfmk/console/art/
H A Dprogress.m36 printf("Image must have no more than 256 unique pixel colors\n");
48 printf("{");
51 printf("\n ");
54 printf("0x%02x,", buffer[x + y*row]);
57 printf("\n}");
68 printf ("ERROR!!! can not open resource file [%s]\n", filename);
116 printf("\n");
136 printf("#include <stdint.h>\n\n");
139 printf("\nstatic const unsigned char progressmeter_leftcap1x[2][%d * %d] = {", 9, 18);
141 printf(",");
[all …]
/xnu-8019.80.24/tools/tests/execperf/
H A Dprintexecinfo.c18 printf("argv = %p\n", argv); in init()
20 printf("argv[%2d] = %p %.100s%s\n", i, argv[i], argv[i], strlen(argv[i]) > 100 ? "..." : ""); in init()
22 printf("envp = %p\n", envp); in init()
24 printf("envp[%2d] = %p %.100s%s\n", i, envp[i], envp[i], strlen(envp[i]) > 100 ? "..." : ""); in init()
26 printf("appl = %p\n", appl); in init()
28 printf("appl[%2d] = %p %.100s%s\n", i, appl[i], appl[i], strlen(appl[i]) > 100 ? "..." : ""); in init()
40 printf("executable load address = 0x%016llx\n", (uint64_t)(uintptr_t)&_mh_execute_header); in printexecinfo()
41 printf("executable cputype 0x%08x cpusubtype 0x%08x (%s:%s)\n", in printexecinfo()
52 printf(" stack address = 0x%016llx\n", stackaddr); in printexecinfo()
71printf(" dyld load address = 0x%016llx\n", (uint64_t)(uintptr_t)all_image_infos->dyldImageLoa… in printdyldinfo()
[all …]
/xnu-8019.80.24/bsd/kern/
H A Dsysv_msg.c84 #define MPRINTF(a) printf(a)
223printf("msginfo.msgssz=%d (0x%x) not a small power of 2; resetting to %d\n", msginfo.msgssz, msgin… in msginit()
228 printf("msginfo.msgseg=%d (> 32767); resetting to %d\n", msginfo.msgseg, MSGSEG); in msginit()
240 printf("msginit: can't allocate msgpool"); in msginit()
245 printf("msginit: can't allocate msgmaps"); in msginit()
251 printf("msginit: can't allocate msghdrs"); in msginit()
257 printf("msginit: can't allocate msqids"); in msginit()
390 printf("call to msgctl(%d, %d, 0x%qx)\n", msqid, cmd, uap->buf); in msgctl()
399 printf("msqid (%d) out of range (0<=msqid<%d)\n", msqid, in msgctl()
410 printf("no such msqid\n"); in msgctl()
[all …]
H A Dnetboot.c278 printf("netboot: retrieving root path from BSDP response\n"); in get_root_path()
283 printf("netboot: retrieving root path from BOOTP response\n"); in get_root_path()
334 printf("netboot_info_init: rp0='%s' isn't a network path," in netboot_info_init()
362 printf("netboot: NFS Server %s Mount %s", in netboot_info_init()
382 printf(" Image %s", info->image_path); in netboot_info_init()
384 printf("\n"); in netboot_info_init()
390 printf("netboot: HTTP URL %s\n", info->image_path); in netboot_info_init()
392 printf("netboot: root path uses unrecognized format\n"); in netboot_info_init()
405 printf("netboot: nested image %s\n", info->second_image_path); in netboot_info_init()
455 printf("netboot: path too small %zu < %zu\n", in netboot_rootpath()
[all …]
/xnu-8019.80.24/tools/tests/personas/
H A Dpersona_mgr.c157 printf("%s\n\n", msg); in usage_main()
160 printf("%s v%d.%d\n", PROG_NAME, PROG_VMAJOR, PROG_VMINOR); in usage_main()
161printf("usage: %s [op] [-v] [-i id] [-t type] [-p pid] [-u uid] [-g gid] [-l login] [-G {groupspec… in usage_main()
166 printf("\t%-15s\tOne of: create | destroy | lookup | support\n", "[op]"); in usage_main()
167 printf("\t%-15s\tBe verbose\n", "-v"); in usage_main()
169 printf("\t%-15s\tID of the persona\n", "-i id"); in usage_main()
170 printf("\t%-15s\tType of the persona\n", "-t type"); in usage_main()
171 printf("\t%-15s\tPID of the process whose persona info to lookup\n", "-p pid"); in usage_main()
172 printf("\t%-15s\tUID to use in lookup\n", "-u uid"); in usage_main()
173 printf("\t%-15s\tGID of the persona\n", "-g gid"); in usage_main()
[all …]
H A Dpersona_spawn.c272 printf("%s v%d.%d\n", PERSONA_TEST_NAME, PERSONA_TEST_VMAJOR, PERSONA_TEST_VMINOR); in usage_main()
273 printf("usage: %s [-I id] [-V] [-u uid] [-g gid] [-vw] progname [args...]\n", nm); in usage_main()
274 printf(" Spawn a new process into a new or existing persona.\n"); in usage_main()
279 printf("\t%-10s\tID of the persona\n", "-I id"); in usage_main()
280 printf("\t%-10s\tVerify persona parameters against existing persona (given by -I)\n", "-V"); in usage_main()
281 printf("\t%-10s\tOverride/verify the user ID of the new process\n", "-u uid"); in usage_main()
282 printf("\t%-10s\tOverride/verify the group ID of the new process\n", "-g gid"); in usage_main()
283 printf("\t%-15s\tGroups to which the persona will belong\n", "-G {groupspec}"); in usage_main()
284 printf("\t%-15s\tgroupspec: G1{,G2,G3...}\n", " "); in usage_main()
285 printf("\t%-10s\tBe verbose\n", "-v"); in usage_main()
[all …]
/xnu-8019.80.24/tools/lockstat/
H A Dlockstat.c111 printf("count = %d\n", count); in main()
113 printf("%s\n", lockgroup_info[i].lockgroup_name); in main()
289 printf(" Spinlock acquires misses Name\n"); in print_spin_hdr()
298 printf("%16lld ", curptr->lock_spin_util_cnt); in print_spin()
299 printf("%16lld ", curptr->lock_spin_miss_cnt); in print_spin()
300 printf("%-14s\n", curptr->lockgroup_name); in print_spin()
312 printf("\n"); in print_all_spin()
319 printf("Mutex lock attempts Misses Waits Direct Waits Name\n"); in print_mutex_hdr()
321 printf(" mutex locks misses waits name\n"); in print_mutex_hdr()
331 printf("%16lld ", curptr->lock_mtx_util_cnt); in print_mutex()
[all …]
/xnu-8019.80.24/makedefs/
H A DMakeInc.color27 printf "%-.6s%*.*s %9.9s" \
34 printf "%d" $$$$(($$(LOG_PFX_LEN) - $$$${\#__TMP} - 3)))
35 MACHINE_PFX_COL = $$(shell printf "\\033[1m%s\\033[m" "$$(MACHINE_PFX)")
37 Color0:=$$(shell printf "\\033[m")
39 ColorH:=$$(shell printf "\\033[1m")
41 ColorC:=$$(shell printf "[$$(MACHINE_PFX_COL)] \\033[1;34m")
43 ColorM:=$$(shell printf "[$$(MACHINE_PFX_COL)] \\033[1;32m")
45 ColorL:=$$(shell printf "[$$(MACHINE_PFX_COL)] \\033[1;35m")
47 ColorF:=$$(shell printf "")
49 ColorLF:=$$(shell printf "\\033[3m")
[all …]
/xnu-8019.80.24/tools/tests/jitter/
H A Dtimer_jitter.c62 #define assert(truth, label) do { if(!(truth)) { printf("Thread %p: failure on line %d\n", pthread_…
82printf("Usage: jitter [-w] [-s <random seed>] [-n <min sleep, ns>] [-m <max sleep, ns>] <realtime … in print_usage()
95 printf("Invalid thread policy %s\n", str); in parse_thread_policy()
135 printf("invalid policy type\n"); in thread_setup()
195 printf("Max %s: %.1lfus\n", label, max / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom))); in print_stats_us()
196 printf("Min %s: %.1lfus\n", label, min / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom))); in print_stats_us()
197printf("Avg magnitude of %s: %.1lfus\n", label, avg / 1000.0 * (((double)g_mti.numer) / ((double)g… in print_stats_us()
198 printf("Stddev: %.1lfus\n", stddev / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom))); in print_stats_us()
205 printf("Max %s jitter: %.1lf%%\n", label, max * 100); in print_stats_fract()
206 printf("Min %s jitter: %.1lf%%\n", label, min * 100); in print_stats_fract()
[all …]
/xnu-8019.80.24/bsd/netinet/
H A Dtcp_debug.c184 printf("%x %s:", tp, tcpstates[ostate]);
186 printf("???????? ");
188 printf("%s ", tanames[act]);
208 printf("[%x..%x)", seq, seq + len);
210 printf("%x", seq);
212 printf("@%x, urp=%x", ack, th->th_urp);
218 printf("%s%s", cp, #f); \
223 printf(">");
228 printf("%s", prurequests[req & 0xff]);
230 printf("<%s>", tcptimers[req >> 8]);
[all …]
/xnu-8019.80.24/tools/tests/affinity/
H A Dtags.c17 printf(x); \
23 printf(x); \
53 printf("thread_policy_set(1) returned %d\n", ret); in thread_tag_set()
70 printf("thread_policy_set(1) returned %d\n", ret); in thread_tag_get()
92 printf("Must be run as root\n"); in main()
128 printf(" %d: thread 0x%08x tag %d\n", in main()
133 printf("Enter new tag or <return> to skip or ^D to quit\n"); in main()
136 printf(" %d: thread 0x%08x tag %d: ", in main()
141 printf("\n"); in main()

12345678910>>...19