Re: PROPOSAL: dot-proc interface [was: /proc stuff]

Tim Jansen (tim@tjansen.de)
Sun, 4 Nov 2001 19:27:16 +0100


On Sunday 04 November 2001 18:41, you wrote:
> The "fuzzy parsing" userland has to do today to get useful information
> out of many proc files today is not nice at all.

I agree, but you dont need a binary format to achieve this. A WELL-DEFINED
format is sufficient. XML is one of them, one-value-files another one. The
"fuzzy parsing" only happens because the files try to be friendly for human
readers.

> It eats CPU, it's error-prone, and all in all it's just "wrong".

How much of your CPU time is spent parsing /proc files?

> However - having a human-readable /proc that you can use directly with
> cat, echo, your scripts, simple programs using read(), etc. is
> absolutely a *very* cool feature that I don't want to let go. It is just
> too damn practical.

You shouldn't use them in scripts because they are likely to break. That's
the whole point. At least not when you want to distribute the scripts to
others. And BTW the one-value-files are much easier to parse for scripts than
any other solution that I have seen so far, including the current /proc
interface.

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