Replies: 1 comment
-
Could probably have the task hook scripts output to the same log as the existing perfmon infrastructure as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The performance counters don't account for every task in the system and are somewhat lacking in capability (i.e. isn't able to log which core something is scheduled on).
Instead, for VxWorks at least, there's
taskSwitchHookAdd
. For Linux, there'sperf
. FreeRTOS hasvTaskSwitchContextHook
, and I think on RTEMS rtems_task_switch_extension can be used.For past projects I've written scripts to convert context switch logs to .vcd files for viewing in GTKWave.
The existing perfmon infrastructure does have the advantage that it can log arbitrary portions of task execution rather than just scheduling in/out, so it should probably be kept for that, but the explicit task enter/exit log entries could be deprecated.
Beta Was this translation helpful? Give feedback.
All reactions