aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorJason Andryuk <[email protected]>2016-02-12 23:13:33 +0000
committerMatt Fleming <[email protected]>2016-02-16 12:49:05 +0000
commita68075908a37850918ad96b056acc9ac4ce1bd90 (patch)
tree2e8aa46386585d6a9f4744ce3d2207823660a205 /tools/perf/scripts/python/call-graph-from-postgresql.py
parente246eb568bc4cbbdd8a30a3c11151ff9b7ca7312 (diff)
lib/ucs2_string: Correct ucs2 -> utf8 conversion
The comparisons should be >= since 0x800 and 0x80 require an additional bit to store. For the 3 byte case, the existing shift would drop off 2 more bits than intended. For the 2 byte case, there should be 5 bits bits in byte 1, and 6 bits in byte 2. Signed-off-by: Jason Andryuk <[email protected]> Reviewed-by: Laszlo Ersek <[email protected]> Cc: Peter Jones <[email protected]> Cc: Matthew Garrett <[email protected]> Cc: "Lee, Chun-Yi" <[email protected]> Signed-off-by: Matt Fleming <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions