diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-05-23 05:59:01 +0400 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-06-01 16:35:10 +0400 |
commit | d69b2962a0aebd431cdda939f4418dd606e2f77e (patch) | |
tree | 1454f2ab8e9ac6ede409119dff3450543d92f6db /tools | |
parent | e4cf6f886f3158061fb589df9ed452f9b30f67f1 (diff) | |
download | linux-d69b2962a0aebd431cdda939f4418dd606e2f77e.tar.xz |
perf tools: Reset output/sort order to default
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/sort.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 9da8931d2394..254f583a52ab 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -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(); } |