Re: Good design to expose debug info from kernel module

2015-03-28 Thread Amos Shapira
On 29 March 2015 at 08:14, Elazar Leibovich wrote: > 4) I really think nowadays text is a bit obsolete. I can hardly think of a > case where text would be more convenient than, say, json or HTML. Web > browser is at your fingertips, and HTML table is easier to handle than > whitespace separated o

Re: Good design to expose debug info from kernel module

2015-03-28 Thread Elazar Leibovich
I've been bitten by text based serialization formats: 0) You have to write a parser/printer for each new protocol. 1) Separating messages in a stream is trickier with text based formats: int rv = read(fd, &len, sizeof(len)); assert(rv > 0); rv = read(len, buf, sizeof(buf))); asse