]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
xenalyze: remove cr3_compare_total
authorIan Campbell <ian.campbell@citrix.com>
Fri, 22 Jan 2016 14:27:29 +0000 (14:27 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 26 Jan 2016 16:24:44 +0000 (16:24 +0000)
gcc-6 complains:
xenalyze.c:4132:9: error: 'cr3_compare_total' defined but not used [-Werror=unused-function]
     int cr3_compare_total(const void *_a, const void *_b) {
         ^~~~~~~~~~~~~~~~~

I believe it is correct.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
tools/xentrace/xenalyze.c

index 4bcaf8394c74798116335c87fdc9450828732ab3..6520790a73fe84a016e2d8e3f8d2f8581afd52ff 100644 (file)
@@ -4129,23 +4129,6 @@ void cr3_dump_list(struct cr3_value_struct *head){
     struct cr3_value_struct **qsort_array;
     int i, N=0;
 
-    int cr3_compare_total(const void *_a, const void *_b) {
-        struct cr3_value_struct *a=*(typeof(&a))_a;
-        struct cr3_value_struct *b=*(typeof(&a))_b;
-
-        if(a->total_time.cycles < b->total_time.cycles)
-            return 1;
-        else if(b->total_time.cycles == a->total_time.cycles) {
-            if(a->total_time.count < b->total_time.count)
-                return 1;
-            else if(a->total_time.count == b->total_time.count)
-                return 0;
-            else
-                return -1;
-        } else
-            return -1;
-    }
-
     int cr3_compare_start(const void *_a, const void *_b) {
         struct cr3_value_struct *a=*(typeof(&a))_a;
         struct cr3_value_struct *b=*(typeof(&a))_b;