[Skyeye-developer] [PATCH] add timelimit option to skyeye.conf
Paweł Różański
pawel.rozanski at gmail.com
Wed Mar 5 02:23:41 CST 2008
On 29/02/2008, Michael. Kang <blackfin.kang at gmail.com> wrote:
> The related patch in attachment can kill skyeye when the time for
> skyeye running reaches some time limit.I tested it in
> skyeye-testsuite-2.3/rtems/csb337. If this options is stable and
> valuable, I will merge it into the coming release.
>
> You can set the time limit to 20 second in skyeye.conf as the following:
> #####################################################
> ksh at ksh:~/cvs/skyeye/testsuite/timelimit_testsuite> cat skyeye.conf
> cpu: arm920t
> mach: at91rm92
> mem_bank: map=M, type=RW, addr=0x00200000, size=0x00004000
> mem_bank: map=M, type=R, addr=0x00100000, size=0x00010000
> mem_bank: map=M, type=RW, addr=0x20000000, size=0x00200000
> mem_bank: map=M, type=RW, addr=0x20200000, size=0x00500000
> mem_bank: map=M, type=RW, addr=0x20700000, size=0x00900000
> mem_bank: map=I, type=RW, addr=0xfffa0000, size=0x00060000
> timelimit:second=20
> #####################################
>
Nice, but what is wrong with
!/bin/sh
skyeye &
sleep 20
killall -9 skyeye
or you can also use pidof
My point is - is there any need for code which could be easily done
outside of skyeye ?
--
Paweł Różański
More information about the Skyeye-developer
mailing list