[llvm-profgen] Ignore comment lines in unsymbolized profiles (#248812)
Android's `simpleperf inject --output profgen` emits trailing `//
build_id:` and `// <binary_path>` metadata comments matching AutoFDO's
`create_llvm_prof` text format. Unlike `create_llvm_prof`,
`llvm-profgen`'s `UnsymbolizedProfileReader` reads until EOF to support
multiple context blocks and previously rejected `//` comment lines.
Skip full-line `//` comments (with optional leading whitespace) inside
`UnsymbolizedProfileReader` while advancing `TraceStream`'s line number
so error diagnostics preserve accurate 1-based line numbers.
Also handle empty or comment-only inputs cleanly by initializing an
empty sample counter entry (matching `PerfScriptReader` and
`ETMReader`), and reject unexpected trailing content or extra counter
blocks in non-CS profiles as well as unheadered blocks in CS profiles so
unsplit multi-binary profiles fail with a diagnostic rather than
silently merging unrelated addresses.
Assisted-by: Antigravity
devel/ruby-globalid: update to 1.5.0
1.5.0 (2026-11-26)
What's Changed
* Allow per-class GlobalID app configuration by @rafaelfranca with @Copilot
in #208
* Locate records from models that find but not where by @djmb in #210
* Require the CGI escaping API directly by @OskarEichler in #216
* Skip GIDs with a mismatching model_id in Locator.locate_many by @afurm in
#217
* Fix locate_many when a GID's model name doesn't match its class by
@zachasme in #219
* Don't store expiration options in signed GlobalID params by @RaphaelFakhri
in #222
* Allow naming models by polymorphic_name by @zachasme in #221
New Contributors
[8 lines not shown]
databases/ruby-sequel: update to 5.111.0
5.111.0 (2026-12-01)
* Use the proleptic gregorian calendar for Date and DateTime (jeremyevans)
* Avoid duplicating table when adding/dropping CHECK or NOT NULL constraints
on SQLite 3.53+ (jeremyevans)
* Add Database#wait_for_lsn on PostgreSQL 19+ to support WAIT FOR LSN
(jeremyevans)
* Add virtual_row_core_refinements extension, enabling the core refinements
inside virtual row blocks (jeremyevans)
* Add Model#validate! for performing the same validation performed by #save
(jeremyevans)
* Change Model#checked_save_failure and #raise_on_failure? private methods
to accept keyword arguments (jeremyevans)
[LoongArch] Select cheaper constants for AND using known bits
The target-independent combines clear the bits of an AND mask that are known
to be zero in the other operand. That can make the mask more expensive to
materialize, e.g. -27 becomes 0xffffffe5 if the upper 32 bits are known to be
zero:
```
addi.w $a1, $zero, -27
lu32i.d $a1, 0
and $a0, $a0, $a1
```
Set the leading bits again at instruction selection if the mask has no other
users and that makes it cheaper, or allows to use bstrins:
```
addi.w $a1, $zero, -27
and $a0, $a0, $a1
[6 lines not shown]
[LoongArch][NFC] Add tests for AND with constants and known bits
Add tests for AND with constants, where the leading bits are known to be zero
in the other operand.
Assisted-By: LLM
[LoongArch] Select MULW_D_WU for zext i32 multiplied by a 32-bit constant (#238658)
i32 udiv/urem by a constant is lowered on LA64 to
(mul (bstrpick X, 31, 0), C). MULW_D_WU only reads the low 32 bits of
its operands, so select it directly: the BSTRPICK goes away and, when
bit 31 of C is set, the constant can be materialized sign-extended
without LU32I_D.
rustc-perf fmt-write-str on LA664: 3998.1M -> 3988.1M instructions
(-0.25%).
Assisted-by: LLM
[NFC][Tooling] Remove getParentTypeLoc from RenameLocFinder (#249060)
getParentTypeLoc has a dangling pointer issue but it is a private member
and is not used, so this change will just remove it. The code is almost
ten years old.
This change was brought in by 74f823a0459e382bf75e39ba5563a9e1586ce7cc
clang/AMDGPU: Warn on xnack/sramecc flags for unsupported targets
-mxnack/-mno-xnack and -msramecc/-mno-sramecc can only select a mode
on processors with a configurable mode. In the assembler case, this
would forward the old subtarget feature names and warn on an
unrecognized feature.
Assisted-by: Claude
Merge tag 'drm-fixes-2026-12-05-2' of https://gitlab.freedesktop.org/drm/kernel
Pull drm fixes from Dave Ailie:
"Usual weekly fixes, the usual suspects in xe/i915/amdgpu, but mediatek
seems to have ran into the AI hammer for this week, but they are all
small trivial fixes, otherwise just a few scattered fix across other
drivers and core.
core:
- edid: Don't mark DisplayID Type VII YCbCr 4:2:0 timings preferred
- sched: Fix timestamp handling
- ttm: Destroy the ttm_tt in ttm_bo_move_null() when it's no longer
needed
bridge:
- lt9611uxc: Fix firmware update verification
- nwl-dsi: Fix DSI disable logic
- tc358762: Fix reset gpio handling
[93 lines not shown]
Merge tag 'pinctrl-v7.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pin control fixes from Linus Walleij:
- A big set of fixes for Qualcomm SoCs: the majority involves properly
marking "EGPIO" (external GPIOs) as being, well GPIOs. Then bugs in
pull direction reporting, config cache, dual edge IRQs, off-by-one
bugs, pin patterns and pin definition discrepancies. Remove some
nonexisting pins added by misunderstandings or erroneous
documentation
- SCMI pincontrol with GPIO add-in has some additional fixes relating
to milliampere conversions, reporting of off state
- Wrong component ID and dual-edged IRQ fix for the Ingenic SoC pin
controller
- Bias fix for the Airoha pin controller
[30 lines not shown]
Resolve TOCTOU in vmd(8) virtio by copying descriptor chains.
Adds logic for extracting copies of the descriptor chain to prevent
TOCTOU issues as a device processes the descriptors. Validation is
performed on a copy of the chain and the validated copy is used for
device virtqueue processing.
This commit changes the entropy (viornd) and block (vioblk) devices
to use the new logic. Network and SCSI devices will be migrated
next.
Issue originally found and reported by Acts1631 for the virtio
entropy device. A guest can change the buffer length on a descriptor
after vmd has validated the value but before allocating a host-side
buffer on the heap resulting in leaking host memory to the guest.
ok hshoexer@
ixgbe: Rearm the assigned MSI-X vector for each TX queue
iflib passes a TX queue index to ifdi_tx_queue_intr_enable. With
more TX queues than RX queues, using that index in the RX queue
array can read past the allocation.
Use the vector saved in the TX queue at interrupt assignment. This
is the same vector ixgbe_configure_ivars() programs for that ring.
MFC after: 1 week
Sponsored by: BBOX.io
[Timer] Use unique keys for JSON output for -ftime-report=per-pass-run (#248299)
-ftime-report=per-pass-run is supposed to display separate pass
invocations as separate entries. But in the JSON we'd put them all as
the same key (e.g. "InstCombine").
Now we output a key like "InstCombine_1" to distinguish separate pass
invocations.
Assisted by Gemini
[BPF] Fix printing of unsigned 32-bit enum values in CO-RE relocations (#249079)
llvm-objdump shows the value of an enumerator in an enumval relocation.
The value of a 32-bit enumerator, BTFEnum::Val, is int32_t and was
always sign-extended, so a value of an unsigned enum in [0x80000000,
0xffffffff] was printed as a huge 64-bit value:
```
enum U { M = 0x80000000 };
... __builtin_preserve_enum_value(*(enum U *)M, 1) ...
CO-RE <enumval_value> [4] enum U::M = 18446744071562067968
```
Extend the value according to the signedness of its enum, i.e.,
sign-extend it if ENUM_SIGNED_FLAG is set, and zero-extend it otherwise:
```
CO-RE <enumval_value> [4] enum U::M = 2147483648
```
Don't fetch the rwhich database from external package repositories.
This isn't needed for pulling in externally-built dependancies, and
downloading and processing it is quite expensive.
(cherry picked from commit 7f90e65a2b6a25b1d0f38eb03daca2e440a2de4d)
Don't fetch the rwhich database from external package repositories.
This isn't needed for pulling in externally-built dependancies, and
downloading and processing it is quite expensive.