/kernel/linux/linux-6.6/drivers/pinctrl/mvebu/ |
H A D | pinctrl-orion.c | 31 unsigned pid, unsigned long *config) in orion_mpp_ctrl_get() 33 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_get() 35 if (pid < 16) { in orion_mpp_ctrl_get() 36 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_get() 47 unsigned pid, unsigned long config) in orion_mpp_ctrl_set() 49 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_set() 51 if (pid < 16) { in orion_mpp_ctrl_set() 52 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_set() 30 orion_mpp_ctrl_get(struct mvebu_mpp_ctrl_data *data, unsigned pid, unsigned long *config) orion_mpp_ctrl_get() argument 46 orion_mpp_ctrl_set(struct mvebu_mpp_ctrl_data *data, unsigned pid, unsigned long config) orion_mpp_ctrl_set() argument
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | namespaces.c | 27 [PID_NS_INDEX] = "pid", 154 struct nsinfo *nsinfo__new(pid_t pid) in nsinfo__new() argument 158 if (pid == 0) in nsinfo__new() 165 RC_CHK_ACCESS(nsi)->pid = pid; in nsinfo__new() 166 RC_CHK_ACCESS(nsi)->tgid = pid; in nsinfo__new() 167 RC_CHK_ACCESS(nsi)->nstgid = pid; in nsinfo__new() 171 * proc information. In that case, save the pid but don't try to enter in nsinfo__new() 196 RC_CHK_ACCESS(nnsi)->pid = nsinfo__pid(nsi); in nsinfo__copy() 266 return RC_CHK_ACCESS(nsi)->pid; in nsinfo__pid() [all...] |
/kernel/linux/linux-6.6/drivers/misc/lkdtm/ |
H A D | bugs.c | 145 pid_t pid = task_pid_nr(current); in lkdtm_REPORT_STACK() local 147 if (pid != stack_pid) { in lkdtm_REPORT_STACK() 148 pr_info("Starting stack offset tracking for pid %d\n", pid); in lkdtm_REPORT_STACK() 149 stack_pid = pid; in lkdtm_REPORT_STACK() 163 pid_t pid = task_pid_nr(current); in __lkdtm_REPORT_STACK_CANARY() local 185 pr_err("FAIL: global stack canary found at offset %ld (canary for pid %d matches init_task's)!\n", in __lkdtm_REPORT_STACK_CANARY() 186 init_offset, pid); in __lkdtm_REPORT_STACK_CANARY() 200 stack_canary_pid = pid; in __lkdtm_REPORT_STACK_CANARY() 202 pr_info("Recorded stack canary for pid in __lkdtm_REPORT_STACK_CANARY() [all...] |
/third_party/elfutils/libdwfl/ |
H A D | linux-pid-attach.c | 50 linux_proc_pid_is_stopped (pid_t pid) in linux_proc_pid_is_stopped() argument 56 snprintf (buffer, sizeof (buffer), "/proc/%ld/status", (long) pid); in linux_proc_pid_is_stopped() 386 dwfl_linux_proc_attach (Dwfl *dwfl, pid_t pid, bool assume_ptrace_stopped) in dwfl_linux_proc_attach() argument 394 snprintf (buffer, sizeof (buffer), "/proc/%ld/status", (long) pid); in dwfl_linux_proc_attach() 418 pid = 0; in dwfl_linux_proc_attach() 420 pid = (pid_t) val; in dwfl_linux_proc_attach() 426 if (pid == 0) in dwfl_linux_proc_attach() 433 int i = snprintf (name, sizeof (name), "/proc/%ld/task", (long) pid); in dwfl_linux_proc_attach() 447 i = snprintf (name, sizeof (name), "/proc/%ld/exe", (long) pid); in dwfl_linux_proc_attach() 479 if (! INTUSE(dwfl_attach_state) (dwfl, elf, pid, in dwfl_linux_proc_attach() [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | test_overhead_kprobe_kern.c | 28 u32 pid; in prog() local 32 pid = _(tsk->pid); in prog()
|
/kernel/linux/linux-5.10/tools/perf/trace/beauty/ |
H A D | kcmp.c | 20 pid_t pid; in syscall_arg__scnprintf_kcmp_idx() local 25 pid = syscall_arg__val(arg, arg->idx == 3 ? 0 : 1); /* idx1 -> pid1, idx2 -> pid2 */ in syscall_arg__scnprintf_kcmp_idx() 26 return pid__scnprintf_fd(arg->trace, pid, fd, bf, size); in syscall_arg__scnprintf_kcmp_idx()
|
/kernel/linux/linux-6.6/tools/perf/trace/beauty/ |
H A D | kcmp.c | 20 pid_t pid; in syscall_arg__scnprintf_kcmp_idx() local 25 pid = syscall_arg__val(arg, arg->idx == 3 ? 0 : 1); /* idx1 -> pid1, idx2 -> pid2 */ in syscall_arg__scnprintf_kcmp_idx() 26 return pid__scnprintf_fd(arg->trace, pid, fd, bf, size); in syscall_arg__scnprintf_kcmp_idx()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/smp/ |
H A D | process_test_smp_001.cpp | 37 int pid; in Testcase() local 59 pid = ret; in Testcase() 62 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
|
/third_party/FreeBSD/lib/libc/gen/ |
H A D | arc4random.h | 63 pid_t pid = getpid();
in _rs_forkdetect() local 65 if (_rs_pid == 0 || _rs_pid != pid || _rs_forked) {
in _rs_forkdetect() 66 _rs_pid = pid;
in _rs_forkdetect()
|
/third_party/ltp/lib/ |
H A D | tst_status.c | 58 pid_t pid; in tst_validate_children_() local 61 pid = SAFE_WAITPID(-1, &status, 0); in tst_validate_children_() 64 tst_res_(file, lineno, TFAIL, "Child %d: %s", pid, in tst_validate_children_()
|
/third_party/ltp/testcases/kernel/controllers/memcg/regression/ |
H A D | memcg_test_1.c | 23 int pid; in main() local 40 pid = fork(); in main() 41 if (pid == 0) { in main()
|
/third_party/ltp/testcases/kernel/containers/userns/ |
H A D | userns_helper.h | 30 int pid, status; in check_newuser() local 35 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWUSER, dummy_child, NULL); in check_newuser() 36 if (pid == -1) in check_newuser()
|
/third_party/ltp/testcases/kernel/syscalls/setpgrp/ |
H A D | setpgrp02.c | 61 int pid, oldpgrp; in main() local 73 if ((pid = FORK_OR_VFORK()) == -1) { in main() 77 if (pid == 0) { /* child */ in main()
|
H A D | setpgrp01.c | 85 int pid, status; in setup() local 95 if ((pid = FORK_OR_VFORK()) == -1) { in setup() 100 if (pid != 0) { /* parent - sits and waits */ in setup()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
H A D | hugeshmat03.c | 45 pid_t pid; in verify_hugeshmat() local 47 switch (pid = SAFE_FORK()) { in verify_hugeshmat() 64 SAFE_WAITPID(pid, &status, 0); in verify_hugeshmat()
|
/third_party/ltp/testcases/kernel/syscalls/execve/ |
H A D | execve04.c | 36 pid_t pid; in verify_execve() local 39 pid = SAFE_FORK(); in verify_execve() 40 if (pid == 0) in verify_execve()
|
/third_party/ltp/testcases/kernel/syscalls/execveat/ |
H A D | execveat03.c | 58 pid_t pid; in verify_execveat() local 60 pid = SAFE_FORK(); in verify_execveat() 61 if (pid == 0) in verify_execveat()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmget/ |
H A D | shmget06.c | 28 static int shm_id[2], pid; variable 50 pid = getpid(); in setup() 51 SAFE_FILE_PRINTF(NEXT_ID_PATH, "%d", pid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/personality/ |
H A D | personality01.c | 56 pid_t pid; in run() local 58 pid = SAFE_FORK(); in run() 59 if (!pid) { in run()
|
/third_party/ltp/testcases/kernel/syscalls/signal/ |
H A D | signal03.c | 37 pid_t pid; in do_test() local 42 pid = getpid(); in do_test() 44 SAFE_KILL(pid, siglist[n]); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/sysctl/ |
H A D | sysctl03.c | 79 pid_t pid; in do_test() local 82 pid = SAFE_FORK(); in do_test() 83 if (!pid) { in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgget/ |
H A D | msgget05.c | 27 static int queue_id[2], pid; variable 49 pid = getpid(); in setup() 50 SAFE_FILE_PRINTF(NEXT_ID_PATH, "%d", pid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setuid/ |
H A D | setuid04.c | 28 pid_t pid; in verify_setuid() local 30 pid = SAFE_FORK(); in verify_setuid() 31 if (!pid) in verify_setuid()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/ |
H A D | 7-1.c | 32 int pid; in main() local 35 if ((pid = fork()) == 0) { in main() 70 if (kill(pid, SIGABRT) != 0) { in main()
|
H A D | 5-2.c | 31 int pid; in main() local 34 if ((pid = fork()) == 0) { in main() 62 if (kill(pid, SIGABRT) != 0) { in main()
|