Skip to content

utmpx: load the opt-in logind backend at runtime - #16478

Open
mattsu2020 wants to merge 2 commits into
uutils:mainfrom
mattsu2020:utmpx/runtime-logind-loader
Open

mattsu2020 wants to merge 2 commits into
uutils:mainfrom
mattsu2020:utmpx/runtime-logind-loader

Conversation

@mattsu2020

Copy link
Copy Markdown
Contributor

Load the existing opt-in logind backend through libsystemd.so.0 at runtime instead of linking it at build time. Keep the current feature names, record API and source-selection behavior, and test missing libraries and symbols.

Split from #11579; related to #8376. The default-utmp fallback remains in #11579.

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/tail/follow-name is no longer failing!
Congrats! The gnu test tests/tail/pid-pipe is no longer failing!

@codspeed

codspeed Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will regress 2 benchmarks

1 warning

⚠️ 63 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚡ 5 improved benchmarks
❌ 2 regressed benchmarks
✅ 112 untouched benchmarks
⏩ 364 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ df_deep_directory 886.7 µs 932.9 µs -4.95%
❌ dd_copy_with_skip 4.8 ms 4.9 ms -3.01%
⚡ file_custom_format 15.6 ms 11.5 ms +35.9%
⚡ file_iso_dates 17.4 ms 13.4 ms +30.38%
⚡ file_localized_names 26.8 ms 22.7 ms +18.02%
⚡ file_tz_abbreviations 18.1 ms 16.8 ms +7.85%
⚡ du_wide_tree[(5000, 500)] 15.8 ms 15.2 ms +3.35%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing mattsu2020:utmpx/runtime-logind-loader (b16ae58) with main (293a724)2

Open in CodSpeed

Footnotes

  1. 364 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (a663b44) during the generation of this report, so 293a724 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@sylvestre
sylvestre force-pushed the utmpx/runtime-logind-loader branch 2 times, most recently from 35ceb50 to 41d9827 Compare November 18, 2026 04:52
@github-actions

Copy link
Copy Markdown

Binary size comparison:

Individual binary size comparison VS main (threshold: >=5% AND >=4 KB).

Total size of compared binaries: 155.50 MB (+116 KB, +0.07%)

Significant per-binary changes:
  env     1.20 MB ->    1.28 MB  (+80 KB, +6.51%)

@sylvestre
sylvestre force-pushed the utmpx/runtime-logind-loader branch from 41d9827 to b16ae58 Compare November 19, 2026 11:29

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants