<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:10pt"><div id="yiv1066257472"><div><div style="color:#000;background-color:#fff;font-family:lucida console, sans-serif;font-size:10pt;"><div id="yiv1066257472yui_3_13_0_ym1_17_1395163935886_8"><span id="yiv1066257472yui_3_13_0_ym1_17_1395163935886_16">Deci am incercat cu urmatorul modul si am aceleasi probleme.<br><br><br>DEFINE_RWLOCK(lock);<br><br>static int my_hello_init(void)<br>{<br> read_lock(&lock);<br> printk(LOG_LEVEL "Hello!\n");<br> read_unlock(&lock); <br> return 0;<br>}<br><br>static void hello_exit(void)<br>{<br> write_lock(&lock);<br> printk(LOG_LEVEL "Goodbye!\n");<br>
write_unlock(&lock);<br>}<br><br>module_init(my_hello_init);<br>module_exit(hello_exit);<br><br><br>Mentionez ca atunci cand compilez masina qemu nu poate sa gaseasca </span><span id="yiv1066257472yui_3_13_0_ym1_17_1395163935886_16"><span id="yiv1066257472yui_3_13_0_ym1_17_1395163935886_16">"efi-pcnet.rom"</span>:<br>[ERROR] qemu-system-i386: pci_add_option_rom: failed to find romfile "efi-pcnet.rom"<br><br>iar cand porneste nu poate sa insereze modulul netconsole.ko. Imi zice ca nu se gaseste la locatia respectiva, chiar daca incerc sa il inserez manual merge. Cel mai probabil nu au nicio legatura cu situatia mea, dar tot cred ca nu ar trebui sa se intample aceste lucruri:)<br><br>De asemenea, cand incerc sa inserez modulul </span>tracer_helper.ko mi se genereaza urmatoarea eroare:
<br>"unknown symbol in module, or unknown parameter".<span id="yiv1066257472yui_3_13_0_ym1_17_1395163935886_16"><br><br><br></span></div><div class="yiv1066257472yqt5104425345" id="yiv1066257472yqt95056"><div class="yiv1066257472yahoo_quoted" id="yiv1066257472yui_3_13_0_ym1_17_1395163935886_10" style="display: block;"> <br clear="none"> <br clear="none"> <div class="yiv1066257472yui_3_13_0_ym1_1_1395163935886_20224" style="font-family:lucida console, sans-serif;font-size:10pt;"> <div class="yiv1066257472yui_3_13_0_ym1_1_1395163935886_20225" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, March 18, 2014 9:20 PM, Daniel Baluta <daniel.baluta@gmail.com> wrote:<br clear="none"> </font> </div> <div class="yiv1066257472y_msg_container">2014-03-18 21:08 GMT+02:00 Claudiu Olteanu <<a rel="nofollow" shape="rect"
ymailto="mailto:olteanu.claudiu@ymail.com" target="_blank" href="mailto:olteanu.claudiu@ymail.com">olteanu.claudiu@ymail.com</a>>:<div class="yiv1066257472yqt3832692705" id="yiv1066257472yqtfd41885"><br clear="none">> Eu foloseam DEFINE_RWLOCK care am vazut ca in spate face initializarea. Am<br clear="none">> incercat sa folosesc si rwlock_init (care vad ca face acelasi lucru) si</div><br clear="none">><br clear="none"><br clear="none">Sigur ai o greseala in codul tau :). Problema apare acum de la faptul<br clear="none">ca s-a activat optiunea CONFIG_DEBUG_LOCK_ALLOC si se fac niste<br clear="none">verificari in plus.<br clear="none"><br clear="none">Nu cumva incerci sa reinitializezi un lock, deja acaparat? :D<br clear="none"><br clear="none">Incearca pe bucati, fa un modul simplu in care:<br clear="none">1. declari un lock<br clear="none">2. initializezi un lock<br clear="none">3. faci lock/unlock<br clear="none"><br clear="none">Vezi la
care dintre pasii de mai sus pica.<br clear="none"><br clear="none">thanks,<br clear="none">Daniel.<div class="yiv1066257472yqt3832692705" id="yiv1066257472yqtfd00212"><br clear="none"></div><br clear="none"><br clear="none"></div> </div> </div> </div></div> </div></div></div></div></body></html>