[core/sched/cbs] Add load weight to FTrace events

The RQ load is reported on each burst event to allows a verification of
the controller computations.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[core/sched/cbs] Report all round FTrace events

All rounds are reported, even the first one, since the new format allows
to distinguish pre- and post- round values.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[core/sched/cbs] Reset on re-initialization to support tracing

The tracing of events after a re-initialization should have all dumped
data updated to 0 value if a reinitialization has occurred.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[core/sched/cbs] Run controller after statistics update

Both RQ and SE statistics could and should be updated before to run the
controller, in such a way that FTrace events generated by the controller
will dump updated data.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[core/sched/cbs] Bigfix Round Quota (RQ) computation

Because of the way load weights values are defined, and their range, the
pre-computation of the RQ load inverse using a RNQ_SCALE of just 12 bits
is not safe and is going to produce a null inverse.

Fixed point computations requires a re-design to better consider CFS defined
weights, which CBS want to preserve, their ranges and possible scaling and
overflow issues.

For the time being this patch disregard possible optimizations and keeps
just the division during SE round quota computation.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[core/sched/cbs] [FTrace] Initialize some fields used by events

This patch ensure that all events report updated data, which are exposed
by an events event when not directly involved by the specific controller
code-path.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[core/sched/cbs] Bugfix burst error data type

The error could be negative, thus a singe integer is required.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[core/sched/cbs] Bugfix computation of burst time computation

The burst time is defined as
b = bo + eTp
This patch fixes a misplaced multiplication with the required addition.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>