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

[TW#25595] Suggestion: Task watchdog to log timestamp since boot #2270

Closed
nkolban opened this issue Aug 5, 2018 · 0 comments
Closed

[TW#25595] Suggestion: Task watchdog to log timestamp since boot #2270

nkolban opened this issue Aug 5, 2018 · 0 comments

Comments

@nkolban
Copy link
Contributor

nkolban commented Aug 5, 2018

This is a suggestion issue for discussion and/or potential enhancement.

While looking at the logging messages from the task watchdog (here are a few):

Task watchdog got triggered. The following tasks did not reset the watchdog in time:
 - IDLE (CPU 0)
 - My Task (CPU 0/1)
Tasks currently running:
CPU 0: Hard Loop
Task watchdog got triggered. The following tasks did not reset the watchdog in time:
 - IDLE (CPU 0)
 - My Task (CPU 0/1)
Tasks currently running:
CPU 0: Hard Loop
Task watchdog got triggered. The following tasks did not reset the watchdog in time:
 - IDLE (CPU 0)
 - My Task (CPU 0/1)
Tasks currently running:
CPU 0: Hard Loop

It suddenly dawned on me that we aren't logging the time of detection. Thinking this through, if I am diagnosing a puzzle, it may be useful to be able to correlate watchdog events being logged with the time that those events are detected. I realize we might not know wall clock times but even seeing that watchdogs are firing for a period of 1 minute every 30 minutes might be useful information during diagnosis. If it would be possible, might we consider adding a timestamp to the watchdog emission messages? Perhaps we could expose a user customizable function that is called when a watchdog event occurs where we could log our own custom state and messages?

@FayeY FayeY changed the title Suggestion: Task watchdog to log timestamp since boot [TW#25595] Suggestion: Task watchdog to log timestamp since boot Aug 20, 2018
@igrr igrr closed this as completed in 4fc8430 Sep 11, 2018
igrr pushed a commit that referenced this issue Sep 11, 2018
catalinio pushed a commit to catalinio/pycom-esp-idf that referenced this issue Jun 28, 2019
Added esp_task_wdt_isr_user_handler function to receive twdt events in
the user code.

Closes espressif/esp-idf#2270
catalinio pushed a commit to catalinio/pycom-esp-idf that referenced this issue Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant