getpid
Defined as a function in:
Referenced (in 243 files total) in:
- arch/um/drivers/vector_user.c, line 214
- arch/um/os-Linux/umid.c, line 230
- arch/um/os-Linux/util.c, line 96
- kernel/sys.c, line 971
- samples/bpf/task_fd_query_user.c, 4 times
- samples/bpf/test_current_task_under_cgroup_user.c, line 16
- samples/connector/ucon.c, line 58
- samples/pidfd/pidfd-metadata.c, line 30
- samples/timers/hpet_example.c, line 251
- scripts/kconfig/confdata.c, line 827
- tools/accounting/getdelays.c, 2 times
- tools/accounting/procacct.c, 2 times
- tools/bpf/bpf_jit_disasm.c, line 41
- tools/bpf/bpftool/perf.c, line 46
- tools/hv/hv_fcopy_uio_daemon.c, line 440
- tools/hv/hv_kvp_daemon.c, 3 times
- tools/hv/hv_vss_daemon.c, line 245
- tools/include/nolibc/sys.h, line 439
- tools/lib/bpf/libbpf.c, 5 times
- tools/lib/bpf/usdt.c, line 985
- tools/perf/bench/epoll-ctl.c, line 366
- tools/perf/bench/epoll-wait.c, line 486
- tools/perf/bench/futex-hash.c, line 166
- tools/perf/bench/futex-lock-pi.c, line 200
- tools/perf/bench/futex-requeue.c, line 208
- tools/perf/bench/futex-wake-parallel.c, line 296
- tools/perf/bench/futex-wake.c, line 178
- tools/perf/bench/mem-functions.c, line 73
- tools/perf/bench/sched-pipe.c, line 118
- tools/perf/bench/synthesize.c, line 125
- tools/perf/builtin-daemon.c, 4 times
- tools/perf/builtin-stat.c, line 1028
- tools/perf/builtin-timechart.c, line 1740
- tools/perf/builtin-trace.c, 4 times
- tools/perf/jvmti/jvmti_agent.c, 4 times
- tools/perf/tests/backward-ring-buffer.c, line 102
- tools/perf/tests/bp_signal.c, line 134
- tools/perf/tests/bp_signal_overflow.c, line 111
- tools/perf/tests/builtin-test.c, line 238
- tools/perf/tests/code-reading.c, line 559
- tools/perf/tests/dlfilter-test.c, line 409
- tools/perf/tests/dwarf-unwind.c, 3 times
- tools/perf/tests/event-times.c, 2 times
- tools/perf/tests/keep-tracking.c, 3 times
- tools/perf/tests/mmap-basic.c, line 49
- tools/perf/tests/mmap-thread-lookup.c, 2 times
- tools/perf/tests/openat-syscall-all-cpus.c, line 31
- tools/perf/tests/openat-syscall-tp-fields.c, line 67
- tools/perf/tests/openat-syscall.c, line 23
- tools/perf/tests/perf-time-to-tsc.c, 3 times
- tools/perf/tests/sw-clock.c, line 66
- tools/perf/tests/switch-tracking.c, 3 times
- tools/perf/tests/tests-scripts.c, line 179
- tools/perf/tests/thread-map.c, 6 times
- tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c, 3 times
- tools/perf/util/parse-events.c, line 2501
- tools/perf/util/util.c, line 574
- tools/power/cpupower/bench/system.c, line 84
- tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h, 2 times
- tools/power/x86/intel-speed-select/isst-daemon.c, 2 times
- tools/sched_ext/scx_qmap.c, line 96
- tools/testing/selftests/arm64/abi/ptrace.c, 2 times
- tools/testing/selftests/arm64/abi/syscall-abi.c, 2 times
- tools/testing/selftests/arm64/abi/tpidr2.c, 11 times
- tools/testing/selftests/arm64/fp/fp-ptrace.c, line 1433
- tools/testing/selftests/arm64/fp/sve-ptrace.c, 2 times
- tools/testing/selftests/arm64/fp/za-fork.c, line 79
- tools/testing/selftests/arm64/fp/za-ptrace.c, 2 times
- tools/testing/selftests/arm64/fp/zt-ptrace.c, 2 times
- tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c, line 102
- tools/testing/selftests/bpf/benchs/bench_local_storage_create.c, line 91
- tools/testing/selftests/bpf/benchs/bench_local_storage_rcu_tasks_trace.c, line 133
- tools/testing/selftests/bpf/cgroup_helpers.c, 4 times
- tools/testing/selftests/bpf/map_tests/task_storage_map.c, 5 times
- tools/testing/selftests/bpf/network_helpers.c, line 1070
- tools/testing/selftests/bpf/prog_tests/arena_atomics.c, line 183
- tools/testing/selftests/bpf/prog_tests/atomics.c, line 179
- tools/testing/selftests/bpf/prog_tests/bpf_cookie.c, 3 times
- tools/testing/selftests/bpf/prog_tests/bpf_iter.c, 16 times
- tools/testing/selftests/bpf/prog_tests/bpf_loop.c, line 189
- tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c, line 110
- tools/testing/selftests/bpf/prog_tests/cgroup1_hierarchy.c, line 79
- tools/testing/selftests/bpf/prog_tests/cgroup_get_current_cgroup_id.c, line 32
- tools/testing/selftests/bpf/prog_tests/cgroup_iter.c, line 286
- tools/testing/selftests/bpf/prog_tests/cgrp_kfunc.c, line 20
- tools/testing/selftests/bpf/prog_tests/core_read_macros.c, line 35
- tools/testing/selftests/bpf/prog_tests/core_reloc.c, line 1013
- tools/testing/selftests/bpf/prog_tests/core_retro.c, line 9
- tools/testing/selftests/bpf/prog_tests/cpumask.c, line 42
- tools/testing/selftests/bpf/prog_tests/custom_sec_handlers.c, line 142
- tools/testing/selftests/bpf/prog_tests/d_path.c, line 136
- tools/testing/selftests/bpf/prog_tests/dynptr.c, line 46
- tools/testing/selftests/bpf/prog_tests/exhandler.c, line 28
- tools/testing/selftests/bpf/prog_tests/fexit_sleep.c, line 17
- tools/testing/selftests/bpf/prog_tests/fill_link_info.c, line 452
- tools/testing/selftests/bpf/prog_tests/find_vma.c, line 118
- tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c, 2 times
- tools/testing/selftests/bpf/prog_tests/global_map_resize.c, 2 times
- tools/testing/selftests/bpf/prog_tests/htab_update.c, line 31
- tools/testing/selftests/bpf/prog_tests/iters.c, 4 times
- tools/testing/selftests/bpf/prog_tests/kfunc_dynptr_param.c, line 76
- tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c, 6 times
- tools/testing/selftests/bpf/prog_tests/kprobe_multi_testmod_test.c, line 28
- tools/testing/selftests/bpf/prog_tests/legacy_printk.c, line 9
- tools/testing/selftests/bpf/prog_tests/lookup_and_delete.c, line 83
- tools/testing/selftests/bpf/prog_tests/lookup_key.c, line 66
- tools/testing/selftests/bpf/prog_tests/map_btf.c, 2 times
- tools/testing/selftests/bpf/prog_tests/map_in_map.c, line 103
- tools/testing/selftests/bpf/prog_tests/map_init.c, line 87
- tools/testing/selftests/bpf/prog_tests/map_lookup_percpu_elem.c, line 26
- tools/testing/selftests/bpf/prog_tests/map_ops.c, line 57
- tools/testing/selftests/bpf/prog_tests/mptcp.c, line 287
- tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c, line 27
- tools/testing/selftests/bpf/prog_tests/percpu_alloc.c, 3 times
- tools/testing/selftests/bpf/prog_tests/perf_buffer.c, line 49
- tools/testing/selftests/bpf/prog_tests/probe_read_user_str.c, line 55
- tools/testing/selftests/bpf/prog_tests/prog_array_init.c, line 16
- tools/testing/selftests/bpf/prog_tests/read_vsyscall.c, line 43
- tools/testing/selftests/bpf/prog_tests/ringbuf.c, 4 times
- tools/testing/selftests/bpf/prog_tests/ringbuf_multi.c, line 82
- tools/testing/selftests/bpf/prog_tests/send_signal_sched_switch.c, line 42
- tools/testing/selftests/bpf/prog_tests/sk_storage_tracing.c, line 113
- tools/testing/selftests/bpf/prog_tests/skc_to_unix_sock.c, line 20
- tools/testing/selftests/bpf/prog_tests/snprintf.c, line 46
- tools/testing/selftests/bpf/prog_tests/stack_var_off.c, line 18
- tools/testing/selftests/bpf/prog_tests/stacktrace_map_skip.c, line 30
- tools/testing/selftests/bpf/prog_tests/task_fd_query_rawtp.c, 4 times
- tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c, line 59
- tools/testing/selftests/bpf/prog_tests/task_kfunc.c, line 21
- tools/testing/selftests/bpf/prog_tests/task_local_storage.c, 5 times
- tools/testing/selftests/bpf/prog_tests/task_under_cgroup.c, 2 times
- tools/testing/selftests/bpf/prog_tests/test_bpf_ma.c, line 57
- tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c, line 26
- tools/testing/selftests/bpf/prog_tests/test_bprm_opts.c, line 20
- tools/testing/selftests/bpf/prog_tests/test_ima.c, line 25
- tools/testing/selftests/bpf/prog_tests/test_local_storage.c, 3 times
- tools/testing/selftests/bpf/prog_tests/test_lsm.c, 2 times
- tools/testing/selftests/bpf/prog_tests/test_mmap_inner_array.c, line 30
- tools/testing/selftests/bpf/prog_tests/test_strncmp.c, line 63
- tools/testing/selftests/bpf/prog_tests/timer_crash.c, line 17
- tools/testing/selftests/bpf/prog_tests/token.c, line 296
- tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c, line 245
- tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c, 2 times
- tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c, 2 times
- tools/testing/selftests/bpf/prog_tests/usdt.c, 2 times
- tools/testing/selftests/bpf/prog_tests/user_ringbuf.c, 2 times
- tools/testing/selftests/bpf/prog_tests/varlen.c, line 34
- tools/testing/selftests/bpf/prog_tests/verify_pkcs7_sig.c, 2 times
- tools/testing/selftests/bpf/test_tag.c, line 98
- tools/testing/selftests/bpf/urandom_read.c, line 83
- tools/testing/selftests/breakpoints/breakpoint_test.c, 3 times
- tools/testing/selftests/capabilities/test_execve.c, 2 times
- tools/testing/selftests/cgroup/cgroup_util.c, 2 times
- tools/testing/selftests/cgroup/test_kmem.c, line 39
- tools/testing/selftests/clone3/clone3.c, 5 times
- tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c, 6 times
- tools/testing/selftests/clone3/clone3_set_tid.c, 9 times
- tools/testing/selftests/connector/proc_filter.c, 2 times
- tools/testing/selftests/damon/debugfs_target_ids_pid_leak.c, line 25
- tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.c, line 26
- tools/testing/selftests/iommu/iommufd_fail_nth.c, line 94
- tools/testing/selftests/kcmp/kcmp_test.c, 2 times
- tools/testing/selftests/kselftest_harness.h, line 457
- tools/testing/selftests/kvm/lib/assert.c, line 78
- tools/testing/selftests/landlock/ptrace_test.c, line 312
- tools/testing/selftests/landlock/scoped_signal_test.c, 2 times
- tools/testing/selftests/memfd/memfd_test.c, line 1294
- tools/testing/selftests/mm/hugetlb_fault_after_madv.c, line 48
- tools/testing/selftests/mm/map_fixed_noreplace.c, line 21
- tools/testing/selftests/mm/migration.c, line 168
- tools/testing/selftests/mm/mremap_dontunmap.c, line 26
- tools/testing/selftests/mm/protection_keys.c, 15 times
- tools/testing/selftests/mm/seal_elf.c, line 127
- tools/testing/selftests/mm/split_huge_page_test.c, 5 times
- tools/testing/selftests/mount_setattr/mount_setattr_test.c, line 1189
- tools/testing/selftests/nci/nci_dev.c, line 417
- tools/testing/selftests/net/af_unix/msg_oob.c, line 91
- tools/testing/selftests/net/af_unix/scm_pidfd.c, line 282
- tools/testing/selftests/net/ipsec.c, line 40
- tools/testing/selftests/net/mptcp/pm_nl_ctl.c, line 1134
- tools/testing/selftests/net/netfilter/audit_logread.c, line 161
- tools/testing/selftests/nolibc/nolibc-test.c, 8 times
- tools/testing/selftests/openat2/resolve_test.c, line 128
- tools/testing/selftests/perf_events/watermark_signal.c, 2 times
- tools/testing/selftests/pidfd/pidfd_getfd_test.c, line 213
- tools/testing/selftests/pidfd/pidfd_open_test.c, 2 times
- tools/testing/selftests/pidfd/pidfd_setns_test.c, 6 times
- tools/testing/selftests/pidfd/pidfd_test.c, 8 times
- tools/testing/selftests/pidfd/pidfd_wait.c, 4 times
- tools/testing/selftests/powerpc/benchmarks/context_switch.c, 2 times
- tools/testing/selftests/powerpc/benchmarks/fork.c, 2 times
- tools/testing/selftests/powerpc/dscr/dscr_inherit_test.c, line 27
- tools/testing/selftests/powerpc/mm/large_vm_fork_separation.c, line 51
- tools/testing/selftests/powerpc/mm/stack_expansion_ldst.c, line 69
- tools/testing/selftests/powerpc/mm/tlbie_test.c, 2 times
- tools/testing/selftests/powerpc/mm/wild_bctr.c, line 144
- tools/testing/selftests/powerpc/nx-gzip/gzip_vas.c, 2 times
- tools/testing/selftests/powerpc/nx-gzip/include/nx_dbg.h, line 40
- tools/testing/selftests/powerpc/pmu/lib.c, line 126
- tools/testing/selftests/powerpc/pmu/sampling_tests/mmcr2_fcs_fch_test.c, line 40
- tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c, 3 times
- tools/testing/selftests/powerpc/ptrace/ptrace-gpr.c, line 123
- tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c, line 127
- tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c, line 77
- tools/testing/selftests/powerpc/signal/sig_sc_double_restart.c, line 36
- tools/testing/selftests/powerpc/signal/sigfuz.c, line 226
- tools/testing/selftests/powerpc/signal/signal.c, line 40
- tools/testing/selftests/powerpc/signal/signal_tm.c, line 73
- tools/testing/selftests/powerpc/signal/sigreturn_vdso.c, 3 times
- tools/testing/selftests/powerpc/tm/tm-signal-context-chk-fpu.c, line 79
- tools/testing/selftests/powerpc/tm/tm-signal-context-chk-gpr.c, line 81
- tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c, line 104
- tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c, line 153
- tools/testing/selftests/prctl/set-process-name.c, line 56
- tools/testing/selftests/ptrace/get_set_sud.c, line 31
- tools/testing/selftests/ptrace/get_syscall_info.c, line 85
- tools/testing/selftests/resctrl/cat_test.c, line 172
- tools/testing/selftests/resctrl/resctrl_val.c, line 706
- tools/testing/selftests/rlimits/rlimits-per-userns.c, 3 times
- tools/testing/selftests/rseq/param_test.c, line 425
- tools/testing/selftests/sched/cs_prctl_test.c, 5 times
- tools/testing/selftests/seccomp/seccomp_benchmark.c, 8 times
- tools/testing/selftests/seccomp/seccomp_bpf.c, 12 times
- tools/testing/selftests/uevent/uevent_filtering.c, line 232
- tools/testing/selftests/vDSO/vdso_test_getrandom.c, line 260
- tools/testing/selftests/x86/corrupt_xstate_header.c, line 80
- tools/testing/selftests/x86/fsgsbase_restore.c, 2 times
- tools/testing/selftests/x86/mov_ss_trap.c, line 53
- tools/testing/selftests/x86/ptrace_syscall.c, 7 times
- tools/testing/selftests/x86/syscall_numbering.c, 3 times
- tools/testing/selftests/x86/test_vsyscall.c, line 406
- tools/testing/selftests/x86/unwind_vdso.c, line 90
- tools/tracing/latency/latency-collector.c, line 1040
- tools/tracing/rtla/src/osnoise_hist.c, line 783
- tools/tracing/rtla/src/osnoise_top.c, line 613
- tools/tracing/rtla/src/timerlat_hist.c, line 1046
- tools/tracing/rtla/src/timerlat_top.c, line 812
- tools/tracing/rtla/src/timerlat_u.c, line 59
- tools/tracing/rtla/src/utils.c, 3 times
- tools/usb/usbip/src/usbipd.c, line 478
- tools/verification/rv/src/in_kernel.c, line 569
- tools/virtio/vhost_net_test.c, line 518
- tools/virtio/vringh_test.c, 3 times
kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.