diff options
author | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2011-11-07 21:18:05 -0200 |
---|---|---|
committer | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2011-11-09 11:46:10 -0200 |
commit | 64ab0ada887c884684f7c30487dd186c6ed99441 (patch) | |
tree | 7000501e68453dc5da704cb485af2e8d696a6833 | |
parent | 8be217af2fc515f989dbdccbacbc06a758dfbc32 (diff) |
intel_gpu_top: make stats_reg_names not containing whitespace
This simplifies parsing and allows to have more detailed column names.
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
-rw-r--r-- | tools/intel_gpu_top.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c index bcdb740..7dd2f01 100644 --- a/tools/intel_gpu_top.c +++ b/tools/intel_gpu_top.c @@ -96,15 +96,15 @@ const uint32_t stats_regs[STATS_COUNT] = { }; const char *stats_reg_names[STATS_COUNT] = { - "vert fetch", - "prim fetch", - "VS invocations", - "GS invocations", - "GS prims", - "CL invocations", - "CL prims", - "PS invocations", - "PS depth pass", + "vert-fetch", + "prim-fetch", + "VS-invocations", + "GS-invocations", + "GS-prims", + "CL-invocations", + "CL-prims", + "PS-invocations", + "PS-depth-pass", }; uint64_t stats[STATS_COUNT]; @@ -232,7 +232,7 @@ get_power_stat(struct powerdata *power, const char *battery_file, char *debugfs, static void linux_print_header(FILE *out) { - fprintf(out, "user%%\tsys%%\tpower.total\tpower.chipset\tpower.gfx\t"); + fprintf(out, "utime\tstime\tpower\tpower.chipset\tpower.gfx\t"); } static void linux_print(FILE *out, struct cpudata *cpu, struct cpudata *oldcpu, @@ -485,7 +485,7 @@ static void ring_sample(struct ring *ring) static void ring_print_header(FILE *out, struct ring *ring) { - fprintf(out, "%s%%\t%s.ops\t", + fprintf(out, "%s\t%s.ops\t", ring->name, ring->name ); |