[LLDB] Exclude exposed exe symbols from tests (#228645)
Same as what we have for normal lldb installation. A executable may
creates a copy of a symbol if it links to the archive. Exclude archive
symbols out from the exe itself.
[LLDB][FreeBSD] Fix file not exists detection (#235358)
A process can outlive the exact running binary inside. As a result, a
file fails to query should set unknow by default.
Fix building misc/tmux on macOS
Fixes configure failing with:
configure: macOS calloc(3) appears not to correctly
configure: zero allocations in some circumstances;
configure: to avoid this, configuring with
configure: --enable-jemalloc is recommended. To build
configure: without anyway, use --disable-jemalloc
Personally, I'm a bit skeptical of that claim and think this is not
calloc misbehaving, but memory corruption.
[AVR] Fix byte spills and stack args on AVRTiny
AVRTiny cores have no load/store with displacement, yet 8-bit spills,
reloads and stack arguments in functions without a reserved call frame
were still emitted as STDPtrQRr/LDDRdPtrQ. llc then aborted in the
AsmPrinter, so any function that spilled a byte failed to compile, also
with the default register allocator and at -O0, and builds without
assertions silently emitted std/ldd instead.
Expand both instructions on AVRTiny the same way as their 16-bit
counterparts: a plain st/ld when the displacement is zero, as it always
is for spill slots, and pointer adjustments around it otherwise.
[AVR] Address review comments on AVRTiny spills
Document that STDPtrQRr and LDDRdPtrQ are only treated as pseudo
instructions on AVRTiny, and check atmega328 instead of -O0 in
std-ldd-tiny.ll so the test contrasts the two kinds of cores.
Add devel/ocaml-ppx_deriving_yojson version 3.9.1.
Deriving Yojson is a ppx_deriving plugin that generates JSON
serializers and deserializes that use the Yojson library from
an OCaml type definition.
[Passes] Make runCodeGenPipeline take raw_pwrite_stream for DwoOS (#235339)
The std::unique_ptr reference was mostly cargo-culting from clang/flang
that does not necessarily make sense for other frontends (case study
right now is rustc). Change to a raw_pwrite_stream given that makes more
sense internally and gives frontends more flexibility.
[LLDB][Minidump] Fix BSD's unsupport failure
BSD should also support Minidump naturally. For platform_id, we don't
see any difference between different BSD deriviatives. Set it to Unix
generic so that at least test works.
sun4v: Force the hypervisor interrupt api to use version 3.
This way the sun4v_intr_* functions in intr.c will not be using the
deprecated version 1 hypervisor interrupt calls.
Verified working on a T4 ldom with version 3.
[LLDB][FreeBSD] Fix file not exists detection
A process can outlive the exact running binary inside. As a result, a
file fails to query should set unknow by default.
pf(4) yet another race between pf_test() and pf_purge_states()
pf_counters_inc() running on behalf of pf_test() may dereference a
dead memory left behind pf_purge_states(). The reference to state
object is still valid, but other items such as radix tables might
be gone. To stay on the safe side the pf_counters_inc() must
grab state's mutex and check if state itself is on its death
row (->timeout == PFTM_UNLINKED). If it is the case then
pf_counters_inc() must bail out without trying to update counters.
Issue was kindly reported by Acts1631.
OK dlg@
unit/nvpair: verify complete copied results
Read the copied string from the destination list rather than the source.
Require both pair iterators to reach the end when comparing a duplicate.
The current loop accepts a copy truncated after its first pair.
Check that duplication preserves the list's uniqueness flags as well as
its entries. Distinct input names otherwise hide a changed list mode.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Kamil Monicz <kamil at monicz.dev>
Closes #19455
unit: exercise the selected nvlist and normalization modes
The byte and uint8 cases ignore their uniqueness parameters, and the
pair-lookup case always constructs an NV_UNIQUE_NAME list. Use the
selected fixtures and check ENOTSUP for pair lookup in the other modes.
Select NFKD in the compatibility-decomposition test, which currently
passes NFKC and repeats the composition mode instead.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Kamil Monicz <kamil at monicz.dev>
Closes #19455
[WindowScheduler] Preserve loop-carried memory dependences (#231364)
The WindowScheduler clones the loop body into TripleMBB and advances the
base registers of memory accesses to later iterations, but the clones
keep the original iteration's memory operands. The per-window scheduler
could therefore treat a store and a load from different copies as
non-aliasing and reorder them, even though they touch the same address
in consecutive iterations, producing wrong code.
Detect loop-carried memory dependences on the original loop and enforce
them with a DAG mutation while list scheduling each window.
Fixes #209946