timing: introduce timing functions as a generic feature

Add timing functions and APIs.  This is now used with some of the tests
we have for performance and metrics and will be used whereever timing
informations are needed, for example for tracing, profiling and other
operations where timing info is critical.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Daniel Leung 2020-08-05 12:57:00 -07:00 committed by Maureen Helm
commit 0ffcfa9633
7 changed files with 117 additions and 0 deletions

View file

@ -41,3 +41,9 @@ config SOC_DEPRECATED_RELEASE
the Zephyr release that the SoC configuration will be removed.
When set, any build for that SoC will generate a clearly visible
deprecation warning.
config SOC_HAS_TIMING_FUNCTIONS
bool
help
Should be selected if SoC provides custom method for retrieving
timestamps and cycle count.