Home
last modified time | relevance | path

Searched refs:mypid (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/tools/testing/selftests/ftrace/test.d/event/
H A Devent-no-pid.tc68 read mypid rest < /proc/self/stat
70 echo $mypid > set_event_notrace_pid
71 grep -q $mypid set_event_notrace_pid
79 cnt=`count_pid $mypid`
84 cnt=`count_no_pid $mypid`
91 echo $mypid > set_event_notrace_pid
106 cnt=`count_pid $mypid`
116 cnt=`count_no_pid $mypid`
H A Devent-pid.tc33 read mypid rest < /proc/self/stat
35 echo $mypid > set_event_pid
36 grep -q $mypid set_event_pid
41 count=`cat trace | grep sched_switch | grep -v "pid=$mypid" | wc -l`
48 echo $mypid > set_event_pid
54 count=`cat trace | grep sched_switch | grep -v "pid=$mypid" | wc -l`
/openbmc/linux/tools/accounting/
H A Dgetdelays.c284 __u32 mypid; in main() local
406 mypid = getpid(); in main()
415 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
440 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
455 rc = send_cmd(nl_sd, id, mypid, CGROUPSTATS_CMD_GET, in main()
557 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
H A Dprocacct.c266 __u32 mypid; in main() local
331 mypid = getpid(); in main()
340 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
398 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
/openbmc/linux/tools/testing/selftests/x86/
H A Dsyscall_numbering.c229 pid_t mypid = getpid(); in test_x32() local
235 if (ret == mypid) { in test_x32()
242 …pid() returned %lld, but it should have returned either %lld or -ENOSYS\n", ret, (long long)mypid); in test_x32()
/openbmc/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c1452 pid_t mypid, parent; in TEST_F() local
1455 mypid = getpid(); in TEST_F()
1467 EXPECT_EQ(mypid, syscall(__NR_getpid)); in TEST_F()
1472 pid_t mypid, parent; in TEST_F() local
1475 mypid = getpid(); in TEST_F()
1487 EXPECT_EQ(mypid, syscall(__NR_getpid)); in TEST_F()
2036 pid_t tracer, mytid, mypid, parent; in FIXTURE() local
2155 self->mypid = getpid(); in FIXTURE_SETUP()
2156 ASSERT_GT(self->mypid, 0); in FIXTURE_SETUP()
2157 ASSERT_EQ(self->mytid, self->mypid); in FIXTURE_SETUP()
[all …]