Re: [patch] Real-Time Preemption, -VP-2.6.9-rc4-mm1-U0

From: Miquel van Smoorenburg
Date: Thu Oct 14 2004 - 15:27:44 EST


In article <20041014091953.GA21635@xxxxxxx>,
Ingo Molnar <mingo@xxxxxxx> wrote:
>In -U0 this is not possible because 'ps -C' does not handle kernel
>threads with a space in their name. So there you'd need some wacky thing
>like:
>
> chrt -f 60 -p `ps ax -o pid= -o comm= | grep "IRQ 1$" | cut -dI -f1`
> chrt -f 60 -p `ps ax -o pid= -o comm= | grep "IRQ 8$" | cut -dI -f1`
>
>(someone should fix procps - or does it intentionally break with
>whitespace command-strings?)

Why not use ` pgrep -x 'IRQ 1' `. It's part of procps (at least
the version debian, even woody, is using), some kind of standard
(solaris has it too), and works.

Mike.
--
"In times of universal deceit, telling the truth becomes
a revolutionary act." -- George Orwell.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/