tools/power/x86/intel-speed-select: Avoid duplicate names for json parsing
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 31 Jan 2020 05:45:18 +0000 (21:45 -0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Feb 2020 15:47:38 +0000 (17:47 +0200)
commit3b0fe3bab31fa7b320667e3d001eaa3f23590c05
tree733e1b08450e7a45d0204506ab20216f197100f9
parent14a8aa4964e01aafcd684499315d3d4ea1de428f
tools/power/x86/intel-speed-select: Avoid duplicate names for json parsing

For the command
"intel-speed-select perf-profile info":

There are two instances of “speed-select-turbo-freq” underneath
“perf-profile-level-0” for each package. When we load the output into
python with json.load(), the second instance overwrites the first.

Result is that we can only access:
"speed-select-turbo-freq": {
            "bucket-0": {
              "high-priority-cores-count": "2",
              "high-priority-max-frequency(MHz)": "3000",
              "high-priority-max-avx2-frequency(MHz)": "2800",
              "high-priority-max-avx512-frequency(MHz)": "2600"
            },
Because it is a duplicate of "speed-select-turbo-freq": "disabled"
Same is true for "speed-select-base-freq".

To avoid this add "-properties" suffix for the second instance to
differentiate.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
tools/power/x86/intel-speed-select/isst-display.c