diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-05-12 14:19:46 -0400 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-05-12 15:13:44 -0400 |
commit | 0680ee7db16de9c02d1d4b1a935a5daf754fe8a1 (patch) | |
tree | 00e85a9496521e87776e665c0f9fe5dc9cf4f844 /tools/perf | |
parent | 26f273802b6ed28e059f4359bc7711dffceda022 (diff) |
perf tools: Remove usage of trace_sched_wakeup(.success)
trace_sched_wakeup(.success) is a dead argument and has been for ages,
the only reason its still there is because of brain dead software, which
apparently includes perf tools
There's a few more instances in pearly snake shit, but that's not
supported as far as I care anyhow, so let that bitrot.
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140512181946.GG13467@laptop.programming.kicks-ass.net
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/builtin-sched.c | 7 | ||||
-rw-r--r-- | tools/perf/tests/evsel-tp-sched.c | 3 |
2 files changed, 1 insertions, 9 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 2579215f5743..a3320f1cda69 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c | |||
@@ -1007,17 +1007,12 @@ static int latency_wakeup_event(struct perf_sched *sched, | |||
1007 | struct perf_sample *sample, | 1007 | struct perf_sample *sample, |
1008 | struct machine *machine) | 1008 | struct machine *machine) |
1009 | { | 1009 | { |
1010 | const u32 pid = perf_evsel__intval(evsel, sample, "pid"), | 1010 | const u32 pid = perf_evsel__intval(evsel, sample, "pid"); |
1011 | success = perf_evsel__intval(evsel, sample, "success"); | ||
1012 | struct work_atoms *atoms; | 1011 | struct work_atoms *atoms; |
1013 | struct work_atom *atom; | 1012 | struct work_atom *atom; |
1014 | struct thread *wakee; | 1013 | struct thread *wakee; |
1015 | u64 timestamp = sample->time; | 1014 | u64 timestamp = sample->time; |
1016 | 1015 | ||
1017 | /* Note for later, it may be interesting to observe the failing cases */ | ||
1018 | if (!success) | ||
1019 | return 0; | ||
1020 | |||
1021 | wakee = machine__findnew_thread(machine, 0, pid); | 1016 | wakee = machine__findnew_thread(machine, 0, pid); |
1022 | atoms = thread_atoms_search(&sched->atom_root, wakee, &sched->cmp_pid); | 1017 | atoms = thread_atoms_search(&sched->atom_root, wakee, &sched->cmp_pid); |
1023 | if (!atoms) { | 1018 | if (!atoms) { |
diff --git a/tools/perf/tests/evsel-tp-sched.c b/tools/perf/tests/evsel-tp-sched.c index 4774f7fbb758..35d7fdb2328d 100644 --- a/tools/perf/tests/evsel-tp-sched.c +++ b/tools/perf/tests/evsel-tp-sched.c | |||
@@ -74,9 +74,6 @@ int test__perf_evsel__tp_sched_test(void) | |||
74 | if (perf_evsel__test_field(evsel, "prio", 4, true)) | 74 | if (perf_evsel__test_field(evsel, "prio", 4, true)) |
75 | ret = -1; | 75 | ret = -1; |
76 | 76 | ||
77 | if (perf_evsel__test_field(evsel, "success", 4, true)) | ||
78 | ret = -1; | ||
79 | |||
80 | if (perf_evsel__test_field(evsel, "target_cpu", 4, true)) | 77 | if (perf_evsel__test_field(evsel, "target_cpu", 4, true)) |
81 | ret = -1; | 78 | ret = -1; |
82 | 79 | ||