Skip to content

Add --trace=plugin=<name> scoped plugin tracing - #1718

Merged
Shankar Easwaran (quic-seaswara) merged 1 commit into
qualcomm:mainfrom
tcurtiss:main_traceplugin
Aug 28, 2026
Merged

Add --trace=plugin=<name> scoped plugin tracing#1718
Shankar Easwaran (quic-seaswara) merged 1 commit into
qualcomm:mainfrom
tcurtiss:main_traceplugin

Conversation

@tcurtiss

Copy link
Copy Markdown
Contributor

Extend --trace=[=] (mirroring symbol=/section=/reloc=) to plugins, so an individual plugin's diagnostics can be enabled without tracing every plugin. GeneralOptions::tracePlugin() checks an exact-string/regex allowlist populated by the new plugin= case, falling back to "trace everything" for the pre-existing bare --trace=plugin.

Plugin::isTraced() wraps this check and replaces every tracePlugins()-gated call site in Plugin.cpp, PluginManager.cpp, and GNULDBackend::RunPluginsAndProcessHelper with per-plugin gating via O->prolog().getPlugin()->isTraced().

(cherry picked from commit b4b7af1)

Comment thread lib/Script/Plugin.cpp Outdated
Comment thread lib/Script/Plugin.cpp Outdated
Extend --trace=<category>[=<name>] (mirroring symbol=/section=/reloc=)
to plugins, so an individual plugin's diagnostics can be enabled
without tracing every plugin. GeneralOptions::tracePlugin() checks an
exact-string/regex allowlist populated by the new plugin=<name> case,
falling back to "trace everything" for the pre-existing bare
--trace=plugin.

Plugin::isTraced() wraps this check and replaces every
tracePlugins()-gated call site in Plugin.cpp, PluginManager.cpp, and
GNULDBackend::RunPluginsAndProcessHelper with per-plugin gating via
O->prolog().getPlugin()->isTraced().

Signed-off-by: Troy Curtiss <trcurtiss@gmail.com>
@quic-seaswara
Shankar Easwaran (quic-seaswara) merged commit 958ed4b into qualcomm:main Aug 28, 2026
12 checks passed
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.

4 participants