Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 1602) sorted by relevance

12345678910>>...65

/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
Dprocess_test_005.cpp35 int pid; in ProcessTest002() local
37 pid = fork(); in ProcessTest002()
38 if (pid == 0) { in ProcessTest002()
43 …ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, 100000, pid); // 100000, assert that function Result is equal t… in ProcessTest002()
45 pid = fork(); in ProcessTest002()
46 if (pid == 0) { in ProcessTest002()
51 …ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, 100000, pid); // 100000, assert that function Result is equal t… in ProcessTest002()
53 pid = fork(); in ProcessTest002()
54 if (pid == 0) { in ProcessTest002()
59 …ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, 100000, pid); // 100000, assert that function Result is equal t… in ProcessTest002()
[all …]
Dprocess_test_038.cpp51 pid_t pid, pid1; in ProcessGroup() local
59 pid = fork(); in ProcessGroup()
60 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in ProcessGroup()
62 if (pid == 0) { in ProcessGroup()
70 ICUNIT_GOTO_NOT_EQUAL(pid1, pid, pid1, EXIT); in ProcessGroup()
73 Child2(currGid, pid); in ProcessGroup()
87 pid_t pid, pid1; in GroupProcess() local
92 pid = fork(); in GroupProcess()
93 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in GroupProcess()
95 if (pid == 0) { in GroupProcess()
[all …]
Dprocess_test_027.cpp38 pid_t pid; in ProcessTest() local
41 pid = fork(); in ProcessTest()
42 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in ProcessTest()
44 if (pid == 0) { in ProcessTest()
49 ret = waitpid(pid, &status, WNOHANG); in ProcessTest()
52 ret = waitpid(pid, &status, 0); in ProcessTest()
53 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in ProcessTest()
66 pid_t pid = fork(); in TestCase() local
67 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in TestCase()
68 if (pid == 0) { in TestCase()
[all …]
Dprocess_test_039.cpp37 pid_t pid, pid1; in GroupProcess() local
41 pid = fork(); in GroupProcess()
42 if (pid == 0) { in GroupProcess()
44 } else if (pid > 0) { in GroupProcess()
45 ret = waitpid(pid, &status, 0); in GroupProcess()
61 pid_t pid, pid1; in TestCase() local
63 pid = fork(); in TestCase()
64 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in TestCase()
66 if (pid == 0) { in TestCase()
73 ret = waitpid(pid, &status, 0); in TestCase()
[all …]
Dprocess_test_017.cpp58 pid_t pid; in ProcessTest() local
65 pid = fork(); in ProcessTest()
66 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in ProcessTest()
67 if (pid == 0) { in ProcessTest()
72 g_waitPid = pid; in ProcessTest()
78 ret = waitpid(pid, &status, 0); in ProcessTest()
80 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in ProcessTest()
96 pid_t pid = fork(); in TestCase() local
97 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in TestCase()
98 if (pid == 0) { in TestCase()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dpid.h59 struct pid struct
73 extern struct pid init_struct_pid; argument
79 extern struct pid *pidfd_pid(const struct file *file);
80 struct pid *pidfd_get_pid(unsigned int fd, unsigned int *flags);
82 static inline struct pid *get_pid(struct pid *pid) in get_pid() argument
84 if (pid) in get_pid()
85 refcount_inc(&pid->count); in get_pid()
86 return pid; in get_pid()
89 extern void put_pid(struct pid *pid);
90 extern struct task_struct *pid_task(struct pid *pid, enum pid_type);
[all …]
/kernel/linux/linux-5.10/kernel/
Dpid.c48 struct pid init_struct_pid = {
105 void put_pid(struct pid *pid) in put_pid() argument
109 if (!pid) in put_pid()
112 ns = pid->numbers[pid->level].ns; in put_pid()
113 if (refcount_dec_and_test(&pid->count)) { in put_pid()
114 kmem_cache_free(ns->pid_cachep, pid); in put_pid()
122 struct pid *pid = container_of(rhp, struct pid, rcu); in delayed_put_pid() local
123 put_pid(pid); in delayed_put_pid()
126 void free_pid(struct pid *pid) in free_pid() argument
133 for (i = 0; i <= pid->level; i++) { in free_pid()
[all …]
/kernel/linux/linux-5.10/arch/x86/um/os-Linux/
Dregisters.c21 int save_i387_registers(int pid, unsigned long *fp_regs) in save_i387_registers() argument
23 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
28 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
36 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in save_fp_registers()
41 return save_i387_registers(pid, fp_regs); in save_fp_registers()
44 int restore_i387_registers(int pid, unsigned long *fp_regs) in restore_i387_registers() argument
46 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers()
51 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
58 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in restore_fp_registers()
63 return restore_i387_registers(pid, fp_regs); in restore_fp_registers()
[all …]
/kernel/linux/linux-5.10/include/trace/events/
Doom.h17 __field( pid_t, pid)
23 __entry->pid = task->pid;
29 __entry->pid, __entry->comm, __entry->oom_score_adj)
75 TP_PROTO(int pid),
77 TP_ARGS(pid),
80 __field(int, pid)
84 __entry->pid = pid;
87 TP_printk("pid=%d", __entry->pid)
91 TP_PROTO(int pid),
93 TP_ARGS(pid),
[all …]
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Dradix_tlb.c30 unsigned int pid, in tlbiel_radix_set_isa300() argument
37 rs = ((unsigned long)pid << PPC_BITLSHIFT(31)); in tlbiel_radix_set_isa300()
94 static __always_inline void __tlbiel_pid(unsigned long pid, int set, in __tlbiel_pid() argument
101 rs = ((unsigned long)pid) << PPC_BITLSHIFT(31); in __tlbiel_pid()
110 static __always_inline void __tlbie_pid(unsigned long pid, unsigned long ric) in __tlbie_pid() argument
115 rs = pid << PPC_BITLSHIFT(31); in __tlbie_pid()
152 static __always_inline void __tlbiel_va(unsigned long va, unsigned long pid, in __tlbiel_va() argument
159 rs = pid << PPC_BITLSHIFT(31); in __tlbiel_va()
168 static __always_inline void __tlbie_va(unsigned long va, unsigned long pid, in __tlbie_va() argument
175 rs = pid << PPC_BITLSHIFT(31); in __tlbie_va()
[all …]
/kernel/linux/linux-5.10/arch/um/os-Linux/
Dstart_up.c32 int pid = os_getpid(), ppid = getppid(); in ptrace_child() local
38 kill(pid, SIGKILL); in ptrace_child()
40 kill(pid, SIGSTOP); in ptrace_child()
48 if (sc_result == pid) in ptrace_child()
95 int pid, n, status; in start_ptraced_child() local
99 pid = fork(); in start_ptraced_child()
100 if (pid == 0) in start_ptraced_child()
102 else if (pid < 0) in start_ptraced_child()
105 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in start_ptraced_child()
112 return pid; in start_ptraced_child()
[all …]
/kernel/linux/linux-5.10/arch/um/os-Linux/skas/
Dprocess.c27 int is_skas_winch(int pid, int fd, void *data) in is_skas_winch() argument
29 return pid == getpgrp(); in is_skas_winch()
32 static int ptrace_dump_regs(int pid) in ptrace_dump_regs() argument
37 if (ptrace(PTRACE_GETREGS, pid, 0, regs) < 0) in ptrace_dump_regs()
56 void wait_stub_done(int pid) in wait_stub_done() argument
61 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED | __WALL)); in wait_stub_done()
68 err = ptrace(PTRACE_CONT, pid, 0, 0); in wait_stub_done()
80 err = ptrace_dump_regs(pid); in wait_stub_done()
85 "pid = %d, n = %d, errno = %d, status = 0x%x\n", pid, n, errno, in wait_stub_done()
92 static void get_skas_faultinfo(int pid, struct faultinfo *fi, unsigned long *aux_fp_regs) in get_skas_faultinfo() argument
[all …]
/kernel/linux/linux-5.10/drivers/staging/hungtask/
Dhungtask_user.c23 pid_t pid; member
37 static void htuser_show_task(int pid) in htuser_show_task() argument
41 p = pid_task(find_vpid(pid), PIDTYPE_PID); in htuser_show_task()
43 pr_err("can not find pid %d\n", pid); in htuser_show_task()
48 pr_info("process %d is frozen\n", pid); in htuser_show_task()
58 static void htuser_list_insert(int pid, int count) in htuser_list_insert() argument
66 userlist[userlist_count].pid = pid; in htuser_list_insert()
73 static int htuser_list_remove(int pid) in htuser_list_remove() argument
79 if (userlist[i].pid == pid) { in htuser_list_remove()
106 htuser_show_task(userlist[i].pid); in htuser_list_update()
[all …]
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
Dprocess_test_055.cpp38 pid_t pid = fork(); in Child1() local
39 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in Child1()
40 if (pid == 0) { in Child1()
45 ret = waitid(P_PID, pid, &info, WEXITED); in Child1()
50 ICUNIT_ASSERT_EQUAL(info.si_pid, pid, info.si_pid); in Child1()
58 pid_t pid; in TestCase() local
61 pid = fork(); in TestCase()
63 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in TestCase()
64 if (pid == 0) { in TestCase()
76 ICUNIT_ASSERT_EQUAL(info.si_pid, pid, info.si_pid); in TestCase()
[all …]
Dprocess_test_037.cpp69 pid_t pid, pid1; in ProcessGroup() local
76 pid = fork(); in ProcessGroup()
77 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in ProcessGroup()
79 if (pid == 0) { in ProcessGroup()
88 ICUNIT_GOTO_NOT_EQUAL(pid1, pid, pid1, EXIT); in ProcessGroup()
91 Child2(currGid, pid); in ProcessGroup()
97 ret = setpgid(pid1, pid); in ProcessGroup()
100 ret = waitpid(pid, &status, 0); in ProcessGroup()
101 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in ProcessGroup()
120 pid_t pid, pid1; in TestCase() local
[all …]
Dprocess_test_036.cpp76 pid_t pid, pid1; in ProcessGroup() local
83 pid = fork(); in ProcessGroup()
84 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, assert pid equal to this. in ProcessGroup()
86 if (pid == 0) { in ProcessGroup()
95 ICUNIT_GOTO_NOT_EQUAL(pid1, pid, pid1, EXIT); in ProcessGroup()
98 Child2(currGid, pid); in ProcessGroup()
102 ret = waitpid(pid, &status, 0); in ProcessGroup()
103 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in ProcessGroup()
122 pid_t pid, pid1; in TestCase() local
124 pid = fork(); in TestCase()
[all …]
/kernel/linux/linux-5.10/fs/f2fs/
Dtrace.c27 last_io.pid, "----------------", in __print_last_io()
35 static int __file_type(struct inode *inode, pid_t pid) in __file_type() argument
47 else if (pid) in __file_type()
56 pid_t pid = task_pid_nr(current); in f2fs_trace_pid() local
59 set_page_private(page, (unsigned long)pid); in f2fs_trace_pid()
66 p = radix_tree_lookup(&pids, pid); in f2fs_trace_pid()
70 radix_tree_delete(&pids, pid); in f2fs_trace_pid()
72 if (radix_tree_insert(&pids, pid, current)) { in f2fs_trace_pid()
81 pid, current->comm); in f2fs_trace_pid()
90 pid_t pid; in f2fs_trace_ios() local
[all …]
/kernel/linux/linux-5.10/tools/perf/scripts/perl/
Drw-by-pid.pl82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
84 my $comm = $reads{$pid}{comm} || "";
85 my $total_reads = $reads{$pid}{total_reads} || 0;
86 my $bytes_requested = $reads{$pid}{bytes_requested} || 0;
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
89 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm,
101 foreach my $pid (keys %reads) {
102 foreach my $error (keys %{$reads{$pid}{errors}}) {
103 my $comm = $reads{$pid}{comm} || "";
104 my $errcount = $reads{$pid}{errors}{$error} || 0;
[all …]
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
DIt_posix_queue_206.cpp37 int pid; in Child() local
68 pid = fork(); in Child()
69 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, Valid range value of pid. in Child()
71 if (pid == 0) { in Child()
78 ret = waitpid(pid, &status, 0); in Child()
79 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in Child()
87 pid = fork(); in Child()
88 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // 100000, Valid range value of pid. in Child()
89 if (pid == 0) { in Child()
99 ret = waitpid(pid, &status, 0); in Child()
[all …]
/kernel/liteos_a/testsuites/unittest/security/capability/smoke/
Dcap_test_001.cpp82 capheader.pid = INVAILD_PID; in TestChild()
86 capheader.pid = 3; in TestChild()
87 kill(capheader.pid, 0); in TestChild()
94 capheader.pid = 4; in TestChild()
95 kill(capheader.pid, 0); in TestChild()
102 capheader.pid = 5; in TestChild()
103 kill(capheader.pid, 0); in TestChild()
110 capheader.pid = 6; in TestChild()
111 kill(capheader.pid, 0); in TestChild()
117 capheader.pid = 0; in TestChild()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
Dcgroup_util.c259 int pid = strtol(ptr, &ptr, 10); in cg_killall() local
261 if (pid == 0) in cg_killall()
267 if (kill(pid, SIGKILL)) in cg_killall()
292 int cg_enter(const char *cgroup, int pid) in cg_enter() argument
296 snprintf(pidbuf, sizeof(pidbuf), "%d", pid); in cg_enter()
314 int pid, retcode; in cg_run() local
316 pid = fork(); in cg_run()
317 if (pid < 0) { in cg_run()
318 return pid; in cg_run()
319 } else if (pid == 0) { in cg_run()
[all …]
/kernel/linux/linux-5.10/arch/um/include/shared/
Dregisters.h12 extern int save_i387_registers(int pid, unsigned long *fp_regs);
13 extern int restore_i387_registers(int pid, unsigned long *fp_regs);
14 extern int save_fp_registers(int pid, unsigned long *fp_regs);
15 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
16 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
17 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
18 extern int save_registers(int pid, struct uml_pt_regs *regs);
19 extern int restore_pid_registers(int pid, struct uml_pt_regs *regs);
20 extern int init_pid_registers(int pid);
23 extern int get_fp_registers(int pid, unsigned long *regs);
[all …]
/kernel/liteos_a/testsuites/unittest/basic/exc/smoke/
Dit_test_exc_004.cpp41 pid_t pid = fork(); in TestThread() local
42 ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, INVALID_PROCESS_ID, pid); in TestThread()
43 if (pid == 0) { in TestThread()
50 ret = waitpid(pid, NULL, 0); in TestThread()
51 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in TestThread()
62 pid_t pid = fork(); in TestCase() local
63 ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, INVALID_PROCESS_ID, pid); in TestCase()
64 if (pid == 0) { in TestCase()
70 ret = waitpid(pid, &status, 0); in TestCase()
71 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in TestCase()
Dit_test_exc_001.cpp38 pid_t pid = fork(); in TestCase() local
39 ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, INVALID_PROCESS_ID, pid); in TestCase()
40 if (pid == 0) { in TestCase()
45 ret = waitpid(pid, &status, 0); in TestCase()
46 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in TestCase()
54 pid = fork(); in TestCase()
55 ICUNIT_ASSERT_WITHIN_EQUAL(pid, 0, INVALID_PROCESS_ID, pid); in TestCase()
56 if (pid == 0) { in TestCase()
61 ret = waitpid(pid, &status, 0); in TestCase()
62 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in TestCase()
/kernel/linux/linux-5.10/arch/powerpc/mm/
Dmmu_decl.h31 static inline void _tlbil_pid(unsigned int pid) in _tlbil_pid() argument
34 trace_tlbia(pid); in _tlbil_pid()
36 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
40 extern void _tlbil_pid(unsigned int pid);
42 extern void _tlbil_pid_noind(unsigned int pid);
44 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
52 static inline void _tlbil_va(unsigned long address, unsigned int pid, in _tlbil_va() argument
56 trace_tlbie(0, 0, address, pid, 0, 0, 0); in _tlbil_va()
59 extern void _tlbil_va(unsigned long address, unsigned int pid,
62 extern void __tlbil_va(unsigned long address, unsigned int pid);
[all …]

12345678910>>...65