projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM: dts: owl-s500: Add CubieBoard6
[linux-2.6-microblaze.git]
/
tools
/
perf
/
util
/
stat-shadow.c
diff --git
a/tools/perf/util/stat-shadow.c
b/tools/perf/util/stat-shadow.c
index
719d6cb
..
a04cf56
100644
(file)
--- a/
tools/perf/util/stat-shadow.c
+++ b/
tools/perf/util/stat-shadow.c
@@
-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->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,
}
static struct rb_node *saved_value_new(struct rblist *rblist __maybe_unused,