summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/trace-cmd/trace-cmd/trace-cmd-Do-not-call-stop_threads-if-doing-latency-.patch
diff options
context:
space:
mode:
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-.patch38
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 @@
1From 356dee73d9ced3e019dea2883a7f357fd4664b3e Mon Sep 17 00:00:00 2001
2From: Mark Asselstine <mark.asselstine@windriver.com>
3Date: Thu, 5 Apr 2012 15:19:45 -0400
4Subject: [PATCH] trace-cmd: Do not call stop_threads() if doing latency
5 tracing
6
7Upstream-Status: Backport
8
9If we are using a latency tracer we do not call start_threads() we
10should therefore not call stop_threads() if 'latency'. Attempting
11to call stop_threads() without first calling start_threads() will
12cause a segfault since pids will be uninitialized.
13
14Link: http://lkml.kernel.org/r/1333653586-3379-3-git-send-email-mark.asselstine@windriver.com
15
16Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
17Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
18---
19 trace-record.c | 3 ++-
20 1 file changed, 2 insertions(+), 1 deletion(-)
21
22diff --git a/trace-record.c b/trace-record.c
23index 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--
371.7.10.4
38