Home
last modified time | relevance | path

Searched refs:pid (Results 351 - 375 of 6207) sorted by relevance

1...<<11121314151617181920>>...249

/kernel/linux/linux-5.10/tools/perf/tests/
H A Dperf-record.c17 static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) in sched__get_first_possible_cpu() argument
23 if (sched_getaffinity(pid, sizeof(*maskp), maskp) == -1) { in sched__get_first_possible_cpu()
114 err = sched__get_first_possible_cpu(evlist->workload.pid, &cpu_mask); in test__PERF_RECORD()
126 if (sched_setaffinity(evlist->workload.pid, cpu_mask_size, &cpu_mask) < 0) { in test__PERF_RECORD()
157 * count just on workload.pid, which will start... in test__PERF_RECORD()
212 if ((pid_t)sample.pid != evlist->workload.pid) { in test__PERF_RECORD()
213 pr_debug("%s with unexpected pid, expected %d, got %d\n", in test__PERF_RECORD()
214 name, evlist->workload.pid, sample.pid); in test__PERF_RECORD()
[all...]
/kernel/linux/linux-6.6/tools/perf/util/bpf_skel/
H A Doff_cpu.bpf.c28 __u32 pid; member
161 __u32 pid; in can_record() local
164 pid = t->tgid; in can_record()
166 pid = t->pid; in can_record()
168 ok = bpf_map_lookup_elem(&task_filter, &pid); in can_record()
214 .pid = next->pid, in off_cpu_stat()
241 u32 pid; in on_newtask() local
249 pid in on_newtask()
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dperf-record.c17 static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) in sched__get_first_possible_cpu() argument
23 if (sched_getaffinity(pid, sizeof(*maskp), maskp) == -1) { in sched__get_first_possible_cpu()
114 err = sched__get_first_possible_cpu(evlist->workload.pid, &cpu_mask); in test__PERF_RECORD()
126 if (sched_setaffinity(evlist->workload.pid, cpu_mask_size, &cpu_mask) < 0) { in test__PERF_RECORD()
157 * count just on workload.pid, which will start... in test__PERF_RECORD()
212 if ((pid_t)sample.pid != evlist->workload.pid) { in test__PERF_RECORD()
213 pr_debug("%s with unexpected pid, expected %d, got %d\n", in test__PERF_RECORD()
214 name, evlist->workload.pid, sample.pid); in test__PERF_RECORD()
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dcloexec.c40 pid_t pid = -1; in perf_flag_probe() local
48 * Using -1 for the pid is a workaround to avoid gratuitous jump label in perf_flag_probe()
53 fd = sys_perf_event_open(&attr, pid, cpu, -1, in perf_flag_probe()
55 if (fd < 0 && pid == -1 && errno == EACCES) { in perf_flag_probe()
56 pid = 0; in perf_flag_probe()
74 fd = sys_perf_event_open(&attr, pid, cpu, -1, 0); in perf_flag_probe()
75 if (fd < 0 && pid == -1 && errno == EACCES) { in perf_flag_probe()
76 pid = 0; in perf_flag_probe()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_smi_events.h32 void kfd_smi_event_page_fault_start(struct kfd_node *node, pid_t pid,
35 void kfd_smi_event_page_fault_end(struct kfd_node *node, pid_t pid,
37 void kfd_smi_event_migration_start(struct kfd_node *node, pid_t pid,
42 void kfd_smi_event_migration_end(struct kfd_node *node, pid_t pid,
45 void kfd_smi_event_queue_eviction(struct kfd_node *node, pid_t pid,
47 void kfd_smi_event_queue_restore(struct kfd_node *node, pid_t pid);
49 void kfd_smi_event_unmap_from_gpu(struct kfd_node *node, pid_t pid,
/kernel/linux/linux-6.6/tools/perf/util/
H A Dcloexec.c27 pid_t pid = -1; in perf_flag_probe() local
35 * Using -1 for the pid is a workaround to avoid gratuitous jump label in perf_flag_probe()
40 fd = sys_perf_event_open(&attr, pid, cpu, -1, in perf_flag_probe()
42 if (fd < 0 && pid == -1 && errno == EACCES) { in perf_flag_probe()
43 pid = 0; in perf_flag_probe()
61 fd = sys_perf_event_open(&attr, pid, cpu, -1, 0); in perf_flag_probe()
62 if (fd < 0 && pid == -1 && errno == EACCES) { in perf_flag_probe()
63 pid = 0; in perf_flag_probe()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Ddeny_namespace.c9 static int wait_for_pid(pid_t pid) in wait_for_pid() argument
14 ret = waitpid(pid, &status, 0); in wait_for_pid()
34 pid_t pid; in create_user_ns() local
36 pid = fork(); in create_user_ns()
37 if (pid < 0) in create_user_ns()
40 if (pid == 0) { in create_user_ns()
46 return wait_for_pid(pid); in create_user_ns()
/kernel/linux/linux-6.6/tools/testing/selftests/exec/
H A Dnull-argv.c12 pid = fork(); \
13 if (pid == 0) { \
19 check_result(pid, #exec); \
22 void check_result(pid_t pid, const char *msg) in check_result() argument
26 if (pid == (pid_t)-1) { in check_result()
31 if (waitpid(pid, &wstatus, 0) < 0) { in check_result()
49 pid_t pid; in main() local
/kernel/linux/linux-6.6/tools/testing/selftests/riscv/vector/
H A Dvstate_exec_nolibc.c6 int rc, pid, status, test_inherit = 0; in main() local
20 pid = fork(); in main()
21 if (pid == -1) { in main()
27 if (!pid) { in main()
41 pid = fork(); in main()
42 if (pid == -1) { in main()
47 if (!pid) { in main()
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_time_container_008.cpp36 static int WriteProcTime(int pid) in WriteProcTime() argument
46 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
80 auto pid = fork(); in ItTimeContainer008() local
81 ASSERT_TRUE(pid != -1); in ItTimeContainer008()
82 if (pid == 0) { in ItTimeContainer008()
86 auto ret = waitpid(pid, &status, 0); in ItTimeContainer008()
87 ASSERT_EQ(ret, pid); in ItTimeContainer008()
/kernel/liteos_a/testsuites/unittest/libc/time/clock/full/
H A Dclock_test_003.cpp38 pid_t pid = 0; in ClockTest() local
42 pid = 1; in ClockTest()
45 ICUNIT_ASSERT_EQUAL(clockid, CLOCK_GET_CPU_CLOCKID(pid), clockid); in ClockTest()
53 pid = 2; // 2, test the process 2 (An existent pid) in ClockTest()
56 ICUNIT_ASSERT_EQUAL(clockid, CLOCK_GET_CPU_CLOCKID(pid), clockid); in ClockTest()
64 pid = getpid(); in ClockTest()
67 ICUNIT_ASSERT_EQUAL(clockid, CLOCK_GET_CPU_CLOCKID(pid), clockid); in ClockTest()
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_011.cpp48 pid_t pid = fork(); in ThreadFunc() local
49 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in ThreadFunc()
51 if (pid == 0) { in ThreadFunc()
55 ret = waitpid(pid, &status, 0); in ThreadFunc()
56 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in ThreadFunc()
67 if (pid == 0) { in ThreadFunc()
/kernel/liteos_a/testsuites/unittest/process/fs/smoke/
H A DIt_process_fs_012.cpp44 pid_t pid = getpid(); in child_process() local
46 buf << "/proc/" << pid; in child_process() local
65 pid_t pid = clone(child_process, stackTop, SIGCHLD, &arg); in ItProcessFs012() local
66 ASSERT_NE(pid, -1); in ItProcessFs012()
68 ret = waitpid(pid, &status, 0); in ItProcessFs012()
69 ASSERT_EQ(ret, pid); in ItProcessFs012()
76 buf << "/proc/" << pid; in ItProcessFs012() local
/third_party/musl/src/misc/
H A Dforkpty.c12 pid_t pid=-1; in forkpty() local
26 pid = fork(); in forkpty()
27 if (!pid) { in forkpty()
43 waitpid(pid, &status, 0); in forkpty()
44 pid = -1; in forkpty()
50 if (pid > 0) *pm = m; in forkpty()
56 return pid; in forkpty()
/third_party/ltp/testcases/kernel/syscalls/pidfd_open/
H A Dpidfd_open04.c28 int flag, pid, ret; in run() local
31 pid = SAFE_FORK(); in run()
32 if (!pid) { in run()
37 TST_EXP_FD_SILENT(pidfd_open(pid, PIDFD_NONBLOCK), in run()
38 "pidfd_open(%d, PIDFD_NONBLOCK)", pid); in run() local
44 tst_brk(TFAIL, "pidfd_open(%d, O_NONBLOCK) didn't set O_NONBLOCK flag", pid); in run()
46 tst_res(TPASS, "pidfd_open(%d, O_NONBLOCK) sets O_NONBLOCK flag", pid); in run()
H A Dpidfd_open03.c24 pid_t pid; in run() local
26 pid = SAFE_FORK(); in run()
28 if (!pid) { in run()
33 TST_EXP_FD_SILENT(pidfd_open(pid, 0), "pidfd_open(%d, 0)", pid); in run()
45 SAFE_WAITPID(pid, NULL, 0); in run()
/third_party/ltp/testcases/kernel/syscalls/waitpid/
H A Dwaitpid02.c70 int pid, npid, sig, nsig; in main() local
85 pid = FORK_OR_VFORK(); in main()
87 if (pid < 0) in main()
90 if (pid == 0) { in main()
98 kill(pid, sig); in main()
100 while (((npid = waitpid(pid, &status, 0)) != -1) || in main()
105 if (npid != pid) { in main()
107 "unexpected pid returned"); in main()
110 "received expected pid"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D9-1.c45 pid_t pid; in main() local
54 if ((pid = fork()) < 0) { in main()
57 } else if (pid == 0) { in main()
70 kill(pid, SIGSTOP); in main()
94 kill(pid, SIGCONT); in main()
97 kill(pid, SIGKILL); in main()
98 waitpid(pid, &s, 0); in main()
/third_party/musl/libc-test/src/functional/
H A Dfcntl.c17 pid_t pid; in main() local
29 pid = fork(); in main()
30 if (!pid) { in main()
35 while (waitpid(pid, &status, 0)<0 && errno==EINTR); in main()
38 pid = fork(); in main()
39 if (!pid) { in main()
43 while (waitpid(pid, &status, 0)<0 && errno==EINTR); in main()
/test/xts/acts/kernel_lite/mem_posix/src/
H A DMemApiTest.cpp56 pid_t pid = fork(); in HWTEST_F() local
57 ASSERT_TRUE(pid >= 0) << "Fork Error"; in HWTEST_F()
58 if (pid == 0) { in HWTEST_F()
64 WaitProcExitedOK(pid); in HWTEST_F()
103 int pid = fork();
104 ASSERT_TRUE(pid >= 0) << " fork() < 0";
105 if (pid == 0) {
109 WaitProcExitedOK(pid);
173 pid_t pid = fork();
174 ASSERT_TRUE(pid >
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Dgpu_mem.h25 * @pid: Put 0 for global total, while positive pid for process total.
32 TP_PROTO(uint32_t gpu_id, uint32_t pid, uint64_t size),
34 TP_ARGS(gpu_id, pid, size),
38 __field(uint32_t, pid)
44 __entry->pid = pid;
48 TP_printk("gpu_id=%u pid=%u size=%llu",
50 __entry->pid,
/kernel/linux/linux-6.6/include/trace/events/
H A Dgpu_mem.h25 * @pid: Put 0 for global total, while positive pid for process total.
32 TP_PROTO(uint32_t gpu_id, uint32_t pid, uint64_t size),
34 TP_ARGS(gpu_id, pid, size),
38 __field(uint32_t, pid)
44 __entry->pid = pid;
48 TP_printk("gpu_id=%u pid=%u size=%llu",
50 __entry->pid,
/third_party/ltp/testcases/kernel/syscalls/getpid/
H A Dgetpid02.c11 * - fork() in parent returns the same pid as getpid() in child
12 * - getppid() in child returns the same pid as getpid() in parent
24 pid_t pid; in verify_getpid() local
28 pid = SAFE_FORK(); in verify_getpid()
30 if (pid == 0) { in verify_getpid()
47 if (*child_pid != pid) in verify_getpid()
48 tst_res(TFAIL, "child getpid() (%d) != parent fork() (%d)", *child_pid, pid); in verify_getpid()
50 tst_res(TPASS, "child getpid() == parent fork() (%d)", pid); in verify_getpid()
/third_party/musl/libc-test/src/functionalext/sched/
H A Dsched_setparam.c35 pid_t pid; in sched_setparam_0010() local
38 pid = getpid(); in sched_setparam_0010()
47 EXPECT_EQ("sched_setparam_0010", sched_setparam(pid, &param), 0); in sched_setparam_0010()
57 pid_t pid; in sched_setparam_0020() local
58 pid = getpid(); in sched_setparam_0020()
59 EXPECT_EQ("sched_setparam_0020", sched_setparam(pid, NULL), -1); in sched_setparam_0020()
/kernel/linux/linux-5.10/include/linux/sched/
H A Dsignal.h153 struct pid *pids[PIDTYPE_MAX];
159 struct pid *tty_old_pgrp;
335 extern int __kill_pgrp_info(int sig, struct kernel_siginfo *info, struct pid *pgrp);
336 extern int kill_pid_info(int sig, struct kernel_siginfo *info, struct pid *pid);
337 extern int kill_pid_usb_asyncio(int sig, int errno, sigval_t addr, struct pid *,
339 extern int kill_pgrp(struct pid *pid, int sig, int priv);
340 extern int kill_pid(struct pid *pid, in
637 struct pid *pid; task_pid_type() local
[all...]

Completed in 9 milliseconds

1...<<11121314151617181920>>...249