aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorSasha Levin <[email protected]>2012-12-20 19:11:19 +0000
committerArnaldo Carvalho de Melo <[email protected]>2013-01-24 19:40:15 +0000
commit50ca19aed8ad2e264ef6bce6d6d5cb7f8bfae8c9 (patch)
tree8f156da6901406c8dfc97d6ba612b0333111d3b3 /tools/perf/builtin-script.c
parentperf kmem: use ARRAY_SIZE instead of reinventing it (diff)
downloadkernel-50ca19aed8ad2e264ef6bce6d6d5cb7f8bfae8c9.tar.gz
kernel-50ca19aed8ad2e264ef6bce6d6d5cb7f8bfae8c9.zip
perf script: use ARRAY_SIZE instead of reinventing it
Signed-off-by: Sasha Levin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r--tools/perf/builtin-script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index b363e7b292b2..3314ef2ec83e 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -692,7 +692,7 @@ static int parse_output_fields(const struct option *opt __maybe_unused,
const char *arg, int unset __maybe_unused)
{
char *tok;
- int i, imax = sizeof(all_output_options) / sizeof(struct output_option);
+ int i, imax = ARRAY_SIZE(all_output_options);
int j;
int rc = 0;
char *str = strdup(arg);