Mon Mar 14 23:13:08 EST 2005 jmony@xxxxxxxxx
* ckpt
New patches:
[ckpt
jmony@xxxxxxxxx**20050315041308] {
adddir ./include/ckpt
hunk ./arch/posix/SConscript 18
- 'util'
+ 'util',
+ 'ckpt'
hunk ./arch/posix/main.c 8
+#include <unistd.h>
+#include <signal.h>
+#include "ckpt/sys.h"
+#include <ckpt.h>
hunk ./arch/posix/main.c 13
+void checkpointer(void);
+void restoring(void);
+void snapshotdone(void);
+void takingsnapshot(void);
hunk ./arch/posix/main.c 21
+ checkpointer();
+
+ ckpt_on_preckpt((void*)takingsnapshot,NULL);
+ ckpt_on_postckpt((void*)snapshotdone,NULL);
+ ckpt_on_restart((void*)restoring, NULL);
+ ckpt_on_restart((void*)checkpointer,NULL);
+
hunk ./arch/posix/main.c 55
+}
+
+void checkpointer(void){
+ struct ckptconfig checkpointconfig;
+ checkpointconfig.flags=CKPT_NAME | CKPT_ASYNCSIG | CKPT_CONTINUE;
+ //CKPT_NAME, CKPT_ASYNCSIG, CKPT_CONTINUE, CKPT_MSPERIOD
+ checkpointconfig.name[0]='u';
+ checkpointconfig.name[1]='2';
+ checkpointconfig.name[2]='\0';
+ checkpointconfig.asyncsig=SIGALRM;
+ checkpointconfig.continues=1;
+ checkpointconfig.msperiod=30000;
+ ckpt_config(&checkpointconfig,NULL);
+ alarm(30);
+}
+
+void restoring(void){
+ printf("We're back from a crash!\n");
+}
+
+void takingsnapshot(void){
+ printf("Snapshot being performed\n");
+}
+
+void snapshotdone(void){
+ printf("Snapshot done\n");
addfile ./include/ckpt/sys.h
hunk ./include/ckpt/sys.h 1
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <string.h>
+#include <errno.h>
+#define __USE_GNU /* defines F_GETSIG */
+#include <fcntl.h>
+#undef __USE_GNU
+#include <ctype.h>
+#include <unistd.h>
+#include <time.h>
+#include <signal.h>
+#include <syscall.h>
+#include <link.h>
+#include <elf.h>
+#include <dlfcn.h>
+#include <setjmp.h>
+#include <sys/mman.h>
+#include <sys/ptrace.h>
+#include <sys/socket.h>
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/user.h>
+#include <sys/wait.h>
+#include <linux/unistd.h>
+#include <asm/ldt.h>
+#include <asm/page.h>
+#include <netinet/ip.h>
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <regex.h>
+#include <dirent.h>
+
+#ifndef SYS_get_thread_area
+#ifndef SYS_modify_ldt
+#define CKPT_NOTLS
+#endif
+#endif
}
Context:
[Removed unneeded calls to fatal_error in undefined_symbols.c
ephex@xxxxxxxxxxxxxxxxxxxxxxxx**20050314003251]
[Povray source for the Uuu triangle logo
Phil Frost <indigo@xxxxxxxxxxx>**20050313211553]
[basic posix port
Phil Frost <indigo@xxxxxxxxxxx>**20050313174349]
[misc. tweaks to build system
Phil Frost <indigo@xxxxxxxxxxx>**20050306162435]
[assure end test marker is printed in case of exception
Phil Frost <indigo@xxxxxxxxxxx>**20050306162252]
[minimal tests for oskit
Phil Frost <indigo@xxxxxxxxxxx>**20050304060137]
[tweak chdir/getcwd tests
Phil Frost <indigo@xxxxxxxxxxx>**20050304060108]
[test for sys.platform
Phil Frost <indigo@xxxxxxxxxxx>**20050304060052]
[minimal tests for Scitech SNAP
Phil Frost <indigo@xxxxxxxxxxx>**20050304055856]
[documentation on writing Unununium tests
Phil Frost <indigo@xxxxxxxxxxx>**20050304055807]
[documentation for uuunittest
Phil Frost <indigo@xxxxxxxxxxx>**20050304054312]
[Allow tests to be divided into generic, and uuu-only tests
Phil Frost <indigo@xxxxxxxxxxx>**20050304005014
With this, it is possible to run only the tests that are expected to pass on
any python platform.
]
[remove now unneeded uuu.thread
Phil Frost <indigo@xxxxxxxxxxx>**20050303180928
The only thing this did was provide read_usec_timer() to snap, and snap no
longer needs this as it uses gettimeofday().
]
[write tests for some known problems
Phil Frost <indigo@xxxxxxxxxxx>**20050303162652]
[create uuu.test.uuunittest, like unittest, but better.
Phil Frost <indigo@xxxxxxxxxxx>**20050303161719
Most importantly, this allows tests to be skipped, or to be marked as expected
to fail.
]
[add options to save builds from test process
Phil Frost <indigo@xxxxxxxxxxx>**20050303032042
This is useful especially for publishing builds on the unununium.org website.
]
[make 'stty sane' command failure when running tests non-fatal
Phil Frost <indigo@xxxxxxxxxxx>**20050302200546
"stty sane" fails when stdout isn't a tty. Ignore that failure.
]
[add a testing framework
Phil Frost <indigo@xxxxxxxxxxx>**20050302141302
It has yet no tests, but is otherwise complete.
]
[By default search for oskit in /usr then /usr/local.
Phil Frost <indigo@xxxxxxxxxxx>**20050302135209
This should eliminate the need to manually configure oskitprefix for many
people.
]
[Crank the stack size up to 2 Mib
Phil Frost <indigo@xxxxxxxxxxx>**20050301041748
This makes the recently developed hacks to get twisted to run unneeded.
Hopefully, it will reduce the frequency of random crashing, too.
]
[add some commands to the shell for playing with twisted
Phil Frost <indigo@xxxxxxxxxxx>**20050228170747]
[Build more standard python C extension as shared objects
Phil Frost <indigo@xxxxxxxxxxx>**20050228113447]
[slightly more useful error message when getting the working directory for the
prompt
Phil Frost <indigo@xxxxxxxxxxx>**20050228101913
This is broken in oskit, somehow. Rather than fix oskit, make the error more
obvious by printing the exception in the prompt, rather than just '???'
]
[get rid of siginterrupt; python has been made to not need it
Phil Frost <indigo@xxxxxxxxxxx>**20050228094326]
[use build-conf.py to set build options
Phil Frost <indigo@xxxxxxxxxxx>**20050227054613]
[fix some directory handling errors in the (now unused) ext2 module
Phil Frost <indigo@xxxxxxxxxxx>**20050220052356]
[wrap oskit.blkio objects in process locks
Phil Frost <indigo@xxxxxxxxxxx>**20050220050141
Somehow I fear there are a dozen more things that need locks around them. Tried
putting them around the filesystem, which made qemu crash. Locking just the
blkio seems to make the bootable cd images work on hardware.
]
[tweak bootable CD build
Phil Frost <indigo@xxxxxxxxxxx>**20050220012030
- Use long filenames instead of 8.3 DOS crap in addition to rock ridge
extensions.
- Don't include the release string as a dependency, so the image is not rebuilt
when nothing has changed.
]
[make scons always complain when oskitprefix is not right
Phil Frost <indigo@xxxxxxxxxxx>**20050219234503]
[include a release identifier in bootable cd images
Phil Frost <indigo@xxxxxxxxxxx>**20050219174756]
[update documentation, and change cd build target from 'iso' to 'cd'.
Phil Frost <indigo@xxxxxxxxxxx>**20050219173830]
[add 'iso' build target, and make fixes to allow it to be mounted
Phil Frost <indigo@xxxxxxxxxxx>**20050219165356]
[link snap libs against the extension modules, instead of the core.
Phil Frost <indigo@xxxxxxxxxxx>**20041220140008]
[add a working, but minimal irc client
Phil Frost <indigo@xxxxxxxxxxx>**20050119134618
To use, create an instance of uuu.irc.Client and call its mainloop method, or
use the 'irc' command in the shell.
]
[enable the oskit fancy-console
Phil Frost <indigo@xxxxxxxxxxx>**20050119133050]
[fix printf declaration in interrupts.pyx
Phil Frost <indigo@xxxxxxxxxxx>**20050119012725]
[abort the build if the oskit symlink can not be created
Phil Frost <indigo@xxxxxxxxxxx>**20050118151304]
[enable networking; it works
Phil Frost <indigo@xxxxxxxxxxx>**20050116235346]
[kill unused make_interrupt_handler()
Phil Frost <indigo@xxxxxxxxxxx>**20050116184252]
[Updated README.en
Davison Avery <davery@xxxxxxxxxxxxx>**20050101155248]
[Automatic SNAP, Python + include/oskit symlink check | pull | create
davery@xxxxxxxxxxxxx**20050101155239]
[QEMU instructions
davery@xxxxxxxxxxxxx**20041227133259
Howto to help others run Uuu in QEMU
]
[add a grub floppy image to make people's life easier
Phil Frost <indigo@xxxxxxxxxxx>**20041224133729]
[clean up arch/ia32 directory
Phil Frost <indigo@xxxxxxxxxxx>**20041218132337]
[add python stdlib to install targets
Phil Frost <indigo@xxxxxxxxxxx>**20041219211532]
[add README in two flavors
Phil Frost <indigo@xxxxxxxxxxx>**20041217015848]
[add help on available options
Phil Frost <indigo@xxxxxxxxxxx>**20041216185004]
[mega rearangement of source and build system
Phil Frost <indigo@xxxxxxxxxxx>**20041216140636
- python modules are easier to integrate to the build and have installed
- option 'debug' to include debug symbols or not. Builds go in different
directories.
- remove src/, moving things to top level
- make build system has been made less centralized and more readable
- delete old crufty code
]
[don't load modules if possible at boot
Phil Frost <indigo@xxxxxxxxxxx>**20041215220026
Now that filesystem is provided by oskit, getting a filesystem working has less
bootstrap mess. Also, the last patch added a runtime linker, so now C
extensions can be loaded.
There is a new option INSTALLDIR which gives a directory to install all the
stuff. An alias 'install' now exists to install unununium.o and the uuu modules
to that directory.
]
[give unununium the power to load shared libs with dlopen and friends
Phil Frost <indigo@xxxxxxxxxxx>**20041215130406]
[fix path to python modules loaded at init
Phil Frost <indigo@xxxxxxxxxxx>**20041215130131]
[make shell.py use standard os module interface for file manipulation
Phil Frost <indigo@xxxxxxxxxxx>**20041212015448
oskit now provides filesystem functionality, and the old VFS interface is no
longer used.
]
["fix on the timming at thread.pyx"
alphakiller@xxxxxxxxxxxxx**20041212015751]
[move undefined symbol hacks to a separate file, undefined_symbols.c
Phil Frost <indigo@xxxxxxxxxxx>**20041212044600]
[oskit wrapper cleanup; release references when done
Phil Frost <indigo@xxxxxxxxxxx>**20041212044427]
[disable network init for now, until it works
Phil Frost <indigo@xxxxxxxxxxx>**20041212042729]
[remove some old cruft
Phil Frost <indigo@xxxxxxxxxxx>**20041212030336]
[remove src/lib/c
Phil Frost <indigo@xxxxxxxxxxx>**20041212011153
this was a modified version of dietlibc, but is no longer needed as oskit
provides the C library.
]
[oskit: mount root filesystem based on root=fu option at boot
Phil Frost <indigo@xxxxxxxxxxx>**20041211202012]
[oskit: wrap memfs as oskit.fs.MemFS
Phil Frost <indigo@xxxxxxxxxxx>**20041211201853]
[add 'options' dict to multiboot
Phil Frost <indigo@xxxxxxxxxxx>**20041211201752]
[panic when init.py can't run
Phil Frost <indigo@xxxxxxxxxxx>**20041211201654]
[oskit: wrap fsnamespace. Can mount and use filesystems now.
Phil Frost <indigo@xxxxxxxxxxx>**20041211172654]
[oskit: implement more filesystem methods, getroot, unmount, remount
Phil Frost <indigo@xxxxxxxxxxx>**20041211160226]
[oskit: kill cthread stuff again, due to conflicts
Phil Frost <indigo@xxxxxxxxxxx>**20041211043438]
[oskit: rename oskit.linux_fs to just oskit.fs and implement more methods
Phil Frost <indigo@xxxxxxxxxxx>**20041210152514]
[oskit: linux fs pyrex wrapper
Phil Frost <indigo@xxxxxxxxxxx>**20041210142130]
[oskit: working read method on blkio wrapper
Phil Frost <indigo@xxxxxxxxxxx>**20041207082502]
[oskit: start of a blkio pyrex wrapper
Phil Frost <indigo@xxxxxxxxxxx>**20041206153747]
[oskit: startvfs.h to allow socketmodule.c to bulid
Phil Frost <indigo@xxxxxxxxxxx>**20041202135211]
[oskit: networking support
Phil Frost <indigo@xxxxxxxxxxx>**20041129044854]
[enable unicode in python
Phil Frost <indigo@xxxxxxxxxxx>**20041128060029]
[oskit: make interrupts work again
Phil Frost <indigo@xxxxxxxxxxx>**20041128054654]
[oskit: getting there; boots to python prompt but many things are still broken
Phil Frost <indigo@xxxxxxxxxxx>**20041127201642]
[oskit: update multiboot module to use oskit interfaces
Phil Frost <indigo@xxxxxxxxxxx>**20041125174809]
[oskit: use oskit to provide multiboot, print message and hang at boot
Phil Frost <indigo@xxxxxxxxxxx>**20041125173250]
[add a very simple pyrex scanner to scons
Phil Frost <indigo@xxxxxxxxxxx>**20041211150358]
["fixes: UUUTime wrapper for SNAP added and Fixes on libc.pyx"
alphakiller@xxxxxxxxxxxxx**20041210190748]
[add unetcat, a simple clone of netcat in python
Phil Frost <indigo@xxxxxxxxxxx>**20041206153839]
["serial: Added Serial.py and testing Darcs workaround to it's bug"
alphakiller@xxxxxxxxxxxxx**20041128210043]
["wrapper: 1st Commit (makes able to run applications as python modules)"
alphakiller@xxxxxxxxxxxxx**20041202022105]
["scons: Building fixes"
alphakiller@xxxxxxxxxxxxx**20041130151704]
[remove libc.c
Phil Frost <indigo@xxxxxxxxxxx>**20041125163241
This is generated from libc.pyx, so is not needed.
]
[initial revision from
uuu-devel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/unununium--mainline--0.2--patch-14
Phil Frost <indigo@xxxxxxxxxxx>**20041125041506]
Patch bundle hash:
90eb4ad6bc7d64a1bb12a4cbb35f29bf38e39baa
_______________________________________________
Uuu-devel mailing list
Uuu-devel@xxxxxxxxxxxxx
http://unununium.org/cgi-bin/mailman/listinfo/uuu-devel
|