You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/06/25 08:30:08 UTC
[incubator-nuttx] 02/03: Fix note type id for syscall enter/leave
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch feature/syscall-instrumentation
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit bb4255f980efb7239eabc5e632ded2b743b50e9c
Author: Nakamura, Yuuichi <Yu...@sony.com>
AuthorDate: Thu Jun 18 14:24:10 2020 +0900
Fix note type id for syscall enter/leave
---
sched/sched/sched_note.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sched/sched/sched_note.c b/sched/sched/sched_note.c
index c952ca8..3d9748d 100644
--- a/sched/sched/sched_note.c
+++ b/sched/sched/sched_note.c
@@ -584,7 +584,7 @@ void sched_note_syscall_enter(int nr, int argc, ...)
/* Format the note */
note_common(tcb, ¬e.nsc_cmn, sizeof(struct note_syscall_enter_s),
- NOTE_CSECTION_ENTER);
+ NOTE_SYSCALL_ENTER);
note.nsc_nr = nr;
/* Add the note to circular buffer */
@@ -600,7 +600,7 @@ void sched_note_syscall_leave(int nr, uintptr_t result)
/* Format the note */
note_common(tcb, ¬e.nsc_cmn, sizeof(struct note_syscall_leave_s),
- NOTE_CSECTION_LEAVE);
+ NOTE_SYSCALL_LEAVE);
note.nsc_result = result;
note.nsc_nr = nr;