Re: [RFC] [PATCH 1/2] binary stream format for /proc/stat

From: Ulrich Drepper
Date: Sat Mar 31 2012 - 15:48:27 EST

2012/3/27 KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>:
> Provides another format of /proc/stat for showing data in binary and
> compress sequence of Zeros to some extent.
> Any other idea of formats ?

Not for the format. /proc/stat will likely not be the only file to be
treated like this. How abou an open() flag O_??? which indicates the
binary format is wanted? Maybe re-purpose a flag which doesn't have a
meaning on those files (like, for instance, O_DIRECT). Files which
don't support the format can fail to open with the flag set. This way
all relevant files can be converted over time.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at