summaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-06-08 10:01:32 +0200
committerGitHub <[email protected]>2026-06-08 10:01:32 +0200
commit87ab09cce305eb9cd4aacac4e8c62af72f665bff (patch)
treedd062ebbea5235d1921c64b396bf7e4ce79e9e15 /utility
parent9ab0cf9683f832cdb48e2099533a5b06a3afcd64 (diff)
parent730b61874bc5cf40768987605ae5187fde0fa1e2 (diff)
Merge pull request #544 from eclipse-threadx/devv6.5.1.202602_rel
Merging changes for the v.6.5.1.202602 release
Diffstat (limited to 'utility')
-rw-r--r--utility/benchmarks/thread_metric/threadx_example/threadx_tm_basic_test_example.c11
-rw-r--r--utility/benchmarks/thread_metric/threadx_example/threadx_tm_cooperative_scheduling_test_example.c11
-rw-r--r--utility/benchmarks/thread_metric/threadx_example/threadx_tm_interrupt_preemption_test_example.c11
-rw-r--r--utility/benchmarks/thread_metric/threadx_example/threadx_tm_interrupt_test_example.c11
-rw-r--r--utility/benchmarks/thread_metric/threadx_example/threadx_tm_memory_allocation_test_example.c11
-rw-r--r--utility/benchmarks/thread_metric/threadx_example/threadx_tm_message_processing_test_example.c11
-rw-r--r--utility/benchmarks/thread_metric/threadx_example/threadx_tm_preemptive_scheduling_test_example.c11
-rw-r--r--utility/benchmarks/thread_metric/threadx_example/threadx_tm_synchronization_test_example.c11
-rw-r--r--utility/execution_profile_kit/tx_execution_profile.h18
-rw-r--r--utility/rtos_compatibility_layers/OSEK/demo_osek.c11
-rw-r--r--utility/rtos_compatibility_layers/posix/posix_demo.c11
-rw-r--r--utility/rtos_compatibility_layers/posix/posix_signal_nested_test.c11
-rw-r--r--utility/rtos_compatibility_layers/posix/posix_signal_resume_thread_test.c11
-rw-r--r--utility/rtos_compatibility_layers/posix/posix_signal_self_send_test.c11
-rw-r--r--utility/rtos_compatibility_layers/posix/posix_signal_sigmask_test.c11
-rw-r--r--utility/rtos_compatibility_layers/posix/posix_signal_sigwait_test.c11
-rw-r--r--utility/rtos_compatibility_layers/posix/posix_signal_suspended_thread_test.c11
17 files changed, 194 insertions, 0 deletions
diff --git a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_basic_test_example.c b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_basic_test_example.c
index 9430d71c..c6f17d94 100644
--- a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_basic_test_example.c
+++ b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_basic_test_example.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
diff --git a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_cooperative_scheduling_test_example.c b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_cooperative_scheduling_test_example.c
index 9430d71c..c6f17d94 100644
--- a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_cooperative_scheduling_test_example.c
+++ b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_cooperative_scheduling_test_example.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
diff --git a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_interrupt_preemption_test_example.c b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_interrupt_preemption_test_example.c
index 9430d71c..c6f17d94 100644
--- a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_interrupt_preemption_test_example.c
+++ b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_interrupt_preemption_test_example.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
diff --git a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_interrupt_test_example.c b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_interrupt_test_example.c
index 9430d71c..c6f17d94 100644
--- a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_interrupt_test_example.c
+++ b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_interrupt_test_example.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
diff --git a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_memory_allocation_test_example.c b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_memory_allocation_test_example.c
index 9430d71c..c6f17d94 100644
--- a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_memory_allocation_test_example.c
+++ b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_memory_allocation_test_example.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
diff --git a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_message_processing_test_example.c b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_message_processing_test_example.c
index 9430d71c..c6f17d94 100644
--- a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_message_processing_test_example.c
+++ b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_message_processing_test_example.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
diff --git a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_preemptive_scheduling_test_example.c b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_preemptive_scheduling_test_example.c
index 9430d71c..c6f17d94 100644
--- a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_preemptive_scheduling_test_example.c
+++ b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_preemptive_scheduling_test_example.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
diff --git a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_synchronization_test_example.c b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_synchronization_test_example.c
index 9430d71c..c6f17d94 100644
--- a/utility/benchmarks/thread_metric/threadx_example/threadx_tm_synchronization_test_example.c
+++ b/utility/benchmarks/thread_metric/threadx_example/threadx_tm_synchronization_test_example.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
diff --git a/utility/execution_profile_kit/tx_execution_profile.h b/utility/execution_profile_kit/tx_execution_profile.h
index fa09ac2e..0b82082c 100644
--- a/utility/execution_profile_kit/tx_execution_profile.h
+++ b/utility/execution_profile_kit/tx_execution_profile.h
@@ -56,10 +56,28 @@ typedef unsigned long EXECUTION_TIME_SOURCE_TYPE;
/* Define basic constants for the execution profile kit. */
+#if defined(__XTENSA__)
+
+/* Example for Xtensa targets: */
+#ifndef TX_EXECUTION_TIME_SOURCE
+#include <xtensa/config/core.h>
+#if XCHAL_HAVE_CCOUNT
+#include <xtensa/tie/xt_timer.h>
+#define TX_EXECUTION_TIME_SOURCE (EXECUTION_TIME_SOURCE_TYPE) XT_RSR_CCOUNT()
+#else
+#define TX_EXECUTION_TIME_SOURCE 0
+#endif
+#endif
+
+#else /* __XTENSA__ */
+
/* Example for Cortex-M targets: */
#ifndef TX_EXECUTION_TIME_SOURCE
#define TX_EXECUTION_TIME_SOURCE (EXECUTION_TIME_SOURCE_TYPE) *((volatile ULONG *) 0xE0001004)
#endif
+
+#endif /* __XTENSA__ */
+
#ifndef TX_EXECUTION_MAX_TIME_SOURCE
#define TX_EXECUTION_MAX_TIME_SOURCE 0xFFFFFFFF
#endif
diff --git a/utility/rtos_compatibility_layers/OSEK/demo_osek.c b/utility/rtos_compatibility_layers/OSEK/demo_osek.c
index 2e104d31..f4d23f42 100644
--- a/utility/rtos_compatibility_layers/OSEK/demo_osek.c
+++ b/utility/rtos_compatibility_layers/OSEK/demo_osek.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <os.h>
diff --git a/utility/rtos_compatibility_layers/posix/posix_demo.c b/utility/rtos_compatibility_layers/posix/posix_demo.c
index 7adeb9c3..e8ec950c 100644
--- a/utility/rtos_compatibility_layers/posix/posix_demo.c
+++ b/utility/rtos_compatibility_layers/posix/posix_demo.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This is a small demo of the POSIX Compliancy Wrapper for the high-performance ThreadX kernel. */
/* It includes examples of six pthreads of different priorities, using a message queue, semaphore and mutex. */
diff --git a/utility/rtos_compatibility_layers/posix/posix_signal_nested_test.c b/utility/rtos_compatibility_layers/posix/posix_signal_nested_test.c
index 6f5b6478..3c183968 100644
--- a/utility/rtos_compatibility_layers/posix/posix_signal_nested_test.c
+++ b/utility/rtos_compatibility_layers/posix/posix_signal_nested_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Simple nested-signaling test. */
#include "pthread.h"
diff --git a/utility/rtos_compatibility_layers/posix/posix_signal_resume_thread_test.c b/utility/rtos_compatibility_layers/posix/posix_signal_resume_thread_test.c
index 90878158..c6dc8c6c 100644
--- a/utility/rtos_compatibility_layers/posix/posix_signal_resume_thread_test.c
+++ b/utility/rtos_compatibility_layers/posix/posix_signal_resume_thread_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Simple resume from signal handler test. */
#include "pthread.h"
diff --git a/utility/rtos_compatibility_layers/posix/posix_signal_self_send_test.c b/utility/rtos_compatibility_layers/posix/posix_signal_self_send_test.c
index bbeb419f..5847029c 100644
--- a/utility/rtos_compatibility_layers/posix/posix_signal_self_send_test.c
+++ b/utility/rtos_compatibility_layers/posix/posix_signal_self_send_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Simple self-signaling test. */
#include "pthread.h"
diff --git a/utility/rtos_compatibility_layers/posix/posix_signal_sigmask_test.c b/utility/rtos_compatibility_layers/posix/posix_signal_sigmask_test.c
index 1f9c690b..e9404d25 100644
--- a/utility/rtos_compatibility_layers/posix/posix_signal_sigmask_test.c
+++ b/utility/rtos_compatibility_layers/posix/posix_signal_sigmask_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Simple signal sigmask test. */
#include "pthread.h"
diff --git a/utility/rtos_compatibility_layers/posix/posix_signal_sigwait_test.c b/utility/rtos_compatibility_layers/posix/posix_signal_sigwait_test.c
index aa459735..523736fc 100644
--- a/utility/rtos_compatibility_layers/posix/posix_signal_sigwait_test.c
+++ b/utility/rtos_compatibility_layers/posix/posix_signal_sigwait_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Simple signal sigwait test. */
#include "pthread.h"
diff --git a/utility/rtos_compatibility_layers/posix/posix_signal_suspended_thread_test.c b/utility/rtos_compatibility_layers/posix/posix_signal_suspended_thread_test.c
index 40d11eea..ad0e33b2 100644
--- a/utility/rtos_compatibility_layers/posix/posix_signal_suspended_thread_test.c
+++ b/utility/rtos_compatibility_layers/posix/posix_signal_suspended_thread_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Simple nested-signaling test. */
#include "pthread.h"