diff options
author | Andi Kleen <[email protected]> | 2017-07-24 16:40:03 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-08-11 10:42:52 -0300 |
commit | 5e97665f91d343b5bcf1f92249e45e18987ffd00 (patch) | |
tree | 8a0bf7554657a55d59dd843fb3467fced71c4c31 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3c22ba5243040c13f9a79e3ae70399c0ae0872a4 (diff) |
perf stat: Fix saved values rbtree lookup
The stat shadow saved values rbtree is indexed by a pointer. Fix the
comparison function:
- We cannot return a pointer delta as an int because that loses bits on
64bit.
- Doing pointer arithmetic on the struct pointer only works if the
objects are spaced by the multiple of the object size, which is not
guaranteed for individual malloc'ed object
Replace it with a proper comparison.
This fixes various problems with values not being found.
Signed-off-by: Andi Kleen <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions