summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-sched.c')
-rw-r--r--tools/perf/builtin-sched.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index 270eb2d8ca6b..b94cf0de715a 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -460,7 +460,7 @@ static struct task_desc *register_pid(struct perf_sched *sched,
460 BUG_ON(!sched->tasks); 460 BUG_ON(!sched->tasks);
461 sched->tasks[task->nr] = task; 461 sched->tasks[task->nr] = task;
462 462
463 if (verbose) 463 if (verbose > 0)
464 printf("registered task #%ld, PID %ld (%s)\n", sched->nr_tasks, pid, comm); 464 printf("registered task #%ld, PID %ld (%s)\n", sched->nr_tasks, pid, comm);
465 465
466 return task; 466 return task;
@@ -794,7 +794,7 @@ replay_wakeup_event(struct perf_sched *sched,
794 const u32 pid = perf_evsel__intval(evsel, sample, "pid"); 794 const u32 pid = perf_evsel__intval(evsel, sample, "pid");
795 struct task_desc *waker, *wakee; 795 struct task_desc *waker, *wakee;
796 796
797 if (verbose) { 797 if (verbose > 0) {
798 printf("sched_wakeup event %p\n", evsel); 798 printf("sched_wakeup event %p\n", evsel);
799 799
800 printf(" ... pid %d woke up %s/%d\n", sample->tid, comm, pid); 800 printf(" ... pid %d woke up %s/%d\n", sample->tid, comm, pid);
@@ -822,7 +822,7 @@ static int replay_switch_event(struct perf_sched *sched,
822 int cpu = sample->cpu; 822 int cpu = sample->cpu;
823 s64 delta; 823 s64 delta;
824 824
825 if (verbose) 825 if (verbose > 0)
826 printf("sched_switch event %p\n", evsel); 826 printf("sched_switch event %p\n", evsel);
827 827
828 if (cpu >= MAX_CPUS || cpu < 0) 828 if (cpu >= MAX_CPUS || cpu < 0)
@@ -870,7 +870,7 @@ static int replay_fork_event(struct perf_sched *sched,
870 goto out_put; 870 goto out_put;
871 } 871 }
872 872
873 if (verbose) { 873 if (verbose > 0) {
874 printf("fork event\n"); 874 printf("fork event\n");
875 printf("... parent: %s/%d\n", thread__comm_str(parent), parent->tid); 875 printf("... parent: %s/%d\n", thread__comm_str(parent), parent->tid);
876 printf("... child: %s/%d\n", thread__comm_str(child), child->tid); 876 printf("... child: %s/%d\n", thread__comm_str(child), child->tid);
@@ -1573,7 +1573,7 @@ static int map_switch_event(struct perf_sched *sched, struct perf_evsel *evsel,
1573 1573
1574 timestamp__scnprintf_usec(timestamp, stimestamp, sizeof(stimestamp)); 1574 timestamp__scnprintf_usec(timestamp, stimestamp, sizeof(stimestamp));
1575 color_fprintf(stdout, color, " %12s secs ", stimestamp); 1575 color_fprintf(stdout, color, " %12s secs ", stimestamp);
1576 if (new_shortname || (verbose && sched_in->tid)) { 1576 if (new_shortname || (verbose > 0 && sched_in->tid)) {
1577 const char *pid_color = color; 1577 const char *pid_color = color;
1578 1578
1579 if (thread__has_color(sched_in)) 1579 if (thread__has_color(sched_in))
@@ -2050,7 +2050,7 @@ static void save_task_callchain(struct perf_sched *sched,
2050 2050
2051 if (thread__resolve_callchain(thread, cursor, evsel, sample, 2051 if (thread__resolve_callchain(thread, cursor, evsel, sample,
2052 NULL, NULL, sched->max_stack + 2) != 0) { 2052 NULL, NULL, sched->max_stack + 2) != 0) {
2053 if (verbose) 2053 if (verbose > 0)
2054 error("Failed to resolve callchain. Skipping\n"); 2054 error("Failed to resolve callchain. Skipping\n");
2055 2055
2056 return; 2056 return;