<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/amd64/include/counter.h, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-23T17:43:20Z</updated>
<entry>
<title>sys: Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-23T17:43:20Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f8167e0404dab9ffeaca95853dd237ab7c587f82'/>
<id>urn:sha1:f8167e0404dab9ffeaca95853dd237ab7c587f82</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

Similar commit in current:
(cherry picked from commit 95ee2897e98f)
</content>
</entry>
<entry>
<title>spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD</title>
<updated>2023-07-25T15:13:49Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-05-10T15:40:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=caa41f641755c935b036e17440a3b49329c904ed'/>
<id>urn:sha1:caa41f641755c935b036e17440a3b49329c904ed</id>
<content type='text'>
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix

(cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
</content>
</entry>
<entry>
<title>amd64: provide custom zpcpu set/add/sub routines</title>
<updated>2020-02-12T11:15:33Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-02-12T11:15:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2318ed25086624c03651a377a386f74dfd8ab4d5'/>
<id>urn:sha1:2318ed25086624c03651a377a386f74dfd8ab4d5</id>
<content type='text'>
Note that clobbers are highly overzealous, can be cleaned up later.
</content>
</entry>
<entry>
<title>amd64: store per-cpu allocations subtracted by __pcpu</title>
<updated>2020-02-12T11:12:13Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-02-12T11:12:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb886947d97375ea9906fa1396f83573b6d0674b'/>
<id>urn:sha1:fb886947d97375ea9906fa1396f83573b6d0674b</id>
<content type='text'>
This eliminates a runtime subtraction from counter_u64_add.

before:
mov    0x4f00ed(%rip),%rax        # 0xffffffff80c01788 &lt;numfullpathfail4&gt;
sub    0x808ff6(%rip),%rax        # 0xffffffff80f1a698 &lt;__pcpu&gt;
addq   $0x1,%gs:(%rax)

after:
mov    0x4f02fd(%rip),%rax        # 0xffffffff80c01788 &lt;numfullpathfail4&gt;
addq   $0x1,%gs:(%rax)

Reviewed by:	jeff
Differential Revision:	https://reviews.freebsd.org/D23570
</content>
</entry>
<entry>
<title>amd64: clean up counter(9)</title>
<updated>2020-02-07T16:22:02Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-02-07T16:22:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e2b81f518a9ea50c9c0b6e85a234b624340ddda9'/>
<id>urn:sha1:e2b81f518a9ea50c9c0b6e85a234b624340ddda9</id>
<content type='text'>
- stop open-coding access to per-cpu data, use common macros instead
- consistently use counter_t type where appropriate
</content>
</entry>
<entry>
<title>amd64: assert that EARLY_COUNTER does not corrupt memory.</title>
<updated>2019-11-24T19:02:13Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2019-11-24T19:02:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=13189065cb335587089d305a6e9b2170564db7a3'/>
<id>urn:sha1:13189065cb335587089d305a6e9b2170564db7a3</id>
<content type='text'>
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D22514
</content>
</entry>
<entry>
<title>Centralize __pcpu definitions.</title>
<updated>2019-08-29T07:25:27Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2019-08-29T07:25:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a2a0f90654eeca563cf47f043d6c1a14e6a7e289'/>
<id>urn:sha1:a2a0f90654eeca563cf47f043d6c1a14e6a7e289</id>
<content type='text'>
Many extern struct pcpu &lt;something&gt;__pcpu declarations were
copied/pasted in sources.  The issue is that the definition is MD, but
it cannot be provided by machine/pcpu.h due to actual struct pcpu
defined in sys/pcpu.h later than the inclusion of machine/pcpu.h.
This forced the copying when other code needed direct access to
__pcpu.  There is no way around it, due to machine/pcpu.h supplying
part of struct pcpu fields.

To work around the problem, add a new machine/pcpu_aux.h header, which
should fill any needed MD definitions after struct pcpu definition is
completed. This allows to remove copies of __pcpu spread around the
source.  Also on x86 it makes it possible to remove work arounds like
OFFSETOF_CURTHREAD or clang specific warnings supressions.

Reported and tested by:	lwhsu, bcran
Reviewed by:	imp, markj (previous version)
Discussed with:	jhb
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D21418
</content>
</entry>
<entry>
<title>amd64: rework PCPU allocation</title>
<updated>2019-08-24T15:31:31Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2019-08-24T15:31:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=10ff5eeb0422e78e973523cc40b0bb203b6e2100'/>
<id>urn:sha1:10ff5eeb0422e78e973523cc40b0bb203b6e2100</id>
<content type='text'>
Move pcpu KVA out of .bss into dynamically allocated VA at
pmap_bootstrap().  This avoids demoting superpage mapping .data/.bss.
Also it makes possible to use pmap_qenter() for installation of
domain-local pcpu page on NUMA configs.

Refactor pcpu and IST initialization by moving it to helper functions.

Reviewed by:	markj
Tested by:	pho
Discussed with:	jeff
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D21320
</content>
</entry>
<entry>
<title>Expand x86 struct pcpus to UMA_PCPU_ALLOC_SIZE AKA PAGE_SIZE.</title>
<updated>2018-07-06T19:50:44Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2018-07-06T19:50:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=53dec71d39b769dbc0a49d229c551ce3fa10fee8'/>
<id>urn:sha1:53dec71d39b769dbc0a49d229c551ce3fa10fee8</id>
<content type='text'>
This restores counters(9) operation.
Revert r336024. Improve assert of pcpu size on x86.

Reviewed by:	mmacy
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D16163
</content>
</entry>
<entry>
<title>Revert to recommit with the proper message.</title>
<updated>2018-07-06T19:50:25Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2018-07-06T19:50:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb0a28119668e17c848af45a2b463f8d54101b0b'/>
<id>urn:sha1:fb0a28119668e17c848af45a2b463f8d54101b0b</id>
<content type='text'>
</content>
</entry>
</feed>
