Lines Matching refs:printf
29 printf("Only found %d processes running!\n", process_count); in get_pid_for_process_name()
61 printf("Did not find process '%s'.\n", procname); in get_pid_for_process_name()
65 printf("Warning: More than one process '%s'!\n", procname); in get_pid_for_process_name()
66 printf(" defaulting to the highest-pid one, %d\n", highest_pid); in get_pid_for_process_name()
80 printf("Could not find process with pid of %d\n", (int)pid); in get_process_name_for_pid()
103 printf("Could not get kinfo_proc for pid %d\n", (int)pid); in get_kinfo_proc_for_pid()
123 printf("Error - unable to get basic thread info for a thread\n"); in get_thread_basic_info()
141 printf("Error - unable to get thread ident for a thread\n"); in get_thread_identifier_info()
167 printf("Error - unable to get mach port names for inferior.\n"); in inferior_namespace_mach_port_num()
206 printf("Error - unable to get registers for a thread\n"); in get_current_pc()
225 printf("Error - unable to get registers for a thread\n"); in get_current_pc()
238 printf("Error - unable to get registers for a thread\n"); in get_current_pc()
275 printf("Usage: tdump [-l] [-v] [-r] pid/procname\n"); in main()
294 printf("Usage: tdump [-l] [-v] pid/procname\n"); in main()
312 printf("Usage: tdump [-l] [-v] pid/procname\n"); in main()
327 printf("pid %d (%s) is currently ", pid, process_name); in main()
330 printf("being created by fork"); in main()
333 printf("runnable"); in main()
336 printf("sleeping on an address"); in main()
339 printf("suspended"); in main()
342 printf("zombie state - awaiting collection by parent"); in main()
345 printf("unknown"); in main()
348 printf(" and is being debugged."); in main()
351 printf("\n"); in main()
356 printf("pid %d (%s) is restricted so nothing can attach to it.\n", pid, in main()
362 printf("Error - unable to task_for_pid()\n"); in main()
371 printf("Error - unable to call task_info.\n"); in main()
374 printf("Task suspend count: %d.\n", info.suspend_count); in main()
384 printf("Iteration %d:\n", loop_cnt++); in main()
390 printf("Error - unable to get thread list\n"); in main()
393 printf("pid %d has %d threads\n", pid, thread_count); in main()
395 printf("\n"); in main()
406 printf("thread #%d, system-wide-unique-tid 0x%llx, suspend count is %d, ", in main()
409 printf("pc 0x%016llx, ", pc); in main()
411 printf("pc 0x%08llx, ", pc); in main()
412 printf("run state is "); in main()
433 printf(" pthread handle id 0x%llx (not the same value as " in main()
442 printf(" thread name '%s'\n", pth.pth_name); in main()
444 printf(" libdispatch qaddr 0x%llx (not the same as the " in main()
449 printf( in main()
455 printf(" (inferior port namepsace) mach port # 0x%4.4x\n", in main()
457 printf(" user %d.%06ds, system %d.%06ds", in main()
464 printf(", using %.1f%% cpu currently", cpu_percentage); in main()
467 printf(", this thread has slept for %d seconds", in main()
470 printf("\n "); in main()
471 printf("scheduling policy %d", basic_info->policy); in main()
474 printf(", flags %d", basic_info->flags); in main()
476 printf(" (thread is swapped out)"); in main()
478 printf(" (thread is idle)"); in main()
481 printf(", current pri %d, max pri %d", pth.pth_curpri, in main()
484 printf("\n\n"); in main()
490 printf("\n"); in main()
499 printf("Error resuming task: %d.", err); in main()