You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "masayuki2009 (via GitHub)" <gi...@apache.org> on 2023/04/22 09:46:20 UTC
[GitHub] [nuttx] masayuki2009 commented on pull request #8799: arm64: Support for FPU profile with procfs
masayuki2009 commented on PR #8799:
URL: https://github.com/apache/nuttx/pull/8799#issuecomment-1518581432
@qinwei2004
I noticed that ostest crashes with qemu-armv8a:nsh_smp
```
$ /home/ishikawa/opensource/QEMU/qemu-7.1/build/qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic -machine virt,virtualization=on,gic-version=3 -net none -chardev stdio,id=con,mux=on -serial chardev:con -mon chardev=con,mode=readline -kernel ./nuttx
...
NuttShell (NSH) NuttX-12.1.0
nsh> uname -a
NuttX 12.1.0 4be499a243 Apr 22 2023 18:41:21 arm64 qemu-armv8a
nsh> ps
PID GROUP CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 0 FIFO Kthread N-- Assigned 0000000000000000 016336 001040 6.3% CPU0 IDLE
1 1 1 0 FIFO Kthread N-- Running 0000000000000000 016336 000368 2.2% CPU1 IDLE
2 2 2 0 FIFO Kthread N-- Running 0000000000000000 016336 000128 0.7% CPU2 IDLE
3 3 3 0 FIFO Kthread N-- Running 0000000000000000 016336 000128 0.7% CPU3 IDLE
4 4 --- 192 RR Kthread --- Waiting Semaphore 0000000000000000 016288 001040 6.3% hpwork 0x402c3f70
5 5 0 100 RR Task --- Running 0000000000000000 016304 002784 17.0% nsh_main
nsh> free
total used free largest nused nfree
Umem: 131210576 571152 130639424 130639328 71 2
nsh> ostest
...
user_main: semaphore test
sem_test: Initializing semaphore to 0
sem_test: Starting waiter thread 1
sem_test: Set thread 1 priority to 191
sem_test: Starting waiter thread 2
waiter_func: Thread 1 Started
sem_test: Set thread 2 priority to 128
waiter_func: Thread 1 initial semaphore value = 0
waiter_func: Thread 1 waiting on semaphore
sem_test: Starting poster thread 3
waiter_func: Thread 2 Started
sem_test: Set thread 3 priority to 64
waiter_func: Thread 2 initial semaphore value = -1
waiter_func: Thread 2 waiting on semaphore
poster_func: Thread 3 started
poster_func: Thread 3 semaphore value = -2
poster_func: Thread 3 posting semaphore
poster_func: Thread 3 new semaphore value = -1
waiter_func: Thread 1 awakened
poster_func: Thread 3 semaphore value = -1
poster_func: Thread 3 posting semaphore
waiter_func: Thread 1 new semaphore value = -1
waiter_func: Thread 2 awakened
waiter_func: Thread 1 done
waiter_func: Thread 2 new semaphore value = 0
poster_func: Thread 3 new semaphore value = 0
[CPU3] _assert: Current Version: NuttX 12.1.0 4be499a243 Apr 22 2023 18:41:21 arm64
[CPU3] _assert: Assertion failed panic: at file: common/arm64_fatal.c:375 task(CPU3): ostest 0x402a4794
[CPU3] up_dump_register: stack = 0x40389d10
[CPU3] up_dump_register: x0: 0xdeaddeaddeaddead x1: 0x7
[CPU3] up_dump_register: x2: 0x0 x3: 0x402c3ca0
[CPU3] up_dump_register: x4: 0x1 x5: 0x2
[CPU3] up_dump_register: x6: 0x0 x7: 0xa00
[CPU3] up_dump_register: x8: 0x88 x9: 0x0
[CPU3] up_dump_register: x10: 0x0 x11: 0x0
[CPU3] up_dump_register: x12: 0x0 x13: 0x0
[CPU3] up_dump_register: x14: 0x0 x15: 0x0
[CPU3] up_dump_register: x16: 0x4028ca18 x17: 0x0
[CPU3] up_dump_register: x18: 0x0 x19: 0x402c2098
[CPU3] up_dump_register: x20: 0x4038a010 x21: 0x402b5c88
[CPU3] up_dump_register: x22: 0x0 x23: 0x0
[CPU3] up_dump_register: x24: 0x0 x25: 0x0
[CPU3] up_dump_register: x26: 0x0 x27: 0x0
[CPU3] up_dump_register: x28: 0x0 x29: 0x0
[CPU3] up_dump_register: x30: 0x40282230
[CPU3] up_dump_register:
[CPU3] up_dump_register: STATUS Registers:
[CPU3] up_dump_register: SPSR: 0x600003c5
[CPU3] up_dump_register: ELR: 0x4028238c
[CPU3] up_dump_register: SP_EL0: 0x4038a040
[CPU3] up_dump_register: SP_ELX: 0x40389d10
[CPU3] up_dump_register: TPIDR_EL0: 0x403726f0
[CPU3] up_dump_register: TPIDR_EL1: 0x403726f0
[CPU3] up_dump_register: EXE_DEPTH: 0x1
[CPU3] show_tasks: PID GROUP CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK STACKBASE STACKSIZE USED FILLED COMMAND
[CPU3] show_tasks: ---- --- ---- --- -------- ------- --- ------- ---------- -------- 0x402cc000 8192 8192 100.0%! irq
[CPU3] dump_task: 0 0 0 0 FIFO Kthread N-- Running 0000000000000000 0x402ce030 16336 1168 7.1% CPU0 IDLE
[CPU3] dump_task: 1 1 1 0 FIFO Kthread N-- Running 0000000000000000 0x402d2030 16336 368 2.2% CPU1 IDLE
[CPU3] dump_task: 2 2 2 0 FIFO Kthread N-- Running 0000000000000000 0x402d6030 16336 368 2.2% CPU2 IDLE
[CPU3] dump_task: 3 3 3 0 FIFO Kthread N-- Assigned 0000000000000000 0x402da030 16336 368 2.2% CPU3 IDLE
[CPU3] dump_task: 4 4 0 192 RR Kthread --- Waiting Semaphore 0000000000000000 0x402e0b00 16288 1264 7.7% hpwork 0x402c3f70
[CPU3] dump_task: 5 5 0 100 RR Task --- Waiting Semaphore 0000000000000000 0x402e5140 16304 2096 12.8% nsh_main
[CPU3] dump_task: 22 22 1 100 RR Task --- Waiting Semaphore 0000000000000000 0x4036e4e0 16256 2160 13.2% ostest Arg1 Arg2 Arg3 Arg4
[CPU3] dump_task: 122 22 3 128 RR pthread --- Running 0000000000000000 0x403863b0 16336 3680 22.5% ostest 0x402a4794 0x2
[CPU3] dump_task: 123 22 2 64 RR pthread --- Waiting Semaphore 0000000000000000 0x4038a3c0 16336 1808 11.0% ostest 0x402a4608 0x3
[CPU3] dump_task: 15 15 0 100 RR Task --- Waiting Semaphore 0000000000000000 0x40369db0 16304 1920 11.7% ostest
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org