HBSD: Make sure the kinfo_file struct always gets zeroed
Similar to FreeBSD commit 25cc459286a02b646751541ccde5a33319471c73,
apply a memset in one of the core functions used to fill the structure.
This ensures that all kinfo_file structure allocations are zeroed (at
least, at the point of calling shm_fill_kinfo_locked).
Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>
MFC-to: 15-STABLE
inpcb: overhaul in_pcb.h
Pull up all user-visible stuff to the top of the file and isolate the
rest under _KERNEL. The user visible parts are:
- struct in_conninfo
- struct xinpcb
- defines for inp_flags bits, that are shared between xinpcb and inpcb
PR: 293493
[LLVM] Fix assertion when dropping type tests with SelectInst users (#185523)
The `dropTypeTests` function assumes that after removing `llvm.assume`
users of `llvm.type.test` calls, any remaining users must be PHINodes
(from merged assumes). However, SimplifyCFG can also merge two
`assume(type.test(...))` sequences into `assume(select(cond,
type.test_1, type.test_2))`, leaving SelectInst users that trigger the
assertion.
Extend the assertion to also accept SelectInst. The
`replaceAllUsesWith(true)` call already handles all user types
correctly — only the assertion was too narrow.
Respect cert checkbox when creating a user. Fixes #16721
Also fixes a case where the form was not displaying properly when there were input errors. This likely needs more testing to confirm each action case is being handled properly with and without input errors in the submission.
[clang-tidy][NFC] Move std system headers to separate dir in tests (#185533)
We want only "std" headers included by default - move them to another
directory and include only it by default.
This avoids header pollution that comes from whole `Input/Headers` dir
sound: enforce MASTER volume mute during playback
MASTER mute (vol.mute) works while audio is playing. However, if a
stream is stopped and restarted (PCMTRIG_STOP -> PCMTRIG_START), the
audio will resume even though the mixer shows the MASTER volume as
muted. Other streams that are already playing remain silent. New streams
may also start playing audio regardless of the MASTER mute state.
The volume feeder now considers the MASTER mute when determining whether
a channel should be muted. This ensures MASTER mute is consistently
enforced for all streams and removes the dependency on trigger-driven
state propagation.
Tested with Creative Labs CA0132 card.
MFC after: 1 week
Reviewed by: christos
Differential Revision: https://reviews.freebsd.org/D55605
[LLDB] Add SB API test helpers in separate library (#185866)
This adds the helpers from #184656 for the SB API in a separate library
(`lldbSBUtilityHelpers`).
[lldb][FreeBSDKernelCore] Do not include <cstddef> (#186193)
`<cstddef>` was included for static assertion using `offsetof()`, but it
turns out that the header is already included before. Thus remove
`<cstddef>` includes from `RegisterContextFreeBSDKernelCore_<arch>.cpp`
files.
Fixes 3f65a03e8abb3e6fb3372cf4c254d6c9f090e2e0 (#183969)
Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
[doc][RISCV] Add documentation for customizing VCIX scheduling info (#183129)
Add a document to show how to customize VCIX instructions scheduling
information. Due to the lack of scheduling info "plugin" in LLVM, a user
has to modify the scheduling model files to reflect the latency,
occupancy etc. of their co-processor instructions connected through
VCIX. This document shows how to modify those files.
This document was originally written in another documentation format by
the listed authors, I used AI to convert it to RST and checked the
content.
---------
Co-authored-by: Craig Topper <craig.topper at sifive.com>
Co-authored-by: Michael Maitland <michaeltmaitland at gmail.com>
[AMDGPU] Fix scalar_to_vector v4f16 pattern (#186188)
The patterns for v4f16 and v4i16 generate invalid code since the result must be 64 bit wide.
Also activate gfx1100 testing for the scalar_to_vector test which covers this pattern.
[MemProf] Skip handling of memprof records for non-prevailing functions (#185963)
When building the combined summary index during a thin link, we already
performed a memory optimization for non-prevailing copies of a function
by not recording their allocation and callsite info in the associated
function summary. We can save on the thin link time as well by avoiding
building the memprof summary structures just to throw them away later
in the non-prevailing case.
The reason we were eagerly building these structures is that the memprof
summaries *precede* the corresponding function summary record, and we
don't know whether this is the prevailing copy of the function until we
parse the function summary record. To facilitate the new handling, we
emit the memprof summary records *after* the corresponding function
summary record. The bitcode summary version is bumped, and the reader is
changed to support both versions, for backwards compatibility. Note that
there is already a memprof test that tests an older record type and will
also test reading of the legacy version of the ordering:
(llvm/test/ThinLTO/X86/memprof-old-alloc-context-summary.ll.
[6 lines not shown]
[MLIR] [Python] a few more fixes to type annotaitons (#186106)
* `_OperationBase.walk` was missing a default.
* `MLIRError` is now fully defined in C++. The monkey-patching
previously done in `_site_initialize` was opaque to type checkers.
[mlir][spirv] Add last 6 elementwise unary ops in TOSA Ext Inst Set (#186060)
This patch introduces the following elementwise unary operators:
spirv.Tosa.Log
spirv.Tosa.LogicalNot
spirv.Tosa.Negate
spirv.Tosa.Reciprocal
spirv.Tosa.Rsqrt
spirv.Tosa.Sin
Also dialect and serialization round-trip tests have been added.
Signed-off-by: Davide Grohmann <davide.grohmann at arm.com>