Fix note structure members types
This commit is contained in:
parent
e4b50c4ba0
commit
2b4d2cd4a3
@ -239,14 +239,14 @@ struct note_spinlock_s
|
||||
struct note_syscall_enter_s
|
||||
{
|
||||
struct note_common_s nsc_cmn; /* Common note parameters */
|
||||
int nsc_nr; /* System call number */
|
||||
uint8_t nsc_nr; /* System call number */
|
||||
};
|
||||
|
||||
struct note_syscall_leave_s
|
||||
{
|
||||
struct note_common_s nsc_cmn; /* Common note parameters */
|
||||
uintptr_t nsc_result; /* Result of the system call */
|
||||
int nsc_nr; /* System call number */
|
||||
uint8_t nsc_nr; /* System call number */
|
||||
};
|
||||
#endif /* CONFIG_SCHED_INSTRUMENTATION_SYSCALL */
|
||||
|
||||
@ -256,7 +256,7 @@ struct note_syscall_leave_s
|
||||
struct note_irqhandler_s
|
||||
{
|
||||
struct note_common_s nih_cmn; /* Common note parameters */
|
||||
int nih_irq; /* IRQ number */
|
||||
uint8_t nih_irq; /* IRQ number */
|
||||
};
|
||||
#endif /* CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER */
|
||||
#endif /* CONFIG_SCHED_INSTRUMENTATION_BUFFER */
|
||||
|
@ -585,6 +585,7 @@ void sched_note_syscall_enter(int nr, int argc, ...)
|
||||
|
||||
note_common(tcb, ¬e.nsc_cmn, sizeof(struct note_syscall_enter_s),
|
||||
NOTE_SYSCALL_ENTER);
|
||||
DEBUGASSERT(nr <= UCHAR_MAX);
|
||||
note.nsc_nr = nr;
|
||||
|
||||
/* Add the note to circular buffer */
|
||||
@ -602,6 +603,7 @@ void sched_note_syscall_leave(int nr, uintptr_t result)
|
||||
note_common(tcb, ¬e.nsc_cmn, sizeof(struct note_syscall_leave_s),
|
||||
NOTE_SYSCALL_LEAVE);
|
||||
note.nsc_result = result;
|
||||
DEBUGASSERT(nr <= UCHAR_MAX);
|
||||
note.nsc_nr = nr;
|
||||
|
||||
/* Add the note to circular buffer */
|
||||
@ -620,6 +622,7 @@ void sched_note_irqhandler(int irq, FAR void *handler, bool enter)
|
||||
|
||||
note_common(tcb, ¬e.nih_cmn, sizeof(struct note_irqhandler_s),
|
||||
enter ? NOTE_IRQ_ENTER : NOTE_IRQ_LEAVE);
|
||||
DEBUGASSERT(irq <= UCHAR_MAX);
|
||||
note.nih_irq = irq;
|
||||
|
||||
/* Add the note to circular buffer */
|
||||
|
Loading…
x
Reference in New Issue
Block a user