[pso] [tema1][linux] checker
Alex Banceanu
alexbanceanu at gmail.com
Sat Mar 27 17:35:56 EET 2010
Buna,
E vreun motiv pentru care checker-ul online imi da fail la "insmod sci.ko"
?
De asemenea, imi pica toate testele de monitorizare. Imi picau si acasa,
dar am presupus ca asta era pentru ca foloseam versiunea neon de masina
virtuala.
Am modificat local fisierul test.c astfel:
int find_log(long pid, long sno, long *args, long ret)
{
char dummy[1024];
sprintf(dummy, "dmesg | grep '\\[%lx\\]%lx(%lx,%lx,%lx,%lx,%lx,%lx)=%lx' &>
/dev/null", (long)getpid(), sno, args[0],
args[1], args[2], args[3], args[4], args[5], ret);
printf("\n[%lx]%lx(%lx,%lx,%lx,%lx,%lx,%lx)=%lx\n", (long)getpid(), sno,
args[0],
args[1], args[2], args[3], args[4], args[5], ret);
system("dmesg");
return system(dummy);
}
, iar executia imi da output-ul din log-ul atasat.
E ceva ce as putea face ca sa treaca testele? peronal mie mi se par corecte
log-urile generate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/lurker/list/pso.html/attachments/20100327/000ddf99/attachment-0001.htm>
-------------- next part --------------
test: insmod sci.ko...............................................passed
test: bad MY_SYSCALL args.........................................passed
test: 0 intercept.................................................passed
test: 0 release...................................................passed
test: 5 intercept.................................................passed
test: 5 intercept.................................................passed
test: 5 intercept.................................................passed
test: 5 release...................................................passed
test: 5 start.....................................................passed
test: 5 stop......................................................passed
test: 5 start.....................................................passed
test: 5 stop......................................................passed
test: 5 start.....................................................passed
test: 5 start.....................................................passed
[ 696.907674] [116e]5(af7f87a,67f99666,599b7413,26899f3d,2eb378ca,76266114)=fffffff2
test: 5 interceptor...............................................
[116e]5(af7f87a,67f99666,599b7413,26899f3d,2eb378ca,76266114)=fffffff2
failed
test: 5 stop......................................................passed
test: 5 stop......................................................passed
test: 5 start.....................................................passed
test: 5 start.....................................................passed
test: 5 stop......................................................passed
test: 5 start.....................................................passed
test: 5 stop......................................................passed
test: 5 stop......................................................passed
test: 5 start.....................................................passed
test: 5 stop......................................................passed
test: 5 release...................................................passed
test: 3 intercept.................................................passed
test: 3 intercept.................................................passed
test: 3 intercept.................................................passed
test: 3 release...................................................passed
test: 3 start.....................................................passed
test: 3 stop......................................................passed
test: 3 start.....................................................passed
test: 3 stop......................................................passed
test: 3 start.....................................................passed
test: 3 start.....................................................passed
[ 697.138867] [117a]3(af7f87a,67f99666,599b7413,26899f3d,2eb378ca,76266114)=fffffff7
test: 3 interceptor...............................................
[117a]3(af7f87a,67f99666,599b7413,26899f3d,2eb378ca,76266114)=fffffff7
failed
test: 3 stop......................................................passed
test: 3 stop......................................................passed
test: 3 start.....................................................passed
test: 3 start.....................................................passed
test: 3 stop......................................................passed
test: 3 start.....................................................passed
test: 3 stop......................................................passed
test: 3 stop......................................................passed
test: 3 start.....................................................passed
test: 3 stop......................................................passed
test: 3 release...................................................passed
test: 6 intercept.................................................passed
test: 6 intercept.................................................passed
test: 6 intercept.................................................passed
test: 6 release...................................................passed
test: 6 start.....................................................passed
test: 6 stop......................................................passed
test: 6 start.....................................................passed
test: 6 stop......................................................passed
test: 6 start.....................................................passed
test: 6 start.....................................................passed
[ 697.365076] [1186]6(af7f87a,67f99666,599b7413,26899f3d,2eb378ca,76266114)=fffffff7
test: 6 interceptor...............................................
[1186]6(af7f87a,67f99666,599b7413,26899f3d,2eb378ca,76266114)=fffffff7
failed
test: 6 stop......................................................passed
test: 6 stop......................................................passed
test: 6 start.....................................................passed
test: 6 start.....................................................passed
test: 6 stop......................................................passed
test: 6 start.....................................................passed
test: 6 stop......................................................passed
test: 6 stop......................................................passed
test: 6 start.....................................................passed
test: 6 stop......................................................passed
test: 6 release...................................................passed
test: 90 intercept................................................passed
test: 90 intercept................................................passed
test: 90 intercept................................................passed
test: 90 release..................................................passed
test: 90 start....................................................passed
test: 90 stop.....................................................passed
test: 90 start....................................................passed
test: 90 stop.....................................................passed
test: 90 start....................................................passed
test: 90 start....................................................passed
[ 697.598073] [1192]5a(af7f87a,67f99666,599b7413,26899f3d,2eb378ca,76266114)=fffffff2
test: 90 interceptor..............................................
[1192]5a(af7f87a,67f99666,599b7413,26899f3d,2eb378ca,76266114)=fffffff2
failed
test: 90 stop.....................................................passed
test: 90 stop.....................................................passed
test: 90 start....................................................passed
test: 90 start....................................................passed
test: 90 stop.....................................................passed
test: 90 start....................................................passed
test: 90 stop.....................................................passed
test: 90 stop.....................................................passed
test: 90 start....................................................passed
test: 90 stop.....................................................passed
test: 90 release..................................................passed
test: 54 intercept................................................passed
test: 54 intercept................................................passed
test: 54 intercept................................................passed
test: 54 release..................................................passed
test: 54 start....................................................passed
test: 54 stop.....................................................passed
test: 54 start....................................................passed
test: 54 stop.....................................................passed
test: 54 start....................................................passed
test: 54 start....................................................passed
[ 697.821025] [119e]36(af7f87a,67f99666,599b7413,26899f3d,2eb378ca,76266114)=fffffff7
test: 54 interceptor..............................................
[119e]36(af7f87a,67f99666,599b7413,26899f3d,2eb378ca,76266114)=fffffff7
failed
test: 54 stop.....................................................passed
test: 54 stop.....................................................passed
test: 54 start....................................................passed
test: 54 start....................................................passed
test: 54 stop.....................................................passed
test: 54 start....................................................passed
test: 54 stop.....................................................passed
test: 54 stop.....................................................passed
test: 54 start....................................................passed
test: 54 stop.....................................................passed
test: 54 release..................................................passed
test: rmmod sci.ko................................................passed
More information about the pso
mailing list