This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit da9171e5dbec5e6d0973bd0878dd1a6303471907 Author: huojianchao <[email protected]> AuthorDate: Tue Jun 23 11:24:32 2026 +0800 sched/note: split composite hook macros into per-type entries Split sched_note hooks that take a runtime type/event parameter into separate per-type macros with compile-time constant type. This prepares for static key replacement where each branch site needs a fixed key address. - irqhandler(i,h,e) -> irq_enter(i,h) + irq_leave(i,h) - preemption(t,l) -> preempt_lock(t) + preempt_unlock(t) - csection(t,e) -> csection_enter(t) + csection_leave(t) - spinlock(s,type) -> spinlock_lock/locked/unlock/abort(s) - wdog(e,h,a) -> wdog_start/cancel/enter/leave(h,a) - wqueue(e,w,a) -> wqueue_start/cancel/enter/leave(w,a) - heap(e,h,m,s,c) -> heap_add/remove/alloc/free(h,m,s,c) Old composite macros are removed; callers use new specific macros. Assisted-By: mimo-v2.6-pro Co-authored-by: ouyangxiangzhen <[email protected]> Signed-off-by: huojianchao <[email protected]> Signed-off-by: ouyangxiangzhen <[email protected]> --- arch/sim/src/sim/sim_ummheap.c | 14 ++++---- drivers/note/note_driver.c | 74 ++++++++++++++++++++++++++++++++++++++++++ include/nuttx/sched_note.h | 43 +++++++++++++++++------- mm/mm_heap/mm_free.c | 2 +- mm/mm_heap/mm_initialize.c | 11 ++++--- mm/mm_heap/mm_malloc.c | 4 +-- mm/mm_heap/mm_memalign.c | 4 +-- mm/mm_heap/mm_realloc.c | 8 ++--- mm/tlsf/mm_tlsf.c | 29 +++++++++-------- sched/irq/irq_csection.c | 4 +-- sched/irq/irq_dispatch.c | 4 +-- sched/sched/sched_lock.c | 2 +- sched/sched/sched_unlock.c | 2 +- sched/wdog/wd_cancel.c | 4 +-- sched/wdog/wd_start.c | 12 +++---- 15 files changed, 157 insertions(+), 60 deletions(-) diff --git a/arch/sim/src/sim/sim_ummheap.c b/arch/sim/src/sim/sim_ummheap.c index 1a1e12849f4..191055d4511 100644 --- a/arch/sim/src/sim/sim_ummheap.c +++ b/arch/sim/src/sim/sim_ummheap.c @@ -332,7 +332,7 @@ static void forcefree(struct mm_heap_s *heap, void *mem) node->size - MM_ALLOCNODE_SIZE - node->padding); #endif update_stats(heap, mem, node->size, false); - sched_note_heap(NOTE_HEAP_FREE, heap, mem, node->size, 0); + sched_note_heap_free(heap, mem, node->size, 0); host_free(node->allocmem); } @@ -439,7 +439,7 @@ static void *reallocate(void *oldmem, size_t alignment, size_t size) memset(mem, MM_ALLOC_MAGIC, aligned_size - MM_ALLOCNODE_SIZE - padding_size); #endif - sched_note_heap(NOTE_HEAP_ALLOC, g_mmheap, mem, aligned_size, 0); + sched_note_heap_alloc(g_mmheap, mem, aligned_size, 0); return mem; } @@ -487,11 +487,11 @@ static void *reallocate(void *oldmem, size_t alignment, size_t size) } #endif - sched_note_heap(NOTE_HEAP_ALLOC, g_mmheap, mem, aligned_size, 0); + sched_note_heap_alloc(g_mmheap, mem, aligned_size, 0); return oldmem; } - sched_note_heap(NOTE_HEAP_FREE, g_mmheap, oldmem, old_size, 0); + sched_note_heap_free(g_mmheap, oldmem, old_size, 0); mem = init_allocnode(g_mmheap, new_alloc_addr, aligned_size, padding_size); #ifdef CONFIG_MM_FILL_ALLOCATIONS if (aligned_size > old_size) @@ -501,7 +501,7 @@ static void *reallocate(void *oldmem, size_t alignment, size_t size) } #endif - sched_note_heap(NOTE_HEAP_ALLOC, g_mmheap, mem, aligned_size, 0); + sched_note_heap_alloc(g_mmheap, mem, aligned_size, 0); return mem; } @@ -872,7 +872,7 @@ void up_allocate_heap(void **heap_start, size_t *heap_size) void umm_initialize(void *heap_start, size_t heap_size) { - sched_note_heap(NOTE_HEAP_ADD, g_mmheap, heap_start, heap_size, 0); + sched_note_heap_add(g_mmheap, heap_start, heap_size, 0); UNUSED(heap_start); UNUSED(heap_size); @@ -896,4 +896,4 @@ void up_allocate_heap(void **heap_start, size_t *heap_size) *heap_size = SIM_HEAP_SIZE; } -#endif /* CONFIG_MM_UMM_CUSTOMIZE_MANAGER */ +#endif /* CONFIG_MM_UMM_CUSTOMIZE_MANAGER */ \ No newline at end of file diff --git a/drivers/note/note_driver.c b/drivers/note/note_driver.c index 6263cd24fd8..919926a6fde 100644 --- a/drivers/note/note_driver.c +++ b/drivers/note/note_driver.c @@ -1116,6 +1116,16 @@ void sched_note_preemption(FAR struct tcb_s *tcb, bool locked) spin_unlock_irqrestore_notrace(&g_note_lock, flags); } + +void sched_note_preempt_lock(FAR struct tcb_s *tcb) +{ + sched_note_preemption(tcb, true); +} + +void sched_note_preempt_unlock(FAR struct tcb_s *tcb) +{ + sched_note_preemption(tcb, false); +} #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION @@ -1159,6 +1169,16 @@ void sched_note_csection(FAR struct tcb_s *tcb, bool enter) note_add(*driver, ¬e, note.ncs_cmn.nc_length); } } + +void sched_note_csection_enter(FAR struct tcb_s *tcb) +{ + sched_note_csection(tcb, true); +} + +void sched_note_csection_leave(FAR struct tcb_s *tcb) +{ + sched_note_csection(tcb, false); +} #endif /**************************************************************************** @@ -1416,6 +1436,16 @@ void sched_note_irqhandler(int irq, FAR void *handler, bool enter) note_add(*driver, ¬e, note.nih_cmn.nc_length); } } + +void sched_note_irq_enter(int irq, FAR void *handler) +{ + sched_note_irqhandler(irq, handler, true); +} + +void sched_note_irq_leave(int irq, FAR void *handler) +{ + sched_note_irqhandler(irq, handler, false); +} #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_WDOG @@ -1455,6 +1485,26 @@ void sched_note_wdog(uint8_t event, FAR void *handler, FAR const void *arg) leave_critical_section_notrace(flags); } + +void sched_note_wdog_start(FAR void *handler, FAR const void *arg) +{ + sched_note_wdog(NOTE_WDOG_START, handler, arg); +} + +void sched_note_wdog_cancel(FAR void *handler, FAR const void *arg) +{ + sched_note_wdog(NOTE_WDOG_CANCEL, handler, arg); +} + +void sched_note_wdog_enter(FAR void *handler, FAR const void *arg) +{ + sched_note_wdog(NOTE_WDOG_ENTER, handler, arg); +} + +void sched_note_wdog_leave(FAR void *handler, FAR const void *arg) +{ + sched_note_wdog(NOTE_WDOG_LEAVE, handler, arg); +} #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_HEAP @@ -1498,6 +1548,30 @@ void sched_note_heap(uint8_t event, FAR void *heap, FAR void *mem, note_add(*driver, ¬e, note.nhp_cmn.nc_length); } } + +void sched_note_heap_add(FAR void *heap, FAR void *mem, + size_t size, size_t used) +{ + sched_note_heap(NOTE_HEAP_ADD, heap, mem, size, used); +} + +void sched_note_heap_remove(FAR void *heap, FAR void *mem, + size_t size, size_t used) +{ + sched_note_heap(NOTE_HEAP_REMOVE, heap, mem, size, used); +} + +void sched_note_heap_alloc(FAR void *heap, FAR void *mem, + size_t size, size_t used) +{ + sched_note_heap(NOTE_HEAP_ALLOC, heap, mem, size, used); +} + +void sched_note_heap_free(FAR void *heap, FAR void *mem, + size_t size, size_t used) +{ + sched_note_heap(NOTE_HEAP_FREE, heap, mem, size, used); +} #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_DUMP diff --git a/include/nuttx/sched_note.h b/include/nuttx/sched_note.h index 51502b8a892..65d2a65f7da 100644 --- a/include/nuttx/sched_note.h +++ b/include/nuttx/sched_note.h @@ -655,15 +655,19 @@ void sched_note_cpu_resumed(FAR struct tcb_s *tcb); #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION -void sched_note_preemption(FAR struct tcb_s *tcb, bool locked); +void sched_note_preempt_lock(FAR struct tcb_s *tcb); +void sched_note_preempt_unlock(FAR struct tcb_s *tcb); #else -# define sched_note_preemption(t,l) +# define sched_note_preempt_lock(t) +# define sched_note_preempt_unlock(t) #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION -void sched_note_csection(FAR struct tcb_s *tcb, bool enter); +void sched_note_csection_enter(FAR struct tcb_s *tcb); +void sched_note_csection_leave(FAR struct tcb_s *tcb); #else -# define sched_note_csection(t,e) +# define sched_note_csection_enter(t) +# define sched_note_csection_leave(t) #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_SPINLOCKS @@ -683,22 +687,39 @@ void sched_note_syscall_leave(int nr, uintptr_t result); #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER -void sched_note_irqhandler(int irq, FAR void *handler, bool enter); +void sched_note_irq_enter(int irq, FAR void *handler); +void sched_note_irq_leave(int irq, FAR void *handler); #else -# define sched_note_irqhandler(i,h,e) +# define sched_note_irq_enter(i,h) +# define sched_note_irq_leave(i,h) #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_WDOG -void sched_note_wdog(uint8_t event, FAR void *handler, FAR const void *arg); +void sched_note_wdog_start(FAR void *handler, FAR const void *arg); +void sched_note_wdog_cancel(FAR void *handler, FAR const void *arg); +void sched_note_wdog_enter(FAR void *handler, FAR const void *arg); +void sched_note_wdog_leave(FAR void *handler, FAR const void *arg); #else -# define sched_note_wdog(e,h,a) +# define sched_note_wdog_start(h,a) +# define sched_note_wdog_cancel(h,a) +# define sched_note_wdog_enter(h,a) +# define sched_note_wdog_leave(h,a) #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_HEAP -void sched_note_heap(uint8_t event, FAR void *heap, FAR void *mem, - size_t size, size_t used); +void sched_note_heap_add(FAR void *heap, FAR void *mem, + size_t size, size_t used); +void sched_note_heap_remove(FAR void *heap, FAR void *mem, + size_t size, size_t used); +void sched_note_heap_alloc(FAR void *heap, FAR void *mem, + size_t size, size_t used); +void sched_note_heap_free(FAR void *heap, FAR void *mem, + size_t size, size_t used); #else -# define sched_note_heap(e,h,m,s,c) +# define sched_note_heap_add(h,m,s,c) +# define sched_note_heap_remove(h,m,s,c) +# define sched_note_heap_alloc(h,m,s,c) +# define sched_note_heap_free(h,m,s,c) #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_DUMP diff --git a/mm/mm_heap/mm_free.c b/mm/mm_heap/mm_free.c index b0e56f03a90..e99f526218a 100644 --- a/mm/mm_heap/mm_free.c +++ b/mm/mm_heap/mm_free.c @@ -156,7 +156,7 @@ void mm_forcefree(FAR struct mm_heap_s *heap, FAR void *mem) /* Update heap statistics */ heap->mm_curused -= nodesize; - sched_note_heap(NOTE_HEAP_FREE, heap, mem, nodesize, heap->mm_curused); + sched_note_heap_free(heap, mem, nodesize, heap->mm_curused); /* Check if the following node is free and, if so, merge it */ diff --git a/mm/mm_heap/mm_initialize.c b/mm/mm_heap/mm_initialize.c index 4ad841c0109..6e4e602eff3 100644 --- a/mm/mm_heap/mm_initialize.c +++ b/mm/mm_heap/mm_initialize.c @@ -228,8 +228,8 @@ void mm_addregion(FAR struct mm_heap_s *heap, FAR void *heapstart, mm_addfreechunk(heap, node); heap->mm_curused += 2 * MM_SIZEOF_ALLOCNODE; - sched_note_heap(NOTE_HEAP_ADD, heap, heapstart, heapsize, - heap->mm_curused); + sched_note_heap_add(heap, heapstart, heapsize, + heap->mm_curused); kasan_bypass(false); mm_unlock(heap); @@ -416,9 +416,10 @@ void mm_uninitialize(FAR struct mm_heap_s *heap) kasan_unregister(heap->mm_heapstart[i]); } - sched_note_heap(NOTE_HEAP_REMOVE, heap, heap->mm_heapstart[i], - (uintptr_t)heap->mm_heapend[i] - - (uintptr_t)heap->mm_heapstart[i], heap->mm_curused); + sched_note_heap_remove(heap, heap->mm_heapstart[i], + (uintptr_t)heap->mm_heapend[i] - + (uintptr_t)heap->mm_heapstart[i], + heap->mm_curused); } #if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMINFO) diff --git a/mm/mm_heap/mm_malloc.c b/mm/mm_heap/mm_malloc.c index 3bcb3d6f878..203229ecba4 100644 --- a/mm/mm_heap/mm_malloc.c +++ b/mm/mm_heap/mm_malloc.c @@ -325,8 +325,8 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size) if (ret) { - sched_note_heap(NOTE_HEAP_ALLOC, heap, ret, nodesize, - heap->mm_curused); + sched_note_heap_alloc(heap, ret, nodesize, + heap->mm_curused); } kasan_bypass(false); diff --git a/mm/mm_heap/mm_memalign.c b/mm/mm_heap/mm_memalign.c index f5ed76b1801..f11297b8e1e 100644 --- a/mm/mm_heap/mm_memalign.c +++ b/mm/mm_heap/mm_memalign.c @@ -289,8 +289,8 @@ FAR void *mm_memalign(FAR struct mm_heap_s *heap, size_t alignment, heap->mm_maxused = heap->mm_curused; } - sched_note_heap(NOTE_HEAP_ALLOC, heap, (FAR void *)alignedchunk, size, - heap->mm_curused); + sched_note_heap_alloc(heap, (FAR void *)alignedchunk, size, + heap->mm_curused); kasan_bypass(false); mm_unlock(heap); diff --git a/mm/mm_heap/mm_realloc.c b/mm/mm_heap/mm_realloc.c index 9317138cb9a..9a92a3a3bb6 100644 --- a/mm/mm_heap/mm_realloc.c +++ b/mm/mm_heap/mm_realloc.c @@ -387,10 +387,10 @@ FAR void *mm_realloc(FAR struct mm_heap_s *heap, FAR void *oldmem, heap->mm_maxused = heap->mm_curused; } - sched_note_heap(NOTE_HEAP_FREE, heap, oldmem, oldsize, - heap->mm_curused - newsize); - sched_note_heap(NOTE_HEAP_ALLOC, heap, newmem, newsize, - heap->mm_curused); + sched_note_heap_free(heap, oldmem, oldsize, + heap->mm_curused - newsize); + sched_note_heap_alloc(heap, newmem, newsize, + heap->mm_curused); size = MM_SIZEOF_NODE(oldnode); diff --git a/mm/tlsf/mm_tlsf.c b/mm/tlsf/mm_tlsf.c index 854ad31aad9..4b5a5d9614f 100644 --- a/mm/tlsf/mm_tlsf.c +++ b/mm/tlsf/mm_tlsf.c @@ -461,7 +461,7 @@ static void forcefree(FAR struct mm_heap_s *heap, FAR void *mem) /* Update heap statistics */ heap->mm_curused -= size; - sched_note_heap(NOTE_HEAP_FREE, heap, mem, size, heap->mm_curused); + sched_note_heap_free(heap, mem, size, heap->mm_curused); tlsf_free(heap->mm_tlsf, mem); mm_unlock(heap); } @@ -806,8 +806,8 @@ void mm_addregion(FAR struct mm_heap_s *heap, FAR void *heapstart, /* Add memory to the tlsf pool */ tlsf_add_pool(heap->mm_tlsf, heapstart, heapsize); - sched_note_heap(NOTE_HEAP_ADD, heap, heapstart, heapsize, - heap->mm_curused); + sched_note_heap_add(heap, heapstart, heapsize, + heap->mm_curused); mm_unlock(heap); } @@ -1524,8 +1524,8 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size) if (ret) { - sched_note_heap(NOTE_HEAP_ALLOC, heap, ret, nodesize, - heap->mm_curused); + sched_note_heap_alloc(heap, ret, nodesize, + heap->mm_curused); } mm_unlock(heap); @@ -1619,8 +1619,8 @@ FAR void *mm_memalign(FAR struct mm_heap_s *heap, size_t alignment, if (ret) { - sched_note_heap(NOTE_HEAP_ALLOC, heap, ret, nodesize, - heap->mm_curused); + sched_note_heap_alloc(heap, ret, nodesize, + heap->mm_curused); } mm_unlock(heap); @@ -1755,10 +1755,10 @@ FAR void *mm_realloc(FAR struct mm_heap_s *heap, FAR void *oldmem, if (newmem) { - sched_note_heap(NOTE_HEAP_FREE, heap, oldmem, oldsize, - heap->mm_curused - newsize); - sched_note_heap(NOTE_HEAP_ALLOC, heap, newmem, newsize, - heap->mm_curused); + sched_note_heap_free(heap, oldmem, oldsize, + heap->mm_curused - newsize); + sched_note_heap_alloc(heap, newmem, newsize, + heap->mm_curused); } mm_unlock(heap); @@ -1816,9 +1816,10 @@ void mm_uninitialize(FAR struct mm_heap_s *heap) kasan_unregister(heap->mm_heapstart[i]); } - sched_note_heap(NOTE_HEAP_REMOVE, heap, heap->mm_heapstart[i], - (uintptr_t)heap->mm_heapend[i] - - (uintptr_t)heap->mm_heapstart[i], heap->mm_curused); + sched_note_heap_remove(heap, heap->mm_heapstart[i], + (uintptr_t)heap->mm_heapend[i] - + (uintptr_t)heap->mm_heapstart[i], + heap->mm_curused); } #if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMINFO) diff --git a/sched/irq/irq_csection.c b/sched/irq/irq_csection.c index 607069bf2e0..781e992ff3e 100644 --- a/sched/irq/irq_csection.c +++ b/sched/irq/irq_csection.c @@ -311,7 +311,7 @@ irqstate_t enter_critical_section(void) if (rtcb->irqcount == 1) { #ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION - sched_note_csection(rtcb, true); + sched_note_csection_enter(rtcb); #endif } } @@ -469,7 +469,7 @@ void leave_critical_section(irqstate_t flags) if (rtcb->irqcount == 1) { # ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION - sched_note_csection(rtcb, false); + sched_note_csection_leave(rtcb); # endif } } diff --git a/sched/irq/irq_dispatch.c b/sched/irq/irq_dispatch.c index 5d5acf126ce..aad4266ee45 100644 --- a/sched/irq/irq_dispatch.c +++ b/sched/irq/irq_dispatch.c @@ -135,7 +135,7 @@ void irq_dispatch(int irq, FAR void *context) #ifdef CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER /* Notify that we are entering into the interrupt handler */ - sched_note_irqhandler(irq, vector, true); + sched_note_irq_enter(irq, vector); #endif /* Then dispatch to the interrupt handler */ @@ -146,7 +146,7 @@ void irq_dispatch(int irq, FAR void *context) #ifdef CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER /* Notify that we are leaving from the interrupt handler */ - sched_note_irqhandler(irq, vector, false); + sched_note_irq_leave(irq, vector); #endif #ifdef CONFIG_DEBUG_MM diff --git a/sched/sched/sched_lock.c b/sched/sched/sched_lock.c index d82adea537e..d53fab16816 100644 --- a/sched/sched/sched_lock.c +++ b/sched/sched/sched_lock.c @@ -91,7 +91,7 @@ void sched_lock(void) /* Note that we have pre-emption locked */ nxsched_critmon_preemption(rtcb, true, return_address(0)); - sched_note_preemption(rtcb, true); + sched_note_preempt_lock(rtcb); leave_critical_section_notrace(flags); #endif } diff --git a/sched/sched/sched_unlock.c b/sched/sched/sched_unlock.c index 13317587a22..1f4775b21b7 100644 --- a/sched/sched/sched_unlock.c +++ b/sched/sched/sched_unlock.c @@ -80,7 +80,7 @@ void sched_unlock(void) /* Note that we no longer have pre-emption disabled. */ nxsched_critmon_preemption(rtcb, false, return_address(0)); - sched_note_preemption(rtcb, false); + sched_note_preempt_unlock(rtcb); /* Release any ready-to-run tasks that have collected in * g_pendingtasks (or in g_readytorun for SMP) diff --git a/sched/wdog/wd_cancel.c b/sched/wdog/wd_cancel.c index 1a8202e403b..5d4cbd7c339 100644 --- a/sched/wdog/wd_cancel.c +++ b/sched/wdog/wd_cancel.c @@ -107,8 +107,8 @@ int wd_cancel(FAR struct wdog_s *wdog) } leave_critical_section(flags); - sched_note_wdog(NOTE_WDOG_CANCEL, (FAR void *)wdog->func, - (FAR void *)(uintptr_t)wdog->expired); + sched_note_wdog_cancel((FAR void *)wdog->func, + (FAR void *)(uintptr_t)wdog->expired); } return ret; diff --git a/sched/wdog/wd_start.c b/sched/wdog/wd_start.c index 302d8d787cb..7cb3e8e0481 100644 --- a/sched/wdog/wd_start.c +++ b/sched/wdog/wd_start.c @@ -57,11 +57,11 @@ { \ clock_t start; \ clock_t elapsed; \ - sched_note_wdog(NOTE_WDOG_ENTER, func, (FAR void *)arg); \ + sched_note_wdog_enter(func, (FAR void *)arg); \ start = perf_gettime(); \ func(arg); \ elapsed = perf_gettime() - start; \ - sched_note_wdog(NOTE_WDOG_LEAVE, func, (FAR void *)arg); \ + sched_note_wdog_leave(func, (FAR void *)arg); \ if (elapsed > CONFIG_SCHED_CRITMONITOR_MAXTIME_WDOG) \ { \ CRITMONITOR_PANIC("WDOG %p, %s IRQ, execute too long %ju\n", \ @@ -74,9 +74,9 @@ # define CALL_FUNC(func, arg) \ do \ { \ - sched_note_wdog(NOTE_WDOG_ENTER, func, (FAR void *)arg); \ + sched_note_wdog_enter(func, (FAR void *)arg); \ func(arg); \ - sched_note_wdog(NOTE_WDOG_LEAVE, func, (FAR void *)arg); \ + sched_note_wdog_leave(func, (FAR void *)arg); \ } \ while (0) @@ -347,8 +347,8 @@ int wd_start_abstick(FAR struct wdog_s *wdog, clock_t ticks, wd_insert(wdog, ticks, wdentry, arg); #endif leave_critical_section(flags); - sched_note_wdog(NOTE_WDOG_START, wdentry, - (FAR void *)(uintptr_t)ticks); + sched_note_wdog_start(wdentry, + (FAR void *)(uintptr_t)ticks); ret = OK; }
