mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-26 22:07:51 +00:00
9bc77dff5f
Regenerate all beaglebone patches and add one vfs tracer patch for powertop Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
57 lines
1.9 KiB
Diff
57 lines
1.9 KiB
Diff
From 04098d77869c04c5bf703846783cb89b4297b2bb Mon Sep 17 00:00:00 2001
|
|
From: Vaibhav Nagarnaik <vnagarnaik@google.com>
|
|
Date: Thu, 3 May 2012 18:59:52 -0700
|
|
Subject: [PATCH 23/49] tracing: change CPU ring buffer state from
|
|
tracing_cpumask
|
|
|
|
commit 71babb2705e2203a64c27ede13ae3508a0d2c16c upstream.
|
|
|
|
According to Documentation/trace/ftrace.txt:
|
|
|
|
tracing_cpumask:
|
|
|
|
This is a mask that lets the user only trace
|
|
on specified CPUS. The format is a hex string
|
|
representing the CPUS.
|
|
|
|
The tracing_cpumask currently doesn't affect the tracing state of
|
|
per-CPU ring buffers.
|
|
|
|
This patch enables/disables CPU recording as its corresponding bit in
|
|
tracing_cpumask is set/unset.
|
|
|
|
Link: http://lkml.kernel.org/r/1336096792-25373-3-git-send-email-vnagarnaik@google.com
|
|
|
|
Cc: Frederic Weisbecker <fweisbec@gmail.com>
|
|
Cc: Ingo Molnar <mingo@redhat.com>
|
|
Cc: Laurent Chavey <chavey@google.com>
|
|
Cc: Justin Teravest <teravest@google.com>
|
|
Cc: David Sharp <dhsharp@google.com>
|
|
Signed-off-by: Vaibhav Nagarnaik <vnagarnaik@google.com>
|
|
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
---
|
|
kernel/trace/trace.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
|
|
index 7e4edd3..5638104 100644
|
|
--- a/kernel/trace/trace.c
|
|
+++ b/kernel/trace/trace.c
|
|
@@ -2541,10 +2541,12 @@ tracing_cpumask_write(struct file *filp, const char __user *ubuf,
|
|
if (cpumask_test_cpu(cpu, tracing_cpumask) &&
|
|
!cpumask_test_cpu(cpu, tracing_cpumask_new)) {
|
|
atomic_inc(&global_trace.data[cpu]->disabled);
|
|
+ ring_buffer_record_disable_cpu(global_trace.buffer, cpu);
|
|
}
|
|
if (!cpumask_test_cpu(cpu, tracing_cpumask) &&
|
|
cpumask_test_cpu(cpu, tracing_cpumask_new)) {
|
|
atomic_dec(&global_trace.data[cpu]->disabled);
|
|
+ ring_buffer_record_enable_cpu(global_trace.buffer, cpu);
|
|
}
|
|
}
|
|
arch_spin_unlock(&ftrace_max_lock);
|
|
--
|
|
1.7.10
|
|
|