guohao15
be85fab47c
libuv:Make libuv use epoll runable without fsnotify
...
Signed-off-by: guohao15 <guohao15@xiaomi.com >
2024-10-15 10:32:08 +08:00
guohao15
ed91a3c03c
libuv:change LIBUV_BACKEND_EPOLL depends on FS_NOTIFY
...
Signed-off-by: guohao15 <guohao15@xiaomi.com >
2024-10-15 10:32:08 +08:00
guohao15
4e386a955e
system/libuv: optimize stack usage
...
Signed-off-by: guohao15 <guohao15@xiaomi.com >
2024-10-15 10:32:08 +08:00
guohao15
5891f7037b
libuv:add inotify test for nuttx
...
Signed-off-by: guohao15 <guohao15@xiaomi.com >
2024-10-15 10:32:08 +08:00
dongjiuzhu1
8b6e63c22d
libuv: default select epoll backend in libuv
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-15 10:32:08 +08:00
Xiang Xiao
2eeb750055
Fix telnetd.c:57:5: error: 'CONFIG_SYSTEM_TELNETD_SESSION_STACKSIZE' undeclared
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2024-10-14 10:44:40 +08:00
yinshengkai
e9b457fca1
telnet: Configure the telnet session stack to be the same as nsh
...
Using the default 3K stack size will result in insufficient stack when executing certain commands.
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com >
2024-10-13 10:49:46 +08:00
zhanghu5
5f3e3fe655
fix ECHO problem
...
only when devfd and stdfd both are tty, we call tcsetattr
Signed-off-by: zhanghu5 <zhanghu5@xiaomi.com >
2024-10-13 10:33:22 +08:00
getian
d874dc21d1
system/adb: Implement ADB function through qemu pipe (1/3)
...
Signed-off-by: getian <getian@xiaomi.com >
2024-10-12 10:43:11 +08:00
dongjiuzhu1
6116558842
system/adb: using inotify to check usb hotplug event
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-12 10:43:11 +08:00
dongjiuzhu1
7ab6704920
system/adb: add timer to check usb hotplug event
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-12 10:43:11 +08:00
likun17
af214c507a
uORB:Fixed the problem that uorb output cannot wrap after deleting lib_libbsprintf automatic wrapping.
...
Signed-off-by: likun17 <likun17@xiaomi.com >
2024-10-12 10:38:50 +08:00
GUIDINGLI
b7261a0270
Revert "libuv: Remove GCCVER and add compilation options directly."
...
This reverts commit 13ce4707ff
.
2024-10-11 21:44:13 +08:00
ligd
c4f3f05bfa
lsan: add system cmd lsan support
...
The Alsans support for the LeakSanitizer (lsan) memory leak detection tool.
ref:
https://github.com/gcc-mirror/gcc/blob/master/libsanitizer/include/sanitizer/lsan_interface.h
This tool used for runtime check memleak on the SIM platfrom.
Signed-off-by: ligd <liguiding1@xiaomi.com >
2024-10-11 19:39:42 +08:00
Bowen Wang
048f9d7720
system/system: add config SYSTEM_SYSTEM_DUMPINFO
...
In some cases, applicationes use system() to excute the nsh command,
but it's hard to find out who used the system function to execute
the nsh command, so add this config to print the call backtrace and
the command content.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com >
2024-10-11 19:21:41 +08:00
zhangkai25
3fef38c96d
Fix issue with return value not being checked
...
Signed-off-by: zhangkai25 <zhangkai25@xiaomi.com >
2024-10-11 18:35:27 +08:00
cuiziwei
13ce4707ff
libuv: Remove GCCVER and add compilation options directly.
...
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com >
2024-10-11 18:29:40 +08:00
zhangwenjian
9003110d7f
libc:getline support backspace
...
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com >
2024-10-11 03:02:23 +08:00
shizhenghui
de8fae7119
nxcodec: fix build warning
...
nxcodec_main.c:143:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
143 | printf("nxcodec size: %lux%lu\n",
| ~~^
| |
| long unsigned int
| %u
144 | codec.output.format.fmt.pix.width,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka unsigned int}
nxcodec_main.c:143:41: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
143 | printf("nxcodec size: %lux%lu\n",
| ~~^
| |
| long unsigned int
| %u
144 | codec.output.format.fmt.pix.width,
145 | codec.output.format.fmt.pix.height);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka unsigned int}
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com >
2024-10-11 01:28:51 +08:00
shizhenghui
8f50bf3867
nxcodec: add rich debugging logs
...
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com >
2024-10-11 01:28:51 +08:00
yinshengkai
1b27b73a99
system/gprof: Support gprof tool
...
It can perform statistics on running hot spots or record function calls
arm-none-eabi-gprof nuttx/nuttx gmon.out -b
Flat profile:
Each sample counts as 0.001 seconds.
% cumulative self self total
time seconds seconds calls s/call s/call name
66.41 3.55 3.55 43 0.08 0.08 sdelay
33.44 5.34 1.79 44 0.04 0.04 delay
0.07 5.34 0.00 up_idle
0.04 5.34 0.00 nx_start
0.02 5.34 0.00 fdtdump_main
0.02 5.34 0.00 nxsem_wait
0.00 5.34 0.00 1 0.00 5.34 hello_main
0.00 5.34 0.00 1 0.00 0.00 singal_handler
granularity: each sample hit covers 4 byte(s) for 0.02% of 5.34 seconds
index % time self children called name
0.00 5.34 1/1 nxtask_startup [2]
[1] 99.9 0.00 5.34 1 hello_main [1]
3.55 0.00 43/43 sdelay [3]
1.79 0.00 44/44 delay [4]
-----------------------------------------------
<spontaneous>
[2] 99.9 0.00 5.34 nxtask_startup [2]
0.00 5.34 1/1 hello_main [1]
-----------------------------------------------
3.55 0.00 43/43 hello_main [1]
[3] 66.4 3.55 0.00 43 sdelay [3]
-----------------------------------------------
1.79 0.00 44/44 hello_main [1]
[4] 33.4 1.79 0.00 44 delay [4]
-----------------------------------------------
<spontaneous>
[5] 0.1 0.00 0.00 up_idle [5]
-----------------------------------------------
<spontaneous>
[6] 0.0 0.00 0.00 nx_start [6]
-----------------------------------------------
<spontaneous>
[7] 0.0 0.00 0.00 fdtdump_main [7]
-----------------------------------------------
<spontaneous>
[8] 0.0 0.00 0.00 nxsem_wait [8]
-----------------------------------------------
0.00 0.00 1/1 nxsig_deliver [3553]
[9] 0.0 0.00 0.00 1 singal_handler [9]
-----------------------------------------------
Index by function name
[4] delay [6] nx_start [9] singal_handler
[7] fdtdump_main [8] nxsem_wait [5] up_idle
[1] hello_main [3] sdelay
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com >
2024-10-09 23:16:13 +08:00
wangmingrong1
a2964c744d
gcov.c: deal compile warming
...
gcov.c:61:6: warning: 'path' may be used uninitialized [-Wmaybe-uninitialized]
61 | if (path == NULL || access(path, F_OK) != 0 || atoi(strip) <= 0)
| ^
gcov.c: In function 'gcov_main':
gcov.c:79:19: note: 'path' was declared here
79 | FAR const char *path;
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com >
2024-10-09 21:27:35 +08:00
yinshengkai
aa9d69e224
system: adjust gcov configuration name
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com >
2024-10-09 21:27:35 +08:00
yinshengkai
0f74de57cf
system/gcov: supports generating device-side code coverage
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com >
2024-10-09 21:27:35 +08:00
xuxin19
faea166566
cmake:add system cdcacm/critmom/stackmonitor missing CMake scripts
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com >
2024-10-09 20:15:49 +08:00
zhangjun21
cc200c301c
Keep the dhcpv6 renew process name the same in cmake and makefile
...
Signed-off-by: zhangjun21 <zhangjun21@xiaomi.com >
2024-10-09 20:05:11 +08:00
yinshengkai
1b48055286
system: simplify system/note code
...
delete the note format. This part has been implemented inside the driver.
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com >
2024-10-09 13:42:31 +08:00
Lars Kruse
d35dd65727
system/dhcp6c: add NET_ICMPv6_AUTOCONF dependency
...
Previously the build failed if NET_ICMPv6_AUTOCONF was disabled
(due to the missing `netlib_obtain_ipv6addr` symbol).
Closes : #2412
2024-10-08 19:56:50 +08:00
Xiang Xiao
c30583dda4
system/adbd: Fix typo error(CONFIG_ADB_SERVER->CONFIG_SYSTEM_ADBD)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2024-10-07 21:25:42 +08:00
Petro Karashchenko
66b79a7c89
style: fix indentation issues
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com >
2024-10-04 08:17:51 +08:00
Petro Karashchenko
4f09da79cf
system/uniqueid: remove FAR from int variables
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com >
2024-10-02 10:40:05 +02:00
dongjiuzhu1
a5516121e2
uorb/flush: support flush operation
...
After you call orb_flush(), you can determine whether the
flush is completed by listening to the POLLPRI event
of fd and getting the event in orb_get_events.
After calling orb_get_events, the flush events will be cleared.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-02 01:48:47 +08:00
dongjiuzhu1
b0b4ac0f39
system/uORB: return subscibe latency/interval
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-02 01:48:47 +08:00
dongjiuzhu1
6c237cfbc0
system/uorb: add O_DIRECT to access sensor as wachers
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-02 01:48:47 +08:00
dongjiuzhu1
925efc2314
system/uORB: using lib_sprintf to output va_format and printf normal info in aosp adb shell
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-02 01:48:47 +08:00
dongjiuzhu1
aa5a38399a
system/uorb: fix compile warning
...
1. add string.h becuase strlen in uORB.c
2. add inttypes.h becuase PRIu64/... in sensor/*.c
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-02 01:48:47 +08:00
dongjiuzhu1
686bab3160
system/uorb: fix compile warning
...
apps/system/uorb/listener.c:543:38:
warning: unused parameter 'file' [-Wunused-parameter]
FAR FILE *file)
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-02 01:48:47 +08:00
dongjiuzhu1
5732c76f39
system/uorb: fix memory leak report by coverity
...
nsh> uorb_unit_test
uORB note: try single-topic support
uORB note: PASS single-topic test
uORB note: PASS orb 10-instances
uORB note: try multi-topic support
uORB note: ---------------- LATENCY TEST ------------------
mean: 0 us
std dev: 0 us
min: 0 us
max: 0 us
missed topic updates: 0
uORB note: PASS multi-topic test
uORB note: try multi-topic support subscribing before publishing
uORB note: PASS multi-topic reversed
uORB note: Testing unadvertise
uORB note: Testing multi-topic 2 test (queue simulation)
uORB note: PASS multi-topic 2 test (queue simulation)
uORB note: Testing orb queuing
uORB note: Testing to write some elements...
uORB note: Testing overflow...
uORB note: Testing underflow...
uORB note: PASS orb queuing
uORB note: Testing orb queuing (poll & notify)
PASS
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-02 01:48:47 +08:00
dongjiuzhu1
5b729162ad
system/uorb: support build in aosp
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-02 01:48:47 +08:00
dongjiuzhu1
44239f11ff
apps/uorb: change nuttx/list to posix queue
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com >
2024-10-02 01:48:47 +08:00
xuxingliang
3eb2124ca9
system/dhcpc: fix cmake program name
...
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com >
2024-10-01 21:50:08 +08:00
xuxingliang
8e6b13489f
system/fdt: add cmake support
...
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com >
2024-10-01 21:50:08 +08:00
dulibo1
b295d5de91
batterydump:move to system dir
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com >
2024-09-30 18:31:03 +08:00
makejian
ddf9a7a2de
system/adb: fix build warning
...
adb_banner.c:60:47: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
Signed-off-by: makejian <makejian@xiaomi.com >
2024-09-29 22:33:32 +02:00
anjiahao
55df3019f9
ymodem/sbrb.py:fix a bug sendto not use
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com >
2024-09-28 11:27:03 +08:00
anjiahao
85ae6f0dfd
ymodem:set the transport retry as optional
...
The waiting duration of the rb/sb command can be determined based on
the number of retransmissions, so that ymodem can restart to the normal
system after running in the bootloader for a short period of time.
Signed-off-by: anjiahao <anjiahao@xiaomi.com >
2024-09-28 11:27:03 +08:00
likun17
d2214c28c5
uorb:Added 6dof motion and gesture related types.
...
For details,see: https://developer.android.com/reference/android/hardware/SensorEvent#values
Signed-off-by: likun17 <likun17@xiaomi.com >
2024-09-27 13:59:30 +08:00
likun17
b28a4b4ab7
uORB: Add topic information acquisition and setting interface.
...
Signed-off-by: likun17 <likun17@xiaomi.com >
2024-09-27 13:59:30 +08:00
likun17
bccb6c6b45
uorb:Added urob loop function module and supported epoll.
...
Signed-off-by: likun17 <likun17@xiaomi.com >
2024-09-27 09:53:06 +08:00
wanggang26
eab2cba4a1
enable SOCK_CLOEXEC explicit
...
leaking here means fork/vfork will duplicate fd without O_CLOEXEC flag
to the child process.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com >
2024-09-26 16:13:29 +08:00