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

register notelog device #7981

Merged
merged 2 commits into from Dec 30, 2022
Merged

register notelog device #7981

merged 2 commits into from Dec 30, 2022

Conversation

Gary-Hobson
Copy link
Contributor

@Gary-Hobson Gary-Hobson commented Dec 26, 2022

Summary

Register notelog to the list of note drivers

Impact

still only one note driver can be used
multi-channel functionality needs to wait for sysview changes to complete

patch 1 removes syscall_enter/leave in notelog, because syslog is a system call, which causes recursion.
patch 2 turns the original notelog function into a function pointer call to support simultaneous use with noteram/sysview

Testing

sim:note

@Gary-Hobson Gary-Hobson marked this pull request as draft December 27, 2022 03:41
@Gary-Hobson Gary-Hobson marked this pull request as ready for review December 27, 2022 08:25
drivers/note/notelog_driver.c Show resolved Hide resolved
include/nuttx/note/note_driver.h Outdated Show resolved Hide resolved
drivers/note/notelog_driver.c Outdated Show resolved Hide resolved
drivers/note/notelog_driver.c Show resolved Hide resolved
syslog is a system call, which will cause recursion after turning on SCHED_INSTRUMENTATION_SYSCALL

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 64b6df4 into apache:master Dec 30, 2022
@jerpelea jerpelea added this to To-Add in Release Notes - 12.1.0 Apr 3, 2023
@jerpelea jerpelea moved this from To-Add to Added in Release Notes - 12.1.0 Apr 4, 2023
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