Lines Matching defs:pid
71 static pid_t pid = 0;
485 pid = atoi (arg);
486 if (pid == 0)
567 if (pid == 0 && show_one_tid == true)
571 if ((pid == 0 && core == NULL) || (pid != 0 && core != NULL))
575 if (pid != 0)
581 int err = dwfl_linux_proc_report (dwfl, pid);
583 error (EXIT_BAD, 0, "dwfl_linux_proc_report pid %lld: %s",
584 (long long) pid, dwfl_errmsg (-1));
586 error (EXIT_BAD, err, "dwfl_linux_proc_report pid %lld",
587 (long long) pid);
602 if (pid != 0)
604 int err = dwfl_linux_proc_attach (dwfl, pid, false);
606 error (EXIT_BAD, 0, "dwfl_linux_proc_attach pid %lld: %s",
607 (long long) pid, dwfl_errmsg (-1));
609 error (EXIT_BAD, err, "dwfl_linux_proc_attach pid %lld",
610 (long long) pid);
644 { "pid", 'p', "PID", 0,
700 pid != 0 ? "process" : "core");
717 switch (dwfl_getthread_frames (dwfl, pid, frame_callback, &frames))
728 print_frames (&frames, pid, err, "dwfl_getthread_frames");
733 pid != 0 ? "process" : "core");