Commit ba411a95 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo

perf stat: Rename print_interval to process_interval

It suits better, because the function also reads counter's data.

Also the 'print_interval' name will be used in following generalization
of counters display.
Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1435310967-14570-20-git-send-email-jolsa@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent d8ee3b54
...@@ -363,7 +363,7 @@ static void read_counters(bool close) ...@@ -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) ...@@ -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) ...@@ -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();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment