Jamie McCracken wrote:
tobutaz gmail com wrote:Hello, the attached patch fixes a problem that prevented ioprio support from being built on my system (an ubuntu edgy). The problem was that _syscall2 only works in the kernel tree, but is not part of the linux headers in /usr/include. So I had a look at how it was done in the schedutils package instead. Cheers, Gabriel de Perthuisthanks have appliednot sure how to check its working on Edgy though? (how can I tell what io priority a preocess is set as?)
try something like this:sed -n -e "/snip ionice.c/,/snip ionice.c/ p" /usr/src/linux/Documentation/block/ioprio.txt | sed "s/.\+snip ionice.\+//g" > ionice.c
then compile ionice.c, and run it with the argument -p <pid of process to check>