Commit 5f2eca83 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo

perf c2c report: Fallback to standard dimensions

Fallback to standard dimensions in case we don't find the dimension
within c2c ones.
Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Joe Mario <jmario@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1474558645-19956-16-git-send-email-jolsa@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 8d3f938d
...@@ -213,8 +213,10 @@ static int c2c_hists__init_output(struct perf_hpp_list *hpp_list, char *name) ...@@ -213,8 +213,10 @@ static int c2c_hists__init_output(struct perf_hpp_list *hpp_list, char *name)
{ {
struct c2c_fmt *c2c_fmt = get_format(name); struct c2c_fmt *c2c_fmt = get_format(name);
if (!c2c_fmt) if (!c2c_fmt) {
return -1; reset_dimensions();
return output_field_add(hpp_list, name);
}
perf_hpp_list__column_register(hpp_list, &c2c_fmt->fmt); perf_hpp_list__column_register(hpp_list, &c2c_fmt->fmt);
return 0; return 0;
...@@ -224,8 +226,10 @@ static int c2c_hists__init_sort(struct perf_hpp_list *hpp_list, char *name) ...@@ -224,8 +226,10 @@ static int c2c_hists__init_sort(struct perf_hpp_list *hpp_list, char *name)
{ {
struct c2c_fmt *c2c_fmt = get_format(name); struct c2c_fmt *c2c_fmt = get_format(name);
if (!c2c_fmt) if (!c2c_fmt) {
return -1; reset_dimensions();
return sort_dimension__add(hpp_list, name, NULL, 0);
}
perf_hpp_list__register_sort_field(hpp_list, &c2c_fmt->fmt); perf_hpp_list__register_sort_field(hpp_list, &c2c_fmt->fmt);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment