[pso] [tema1][lin] test do_monitor
Adriana Draghici
adriana008 at gmail.com
Mon Mar 30 20:00:11 EEST 2009
am rezolvat, era ciudat ce se intampla:
aveam un
read_lock(&lock)
list_for_each (......)
{
if(..conditie...)
return -EBUSY
}
greseala era ca atunci ca inainte de EBUSY eu uitasem sa fac UNLOCK :(.
2009/3/30 Adriana Draghici <adriana008 at gmail.com>
>
>
> 2009/3/30 Bogdan Tenea <tenea.bogdan at gmail.com>
>
>> Este normal sa returneze ce gaseste. Banuiesc ca daca gaseste ceva sau nu,
>> in functie de asta returneaza si un rezultat in functie de care iti spune
>> daca a trecut testul sau nu. Vezi sa nu se manifeste ciudat sistemul din
>> cauza unor oopsuri aparute inainte sa dai snapshot. Incearca un reboot
>
>
> Stiu ca e normal sa returneze ce gaseste numai ca imi returneaza doar in
> consola, este normal si cand redirectez la /dev/null sa nu se blocheze insa
> in prog test.c daca apelez system de aceasta comanda nu isi mai revine :(,
> nu mai afiseaza codul de dupa, insa testele urmatoare se ruleaza. I don't
> get it :((
>
>
> am dat restart la masina virtuala si se comporta la fel :(.
>
>>
>>
>>
>> 2009/3/30 Adriana Draghici <adriana008 at gmail.com>
>>
>>> Am pus in functia find_log din fisierul test.c :
>>>
>>> printf(" dummy:%s\n", dummy);
>>> printf("%d \n", system(dummy));
>>> printf("dupa system de dummy\n");
>>>
>>> La rularea testelor imi afiseaza doar dummy-ul dar nu si ce urmeaza dupa.
>>> Am dat copy paste la dummy in consola si daca scot redirectarea la
>>> /dev/null imi returneaza ce gaseste:
>>>
>>> faust:/home/so/tema1# dmesg | grep
>>> '^\[b85\]5(47f1c2be,174d2d97,46fad714,45af8008,c92bad5,5d79fae5)=fffffff2'
>>> [b85]5(47f1c2be,174d2d97,46fad714,45af8008,c92bad5,5d79fae5)=fffffff2
>>> faust:/home/so/tema1# dmesg | grep
>>> '^\[b85\]5(47f1c2be,174d2d97,46fad714,45af8008,c92bad5,5d79fae5)=fffffff2'
>>> &> /dev/null
>>> faust:/home/so/tema1#
>>>
>>> Testez doar pt un system call (SYS_OPEN).
>>>
>>>
>>>
>>>
>>> 2009/3/30 Adriana Draghici <adriana008 at gmail.com>
>>>
>>>>
>>>>
>>>> 2009/3/30 Bogdan Tenea <tenea.bogdan at gmail.com>
>>>>
>>>>> Trebuie sa dai
>>>>>
>>>>> dmesg | grep
>>>>> '^\[122b\]36(0,5401,bfa33048,bfa33088,4018fff4,bfa33078)=0'
>>>>>
>>>>> cu un singur slash pentru ca unu ti-l escapeaza Cu :)
>>>>>
>>>>
>>>>
>>>> nu merge nici cu un singur slash, oricum formatul pt comanda l-am luat
>>>> din test.c .
>>>>
>>>>
>>>>>
>>>>>
>>>>> 2009/3/30 Adriana Draghici <adriana008 at gmail.com>
>>>>>
>>>>>> Tocmai acum am mai observat o chestie ciudata:
>>>>>>
>>>>>> Daca dau din linie de comanda dmesg | tail - 50 apare pe undeva si :
>>>>>> [122b]36(0,5401,bfa33048,bfa33088,4018fff4,bfa33078)=0
>>>>>>
>>>>>> Daca dau
>>>>>> dmesg | grep
>>>>>> '^\\[122b\\]36(0,5401,bfa33048,bfa33088,4018fff4,bfa33078)=0'
>>>>>>
>>>>>> nu imi da nici un rezultat, cand ar trebui sa il gaseasca grep-ul .
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2009/3/30 Bogdan Tenea <tenea.bogdan at gmail.com>
>>>>>>
>>>>>> Si mie mi s-au inmplat niste chestii foarte ciudat cu neaparutul
>>>>>>> mesajelor - la un moment dat imi afisat doar mesajele pt syscallu 5 (nici
>>>>>>> macar primele) si nici alea pe toate.
>>>>>>> Ce i-am facut: am scos pe rand testele pentru celelalte syscalluri,
>>>>>>> am rulat si au inceput sa apara pana atunci cand au inceput sa mearga toate,
>>>>>>> neschimband practic nimic. E ceva ciudat :)
>>>>>>>
>>>>>>> 2009/3/30 Adriana Draghici <adriana008 at gmail.com>
>>>>>>>
>>>>>>>> Buna,
>>>>>>>>
>>>>>>>> Am urmatoarea problema:
>>>>>>>>
>>>>>>>> Nu imi afiseaza testul de monitor adica "interceptor.......". Imi
>>>>>>>> trec restul testelor insa acesta nu apare. Am pus printf-uri in macro-ul
>>>>>>>> test din test.c si observ ca nu trece de:
>>>>>>>> if (!(t))\
>>>>>>>> printf("failed\n");\
>>>>>>>> else\
>>>>>>>> printf("passed\n");\
>>>>>>>>
>>>>>>>>
>>>>>>>> In /var/log/debug observ ca apar mesaje generate de log_syscall.
>>>>>>>>
>>>>>>>> 10x
>>>>>>>>
>>>>>>>> Adriana Draghici
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> pso mailing list
>>>>>>>> pso at cursuri.cs.pub.ro
>>>>>>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> pso mailing list
>>>>>>> pso at cursuri.cs.pub.ro
>>>>>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> pso mailing list
>>>>>> pso at cursuri.cs.pub.ro
>>>>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> pso mailing list
>>>>> pso at cursuri.cs.pub.ro
>>>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> pso mailing list
>>> pso at cursuri.cs.pub.ro
>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>>
>>>
>>
>> _______________________________________________
>> pso mailing list
>> pso at cursuri.cs.pub.ro
>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20090330/846fc7e1/attachment.htm>
More information about the pso
mailing list