Add --trace=plugin=<name> scoped plugin tracing - #1715
Open
Troy Curtiss (tcurtiss) wants to merge 1 commit into
Open
Add --trace=plugin=<name> scoped plugin tracing#1715Troy Curtiss (tcurtiss) wants to merge 1 commit into
Troy Curtiss (tcurtiss) wants to merge 1 commit into
Conversation
Troy Curtiss (tcurtiss)
requested review from
Parth (parth-07) and
Shankar Easwaran (quic-seaswara)
as code owners
August 17, 2026 06:03
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(). (cherry picked from commit b4b7af1) Signed-off-by: Troy Curtiss <trcurtiss@gmail.com>
Troy Curtiss (tcurtiss)
force-pushed
the
23.x_traceplugin
branch
from
August 19, 2026 04:20
c2e744a to
728e237
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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().