> Siddharth Srivastav <siddy@serc212.serc.iisc.ernet.in> writes:
>
> |> hi all,
> |> Thanx for the information.
> |> But is there a way around for the problem? I need to collect some queue
> |> statistics fron the kernel.
>
> Use fixed point arithmetic.
>
> --
> Andreas Schwab "And now for something
> SuSE Labs completely different."
> schwab@suse.de
> SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
>
Yes, trivial....
Most kernel stuff has 'HZ' granularity so you get 'decimal' information
easily like:
cpu_time = whatever();
printk("CPU = %lu.%lu\n", cpu_time/HZ, cpu_time % HZ);
If you want to accumulate statistics and filter then, make some driver
(module) to transfer them to a user-mode program that can do whatever
it wants. Modules in Linux are easy.
Cheers,
Dick Johnson
Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/