aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 0506cd6e04cc..5f5e7df8302d 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -269,7 +269,7 @@ static void print_sym_table(void)
269 } 269 }
270} 270}
271 271
272static void *display_thread(void *arg) 272static void *display_thread(void *arg __used)
273{ 273{
274 struct pollfd stdin_poll = { .fd = 0, .events = POLLIN }; 274 struct pollfd stdin_poll = { .fd = 0, .events = POLLIN };
275 int delay_msecs = delay_secs * 1000; 275 int delay_msecs = delay_secs * 1000;
@@ -287,7 +287,7 @@ static void *display_thread(void *arg)
287} 287}
288 288
289/* Tag samples to be skipped. */ 289/* Tag samples to be skipped. */
290char *skip_symbols[] = { 290static const char *skip_symbols[] = {
291 "default_idle", 291 "default_idle",
292 "cpu_idle", 292 "cpu_idle",
293 "enter_idle", 293 "enter_idle",
@@ -426,7 +426,7 @@ static void process_event(u64 ip, int counter, int user)
426struct mmap_data { 426struct mmap_data {
427 int counter; 427 int counter;
428 void *base; 428 void *base;
429 unsigned int mask; 429 int mask;
430 unsigned int prev; 430 unsigned int prev;
431}; 431};
432 432
@@ -705,7 +705,7 @@ static const struct option options[] = {
705 OPT_END() 705 OPT_END()
706}; 706};
707 707
708int cmd_top(int argc, const char **argv, const char *prefix) 708int cmd_top(int argc, const char **argv, const char *prefix __used)
709{ 709{
710 int counter; 710 int counter;
711 711