Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf powerpc: Update global/local variants for p_stage_cyc

Update the arch_support_sort_key() function in powerpc to enable
presenting local and global variants of sort key 'p_stage_cyc'.

Update the "se_header" strings for these in arch_perf_header_entry()
along with instruction latency.

Reported-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Tested-by: Nageswara R Sastry <rnsastry@linux.ibm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
Link: https://lore.kernel.org/r/20211203022038.48240-2-atrajeev@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Athira Rajeev and committed by
Arnaldo Carvalho de Melo
befee377 e3304c21

+7 -1
+7 -1
tools/perf/arch/powerpc/util/event.c
··· 40 40 { 41 41 if (!strcmp(se_header, "Local INSTR Latency")) 42 42 return "Finish Cyc"; 43 - else if (!strcmp(se_header, "Pipeline Stage Cycle")) 43 + else if (!strcmp(se_header, "INSTR Latency")) 44 + return "Global Finish_cyc"; 45 + else if (!strcmp(se_header, "Local Pipeline Stage Cycle")) 44 46 return "Dispatch Cyc"; 47 + else if (!strcmp(se_header, "Pipeline Stage Cycle")) 48 + return "Global Dispatch_cyc"; 45 49 return se_header; 46 50 } 47 51 48 52 int arch_support_sort_key(const char *sort_key) 49 53 { 50 54 if (!strcmp(sort_key, "p_stage_cyc")) 55 + return 1; 56 + if (!strcmp(sort_key, "local_p_stage_cyc")) 51 57 return 1; 52 58 return 0; 53 59 }