zephyr/tests
Charles E. Youse 3036faf88a tests/benchmarks: fix BOOT_TIME_MEASUREMENT
The boot time measurement sample was giving bogus values on x86: an
assumption was made that the system timer is in sync with the CPU TSC,
which is not the case on most x86 boards.

Boot time measurements are no longer permitted unless the timer source
is the local APIC. To avoid issues of TSC scaling, the startup datum
has been forced to 0, which is in line with the ARM implementation
(which is the only other platform which supports this feature).

Cleanups along the way:

As the datum is now assumed zero, some variables are removed and
calculations simplified. The global variables involved in boot time
measurements are moved to the kernel.h header rather than being
redeclared in every place they are referenced. Since none of the
measurements actually use 64-bit precision, the samples are reduced
to 32-bit quantities.

In addition, this feature has been enabled in long mode.

Fixes: #19144

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
2019-09-21 16:43:26 -07:00
..
application_development tests: cxx: Enable exceptions 2019-09-19 09:26:42 -05:00
arch tests: arm: fix arm_irq_vector_table to plug rtc_isr for CC13x2/CC26x2 2019-09-19 13:43:10 -05:00
benchmarks tests/benchmarks: fix BOOT_TIME_MEASUREMENT 2019-09-21 16:43:26 -07:00
bluetooth Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
boards
booting/stub
cmsis_rtos_v1
cmsis_rtos_v2 tests: cmsis_v2: Put/Get msg in queue instead of u32_t 2019-09-19 09:33:03 -05:00
crypto
drivers tests: degu_evk: add adc test 2019-09-19 12:06:56 -05:00
kernel tests/kernel/sleep: relax upper bound for TI CC13X2/CC26X2 RTC 2019-09-19 13:43:10 -05:00
lib lib/timeutil: avoid implementation-defined behavior 2019-09-19 20:49:51 -04:00
misc
net tests: net: hostname: Add tests for hostname set/get 2019-09-20 11:42:51 +03:00
posix
shell
subsys
unit
ztest