Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2016 13:21:30 -0700
From:      Ngie Cooper <yaneurabeya@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r302902 - in head: lib/libc/sys sys/kern sys/sys tests/sys/kern
Message-ID:  <CAGHfRMDKXS=WiXYmt4rhrqrh0ckELAg_A2=b7KKLaSBo=GGPEQ@mail.gmail.com>
In-Reply-To: <201607151532.u6FFW9JE000862@repo.freebsd.org>
References:  <201607151532.u6FFW9JE000862@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 15, 2016 at 8:32 AM, John Baldwin <jhb@freebsd.org> wrote:
> Author: jhb
> Date: Fri Jul 15 15:32:09 2016
> New Revision: 302902
> URL: https://svnweb.freebsd.org/changeset/base/302902
>
> Log:
>   Add a mask of optional ptrace() events.
>
>   ptrace() now stores a mask of optional events in p_ptevents.  Currently
>   this mask is a single integer, but it can be expanded into an array of
>   integers in the future.
>
>   Two new ptrace requests can be used to manipulate the event mask:
>   PT_GET_EVENT_MASK fetches the current event mask and PT_SET_EVENT_MASK
>   sets the current event mask.
>
>   The current set of events include:
>   - PTRACE_EXEC: trace calls to execve().
>   - PTRACE_SCE: trace system call entries.
>   - PTRACE_SCX: trace syscam call exits.
>   - PTRACE_FORK: trace forks and auto-attach to new child processes.
>   - PTRACE_LWP: trace LWP events.
>
>   The S_PT_SCX and S_PT_SCE events in the procfs p_stops flags have
>   been replaced by PTRACE_SCE and PTRACE_SCX.  PTRACE_FORK replaces
>   P_FOLLOW_FORK and PTRACE_LWP replaces P2_LWP_EVENTS.
>
>   The PT_FOLLOW_FORK and PT_LWP_EVENTS ptrace requests remain for
>   compatibility but now simply toggle corresponding flags in the
>   event mask.
>
>   While here, document that PT_SYSCALL, PT_TO_SCE, and PT_TO_SCX both
>   modify the event mask and continue the traced process.
>
>   Reviewed by:  kib
>   MFC after:    1 month
>   Differential Revision:        https://reviews.freebsd.org/D7044

This broke linux(4): https://jenkins.freebsd.org/job/FreeBSD_HEAD_i386/3597/ .
Thanks,
-Ngie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGHfRMDKXS=WiXYmt4rhrqrh0ckELAg_A2=b7KKLaSBo=GGPEQ>