-
Notifications
You must be signed in to change notification settings - Fork 27
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
log: print capacity of the sidewalk workq #676
base: main
Are you sure you want to change the base?
log: print capacity of the sidewalk workq #676
Conversation
.config diff
|
6ac6d11
to
fcdcd16
Compare
d50a6ad
to
aba0da0
Compare
@@ -68,4 +68,17 @@ void sidewalk_event_link_switch(sidewalk_ctx_t *sid, void *ctx); | |||
void sidewalk_event_exit(sidewalk_ctx_t *sid, void *ctx); | |||
void sidewalk_event_reboot(sidewalk_ctx_t *sid, void *ctx); | |||
void sidewalk_event_platform_init(sidewalk_ctx_t *sid, void *ctx); | |||
|
|||
#define EVENT_TO_NAME(event) \ | |||
event == sidewalk_event_process ? "sidewalk_event_process" : \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: use a shorter prefix e.g. sid_ev
} | ||
case -EAGAIN: | ||
case -ENOMSG: { | ||
// Do nothing, timeout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: LOG_DBG("Sidewalk msgq timeout");
?
if (event.handler) { | ||
event.handler(sid, event.ctx); | ||
} | ||
if (event.ctx_free) { | ||
event.ctx_free(event.ctx); | ||
} | ||
} else { | ||
if (event.handler != sidewalk_event_process) { | ||
sidewalk_event_process(sid, NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this. Most events triggers sid process, and it will be added to msgq anyway. Moreover it adds extra load to queue.
aba0da0
to
caaa1cc
Compare
add logs to track queue usage Signed-off-by: Robert Gałat <[email protected]>
caaa1cc
to
0b331f9
Compare
increase workq size and show usage
CI parameters
Description
JIRA ticket:
Self review