[libc] Add C23 binary prefix support to strtointeger (#202243)
The C23 standard (N3220 §7.24.1.7) requires strtol and related functions
to recognize the 0b/0B prefix when base is 2 or 0. This change
implements that support and adds relevant tests.
Assisted by: Claude Sonnet 4.6 for generating and understanding Tests.
Co-authored-by: shubhe25p <shubhp at Mac.lan>
[HLSL] Set visibility of cbuffer global variables to internal (2nd attempt) (#202745)
Global variables for all resources except `cbuffer` are already emitted
with internal linkage (since #166844).
This change adds internal linkage to the `cbuffer` handle globals as
well.
One problem is that the `cbuffer` handle globals appears unused between
Clang CodeGen and `{DXIL|SPIRV}CBufferAccess` pass, which replaces
individual `cbuffer` constant globals with accesses through the
`cbuffer` handle globals. Before this pass runs, the unused globals
could get optimized away in `GlobalOptPass` with `-O3`.
To solve this, the `cbuffer` handle globals are added to the
`@llvm.compiler.used` list to make sure they stay in the module until
the `{DXIL|SPRIV}CBufferAccess` pass, which then removes them from the
list.
This is a second attempt to land this change. The [first
[4 lines not shown]
Always render security_group ACG for FC targets
When an FC target's middleware initiator setting resolves to no WWPNs,
the mako previously dropped the GROUP security_group block entirely.
pyscstadmin's diff then has to issue del_group against the running
kernel, which SCST rejects with -EBUSY while FC sessions remain
attached. The result is /etc/scst.conf and the running configuration
silently diverging until a stop/start of the iscsi service.
Default the rendered initiator set to {'*'} when no WWPN restriction
is configured so the ACG is always present. Initiator updates then
become in-place INITIATOR add/remove operations rather than del_group;
SCST applies those cleanly.
(cherry picked from commit 879c8b0bd25be998c5c37e0ea9624bcf2b1d4451)
NAS-140265 / 27.0.0-BETA.1 / Always render security_group ACG for FC targets (#19111)
When an FC target's middleware initiator setting resolves to no WWPNs,
the mako previously dropped the GROUP security_group block entirely.
pyscstadmin's diff then has to issue del_group against the running
kernel, which SCST rejects with -EBUSY while FC sessions remain
attached. The result is /etc/scst.conf and the running configuration
silently diverging until a stop/start of the iscsi service.
Default the rendered initiator set to {'*'} when no WWPN restriction is
configured so the ACG is always present. Initiator updates then become
in-place INITIATOR add/remove operations rather than del_group; SCST
applies those cleanly.
pf: switch to getmicro(up)time()
It is reported that micro(up)time() performs poorly in certain
virtualisation scenarios. Absolute accuracy isn't required here, so
switch to the slightly less accurate (as per the man page) get-variants.
PR: 295043
MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit e4130ac13d2fe9c17b8f8e86d39a7b5223fe7b79)
[BOLT] Parse branch type from perf script
Parse branch type and set `IsReturn` when using perf data input.
This makes profile attaching more accurate for external returns.
Test Plan: updated perf_brstack.test
Reviewers: maksfb, rafaelauler, yozhu, ayermolo, yavtuk, paschalis-mpeis
Reviewed By: yozhu
Pull Request: https://github.com/llvm/llvm-project/pull/202813
graphics/drm-61-kmod: Update to latest version
This fixes compilation with clang21 (defualt on FreeBSD 16)
Sponsored by: Beckhoff Automation GmbH & Co. KG
(cherry picked from commit 8b9c184f66cc034bd6a73cbcd7e0d9eb74a530d7)
graphics/drm-*-kmod, graphics/nvidia-drm-*-kmod: Update DRM drivers
Several changes were made to all LTS drm-kmod branches:
1. All branches were updated with Makefile cleanups and fixes.
2. The addition of the `DMA_BUF_IOCTL_EXPORT_SYNC_FILE` and
`DMA_BUF_IOCTL_IMPORT_SYNC_FILE` ioctls was backported to the 6.1 and
6.6 branches.
3. A couple fixes to amdgpu and i915 drivers were committed to the 6.12
branch.
The corresponding `graphics/nvidia-drm-*-kmod` ports were updated to
reference the latest `graphics/drm-*-kmod` ports.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit e50c876e295af951485b605b8cb9bf567b6c23e1)
graphics/drm-66-kmod: Update to latest version
This fixes compilation with clang21 (defualt on FreeBSD 16)
Sponsored by: Beckhoff Automation GmbH & Co. KG
(cherry picked from commit d94082fc799fec79f52c4a7287f6fb5b2da61bb8)
[BOLT] Make mispreds optional for preagg B/T/R records (#202856)
Extend pre-aggregated format with an optional mispredictions field.
Update parsing and pre-aggregated profile writer.
Test Plan:
added PreAggregatedX86TestHelper.OptionalMispredField
updated pre-aggregated-records.s