LLVM/project 74c8891lldb/source/Plugins/InstrumentationRuntime/TSan InstrumentationRuntimeTSan.cpp, lldb/test/API/functionalities/tsan/thread_leak TestTsanThreadLeak.py

Revert "[lldb] Fix TSan report on Linux (#179115)"

This reverts commit cc7292056683f592c33055bb6456d509201654ec.

This patch causes two tests to unexpectedly pass:
1. lldb-api.functionalities/tsan/cpp_global_location/TestTsanCPPGlobalLocation.py
2. lldb-api.functionalities/tsan/global_location/TestTsanGlobalLocation.py

Reverting to fix premerge. Not fixing forward so someone who is familiar
with LLDB can take a look and make sure those tests now should pass.
DeltaFile
+2-14lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp
+4-0lldb/test/API/functionalities/tsan/thread_numbers/TestTsanThreadNumbers.py
+4-0lldb/test/API/functionalities/tsan/thread_leak/TestTsanThreadLeak.py
+10-143 files

LLVM/project 80677dcclang/lib/CIR/CodeGen CIRGenBuiltinAArch64.cpp, clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp

[CIR][NEON] Add lowering support for `vceqzd_s64` (#179779)

Rather than creating a dedicated ClangIR test file, the original test file for
this intrinsic is effectively reused:

  * clang/test/CodeGen/AArch64/neon-intrinsics.c

“Effectively” meaning that the corresponding test is moved (rather than
literally reused) to a new file within the original AArch64 builtins test
directory:

  * clang/test/CodeGen/AArch64/neon/intrinsics.c

This is necessary to avoid lowering unsupported examples from intrinsics.c with
`-fclangir`. The new file will eventually replace the original one once all
builtins from it can be lowered via ClangIR.

To facilitate test re-use, new LIT "feature" is added so that CIR tests can be
run conditionally, e.g. the following will only run when `CLANG_ENABLE_CIR` is

    [8 lines not shown]
DeltaFile
+44-1clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp
+33-0clang/test/CodeGen/AArch64/neon/intrinsics.c
+0-11clang/test/CodeGen/AArch64/neon-intrinsics.c
+8-3clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+2-0clang/test/lit.cfg.py
+1-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+88-151 files not shown
+89-157 files

FreeBSD/src 8066b89sys/compat/linux linux_file.c, sys/kern vfs_mount.c

kern/vfs_unmount.c: promote flags to uint64_t

to prevent sign-extension, causing unexpected flags to be passed to
dounmount().  The mnt_flags and MNT_* constants are 64bit wide.

Suggested and reviewed by:      jah
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D55197
DeltaFile
+2-2sys/kern/vfs_mount.c
+1-1sys/compat/linux/linux_file.c
+1-1sys/sys/syscallsubr.h
+4-43 files

FreeBSD/ports ed81283sysutils Makefile, sysutils/try-rs distinfo Makefile.crates

sysutils/try-rs: Add port

This is a cool tool (a reimagining of github.com/tobi/try) that creates,
searches, previews, and recalls all those little "what-if" terminal
experiments. Rather than deleting an experiment when you're done (guilty)
or putting all your experiments into one big directory with
incomprehensible names (guilty), it gives you a TUI to search, clone,
enter, edit, delete, etc. It can clone based on existing experiments, or
clone from git repos.

Perhaps most importantly, it comes with themes.
DeltaFile
+425-0sysutils/try-rs/distinfo
+211-0sysutils/try-rs/Makefile.crates
+19-0sysutils/try-rs/Makefile
+5-0sysutils/try-rs/pkg-descr
+1-0sysutils/Makefile
+661-05 files

LLVM/project 48f5342utils/bazel/llvm-project-overlay/mlir BUILD.bazel build_defs.bzl

[bazel] Slight polish after ef68a53.
DeltaFile
+6-15utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+2-2utils/bazel/llvm-project-overlay/mlir/build_defs.bzl
+8-172 files

LLVM/project 1d5884dlldb/test/API/tools/lldb-dap/breakpoint-events TestDAP_breakpointEvents.py foo.cpp

[lldb-dap] Fix the breakpoint events test. (#180518)

Previously the test was written in a way that may be flaky, fixed with
the following changes.
- The breakpoint are placed on functions and set during the
configuration stage of the protocol.
 - Add the rpath to the test binary.
 - Check we also hit the breakpoint we set directly using lldb.
DeltaFile
+91-61lldb/test/API/tools/lldb-dap/breakpoint-events/TestDAP_breakpointEvents.py
+2-2lldb/test/API/tools/lldb-dap/breakpoint-events/foo.cpp
+1-0lldb/test/API/tools/lldb-dap/breakpoint-events/Makefile
+94-633 files

LLVM/project 06e86c3flang/lib/Semantics resolve-directives.cpp, flang/test/Semantics/OpenMP local-variables.f90 local-variables-1.f90

[flang][OpenMP] Improve locality check when determining DSA

Follow-up to https://github.com/llvm/llvm-project/pull/178739.

The locality check assumed that immediately after the initial symbol
resolution (i.e. prior to the OpenMP code in resolve-directives.cpp),
the scope that owns a given symbol is the scope which owns the symbol's
storage. Turns out that this isn't necessarily true as illustrated by
the included testcase, roughly something like:
```
program main
  integer :: j        ! host j (storage-owning)
  contains
  subroutine f
    !$omp parallel    ! scope that owns j, but j is host-associated
    do j = ...
    end do
    !$omp end parallel
  end

    [18 lines not shown]
DeltaFile
+0-95flang/test/Semantics/OpenMP/local-variables.f90
+95-0flang/test/Semantics/OpenMP/local-variables-1.f90
+52-0flang/test/Semantics/OpenMP/local-variables-2.f90
+39-2flang/lib/Semantics/resolve-directives.cpp
+186-974 files

FreeBSD/src 997bfa2. RELNOTES

RELNOTES: Add some entries for recent commits

Reviewed by:    olce, jhb
Differential Revision:  https://reviews.freebsd.org/D55150
DeltaFile
+41-0RELNOTES
+41-01 files

LLVM/project be711a0lldb/source/Host/windows ProcessLauncherWindows.cpp

[lldb][windows] remove unneeded DeleteProcThreadAttributeList call (#180579)

Remove an unneeded call to `DeleteProcThreadAttributeList`, which is
already done in the `ProcThreadAttributeList` destructor.
DeltaFile
+0-3lldb/source/Host/windows/ProcessLauncherWindows.cpp
+0-31 files

LLVM/project cd47ae9compiler-rt/test/profile instrprof-binary-correlate.c, llvm/include/llvm/ProfileData InstrProfCorrelator.h

[Profile] Enable binary profile correlation for Mach-O binaries (#179937)

The existing ELF/COFF correlation code mostly "just works" on Mach-O
files, with one gotcha: on disk, the pointers in `__llvm_covdata` are
stored in an encoded format due to dyld fixup chains. (In memory, they
would normally be fixed up at load time in a running binary, but the
correlator only looks at the on-disk values.)

LLVM's Mach-O reader knows how to decode the format, so this patch walks
the fixup table to create a set of mappings that the correlator can use
to resolve the values.

rdar://168259786
DeltaFile
+34-4llvm/lib/ProfileData/InstrProfCorrelator.cpp
+6-1llvm/include/llvm/ProfileData/InstrProfCorrelator.h
+1-1compiler-rt/test/profile/instrprof-binary-correlate.c
+41-63 files

LLVM/project 1bfa717llvm/lib/Target/Sparc SparcTargetTransformInfo.h SparcTargetTransformInfo.cpp, llvm/test/Transforms/LoopIdiom/Sparc popcnt.ll lit.local.cfg

[SPARC] Add TTI implementation for getPopcntSupport (#178843)

This is to inform the middle-end transform passes about the capabilities
of the codegen backend.

This should solve the issue where popcount loops not gets converted
properly to `popc`, even if it's available
(https://github.com/llvm/llvm-project/issues/171969).
DeltaFile
+325-0llvm/test/Transforms/LoopIdiom/Sparc/popcnt.ll
+50-0llvm/lib/Target/Sparc/SparcTargetTransformInfo.h
+22-0llvm/lib/Target/Sparc/SparcTargetTransformInfo.cpp
+6-0llvm/lib/Target/Sparc/SparcTargetMachine.cpp
+3-0llvm/lib/Target/Sparc/CMakeLists.txt
+2-0llvm/test/Transforms/LoopIdiom/Sparc/lit.local.cfg
+408-01 files not shown
+409-07 files

NetBSD/pkgsrc-wip 203c507emacs-git PLIST

emacs-git: update PLIST again
DeltaFile
+0-14emacs-git/PLIST
+0-141 files

LLVM/project 352932clldb/include/lldb/Host/windows ProcessLauncherWindows.h, lldb/source/Host/windows ProcessLauncherWindows.cpp

[NFC][lldb][windows] extract the UpdateProcThreadAttribute logic (#180565)

This NFC patch extracts the `UpdateProcThreadAttribute` logic to a
dedicated method be able to reuse it in
https://github.com/llvm/llvm-project/pull/180561.
DeltaFile
+13-4lldb/source/Host/windows/ProcessLauncherWindows.cpp
+8-1lldb/include/lldb/Host/windows/ProcessLauncherWindows.h
+21-52 files

OpenZFS/src 64bae56cmd/zfs zfs_main.c, cmd/zpool zpool_main.c

Include missing newline in 'man' error

Because the `strerror` result doesn't include a newline, we need to add
one.  Observed on a minimal system that doesn't have `man` installed,
which behaves like this before the fix:

```
[root at upper tim]# zpool help import
couldn't run man program: No such file or directory[root at upper tim]#
```

Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Tim Hatch <tim at timhatch.com>
Closes #18183
DeltaFile
+1-1cmd/zpool/zpool_main.c
+1-1cmd/zfs/zfs_main.c
+2-22 files

OpenZFS/src 2646bd5man/man8 zfs-rewrite.8, module/zfs zfs_vnops.c

Allow rewrite skip cloned and snapshotted blocks

Rewrite of cloned and snapshotted blocks can allocate additional
space, that may be undesired.  In some cases it may have sense
to still rewrite snapshotted blocks, expecting the snapshots to
rotate with time, freeing space.  In other cases rewrite of cloned
blocks may be acceptable, despite persistent space usage increase.
For this reason add them as separate flags to `zfs rewrite`.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Rob Norris <robn at despairlabs.com>
Reviewed-by: Ameer Hamza <ahamza at ixsystems.com>
Signed-off-by: Alexander Motin <alexander.motin at TrueNAS.com>
Closes #18179
DeltaFile
+83-0tests/zfs-tests/tests/functional/cli_root/zfs_rewrite/zfs_rewrite_skip_clone.ksh
+74-0tests/zfs-tests/tests/functional/cli_root/zfs_rewrite/zfs_rewrite_skip_snapshot.ksh
+38-1module/zfs/zfs_vnops.c
+0-24tests/zfs-tests/tests/functional/block_cloning/block_cloning.kshlib
+22-0tests/zfs-tests/include/libtest.shlib
+18-1man/man8/zfs-rewrite.8
+235-267 files not shown
+273-3213 files

OpenZFS/src 15fbf53. AUTHORS .mailmap

AUTHORS: add names of recent new contributors

"Welcome to my house! Enter freely. Go safely, and leave something of
the happiness you bring!"

Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <robn at despairlabs.com>
Closes #18189
DeltaFile
+14-0AUTHORS
+10-0.mailmap
+24-02 files

LLVM/project f7e2e4dclang/unittests/Analysis/FlowSensitive UncheckedStatusOrAccessModelTestFixture.cpp

[NFC] [FlowSensitive] [StatusOr] Add test reassigning variable in loop



Reviewers: jvoung

Reviewed By: jvoung

Pull Request: https://github.com/llvm/llvm-project/pull/180091
DeltaFile
+49-0clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp
+49-01 files

LLVM/project 839676bcompiler-rt/lib/asan asan_malloc_linux.cpp asan_allocator.cpp, compiler-rt/lib/sanitizer_common sanitizer_allocator.cpp sanitizer_allocator_internal.h

[asan][AIX] Add vec_malloc and vec_calloc interceptors (#175584)

On AIX, when both the `__VEC__` and `_ALL_SOURCE` macros are defined
(they are defined by default), the malloc and calloc system calls are
mapped to vec_malloc and vec_calloc respectively, so we need the
following vec_malloc and vec_calloc interceptors.

Issue: #138916
DeltaFile
+32-0compiler-rt/test/asan/TestCases/AIX/vec_malloc_calloc.cpp
+23-0compiler-rt/lib/asan/asan_malloc_linux.cpp
+13-2compiler-rt/lib/asan/asan_allocator.cpp
+3-2compiler-rt/lib/sanitizer_common/sanitizer_allocator.cpp
+3-2compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h
+4-0compiler-rt/lib/asan/asan_allocator.h
+78-61 files not shown
+80-87 files

LLVM/project bc884a0clang/unittests/Analysis/FlowSensitive UncheckedStatusOrAccessModelTestFixture.cpp

[NFC] [FlowSensitive] [StatusOr] Add test for StatusOr nested in optional



Reviewers: jvoung

Reviewed By: jvoung

Pull Request: https://github.com/llvm/llvm-project/pull/180082
DeltaFile
+38-0clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp
+38-01 files

LLVM/project d34d19dclang/unittests/Analysis/FlowSensitive UncheckedStatusOrAccessModelTestFixture.cpp

[NFC] [FlowSensitive] [StatusOr] Add tests for pointer receivers



Reviewers: jvoung

Reviewed By: jvoung

Pull Request: https://github.com/llvm/llvm-project/pull/180079
DeltaFile
+128-0clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp
+128-01 files

LLVM/project 9ab3e33llvm/lib/Transforms/IPO IPO.cpp LoopExtractor.cpp

Revert "[NFC][LLVM][IPO] Remove pass initialization from pass constructors" (#180571)

Reverts llvm/llvm-project#180154

It seems to cause llc build failures, likely due to missing `ipo`
dependency.
DeltaFile
+2-3llvm/lib/Transforms/IPO/IPO.cpp
+3-1llvm/lib/Transforms/IPO/LoopExtractor.cpp
+3-1llvm/lib/Transforms/IPO/GlobalDCE.cpp
+3-1llvm/lib/Transforms/IPO/AlwaysInliner.cpp
+3-1llvm/lib/Transforms/IPO/BarrierNoopPass.cpp
+3-1llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
+17-81 files not shown
+17-97 files

FreeBSD/src c8dad68tests/sys/netpfil/pf divert-to.sh

pf tests: Set require.kmods in divert-to tests

Tests should declare their dependencies rather than testing for them at
runtime.

Reviewed by:    igoro, kp, glebius
MFC after:      2 weeks
Sponsored by:   OPNsense
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54846

(cherry picked from commit 8934c3dc780d6631cb23e4d98c7b988da9a5b703)
DeltaFile
+8-23tests/sys/netpfil/pf/divert-to.sh
+8-231 files

FreeBSD/src 2ca0b72sys/arm64/vmm vmm_mmu.c

arm64/vmm: Simplify vmmpmap_remove()

This function handles invalid intermediate PTP entries, but there's no
reason for this: the passed range should be mapped.  In particular, we
assert that all L3 entries encountered are mapped.  So let's simplify
the code a bit.  No functional change intended.

Reviewed by:    andrew
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54738

(cherry picked from commit 31e5decb18a6633f5137848b5734310b41fc3bdc)
DeltaFile
+6-21sys/arm64/vmm/vmm_mmu.c
+6-211 files

FreeBSD/src 4775399sys/netpfil/pf pf.c

pf: Rationalize the ip_divert_ptr test

If a rule has a divert port set, then we can reasonably predict that
ipdivert.ko is loaded, and in particular that ip_divert_ptr is set.

Moreover, in this case, if ipdivert.ko is not loaded we should just drop
the packet instead of ignoring the divert rule.

Reviewed by:    igoro, kp, glebius
MFC after:      2 weeks
Sponsored by:   OPNsense
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54845

(cherry picked from commit 39878d24a690feb4da3fc223649c6a5fd166d09d)
DeltaFile
+10-5sys/netpfil/pf/pf.c
+10-51 files

FreeBSD/src 7855f83tests/sys/netinet6 test_ip6_output.py

ip6_output tests: Remove an unused import

No functional change intended.

MFC after:      1 week
Sponsored by:   Stormshield
Sponsored by:   Klara, Inc.

(cherry picked from commit 1539a657adb4363e7f12d6fd4c1c8ed2e2d842af)
DeltaFile
+0-1tests/sys/netinet6/test_ip6_output.py
+0-11 files

FreeBSD/src 10b4ff3sys/netinet6 ip6_mroute.c

ip6_mroute: Remove unnecessary casts

No functional change intended.

MFC after:      1 week
Sponsored by:   Stormshield
Sponsored by:   Klara, Inc.

(cherry picked from commit 56e1cba88bb82f2a6af0212c72182ff6303a1554)
DeltaFile
+3-4sys/netinet6/ip6_mroute.c
+3-41 files

FreeBSD/src 0e67516usr.sbin/syslogd/tests syslogd_test_common.sh syslogd_test.sh

syslogd/tests: Fix flakiness in forwarding tests

syslogd_start() waits for the local log socket to appear before
returning, to ensure that the daemon is ready to handle log messages.
Some tests start two daemons, so by default the socket already exists
when the second daemon is started, so syslogd_start() returns early.
The test subsequently sends a message to this second daemon, which
sometimes isn't ready.

Define a separate log socket for the second daemon.  Add a check to
syslogd_start() to help catch this type of bug.

Reviewed by:    jlduran
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D54800

(cherry picked from commit 14dce731d70686e08ed689729f53c6a5e2225498)
DeltaFile
+7-2usr.sbin/syslogd/tests/syslogd_test_common.sh
+5-3usr.sbin/syslogd/tests/syslogd_test.sh
+12-52 files

FreeBSD/src 6e7cf7fusr.sbin/syslogd/tests syslogd_test_common.sh syslogd_test.sh

syslogd/tests: Improve loopback interface initialization

- In syslogd_start(), assign the lo0 address in the specified jail.
- Use the correct netmask.

Reviewed by:    jlduran
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D54799

(cherry picked from commit 92d251472edba6c1c16a899797982251c585d706)
DeltaFile
+5-3usr.sbin/syslogd/tests/syslogd_test_common.sh
+0-4usr.sbin/syslogd/tests/syslogd_test.sh
+5-72 files

FreeBSD/src fbc5610usr.sbin/makefs/tests makefs_zfs_tests.sh

makefs/zfs/tests: Force-destroy md devices

Most of these tests create a md(4) device backed by a makefs-generated
image, then import the pool, using the md device as a pool vdev.  When
a test finishes, it destroys the pool, then destroys the md device.

Once in a while md device destruction fails with EBUSY.  This happens
when a GEOM consumer is holding the device open; kern_mddetach_locked()
simply fails if any consumers are present.  zpool destruction is
synchronous so ZFS is innocent, rather, the problem seems to be that
GEOM re-tastes the device after the zpool reference goes away.  This
operation creates a transient reference that causes the spurious
failure.

Use "mdconfig -o force" to work around this.

MFC after:      2 weeks

(cherry picked from commit d6bc31f92991b6d67da54868f3563278015389ca)
DeltaFile
+2-2usr.sbin/makefs/tests/makefs_zfs_tests.sh
+2-21 files

FreeBSD/src b4036aeusr.sbin/syslogd/tests syslogd_test.sh syslogd_forwarded_format_test.sh

syslogd/tests: Address races

I occasionally see failures in the syslogd test suite.  The problem is
that the tests are racy: they send a message using logger(1), then
immediately check whether the message was logged to a log file.  If the
syslogd instance under test doesn't get a chance to run before the
second step, the test fails.

This change reworks things to avoid the race while minimizing the amount
of time sleeping.
1) Each test uses a single logfile, so have them use a new common
   variable, SYSLOGD_LOGFILE, instead of something test-specific.
2) In syslogd_start(), if the configuration references SYSLOGD_LOGFILE,
   wait for it to be created by syslogd before returning.
3) Add a helper syslogd_check_log(), to check for a given log entry in
   the last line of SYSLOGD_LOGFILE, instead of using atf_check
   directly.
4) In syslogd_check_log(), poll the logfile until the desired log entry
   appears, or the test times out.

    [10 lines not shown]
DeltaFile
+112-129usr.sbin/syslogd/tests/syslogd_test.sh
+16-26usr.sbin/syslogd/tests/syslogd_forwarded_format_test.sh
+33-0usr.sbin/syslogd/tests/syslogd_test_common.sh
+12-18usr.sbin/syslogd/tests/syslogd_relayed_format_test.sh
+11-17usr.sbin/syslogd/tests/syslogd_basic_format_test.sh
+0-1usr.sbin/syslogd/tests/syslogd_format_test_common.sh
+184-1916 files