Skip to content

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

Open
Troy Curtiss (tcurtiss) wants to merge 1 commit into
qualcomm:release/23.xfrom
tcurtiss:23.x_traceplugin
Open

Add --trace=plugin=<name> scoped plugin tracing#1715
Troy Curtiss (tcurtiss) wants to merge 1 commit into
qualcomm:release/23.xfrom
tcurtiss:23.x_traceplugin

Conversation

@tcurtiss

Copy link
Copy Markdown

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().

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>
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.

1 participant