slirp statistics - enable or drop them?
Hi,
I just broke (locally) the slirp statistics. You know: "info slirp". Maybe you don't because they are off by default, and there is even no hidden configure switch to enable them ("#define LOG_ENABLED" or "-DLOG_ENABLED" is required). Before fixing them again, I wonder if there are actually use cases out there.
Basically I have three options now:
- drop them completely (would make my nice, 1600-lines dropping slirp cleanup patch even nicer...)
- fix them and leave them disabled, maybe adding some --enable-slirpstats to configure
- fix them, but turn them on by default again so that Joe User is able to, well, actually look at them
Feedback appreciated.
Thanks,
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
Quoted 8 lines · Jan Kiszka
I just broke (locally) the slirp statistics. You know: "info slirp". Maybe you don't because they are off by default, and there is even no hidden configure switch to enable them ("#define
LOG_ENABLED" or "-DLOG_ENABLED" is required). Before fixing them again, I wonder if there are actually use cases out there.Basically I have three options now:
Quoted 9 lines
- drop them completely (would make my nice, 1600-lines dropping slirp cleanup patch even nicer...)
- fix them and leave them disabled, maybe adding some --enable-slirpstats to configure
- fix them, but turn them on by default again so that Joe User is able to, well, actually look at themFeedback appreciated.
I don't see the need for slirp stats. A production deployment is not going to use slirp, and a developer deployment won't need slirp stats.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 16 lines · Avi Kivity
Quoted 15 lines · Jan Kiszka
I just broke (locally) the slirp statistics. You know: "info slirp". Maybe you don't because they are off by default, and there is even no hidden configure switch to enable them ("#define
LOG_ENABLED" or "-DLOG_ENABLED" is required). Before fixing them again, I wonder if there are actually use cases out there.Basically I have three options now:
- drop them completely (would make my nice, 1600-lines dropping slirp cleanup patch even nicer...)
- fix them and leave them disabled, maybe adding some --enable-slirpstats to configure
- fix them, but turn them on by default again so that Joe User is able to, well, actually look at them
Quoted 6 lines
Quoted 2 lines
Feedback appreciated.
I don't see the need for slirp stats. A production deployment is not going to use slirp, and a developer deployment won't need slirp stats.
OK, drop++.
BTW, there is one definitely useful part of "info slirp": the connection listing at its end. It's basically what Alexander Graf recently contributed, but more complete. I already factored this part out and will submit an advanced version, likely under "info usernet" - who knows what "slirp" means...
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
Quoted 26 lines · Jan Kiszka
Quoted 18 lines · Avi Kivity
Quoted 17 lines · Jan Kiszka
I just broke (locally) the slirp statistics. You know: "info slirp". Maybe you don't because they are off by default, and there is even no hidden configure switch to enable them ("#define
LOG_ENABLED" or "-DLOG_ENABLED" is required). Before fixing them again, I wonder if there are actually use cases out there.Basically I have three options now:
- drop them completely (would make my nice, 1600-lines dropping
slirp
cleanup patch even nicer...)
- fix them and leave them disabled, maybe adding some --enable-slirpstats to configure
- fix them, but turn them on by default again so that Joe User is
able
to, well, actually look at themQuoted 6 lines
Quoted 2 lines
Feedback appreciated.
I don't see the need for slirp stats. A production deployment is not going to use slirp, and a developer deployment won't need slirp stats.
Quoted 7 lines
OK, drop++.
BTW, there is one definitely useful part of "info slirp": the connection listing at its end. It's basically what Alexander Graf recently contributed, but more complete. I already factored this part out and will submit an advanced version, likely under "info usernet" - who knows what "slirp" means...
The cleanup wouldn't drop the connection listing, would it? :-)
That's about the only thing I care about when it comes to any info regarding slirp.
Alex
Quoted 35 lines · Alexander Graf
Quoted 24 lines · Jan Kiszka
Quoted 16 lines · Avi Kivity
Quoted 15 lines · Jan Kiszka
I just broke (locally) the slirp statistics. You know: "info slirp". Maybe you don't because they are off by default, and there is even no hidden configure switch to enable them ("#define
LOG_ENABLED" or "-DLOG_ENABLED" is required). Before fixing them again, I wonder if there are actually use cases out there.Basically I have three options now:
- drop them completely (would make my nice, 1600-lines dropping slirp cleanup patch even nicer...)
- fix them and leave them disabled, maybe adding some --enable-slirpstats to configure
- fix them, but turn them on by default again so that Joe User is able to, well, actually look at themQuoted 6 lines
Quoted 2 lines
Feedback appreciated.
I don't see the need for slirp stats. A production deployment is not going to use slirp, and a developer deployment won't need slirp stats.
Quoted 7 lines
OK, drop++.
BTW, there is one definitely useful part of "info slirp": the connection listing at its end. It's basically what Alexander Graf recently contributed, but more complete. I already factored this part out and will submit an advanced version, likely under "info usernet" - who knows what "slirp" means...
Quoted 4 lines
The cleanup wouldn't drop the connection listing, would it? :-) That's about the only thing I care about when it comes to any info regarding slirp.
(qemu) info usernet
Protocol[State] FD Source Address Port Dest. Address Port RecvQ SendQ tcp[ESTABLISHED] 20 127.0.0.1 12345 10.0.2.15 22 0 0 tcp[HOST_FORWARD] 17 * 12345 10.0.2.15 22 0 0 udp[HOST_FORWARD] 19 127.0.0.1 10000 10.0.2.15 10000 0 0 udp[230 sec] 18 10.0.2.15 5353 224.0.0.251 5353 0 0
Is that OK? :)
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
Quoted 43 lines · Jan Kiszka
Quoted 37 lines · Alexander Graf
Quoted 26 lines · Jan Kiszka
Quoted 18 lines · Avi Kivity
Quoted 17 lines · Jan Kiszka
I just broke (locally) the slirp statistics. You know: "info slirp". Maybe you don't because they are off by default, and there is even no hidden configure switch to enable them ("#define
LOG_ENABLED" or "-DLOG_ENABLED" is required). Before fixing them again, I wonder if there are actually use cases out there.Basically I have three options now:
- drop them completely (would make my nice, 1600-lines dropping slirp
cleanup patch even nicer...)
- fix them and leave them disabled, maybe adding some --enable-slirpstats to configure
- fix them, but turn them on by default again so that Joe User is able
to, well, actually look at themQuoted 6 lines
Quoted 2 lines
Feedback appreciated.
I don't see the need for slirp stats. A production deployment is not going to use slirp, and a developer deployment won't need slirp stats.
Quoted 7 lines
OK, drop++.
BTW, there is one definitely useful part of "info slirp": the connection listing at its end. It's basically what Alexander Graf recently contributed, but more complete. I already factored this part out and will submit an advanced version, likely under "info usernet" - who knows what "slirp" means...
Quoted 4 lines
The cleanup wouldn't drop the connection listing, would it? :-) That's about the only thing I care about when it comes to any info regarding slirp.
Quoted 8 lines
(qemu) info usernet
Protocol[State] FD Source Address Port Dest. Address Port RecvQ SendQ tcp[ESTABLISHED] 20 127.0.0.1 12345 10.0.2.15 22 0 0 tcp[HOST_FORWARD] 17 * 12345 10.0.2.15 22 0 0 udp[HOST_FORWARD] 19 127.0.0.1 10000 10.0.2.15 10000 0 0 udp[230 sec] 18 10.0.2.15 5353 224.0.0.251 5353 0 0Is that OK? :)
Looks great :-).
Just be sure not to drop it accidently ;-)
Alex
Quoted 8 lines · Jan Kiszka
Hi,
I just broke (locally) the slirp statistics. You know: "info slirp". Maybe you don't because they are off by default, and there is even no hidden configure switch to enable them ("#define
LOG_ENABLED" or "-DLOG_ENABLED" is required). Before fixing them again, I wonder if there are actually use cases out there.
Quoted 5 lines
Basically I have three options now:
- drop them completely (would make my nice, 1600-lines dropping slirp cleanup patch even nicer...)
Yes, I'd say drop them.
What's this "dropping slirp cleanup patch"? Just something you use locally or do you plan on pushing it to the list?
Regards,
Anthony Liguori
Quoted 11 lines · Anthony Liguori
Quoted 10 lines · Jan Kiszka
Hi,
I just broke (locally) the slirp statistics. You know: "info slirp". Maybe you don't because they are off by default, and there is even no hidden configure switch to enable them ("#define
LOG_ENABLED" or "-DLOG_ENABLED" is required). Before fixing them again, I wonder if there are actually use cases out there.Basically I have three options now:
Quoted 8 lines
Quoted 3 lines
- drop them completely (would make my nice, 1600-lines dropping slirp cleanup patch even nicer...)
Yes, I'd say drop them.
What's this "dropping slirp cleanup patch"? Just something you use locally or do you plan on pushing it to the list?
Hacking on slirp, I quickly got sick of of all those "#if 0", "/* no-longer-used */" or "#ifndef CONFIG_QEMU" and finally dropped them. It's not a complete cleanup yet (e.g. one would have to go through slirp_config.h as well, and we need a re-indention run), but it's a start.
Will definitely post it, at latest when my queue is about to overflow (currently 30 patches, still increasing).
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux