getpid 237 arch/um/os-Linux/umid.c snprintf(pid, sizeof(pid), "%d\n", getpid()); getpid 94 arch/um/os-Linux/util.c if (kill(getpid(), SIGABRT) < 0) getpid 1127 drivers/i3c/master.c struct i3c_ccc_getpid *getpid; getpid 1132 drivers/i3c/master.c getpid = i3c_ccc_cmd_dest_init(&dest, info->dyn_addr, sizeof(*getpid)); getpid 1133 drivers/i3c/master.c if (!getpid) getpid 1142 drivers/i3c/master.c for (i = 0; i < sizeof(getpid->pid); i++) { getpid 1143 drivers/i3c/master.c int sft = (sizeof(getpid->pid) - i - 1) * 8; getpid 1145 drivers/i3c/master.c info->pid |= (u64)getpid->pid[i] << sft; getpid 891 kernel/sys.c SYSCALL_DEFINE0(getpid) getpid 98 samples/bpf/task_fd_query_user.c err = bpf_task_fd_query(getpid(), event_fd[prog_fd_idx], 0, buf, &len, getpid 156 samples/bpf/task_fd_query_user.c CHECK_PERROR_RET(bpf_task_fd_query(getpid(), fd, 0, buf, buf_len, getpid 231 samples/bpf/task_fd_query_user.c res = snprintf(event_alias, sizeof(event_alias), "test_%d", getpid()); getpid 263 samples/bpf/task_fd_query_user.c err = bpf_task_fd_query(getpid(), kfd, 0, buf, &len, getpid 17 samples/bpf/test_current_task_under_cgroup_user.c pid_t remote_pid, local_pid = getpid(); getpid 58 samples/connector/ucon.c nlh->nlmsg_pid = getpid(); getpid 30 samples/pidfd/pidfd-metadata.c printf("%d\n", getpid()); getpid 251 samples/timers/hpet_example.c if ((fcntl(fd, F_SETOWN, getpid()) == 1) || getpid 876 scripts/kconfig/confdata.c name, (int)getpid()); getpid 176 tools/accounting/getdelays.c rc = send_cmd(sd, GENL_ID_CTRL, getpid(), CTRL_CMD_GETFAMILY, getpid 390 tools/accounting/getdelays.c mypid = getpid(); getpid 40 tools/bpf/bpf_jit_disasm.c snprintf(tpath, size, "/proc/%d/exe", (int) getpid()); getpid 44 tools/bpf/bpftool/perf.c bpf_task_fd_query(getpid(), fd, 0, buf, &len, &prog_id, getpid 171 tools/hv/hv_fcopy_daemon.c syslog(LOG_INFO, "starting; pid is:%d", getpid()); getpid 124 tools/hv/hv_kvp_daemon.c fl.l_pid = getpid(); getpid 136 tools/hv/hv_kvp_daemon.c fl.l_pid = getpid(); getpid 1401 tools/hv/hv_kvp_daemon.c syslog(LOG_INFO, "KVP starting; pid is:%d", getpid()); getpid 233 tools/hv/hv_vss_daemon.c syslog(LOG_INFO, "VSS starting; pid is:%d", getpid()); getpid 2433 tools/include/nolibc/nolibc.h return kill(getpid(), signal); getpid 71 tools/perf/arch/x86/tests/perf-time-to-tsc.c threads = thread_map__new(-1, getpid(), UINT_MAX); getpid 127 tools/perf/arch/x86/tests/perf-time-to-tsc.c (pid_t)event->comm.pid != getpid() || getpid 128 tools/perf/arch/x86/tests/perf-time-to-tsc.c (pid_t)event->comm.tid != getpid()) getpid 353 tools/perf/bench/epoll-ctl.c getpid(), nthreads, nfds, nsecs); getpid 473 tools/perf/bench/epoll-wait.c getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs); getpid 155 tools/perf/bench/futex-hash.c getpid(), nthreads, nfutexes, fshared ? "shared":"private", nsecs); getpid 179 tools/perf/bench/futex-lock-pi.c getpid(), nthreads, nsecs); getpid 149 tools/perf/bench/futex-requeue.c "%d at a time.\n\n", getpid(), nthreads, getpid 269 tools/perf/bench/futex-wake-parallel.c getpid(), nblocked_threads, fshared ? "shared":"private", getpid 155 tools/perf/bench/futex-wake.c getpid(), nthreads, fshared ? "shared":"private", &futex1, nwakes); getpid 73 tools/perf/bench/mem-functions.c cycles_fd = sys_perf_event_open(&cycle_attr, getpid(), -1, -1, perf_event_open_cloexec_flag()); getpid 701 tools/perf/builtin-stat.c kill(getpid(), signr); getpid 1726 tools/perf/builtin-timechart.c if (asprintf(&filter, "common_pid != %d", getpid()) < 0) { getpid 3160 tools/perf/builtin-trace.c getpid(), getpid 3816 tools/perf/builtin-trace.c trace->filter_pids.entries[0] = getpid(); getpid 253 tools/perf/examples/bpf/augmented_raw_syscalls.c if (pid_filter__has(&pids_filtered, getpid())) getpid 278 tools/perf/examples/bpf/augmented_raw_syscalls.c if (pid_filter__has(&pids_filtered, getpid())) getpid 276 tools/perf/jvmti/jvmti_agent.c ret = snprintf(dump_path, PATH_MAX, "%s/jit-%i.dump", jit_path, getpid()); getpid 280 tools/perf/jvmti/jvmti_agent.c " JITDUMPDIR, and HOME variables", jit_path, getpid()); getpid 313 tools/perf/jvmti/jvmti_agent.c header.pid = getpid(); getpid 386 tools/perf/jvmti/jvmti_agent.c rec.pid = getpid(); getpid 101 tools/perf/tests/backward-ring-buffer.c snprintf(pid, sizeof(pid), "%d", getpid()); getpid 130 tools/perf/tests/bp_signal.c fcntl(fd, F_SETOWN, getpid()); getpid 105 tools/perf/tests/bp_signal_overflow.c fcntl(fd, F_SETOWN, getpid()); getpid 142 tools/perf/tests/bpf.c snprintf(pid, sizeof(pid), "%d", getpid()); getpid 350 tools/perf/tests/builtin-test.c pr_debug("test child forked, pid %d\n", getpid()); getpid 576 tools/perf/tests/code-reading.c pid = getpid(); getpid 38 tools/perf/tests/dwarf-unwind.c pid_t pid = getpid(); getpid 204 tools/perf/tests/dwarf-unwind.c thread = machine__find_thread(machine, getpid(), getpid()); getpid 67 tools/perf/tests/event-times.c threads = thread_map__new(-1, getpid(), UINT_MAX); getpid 93 tools/perf/tests/event-times.c threads = thread_map__new(-1, getpid(), UINT_MAX); getpid 45 tools/perf/tests/keep-tracking.c (pid_t)event->comm.pid == getpid() && getpid 46 tools/perf/tests/keep-tracking.c (pid_t)event->comm.tid == getpid() && getpid 80 tools/perf/tests/keep-tracking.c threads = thread_map__new(-1, getpid(), UINT_MAX); getpid 48 tools/perf/tests/mmap-basic.c threads = thread_map__new(-1, getpid(), UINT_MAX); getpid 146 tools/perf/tests/mmap-thread-lookup.c map = thread_map__new_by_pid(getpid()); getpid 190 tools/perf/tests/mmap-thread-lookup.c thread = machine__findnew_thread(machine, getpid(), td->tid); getpid 30 tools/perf/tests/openat-syscall-all-cpus.c struct perf_thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); getpid 64 tools/perf/tests/openat-syscall-tp-fields.c perf_thread_map__set_pid(evlist->core.threads, 0, getpid()); getpid 21 tools/perf/tests/openat-syscall.c struct perf_thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); getpid 64 tools/perf/tests/sw-clock.c threads = thread_map__new_by_tid(getpid()); getpid 74 tools/perf/tests/switch-tracking.c (pid_t)event->comm.pid == getpid() && getpid 75 tools/perf/tests/switch-tracking.c (pid_t)event->comm.tid == getpid() && getpid 343 tools/perf/tests/switch-tracking.c threads = thread_map__new(-1, getpid(), UINT_MAX); getpid 30 tools/perf/tests/thread-map.c map = thread_map__new_by_pid(getpid()); getpid 37 tools/perf/tests/thread-map.c perf_thread_map__pid(map, 0) == getpid()); getpid 71 tools/perf/tests/thread-map.c TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid()); getpid 79 tools/perf/tests/thread-map.c perf_thread_map__pid(threads, 0) == getpid()); getpid 97 tools/perf/tests/thread-map.c threads = thread_map__new_by_pid(getpid()); getpid 115 tools/perf/tests/thread-map.c asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); getpid 2151 tools/perf/util/parse-events.c snprintf(new_filter, sizeof(new_filter), "common_pid != %d", getpid()); getpid 84 tools/power/cpupower/bench/system.c if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { getpid 84 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { getpid 87 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h return sched_setaffinity(getpid(), sizeof(set), &set); getpid 146 tools/testing/selftests/bpf/cgroup_helpers.c pid_t pid = getpid(); getpid 89 tools/testing/selftests/bpf/get_cgroup_id_user.c pid = getpid(); getpid 112 tools/testing/selftests/bpf/get_cgroup_id_user.c pmu_fd = syscall(__NR_perf_event_open, &attr, getpid(), -1, -1, 0); getpid 24 tools/testing/selftests/bpf/prog_tests/task_fd_query_rawtp.c err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, getpid 38 tools/testing/selftests/bpf/prog_tests/task_fd_query_rawtp.c err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, getpid 50 tools/testing/selftests/bpf/prog_tests/task_fd_query_rawtp.c err = bpf_task_fd_query(getpid(), efd, 0, 0, &len, &prog_id, getpid 62 tools/testing/selftests/bpf/prog_tests/task_fd_query_rawtp.c err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, getpid 54 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c err = bpf_task_fd_query(getpid(), pmu_fd, 0, buf, &len, &prog_id, getpid 98 tools/testing/selftests/bpf/test_tag.c snprintf(buff, sizeof(buff), "/proc/%d/fdinfo/%d", getpid(), getpid 141 tools/testing/selftests/breakpoints/breakpoint_test.c kill(getpid(), SIGUSR1); getpid 216 tools/testing/selftests/breakpoints/breakpoint_test.c kill(getpid(), SIGUSR1); getpid 261 tools/testing/selftests/breakpoints/breakpoint_test.c kill(getpid(), SIGUSR1); getpid 196 tools/testing/selftests/capabilities/test_execve.c if (getpid() != mpid) getpid 443 tools/testing/selftests/capabilities/test_execve.c mpid = getpid(); getpid 287 tools/testing/selftests/cgroup/cgroup_util.c snprintf(pidbuf, sizeof(pidbuf), "%d", getpid()); getpid 303 tools/testing/selftests/cgroup/cgroup_util.c snprintf(buf, sizeof(buf), "%d", getpid()); getpid 326 tools/testing/selftests/cgroup/cgroup_util.c snprintf(buf, sizeof(buf), "%d", getpid()); getpid 43 tools/testing/selftests/kcmp/kcmp_test.c pid1 = getpid(); getpid 88 tools/testing/selftests/kcmp/kcmp_test.c int pid2 = getpid(); getpid 75 tools/testing/selftests/kvm/lib/assert.c file, line, exp_str, getpid(), _gettid(), getpid 70 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c srand(getpid()); getpid 138 tools/testing/selftests/pidfd/pidfd_open_test.c pidfd = sys_pidfd_open(getpid(), 1); getpid 147 tools/testing/selftests/pidfd/pidfd_open_test.c pidfd = sys_pidfd_open(getpid(), 0); getpid 347 tools/testing/selftests/pidfd/pidfd_test.c getpid(), syscall(SYS_gettid)); getpid 353 tools/testing/selftests/pidfd/pidfd_test.c getpid(), syscall(SYS_gettid)); getpid 392 tools/testing/selftests/pidfd/pidfd_test.c ksft_print_msg("Child (pidfd): starting. pid %d tid %d\n", getpid(), getpid 411 tools/testing/selftests/pidfd/pidfd_test.c ksft_print_msg("Parent: pid: %d\n", getpid()); getpid 445 tools/testing/selftests/pidfd/pidfd_test.c getpid(), syscall(SYS_gettid)); getpid 447 tools/testing/selftests/pidfd/pidfd_test.c ksft_print_msg("Child Thread: DONE. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); getpid 456 tools/testing/selftests/pidfd/pidfd_test.c ksft_print_msg("Child: starting. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); getpid 483 tools/testing/selftests/pidfd/pidfd_test.c ksft_print_msg("Parent: pid: %d\n", getpid()); getpid 143 tools/testing/selftests/pidfd/pidfd_wait.c kill(getpid(), SIGSTOP); getpid 144 tools/testing/selftests/pidfd/pidfd_wait.c kill(getpid(), SIGSTOP); getpid 478 tools/testing/selftests/powerpc/benchmarks/context_switch.c setpgid(getpid(), getpid()); getpid 315 tools/testing/selftests/powerpc/benchmarks/fork.c setpgid(getpid(), getpid()); getpid 80 tools/testing/selftests/powerpc/dscr/dscr_default_test.c srand(getpid()); getpid 24 tools/testing/selftests/powerpc/dscr/dscr_explicit_test.c srand(getpid()); getpid 25 tools/testing/selftests/powerpc/dscr/dscr_inherit_test.c srand(getpid()); getpid 51 tools/testing/selftests/powerpc/mm/large_vm_fork_separation.c pid = getpid(); getpid 620 tools/testing/selftests/powerpc/mm/tlbie_test.c key_t shm_key = (key_t) getpid(); getpid 625 tools/testing/selftests/powerpc/mm/tlbie_test.c "/tmp/logdir-%u", (unsigned int)getpid()); getpid 144 tools/testing/selftests/powerpc/mm/wild_bctr.c kill(getpid(), SIGUSR2); getpid 141 tools/testing/selftests/powerpc/pmu/lib.c printf("main test running as pid %d\n", getpid()); getpid 176 tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c kill(getpid(), SIGUSR1); getpid 77 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c pid_t pid = getpid(), tid = syscall(SYS_gettid); getpid 226 tools/testing/selftests/powerpc/signal/sigfuz.c srand(time(NULL) + getpid()); getpid 40 tools/testing/selftests/powerpc/signal/signal.c pid_t ppid = getpid(); getpid 72 tools/testing/selftests/powerpc/signal/signal_tm.c rc = tm_signal_self(getpid(), SIGUSR1, &ret); getpid 79 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-fpu.c pid_t pid = getpid(); getpid 81 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-gpr.c pid_t pid = getpid(); getpid 104 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c pid_t pid = getpid(); getpid 153 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c pid_t pid = getpid(); getpid 85 tools/testing/selftests/ptrace/get_syscall_info.c pid = getpid(); getpid 25 tools/testing/selftests/seccomp/seccomp_benchmark.c pid = getpid(); getpid 1314 tools/testing/selftests/seccomp/seccomp_bpf.c mypid = getpid(); getpid 1334 tools/testing/selftests/seccomp/seccomp_bpf.c mypid = getpid(); getpid 1440 tools/testing/selftests/seccomp/seccomp_bpf.c pid_t tracee = getpid(); getpid 1843 tools/testing/selftests/seccomp/seccomp_bpf.c self->mypid = getpid(); getpid 231 tools/testing/selftests/uevent/uevent_filtering.c self = getpid(); getpid 27 tools/testing/selftests/vm/map_fixed_noreplace.c snprintf(cmd, sizeof(cmd), "cat /proc/%d/maps", getpid()); getpid 54 tools/testing/selftests/x86/mov_ss_trap.c pid_t parent = getpid(); getpid 128 tools/testing/selftests/x86/protection_keys.c sprintf(pidstr, "%d", getpid()); getpid 340 tools/testing/selftests/x86/protection_keys.c dprintf2("[%d] SIGCHLD: %d\n", getpid(), x); getpid 382 tools/testing/selftests/x86/protection_keys.c dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); getpid 1142 tools/testing/selftests/x86/protection_keys.c dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); getpid 1257 tools/testing/selftests/x86/protection_keys.c dprintf1("[%d] child pid: %d\n", getpid(), child_pid); getpid 1262 tools/testing/selftests/x86/protection_keys.c dprintf1("[%d] attach ret: %ld %d\n", getpid(), ret, __LINE__); getpid 149 tools/testing/selftests/x86/ptrace_syscall.c if (args.nr != getpid() || getpid 161 tools/testing/selftests/x86/ptrace_syscall.c args.arg0 = getpid(); getpid 165 tools/testing/selftests/x86/ptrace_syscall.c args.arg0 != getpid() || args.arg1 != SIGUSR1 || args.arg2 != 12 || getpid 186 tools/testing/selftests/x86/ptrace_syscall.c pid_t pid = getpid(), tid = syscall(SYS_gettid); getpid 306 tools/testing/selftests/x86/ptrace_syscall.c pid_t pid = getpid(), tid = syscall(SYS_gettid); getpid 476 tools/testing/selftests/x86/test_vsyscall.c ret = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); getpid 109 tools/testing/selftests/x86/unwind_vdso.c bool ok = (eax == SYS_getpid || eax == getpid()) && getpid 478 tools/usb/usbip/src/usbipd.c fprintf(fp, "%d\n", getpid()); getpid 101 tools/virtio/vringh_test.c if (sched_setaffinity(getpid(), sizeof(set), &set) == 0) { getpid 192 tools/virtio/vringh_test.c if (sched_setaffinity(getpid(), sizeof(cpu_set), &cpu_set)) getpid 314 tools/virtio/vringh_test.c if (sched_setaffinity(getpid(), sizeof(cpu_set), &cpu_set))