Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
3014 |
6004 d 16 h |
svoboda |
/branches/tracing/kernel/generic/ |
Isolate udebug-related task_t fields into udebug_task_t. |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c /branches/tracing/kernel/generic/src/udebug/udebug_ops.c
|
2902 |
6020 d 16 h |
svoboda |
/branches/tracing/kernel/generic/ |
Implement proper kbox thread shutdown, with all bells and whistles. Use THREAD->debug_active in udebug_stoppable_xx() and friends |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/udebug/udebug.c
|
2899 |
6021 d 4 h |
svoboda |
/branches/tracing/ |
Add support for SET_EVMASK debug operation |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/include/udebug/udebug_ops.h /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c /branches/tracing/kernel/generic/src/udebug/udebug_ops.c /branches/tracing/uspace/app/sctrace/debug_api.c /branches/tracing/uspace/app/sctrace/debug_api.h /branches/tracing/uspace/app/sctrace/sctrace.c
|
2839 |
6050 d 7 h |
svoboda |
/branches/tracing/kernel/generic/ |
Add thread_attach_by_id() and use it to do ipc_connect_kbox() with proper locking |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c
|
2826 |
6054 d 15 h |
svoboda |
/branches/tracing/kernel/generic/ |
Move debug_go_call from task struct to thread struct |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2825 |
6054 d 15 h |
svoboda |
/branches/tracing/kernel/generic/ |
Introduce task debug-states (udebug_task_state_t) |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2808 |
6056 d 5 h |
svoboda |
/branches/tracing/ |
add kernel answerbox+thread to mediate access to task's memory |
|
/branches/tracing/kernel/generic/include/ipc/ipc.h /branches/tracing/kernel/generic/include/ipc/sysipc.h /branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/syscall/syscall.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/ipc/sysipc.c /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/syscall/syscall.c /branches/tracing/uspace/app/tester/debug/debug1.c /branches/tracing/uspace/lib/libc/generic/ipc.c /branches/tracing/uspace/lib/libc/include/ipc/ipc.h
|
2804 |
6057 d 11 h |
svoboda |
/branches/tracing/kernel/generic/ |
allow for attaching to tasks with sleeping threads |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/udebug.h /branches/tracing/kernel/generic/src/ipc/sysipc.c /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/syscall/syscall.c /branches/tracing/kernel/generic/src/udebug/udebug.c
|
2803 |
6057 d 12 h |
svoboda |
/branches/tracing/kernel/generic/src/proc/ |
fix: initialize debug fields in task structure |
|
/branches/tracing/kernel/generic/src/proc/task.c
|
2800 |
6057 d 16 h |
svoboda |
/branches/tracing/kernel/generic/ |
[tracing] fix initialiation of answerbox->task in ipc_answerbox_init |
|
/branches/tracing/kernel/generic/include/ipc/ipc.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/proc/task.c
|
2799 |
6057 d 17 h |
svoboda |
/branches/tracing/ |
Revert all changes in tracing branch (sync to r2785 of trunk) |
|
/branches/tracing/kernel/arch/ia32/include/tdebug.h /branches/tracing/kernel/arch/ia32/src/tdebug.c /branches/tracing/kernel/generic/include/tdebug /branches/tracing/kernel/generic/src/tdebug /branches/tracing/uspace/app/tester/tdebug /branches/tracing/uspace/lib/libc/generic/tdebug.c /branches/tracing/uspace/lib/libc/include/tdebug.h
/branches/tracing/kernel/Makefile /branches/tracing/kernel/arch/ia32/Makefile.inc /branches/tracing/kernel/doc/doxygroups.h /branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/include/syscall/syscall.h /branches/tracing/kernel/generic/src/interrupt/interrupt.c /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/syscall/syscall.c /branches/tracing/uspace/app/tester/Makefile /branches/tracing/uspace/app/tester/ipc/connect.c /branches/tracing/uspace/app/tester/ipc/send_async.c /branches/tracing/uspace/app/tester/ipc/send_sync.c /branches/tracing/uspace/app/tester/tester.c /branches/tracing/uspace/app/tester/tester.h /branches/tracing/uspace/app/tetris/tetris.c /branches/tracing/uspace/lib/libc/Makefile
|
2787 |
6066 d 9 h |
decky |
/branches/tracing/ |
add dynamic linking, debugging and tracing branch |
|
/branches/tracing /branches/tracing/kernel/arch/ia32/include/tdebug.h /branches/tracing/kernel/arch/ia32/src/tdebug.c /branches/tracing/kernel/generic/include/tdebug /branches/tracing/kernel/generic/include/tdebug/systdebug.h /branches/tracing/kernel/generic/include/tdebug/tdebug.h /branches/tracing/kernel/generic/include/tdebug/tdebug_type.h /branches/tracing/kernel/generic/src/tdebug /branches/tracing/kernel/generic/src/tdebug/systdebug.c /branches/tracing/kernel/generic/src/tdebug/tdebug.c /branches/tracing/uspace/app/tester/tdebug /branches/tracing/uspace/app/tester/tdebug/tdebug1.c /branches/tracing/uspace/app/tester/tdebug/tdebug1.def /branches/tracing/uspace/lib/libc/generic/tdebug.c /branches/tracing/uspace/lib/libc/include/tdebug.h
/branches/tracing/kernel/Makefile /branches/tracing/kernel/arch/ia32/Makefile.inc /branches/tracing/kernel/doc/doxygroups.h /branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/proc/tasklet.h /branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/include/syscall/syscall.h /branches/tracing/kernel/generic/src/interrupt/interrupt.c /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/syscall/syscall.c /branches/tracing/uspace/app/tester/Makefile /branches/tracing/uspace/app/tester/tester.h /branches/tracing/uspace/app/tetris/tetris.c /branches/tracing/uspace/lib/libc/Makefile
|
2745 |
6095 d 13 h |
decky |
/trunk/ |
code cleanup (mostly signed/unsigned)
allow extra compiler warnings |
|
/trunk/kernel/Makefile /trunk/kernel/arch/amd64/src/mm/page.c /trunk/kernel/arch/arm32/src/arm32.c /trunk/kernel/arch/arm32/src/cpu/cpu.c /trunk/kernel/arch/arm32/src/debug/print.c /trunk/kernel/arch/ia32xen/src/mm/tlb.c /trunk/kernel/arch/ia32xen/src/smp/mps.c /trunk/kernel/arch/ia32xen/src/smp/smp.c /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/arch/ia64/src/mm/tlb.c /trunk/kernel/arch/mips32/src/cpu/cpu.c /trunk/kernel/arch/mips32/src/debugger.c /trunk/kernel/arch/mips32/src/drivers/arc.c /trunk/kernel/arch/mips32/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/mm/frame.c /trunk/kernel/arch/sparc64/src/mm/page.c /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/smp/ipi.c /trunk/kernel/genarch/src/ofw/ebus.c /trunk/kernel/genarch/src/ofw/fhc.c /trunk/kernel/genarch/src/ofw/ofw_tree.c /trunk/kernel/genarch/src/ofw/pci.c /trunk/kernel/genarch/src/ofw/sbus.c /trunk/kernel/generic/include/lib/elf.h /trunk/kernel/generic/include/mm/as.h /trunk/kernel/generic/include/mm/slab.h /trunk/kernel/generic/src/debug/symtab.c /trunk/kernel/generic/src/interrupt/interrupt.c /trunk/kernel/generic/src/ipc/irq.c /trunk/kernel/generic/src/ipc/sysipc.c /trunk/kernel/generic/src/lib/elf.c /trunk/kernel/generic/src/lib/func.c /trunk/kernel/generic/src/lib/memstr.c /trunk/kernel/generic/src/lib/sort.c /trunk/kernel/generic/src/main/main.c /trunk/kernel/generic/src/mm/as.c /trunk/kernel/generic/src/mm/backend_anon.c /trunk/kernel/generic/src/mm/backend_elf.c /trunk/kernel/generic/src/mm/frame.c /trunk/kernel/generic/src/mm/slab.c /trunk/kernel/generic/src/mm/tlb.c /trunk/kernel/generic/src/printf/printf_core.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/synch/futex.c /trunk/kernel/generic/src/time/clock.c /trunk/kernel/test/avltree/avltree1.c /trunk/kernel/test/fpu/fpu1.c /trunk/kernel/test/fpu/mips2.c /trunk/kernel/test/fpu/sse1.c /trunk/kernel/test/mm/falloc2.c /trunk/kernel/test/synch/rwlock5.c /trunk/kernel/test/test.c /trunk/kernel/test/thread/thread1.c /trunk/uspace/lib/libc/arch/ppc64/src/syscall.c
|
2712 |
6121 d 11 h |
decky |
/trunk/kernel/ |
prettyprint output |
|
/trunk/kernel/arch/amd64/src/debugger.c /trunk/kernel/arch/ia32/src/mm/frame.c /trunk/kernel/generic/include/macros.h /trunk/kernel/generic/src/interrupt/interrupt.c /trunk/kernel/generic/src/mm/frame.c /trunk/kernel/generic/src/printf/printf_core.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/proc/thread.c
|
2632 |
6183 d 0 h |
decky |
/trunk/kernel/generic/src/proc/ |
try to kill the tasks fewer times by introducing a delay in iterations |
|
/trunk/kernel/generic/src/proc/task.c
|
2504 |
6308 d 6 h |
jermar |
/trunk/kernel/generic/ |
Give the AVL tree walkers the possibility to take an argument.
Each walker is now supposed to return a bool value to support walk termination.
Switch over from the tasks_btree B+tree to tasks_tree AVL tree.
This makes the fix for ticket #48 complete. |
|
/trunk/kernel/generic/include/adt/avl.h /trunk/kernel/generic/include/proc/task.h /trunk/kernel/generic/src/adt/avl.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/proc/thread.c
|
2446 |
6366 d 9 h |
jermar |
/trunk/kernel/generic/ |
More efficient and simpler task termination.
Based on the assumption, that after its creation, only the task itself can create more threads for itself,
the last thread with userspace context to execute thread_exit() will perform futex and IPC cleanup. When
the task has no threads, it is destroyed. Both the cleanup and destruction is controlled by reference
counting.
As for userspace threads, even though there could be a global garbage collector for joining threads, it is
much simpler if the uinit thread detaches itself before switching to userspace.
task_kill() is now an idempotent operation. It just instructs the threads within a task to exit.
Change in the name of a thread state: Undead -> JoinMe. |
|
/trunk/kernel/generic/include/adt/list.h /trunk/kernel/generic/include/proc/task.h /trunk/kernel/generic/include/proc/thread.h /trunk/kernel/generic/src/main/uinit.c /trunk/kernel/generic/src/proc/scheduler.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/proc/thread.c
|
2436 |
6368 d 5 h |
jermar |
/trunk/ |
Fix two memory leaks.
In kernel, kernel_uarg structure needs to be deallocated when a thread
with userspace context is destroyed.
In userspace, the return value of the SYS_THREAD_CREATE must be checked
for error conditions and in case of error, uarg and stack must be freed
up. |
|
/trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/proc/thread.c /trunk/uspace/libc/generic/thread.c
|
2227 |
6419 d 19 h |
decky |
/trunk/kernel/ |
start shutdown infrastructure |
|
/trunk/kernel/generic/src/main/shutdown.c
/trunk/kernel/Makefile /trunk/kernel/arch/amd64/src/pm.c /trunk/kernel/arch/arm32/src/arm32.c /trunk/kernel/arch/ia32/src/pm.c /trunk/kernel/arch/ia32xen/src/ia32xen.c /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/arch/mips32/src/mips32.c /trunk/kernel/arch/ppc32/src/drivers/cuda.c /trunk/kernel/arch/ppc64/src/ppc64.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/generic/include/arch.h /trunk/kernel/generic/include/proc/task.h /trunk/kernel/generic/src/console/cmd.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/kernel.config
|
2216 |
6421 d 5 h |
decky |
/trunk/ |
make thread ID 64 bit (task ID is 64 bit already)
cleanup thread syscalls |
|
/trunk/kernel/arch/amd64/include/types.h /trunk/kernel/arch/arm32/include/types.h /trunk/kernel/arch/ia32/include/types.h /trunk/kernel/arch/ia32xen/include/types.h /trunk/kernel/arch/ia64/include/types.h /trunk/kernel/arch/mips32/include/types.h /trunk/kernel/arch/ppc32/include/types.h /trunk/kernel/arch/ppc64/include/types.h /trunk/kernel/arch/sparc64/include/types.h /trunk/kernel/generic/include/interrupt.h /trunk/kernel/generic/include/proc/task.h /trunk/kernel/generic/include/proc/thread.h /trunk/kernel/generic/src/adt/btree.c /trunk/kernel/generic/src/console/cmd.c /trunk/kernel/generic/src/ipc/ipc.c /trunk/kernel/generic/src/proc/scheduler.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/proc/thread.c /trunk/kernel/generic/src/syscall/syscall.c /trunk/kernel/test/fpu/fpu1.c /trunk/kernel/test/fpu/mips2.c /trunk/kernel/test/fpu/sse1.c /trunk/kernel/test/mm/falloc2.c /trunk/kernel/test/mm/slab1.c /trunk/kernel/test/mm/slab2.c /trunk/kernel/test/synch/rwlock3.c /trunk/kernel/test/synch/rwlock4.c /trunk/kernel/test/synch/semaphore2.c /trunk/kernel/test/thread/thread1.c /trunk/uspace/libc/generic/thread.c /trunk/uspace/libc/include/thread.h /trunk/uspace/tester/thread/thread1.c
|