Adding tid dimension key wrapper.

It is to be displayed in the single cacheline output:

  tid

It's a wrapper for global sort_thread sort entry with
c2c specific header.

Link: http://lkml.kernel.org/n/tip-fr0socae5skzvz5qbkl85...@git.kernel.org
Signed-off-by: Jiri Olsa <jo...@kernel.org>
---
 tools/perf/builtin-c2c.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c
index e17e01056284..2966a388ce8b 100644
--- a/tools/perf/builtin-c2c.c
+++ b/tools/perf/builtin-c2c.c
@@ -1098,6 +1098,12 @@ static struct c2c_dimension dim_pid = {
        .width          = 7,
 };
 
+static struct c2c_dimension dim_tid = {
+       .header         = HEADER_LOW("Tid"),
+       .name           = "tid",
+       .se             = &sort_thread,
+};
+
 #undef HEADER_LOW
 #undef HEADER_BOTH
 #undef HEADER_SPAN
@@ -1133,6 +1139,7 @@ static struct c2c_dimension *dimensions[] = {
        &dim_dram_lcl,
        &dim_dram_rmt,
        &dim_pid,
+       &dim_tid,
        NULL,
 };
 
-- 
2.7.4

Reply via email to