diff options
author | Roy.Li <rongqing.li@windriver.com> | 2013-06-07 13:37:44 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-06-10 14:51:26 -0700 |
commit | c00f67b5cd84adda7566505ec9372e11ad812ca1 (patch) | |
tree | 53a9572ade9132ae5256ecafff82cfb3a19c037b /meta/recipes-kernel/trace-cmd/trace-cmd/trace-cmd-Do-not-call-stop_threads-if-doing-latency-.patch | |
parent | 6ab8adf980f90040d3a24dd9c0f12dc04d7aadeb (diff) | |
download | openembedded-core-contrib-c00f67b5cd84adda7566505ec9372e11ad812ca1.tar.gz |
trace-cmd: backport three patches
Backport three patches to fix running issues.
Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
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, 38 insertions, 0 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 new file mode 100644 index 0000000000..4c00c512bb --- /dev/null +++ b/meta/recipes-kernel/trace-cmd/trace-cmd/trace-cmd-Do-not-call-stop_threads-if-doing-latency-.patch @@ -0,0 +1,38 @@ +From 356dee73d9ced3e019dea2883a7f357fd4664b3e Mon Sep 17 00:00:00 2001 +From: Mark Asselstine <mark.asselstine@windriver.com> +Date: Thu, 5 Apr 2012 15:19:45 -0400 +Subject: [PATCH] trace-cmd: Do not call stop_threads() if doing latency + tracing + +Upstream-Status: Backport + +If we are using a latency tracer we do not call start_threads() we +should therefore not call stop_threads() if 'latency'. Attempting +to call stop_threads() without first calling start_threads() will +cause a segfault since pids will be uninitialized. + +Link: http://lkml.kernel.org/r/1333653586-3379-3-git-send-email-mark.asselstine@windriver.com + +Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> +Signed-off-by: Steven Rostedt <rostedt@goodmis.org> +--- + trace-record.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/trace-record.c b/trace-record.c +index fcec28b..1c56fa9 100644 +--- a/trace-record.c ++++ b/trace-record.c +@@ -2216,7 +2216,8 @@ void trace_record (int argc, char **argv) + } + + disable_tracing(); +- stop_threads(); ++ if (!latency) ++ stop_threads(); + } + + for (cpu = 0; cpu < cpu_count; cpu++) { +-- +1.7.10.4 + |