Skip to content

add k_sleep tracing in CTF, add ram tracing snippet #93327

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

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

Conversation

nashif
Copy link
Member

@nashif nashif commented Jul 18, 2025

  • tracing: ctf: trace k_sleep()
  • tracing: introduce ram tracing snippet

.. _snippet-ram-tracing:

RAM Tracing Snippet (ram-tracing)
############################################
Copy link
Contributor

Choose a reason for hiding this comment

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

mismatched header length

nordicjm
nordicjm previously approved these changes Jul 18, 2025
nashif added 2 commits July 18, 2025 09:55
Trace sleep events in CTF:

[19:00:00.181375400] (+0.000044700) k_sleep_enter: ...
..
[19:00:00.290203800] (+0.000031500) k_sleep_exit: ...

Signed-off-by: Anas Nashif <[email protected]>
This allows tracing any application and stores the data in RAM. Using
gdb, the ram_tracing variable contents can then be saved and viewed
using babeltrace.

Signed-off-by: Anas Nashif <[email protected]>
@nashif nashif force-pushed the topic/tracing/improvements_1 branch from c84017e to 424548e Compare July 18, 2025 13:55
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants