aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-kmem.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-01-29 03:24:57 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-29 04:36:22 -0500
commitae7f6711d6231c9ba54feb5ba9856c3775e482f8 (patch)
tree89070c82204b2503348e4fd6c51d25a169375545 /tools/perf/builtin-kmem.c
parent64abebf731df87e6f4ae7d9ffc340bdf0c033e44 (diff)
parentb23ff0e9330e4b11e18af984d50573598e10e7f9 (diff)
Merge branch 'perf/urgent' into perf/core
Merge reason: We want to queue up a dependent patch. Also update to later -rc's. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-kmem.c')
-rw-r--r--tools/perf/builtin-kmem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c
index 38b8ca900eda..5d5dc6b09617 100644
--- a/tools/perf/builtin-kmem.c
+++ b/tools/perf/builtin-kmem.c
@@ -354,7 +354,7 @@ static void __print_result(struct rb_root *root, struct perf_session *session,
354 354
355 printf("%.102s\n", graph_dotted_line); 355 printf("%.102s\n", graph_dotted_line);
356 printf(" %-34s |", is_caller ? "Callsite": "Alloc Ptr"); 356 printf(" %-34s |", is_caller ? "Callsite": "Alloc Ptr");
357 printf(" Total_alloc/Per | Total_req/Per | Hit | Ping-pong | Frag\n"); 357 printf(" Total_alloc/Per | Total_req/Per | Hit | Ping-pong | Frag\n");
358 printf("%.102s\n", graph_dotted_line); 358 printf("%.102s\n", graph_dotted_line);
359 359
360 next = rb_first(root); 360 next = rb_first(root);
@@ -380,7 +380,7 @@ static void __print_result(struct rb_root *root, struct perf_session *session,
380 snprintf(buf, sizeof(buf), "%#Lx", addr); 380 snprintf(buf, sizeof(buf), "%#Lx", addr);
381 printf(" %-34s |", buf); 381 printf(" %-34s |", buf);
382 382
383 printf(" %9llu/%-5lu | %9llu/%-5lu | %6lu | %8lu | %6.3f%%\n", 383 printf(" %9llu/%-5lu | %9llu/%-5lu | %8lu | %8lu | %6.3f%%\n",
384 (unsigned long long)data->bytes_alloc, 384 (unsigned long long)data->bytes_alloc,
385 (unsigned long)data->bytes_alloc / data->hit, 385 (unsigned long)data->bytes_alloc / data->hit,
386 (unsigned long long)data->bytes_req, 386 (unsigned long long)data->bytes_req,
@@ -766,7 +766,8 @@ int cmd_kmem(int argc, const char **argv, const char *prefix __used)
766 setup_sorting(&alloc_sort, default_sort_order); 766 setup_sorting(&alloc_sort, default_sort_order);
767 767
768 return __cmd_kmem(); 768 return __cmd_kmem();
769 } 769 } else
770 usage_with_options(kmem_usage, kmem_options);
770 771
771 return 0; 772 return 0;
772} 773}