Home
last modified time | relevance | path

Searched refs:getpid (Results 1 – 61 of 61) sorted by relevance

/linux-4.4.14/tools/perf/tests/
Dthread-map.c12 map = thread_map__new_by_pid(getpid()); in test__thread_map()
19 thread_map__pid(map, 0) == getpid()); in test__thread_map()
Dkeep-tracking.c35 (pid_t)event->comm.pid == getpid() && in find_comm()
36 (pid_t)event->comm.tid == getpid() && in find_comm()
70 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__keep_tracking()
Ddwarf-unwind.c32 pid_t pid = getpid(); in init_live_machine()
170 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
Dmmap-thread-lookup.c140 map = thread_map__new_by_pid(getpid()); in synth_process()
186 thread = machine__findnew_thread(machine, getpid(), td->tid); in mmap_events()
Dopenat-syscall.c13 struct thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); in test__openat_syscall_event()
Dswitch-tracking.c66 (pid_t)event->comm.pid == getpid() && in check_comm()
67 (pid_t)event->comm.tid == getpid() && in check_comm()
329 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__switch_tracking()
Dbp_signal_overflow.c104 fcntl(fd, F_SETOWN, getpid()); in test__bp_signal_overflow()
Dopenat-syscall-tp-fields.c49 thread_map__set_pid(evlist->threads, 0, getpid()); in test__syscall_openat_tp_fields()
Dopenat-syscall-all-cpus.c17 struct thread_map *threads = thread_map__new(-1, getpid(), UINT_MAX); in test__openat_syscall_event_on_all_cpus()
Dsw-clock.c56 threads = thread_map__new_by_tid(getpid()); in __test__sw_clock_freq()
Dbp_signal.c92 fcntl(fd, F_SETOWN, getpid()); in bp_event()
Dmmap-basic.c35 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__basic_mmap()
Dbpf.c75 snprintf(pid, sizeof(pid), "%d", getpid()); in do_test()
Dbuiltin-test.c218 pr_debug("test child forked, pid %d\n", getpid()); in run_test()
Dcode-reading.c460 pid = getpid(); in do_test_code_reading()
/linux-4.4.14/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.h77 if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { in bind_cpu()
80 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
/linux-4.4.14/tools/perf/arch/x86/tests/
Dperf-time-to-tsc.c62 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc()
114 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc()
115 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
/linux-4.4.14/tools/testing/selftests/kcmp/
Dkcmp_test.c35 pid1 = getpid(); in main()
49 int pid2 = getpid(); in main()
/linux-4.4.14/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c139 kill(getpid(), SIGUSR1); in check_trapped()
214 kill(getpid(), SIGUSR1); in trigger_tests()
259 kill(getpid(), SIGUSR1); in trigger_tests()
/linux-4.4.14/tools/testing/selftests/x86/
Dptrace_syscall.c136 if (args.nr != getpid() || in test_sys32_regs()
148 args.arg0 = getpid(); in test_sys32_regs()
152 args.arg0 != getpid() || args.arg1 != SIGUSR1 || args.arg2 != 12 || in test_sys32_regs()
Dunwind_vdso.c118 bool ok = (eax == SYS_getpid || eax == getpid()) && in trace_fn()
/linux-4.4.14/tools/testing/selftests/powerpc/dscr/
Ddscr_explicit_test.c27 srand(getpid()); in dscr_explicit()
Ddscr_inherit_test.c28 srand(getpid()); in dscr_inherit()
Ddscr_default_test.c83 srand(getpid()); in dscr_default()
/linux-4.4.14/arch/um/os-Linux/
Dutil.c93 if (kill(getpid(), SIGABRT) < 0) in uml_abort()
Dumid.c224 snprintf(pid, sizeof(pid), "%d\n", getpid()); in create_pid_file()
/linux-4.4.14/tools/power/cpupower/bench/
Dsystem.c96 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
/linux-4.4.14/tools/hv/
Dhv_fcopy_daemon.c168 syslog(LOG_INFO, "HV_FCOPY starting; pid is:%d", getpid()); in main()
Dhv_vss_daemon.c177 syslog(LOG_INFO, "VSS starting; pid is:%d", getpid()); in main()
Dhv_kvp_daemon.c124 fl.l_pid = getpid(); in kvp_acquire_lock()
136 fl.l_pid = getpid(); in kvp_release_lock()
1434 syslog(LOG_INFO, "KVP starting; pid is:%d", getpid()); in main()
/linux-4.4.14/Documentation/accounting/
Dgetdelays.c175 rc = send_cmd(sd, GENL_ID_CTRL, getpid(), CTRL_CMD_GETFAMILY, in get_family_id()
382 mypid = getpid(); in main()
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/
Dlib.c167 printf("main test running as pid %d\n", getpid()); in eat_cpu()
/linux-4.4.14/Documentation/connector/
Ducon.c72 nlh->nlmsg_pid = getpid(); in netlink_send()
/linux-4.4.14/tools/perf/bench/
Dfutex-wake.c145 getpid(), nthreads, fshared ? "shared":"private", &futex1, nwakes); in bench_futex_wake()
Dfutex-requeue.c139 "%d at a time.\n\n", getpid(), nthreads, in bench_futex_requeue()
Dfutex-lock-pi.c166 getpid(), nthreads, nsecs); in bench_futex_lock_pi()
Dfutex-hash.c142 getpid(), nthreads, nfutexes, fshared ? "shared":"private", nsecs); in bench_futex_hash()
Dfutex-wake-parallel.c240 getpid(), nblocked_threads, fshared ? "shared":"private", in bench_futex_wake_parallel()
Dmem-functions.c68 cycles_fd = sys_perf_event_open(&cycle_attr, getpid(), -1, -1, perf_event_open_cloexec_flag()); in init_cycles()
/linux-4.4.14/tools/virtio/
Dvringh_test.c100 if (sched_setaffinity(getpid(), sizeof(set), &set) == 0) { in find_cpus()
191 if (sched_setaffinity(getpid(), sizeof(cpu_set), &cpu_set)) in parallel_test()
313 if (sched_setaffinity(getpid(), sizeof(cpu_set), &cpu_set)) in parallel_test()
/linux-4.4.14/Documentation/timers/
Dhpet_example.c250 if ((fcntl(fd, F_SETOWN, getpid()) == 1) || in hpet_fasync()
/linux-4.4.14/tools/net/
Dbpf_jit_disasm.c39 snprintf(tpath, size, "/proc/%d/exe", (int) getpid()); in get_exec_path()
/linux-4.4.14/tools/usb/usbip/src/
Dusbipd.c471 fprintf(fp, "%d\n", getpid()); in write_pid_file()
/linux-4.4.14/arch/parisc/kernel/
Dsyscall_table.S80 ENTRY_SAME(getpid) /* 20 */
/linux-4.4.14/arch/powerpc/include/asm/
Dsystbl.h26 SYSCALL_SPU(getpid)
/linux-4.4.14/arch/x86/entry/syscalls/
Dsyscall_64.tbl48 39 common getpid sys_getpid
Dsyscall_32.tbl29 20 i386 getpid sys_getpid
/linux-4.4.14/tools/testing/selftests/seccomp/
Dseccomp_bpf.c1087 pid_t tracee = getpid(); in setup_trace_fixture()
1388 self->mypid = getpid(); in FIXTURE_SETUP()
2156 EXPECT_EQ(getpid(), info.si_pid); in TEST()
/linux-4.4.14/Documentation/powerpc/
Dtransactional_memory.txt93 Examples are glibc's getpid() and lazy symbol resolution.
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt683 fprintf(stdout, "(%d) \n", getpid());
686 fprintf(stdout, "%d: Received 10000 packets\n", getpid());
712 fanout_id = getpid() & 0xffff;
/linux-4.4.14/scripts/kconfig/
Dconfdata.c774 sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); in conf_write()
/linux-4.4.14/tools/perf/
Dbuiltin-stat.c923 kill(getpid(), signr); in sig_atexit()
Dbuiltin-trace.c2598 err = perf_evlist__set_filter_pid(evlist, getpid()); in trace__run()
2963 trace->filter_pids.entries[0] = getpid(); in trace__set_filter_pids()
Dbuiltin-timechart.c1731 if (asprintf(&filter, "common_pid != %d", getpid()) < 0) in timechart__io_record()
/linux-4.4.14/Documentation/ia64/
Dfsys.txt86 of the getpid() system call.
/linux-4.4.14/tools/perf/util/
Dparse-events.c1586 snprintf(new_filter, sizeof(new_filter), "common_pid != %d", getpid()); in add_exclude_perf_filter()
Dheader.c380 sprintf(proc, "/proc/%d/exe", getpid()); in write_cmdline()
/linux-4.4.14/kernel/
Dsys.c830 SYSCALL_DEFINE0(getpid) in SYSCALL_DEFINE0() argument
/linux-4.4.14/tools/power/x86/turbostat/
Dturbostat.c1778 cap_header->pid = getpid(); in check_permissions()
/linux-4.4.14/Documentation/trace/
Dftrace.txt1842 s = sprintf(line, "%d\n", getpid());
/linux-4.4.14/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt3188 156 usr1_pid(getpid());