[pso] [Tema 1] Intrebari

Octavian Voicu octavian.voicu at gmail.com
Tue Mar 16 21:26:15 EET 2010


2010/3/16 Drutu Bogdan <bogdandrutu at gmail.com>

> spook 1 # dmesg | tail -1
> [ 1224.652270]
> [1b43]36(4322346c,57c6ec,710b9ad6,4eba7454,28706f66,405fb446)=fffffff7
>

Kernelul e compilat cu optiunea care afiseaza timestamps pentru fiecare
intrare din klog.

Incearca sa modifici asa testul:

 sprintf(dummy, "dmesg | grep
'^\\[ *[0-9]\\+\\.[0-9]\\+\\] \\[%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);

Asta ar trebui sa ignore timestamp-urile.

Octavian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20100316/1c4fa9dd/attachment.htm>


More information about the pso mailing list