Skip to content

Commit a14cf8b

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 14c44c5 commit a14cf8b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

zephyr-sys/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ fn main() -> Result<()> {
8585
.allowlist_function("led_.*")
8686
.allowlist_function("sys_.*")
8787
.allowlist_function("uart_.*")
88+
.allowlist_function("thread_analyzer.*")
8889
.allowlist_item("E.*")
8990
.allowlist_item("K_.*")
9091
.allowlist_item("ZR_.*")

zephyr-sys/wrapper.h

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ extern int errno;
4444
#include <zephyr/drivers/led_strip.h>
4545
#include <zephyr/drivers/led.h>
4646

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

0 commit comments

Comments
 (0)