diff options
Diffstat (limited to 'meta/recipes-kernel/trace-cmd/trace-cmd/trace-cmd-Do-not-call-stop_threads-if-doing-latency-.patch')
-rw-r--r-- | meta/recipes-kernel/trace-cmd/trace-cmd/trace-cmd-Do-not-call-stop_threads-if-doing-latency-.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd/trace-cmd-Do-not-call-stop_threads-if-doing-latency-.patch b/meta/recipes-kernel/trace-cmd/trace-cmd/trace-cmd-Do-not-call-stop_threads-if-doing-latency-.patch deleted file mode 100644 index 4c00c512bb..0000000000 --- a/meta/recipes-kernel/trace-cmd/trace-cmd/trace-cmd-Do-not-call-stop_threads-if-doing-latency-.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From 356dee73d9ced3e019dea2883a7f357fd4664b3e Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Asselstine <mark.asselstine@windriver.com> | ||
3 | Date: Thu, 5 Apr 2012 15:19:45 -0400 | ||
4 | Subject: [PATCH] trace-cmd: Do not call stop_threads() if doing latency | ||
5 | tracing | ||
6 | |||
7 | Upstream-Status: Backport | ||
8 | |||
9 | If we are using a latency tracer we do not call start_threads() we | ||
10 | should therefore not call stop_threads() if 'latency'. Attempting | ||
11 | to call stop_threads() without first calling start_threads() will | ||
12 | cause a segfault since pids will be uninitialized. | ||
13 | |||
14 | Link: http://lkml.kernel.org/r/1333653586-3379-3-git-send-email-mark.asselstine@windriver.com | ||
15 | |||
16 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
17 | Signed-off-by: Steven Rostedt <rostedt@goodmis.org> | ||
18 | --- | ||
19 | trace-record.c | 3 ++- | ||
20 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/trace-record.c b/trace-record.c | ||
23 | index fcec28b..1c56fa9 100644 | ||
24 | --- a/trace-record.c | ||
25 | +++ b/trace-record.c | ||
26 | @@ -2216,7 +2216,8 @@ void trace_record (int argc, char **argv) | ||
27 | } | ||
28 | |||
29 | disable_tracing(); | ||
30 | - stop_threads(); | ||
31 | + if (!latency) | ||
32 | + stop_threads(); | ||
33 | } | ||
34 | |||
35 | for (cpu = 0; cpu < cpu_count; cpu++) { | ||
36 | -- | ||
37 | 1.7.10.4 | ||
38 | |||