Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: change tree trace level #7074

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ppaillet
Copy link

Change the clock and regulator trace level of the print tree functions so that they can be seen when requested by xtest without needing to activate all debug traces.

@GseoC
Copy link
Contributor

GseoC commented Oct 11, 2024

Hi Pascal, could specify in commit messages which xtest you're referring to (the one linked with PTA stats).
Otherwise: Acked-by: Gatien Chevallier <[email protected]>

Copy link
Contributor

@etienne-lms etienne-lms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is a legitimate change. Enabling debug trace level may generate quite many trace messages.

Could you also update the header files:
clk.h:

 /**
  * clk_print_tree() - Print current clock tree summary to output console
  *
-  * The clock is printed with the debug trace level.
+  * The clock is printed with the info trace level.
  */

regulator.h:

-/* Print current regulator tree summary to console with debug trace level */
+/* Print current regulator tree summary to console with info trace level */

and mk/config.mk:

 # CFG_DRIVERS_CLK_PRINT_TREE embeds a helper function to print the clock tree
-# state on OP-TEE core console with the debug trace level.
+# state on OP-TEE core console with the info trace level.
 (...)
 # CFG_DRIVERS_REGULATOR_PRINT_TREE embeds a helper function to print the
 # regulator tree state on OP-TEE core console with the info trace level.

(note that info level was already mentioned for regulator tree traces :)

if (IS_ENABLED(CFG_DRIVERS_CLK_PRINT_TREE) &&
TRACE_LEVEL >= TRACE_DEBUG) {
DMSG("Clock tree summary (informative):");
if (IS_ENABLED(CFG_DRIVERS_CLK_PRINT_TREE)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing test on TRACE_LEVEL >= TRACE_INFO makes that when CFG_DRIVERS_CLK_PRINT_TREE is enabled but TRACE_LEVEL to low, there will be useless code embedded.
I would be in favor of restoring this test.

Ditto in core/drivers/regulator/regulator.c.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, thank you!

Pascal Paillet added 2 commits October 21, 2024 11:11
Change clock trace level of print tree so that
it can bee seen when it is requested by
xtest --stats --clocks.

Signed-off-by: Pascal Paillet <[email protected]>
Acked-by: Gatien Chevallier <[email protected]>
Change regulator trace level of print tree so that
it can bee seen when it is requested by
xtest --stats --regulators.

Signed-off-by: Pascal Paillet <[email protected]>
Acked-by: Gatien Chevallier <[email protected]>
@ppaillet
Copy link
Author

Hi Pascal, could specify in commit messages which xtest you're referring to (the one linked with PTA stats). Otherwise: Acked-by: Gatien Chevallier <[email protected]>

done, thank you!

Copy link
Contributor

@etienne-lms etienne-lms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-by: Etienne Carriere <[email protected]>

@etienne-lms
Copy link
Contributor

Hi @jforissier, could you enable CI tests for this P-R?
Are you fine with the changes?

@jforissier
Copy link
Contributor

Acked-by: Jerome Forissier <[email protected]>

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