diff options
Diffstat (limited to 'tools/perf/builtin-sched.c')
-rw-r--r-- | tools/perf/builtin-sched.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index f856a02cd4fc..93ef7b215aba 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c | |||
@@ -1144,9 +1144,9 @@ static void output_lat_thread(struct task_atoms *atom_list) | |||
1144 | all_runtime += atom_list->total_runtime; | 1144 | all_runtime += atom_list->total_runtime; |
1145 | all_count += atom_list->nb_atoms; | 1145 | all_count += atom_list->nb_atoms; |
1146 | 1146 | ||
1147 | ret = printf(" %s ", atom_list->thread->comm); | 1147 | ret = printf(" %s-%d ", atom_list->thread->comm, atom_list->thread->pid); |
1148 | 1148 | ||
1149 | for (i = 0; i < 19 - ret; i++) | 1149 | for (i = 0; i < 24 - ret; i++) |
1150 | printf(" "); | 1150 | printf(" "); |
1151 | 1151 | ||
1152 | avg = atom_list->total_lat / atom_list->nb_atoms; | 1152 | avg = atom_list->total_lat / atom_list->nb_atoms; |
@@ -1296,9 +1296,9 @@ static void __cmd_lat(void) | |||
1296 | read_events(); | 1296 | read_events(); |
1297 | sort_lat(); | 1297 | sort_lat(); |
1298 | 1298 | ||
1299 | printf("-----------------------------------------------------------------------------------\n"); | 1299 | printf("\n ---------------------------------------------------------------------------------------\n"); |
1300 | printf(" Task | Runtime ms | Switches | Average delay ms | Maximum delay ms |\n"); | 1300 | printf(" Task | Runtime ms | Switches | Average delay ms | Maximum delay ms |\n"); |
1301 | printf("-----------------------------------------------------------------------------------\n"); | 1301 | printf(" ---------------------------------------------------------------------------------------\n"); |
1302 | 1302 | ||
1303 | next = rb_first(&sorted_atom_root); | 1303 | next = rb_first(&sorted_atom_root); |
1304 | 1304 | ||
@@ -1310,8 +1310,8 @@ static void __cmd_lat(void) | |||
1310 | next = rb_next(next); | 1310 | next = rb_next(next); |
1311 | } | 1311 | } |
1312 | 1312 | ||
1313 | printf("-----------------------------------------------------------------------------------\n"); | 1313 | printf(" ---------------------------------------------------------------------------------------\n"); |
1314 | printf(" TOTAL: |%9.3f ms |%9Ld |", | 1314 | printf(" TOTAL: |%9.3f ms |%9Ld |", |
1315 | (double)all_runtime/1e6, all_count); | 1315 | (double)all_runtime/1e6, all_count); |
1316 | 1316 | ||
1317 | if (unordered_timestamps && nr_timestamps) { | 1317 | if (unordered_timestamps && nr_timestamps) { |
@@ -1321,7 +1321,7 @@ static void __cmd_lat(void) | |||
1321 | printf("\n"); | 1321 | printf("\n"); |
1322 | } | 1322 | } |
1323 | 1323 | ||
1324 | printf("---------------------------------------------\n"); | 1324 | printf(" -------------------------------------------------\n\n"); |
1325 | } | 1325 | } |
1326 | 1326 | ||
1327 | static struct trace_sched_handler *trace_handler; | 1327 | static struct trace_sched_handler *trace_handler; |