Skip to content

Add missing event tracing for SYSVIEW #39032

Open
@mbung

Description

@mbung

Is your enhancement proposal related to a problem? Please describe.
When tracing a zephyr based application with SEGGER SystemView, some events do not occur in timeline (e.g. getting from a message queue), although they are happening.

Describe the solution you'd like
I suggest to add missing sysview record calls in tracing_sysview.h that are still missing i.e.

  • k_thread_sched_lock/k_thread_sched_unlock
  • k_poll_api
  • k_stack
  • k_msgq
  • k_mbox
  • k_pipe
  • k_heap
    so all events defined in SYSVIEW_Zephyr.txt are actually traced.

Describe alternatives you've considered
Living without the the trace information and use patch files.

Additional context
Since I'm pretty new to zephyr I'm not entirely sure if there are any special reasons, that those kernel objects are not traced. I added the record function locally and tested it with an nrf52840 and it worked perfectly. But maybe there are any concerns regarding other contexts, so I'm curious about other assessments.

Found following tickets regarding this topic but not solving my problem:

Metadata

Metadata

Assignees

Labels

EnhancementChanges/Updates/Additions to existing featuresarea: TracingTracing

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions