summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorUmesh Tiwari <umesh.t@samsung.com>2015-06-22 16:55:06 +0530
committerSteven Rostedt <rostedt@goodmis.org>2015-07-20 22:30:45 -0400
commit5e2d5ef8ec1e3854daec41a3697a8d2ce05ff2ef (patch)
treebccd8c532d44c8bf6efd245c6e39281ff1ea054f /kernel
parent72917235fd5f08638be1d52dcdb0fee3ce2cc95f (diff)
downloadop-kernel-dev-5e2d5ef8ec1e3854daec41a3697a8d2ce05ff2ef.zip
op-kernel-dev-5e2d5ef8ec1e3854daec41a3697a8d2ce05ff2ef.tar.gz
ftrace: correct the counter increment for trace_buffer data
In ftrace_dump, for disabling buffer, iter.tr->trace_buffer.data is used. But for enabling, iter.trace_buffer->data is used. Even though, both point to same buffer, for readability, same convention should be used. Link: http://lkml.kernel.org/r/1434972306-20043-1-git-send-email-umesh.t@samsung.com Signed-off-by: Umesh Tiwari <umesh.t@samsung.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 59814ad..6e79408 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -6990,7 +6990,7 @@ void ftrace_dump(enum ftrace_dump_mode oops_dump_mode)
trace_init_global_iter(&iter);
for_each_tracing_cpu(cpu) {
- atomic_inc(&per_cpu_ptr(iter.tr->trace_buffer.data, cpu)->disabled);
+ atomic_inc(&per_cpu_ptr(iter.trace_buffer->data, cpu)->disabled);
}
old_userobj = trace_flags & TRACE_ITER_SYM_USEROBJ;
OpenPOWER on IntegriCloud