From owner-svn-src-head@freebsd.org Fri Jul 15 20:21:32 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21356B990C2; Fri, 15 Jul 2016 20:21:32 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-qt0-x234.google.com (mail-qt0-x234.google.com [IPv6:2607:f8b0:400d:c0d::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CCAED1752; Fri, 15 Jul 2016 20:21:31 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-qt0-x234.google.com with SMTP id w38so65425664qtb.0; Fri, 15 Jul 2016 13:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MPNH5c9b4x6TZoYYb3VBq9PNw9tA9OvG+YrJ7+hM8Mo=; b=e6cEqqRj9Z1DPKiBur4qf58dNHOkBmfBNkHsCzFRwORqkyrU6bA1RE2vYKiqaiLRVK RlGjk1D4B8Kd5mzQGRbfWw+ik7vOOmNA4/JGstl1a8LZpWEWcmCz4trSiH7O2B5DxUaG tYvozlPZ7G0Id5DTKxM5mX1yha6ATScZqAURB47rKl+o7/nXcl9xDt1n5KCTzkQ3Qw1/ pHhztL2I9MFr1wvHKF6TGU312YJp2yf6BWV1TZ3fc8LBdHqJApsexDGLsZkZ4nwqqU/p LU9CoFYSdMZHr7bBvytaKJyOK9mwgWN/pTiVJstb6sDjBaKhCUQ8fYiyXYl9vaXe9qI4 pvdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MPNH5c9b4x6TZoYYb3VBq9PNw9tA9OvG+YrJ7+hM8Mo=; b=hQveYA9xHQoqW6s6OqGIUplOBYG7CUXrWgrBUD9+6bobp7crthBBhJ6QrUqnwdl8el 3NxehHFLCMwpCiD18KQKMjftvscdiP2h8jDmNVxBceQhRzjG8306SjuibVLDtLprG5TN oxx1JqlIRWiCvpTM3WcEXUcNLE4mcdIVkMGbOk7Y3NO5O7fPqp5oqdRBYuw/m5DFhM8i oU1/srPOZjlTyAYko6x4oRHJa8Y2xJ1nkU6TbfNzJ7GfOrRynQnK8lo3OvLO29lsdmV9 h5TLrLbMGE5VSsfN5TVsXrxZlatuCOqDgJRuqbOCuS7kc464NsXx0piJyZyFnDnXGXnU gq6g== X-Gm-Message-State: ALyK8tKn0HR9S2qQE8ho1XonJfPIv4QkYuQzvGTC1B8OV+5ESxlM2i/ea9Dd5P8x7gwZPfq5QVMZ7kZVGj6Vuw== X-Received: by 10.200.50.20 with SMTP id x20mr31979622qta.71.1468614090701; Fri, 15 Jul 2016 13:21:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.148.131 with HTTP; Fri, 15 Jul 2016 13:21:30 -0700 (PDT) In-Reply-To: <201607151532.u6FFW9JE000862@repo.freebsd.org> References: <201607151532.u6FFW9JE000862@repo.freebsd.org> From: Ngie Cooper Date: Fri, 15 Jul 2016 13:21:30 -0700 Message-ID: Subject: Re: svn commit: r302902 - in head: lib/libc/sys sys/kern sys/sys tests/sys/kern To: John Baldwin Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2016 20:21:32 -0000 On Fri, Jul 15, 2016 at 8:32 AM, John Baldwin 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