projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49e4ba5
)
perf script: use ARRAY_SIZE instead of reinventing it
author
Sasha Levin
<sasha.levin@oracle.com>
Thu, 20 Dec 2012 19:11:19 +0000
(14:11 -0500)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Thu, 24 Jan 2013 19:40:15 +0000
(16:40 -0300)
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link:
http://lkml.kernel.org/r/1356030701-16284-11-git-send-email-sasha.levin@oracle.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-script.c
b/tools/perf/builtin-script.c
index
b363e7b
..
3314ef2
100644
(file)
--- 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);