Skip to content

Commit

Permalink
use macro to control zephyr thread stats info
Browse files Browse the repository at this point in the history
  • Loading branch information
TianlongLiang committed Dec 17, 2024
1 parent 9563909 commit e70facd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/shared/platform/zephyr/zephyr_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ os_time_get_boot_us()
uint64
os_time_thread_cputime_us(void)
{
#ifdef CONFIG_THREAD_RUNTIME_STATS
k_tid_t tid;
struct k_thread_runtime_stats stats;
uint32 clock_freq;
Expand All @@ -27,4 +28,7 @@ os_time_thread_cputime_us(void)
}

return time_in_us;
#else
return os_time_get_boot_us();
#endif
}
2 changes: 1 addition & 1 deletion product-mini/platforms/zephyr/simple/build_and_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ TARGET=$1

case $TARGET in
$X86_TARGET)
west build -b qemu_x86_nommu \
west build -b qemu_x86_tiny \
. -p always -- \
-DWAMR_BUILD_TARGET=X86_32
west build -t run
Expand Down
7 changes: 7 additions & 0 deletions tests/fuzz/wasm-mutator-fuzz/portal/osv-scanner.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ name = "vite"
ecosystem = "npm"
ignore = true
reason = "Development server not exposed to untrusted networks"

# GHSA-mwcw-c2x4-8c55
[[PackageOverrides]]
name = "nanoid"
ecosystem = "npm"
ignore = true
reason = "Accepted known vulnerabilities for testing purposes"

0 comments on commit e70facd

Please sign in to comment.