diff options
Diffstat (limited to 'tools/perf/builtin-stat.c')
-rw-r--r-- | tools/perf/builtin-stat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 1036ca739e6f..e619ac89dff5 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -67,19 +67,19 @@ static struct perf_event_attr default_attrs[] = { | |||
67 | 67 | ||
68 | }; | 68 | }; |
69 | 69 | ||
70 | static int system_wide = 0; | 70 | static bool system_wide = false; |
71 | static unsigned int nr_cpus = 0; | 71 | static unsigned int nr_cpus = 0; |
72 | static int run_idx = 0; | 72 | static int run_idx = 0; |
73 | 73 | ||
74 | static int run_count = 1; | 74 | static int run_count = 1; |
75 | static int inherit = 1; | 75 | static bool inherit = true; |
76 | static int scale = 1; | 76 | static bool scale = true; |
77 | static pid_t target_pid = -1; | 77 | static pid_t target_pid = -1; |
78 | static pid_t target_tid = -1; | 78 | static pid_t target_tid = -1; |
79 | static pid_t *all_tids = NULL; | 79 | static pid_t *all_tids = NULL; |
80 | static int thread_num = 0; | 80 | static int thread_num = 0; |
81 | static pid_t child_pid = -1; | 81 | static pid_t child_pid = -1; |
82 | static int null_run = 0; | 82 | static bool null_run = false; |
83 | 83 | ||
84 | static int *fd[MAX_NR_CPUS][MAX_COUNTERS]; | 84 | static int *fd[MAX_NR_CPUS][MAX_COUNTERS]; |
85 | 85 | ||
@@ -528,7 +528,7 @@ static const struct option options[] = { | |||
528 | "system-wide collection from all CPUs"), | 528 | "system-wide collection from all CPUs"), |
529 | OPT_BOOLEAN('c', "scale", &scale, | 529 | OPT_BOOLEAN('c', "scale", &scale, |
530 | "scale/normalize counters"), | 530 | "scale/normalize counters"), |
531 | OPT_BOOLEAN('v', "verbose", &verbose, | 531 | OPT_INCR('v', "verbose", &verbose, |
532 | "be more verbose (show counter open errors, etc)"), | 532 | "be more verbose (show counter open errors, etc)"), |
533 | OPT_INTEGER('r', "repeat", &run_count, | 533 | OPT_INTEGER('r', "repeat", &run_count, |
534 | "repeat command and print average + stddev (max: 100)"), | 534 | "repeat command and print average + stddev (max: 100)"), |