Re: [PATCH RFCv10 00/15] DVB QoS statistics API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 15, 2013 at 8:00 AM, Mauro Carvalho Chehab
<mchehab@xxxxxxxxxx> wrote:
> Add DVBv5 methods to retrieve QoS statistics.
>
> Those methods allow per-layer and global statistics.
>
> Implemented 2 QoS statistics on mb86a20s, one global only
> (signal strengh), and one per layer (BER).
>
> Tested with a modified version of dvbv5-zap, that allows monitoring
> those stats. Test data follows
>
> Tested with 1-segment at layer A, and 12-segment at layer B:
>
> [ 3735.973058] i2c i2c-4: mb86a20s_layer_bitrate: layer A bitrate: 440 kbps; counter = 196608 (0x030000)
> [ 3735.976803] i2c i2c-4: mb86a20s_layer_bitrate: layer B bitrate: 16851 kbps; counter = 8257536 (0x7e0000)
>
> a) Global stats:
>
> Signal strength:
>         QOS_SIGNAL_STRENGTH[0] = 4096
>
> BER (sum of BE count and bit counts for both layers):
>         QOS_BIT_ERROR_COUNT[0] = 1087865
>         QOS_TOTAL_BITS_COUNT[0] = 67043313
>
> b) Per-layer stats:
>
> Layer A BER:
>         QOS_BIT_ERROR_COUNT[1] = 236
>         QOS_TOTAL_BITS_COUNT[1] = 917490
>
> Layer B BER:
>         QOS_BIT_ERROR_COUNT[2] = 1087629
>         QOS_TOTAL_BITS_COUNT[2] = 66125823
>
> TODO:
>         - add more statistics at mb86a20s;
>         - implement support for DTV_QOS_ENUM;
>         - some cleanups at get_frontend logic at dvb core, to avoid
>           it to be called outside the DVB thread loop.
>
> All the above changes can be done a little later during this development
> cycle, so my plan is to merge it upstream at the beginning of the
> next week, to allow others to test.
>


An API should be simple. This is far from simple. This API looks horribly
complex and broken, for anyone to use it in a sane way.

Polling from within dvb-core is not a good idea, as it can cause acquisition
failures. Continuous polling is known to cause issues.

Adding counters to be controlled externally by a user is the most silliest
thing altogether.

All these things put together, makes it the most inconvenient thing to be used.
Eventually, it results in more broken applications than existing.

Not to forget that too much work has to be put into drivers, which aren't going
to make things better, but rather even more worser.


Manu
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux