zephyr/include/bluetooth
Szymon Janc a7e746047f Bluetooth: Account K_THREAD_SIZEOF in BT_STACK macros
This makes BT_STACK_* macros to account K_THREAD_SIZEOF overhead of
thread. This make it easier for developer as he only needs to care
about size needed by his own code. Also size reported by stack_analyze
now match what was passed to BT_STACK macro.

Without this patch we were pretty close to stack overflow on x86:
ecc stack (real size 1280):     unused 52       usage 1164 / 1216 (95 %)
rx stack (real size 1024):      unused 44       usage 916 / 960 (95 %)
cmd tx stack (real size 256):   unused 16       usage 176 / 192 (91 %)
conn tx stack (real size 256):  unused 4        usage 188 / 192 (97 %)

With this patch stacks have reasonable utilizations:
ecc stack (real size 1344):     unused 112      usage 1168 / 1280 (91 %)
rx stack (real size 1088):      unused 108      usage 916 / 1024 (89 %)
cmd tx stack (real size 320):   unused 80       usage 176 / 256 (68 %)
conn tx stack (real size 320):  unused 68       usage 188 / 256 (73 %)

Change-Id: I9d9c49fab5a455ffc6b96bc75d5afadcabc6dc79
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
2016-12-03 17:09:38 +00:00
..
a2dp.h Bluetooth: A2DP: Added Connect API 2016-10-04 10:55:04 +00:00
att.h Bluetooth: ATT: Rework buffer pools to minimize extra data 2016-11-01 21:40:39 +02:00
avdtp.h Bluetooth: AVDTP: SEP Definition 2016-12-03 17:09:38 +00:00
bluetooth.h Bluetooth: Fix usage of C++ reserved word 2016-11-09 08:57:52 +02:00
buf.h
conn.h Bluetooth: Rename BT_SECURITY_ZERO to BT_SECURITY_NONE 2016-11-01 21:40:39 +02:00
gatt.h Bluetooth: GATT: Fix using out of scope variable 2016-11-18 07:47:50 +02:00
hci_raw.h Bluetooth: Use unified k_fifo API for FIFOs 2016-11-11 07:59:15 +02:00
hci.h Bluetooth: Controller: Implement missing DLE commands 2016-11-18 07:47:50 +02:00
hfp_hf.h Bluetooth: HFP HF: Initialize Handsfree profile 2016-09-14 08:45:45 +03:00
l2cap.h Bluetooth: L2CAP: Fix using nano_delayed_work API 2016-11-11 07:59:15 +02:00
log.h Bluetooth: Account K_THREAD_SIZEOF in BT_STACK macros 2016-12-03 17:09:38 +00:00
rfcomm.h Bluetooth: Use unified k_fifo API for FIFOs 2016-11-11 07:59:15 +02:00
sdp.h Bluetooth: SDP: Shorten Service Class macro name 2016-10-21 07:47:31 +03:00
storage.h Bluetooth: Add well known keys to storage API for legacy pairing 2016-10-16 09:01:28 +03:00
uuid.h Bluetooth: UUID: Add protocol UUIDs 2016-10-21 07:47:31 +03:00