Pagina 1 di 1

Speedfreq non compila su slack 10 e kernel 2.6.7...

Inviato: ven 9 lug 2004, 23:38
da skyblaze
ho tutto pronto sul kernel....cpufreq ecc ed in userspace mi servirebbe sto demone per i settaggi delle frequenze ma non riesco proprio a compilalro mi da i seguenti errori:
<BR>
<BR>make
<BR>make: bk: Command not found
<BR>version.c unchanged
<BR>cc -Werror -Wall -O -ggdb3 -o _speedfreqmodule.so -I/usr/include/python2.3.4 -shared -fpic -Wl,-soname,_speedfreqmodule.so python.c libspeedfreq.so
<BR>python.c:10:20: Python.h: No such file or directory
<BR>python.c:14: error: parse error before "pysf_methods"
<BR>python.c:14: warning: type defaults to `int´ in declaration of `pysf_methods´
<BR>python.c:14: warning: data definition has no type or storage class
<BR>python.c:15: error: parse error before ´*´ token
<BR>python.c:15: warning: type defaults to `int´ in declaration of `pysf_error´
<BR>python.c:15: warning: data definition has no type or storage class
<BR>python.c: In function `init_speedfreq´:
<BR>python.c:23: error: `PyObject´ undeclared (first use in this function)python.c:23: error: (Each undeclared identifier is reported only once
<BR>python.c:23: error: for each function it appears in.)
<BR>python.c:23: error: `m´ undeclared (first use in this function)
<BR>python.c:23: error: `d´ undeclared (first use in this function)
<BR>python.c:23: warning: left-hand operand of comma expression has no effect
<BR>python.c:25: warning: implicit declaration of function `Py_InitModule´python.c:26: warning: implicit declaration of function `PyModule_GetDict´
<BR>python.c:27: warning: implicit declaration of function `PyErr_NewException´
<BR>python.c:27: error: `NULL´ undeclared (first use in this function)
<BR>python.c:27: warning: assignment makes pointer from integer without a cast
<BR>python.c:28: warning: implicit declaration of function `PyDict_SetItemString´
<BR>python.c:30: warning: implicit declaration of function `Py_BuildValue´python.c: At top level:
<BR>python.c:49: error: parse error before ´*´ token
<BR>python.c:50: error: parse error before ´*´ token
<BR>python.c:51: warning: return type defaults to `int´
<BR>python.c: In function `pysf_connect´:
<BR>python.c:52: warning: implicit declaration of function `PyArg_ParseTuple´
<BR>python.c:52: error: `args´ undeclared (first use in this function)
<BR>python.c:53: error: `NULL´ undeclared (first use in this function)
<BR>python.c:59: warning: implicit declaration of function `PyErr_SetString´
<BR>python.c:63: warning: implicit declaration of function `Py_INCREF´
<BR>python.c:63: error: `Py_None´ undeclared (first use in this function)
<BR>python.c: At top level:
<BR>python.c:68: error: parse error before ´*´ token
<BR>python.c:69: error: parse error before ´*´ token
<BR>python.c:70: warning: return type defaults to `int´
<BR>python.c: In function `pysf_disconnect´:
<BR>python.c:71: error: `args´ undeclared (first use in this function)
<BR>python.c:72: error: `NULL´ undeclared (first use in this function)
<BR>python.c:77: error: `Py_None´ undeclared (first use in this function)
<BR>python.c: At top level:
<BR>python.c:82: error: parse error before ´*´ token
<BR>python.c:83: error: parse error before ´*´ token
<BR>python.c:84: warning: return type defaults to `int´
<BR>python.c: In function `pysf_shutdown´:
<BR>python.c:85: error: `args´ undeclared (first use in this function)
<BR>python.c:86: error: `NULL´ undeclared (first use in this function)
<BR>python.c:94: error: `Py_None´ undeclared (first use in this function)
<BR>python.c: At top level:
<BR>python.c:99: error: parse error before ´*´ token
<BR>python.c:100: error: parse error before ´*´ token
<BR>python.c:101: warning: return type defaults to `int´
<BR>python.c: In function `pysf_get_version´:
<BR>python.c:102: error: `PyObject´ undeclared (first use in this function)
<BR>python.c:102: error: `ret´ undeclared (first use in this function)
<BR>python.c:102: error: `NULL´ undeclared (first use in this function)
<BR>python.c:104: error: `args´ undeclared (first use in this function)
<BR>python.c:116: warning: implicit declaration of function `free´
<BR>python.c: At top level:
<BR>python.c:123: error: parse error before ´*´ token
<BR>python.c:124: error: parse error before ´*´ token
<BR>python.c:125: warning: return type defaults to `int´
<BR>python.c: In function `pysf__get_policy´:
<BR>python.c:127: error: `PyObject´ undeclared (first use in this function)
<BR>python.c:127: error: `ret´ undeclared (first use in this function)
<BR>python.c:129: error: `args´ undeclared (first use in this function)
<BR>python.c:130: error: `NULL´ undeclared (first use in this function)
<BR>python.c: At top level:
<BR>python.c:156: error: parse error before ´*´ token
<BR>python.c:157: error: parse error before ´*´ token
<BR>python.c:158: warning: return type defaults to `int´
<BR>python.c: In function `pysf__get_cpu_info´:
<BR>python.c:161: error: `args´ undeclared (first use in this function)
<BR>python.c:162: error: `NULL´ undeclared (first use in this function)
<BR>python.c:170: warning: return makes pointer from integer without a cast
<BR>python.c: At top level:
<BR>python.c:174: error: parse error before ´*´ token
<BR>python.c:175: error: parse error before ´*´ token
<BR>python.c:176: warning: return type defaults to `int´
<BR>python.c: In function `pysf_pol_powersave´:
<BR>python.c:177: error: `args´ undeclared (first use in this function)
<BR>python.c:178: error: `NULL´ undeclared (first use in this function)
<BR>python.c:186: error: `Py_None´ undeclared (first use in this function)python.c: At top level:
<BR>python.c:191: error: parse error before ´*´ token
<BR>python.c:192: error: parse error before ´*´ token
<BR>python.c:193: warning: return type defaults to `int´
<BR>python.c: In function `pysf_pol_performance´:
<BR>python.c:196: error: `args´ undeclared (first use in this function)
<BR>python.c:197: error: `NULL´ undeclared (first use in this function)
<BR>python.c:205: error: `Py_None´ undeclared (first use in this function)python.c: At top level:
<BR>python.c:210: error: parse error before ´*´ token
<BR>python.c:211: error: parse error before ´*´ token
<BR>python.c:212: warning: return type defaults to `int´
<BR>python.c: In function `pysf_pol_dynamic´:
<BR>python.c:215: error: `args´ undeclared (first use in this function)
<BR>python.c:216: error: `NULL´ undeclared (first use in this function)
<BR>python.c:220: error: `PyExc_ValueError´ undeclared (first use in this function)
<BR>python.c:242: error: `Py_None´ undeclared (first use in this function)python.c: At top level:
<BR>python.c:247: error: parse error before ´*´ token
<BR>python.c:248: error: parse error before ´*´ token
<BR>python.c:249: warning: return type defaults to `int´
<BR>python.c: In function `pysf_pol_fixed´:
<BR>python.c:252: error: `args´ undeclared (first use in this function)
<BR>python.c:253: error: `NULL´ undeclared (first use in this function)
<BR>python.c:257: error: `PyExc_ValueError´ undeclared (first use in this function)
<BR>python.c:268: error: `Py_None´ undeclared (first use in this function)python.c: At top level:
<BR>python.c:273: error: parse error before ´*´ token
<BR>python.c:274: error: parse error before ´*´ token
<BR>python.c:275: warning: return type defaults to `int´
<BR>python.c: In function `pysf_get_mon_fd´:
<BR>python.c:276: error: `args´ undeclared (first use in this function)
<BR>python.c:277: error: `NULL´ undeclared (first use in this function)
<BR>python.c:287: warning: return makes pointer from integer without a cast
<BR>python.c: At top level:
<BR>python.c:291: error: parse error before ´*´ token
<BR>python.c:292: error: parse error before ´*´ token
<BR>python.c:293: warning: return type defaults to `int´
<BR>python.c: In function `pysf__poll´:
<BR>python.c:295: error: `PyObject´ undeclared (first use in this function)
<BR>python.c:295: error: `ret´ undeclared (first use in this function)
<BR>python.c:295: error: `NULL´ undeclared (first use in this function)
<BR>python.c:298: error: `args´ undeclared (first use in this function)
<BR>python.c:305: error: `Py_None´ undeclared (first use in this function)python.c: At top level:
<BR>python.c:356: error: parse error before "pysf_methods"
<BR>python.c:356: warning: type defaults to `int´ in declaration of `pysf_methods´
<BR>python.c:357: warning: braces around scalar initializer
<BR>python.c:357: warning: (near initialization for `pysf_methods[0]´)
<BR>python.c:357: warning: initialization makes integer from pointer without a cast
<BR>python.c:357: warning: excess elements in scalar initializer
<BR>python.c:357: warning: (near initialization for `pysf_methods[0]´)
<BR>python.c:357: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:357: warning: excess elements in scalar initializer
<BR>python.c:357: warning: (near initialization for `pysf_methods[0]´)
<BR>python.c:358: warning: excess elements in scalar initializer
<BR>python.c:358: warning: (near initialization for `pysf_methods[0]´)
<BR>python.c:359: warning: braces around scalar initializer
<BR>python.c:359: warning: (near initialization for `pysf_methods[1]´)
<BR>python.c:359: warning: initialization makes integer from pointer without a cast
<BR>python.c:359: warning: excess elements in scalar initializer
<BR>python.c:359: warning: (near initialization for `pysf_methods[1]´)
<BR>python.c:359: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:359: warning: excess elements in scalar initializer
<BR>python.c:359: warning: (near initialization for `pysf_methods[1]´)
<BR>python.c:360: warning: excess elements in scalar initializer
<BR>python.c:360: warning: (near initialization for `pysf_methods[1]´)
<BR>python.c:361: warning: braces around scalar initializer
<BR>python.c:361: warning: (near initialization for `pysf_methods[2]´)
<BR>python.c:361: warning: initialization makes integer from pointer without a cast
<BR>python.c:361: warning: excess elements in scalar initializer
<BR>python.c:361: warning: (near initialization for `pysf_methods[2]´)
<BR>python.c:361: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:361: warning: excess elements in scalar initializer
<BR>python.c:361: warning: (near initialization for `pysf_methods[2]´)
<BR>python.c:362: warning: excess elements in scalar initializer
<BR>python.c:362: warning: (near initialization for `pysf_methods[2]´)
<BR>python.c:363: warning: braces around scalar initializer
<BR>python.c:363: warning: (near initialization for `pysf_methods[3]´)
<BR>python.c:363: warning: initialization makes integer from pointer without a cast
<BR>python.c:363: warning: excess elements in scalar initializer
<BR>python.c:363: warning: (near initialization for `pysf_methods[3]´)
<BR>python.c:363: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:363: warning: excess elements in scalar initializer
<BR>python.c:363: warning: (near initialization for `pysf_methods[3]´)
<BR>python.c:364: warning: excess elements in scalar initializer
<BR>python.c:364: warning: (near initialization for `pysf_methods[3]´)
<BR>python.c:365: warning: braces around scalar initializer
<BR>python.c:365: warning: (near initialization for `pysf_methods[4]´)
<BR>python.c:365: warning: initialization makes integer from pointer without a cast
<BR>python.c:365: warning: excess elements in scalar initializer
<BR>python.c:365: warning: (near initialization for `pysf_methods[4]´)
<BR>python.c:365: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:365: warning: excess elements in scalar initializer
<BR>python.c:365: warning: (near initialization for `pysf_methods[4]´)
<BR>python.c:366: warning: excess elements in scalar initializer
<BR>python.c:366: warning: (near initialization for `pysf_methods[4]´)
<BR>python.c:367: warning: braces around scalar initializer
<BR>python.c:367: warning: (near initialization for `pysf_methods[5]´)
<BR>python.c:367: warning: initialization makes integer from pointer without a cast
<BR>python.c:367: warning: excess elements in scalar initializer
<BR>python.c:367: warning: (near initialization for `pysf_methods[5]´)
<BR>python.c:367: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:367: warning: excess elements in scalar initializer
<BR>python.c:367: warning: (near initialization for `pysf_methods[5]´)
<BR>python.c:368: warning: excess elements in scalar initializer
<BR>python.c:368: warning: (near initialization for `pysf_methods[5]´)
<BR>python.c:369: warning: braces around scalar initializer
<BR>python.c:369: warning: (near initialization for `pysf_methods[6]´)
<BR>python.c:369: warning: initialization makes integer from pointer without a cast
<BR>python.c:369: warning: excess elements in scalar initializer
<BR>python.c:369: warning: (near initialization for `pysf_methods[6]´)
<BR>python.c:369: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:369: warning: excess elements in scalar initializer
<BR>python.c:369: warning: (near initialization for `pysf_methods[6]´)
<BR>python.c:370: warning: excess elements in scalar initializer
<BR>python.c:370: warning: (near initialization for `pysf_methods[6]´)
<BR>python.c:371: warning: braces around scalar initializer
<BR>python.c:371: warning: (near initialization for `pysf_methods[7]´)
<BR>python.c:371: warning: initialization makes integer from pointer without a cast
<BR>python.c:371: warning: excess elements in scalar initializer
<BR>python.c:371: warning: (near initialization for `pysf_methods[7]´)
<BR>python.c:371: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:371: warning: excess elements in scalar initializer
<BR>python.c:371: warning: (near initialization for `pysf_methods[7]´)
<BR>python.c:372: warning: excess elements in scalar initializer
<BR>python.c:372: warning: (near initialization for `pysf_methods[7]´)
<BR>python.c:373: warning: braces around scalar initializer
<BR>python.c:373: warning: (near initialization for `pysf_methods[8]´)
<BR>python.c:373: warning: initialization makes integer from pointer without a cast
<BR>python.c:373: warning: excess elements in scalar initializer
<BR>python.c:373: warning: (near initialization for `pysf_methods[8]´)
<BR>python.c:373: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:373: warning: excess elements in scalar initializer
<BR>python.c:373: warning: (near initialization for `pysf_methods[8]´)
<BR>python.c:374: warning: excess elements in scalar initializer
<BR>python.c:374: warning: (near initialization for `pysf_methods[8]´)
<BR>python.c:375: warning: braces around scalar initializer
<BR>python.c:375: warning: (near initialization for `pysf_methods[9]´)
<BR>python.c:375: warning: initialization makes integer from pointer without a cast
<BR>python.c:375: warning: excess elements in scalar initializer
<BR>python.c:375: warning: (near initialization for `pysf_methods[9]´)
<BR>python.c:375: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:375: warning: excess elements in scalar initializer
<BR>python.c:375: warning: (near initialization for `pysf_methods[9]´)
<BR>python.c:376: warning: excess elements in scalar initializer
<BR>python.c:376: warning: (near initialization for `pysf_methods[9]´)
<BR>python.c:377: warning: braces around scalar initializer
<BR>python.c:377: warning: (near initialization for `pysf_methods[10]´)
<BR>python.c:377: warning: initialization makes integer from pointer without a cast
<BR>python.c:377: warning: excess elements in scalar initializer
<BR>python.c:377: warning: (near initialization for `pysf_methods[10]´)
<BR>python.c:377: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:377: warning: excess elements in scalar initializer
<BR>python.c:377: warning: (near initialization for `pysf_methods[10]´)
<BR>python.c:378: warning: excess elements in scalar initializer
<BR>python.c:378: warning: (near initialization for `pysf_methods[10]´)
<BR>python.c:379: warning: braces around scalar initializer
<BR>python.c:379: warning: (near initialization for `pysf_methods[11]´)
<BR>python.c:379: warning: initialization makes integer from pointer without a cast
<BR>python.c:379: warning: excess elements in scalar initializer
<BR>python.c:379: warning: (near initialization for `pysf_methods[11]´)
<BR>python.c:379: error: `METH_VARARGS´ undeclared here (not in a function)
<BR>python.c:379: warning: excess elements in scalar initializer
<BR>python.c:379: warning: (near initialization for `pysf_methods[11]´)
<BR>python.c:380: warning: excess elements in scalar initializer
<BR>python.c:380: warning: (near initialization for `pysf_methods[11]´)
<BR>python.c:381: warning: braces around scalar initializer
<BR>python.c:381: warning: (near initialization for `pysf_methods[12]´)
<BR>python.c:381: error: `NULL´ undeclared here (not in a function)
<BR>python.c:381: error: initializer element is not constant
<BR>python.c:381: error: (near initialization for `pysf_methods[12]´)
<BR>python.c:381: error: `NULL´ undeclared here (not in a function)
<BR>python.c:381: warning: excess elements in scalar initializer
<BR>python.c:381: warning: (near initialization for `pysf_methods[12]´)
<BR>python.c:381: warning: excess elements in scalar initializer
<BR>python.c:381: warning: (near initialization for `pysf_methods[12]´)
<BR>python.c:381: error: `NULL´ undeclared here (not in a function)
<BR>python.c:381: warning: excess elements in scalar initializer
<BR>python.c:381: warning: (near initialization for `pysf_methods[12]´)
<BR>python.c:381: error: initializer element is not constant
<BR>python.c:381: error: (near initialization for `pysf_methods[12]´)
<BR>python.c:382: warning: data definition has no type or storage class
<BR>make: *** [_speedfreqmodule.so] Error 1
<BR><br>

Speedfreq non compila su slack 10 e kernel 2.6.7...

Inviato: sab 10 lug 2004, 2:55
da useless
ma perché usare un obbrobrio in python? prova <!-- BBCode Start --><A HREF="http://mnm.uib.es/~gallir/cpudyn/" TARGET="_blank">questo</A><!-- BBCode End -->.<br>

Speedfreq non compila su slack 10 e kernel 2.6.7...

Inviato: dom 11 lug 2004, 2:07
da skyblaze
perche è l´unico che ha la modalita dynamic che non è poco. Cpudyn come anche cpufreq settano solo la freq ha due valori...o max o minimo. E poi non venirmi a dire che cpudyn ha la feature carina del disco perche con hdparm sono 2 comandi per settare lo stand by del disco e lo spin dei piatti.<br>

Speedfreq non compila su slack 10 e kernel 2.6.7...

Inviato: dom 11 lug 2004, 2:45
da useless
cosa intendi x dynamic? il fatto che il clock cambi di continuo a seconda del carico della cpu? be´, cpudyn fa esattamente questo, e non ha solo max o min.<br>

Speedfreq non compila su slack 10 e kernel 2.6.7...

Inviato: lun 12 lug 2004, 0:03
da skyblaze
<!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE>
<BR> 11-07-2004 alle ore 02:45, useless :
<BR>cosa intendi x dynamic? il fatto che il clock cambi di continuo a seconda del carico della cpu? be´, cpudyn fa esattamente questo, e non ha solo max o min.<br>
<BR></BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->si intendo proprio quello...come ce l´ha? Ma scusa dal sito si legge chiaramente che non fa altro che settare una o l´altra freq....boh lo provo allora<br>

Speedfreq non compila su slack 10 e kernel 2.6.7...

Inviato: lun 12 lug 2004, 0:38
da skyblaze
provato lo sto usando visto che tanto l´altro non si compila. E´ come dicevo io....cambia si continuamente ma sempre alle 2 freq min e max. Speedfreq aumenta e diminuisce la freq passando per tutte le freq intermedie.
<BR>
<BR>P.S.
<BR>di cpudynd non ho ben capito lìopzione -p e -i che poi sono le piu importanti:)
<BR>Cioè so che il primo valore di -p (che di default è 0.5) indica che se la cpu rimane in idle per meno del 50% del tempo la cpu è portata alla max freq mentre se rimane(0.9 valore di default) per piu del 90% in idle è portata alla min freq. Ebbene le percentuali sono riferiti a quale tempo tot? Cosa intende per inattiva e attiva?Ossia quanta percentuale di carico di cpu per lui è lavoro e viceversa?
<BR><BR><BR>[ Questo Messaggio è stato Modificato da: skyblaze il 12-07-2004 00:52 ]<br>

Speedfreq non compila su slack 10 e kernel 2.6.7...

Inviato: lun 12 lug 2004, 0:59
da useless
boh, sinceramente non lo so, ma ti giuro che ho visto ben altre frequenze in /proc/cpuinfo, e non solo la min o max (500 e 1400 da me). magari x errore 8-).<br>

Speedfreq non compila su slack 10 e kernel 2.6.7...

Inviato: lun 12 lug 2004, 1:09
da skyblaze
impossibile.....ossia se hai pentium-m come me , e quindi tecnologia speedstep, puoi settare il proc alla max freq con governor performance del kernel e min freq con governor powersave o addirittura settare tu una freq particolare in un dato momento.<br>

Speedfreq non compila su slack 10 e kernel 2.6.7...

Inviato: lun 12 lug 2004, 1:12
da skyblaze
comunque lo trovo piuttosto stupido come programmino perche non è che fa, come vorrei io, che ad es fino ad un carico di lavoro di cpu del 40% rimane al minimo e sopra a questo va al max; no lui va al min praticamente solo se non tocchi per niente il picci e come fai poco poco qualcosa va al max.
<BR>Mentre invece come ti ripeto speedfreq guarda ad es se tra il 70 e il 90% di lavoro la cpu ci rimane per piu di qualche sec lui alza la freq piano piano fino a che il carico scende.....quello è ottimo imo.<br>