Skip to content

Commit 4364840

Browse files
committed
zephyr-sys: Bring thread_analyzer symbols in if selected
Enable use of the thread analyzer, if it is enabled. Signed-off-by: David Brown <[email protected]>
1 parent afae20a commit 4364840

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

zephyr-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ fn main() -> Result<()> {
8787
.allowlist_function("z_log.*")
8888
.allowlist_function("bt_.*")
8989
.allowlist_function("uart_.*")
90+
.allowlist_function("thread_analyzer.*")
9091
.allowlist_item("E.*")
9192
.allowlist_item("K_.*")
9293
.allowlist_item("ZR_.*")

zephyr-sys/wrapper.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ extern int errno;
4646
#include <zephyr/drivers/led_strip.h>
4747
#include <zephyr/drivers/led.h>
4848

49+
#ifdef CONFIG_THREAD_ANALYZER
50+
#include <zephyr/debug/thread_analyzer.h>
51+
#endif
52+
4953
/*
5054
* bindgen will only output #defined constants that resolve to simple numbers. These are some
5155
* symbols that we want exported that, at least in some situations, are more complex, usually with a

0 commit comments

Comments
 (0)