From d64cd9f082e66c25ac083a958662175a5c389434 Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Wed, 1 Aug 2012 14:47:57 +0200 Subject: [PATCH] --- yaml --- r: 321407 b: refs/heads/master c: 028df76726c5637c6f70a064d94452808ec74f9e h: refs/heads/master i: 321405: db8277156fd157e8d978c3b626238e365e756c49 321403: 778ce29ff093a11ac54df7bcf019a9f1c42209fb 321399: 582ef1e8ea5515ff6bf65b6860c54bfcf330eef1 321391: ef7bb4a1a32c9f8cb1e1993c3f5f13e01bca8fe9 321375: 745c6a7a9cc268f6a0df839037e7092b5c9538c3 321343: d16fe3a85aa128a93963c458f92966e708c4871f 321279: b0bd9101491a2a3866dc689450183afa9bff27a2 v: v3 --- [refs] | 2 +- trunk/tools/perf/util/symbol.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 707e3ff2a7fa..886088f18903 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 30f31c0a492d0c1cd64af631476697f38d6a79d4 +refs/heads/master: 028df76726c5637c6f70a064d94452808ec74f9e diff --git a/trunk/tools/perf/util/symbol.c b/trunk/tools/perf/util/symbol.c index fdad4eeeb429..fe86612afadc 100644 --- a/trunk/tools/perf/util/symbol.c +++ b/trunk/tools/perf/util/symbol.c @@ -64,7 +64,7 @@ static enum dso_binary_type binary_type_symtab[] = { DSO_BINARY_TYPE__NOT_FOUND, }; -#define DSO_BINARY_TYPE__SYMTAB_CNT sizeof(binary_type_symtab) +#define DSO_BINARY_TYPE__SYMTAB_CNT ARRAY_SIZE(binary_type_symtab) static enum dso_binary_type binary_type_data[] = { DSO_BINARY_TYPE__BUILD_ID_CACHE, @@ -72,7 +72,7 @@ static enum dso_binary_type binary_type_data[] = { DSO_BINARY_TYPE__NOT_FOUND, }; -#define DSO_BINARY_TYPE__DATA_CNT sizeof(binary_type_data) +#define DSO_BINARY_TYPE__DATA_CNT ARRAY_SIZE(binary_type_data) int dso__name_len(const struct dso *dso) {