Andi Kleen 5e97665f91 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 <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170724234015.5165-4-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-08-11 10:42:52 -03:00
..
2017-07-25 11:23:50 -03:00
2017-04-24 13:43:32 -03:00
2016-06-28 10:54:56 -03:00
2017-07-18 23:14:11 -03:00
2017-07-18 23:14:11 -03:00
2017-04-19 13:01:51 -03:00
2017-07-26 14:21:59 -03:00
2015-08-21 11:34:10 -03:00
2016-10-24 11:07:39 -03:00
2017-06-19 15:27:05 -03:00
2015-05-05 18:13:22 -03:00
2015-05-05 18:13:22 -03:00
2016-07-12 15:19:55 -03:00
2017-07-18 23:14:08 -03:00
2017-07-26 14:21:59 -03:00
2017-07-26 14:21:59 -03:00
2016-08-23 15:37:33 -03:00
2017-07-18 23:14:11 -03:00
2016-04-28 09:58:58 -03:00
2017-06-27 11:49:13 -03:00
2015-05-29 12:43:44 -03:00