diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-07-24 15:03:59 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-07-24 15:03:59 +0200 |
commit | b35ad8405d3951721126c3942d863056c2f39c64 (patch) | |
tree | a33abc961c828287673b607c430d6fb80754807f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7f6fa101dfac8739764e47751d314551f6160c98 (diff) | |
parent | 935ace2fb5cc49ae88bd1f1735ddc51cdc2ebfb3 (diff) |
Merge branch 'core/entry' into x86/entry
Pick up generic entry code to migrate x86 over.
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
-rw-r--r-- | tools/perf/scripts/python/export-to-postgresql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/export-to-postgresql.py b/tools/perf/scripts/python/export-to-postgresql.py index 7bd73a904b4e..d187e46c2683 100644 --- a/tools/perf/scripts/python/export-to-postgresql.py +++ b/tools/perf/scripts/python/export-to-postgresql.py @@ -1055,7 +1055,7 @@ def cbr(id, raw_buf): cbr = data[0] MHz = (data[4] + 500) / 1000 percent = ((cbr * 1000 / data[2]) + 5) / 10 - value = struct.pack("!hiqiiiiii", 4, 8, id, 4, cbr, 4, MHz, 4, percent) + value = struct.pack("!hiqiiiiii", 4, 8, id, 4, cbr, 4, int(MHz), 4, int(percent)) cbr_file.write(value) def mwait(id, raw_buf): |