mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 08:26:59 +08:00
0
rtemsbsd/include/rtems/bsd/local/opt_alq.h
Normal file
0
rtemsbsd/include/rtems/bsd/local/opt_alq.h
Normal file
0
rtemsbsd/include/rtems/bsd/local/opt_ktr.h
Normal file
0
rtemsbsd/include/rtems/bsd/local/opt_ktr.h
Normal file
@@ -44,6 +44,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/ktr.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/mutex.h>
|
||||
@@ -187,5 +188,11 @@ rtems_bsd_initialize(void)
|
||||
mutex_init();
|
||||
mi_startup();
|
||||
|
||||
#ifdef KTR
|
||||
ktr_verbose = 10;
|
||||
ktr_mask = KTR_ALL;
|
||||
ktr_mask = KTR_GEN | KTR_LOCK | KTR_VFS | KTR_VOP | KTR_BUF | KTR_MALLOC | KTR_SYSC | KTR_RUNQ;
|
||||
#endif
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
@@ -260,6 +260,9 @@ rtems_bsd_thread_start(struct thread **td_ptr, void (*func)(void *), void *arg,
|
||||
BSD_ASSERT(td != NULL);
|
||||
|
||||
_Thread_Set_name(thread, name);
|
||||
#ifdef KTR
|
||||
strlcpy(td->td_name, name, sizeof(td->td_name));
|
||||
#endif
|
||||
|
||||
if (rtems_bsd_thread_ready_to_start) {
|
||||
sc = rtems_task_start(task_id, (rtems_task_entry) func,
|
||||
|
Reference in New Issue
Block a user