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

loging: add logging through probes #8163

Merged

Conversation

dabekjakub
Copy link
Member

Logging with probes was not implemented. This implements ipc that enables logging with probe configuration.

src/ipc/ipc4/logging.c Outdated Show resolved Hide resolved
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Thanks, now I understand better. I think we should unify the IPC handling and at least put the mtrace/probe enable/dsiable calls in some common place so we can reuse the IPC code.

I think we can leave the policy call whether the two can be enabled to build time, but the code should at least allow to build with both.

src/ipc/ipc4/logging.c Show resolved Hide resolved
src/ipc/ipc4/logging.c Show resolved Hide resolved
@dabekjakub dabekjakub force-pushed the jdabek-probe-logging-upstream branch 2 times, most recently from 301cdea to 84c2126 Compare September 13, 2023 16:00
@dabekjakub
Copy link
Member Author

@kv2019i updated build to error if both are enabled - it would anyway from redefinition but there is an error for now.

Added function to check if backend is configured and result in error when not.

Should be good to go now.

@dabekjakub dabekjakub force-pushed the jdabek-probe-logging-upstream branch from 84c2126 to 913f00f Compare September 13, 2023 18:11
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Thanks @dabekjakub , looks good now! One small thing still in patch, can you take a look?

src/ipc/ipc4/logging.c Outdated Show resolved Hide resolved
src/ipc/ipc4/logging.c Show resolved Hide resolved
src/logging/log_backend_probe.c Outdated Show resolved Hide resolved
Logging with probes was not implemented. This implements
ipc that enables logging with probe configuration.

Signed-off-by: Jakub Dabek <[email protected]>
@dabekjakub dabekjakub force-pushed the jdabek-probe-logging-upstream branch from 913f00f to c4a9dfc Compare September 14, 2023 14:55
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Thanks, looks good now!

@kv2019i
Copy link
Collaborator

kv2019i commented Sep 15, 2023

One fail in pause-resume in https://sof-ci.01.org/sofpr/PR8163/build12942/devicetest , but does not seem to be related to this PR (and no errors in either dmesg or mtrace, aplay just returns non-zero on one iteration, rest are fine). Proceeding with merge.

@kv2019i kv2019i merged commit 1721f70 into thesofproject:main Sep 15, 2023
39 of 41 checks passed
@marc-hb
Copy link
Collaborator

marc-hb commented Sep 20, 2023

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.

6 participants