masayuki2009 commented on PR #9297:
URL: https://github.com/apache/nuttx/pull/9297#issuecomment-1575995010
>@masayuki2009 Sorry, I'm not familiar with kernal mode, I see there is no
iperf command after starting the rv-virt:knetnsh64 (Follow the README.txt).
>Could you show me more detail steps to run the built-in command in kernal
mode.
@CV-Bowen
In the CONFIG_BUILD_KERNEL mode, iperf command is built as a separate ELF
file so the command can not be seen in the help.
```
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK
STACK USED FILLED COMMAND
0 0 0 FIFO Kthread N-- Ready 0000000000000000
003024 001344 44.4% Idle Task
1 1 224 RR Kthread --- Waiting Semaphore 0000000000000000
001952 000408 20.9% hpwork 0x802017d8
2 2 100 RR Kthread --- Waiting Semaphore 0000000000000000
001952 000408 20.9% lpwork 0x80201808
3 3 100 RR Task --- Running 0000000000000000
002976 001720 57.7% /system/bin/init
4 4 100 RR Task --- Waiting Semaphore 0000000000020000
001968 000648 32.9% telnetd
nsh> free
total used free largest nused nfree
Kmem: 2023776 295840 1727936 1712112 93 8
Page: 4194304 1277952 2916352 2916352
nsh> help
help usage: help [-v] [<cmd>]
. break df free kill nslookup set
uname
[ cat dmesg get ls printf sleep
umount
? cd echo help mkdir ps source
unset
alias cp env hexdump mkrd put test
uptime
unalias cmp exec ifconfig mount pwd time
usleep
arp dirname exit ifdown mv rm true
wget
basename dd false ifup nfsmount rmdir truncate xd
nsh> iperf
ERROR: should specific client/server mode
USAGE: iperf [-sua] [-c <ip|cpu>] [-p <port>] [-i <interval>] [-t <time>]
[--local <path>] [--rpmsg <name>]
iperf command:
-c, --client=<ip> run in client mode, connecting to <host>
-s, --server run in server mode
-u, --udp use UDP rather than TCP
--local=[<path>] use local socket
--rpmsg=<name> use RPMsg socket
-p, --port=<port> server port to listen on/connect to
-i, --interval=<interval> seconds between periodic bandwidth reports
-t, --time=<time> time in seconds to transmit for (default 10 secs)
-a, --abort abort running iperf
nsh>
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]