More Patches!
risc-a6VBIPemKmirG/[email protected] Mon, 7 May 2007 13:53:38 -0500
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
--/NkBOFFp2J2Af1nK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline this is another set, like the last one. recieved some appropriate criticism reguarding the insertion of a bug. oops. other than that, whitespace cleanup, thats about it. again, this applies to R19 of the SVN, and the only changes it should make behavior wise are to allow the recent ptrace work to apply cleanly. Julia Longtin <risc-a6VBIPemKmirG/[email protected]> --/NkBOFFp2J2Af1nK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="01-ptrace-attach-support_-_cleanup_dead_code.patch" --- ../anonsvn/openmosix/trunk/2.6/kernel/2.6.17/openmosix/ptrace-attach-support.patch 2007-03-08 21:17:35.000000000 +0000 +++ openmosix/trunk/2.6/kernel/2.6.17/openmosix/ptrace-attach-support.patch 2007-04-26 21:53:09.000000000 +0000 @@ -278,7 +278,7 @@ =================================================================== --- linux.orig/include/hpc/protocol.h 2007-01-05 14:54:20.000000000 +0100 +++ linux/include/hpc/protocol.h 2007-01-09 19:30:19.000000000 +0100 -@@ -110,6 +110,12 @@ +@@ -110,6 +110,14 @@ KCOM_L1_MIG_INIT, /* Send to initiate the migration */ KCOM_L1_MIG_COME_HOME, /* Ask the task to go home */ KCOM_L1_DEP_SIGNAL, /* Deputy send a signal to remote */ @@ -287,6 +287,8 @@ + + KCOM_L1_PTRACE_ATTACH, /* Notify the remote its attached */ + KCOM_L1_PTRACE_CALL, /* execute ptrace on deputy */ ++ KCOM_L1_GET_TASK_STATE, /* get the remote task state */ ++ KCOM_L1_SET_TRACED, /* called to set to TASK_TRACED */ + KCOM_L1_CMD_MAX, @@ -533,7 +535,7 @@ =================================================================== --- linux.orig/hpc/task.c 2007-01-08 19:31:59.000000000 +0100 +++ linux/hpc/task.c 2007-01-08 19:32:17.000000000 +0100 -@@ -220,22 +220,6 @@ +@@ -223,22 +223,6 @@ return 0; } --/NkBOFFp2J2Af1nK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="02-ptrace_check_attach-support_-_cleanup_dead_code.patch" --- ../anonsvn/openmosix/trunk/2.6/kernel/2.6.17/openmosix/ptrace_check_attach-support.patch 2007-03-08 21:17:35.000000000 +0000 +++ openmosix/trunk/2.6/kernel/2.6.17/openmosix/ptrace_check_attach-support.patch 2007-04-26 19:42:59.000000000 +0000 @@ -14,7 +14,7 @@ =================================================================== --- linux.orig/hpc/kcomd.c 2007-01-10 20:33:31.000000000 +0100 +++ linux/hpc/kcomd.c 2007-01-10 21:10:40.000000000 +0100 -@@ -346,7 +346,19 @@ +@@ -346,6 +346,19 @@ .recv_size = sizeof(int), .name = "Deputy Ptrace Attach"}, @@ -25,7 +25,7 @@ + .recv_size = 0, + .answer_size = sizeof(struct omp_get_task_state), + .name = "Get Remote Task State"}, - ++ + /* Get the remote task state */ + [KCOM_L1_CMD_INDEX(KCOM_L1_SET_TRACED)] = { + .handle_pkt = remote_set_traced, @@ -59,9 +59,9 @@ + struct sockaddr_in *dest_ptr=(void *)child->om.whereto; + int ret; + -+ task = kcom_find_task(child->pid); ++ task = kcom_home_task_find(child->pid); + -+ if (!task || !s) ++ if (!task) + goto notask; + + ret = __kcom_send_command(task, KCOM_L1_GET_TASK_STATE, 0, NULL, 0, dest_ptr, &pkt); @@ -103,7 +103,7 @@ + + task = kcom_home_task_find(child->pid); + -+ if (!task || !s) ++ if (!task) + return; + + ret = __kcom_send_command(task, KCOM_L1_SET_TRACED, 0, NULL, 0, dest_ptr, &pkt); @@ -124,9 +124,10 @@ + child->state = TASK_TRACED; + spin_unlock_irq(&child->sighand->siglock); + read_unlock(&tasklist_lock); ++ return 0; +} + -+/* vim: set sw=8: */ + Index: linux/include/hpc/prototype.h =================================================================== --- linux.orig/include/hpc/prototype.h 2007-01-10 21:15:48.000000000 +0100 --/NkBOFFp2J2Af1nK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="03-ptrace_detach-support_-_cleanup_dead_code.patch" --- ../dev5/openmosix/trunk/2.6/kernel/2.6.17/openmosix/ptrace_detach-support.patch 2007-03-08 21:17:35.000000000 +0000 +++ openmosix/trunk/2.6/kernel/2.6.17/openmosix/ptrace_detach-support.patch 2007-04-15 22:26:01.000000000 +0000 @@ -34,27 +34,10 @@ =================================================================== --- linux.orig/hpc/ptrace.c 2007-01-10 22:09:23.000000000 +0100 +++ linux/hpc/ptrace.c 2007-01-11 14:33:52.000000000 +0100 -@@ -210,7 +210,6 @@ - void deputy_set_remote_traced(struct task_struct *child) - { - struct kcom_task *task; -- struct kcom_pkt *pkt; - struct sockaddr_in *dest_ptr=(void *)child->om.whereto; - int ret; - -@@ -219,7 +218,7 @@ - if (!task) - return; - -- ret = __kcom_send_command(task, KCOM_L1_SET_TRACED, 0, NULL, 0, dest_ptr, &pkt); -+ ret = __kcom_send_command(task, KCOM_L1_SET_TRACED, 0, NULL, 0, dest_ptr, NULL); - } - - int remote_set_traced(struct kcom_node *node, const struct kcom_pkt *const pkt) -@@ -240,4 +239,45 @@ +@@ -240,3 +239,45 @@ return 0; } - ++ +void deputy_ptrace_detach(struct task_struct *child, unsigned int data) +{ + struct kcom_task *task; @@ -95,8 +78,8 @@ + wake_up_process(tsk->task); + return 0; +} -+ - /* vim: set sw=8: */ ++ + Index: linux/include/hpc/protocol.h =================================================================== --- linux.orig/include/hpc/protocol.h 2007-01-10 21:57:52.000000000 +0100 --/NkBOFFp2J2Af1nK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="04-kcom_pkt-review_-_cleanup.patch" --- ../anonsvn/openmosix/trunk/2.6/kernel/2.6.17/openmosix/kcom_pkt-review.patch 2007-03-08 22:17:35.000000000 +0100 +++ openmosix/trunk/2.6/kernel/2.6.17/openmosix/kcom_pkt-review.patch 2007-03-10 05:32:26.000000000 +0100 @@ -6702,7 +6702,7 @@ =================================================================== --- linux.orig/hpc/task.c 2006-12-19 16:56:07.000000000 +0100 +++ linux/hpc/task.c 2006-12-19 17:00:23.000000000 +0100 -@@ -181,21 +181,42 @@ +@@ -184,21 +184,42 @@ /** * openmosix_task_exit - Exit current task **/ --/NkBOFFp2J2Af1nK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="05-ptrace-cmds-x86_64-support_-_cleanup.patch" --- ../anonsvn/openmosix/trunk/2.6/kernel/2.6.17/openmosix/ptrace-cmds-x86_64-support.patch 2007-03-08 22:17:35.000000000 +0100 +++ openmosix/trunk/2.6/kernel/2.6.17/openmosix/ptrace-cmds-x86_64-support.patch 2007-03-21 22:31:39.000000000 +0100 @@ -182,10 +182,10 @@ =================================================================== --- linux.orig/hpc/ptrace.c 2007-01-15 15:42:40.000000000 +0100 +++ linux/hpc/ptrace.c 2007-01-16 18:20:28.000000000 +0100 -@@ -280,4 +280,81 @@ +@@ -281,3 +281,78 @@ return 0; } - ++ +/* + * Ptrace commands part + */ @@ -226,7 +226,6 @@ + return 0; +} + -+ +int remote_ptrace( struct kcom_node *node, const struct kcom_pkt *const pkt ) +{ + struct omp_ptrace_getset_long *s; @@ -261,9 +260,7 @@ + } + return 0; +} -+ -+ - /* vim: set sw=8: */ + Index: linux/include/hpc/protocol.h =================================================================== --- linux.orig/include/hpc/protocol.h 2007-01-15 15:46:44.000000000 +0100 @@ -276,8 +273,8 @@ KCOM_L1_CMD_MAX, -@@ -336,4 +337,14 @@ - unsigned long ptrace; +@@ -330,4 +331,21 @@ + int sig_status; }; + @@ -290,6 +287,13 @@ + int set; +}; + ++/* types stolen from include/linux/sched.h */ ++struct omp_get_task_state ++{ ++ volatile long state; ++ unsigned long ptrace; ++}; ++ #endif /* _HPC_PROTOCOL_H */ Index: linux/include/hpc/prototype.h =================================================================== --/NkBOFFp2J2Af1nK Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --/NkBOFFp2J2Af1nK Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ openMosix-devel mailing list openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/openmosix-devel --/NkBOFFp2J2Af1nK--