|
@@ -363,7 +363,7 @@ static void read_counters(bool close)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-static void print_interval(void)
|
|
|
|
|
|
+static void process_interval(void)
|
|
{
|
|
{
|
|
static int num_print_interval;
|
|
static int num_print_interval;
|
|
struct perf_evsel *counter;
|
|
struct perf_evsel *counter;
|
|
@@ -526,7 +526,7 @@ static int __run_perf_stat(int argc, const char **argv)
|
|
if (interval) {
|
|
if (interval) {
|
|
while (!waitpid(child_pid, &status, WNOHANG)) {
|
|
while (!waitpid(child_pid, &status, WNOHANG)) {
|
|
nanosleep(&ts, NULL);
|
|
nanosleep(&ts, NULL);
|
|
- print_interval();
|
|
|
|
|
|
+ process_interval();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
wait(&status);
|
|
wait(&status);
|
|
@@ -544,7 +544,7 @@ static int __run_perf_stat(int argc, const char **argv)
|
|
while (!done) {
|
|
while (!done) {
|
|
nanosleep(&ts, NULL);
|
|
nanosleep(&ts, NULL);
|
|
if (interval)
|
|
if (interval)
|
|
- print_interval();
|
|
|
|
|
|
+ process_interval();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|