<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/src/utest/smp, branch copilot/fix-format-string-injection</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%2Ffix-format-string-injection</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/src/utest/smp?h=copilot%2Ffix-format-string-injection'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2025-12-11T03:14:43Z</updated>
<entry>
<title> [utest][smp]Add descriptions for the SMP test cases (interrupt_pri and spinlock) #11011</title>
<updated>2025-12-11T03:14:43Z</updated>
<author>
<name>Teng mengchen</name>
<email>80439417+Tm-C-mT@users.noreply.github.com</email>
</author>
<published>2025-12-11T03:14:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=957bac0434db9331a702232f37e09732922ad230'/>
<id>urn:sha1:957bac0434db9331a702232f37e09732922ad230</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[docs][utest]:Add comments for smp_thread_preemption</title>
<updated>2025-12-10T09:06:41Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-12-09T13:57:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d9ca9c449b7aaa48a26e2860f8755d5a18fc94e7'/>
<id>urn:sha1:d9ca9c449b7aaa48a26e2860f8755d5a18fc94e7</id>
<content type='text'>
Add comments for smp_thread_preemption.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[utest]:Modify the execution logic of smp_thread_preemptions</title>
<updated>2025-12-10T09:06:41Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-12-02T10:16:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d56d3d95d508950b40bb646685ae8f583de1f7e9'/>
<id>urn:sha1:d56d3d95d508950b40bb646685ae8f583de1f7e9</id>
<content type='text'>
Currently, the print information of this test case fails to demonstrate that
the high-priority thread has preempted the low-priority thread. This is because
when the high-priority thread prints the thread list, there is no information
about the low-priority thread (tlow), as tlow has already completed execution
and been destroyed. Therefore, the current execution logic cannot confirm the
successful completion of the preemption operation.

Solution: After the low-priority thread (tlow) releases the lock, add a busy-wait
loop while(!finish_flag);. At this point, when the high-priority thread (thigh)
prints the thread list information, tlow can be observed in the ready state, indicating
that it has been preempted by thigh.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<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>
</feed>
