diff options
Diffstat (limited to 'tools/perf/builtin-kmem.c')
-rw-r--r-- | tools/perf/builtin-kmem.c | 7 |
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 | } |