Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

driver/syslog:add stream as syslog backend, let crash dump into stream. #7659

Merged
merged 1 commit into from Nov 24, 2022

Conversation

XinStellaris
Copy link
Contributor

@XinStellaris XinStellaris commented Nov 22, 2022

Summary

This patch aims at saving crash sysloging into a mtd device.
To do so, a new lib_mtdoutstream is added, which can be used in interrupt context.
Then a new syslog channel utilizing the lib_mtdoutstream is added. The channel is enabled for syslog output only when asserting.

This is useful when only a rather small flash can be used to save crash information.

Impact

syslog output when crashing.

Testing

Tested on ESP32C3.

libs/libc/stream/Make.defs Outdated Show resolved Hide resolved
include/nuttx/streams.h Outdated Show resolved Hide resolved
libs/libc/stream/Kconfig Outdated Show resolved Hide resolved
@XinStellaris XinStellaris force-pushed the crash2flash branch 2 times, most recently from 5918654 to e2e7fc3 Compare November 23, 2022 03:25
libs/libc/stream/Make.defs Outdated Show resolved Hide resolved
libs/libc/stream/lib_mtdoutstream.c Outdated Show resolved Hide resolved
libs/libc/stream/lib_mtdoutstream.c Show resolved Hide resolved
libs/libc/stream/lib_mtdoutstream.c Show resolved Hide resolved
libs/libc/stream/lib_mtdoutstream.c Show resolved Hide resolved
libs/libc/stream/lib_mtdoutstream.c Outdated Show resolved Hide resolved
libs/libc/stream/lib_mtdoutstream.c Outdated Show resolved Hide resolved
libs/libc/stream/lib_mtdoutstream.c Outdated Show resolved Hide resolved
libs/libc/stream/lib_mtdoutstream.c Outdated Show resolved Hide resolved
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
@XinStellaris XinStellaris force-pushed the crash2flash branch 2 times, most recently from 5cc130f to 8cec3a5 Compare November 23, 2022 13:30
@XinStellaris
Copy link
Contributor Author

I will move the syslog backend to another pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants