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

[DAT] Debug Analyser Tool #5341

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
System debug enhancements
This patch
1) Adds context switch reasoning to the task scheduling history
2) Removes unnecessary parameters from the sched_history_s and
   irq_history_s structures
3) Modifies semaphore history list to display the task status
   semaphore wise with latest timestamp.
4) Removed duplication in either task/sempahore/irq lists
5) Adds a sorted combined list of task and irq scheduling histories

Signed-off-by: Vidisha Thapa <[email protected]>
  • Loading branch information
thapav committed Jul 29, 2022
commit c9a37408aead1b84a46d9c80cb0cdd2d274ef078
5 changes: 2 additions & 3 deletions os/include/tinyara/debug/sysdbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,14 @@ struct sched_history_s {
#endif
pid_t pid;
uint8_t sched_priority;
struct tcb_s *ptcb;
uint8_t context_switch_reason;
};

typedef struct sched_history_s sched_history_t;

struct irq_history_s {
clock_t time;
uint32_t irq;
void *fn;
};

typedef struct irq_history_s irq_history_t;
Expand Down Expand Up @@ -118,7 +117,7 @@ struct sysdbg_s {
typedef struct sysdbg_s sysdbg_t;

extern void save_task_scheduling_status(struct tcb_s *tcb);
extern void save_irq_scheduling_status(uint32_t irq, void *fn);
extern void save_irq_scheduling_status(uint32_t irq);
extern void save_semaphore_history(FAR sem_t *sem, void *addr, sem_status_t status);

#undef EXTERN
Expand Down
Loading