[STATCOLL] Missing initiatore, error check for -m option and capability to use initiator name
    - Add missing USB3 and USB_OTG_FS initiatore
    - -m will tell if initiator is not recognized. Initiators are now dumped with their name, not value
    - -m XXX possible with XXX coming from SCI_MSTID_XXX in help
rename trans_qaul to trans_qual in cTools lib
Add capability to track overflow on 2 thresholds (use twice -o and -t)
6 counters and better description of counters before first data output
clarify that option is -m MA_MPU_1_2, not MA_MPU_1_2 alone
[STATCOLL] per-counter config, error checking, HW bug handling, overflow handling
[STATCOLL] Reset HW IP after a certain number of iterations in -a 1 mode instead of counter checking
This is much easier than -o -t options. Tool computes number of iterations through
overflow_delay / capture_delay. Default overflow_delay is 1s. Can be changed by --overflow_delay (float in ms)
[STATCOLL] Extend --overflow_delay to -a 2 mode (direct dump on terminal)
- Add help to the tool

Misc: make timestamp/counter writing in array more generic, in case we want to add
some new control elementsw
[STATCOLL] Add --overflow_delay in "trace" module help
[OMAP5][MODULE] fix GPU/IVA/DSP OPP_[NOM-HI] clock rates

Fix GPU/IVA/DSP clock rates at OPP_[NOM-HI].

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP5][MODULE] fix incorrect number of arguments in debug trace

Fix incorrect number of arguments in debug trace.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP5][VC] add function to retrieve registers of a given VC module

Define vc54xx_registers_get() function to retrieve VC registers of a given VC module.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP5][VOLTDM][OPP] use nominal voltage instead of frequencies to detect OPP

For MM domain, using a single clock frequency (IVA) to detect OPP is not correct.
MM domain has 3 scalable modules (DSP, IVA, GPU) which can scale independently.
Hence, IVA may be at a different OPP than DSP or GPU.
Furthermore, these modules may or may not be running.
Hence, use voltage instead, which is always the highest (OPP) needed.
Extend it to other domains as well.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP5][OPP] fix OPP-clock rates incoherency

Fix potential OPP-clock rates incoherency that could be observed using "show opp" command.
This was due to the fact that OPP could change in backgroup, while lib54xx_opp_show() was
sampling sequencially all clock rates.
Method: sample all parameters in a loop until all is consistent.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP5][OPP] highlight disabled modules

If a module is disabled, printing its clock rate is not
relevant, and may be misleading.
Add parenthesis about rates for disabled modules as well as
a note at the footer of the table.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP5][OPP] add debug trace to lib54xx_opp_show()

Add debug trace to lib54xx_opp_show().

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP4][MODULE] fix missing arg in debug trace in mod44xx_get_autoidle_mode()

Add missing "__func__" argument to dprintf in mod44xx_get_autoidle_mode().

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP4][OPP] fix OPP-clock rates incoherency and highlight disabled modules

Fix potential OPP-clock rates incoherency that could be observed using "show opp" command.
This was due to the fact that OPP could change in backgroup, while voltdm44xx_opp_show() was
sampling sequencially all clock rates.
Method: sample all parameters in a loop until all is consistent.

If a module is disabled, printing its clock rate is not relevant, and may be misleading.
Add parenthesis about rates for disabled modules as well as a note at the footer of the table.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
fixed segmentation fault when calling "audit perf" command

In this patch added an initialization pointers "time_in_opp_t0",
"time_in_opp_t1", "time_in_opp_cnt" with value NULL at the beginning
of the function "audit_performances".
Because if the function "cpufreq_opp_nbr_get" returns 0
(file ".../time_in_state" is absent), then the memory for them
is not allocated (pointers are remain uninitialized) and attempt
to release allocated memory for them in the end of the function
"audit_performances" results in segmentation fault.

Signed-off-by: Oleksandr_Tyshchenko <oleksandr.tyshchenko@ti.com>
fix empty interrupt statistic when CPU1 is offline

File "/proc/interrupts" contains statistics for CPUs that are not
only available, but also online. That is, when reading the
information from this file should use the number of CPUs that are
online.
In this patch, in all functions where the information is read from
the file "/proc/interrupts", function "cpu_cores_count_get"
is replaced by the function "cpu_online_cores_count_get".

Signed-off-by: Oleksandr_Tyshchenko <oleksandr.tyshchenko@ti.com>