Go to file
Fabrice Olivero b551a447b0 samples/task_profiler: fix crash when starting profiler
When profiler is started from shell, platform information is
transmitted over uart by calling uart_poll_out(uart_dev)
directly in the shell fiber context which is executed when
the command is entered ('prof start')

Problem is that 'uart_dev' global variable is set to the UART
console device when prof_flush() first call is done.

Depending on when this call happens (application dependent,
especially in nano-apps which have to call prof_flush in
their main loop), 'prof start' may happen before 'uart_dev'
variable is actually set, which drives to shell fiber crash.

This patches moves sending platform information from shell
fiber to prof_flush function to avoid using non initialized
'uart_dev' variable.

Change-Id: Ie64f4418a745affa3fbd731db6bf9bb998b7c2f9
Signed-off-by: Fabrice Olivero <fabrice.olivero@intel.com>
2016-06-22 05:30:26 +00:00
arch
boards
doc doc: add a troubleshooting guide 2016-06-22 04:49:28 +00:00
drivers cc2520: Fix how FREGs and SREGs are accessed 2016-06-22 04:47:43 +00:00
ext
include
kernel
lib
misc
net
samples samples/task_profiler: fix crash when starting profiler 2016-06-22 05:30:26 +00:00
scripts
tests
.checkpatch.conf
.gitattributes
.gitignore
.gitreview
.mailmap
Kbuild
Kconfig
Kconfig.zephyr
LICENSE
MAINTAINERS
Makefile
Makefile.inc build: quote SOURCE_DIR to allow it to be a list 2016-06-22 05:02:28 +00:00
zephyr-env.sh