rename lib_pathbuffer to lib_tempbuffer#15326
Conversation
|
[Experimental Bot, please feedback here] No, this PR does not fully meet the NuttX requirements. While it provides some information, it lacks crucial details. Here's what's missing:
In short, the PR needs to be significantly more detailed to meet the NuttX requirements. It needs to explain the rationale behind the change, justify the claimed lack of impact, and provide concrete evidence of testing. |
acassis
left a comment
There was a problem hiding this comment.
@Zhangshoukui I think we need to simplify the LINELEN / LINEMAX instead of creating a new one, currently there are many configs to that:
CONFIG_SYSTEM_CLE_CMD_HISTORY_LINELEN
CONFIG_SYSTEM_CLE_CMD_HISTORY_LEN
CONFIG_NSH_LINELEN
CONFIG_PROCFS_LINELEN
CONFIG_HELP_LINELEN
Having a LINELEN for each application could be more flexible, but it is also a lot a code duplication. It should be nice to have a single LINE_MAX to be the standard LINELEN
@acassis Yes, the next step is to optimize and remove the above configuration to use LINE_MAX. |
I agree with the line buffer change, but I have reservations about reusing lib_get_tempbuffer(). could the first 2 patches be submitted as a separate PR? |
#15344 I've separated the disputed submissions. But I had one problem I had to solve:
|
|
We need to analyze these problems case by case. Do you have the deepest stack consumption print?maybe backtrace or source code? |
|
./netutils/rexec/rexec.c: char cmd[CONFIG_NSH_LINELEN]; The main thing is that when CONFIG_NSH_LINELEN is configured to 256, the 2k stack is not enough for some scenarios, such as popen to invoke a simple command on a real device not sim My plan was to remove: |
|
please rebase the patch to resolve the conflict, @Zhangshoukui |
|
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
|
@Zhangshoukui Could you cherry pick #15326 (this PR) and #15344 to openvela please? |
Summary
rename lib_pathbuffer to lib_tempbuffer
Impact
None
Testing
./tools/configure.sh -l sim:nsh
make -j7