perf tools: Reset output/sort order to default
authorNamhyung Kim <namhyung@kernel.org>
Fri, 23 May 2014 01:59:01 +0000 (10:59 +0900)
committerJiri Olsa <jolsa@kernel.org>
Sun, 1 Jun 2014 12:35:10 +0000 (14:35 +0200)
When reset_output_field() is called, also reset field/sort order to
NULL so that it can have the default values.  It's needed for testing.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
CC: Arun Sharma <asharma@fb.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/1401335910-16832-26-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/util/sort.c

index 9da8931d23948cb12d962867135d691b0e8b83cb..254f583a52abff9dbbbcf7cd23b4f150839fe7e3 100644 (file)
@@ -1582,6 +1582,9 @@ void reset_output_field(void)
        sort__has_sym = 0;
        sort__has_dso = 0;
 
+       field_order = NULL;
+       sort_order = NULL;
+
        reset_dimensions();
        perf_hpp__reset_output_field();
 }