ARM: dts: owl-s500: Add CubieBoard6
[linux-2.6-microblaze.git] / tools / perf / util / stat-shadow.c
index 719d6cb..a04cf56 100644 (file)
@@ -70,7 +70,11 @@ static int saved_value_cmp(struct rb_node *rb_node, const void *entry)
                return a->ctx - b->ctx;
        if (a->cpu != b->cpu)
                return a->cpu - b->cpu;
-       return a->evsel - b->evsel;
+       if (a->evsel == b->evsel)
+               return 0;
+       if ((char *)a->evsel < (char *)b->evsel)
+               return -1;
+       return +1;
 }
 
 static struct rb_node *saved_value_new(struct rblist *rblist __maybe_unused,