提交 6c70f54c 编写于 作者: J Jiri Olsa 提交者: Arnaldo Carvalho de Melo

perf c2c report: Add dram related sort keys

They are to be displayed in the main cachelines overall output:

  dram_lcl, dram_rmt

They display DRAM rmt/lcl access numbers for specific cacheline.
Signed-off-by: NJiri 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/n/tip-tl3qqi9ehk6g1fla4z7y0ykd@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 9cb3500a
...@@ -807,6 +807,9 @@ percent_stores_l1miss_cmp(struct perf_hpp_fmt *fmt __maybe_unused, ...@@ -807,6 +807,9 @@ percent_stores_l1miss_cmp(struct perf_hpp_fmt *fmt __maybe_unused,
return per_left - per_right; return per_left - per_right;
} }
STAT_FN(lcl_dram)
STAT_FN(rmt_dram)
#define HEADER_LOW(__h) \ #define HEADER_LOW(__h) \
{ \ { \
.line[1] = { \ .line[1] = { \
...@@ -1055,6 +1058,22 @@ static struct c2c_dimension dim_percent_stores_l1miss = { ...@@ -1055,6 +1058,22 @@ static struct c2c_dimension dim_percent_stores_l1miss = {
.width = 7, .width = 7,
}; };
static struct c2c_dimension dim_dram_lcl = {
.header = HEADER_SPAN("--- Load Dram ----", "Lcl", 1),
.name = "dram_lcl",
.cmp = lcl_dram_cmp,
.entry = lcl_dram_entry,
.width = 8,
};
static struct c2c_dimension dim_dram_rmt = {
.header = HEADER_SPAN_LOW("Rmt"),
.name = "dram_rmt",
.cmp = rmt_dram_cmp,
.entry = rmt_dram_entry,
.width = 8,
};
static struct c2c_dimension *dimensions[] = { static struct c2c_dimension *dimensions[] = {
&dim_dcacheline, &dim_dcacheline,
&dim_offset, &dim_offset,
...@@ -1082,6 +1101,8 @@ static struct c2c_dimension *dimensions[] = { ...@@ -1082,6 +1101,8 @@ static struct c2c_dimension *dimensions[] = {
&dim_percent_lcl_hitm, &dim_percent_lcl_hitm,
&dim_percent_stores_l1hit, &dim_percent_stores_l1hit,
&dim_percent_stores_l1miss, &dim_percent_stores_l1miss,
&dim_dram_lcl,
&dim_dram_rmt,
NULL, NULL,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册