Home
last modified time | relevance | path

Searched refs:ppid (Results 1 – 25 of 26) sorted by relevance

12

/tools/testing/selftests/cgroup/
A Dtest_kill.c48 int ppid = getppid(); in child_fn() local
50 while (getppid() == ppid) in child_fn()
53 return getppid() == ppid; in child_fn()
206 int ppid; in forkbomb_fn() local
211 ppid = getppid(); in forkbomb_fn()
213 while (getppid() == ppid) in forkbomb_fn()
216 return getppid() == ppid; in forkbomb_fn()
A Dtest_freezer.c123 int ppid = getppid(); in child_fn() local
125 while (getppid() == ppid) in child_fn()
128 return getppid() == ppid; in child_fn()
342 int ppid; in forkbomb_fn() local
347 ppid = getppid(); in forkbomb_fn()
349 while (getppid() == ppid) in forkbomb_fn()
352 return getppid() == ppid; in forkbomb_fn()
A Dtest_memcontrol.c391 int ppid = getppid(); in alloc_pagecache_50M_noexit() local
396 while (getppid() == ppid) in alloc_pagecache_50M_noexit()
404 int ppid = getppid(); in alloc_anon_noexit() local
417 while (getppid() == ppid) in alloc_anon_noexit()
A Dtest_core.c57 int ppid = getppid(); in alloc_and_touch_anon_noexit() local
71 while (getppid() == ppid) in alloc_and_touch_anon_noexit()
/tools/testing/selftests/powerpc/signal/
A Dsignal.c40 pid_t ppid = getpid(); in test_signal() local
63 signal_self(ppid, SIGUSR1); in test_signal()
85 rc = signal_self(ppid, SIGUSR1); in test_signal()
/tools/testing/selftests/mm/
A Dmemfd_secret.c152 pid_t ppid = getppid(); in try_ptrace() local
162 ret = ptrace(PTRACE_ATTACH, ppid, 0, 0); in try_ptrace()
168 ret = waitpid(ppid, &status, WUNTRACED); in try_ptrace()
169 if ((ret != ppid) || !(WIFSTOPPED(status))) { in try_ptrace()
175 if (ptrace(PTRACE_PEEKDATA, ppid, mem, 0)) in try_ptrace()
A Dmrelease_test.c22 int ppid = getppid(); in alloc_noexit() local
40 while (getppid() == ppid && timeout > 0) { in alloc_noexit()
/tools/perf/util/
A Dthread.h39 pid_t ppid; in DECLARE_RC_STRUCT() local
166 return RC_CHK_ACCESS(thread)->ppid; in thread__ppid()
169 static inline void thread__set_ppid(struct thread *thread, pid_t ppid) in thread__set_ppid() argument
171 RC_CHK_ACCESS(thread)->ppid = ppid; in thread__set_ppid()
A Dsynthetic-events.c74 pid_t *tgid, pid_t *ppid, bool *kernel) in perf_event__get_comm_ids() argument
83 *ppid = -1; in perf_event__get_comm_ids()
141 *ppid = atoi(ppids); in perf_event__get_comm_ids()
160 *ppid = -1; in perf_event__prepare_comm()
167 tgid, ppid, kernel) != 0) { in perf_event__prepare_comm()
196 pid_t tgid, ppid; in perf_event__synthesize_comm() local
275 event->fork.ppid = ppid; in perf_event__synthesize_fork()
276 event->fork.ptid = ppid; in perf_event__synthesize_fork()
278 event->fork.ppid = tgid; in perf_event__synthesize_fork()
779 pid_t tgid, ppid; in __event__synthesize_thread() local
[all …]
A Ddata-convert-bt.c917 __NON_SAMPLE_SET_FIELD(fork, u32, ppid);
925 __NON_SAMPLE_SET_FIELD(fork, u32, ppid);
1268 __NON_SAMPLE_ADD_FIELD(u32, ppid);
1276 __NON_SAMPLE_ADD_FIELD(u32, ppid);
A Devent.c415 event->fork.ppid, event->fork.ptid); in perf_event__fprintf_task()
444 event->fork.ppid, event->fork.ptid); in perf_event__exit_del_thread()
A Dpython.c107 member_def(perf_record_fork, ppid, T_UINT, "event ppid"),
120 pevent->event.fork.ppid, in pyrf_task_event__repr()
A Dmachine.c1867 event->fork.ppid, in machine__process_fork_event()
1881 if (thread__pid(parent) != (pid_t)event->fork.ppid) { in machine__process_fork_event()
1886 parent = machine__findnew_thread(machine, event->fork.ppid, in machine__process_fork_event()
A Dsession.c341 event->fork.ppid = bswap_32(event->fork.ppid); in perf_event__task_swap()
/tools/testing/selftests/resctrl/
A Dresctrl_val.c548 pid_t ppid; in resctrl_val() local
559 ppid = getpid(); in resctrl_val()
562 ret = taskset_benchmark(ppid, uparams->cpu, &old_affinity); in resctrl_val()
567 ret = write_bm_pid_to_resctrl(ppid, param->ctrlgrp, param->mongrp); in resctrl_val()
639 taskset_restore(ppid, &old_affinity); in resctrl_val()
/tools/testing/selftests/ptrace/
A Dpeeksiginfo.c168 pid_t ppid = getppid(); in main() local
170 if (ppid != getppid()) in main()
/tools/testing/selftests/uevent/
A Duevent_filtering.c223 pid_t ppid; in set_death_signal() local
228 ppid = getppid(); in set_death_signal()
229 if (ppid == 1) { in set_death_signal()
/tools/perf/tests/shell/
A Dtest_intel_pt.sh264 ppid=$!
265 echo "perf PID is $ppid"
266 wait_for_perf_to_start ${ppid} "${errfile}" || return 1
270 is_running ${ppid} || return 1
274 wait_for_process_to_exit ${ppid} || return 1
/tools/perf/
A Dbuiltin-timechart.c96 int ppid; member
255 static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp) in pid_fork() argument
259 pp = find_create_pid(tchart, ppid); in pid_fork()
260 p->ppid = ppid; in pid_fork()
339 pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time); in process_fork_event()
993 if (cursor->ppid > p->ppid || in sort_pids()
994 (cursor->ppid == p->ppid && cursor->pid > p->pid)) { in sort_pids()
/tools/testing/selftests/pidfd/
A Dpidfd_open_test.c169 if (info.ppid != getppid()) { in main()
A Dpidfd.h176 __u32 ppid; member
/tools/testing/selftests/bpf/progs/
A Dprofiler.inc.h182 u32 num_ancestors, ppid; in populate_ancestors() local
192 ppid = BPF_CORE_READ(parent, tgid); in populate_ancestors()
193 if (is_init_process(ppid)) in populate_ancestors()
195 ancestors_data->ancestor_pids[num_ancestors] = ppid; in populate_ancestors()
/tools/lib/perf/include/perf/
A Devent.h62 __u32 pid, ppid; member
/tools/perf/bench/
A Dinject-buildid.c165 event.fork.ppid = 1; in synthesize_fork()
/tools/perf/Documentation/
A Dperf-report.txt618 Display monitored tasks stored in perf data. Displaying pid/tid/ppid

Completed in 69 milliseconds

12