aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/.gitignore1
-rw-r--r--tools/perf/builtin-kmem.c7
-rw-r--r--tools/perf/builtin-report.c2
-rw-r--r--tools/perf/builtin-timechart.c2
4 files changed, 7 insertions, 5 deletions
diff --git a/tools/perf/.gitignore b/tools/perf/.gitignore
index fe08660ce0bd..124760bb37b5 100644
--- a/tools/perf/.gitignore
+++ b/tools/perf/.gitignore
@@ -13,6 +13,7 @@ perf*.xml
13perf*.html 13perf*.html
14common-cmds.h 14common-cmds.h
15perf.data 15perf.data
16perf.data.old
16tags 17tags
17TAGS 18TAGS
18cscope* 19cscope*
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}
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 4c3d6997995b..cfc655d40bb7 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -279,7 +279,7 @@ parse_callchain_opt(const struct option *opt __used, const char *arg,
279 279
280 else if (!strncmp(tok, "none", strlen(arg))) { 280 else if (!strncmp(tok, "none", strlen(arg))) {
281 callchain_param.mode = CHAIN_NONE; 281 callchain_param.mode = CHAIN_NONE;
282 symbol_conf.use_callchain = true; 282 symbol_conf.use_callchain = false;
283 283
284 return 0; 284 return 0;
285 } 285 }
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c
index 5b68d81d93a1..0d4d8ff7914b 100644
--- a/tools/perf/builtin-timechart.c
+++ b/tools/perf/builtin-timechart.c
@@ -280,7 +280,7 @@ static u64 cpus_pstate_state[MAX_CPUS];
280 280
281static int process_comm_event(event_t *event, struct perf_session *session __used) 281static int process_comm_event(event_t *event, struct perf_session *session __used)
282{ 282{
283 pid_set_comm(event->comm.pid, event->comm.comm); 283 pid_set_comm(event->comm.tid, event->comm.comm);
284 return 0; 284 return 0;
285} 285}
286 286