Lines Matching defs:events

1309  * Verify that the expected LWP events are reported for a child thread.
1397 * Verify that the expected LWP events are reported for a multithreaded
1543 * Verify that the expected ptrace events are reported for PTRACE_EXEC.
1549 int events, status;
1563 events = 0;
1564 ATF_REQUIRE(ptrace(PT_SET_EVENT_MASK, fpid, (caddr_t)&events,
1565 sizeof(events)) == 0);
1584 int events, status;
1598 events = PTRACE_EXEC;
1599 ATF_REQUIRE(ptrace(PT_SET_EVENT_MASK, fpid, (caddr_t)&events,
1600 sizeof(events)) == 0);
1629 int events, status;
1645 ATF_REQUIRE(ptrace(PT_GET_EVENT_MASK, fpid, (caddr_t)&events,
1646 sizeof(events)) == 0);
1647 ATF_REQUIRE(events & PTRACE_FORK);
1649 ATF_REQUIRE(ptrace(PT_GET_EVENT_MASK, fpid, (caddr_t)&events,
1650 sizeof(events)) == 0);
1651 ATF_REQUIRE(!(events & PTRACE_FORK));
1655 ATF_REQUIRE(ptrace(PT_GET_EVENT_MASK, fpid, (caddr_t)&events,
1656 sizeof(events)) == 0);
1657 ATF_REQUIRE(events & PTRACE_LWP);
1659 ATF_REQUIRE(ptrace(PT_GET_EVENT_MASK, fpid, (caddr_t)&events,
1660 sizeof(events)) == 0);
1661 ATF_REQUIRE(!(events & PTRACE_LWP));
1676 * Verify that the expected ptrace events are reported for PTRACE_VFORK.
1683 int events, status;
1697 ATF_REQUIRE(ptrace(PT_GET_EVENT_MASK, fpid, (caddr_t)&events,
1698 sizeof(events)) == 0);
1699 events |= PTRACE_VFORK;
1700 ATF_REQUIRE(ptrace(PT_SET_EVENT_MASK, fpid, (caddr_t)&events,
1701 sizeof(events)) == 0);
1731 int events, status;
1748 ATF_REQUIRE(ptrace(PT_GET_EVENT_MASK, children[0], (caddr_t)&events,
1749 sizeof(events)) == 0);
1750 events |= PTRACE_FORK | PTRACE_VFORK;
1751 ATF_REQUIRE(ptrace(PT_SET_EVENT_MASK, children[0], (caddr_t)&events,
1752 sizeof(events)) == 0);
1801 * Verify that no more events are reported after PT_KILL except for the
1848 * Verify that no more events are reported after PT_KILL except for the
1898 * Verify that no more events are reported after PT_KILL except for the
2076 * Verify that the SIGKILL from PT_KILL takes priority over other stop events
2077 * and prevents spurious stops caused by those events.
3770 /* Resume both threads waiting for breakpoint events. */
3801 * Will now get two thread exit events and one more breakpoint
3863 int events, status;
3910 ATF_REQUIRE(ptrace(PT_GET_EVENT_MASK, fpid, (caddr_t)&events,
3911 sizeof(events)) == 0);
3912 events &= ~PTRACE_SYSCALL;
3913 ATF_REQUIRE(ptrace(PT_SET_EVENT_MASK, fpid, (caddr_t)&events,
3914 sizeof(events)) == 0);