lkml.org 
[lkml]   [2001]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: PROPOSAL: dot-proc interface [was: /proc stuff]
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.259 / U:1.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site