diff options
author | Robert Richter <robert.richter@amd.com> | 2012-04-05 12:26:27 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-04-11 16:37:16 -0400 |
commit | 666e6d48c57921874008d97aac13f6ee3e24fd55 (patch) | |
tree | 89cd04825d9d30d2d36cb1d219cb64267293160c | |
parent | e7b3ba6d8b29904c336e3e6a018bb80d1f63b1f4 (diff) |
perf stat: Declare some references static
This references are not exported, use static declaration.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1333643188-26895-4-git-send-email-robert.richter@amd.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/builtin-stat.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index c941bb640f49..dde9e17c018b 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -173,7 +173,7 @@ static struct perf_event_attr very_very_detailed_attrs[] = { | |||
173 | 173 | ||
174 | 174 | ||
175 | 175 | ||
176 | struct perf_evlist *evsel_list; | 176 | static struct perf_evlist *evsel_list; |
177 | 177 | ||
178 | static bool system_wide = false; | 178 | static bool system_wide = false; |
179 | static int run_idx = 0; | 179 | static int run_idx = 0; |
@@ -265,18 +265,18 @@ static double stddev_stats(struct stats *stats) | |||
265 | return sqrt(variance_mean); | 265 | return sqrt(variance_mean); |
266 | } | 266 | } |
267 | 267 | ||
268 | struct stats runtime_nsecs_stats[MAX_NR_CPUS]; | 268 | static struct stats runtime_nsecs_stats[MAX_NR_CPUS]; |
269 | struct stats runtime_cycles_stats[MAX_NR_CPUS]; | 269 | static struct stats runtime_cycles_stats[MAX_NR_CPUS]; |
270 | struct stats runtime_stalled_cycles_front_stats[MAX_NR_CPUS]; | 270 | static struct stats runtime_stalled_cycles_front_stats[MAX_NR_CPUS]; |
271 | struct stats runtime_stalled_cycles_back_stats[MAX_NR_CPUS]; | 271 | static struct stats runtime_stalled_cycles_back_stats[MAX_NR_CPUS]; |
272 | struct stats runtime_branches_stats[MAX_NR_CPUS]; | 272 | static struct stats runtime_branches_stats[MAX_NR_CPUS]; |
273 | struct stats runtime_cacherefs_stats[MAX_NR_CPUS]; | 273 | static struct stats runtime_cacherefs_stats[MAX_NR_CPUS]; |
274 | struct stats runtime_l1_dcache_stats[MAX_NR_CPUS]; | 274 | static struct stats runtime_l1_dcache_stats[MAX_NR_CPUS]; |
275 | struct stats runtime_l1_icache_stats[MAX_NR_CPUS]; | 275 | static struct stats runtime_l1_icache_stats[MAX_NR_CPUS]; |
276 | struct stats runtime_ll_cache_stats[MAX_NR_CPUS]; | 276 | static struct stats runtime_ll_cache_stats[MAX_NR_CPUS]; |
277 | struct stats runtime_itlb_cache_stats[MAX_NR_CPUS]; | 277 | static struct stats runtime_itlb_cache_stats[MAX_NR_CPUS]; |
278 | struct stats runtime_dtlb_cache_stats[MAX_NR_CPUS]; | 278 | static struct stats runtime_dtlb_cache_stats[MAX_NR_CPUS]; |
279 | struct stats walltime_nsecs_stats; | 279 | static struct stats walltime_nsecs_stats; |
280 | 280 | ||
281 | static int create_perf_stat_counter(struct perf_evsel *evsel, | 281 | static int create_perf_stat_counter(struct perf_evsel *evsel, |
282 | struct perf_evsel *first) | 282 | struct perf_evsel *first) |