Ability to log performance makers to ftrace for Tizen SPI tool
[Issue] N/A
[Problem]
When using ftrace to analyse what the system is doing there is no way to see
what task Dali is doing. E.g. when does it start running its update-thread
in relation to the V-SYNC and event processing.
[Cause] No code
[Solution]
Added extra bitmask option to DALI_LOG_PERFORMANCE environment variable,
Example:
DALI_LOG_PERFORMANCE=4 dali-demo
cat /sys/kernel/debug/tracing/trace
TASK-PID CPU# TIMESTAMP FUNCTION
<...>-28189 [001] 269275.222762: tracing_mark_write: SPI_EV_DALI_PROCESS_EVENT_START
<...>-28189 [001] 269275.222812: tracing_mark_write: SPI_EV_DALI_PROCESS_EVENT_END
<...>-28196 [000] 269275.239498: tracing_mark_write: SPI_EV_DALI_V_SYNC
<...>-28194 [005] 269275.239527: tracing_mark_write: SPI_EV_DALI_UPDATE_START
<...>-28194 [005] 269275.240401: tracing_mark_write: SPI_EV_DALI_UPDATE_END
<...>-28196 [000] 269275.256192: tracing_mark_write: SPI_EV_DALI_V_SYNC
<...>-28194 [005] 269275.256228: tracing_mark_write: SPI_EV_DALI_UPDATE_START
<...>-28194 [005] 269275.256330: tracing_mark_write: SPI_EV_DALI_UPDATE_END
The SPI_EV_ prefix is added to allow SPI tool to detect the markers.
Change-Id: Idec9714308aa19a9f1ef509057f6ba7d227c4649
14 files changed: