Home
last modified time | relevance | path

Searched full:pid (Results 1 – 25 of 2852) sorted by relevance

12345678910>>...115

/openbmc/linux/include/linux/
H A Dpid.h19 * What is struct pid?
21 * A struct pid is the kernel's internal notion of a process identifier.
23 * there are processes attached to it the struct pid lives in a hash
25 * quickly from the numeric pid value. The attached processes may be
26 * quickly accessed by following pointers from struct pid.
29 * problem. The process originally with that pid may have exited and the
30 * pid allocator wrapped, and another process could have come along
31 * and been assigned that pid.
38 * a struct pid is about 64 bytes.
40 * Holding a reference to struct pid solves both of these problems.
[all …]
/openbmc/linux/kernel/
H A Dpid.c3 * Generic pidhash and scalable, time-bounded PID allocator
9 * pid-structures are backing objects for tasks sharing a given ID to chain
17 * We have a list of bitmap pages, which bitmaps represent the PID space.
23 * Pid namespaces:
48 struct pid init_struct_pid = {
70 * PID-map pages start out as NULL, they get allocated upon
108 void put_pid(struct pid *pid) in put_pid() argument
112 if (!pid) in put_pid()
115 ns = pid->numbers[pid->level].ns; in put_pid()
116 if (refcount_dec_and_test(&pid->count)) { in put_pid()
[all …]
/openbmc/linux/tools/testing/selftests/rlimits/
H A Drlimits-per-userns.c32 pid_t pid = getpid(); in setrlimit_nproc() local
38 warnx("(pid=%d): Setting RLIMIT_NPROC=%ld", pid, n); in setrlimit_nproc()
41 err(EXIT_FAILURE, "(pid=%d): setrlimit(RLIMIT_NPROC)", pid); in setrlimit_nproc()
46 pid_t pid = fork(); in fork_child() local
48 if (pid < 0) in fork_child()
51 if (pid > 0) in fork_child()
52 return pid; in fork_child()
54 pid = getpid(); in fork_child()
56 warnx("(pid=%d): New process starting ...", pid); in fork_child()
59 err(EXIT_FAILURE, "(pid=%d): prctl(PR_SET_PDEATHSIG)", pid); in fork_child()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-perf-hwbreak.c39 static inline long sys_ptrace(long request, pid_t pid, unsigned long addr, unsigned long data) in sys_ptrace() argument
41 return syscall(__NR_ptrace, request, pid, addr, data); in sys_ptrace()
49 static long ptrace_getregs(pid_t pid, struct pt_regs *result) in ptrace_getregs() argument
51 return sys_ptrace(PTRACE_GETREGS, pid, 0, (unsigned long)result); in ptrace_getregs()
54 static long ptrace_setregs(pid_t pid, struct pt_regs *result) in ptrace_setregs() argument
56 return sys_ptrace(PTRACE_SETREGS, pid, 0, (unsigned long)result); in ptrace_setregs()
59 static long ptrace_cont(pid_t pid, long signal) in ptrace_cont() argument
61 return sys_ptrace(PTRACE_CONT, pid, 0, signal); in ptrace_cont()
64 static long ptrace_singlestep(pid_t pid, long signal) in ptrace_singlestep() argument
66 return sys_ptrace(PTRACE_SINGLESTEP, pid, 0, signal); in ptrace_singlestep()
[all …]
/openbmc/linux/include/trace/events/
H A Doom.h19 __field( pid_t, pid)
25 __entry->pid = task->pid;
30 TP_printk("pid=%d comm=%s oom_score_adj=%hd",
31 __entry->pid, __entry->comm, __entry->oom_score_adj)
82 __field(int, pid)
94 __entry->pid = task->pid;
105 …TP_printk("pid=%d comm=%s total-vm=%lukB anon-rss=%lukB file-rss:%lukB shmem-rss:%lukB uid=%u pgta…
106 __entry->pid,
119 TP_PROTO(int pid),
121 TP_ARGS(pid),
[all …]
H A Dsched.h24 __field( pid_t, pid )
29 __entry->pid = t->pid;
32 TP_printk("comm=%s pid=%d", __entry->comm, __entry->pid)
149 __field( pid_t, pid )
156 __entry->pid = p->pid;
161 TP_printk("comm=%s pid=%d prio=%d target_cpu=%03d",
162 __entry->comm, __entry->pid, __entry->prio,
243 __entry->prev_pid = prev->pid;
247 __entry->next_pid = next->pid;
282 __field( pid_t, pid )
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/signal/
H A Dsigreturn_kernel.c35 pid_t pid; in fork_child() local
37 pid = fork(); in fork_child()
38 if (pid == 0) { in fork_child()
43 return pid; in fork_child()
46 static int expect_segv(pid_t pid) in expect_segv() argument
50 waitpid(pid, &child_ret, 0); in expect_segv()
62 pid_t pid; in test_sigreturn_kernel() local
73 pid = fork_child(); in test_sigreturn_kernel()
74 expect_segv(pid); in test_sigreturn_kernel()
78 pid = fork_child(); in test_sigreturn_kernel()
[all …]
/openbmc/linux/arch/x86/um/os-Linux/
H A Dregisters.c22 int save_i387_registers(int pid, unsigned long *fp_regs) in save_i387_registers() argument
24 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
29 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
37 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in save_fp_registers()
42 return save_i387_registers(pid, fp_regs); in save_fp_registers()
45 int restore_i387_registers(int pid, unsigned long *fp_regs) in restore_i387_registers() argument
47 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers()
52 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
59 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in restore_fp_registers()
64 return restore_i387_registers(pid, fp_regs); in restore_fp_registers()
[all …]
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dradix_tlb.c29 unsigned int pid, in tlbiel_radix_set_isa300() argument
36 rs = ((unsigned long)pid << PPC_BITLSHIFT(31)); in tlbiel_radix_set_isa300()
100 static __always_inline void __tlbiel_pid(unsigned long pid, int set, in __tlbiel_pid() argument
107 rs = ((unsigned long)pid) << PPC_BITLSHIFT(31); in __tlbiel_pid()
116 static __always_inline void __tlbie_pid(unsigned long pid, unsigned long ric) in __tlbie_pid() argument
121 rs = pid << PPC_BITLSHIFT(31); in __tlbie_pid()
158 static __always_inline void __tlbiel_va(unsigned long va, unsigned long pid, in __tlbiel_va() argument
165 rs = pid << PPC_BITLSHIFT(31); in __tlbiel_va()
174 static __always_inline void __tlbie_va(unsigned long va, unsigned long pid, in __tlbie_va() argument
181 rs = pid << PPC_BITLSHIFT(31); in __tlbie_va()
[all …]
/openbmc/phosphor-pid-control/test/
H A Dmeson.build46 'pid_json_unittest': ['../pid/buildjson.cpp',
48 'pid_fancontroller_unittest': ['../pid/ec/pid.cpp',
49 '../pid/ec/logging.cpp',
50 '../pid/fancontroller.cpp',
51 '../pid/pidcontroller.cpp',
52 '../pid/tuning.cpp',
53 '../pid/util.cpp'],
54 'pid_stepwisecontroller_unittest': ['../pid/ec/stepwise.cpp',
55 '../pid/stepwisecontroller.cpp',
56 '../pid/tuning.cpp',
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D228.out3 …ts": {"driver": "IMGFMT", "file": {"driver": "file", "filename": "TEST_DIR/PID-top.img"}, "node-na…
6 bs->filename: TEST_DIR/PID-top.img
7 bs->backing_file: file:TEST_DIR/PID-base.img
8 bs->backing->bs->filename: TEST_DIR/PID-base.img
15 …ts": {"driver": "IMGFMT", "file": {"driver": "file", "filename": "TEST_DIR/PID-top.img"}, "node-na…
20 …: "file", "filename": "TEST_DIR/PID-base.img"}}, "driver": "IMGFMT", "file": {"driver": "file", "f…
22 bs->backing->bs->filename: TEST_DIR/PID-base.img
24 {"execute": "change-backing-file", "arguments": {"backing-file": "TEST_DIR/PID-base.img", "device":…
27 bs->filename: TEST_DIR/PID-top.img
28 bs->backing_file: TEST_DIR/PID-base.img
[all …]
/openbmc/linux/kernel/trace/
H A Dpid_list.c93 static inline int pid_split(unsigned int pid, unsigned int *upper1, in pid_split() argument
99 /* In case a bad pid is passed in, then fail */ in pid_split()
100 if (unlikely(pid >= MAX_PID)) in pid_split()
103 *upper1 = (pid >> UPPER1_SHIFT) & UPPER_MASK; in pid_split()
104 *upper2 = (pid >> UPPER2_SHIFT) & UPPER_MASK; in pid_split()
105 *lower = pid & LOWER_MASK; in pid_split()
119 * trace_pid_list_is_set - test if the pid is set in the list
120 * @pid_list: The pid list to test
121 * @pid: The pid to see if set in the list.
123 * Tests if @pid is set in the @pid_list. This is usually called
[all …]
/openbmc/linux/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c6 * PID namespace.
47 pid_t pid = -1; in call_clone3_set_tid() local
56 pid = sys_clone3(&args, sizeof(args)); in call_clone3_set_tid()
57 if (pid < 0) { in call_clone3_set_tid()
63 if (pid == 0) { in call_clone3_set_tid()
68 ksft_print_msg("I am the child, my PID is %d (expected %d)\n", in call_clone3_set_tid()
98 if (expected_pid == 0 || expected_pid == pid) { in call_clone3_set_tid()
99 ksft_print_msg("I am the parent (%d). My child's pid is %d\n", in call_clone3_set_tid()
100 getpid(), pid); in call_clone3_set_tid()
103 "Expected child pid %d does not match actual pid %d\n", in call_clone3_set_tid()
[all …]
/openbmc/linux/arch/um/os-Linux/skas/
H A 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()
80 static int ptrace_dump_regs(int pid) in ptrace_dump_regs() argument
85 if (ptrace(PTRACE_GETREGS, pid, 0, regs) < 0) in ptrace_dump_regs()
107 void wait_stub_done(int pid) in wait_stub_done() argument
112 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED | __WALL)); in wait_stub_done()
119 err = ptrace(PTRACE_CONT, pid, 0, 0); in wait_stub_done()
131 err = ptrace_dump_regs(pid); in wait_stub_done()
135 …printk(UM_KERN_ERR "%s : failed to wait for SIGTRAP, pid = %d, n = %d, errno = %d, status = 0x%x\n… in wait_stub_done()
136 __func__, pid, n, errno, status); in wait_stub_done()
[all …]
/openbmc/linux/scripts/gdb/linux/
H A Dtasks.py42 def get_task_by_pid(pid): argument
44 if int(task['pid']) == pid:
50 """Find Linux task by PID and return the task_struct variable.
52 $lx_task_by_pid(PID): Given PID, iterate over all tasks of the target and
53 return that task_struct variable which PID matches."""
58 def invoke(self, pid): argument
59 task = get_task_by_pid(pid)
63 raise gdb.GdbError("No task of PID " + str(pid))
76 gdb.write("{:>10} {:>12} {:>7}\n".format("TASK", "PID", "COMM"))
80 task["pid"].format_string(),
[all …]
/openbmc/phosphor-pid-control/
H A Dtuning.md1 # PID Control Tuning & Logging
3 The openBMC PID control daemon, swampd (phosphor-pid-control) requires the user
4 to specify the sensors and PID coefficients. Determining good coefficients is
10 ## Tuning Fan PID Using a Fixed RPM Setpoint
18 ## Tuning Fan PID Control Parameters
20 `phosphor-pid-control` reads PID control values from
21 `/usr/share/swampd/config.json`, one can modify the PID parameters in the config
25 systemctl restart phosphor-pid-control.service
37 `phosphor-pid-control` will create a log for each PID control zone.
42 daemon to log the computations made during the core of the PID loop.
[all …]
H A Dmeson.build2 'phosphor-pid-control', 'cpp',
46 configure_file(input: 'phosphor-pid-control.service.in',
47 output: 'phosphor-pid-control.service',
84 'pid',
116 'pid/ec/pid.cpp',
117 'pid/ec/logging.cpp',
118 'pid/ec/stepwise.cpp',
119 'pid/fancontroller.cpp',
120 'pid/thermalcontroller.cpp',
121 'pid/pidcontroller.cpp',
[all …]
/openbmc/linux/tools/testing/selftests/ftrace/test.d/trigger/inter-event/
H A Dtrigger-inter-event-combined-hist.tc13 echo 'waking_latency u64 lat pid_t pid' > synthetic_events
20 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger
21 echo 'hist:keys=pid:waking_lat=common_timestamp.usecs-$ts0:onmatch(sched.sched_waking).waking_laten…
22 echo 'hist:keys=pid,lat:sort=pid,lat' > events/synthetic/waking_latency/trigger
24 echo 'wakeup_latency u64 lat pid_t pid' >> synthetic_events
25 echo 'hist:keys=pid:ts1=common_timestamp.usecs if comm=="ping"' >> events/sched/sched_wakeup/trigger
28 echo 'waking_plus_wakeup_latency u64 lat; pid_t pid' >> synthetic_events
29 …ho 'hist:keys=pid,lat:sort=pid,lat:ww_lat=$waking_lat+$wakeup_lat:onmatch(synthetic.wakeup_latency…
30 echo 'hist:keys=pid,lat:sort=pid,lat' >> events/synthetic/waking_plus_wakeup_latency/trigger
33 if ! grep -q "pid:" events/synthetic/waking_plus_wakeup_latency/hist; then
/openbmc/linux/arch/um/os-Linux/
H A 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 …]
/openbmc/linux/drivers/media/common/b2c2/
H A Dflexcop-hw-filter.c4 * flexcop-hw-filter.c - pid and mac address filtering and control functions
47 u16 pid, u16 mask) in flexcop_pid_group_filter() argument
51 v30c.pid_filter_30c_ext_ind_0_7.Group_PID = pid; in flexcop_pid_group_filter()
61 /* this fancy define reduces the code size of the quite similar PID controlling of
68 vpid.vregname.field = onoff ? pid : 0x1fff; \
75 u16 pid, int onoff) in flexcop_pid_Stream1_PID_ctrl() argument
82 u16 pid, int onoff) in flexcop_pid_Stream2_PID_ctrl() argument
89 u16 pid, int onoff) in flexcop_pid_PCR_PID_ctrl() argument
95 u16 pid, int onoff) in flexcop_pid_PMT_PID_ctrl() argument
101 u16 pid, int onoff) in flexcop_pid_EMM_PID_ctrl() argument
[all …]
/openbmc/linux/arch/powerpc/mm/nohash/
H A Dtlb.c137 unsigned int pid; in local_flush_tlb_mm() local
140 pid = mm->context.id; in local_flush_tlb_mm()
141 if (pid != MMU_NO_CONTEXT) in local_flush_tlb_mm()
142 _tlbil_pid(pid); in local_flush_tlb_mm()
150 unsigned int pid; in __local_flush_tlb_page() local
153 pid = mm ? mm->context.id : 0; in __local_flush_tlb_page()
154 if (pid != MMU_NO_CONTEXT) in __local_flush_tlb_page()
155 _tlbil_va(vmaddr, pid, tsize, ind); in __local_flush_tlb_page()
184 unsigned int pid; member
193 _tlbil_pid(p ? p->pid : 0); in do_flush_tlb_mm_ipi()
[all …]
/openbmc/linux/tools/perf/scripts/perl/
H A Drw-by-pid.pl75 printf("read counts by pid:\n\n");
77 printf("%6s %20s %10s %10s %10s\n", "pid", "comm",
82 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,
93 printf("\nfailed reads by pid:\n\n");
95 printf("%6s %20s %6s %10s\n", "pid", "comm", "error #", "# errors");
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/vblade/files/
H A Dvblade.init25 PID_FILE=/var/run/$prog/${ID}.pid
27 pid=$!
29 echo $pid > $PID_FILE
30 echo -n $"$4 (e$2.$3@$1) [pid $pid]"
72 for pidfile in `ls /var/run/$prog/*.pid 2>/dev/null`
84 local pid_file=${2:-/var/run/$base.pid}
86 pid=
94 [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
98 if [ -n "$pid" ]; then
101 return 1 # "Program is dead and /var/run pid file exists"
[all …]
/openbmc/bmcweb/redfish-core/schema/oem/openbmc/json-schema/
H A DOpenBMCManager.v1_0_0.json58 "description": "Current OpenBMC pid controllers.",
59 "longDescription": "Current OpenBMC pid controllers."
102 "description": "Feed forward gain coefficient for the PID.",
103 "longDescription": "Feed forward gain coefficient for the PID.",
108 "description": "Feed forward offset coefficient for the PID.",
109 "longDescription": "Feed forward offset coefficient for the PID.",
114 "description": "Integral Coefficient for the PID.",
115 "longDescription": "Integral Coefficient for the PID.",
120 "description": "Integral limit maximum for the PID.",
121 "longDescription": "Integral limit maximum for the PID.",
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_smi_events.c42 pid_t pid; member
162 static bool kfd_smi_ev_enabled(pid_t pid, struct kfd_smi_client *client, in kfd_smi_ev_enabled() argument
168 if (pid && client->pid != pid && !(client->suser && (events & all))) in kfd_smi_ev_enabled()
174 static void add_event_to_kfifo(pid_t pid, struct kfd_node *dev, in add_event_to_kfifo() argument
182 if (!kfd_smi_ev_enabled(pid, client, smi_event)) in add_event_to_kfifo()
199 static void kfd_smi_event_add(pid_t pid, struct kfd_node *dev, in kfd_smi_event_add() argument
215 add_event_to_kfifo(pid, dev, event, fifo_in, len); in kfd_smi_event_add()
246 if (!task_info.pid) in kfd_smi_event_update_vmfault()
250 task_info.pid, task_info.task_name); in kfd_smi_event_update_vmfault()
253 void kfd_smi_event_page_fault_start(struct kfd_node *node, pid_t pid, in kfd_smi_event_page_fault_start() argument
[all …]

12345678910>>...115