<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/src/utest/smp, branch copilot/refactor-hwtimer-ktime-cputime</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/src/utest/smp?h=copilot%2Frefactor-hwtimer-ktime-cputime</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/src/utest/smp?h=copilot%2Frefactor-hwtimer-ktime-cputime'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2025-12-04T03:17:50Z</updated>
<entry>
<title>[utest]: Solve the address misalignment issue of atomic operations</title>
<updated>2025-12-04T03:17:50Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-12-03T11:33:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=dd19c0eb7205b00a8f5c9a179d95d345b5a0f6d4'/>
<id>urn:sha1:dd19c0eb7205b00a8f5c9a179d95d345b5a0f6d4</id>
<content type='text'>
In smp_assigned_idle_cores_tc, the finish_flag involves atomic operations
and thus requires address alignment.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[docs][utest]:Add comments for smp_bind_affinity</title>
<updated>2025-11-26T14:51:25Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-11-20T03:42:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=9c2279acdc526a25cd6abdccee18640c4d4ebc5e'/>
<id>urn:sha1:9c2279acdc526a25cd6abdccee18640c4d4ebc5e</id>
<content type='text'>
Add comments for smp_bind_affinity, And fixed some comment issues in smp_affinity_pri2_tc.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[docs][utest]:Add comments for smp_affinity_pri2</title>
<updated>2025-11-26T14:51:25Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-11-20T03:28:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=cafd9c6dfea305eb664d1d94c5713d6a5f53ad47'/>
<id>urn:sha1:cafd9c6dfea305eb664d1d94c5713d6a5f53ad47</id>
<content type='text'>
Add comments for smp_affinity_pri2

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[docs][utest]:Add comments for smp_affinity_pri1</title>
<updated>2025-11-26T14:51:25Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-11-20T02:49:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ea37d4c2c931c3efb6da8b7cc68854fcf93ddfd0'/>
<id>urn:sha1:ea37d4c2c931c3efb6da8b7cc68854fcf93ddfd0</id>
<content type='text'>
Add comments for smp_affinity_pri1

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[docs][utest]:Add explanatory comments for the utest of thread allocation for idle harts</title>
<updated>2025-11-19T08:15:47Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-11-19T08:02:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=573c5489fa61f2466ed41e66d47792d803703443'/>
<id>urn:sha1:573c5489fa61f2466ed41e66d47792d803703443</id>
<content type='text'>
Add explanatory comments for the utest of smp_assigned_idle_cores.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[utest]: Modify the utest logic for thread allocation of idle harts</title>
<updated>2025-11-19T08:15:47Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-11-17T02:00:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=9308564a920c99f31edd747d118c406192537578'/>
<id>urn:sha1:9308564a920c99f31edd747d118c406192537578</id>
<content type='text'>
Currently, this utest cannot determine whether threads are evenly distributed
across idle harts by observing the result of list_thread(). This is because
the presence of rt_thread_delay(5); causes all other threads to be in the
suspended state when thread information is printed. For example, if RT_CPUS_NR=4,
T0 executes list_thread() to print information, while T1~T3 are in hibernation
and thus it is impossible to observe which hart they are running on.

Solution:Here, the completion judgment condition has been modified. For example,
when RT_CPUS_NR=4, only RT_CPUS_NR-1 threads will be created (i.e., T0 to T2),
because running the utest occupies one hart. The execution is judged as completed
when finish_flag=0x0007, and the thread running the utest will call list_thread()
to print the information. Observe whether T0 to T2 are running on different
harts simultaneously.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[utest]Fixed assertion failure in the smp_affinity_pri2_tc use case caused by improper priority configuration. (#10956)</title>
<updated>2025-11-18T10:02:03Z</updated>
<author>
<name>R b b666</name>
<email>64397326+Rbb666@users.noreply.github.com</email>
</author>
<published>2025-11-18T10:02:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=59e55f543c20b9103f07270b3a03d8744c01e654'/>
<id>urn:sha1:59e55f543c20b9103f07270b3a03d8744c01e654</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[utest]Fixed assertion failure in the smp_affinity_pri1_tc use case caused by improper priority configuration.</title>
<updated>2025-11-18T09:22:43Z</updated>
<author>
<name>Rbb666</name>
<email>zhangbingru@rt-thread.com</email>
</author>
<published>2025-11-18T09:11:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=e484f56b6c3e0a4686635682becfb8de41d7a801'/>
<id>urn:sha1:e484f56b6c3e0a4686635682becfb8de41d7a801</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[utest]Fixed compilation warning issues in smp/smp_affinity_prix_tc.</title>
<updated>2025-11-18T08:57:43Z</updated>
<author>
<name>Rbb666</name>
<email>zhangbingru@rt-thread.com</email>
</author>
<published>2025-11-18T08:42:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=0af3b3eec1a6f65d3d7e1ad4232daa708c97050d'/>
<id>urn:sha1:0af3b3eec1a6f65d3d7e1ad4232daa708c97050d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>utest: Improve the strings displayed in the menu</title>
<updated>2025-10-16T10:34:43Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2025-10-16T02:19:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=c1363c77d60eae464d971207ed52d45249345d46'/>
<id>urn:sha1:c1363c77d60eae464d971207ed52d45249345d46</id>
<content type='text'>
Use "Test" instead of "Unit Testcases" to make string shorter.
Use uppercase to make it look more eye-catching.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
</content>
</entry>
</feed>
