Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2018 22:19:43 -0400
From:      "Jonathan T. Looney" <jtl@freebsd.org>
To:        Matt Macy <mmacy@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r333690 - in head/sys: dev/hwpmc kern sys
Message-ID:  <CADrOrmu03Ntm0=y_ZOdS6M=gP0M_ZRc0vrMgBW69hxQVq6sAKA@mail.gmail.com>
In-Reply-To: <201805162229.w4GMTKJj070790@repo.freebsd.org>
References:  <201805162229.w4GMTKJj070790@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 16, 2018 at 6:29 PM, Matt Macy <mmacy@freebsd.org> wrote:
>
> Author: mmacy
> Date: Wed May 16 22:29:20 2018
> New Revision: 333690
> URL: https://svnweb.freebsd.org/changeset/base/333690
>
> Log:
>   hwpmc: Implement per-thread counters for PMC sampling
>
>   This implements per-thread counters for PMC sampling. The thread
>   descriptors are stored in a list attached to the process descriptor.
>   These thread descriptors can store any per-thread information necessary
>   for current or future features. For the moment, they just store the
counters
>   for sampling.
>
>   The thread descriptors are created when the process descriptor is
created.
>   Additionally, thread descriptors are created or freed when threads
>   are started or stopped. Because the thread exit function is called in a
>   critical section, we can't directly free the thread descriptors. Hence,
>   they are freed to a cache, which is also used as a source of allocations
>   when needed for new threads.
>
>   Approved by:  sbruno
>   Obtained from:        jtl
>   Sponsored by: Juniper Networks, Limelight Networks
>   Differential Revision:        https://reviews.freebsd.org/D15335


Thanks!

Jonathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADrOrmu03Ntm0=y_ZOdS6M=gP0M_ZRc0vrMgBW69hxQVq6sAKA>