summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-stat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 526f67753664..aa706fca410e 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -363,7 +363,7 @@ static void read_counters(bool close)
363 } 363 }
364} 364}
365 365
366static void print_interval(void) 366static void process_interval(void)
367{ 367{
368 static int num_print_interval; 368 static int num_print_interval;
369 struct perf_evsel *counter; 369 struct perf_evsel *counter;
@@ -526,7 +526,7 @@ static int __run_perf_stat(int argc, const char **argv)
526 if (interval) { 526 if (interval) {
527 while (!waitpid(child_pid, &status, WNOHANG)) { 527 while (!waitpid(child_pid, &status, WNOHANG)) {
528 nanosleep(&ts, NULL); 528 nanosleep(&ts, NULL);
529 print_interval(); 529 process_interval();
530 } 530 }
531 } 531 }
532 wait(&status); 532 wait(&status);
@@ -544,7 +544,7 @@ static int __run_perf_stat(int argc, const char **argv)
544 while (!done) { 544 while (!done) {
545 nanosleep(&ts, NULL); 545 nanosleep(&ts, NULL);
546 if (interval) 546 if (interval)
547 print_interval(); 547 process_interval();
548 } 548 }
549 } 549 }
550 550