Home
last modified time | relevance | path

Searched full:ppid (Results 1 – 25 of 91) sorted by relevance

1234

/linux/tools/testing/selftests/cgroup/
H 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()
207 int ppid; in forkbomb_fn() local
212 ppid = getppid(); in forkbomb_fn()
214 while (getppid() == ppid) in forkbomb_fn()
217 return getppid() == ppid; in forkbomb_fn()
H 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()
/linux/tools/perf/util/
H A Dthread.h38 /** @ppid: parent process of the process this thread belongs to. */ in DECLARE_RC_STRUCT()
39 pid_t ppid; in DECLARE_RC_STRUCT() local
170 return RC_CHK_ACCESS(thread)->ppid; in thread__ppid()
173 static inline void thread__set_ppid(struct thread *thread, pid_t ppid) in thread__set_ppid() argument
175 RC_CHK_ACCESS(thread)->ppid = ppid; in thread__set_ppid()
H A Dsynthetic-events.c71 * the comm, tgid and ppid.
74 pid_t *tgid, pid_t *ppid, bool *kernel) in perf_event__get_comm_ids() argument
83 *ppid = -1; in perf_event__get_comm_ids()
99 pr_warning("Couldn't get COMM, tigd and ppid for pid %d\n", in perf_event__get_comm_ids()
107 ppids = strstr(tgids ?: bf, "PPid:"); in perf_event__get_comm_ids()
140 ppids += 5; /* strlen("PPid:") */ in perf_event__get_comm_ids()
141 *ppid = atoi(ppids); in perf_event__get_comm_ids()
143 pr_debug("PPid: string not found for pid %d\n", tid); in perf_event__get_comm_ids()
156 pid_t *tgid, pid_t *ppid, bool *kernel) in perf_event__prepare_comm() argument
160 *ppid = -1; in perf_event__prepare_comm()
[all …]
/linux/tools/testing/selftests/powerpc/signal/
H 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()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_port.c34 struct netdev_phys_item_id *ppid) in nfp_port_get_port_parent_id() argument
43 ppid->id_len = nfp_cpp_serial(port->app->cpp, &serial); in nfp_port_get_port_parent_id()
44 memcpy(&ppid->id, serial, ppid->id_len); in nfp_port_get_port_parent_id()
/linux/net/bridge/
H A Dbr_switchdev.c226 if (netdev_phys_item_id_same(&joining->ppid, &p->ppid)) { in nbp_switchdev_hwdom_set()
256 struct netdev_phys_item_id ppid, in nbp_switchdev_add() argument
267 if (!netdev_phys_item_id_same(&p->ppid, &ppid)) { in nbp_switchdev_add()
282 p->ppid = ppid; in nbp_switchdev_add()
851 struct netdev_phys_item_id ppid; in br_switchdev_port_offload() local
854 err = netif_get_port_parent_id(dev, &ppid, false); in br_switchdev_port_offload()
858 err = nbp_switchdev_add(p, ppid, tx_fwd_offload, extack); in br_switchdev_port_offload()
/linux/tools/testing/selftests/mm/
H 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()
H A Dmrelease_test.c22 int ppid = getppid(); in alloc_noexit() local
40 while (getppid() == ppid && timeout > 0) { in alloc_noexit()
/linux/Documentation/trace/postprocess/
H A Dtrace-pagealloc-postprocess.pl169 my $ppid;
176 die("Failed to match stat line process ppid:: $statline");
179 # Read the ppid stat line
180 $ppid = $1;
181 return guess_process_pid($ppid, read_statline($ppid));
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_open_test.c169 if (info.ppid != getppid()) { in main()
170 ksft_print_msg("ppid %d does not match ppid from ioctl %d\n", in main()
/linux/tools/testing/selftests/kvm/lib/
H A Dassert.c24 * addr2line -s -e /proc/$PPID/exe -fpai {backtrace addresses} | \ in test_dump_stack()
32 const char *addr2line = "addr2line -s -e /proc/$PPID/exe -fpai"; in test_dump_stack()
/linux/tools/perf/tests/shell/
H 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
/linux/drivers/net/ethernet/intel/ixgbe/devlink/
H A Ddevlink.c517 * @ppid: struct with switch id information
520 struct netdev_phys_item_id *ppid) in ixgbe_devlink_set_switch_id() argument
524 ppid->id_len = sizeof(id); in ixgbe_devlink_set_switch_id()
525 put_unaligned_be64(id, &ppid->id); in ixgbe_devlink_set_switch_id()
/linux/tools/perf/
H 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()
976 /* sort by ppid first, then by pid, lowest to highest */ in sort_pids()
993 if (cursor->ppid > p->ppid || in sort_pids()
994 (cursor->ppid in sort_pids()
[all...]
/linux/tools/testing/selftests/uevent/
H 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()
/linux/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c168 pid_t ppid = getppid(); in main() local
170 if (ppid != getppid()) in main()
/linux/drivers/net/ethernet/sfc/
H A Def100_rep.c82 struct netdev_phys_item_id *ppid) in efx_ef100_rep_get_port_parent_id() argument
90 ppid->id_len = sizeof(nic_data->port_id); in efx_ef100_rep_get_port_parent_id()
91 memcpy(ppid->id, nic_data->port_id, sizeof(nic_data->port_id)); in efx_ef100_rep_get_port_parent_id()
/linux/tools/testing/selftests/net/packetdrill/
H A Dset_sysctls.py12 file could restore sysctls by running `/tmp/sysctl_restore_${PPID}.sh`
H A Dtcp_slow_start_slow-start-after-idle.pkt39 `/tmp/sysctl_restore_${PPID}.sh`
H A Dtcp_zerocopy_fastopen-server.pkt46 `/tmp/sysctl_restore_${PPID}.sh`
H A Dtcp_slow_start_slow-start-after-win-update.pkt50 `/tmp/sysctl_restore_${PPID}.sh`
/linux/drivers/net/ethernet/intel/ice/devlink/
H A Dport.c302 * @ppid: struct with switch id information
305 ice_devlink_set_switch_id(struct ice_pf *pf, struct netdev_phys_item_id *ppid) in ice_devlink_set_switch_id() argument
312 ppid->id_len = sizeof(id); in ice_devlink_set_switch_id()
313 put_unaligned_be64(id, &ppid->id); in ice_devlink_set_switch_id()
/linux/net/core/
H A Dnet-sysfs.c641 struct netdev_phys_item_id ppid; in phys_port_id_show() local
648 ret = dev_get_phys_port_id(netdev, &ppid); in phys_port_id_show()
650 ret = sysfs_emit(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_port_id_show()
683 struct netdev_phys_item_id ppid = { }; in phys_switch_id_show() local
690 ret = netif_get_port_parent_id(netdev, &ppid, false); in phys_switch_id_show()
692 ret = sysfs_emit(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_switch_id_show()
/linux/tools/testing/selftests/bpf/progs/
H 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()

1234